Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
relay_delivery_attempts gets a row for every APNs push attempt, and nothing deleted from it. The five-minute cron now drops rows last written more than 14 days ago. Source-job dedupe only needs the 10-minute signed job window, so the horizon is for diagnostics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Capture and verify prune predicates infra/relay/src/agentActivity/DeliveryAttempts.test.ts |
The test helper captures each delete predicate. The short-batch test checks both rendered predicates against the expected subquery, seven-day cutoff, and batch-size limit. |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Possibly related PRs
- pingdotgg/t3code#26141: It also changes pruning for
relay_delivery_attempts, with a different retention period and batch size.
Suggested labels: bugfix
Suggested reviewers: juliusmarminge
Merge Risk: 
Minimal · up to 0a759
-
The test change is mergeable; it aligns coverage with the current seven-day pruning behavior.
Pre-merge checks: 
4
-
Full details: Description check
-
Explanation
The description explains the retention problem, the test-only change, verification results, and unverified deployment checks. It does not use the template headings or provide an explicit issue or approval link, but it contains sufficient relevant information to be mostly complete.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Usage-based review receipt
- Mode: Continue automatically
- Reviewed files: 1
- Charged: $0.25
- View usage details
Note
This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.
Comment @coderabbitai help to get the list of available commands.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Adds bounded five-minute pruning for relay delivery-attempt records older than 14 days, while preserving active delivery deduplication and using the existing cleanup error handling. The other changes are test-fake updates and a focused SQL predicate test; no product defaults or static-analysis overrides are changed. You can add or adjust custom eligibility rules. Learn more. |
|
Note Written by thanks @only21mil. the original cutoff, service method, cron wiring, and regression test are preserved. i merged current main and added only a verification at
unverified: deployed worker cron execution, production table volume, initial cleanup duration, and planetscale-specific behavior. no ui changed, so visual evidence does not apply. disposable postgres and the task's blacksmith worker have been stopped. |
|
Note Written by Verified in a real dev environmentchecked exact head
main's original missing retention could not be reproduced: https://git.cafe/pingdotgg/t3code/pulls/26141 already added cleanup in main, real codex turn: pr, same repository and prompt: animated recording of model selection, submission, tool execution, and completion. loading frames were trimmed; the source mp4's uploaded playback and seeking were checked: command and runtime transcript Not verifiedactual delivery-attempt retention, five-minute cron execution, apns delivery/deduplication, and production cleanup duration. native ios/android, macos/windows desktop, deployed cloudflare/planetscale behavior, and production volume remain unverified. a real isolated relay plus account/device credentials and legitimately aged delivery rows are needed to complete that verification. no source changes or pushes were made. |
|
Note 🤖 GPT-6.1 Sol responding on behalf of Victor Closing in favor of #26141, which landed delivery-attempt retention and bounded cleanup. The remaining diff here only adds an exact cutoff/SQL-parameter assertion; that extra test has not landed on main. |




relay delivery attempts need bounded retention without deleting recent deduplication records. main now provides the pruning service, five-minute cron, seven-day policy, batch cap, and created_at index.
this pr preserves that implementation and adds the original cutoff regression coverage to the existing batch test. it verifies both delete batches use the strict seven-day cutoff and a bounded subquery. no production code or ui differs from main.
verification at
0a759d515656ab3c424da704d8089617b27479e1:vp run check:changedpassed format, lint, both knip passes, relay typecheck, and all 6 DeliveryAttempts tests.github/mainwithout rebasing; final delta is one existing test file, 19 insertions and 3 deletions.deployed cloudflare cron, planetscale, production volume, and apns execution remain unverified. no browser evidence applies to this test-only change.
updated with gpt-6.1-sol through the codex harness in t3 code.