Skip to content

improve(cron): stop treating task blocker reports as execution failures - #170267

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/briny-shell
Oct 13, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/briny-shell

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

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_REPLY silence 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

  • Before the removal, three targeted regressions failed for the expected reasons: the marker changed the parent run status and stripped child output in announce and no-delivery paths.
  • After the removal, 123 focused tests passed across six files, covering parent/child output, delivery, runtime failures, scheduler policy, and silent replies (67.3s command wall time).
  • All typecheck lanes passed, including core/UI tests, extensions, scripts, and root tests. Changed-file lint and formatting passed.
  • Independent P0–P2 review: no actionable findings.
  • A subsequent full local build was interrupted before a verifiable completion receipt; it is not counted as passing proof. Exact-head hosted CI supplies the enforced broad validation.
  • Full changed-check did not pass: the production dead-export scan reported three unchanged baseline exports (hasActiveDeliveryOwner re-export, listOpenClawStateFeatureSchemas, OpenClawStateFeatureSchema). Those findings are tracked separately, not suppressed here.
  • End-to-end QA could not start because the CLI artifact-publication guard could not verify the host Gateway service environment. No live Gateway was stopped, modified, or bypassed. QA YAML parsing and all 41 embedded expressions passed static validation. Hosted PR CI remains the broad execution gate.

Refreshed head and validation

Head 1d86338487e5eaa5bb433ef04eb47cf33a2ec5a7 integrates 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-fast and all QA smoke profiles, passed. CI remains failed, not green.

  • checks-node-changed-compact-large-19: five cron-history visibility fixture cases received CRON_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 parent b70cab277ca2c5480117c3a2ecae09a54027ada0 and the previous PR head 62b9405d1f2a430578a193936b6b13be4c742f60. 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

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]>
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: qa-lab size: M labels Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This 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."

  • Before: The parent records an execution error and delivers only the explanation.
  • After: The parent treats the reply as ordinary output, preserves its text, and applies normal successful-completion policy.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation follows the approved direction without a concrete code finding, but available validation limits confidence.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored PR is outside the ordinary contributor proof gate; its supplied coverage exercises real cron finalization and dispatch in process, while the proposed Gateway QA run did not start and historical proof covers the earlier implementation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Partial
User problem: A completed automation turn can trigger scheduler failure handling because its reply reports a task blocker using a control marker.
Reason: The collaborator-authored PR explicitly chooses to separate execution completion from task success and records the resulting notification and one-shot tradeoffs.

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
Reviewed head: 62b9405d1f2a430578a193936b6b13be4c742f60

Before merge

  • Complete next step - Establish whether the two failed CI workloads are inherited using matching baseline failure evidence or a head-versus-revert comparison; repair this branch only if that comparison identifies a diff-caused failure.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence lacks a completed latest-stable upgrade scenario exercising blocker output, preserved settings and history, and changed Telegram announcement behavior.
Agent review details

How this fits together

Cron 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]
Loading

Technical review

Best 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

  • Marker prompt and parent outcome classification changes intended behavior with a stated reason (855bba4: Expose blocked scheduled work in history and existing failure handling through an explicit first-line control marker.)
  • Settled-child classification and silent-job exception changes intended behavior with a stated reason (2f4d475: Apply the same marker semantics after child settlement while preventing silent reported failures from causing auto-disable notices.)
  • Delivery-target failure separation keeps the original intent (18b46dd: Keep delivery routing failures from replacing the agent’s execution outcome.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source -62, Tests -57, Docs +4, Other +28. Total -87 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 14 76 -62
Tests 3 30 87 -57
Docs 2 6 2 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 1 75 47 +28
Total 15 125 212 -87

Labels

Label changes:

  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: This is a bounded change to scheduled-task outcome semantics without an identified urgent runtime defect.
  • merge-risk: 🚨 compatibility: Existing jobs using the released marker lose its failure-accounting and notification semantics, including failed-one-shot retention; the collaborator-authored PR explicitly accepts this change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. Telegram can observe unchanged legacy-marker text from settled children and the disappearance of blocker-triggered failure notifications.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record the previously recommended latest-stable upgrade scenario, including Telegram announcements and preserved existing settings and history.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-12T21:41:13.016Z sha 62b9405 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-12T22:17:44.356Z sha 62b9405 :: needs maintainer review before merge. :: none

Reviewed October 12, 2026, 6:38 PM ET / 22:38 UTC (Revision 3).

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 12, 2026 22:07
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 12, 2026 22:13
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 12, 2026
@roboclaw-bot
roboclaw-bot disabled auto-merge October 12, 2026 22:22
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
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]>
@roboclaw-bot
roboclaw-bot merged commit 0ae42f0 into main Oct 13, 2026
148 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/briny-shell branch October 13, 2026 06:00
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: qa-lab merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant