Repository navigation
fix(cron): retain stale delivery suppression diagnostics - #129408
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 1:31 PM ET / 17:31 UTC. ClawSweeper reviewWhat this changesThe PR records the existing stale-delivery suppression message in the cron delivery result while retaining the current warning log and suppression behavior. Merge readinessThe PR remains necessary and the owner-layer repair is correct: current main logs the stale-delivery reason but does not return it through the existing diagnostic path. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherCron jobs produce a completion result that delivery dispatch either sends to a configured target or intentionally suppresses when too stale. Finalization persists that result into cron state and finished events used by CLI and UI history. flowchart LR
A[Cron schedule] --> B[Isolated job run]
B --> C[Delivery dispatch]
C --> D{Run too stale?}
D -->|Yes| E[Suppressed result with diagnostic]
D -->|No| F[Outbound delivery]
E --> G[Run state and finished event]
F --> G
G --> H[CLI and UI history]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +5. Total +5 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase or merge-queue refresh the compact owner-layer fix, retain the stale-suppression regression, and land after exact-head checks pass. Do we have a high-confidence way to reproduce the issue? Yes in source: current main logs the stale-delivery explanation but omits it from the returned result; the focused regression reaches that exact delayed-schedule branch. Is this the best way to solve the issue? Yes: recording the already-authored explanation at the delivery owner is preferable to reconstructing it in state, event, CLI, or UI consumers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 772f6a3d5ea9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
Rank-up move addressed: this PR was refreshed against tested green main |
|
Merged via squash.
|
Summary
Preserve the explanation when a cron run intentionally suppresses stale delivery.
Root cause
The delivery owner correctly suppresses messages that start hours late, but recorded the detailed scheduled-time/delay explanation only in logs and returned an unexplained undelivered result. Existing run history, CLI, UI, and state owners already propagate
deliveryError; the authoritative owner simply never authored it.Store the existing explanation once, reuse it for the unchanged warning log, and carry it in the existing result. Scheduling, message suppression, execution status, retry and completion policies, recipient custody, configuration, and the existing storage schema remain unchanged. The original author commit is preserved in the refreshed branch history.
Validation