Repository navigation
Conversation
|
Codex review: blocked before merge. Reviewed October 2, 2026, 5:34 AM ET / 09:34 UTC (Revision 14). ClawSweeper reviewWhat this changesThe branch carries structured cron timeout reasons into task statuses for manual and scheduled runs and adds SQLite-backed regression coverage. Merge readiness⛔ Blocked before merge - 3 items remain The task-ledger target has since been retired by merged work, so this branch no longer fits current main as written. Maintainer protection requires an explicit disposition. The previous history-import finding predates this PR and is withdrawn. Priority: P2 Review scores
Verification
How this fits togetherCron executes scheduled triggers and payloads, then records their outcomes for operators. This branch updates the former Tasks ledger; current main records cron history through a dedicated Cron owner. flowchart TD
A[Scheduled or manual run] --> B[Trigger and payload execution]
B --> C[Structured outcome]
C --> D[Branch task-status projection]
D --> E[Former Tasks ledger]
C --> F[Current Cron history owner]
F --> G[Operator run history]
Decision needed
Why: The original operator surface is retired, while the retained history projector still distinguishes watchdog timeouts; choosing whether that remaining internal distinction warrants this work requires owner intent. Before merge
Agent review detailsSecurityNone. PR surfaceSource +12, Tests +70. Total +82 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep timeout provenance within the current Cron-owned history flow, without restoring retired Tasks modules. Do we have a high-confidence way to reproduce the issue? No current-main reproduction of the original task-panel symptom is established: Tasks has been retired, and the branch tests target its former ledger. Is this the best way to solve the issue? No as a landing path for current main: the producer classification is appropriate, but any retained requirement belongs in Cron-owned history rather than deleted task modules. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f8596942123f. LabelsLabel changes:
Label 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 (13 earlier review cycles; latest 8 shown)
|
|
Closing because #159179 removed the Tasks/TaskFlow ledger and task-status projection this PR repairs. The timeout-to-task-state change no longer has a consumer on current main. Closed in a sweep of stale maintainer PRs (no activity for 7+ days). Reopen with a current reproduction if this still matters. |
What Problem This Solves
Fixes an issue where operators inspecting scheduled automation tasks would see trigger-evaluation or script-payload timeouts incorrectly reported as ordinary failures, even though the underlying cron run had an explicit timeout reason.
Why This Change Was Made
The cron execution owner now carries its existing structured timeout classification through one canonical task-status projector for scheduled runs, manual early finalization, normal run history, and interrupted-task recovery. Provider-style text inferred into historical diagnostics is not treated as authoritative terminal state.
User Impact
Timed-out trigger evaluations and script payloads now appear correctly as timed-out automation tasks. Ordinary failures remain failed, existing watchdog timeouts remain timed out, and operator-cancelled tasks stay cancelled when their final run history is attached.
Evidence
CronServiceand the real SQLite task ledger reproduced both trigger and script timeouts persisting asfailedbefore the fix.timed_out, structured script timeouttimed_out, ordinary local failurefailed, legacy watchdog timeouttimed_out, and operator cancellationcancelledafter actual cron completion.node scripts/run-vitest.mjs src/cron/service.trigger-eval.test.ts --no-cache).gpt-5.6-solwith high reasoning reported zero actionable findings (confidence 0.90).35f011be903801507a2b8c27a1195bf2fcb849b4. All five owner paths are unchanged on current mainaa2a5c96f69a1be639c602649d4aa2e4de8da0a8, and the synthetic merge is clean. Remote CI has not been run.