The createClosedIssue helper was setting ClosedAt to time.Now(), but the eligibility check uses '<= datetime(now, -0 days)'. This created a race condition where if nanoseconds elapsed between issue creation and the query, the issue would fail eligibility checks. Changed to now.Add(-1*time.Second) to ensure issues are always eligible when compact_tier1_days is set to 0 for testing. Fixes bd-18 Amp-Thread-ID: https://ampcode.com/threads/T-bc303dd9-f0e7-4d52-8908-e433d429ac4a Co-authored-by: Amp <amp@ampcode.com>