Repository navigation
chore(cron): cover execution diagnostics - #118964
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 5:12 PM ET / 21:12 UTC. ClawSweeper reviewWhat this changesThis draft adds a QA Lab scenario and a CronService end-to-end test that verifies provider-preflight, timeout, and execution-denial diagnostics reach finished events and persisted cron run history. Merge readinessKeep this maintainer-authored draft open. The checkout does not yet contain either added file, and the patch adds a useful cross-boundary regression test for diagnostics that existing unit-level tests cover separately; no concrete patch defect was found in read-only review. Priority: P3 Review scores
Verification
How this fits togetherCron jobs pass through isolated-agent admission and execution, then CronService publishes a finished event and records a durable task-run entry. The new test exercises that path from provider preflight or terminal failure through the operator-visible event and SQLite-backed history reader. flowchart LR
A[Scheduled cron job] --> B[Isolated agent admission]
B --> C[Provider preflight or agent execution]
C --> D[Terminal diagnostic normalization]
D --> E[Finished cron event]
D --> F[Durable task-run record]
F --> G[Run-history reader]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +262, Other +31. Total +293 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain this focused integration coverage, then rebase or refresh it after the linked cron runtime fixes settle so its event and persisted-history assertions remain aligned with the canonical terminal outcomes. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage rather than reporting a separately reproducible user-facing defect. Its asserted path is source-backed through CronService, the isolated runner, events, and SQLite history. Is this the best way to solve the issue? Yes. A single integration test that reaches the real CronService persistence and event boundaries complements the existing isolated-run and service-level tests more directly than adding more mocks at either boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5b1b1e063225. 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
|
|
Rank-up move disposition:
|
|
Merged via squash.
|
What Problem This Solves
Cron QA coverage did not prove that isolated-run provider admission failures or terminal timeout and execution-denial outcomes survive through the operator-visible event and persisted run-history boundaries.
Why This Change Was Made
Adds a test-only QA scenario that executes production
CronServicejobs through the isolated-agent orchestration path. The preflight case uses a real broken loopback transport, while timeout and denial are injected at the external agent boundary so production normalization, diagnostics, event emission, and SQLite persistence remain under test.User Impact
No runtime behavior changes. Maintainers gain regression proof for:
automation.model-provider-preflightautomation.timeout-and-denial-diagnosticsEvidence
810f42dd82007f30e275bb29cca222a005594521node scripts/run-vitest.mjs src/cron/cron-execution-diagnostics.e2e.test.tscron-execution-diagnosticscorrect: 0.99)git diff --check0Collision Disposition
As of August 3, 2026, #117340, #117425, #102116, #115933, and #117884 remain open at unchanged heads. No owner-path change has landed on
main, so the optional ClawSweeper refresh is explicitly deferred. This exact head remains frozen against unrelatedmaindrift.