Repository navigation
improve(cron): stop treating task blocker reports as execution failures - #170267
Conversation
Remove the AUTOMATION_FAILED text protocol while preserving structured runtime errors, delivery failures, and NO_REPLY. Update outcome regressions, documentation, and the existing QA flow. Co-authored-by: steipete <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR removes the AUTOMATION_FAILED reply protocol so task-blocker reports no longer become scheduler execution failures. Example: A settled child replies "AUTOMATION_FAILED\nNo shell tool is available in this run."
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: the collaborator-approved behavior change remains distinct from main, and source review found no actionable code defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherCron prepares unattended agent prompts, finalizes parent and child results, delivers output, and passes execution outcomes to scheduling, history, cleanup, and notification owners. flowchart LR
A[Scheduled job] --> B[Agent prompt and execution]
B --> C[Structured outcome finalization]
D[Settled child reply] --> E[Delivery dispatch]
C --> E
E --> F[Conversation and channel output]
E --> G[Scheduler history and completion policy]
Technical reviewBest possible solution: Keep structured runtime outcomes authoritative while retaining ordinary blocker output under the job’s existing delivery and completion policies. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically converts an exact AUTOMATION_FAILED first line into an execution error for parent and settled-child replies; no target code was run during this read-only review. Is this the best way to solve the issue? The removal consistently implements the approved policy and preserves structured failures, while correctly using Related links because the broader preamble requests remain only partly addressed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 395ea60dea89. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -62, Tests -57, Docs +4, Other +28. Total -87 across 15 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed October 12, 2026, 6:38 PM ET / 22:38 UTC (Revision 3). |
Integrate the cron visibility and cold identity-ingress fixture fixes from main to repair the two failed CI workloads for #170267. The protocol-removal delta is unchanged. Co-authored-by: steipete <[email protected]>
|
Merged via squash.
|
…es (openclaw#170267) Remove the AUTOMATION_FAILED text protocol while preserving structured runtime errors, delivery failures, and NO_REPLY. Update outcome regressions, documentation, and the existing QA flow. Co-authored-by: steipete <[email protected]>
Related: #161698, #165811. This removes the failure-marker protocol; it does not add a general unattended-preamble opt-out.
What Problem This Solves
Scheduled agents can turn ordinary task-blocker reports into execution failures by emitting
AUTOMATION_FAILED, causing failure accounting and exposing a protocol marker in persistent conversation transcripts.User Impact
Automation replies explain blockers in ordinary prose instead of using a magic failure prefix. Real runtime errors, cancellation, delivery failures, and intentional
NO_REPLYsilence retain their existing handling.Intentional behavior change: a normally completed model turn does not become a scheduler failure merely because its answer says the task could not be completed. Such reports no longer trigger failure backoff, alerts, or owner-repair requests. One-shot jobs can complete and be deleted under their normal completion policy even when their answer describes a task-level blocker.
Why This Change Was Made
Remove the marker prompt, parser, parent/child outcome plumbing, and marker-specific scheduler exception together. Keep execution status owned by structured runtime results rather than assistant prose. Current documentation and the existing QA scenario now describe and exercise that distinction; historical release notes and transcripts are unchanged.
Evidence
hasActiveDeliveryOwnerre-export,listOpenClawStateFeatureSchemas,OpenClawStateFeatureSchema). Those findings are tracked separately, not suppressed here.Refreshed head and validation
Head
1d86338487e5eaa5bb433ef04eb47cf33a2ec5a7integrates the upstream fixes for both failing fixtures: cron profile preparation (50f5be4b2520) and cold identity config bootstrap (a1cb052ee61c). The protocol-removal delta remains unchanged. All 137 focused tests in seven files passed on the integrated candidate (153.80s wrapper wall), including all 14 cron visibility cases. Type-aware lint and formatting passed. The cold identity test could not start locally because the artifact guard could not verify separation from managed Gateway artifacts; no bypass was used. Current-head CI completed successfully: all 82 jobs terminal, no failures, including the repaired cold-process workload and QA smoke profiles.Historical failed-head CI (62b9405)
CI run 38314802432, attempt 1 completed with 80 terminal jobs. Two workloads failed; all other selected jobs, including
security-fastand all QA smoke profiles, passed. CI remains failed, not green.checks-node-changed-compact-large-19: five cron-history visibility fixture cases receivedCRON_JOB_NOT_FOUND. Their scheduler is disabled and agent execution is mocked; the unchanged profile/visibility preparation path excludes this PR’s result-classification changes.checks-node-changed-extensions-config: the cold repeated-identity ingress fixture calls the unchanged runtime configuration reader without preparing its snapshot. It exits before inference (providerRequests: 0), excluding the changed cron-blocker mock response.The tested merge is
5a8e60014084ef746b6005d3b123ce8cba695962, with main parentb70cab277ca2c5480117c3a2ecae09a54027ada0and the previous PR head62b9405d1f2a430578a193936b6b13be4c742f60. All 13 inspected failure-boundary/preparation inputs are identical to that main parent. The automated table labels both jobs unknown because it has no matching main job names; the inherited-only qualification is based on inspected source and actual failed-job logs, not a separately executed baseline run. The guarded native landing path retains this evidence and still enforces independent security and review requirements.Contributor credit
Requested by @steipete.
Work sessions