Skip to content

refactor(automations): retire heartbeat into ordinary jobs - #164265

Closed
steipete wants to merge 73 commits into
mainfrom
deslop/heartbeat-automations
Closed

steipete wants to merge 73 commits into
mainfrom
deslop/heartbeat-automations

Conversation

@steipete

@steipete steipete commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Adopts the maintainer-approved design in #134994 and supersedes #135933. The original draft was closed by ClawSweeper without merging; its existing supersession comment links here. This task did not close or reopen it.

What Problem This Solves

Heartbeat monitors appeared in Automations while a separate executor owned their runs and several immediate follow-ups. That split made editing, deletion, admission, cancellation, and delivery depend on which path started the work.

Ordinary Automations now owns scheduled monitoring. Process completions, hooks, and restart follow-ups enter normal session execution. The heartbeat executor, scheduler registrations, and model-facing response tool are removed.

User Impact

Doctor migrates supported July 2026-and-newer heartbeat configurations, persisted monitors, and structured tasks. It preserves job identity, history, scratch bytes and revisions, disabled state, cadence and scheduling anchors, pending occurrences, active hours, delivery targets, and tool authority. Completed provisioning receipts preserve subsequent operator edits and deletions. Ambiguous or refused input remains recoverable and cannot execute as a half-migrated job.

Migrated jobs use standard Automations delivery, as directed by the maintainer. Heartbeat-specific duplicate suppression and pre-execution no-route skipping are removed: repeated updates can be delivered, and a missing route no longer skips execution. Ordinary delivery policy records the outcome. No delivery.duplicateWindowMs or delivery.skipIfNoRoute settings are added. Doctor emits the one-time Heartbeat delivery changed notice:

Migrated heartbeats now use standard Automations delivery. Heartbeat-specific duplicate suppression and no-route skipping were removed: repeated updates can be delivered, and a missing route no longer skips the run before execution. Delivery failures follow ordinary automation handling. Review the migrated jobs' delivery settings if you relied on either behavior.

This is an approved breaking plugin-SDK change. Heartbeat execution methods, the heartbeat-runtime package subpath, heartbeat reply helpers/options, prompt-overlay exports, and deprecated ContextEngine.isHeartbeat inputs are removed outright. Bundled callers use canonical session and automation APIs. Migration guidance lists the removals and replacements. The reply-runtime deprecated-export budget remains 1. The newly exposed heartbeatOutcomeStore kind of worker.request diagnostics is also removed with its worker. The non-deprecated heartbeat_prompt_contribution hook continues to serve ordinary proactive jobs.

Custom in-process Gateway handlers must now await context.cron.wake(...) before inspecting its result. This is also a breaking SDK change from the synchronous 2026.9.7 contract; the v4 wire shape is unchanged. GatewayCronServiceContract.remove gains an optional restrictive Claw-removal precondition; public cron.remove JSON fields are unchanged.

The legacy openclaw system heartbeat CLI commands are removed; use ordinary automation inspection and enable/disable commands. Gateway protocol remains v4: historical status/control fields project canonical automation and session state and do not retain another execution engine.

Doctor verifies recovery-copy coverage before retiring legacy data, including repair on an already-current schema after an interrupted cutover. Reused snapshots must cover the complete affected database group. Existing standing approvals remain bound to their exact definitions; a changed definition can require approval again rather than inheriting authority for different payload bytes.

Why This Change Was Made

The draft produced 656 rebase conflicts after main changed 877 of its 970 paths, so the design was reapplied and subsequently rebased onto fresh main. Integration preserves newer worker-backed reads, Gateway-held message authority, agent-end preparation, receipt publication, session-fork execution, and main's test consolidation.

Portable Claw mutations use the serving Gateway Cron owner or its exclusive offline custody. CLI deletion retains its lease; the Gateway worker revalidates database identity/current authority at native commit. Uncertain RPCs never replay locally. Delivery uses platform-send preflight; recovery retains main's admission-publication owner, cutoff, agent-scoped rescans, capacity, cancellation and captured authority.

Integration preserves main's worker-owned read cache/current-actor settings. The existing delivery-generation owner returns effective sharing/delivery/tool policy. Test composition changes organization only; main's Cron fixture cleanup remains. Canonical identity unifies Windows path aliases while event/creation custody stays fenced.

The approved shared-state compatibility fence advances 20 to 21; the agent schema stays at 24. Existing tables are reused and heartbeat_outcomes remains inert. Older readers refuse new state; rollback uses verified backups. There is no additional schema or permission-policy change.

Production growth was explicitly approved by Peter on 2026-10-03. Squash-parent counts will be verified at landing.

LOC audit: head 67729b830062f3a1ccb8f680f945286b1d016e8e against rebased base 9bdad160d80686de5d080e4f6f128736f4831aef: production +18,757/−14,903 = +3,854, tests/support −5,525, tooling +390, docs/config/generated +86; total −1,195 (+47,654/−48,849, no rename detection). Counts include comments/blank lines; no binary paths.

Direct comparison against captured current main df8b0cbd63b230690a7778385ff475d4d31efca6 is +24,898/−19,126 = +5,772 production LOC. Its extra 1,918 net lines reflect unintegrated main changes. Six conflicts prevent a clean composed-tree comparison; the current-main top-15 table is in the blocker comment.

The earlier −2,632 was total LOC, not production deletion. Recomputing c31f76bb against 320e52b4 with the same audited rules gives production +3,585, tests/support −6,594, tooling +297, docs/config/generated +80. Current production is 269 lines above that comparable snapshot. The old published category split and +45,730/−48,362 rendering are retained as historical reports, not relabeled as this exact calculation.

Production growth is concentrated in portable Claw automation/custody and recovery, Doctor migration, and ordinary session-event admission/delivery. Main's Cron custody contract required the Claw owner repair; unchanged code already on pinned main contributes zero to this diff. The old heartbeat executor, dispatcher, scheduler and wake owner are removed. Doctor, portable-artifact, transcript/status and v4 control/prompt-hook adapters remain production; no deprecated heartbeat SDK alias is retained. At 7f, +3,852 became +3,860: excluding one deleted Swift preview line adds 1 to production classification; round four added 7 (isolated hook +14, retired trigger/formatting −7); subsequent main integration brings the current delta to +3,854; the final receipt extraction and planner repair add five net production lines.

The earlier audit covered 639 prior production paths and re-read 638 paths from 1,149 immutable blobs. Its sole classification correction was a DEBUG-only Swift preview. The final audit confirms the planning and publication-state changes as production; tests/support, tooling and generated output remain separate. Current counts use the pinned base/head above.

Top 15 production areas by absolute net change
Area Added Deleted Net
src/infra 1,218 6,243 -5,025
src/claws 3,663 739 +2,924
src/commands 2,811 855 +1,956
src/cron 2,683 1,497 +1,186
src/gateway 2,148 1,261 +887
src/auto-reply 2,043 1,316 +727
ui/src 811 330 +481
src/cli 482 56 +426
src/agents 866 1,076 -210
src/sessions 283 80 +203
src/state 240 48 +192
src/plugin-sdk 229 54 +175
src/plugins 243 106 +137
extensions/codex 3 130 -127
src/flows 147 57 +90
Other production areas 887 1,055 -168
Production total 18,757 14,903 +3,854

Evidence

Published head 67729b830062f3a1ccb8f680f945286b1d016e8e is ready but CONFLICTING/DIRTY against df8b0cbd63b230690a7778385ff475d4d31efca6. All three authorized rebase rounds are consumed; no further integration or merge request was started. Final corrective source: 25 receipt/permission tests, 7 planner tests, core/config types, P1 reviews, runtime cycles 0 (205.22 s), Madge 0 (155.38 s), suppression 3/3 (67.83 s) and line-cap ratchet passed. Planner regressions went 3 failures→7 passes; counted lines remain 2,981→2,981. No baseline increased. Current-head test CI is blocked by six conflicts. The prior run had four failed root jobs plus the aggregate and 139 cancelled checks, all individually attributed. Doctor's 60-second child timeout remains unresolved; the failed import-parallelization experiment was reverted. Local prestart steering had two timeouts/one pass; X E2E stopped at the full-runtime preparation boundary. No full changed-check/SDK declaration preparation was repeated. Earlier evidence remains historical; no green or landing claim.

Historical CLI correction at a2e: P1 clean, agents-other types 14.73 s, 1 case/108 filtered, 414.43 s. Exact a2e: runtime cycles 0 (182.04 s), Madge 0 (128.27 s), suppression 3/3 (38.71 s). SDK e991→21f8 passed, 2,228.056 s: 151 modules, 3,649→3,640 exports, nine removals/fifteen signatures, 938 reachable, zero additions, deprecated budget 1. Exact-21f8 surface passed 21.176 s, full build 3,188.23 s, Doctor residual/recovery/backup/archive/interruption cohort 99/99, 1,336.72 s. Those then-unchanged inputs qualified this proof only through 7f3dc75c, not current-head execution. Interrupted 8b655 build/API attempts remain non-passes.

Recovered a2e fixture history: full core/test types passed 1,639.695 s, dashboard 1/1, 197.96 s. Cron initially passed four/failed two: missing assertCurrent made no-pacing/shared-context cases return Automation invocation is no longer active. The exact no-op callbacks from published 274 pacing tests were restored after main moved them. Management/invocation then passed 16/16, suppression 3/3, combined 121.243 s; P1 review scoped-clean. These tested/reviewed dirty-a2e hashes equal committed 7f3dc75c. Dashboard bytes are unchanged; the type pass preceded only the restored callbacks. Earlier check-changed exit 2, 1,367.028 s found stale consumeCronNextCheckProposal; later proof does not relabel it. Recovered check-changed: 28 stages passed; exit 1 after 2,545.454 s when extension lint could not prepare SDK declarations within the unchanged 300-second limit. Core/extension types, core lint, ratchets, and all three Knip scans passed (zero unused exports). No extension lint diagnostics ran. The isolated native follow-up also timed out (362.579 s); supported artifact packing refused its stale full receipt (87.751 s). No timeout increase, stamp edit, restore, or further cold retry followed. Extension lint remains unproven; exact-head hosted CI is required.

Round-four focused proof: 169 passes/15 files at eee4a848ceafdb4d50c96ebc377ef847fa1c0a8d, one Linux-only skip and 127 filtered cases (neither credited). Those tests/dependencies are byte-identical at 21f8; whole-production equality is not claimed across the hook repair. The 80-case provider cohort includes ten Doctor cases (614.242 s); Gateway runtime/recovery took 125.410 s. Bounded integration and isolated-hook P1 reviews were clean.

Retirement audit removed the dead internal heartbeat trigger and repaired isolated prompt-hook parity: migrated isolated jobs use the existing receipt-qualified heartbeat_prompt_contribution owner with current/abort authority, without an executor/run flag. Real isolated entry: before 1 failure/2 control passes, after 6/6. Single-worker cost 114.52 s outer/102.33 s Vitest; normal CI seconds pending. Final-patch core types passed 13.011 s. Exact-21f8 four-file hook/sibling proof then passed 10/10, 314.945 s.

Historical rebase cohort: 72/72, six files/four shards, 1,317.54 s. The uninstrumented child finished naturally; its killed wrapper left no exit receipt. Not final-head execution.

Historical CI for published predecessor 27458952d1902b7b2da28367fecea2d8f05c25e6, base feab6b02ff4f308c3ec410103314dde75385fbb2. Exact-head CI 37565194841 tested merge 10d69cd71116101eb23aa57ccd2c1f8d40340cbe with main 2beca62e67b1fb3bc1f55ad3025f2eb5d50d4c3d: 202 jobs, 175 passed, 13 failed roots, one failed aggregate, 13 unselected skips, zero cancellations. A refreshed commit-wide census has 297 terminal check runs: 230 success, 14 failure, 52 skipped (not credited as passing proof), one neutral, zero cancellations. Security-fast and all seven Security High checks passed; the neutral CodeQL aggregate is not a full green scan. The aggregate explicitly confirms unselected families; no cancelled/zero-step execution is credited.

On predecessor 274, final-correction check-changed passed in 1,563.411 s, hosted build in 140 s, and SDK declarations in 85.7 s. Executed cases verify node launch 1/1, paired-node lifecycle 2/2, MCP HTTP 63/63, and terminal tool 1/1; the last two ran inside failed jobs, not blanket job passes. Other MCP output is not separately credited. This is not final-candidate build or CI proof.

Retirement/admitted-write-loss history remains below. The separate config-retirement repair is integrated; no protected-owner/scripts/pr closure exception here. Exact-head CI remains required; authority/fence/security/cancelled/missing-proof failures are not waived. ClawSweeper revision 22 cleared the prior final-send authority concern; upgrade limits follow.

Failed predecessor-274 job Individual disposition
checks-ui-e2e (6/9) Stale 500k expectation versus main's 8M reproduced on main. Unpublished test correction passed 9/9 and review; no production limit changed.
checks-node-changed-compact-large-9 Main replay reproduces retained leases 4 vs 1; reconcile planner still one.
checks-node-changed-compact-small-8 Main replay reproduces two complete/native-exit lease assertions, 2 vs 1.
checks-node-changed-compact-small-3 Fixture did not fill main's four-slot idle cache. Unpublished correction passes 10/10; removing the barrier fails all four controls. Production fences unchanged.
checks-node-changed-compact-large-11 Talk/history failures report closed agent execution admission.
checks-node-changed-compact-small-10 WebChat/create closed-admission failures plus a distinct history-projection assertion.
checks-node-changed-compact-large-16 Chat identity closed-admission failure and two plugin-retirement config mismatches.
checks-node-changed-compact-large-15 Four list/changed metadata cases report closed execution admission.
checks-node-changed-compact-large-7 Live-event stop reasons missing and restart admission closed; main reproduction.
checks-node-changed-compact-small-1 Board reopen returns publication/cleanup AggregateError; main reproduction.
checks-node-changed-compact-large-14 Repeated provider discovery duplicates registration. Unpublished inspection-owner repair passed 26/26, types, cycles and review.
checks-node-changed-compact-large-27 Reproduced on current main. Closing the finished seed phase removes its lease before all 64 parallel agents; subsequent fixture correction passes with limits unchanged.
checks-node-changed-compact-large-4 Fourteen closed-admission cases remain. The two byte failures are delayed WAL checkpointing; subsequent async-close fixture correction passes 10/10 with byte/row assertions intact.
openclaw/ci-gate Downstream aggregate of the thirteen individually listed root jobs.

Failed logs are retained; per-failure main attribution is no current-head pass/blanket exception. Config retirement has a separate owner. Integration retains main's mock/FsSafeError fixture, three retired heartbeat-file deletions and 513871… captured-destination fix.

At 274, MCP extraction preserved 63 cases, lines 2,405→2,397. The provider fixture's partial real import preserved exports; nine cases/P2 passed. Tooling pruned one mock-export row (10,505→10,504). Production/Gateway-methods/other-core/plugin types passed; both cycles zero, exact suppression 3/3. No new suppression/baseline/delivery option/deprecated heartbeat alias.

Historical SDK feab6b0→a517ae5b passed, 1,234.183 s: 151 entrypoints, 3,649→3,640 exports, 2,107 callable, nine removals/fifteen signatures, no entrypoint changes, reply budget 1. Digest f4628e5800b28e7dcc96e6699f34c61847c387bd89adb7e18fb65355f9f6131f. Only web-provider test/shrinking mock baseline changed a517→274; identical SDK/production/dependencies qualify this comparison, not execution at 274.

Historical 6e9b0d29 build/packaging passed 3,040.650/971.768 s. The 906 changed build inputs prevent whole-build equivalence to 274, whose hosted build passed separately. Neither is execution of the candidate build.

6e9b0d29cfe rejects heartbeat source/scratch conflicts before Gateway stop, including older-updater rehearsals that omit workspace files. Doctor/admission share monitor/preflight owners, preserve both inputs and direct reconciliation before retry. No schema/config/protocol/dependency/SDK change. 142/142 passed across six files with scoped-clean P1 review. The sole follow-up represented receiver bytes as lossless hex instead of Buffer output; 3/3 passed. This qualifies test representation, not changed production or weaker equality. Three type graphs, lint and both cycle checks passed (zero cycles). Delta over ca206: +186 production, +206 test/support, +5 docs.

The preceding three corrective commits remain:

  • 621acaf58bf preserves the Gateway plugin generation/artifact facts through discovery, repairing Cron artifact selection without a new registry owner. Four Cron and nine resolver cases passed after frozen reinstall replaced stale local fs-safe 0.23 with pinned 0.24.1; mismatched-install runs are not proof. Delta: +16 production/+2 tests.
  • 2d7c9053293 applies tool allow/deny before provider/credential discovery in both web-search constructors. Restricted tool assembly avoids provider loading/auth-store admission. 23 cases passed, with core/test types, lint and P1 review at recorded revisions. Original local Gateway attempts stopped in build preparation before assertions; hosted reuse proof remained required. Delta: +39 production/+100 tests.
  • ca20612f898 explicitly selects a key-free search provider for broad MCP fixtures and advertises the node supervisor's existing prompt-context capability. Node E2E types/lint/format/P1 passed, but local wire preparation executed zero cases. MCP tested-merge baseline: 30 failed/59 passed; reviewed fixtures plus policy repair: 88 passed/1 failed. Original broker failures disappeared; first allowed sessions.patch still exceeded unchanged 10 s. Cold import is plausible, unproven; no retry, prewarming or deadline change. Hosted node and MCP/session-control completion remained required. Delta: +10 test/support.

The unchanged PDF sibling remains 9 passed/1 failed locally: its deferred negative case returned unsupported_pdf_reference instead of rejecting NoPDFmodel. Original/synthetic-provider probes and two environment-isolation attempts established no safe cause/fix; one saw OpenAI in both image-support states, with credential source uncertain. All diagnostic/speculative test edits were reverted. This is unresolved local failure, not passing replay, baseline change or proven current-main red.

Final-send authority passed four cases in one native ca20612f invocation, unchanged deadlines/original harness. Each made one model request under active read-worker scope. Holding synthetic Slack conversations.open yielded final POST counts 1/0/0/0 for allowed/config-revoked/session-replaced/physical-owner-revoked. The allowed durable row completed; revoked rows were absent after SDK drainage and fresh-owner reopening, without model/send replay. Physical-owner revocation rejected stale admission and preserved custody before settlement. Native 800.20 s, command 1,158.626 s; three excluded ordinary cases are not credited.

This authority observation is source-qualified only through a517ae5 and test-only 274: 43/47 owners byte-identical, four changed owners and 23 adjacent paths inspected. Slack changes preserve default-account/plain-text/API-URL inputs; both final fetch-authority functions are identical. Empty-aggregate cleanup is unentered. Database lifecycle retains one unchanged agent/store; Slack disablement does not retire topology, while explicit shared-owner closure retires/joins the executor under unchanged admission checks. Successful catalog-wait and destination fields are source-qualified, not re-executed. No exact-274 execution or whole-graph identity: MCP scope, multi-agent LRU, CLI/utility-model, remote-worker and Doctor/backup branches are excluded. Synthetic HTTP/in-process reopen is not live Slack, OS restart or natural scheduling. Earlier timing failures/background-startup gap remain.

Earlier separate-state restoration passed on preserved a7 with released 2026.9.8 backup: shared 108 tables, two agents 56 each, contents/schemas 19/24/24, config/source/sidecars preserved. Released readers passed shared preflight and per-agent session reopen. Native sanitization omits exactly one source-qualified transient coordination lease; other rows/schemas and original state/immutable inputs stayed exact. This proves neither automatic rollback, relocated-path Cron execution nor full restored-Gateway lifecycle.

Historical a7 Doctor exits 1/0/0, notes 0/1/0. Pre-repeat assertions passed schema 21/24/24, job/receipt/scratch, both agents' sessions/transcripts, source retirement and config migration. The harness exited 1 at later whole-table equality; full retry/repeat inventories and repeat config/source bytes were not retained. Its truncated 54-line diff exposed only both agents' schema_meta plus shared agent_databases.last_seen_at, config_machine_state plugin-index and schema_meta.updated_at. No post-repeat invariance/global idempotence claim; later complete-capture audit is separate evidence, not a revised exit.

Upgrade proof: immutable 6e9b0d29cfe6ce5ef3e6f638c0f0d5c516adc6ae, released 2026.9.8 / fc23bc864e4553c2d215e479eeec47b67a0bf943, local Docker. Scratch conflict was refused before candidate migration/Gateway stop; original PID/readiness, package, config and captured sources survived. Exhaustive database audit allowed only the updater's failure ledger and same-owner lease renewal; arbitrary pre-existing files were not captured in that refusal cell. Separate restore/recovery (263.20 s) captured complete database/file/mode snapshots through conflict, restore, original-reader reopen, retry and repeat. Doctor exits 1/0/0, notes 0/1/0; posthoc audit passed six boundaries and eleven corruption controls, preserving original jobs/scratch/sessions/config/files and exact source-qualified schema/Doctor metadata, backup-manifest and integrity-receipt deltas. Original harness exit 1 remains a fixture assertion failure. This is restoration/convergence, not automatic rollback; historical updater rollback remains failed. Six Doctor/admission owners match 6e→274 only: no whole-graph identity or 274/21f8 execution. Proof-helper autoreview is incomplete, not clean, after invalid source-attribution records. No hard-kill recovery, natural scheduling, external delivery or final-head execution claim from this cell. Owned containers/volumes removed; no cloud leases created.

The a7/fc23 restore fixture had built-in FTS5, no vec0/vectors. Main 058de57 removed extension loading but preserved snapshot copying/integrity/publication. Qualification is ordinary SQLite only: not final-head execution, vector/unsupported-CPU coverage or whole-build identity. Owned containers/volumes removed.

Older changed-check/SDK/types/cycles/suppression results retain their source; candidate changed-check/CI remain unresolved. Inherited OPENCLAW_TESTBOX=1 routing was interrupted/joined during 6e9 preparation, with no observed lease ID/claim/remote result. Recovery unset it. Interruptions/tool failures are not passes.

The previous published corrective head was 0a62246409c436fe64582a63eff0201e4503e88a, based on b6f94b8193a; its exact leased push replaced 51a4100ee38a85e564581985eef2f3a2f8d937e6. Exact-head CI 37545530966 completed with 180 passed, eight underlying failed jobs, one failed aggregate, and 13 unselected skips; zero cancellations. Every failure and its investigation are recorded below. Before that 0a push, captured main was 51f5546f027e3ec9ac2acfb46bc4cdaede2ec4be and local merge inspection was clean. Completed preflight checkout evidence binds this run to actual merge 871e34a89b951b1f21be6d0b49924330f94e8425 of 0a622464 into newer main 2c620bbfe84c17fce0a684e8fee7a261310dab19; this is distinct from the earlier local merge inspection. No completed candidate-wide pass or merge readiness is claimed.

Before its push, exact 0a62246 passed production types, both cycles (zero runtime/no new madge component), suppression 3/3 and focused corrections. Broader type graphs/nine root test-lint batches passed at recorded source. Exact-0a full-tree Knip passed 203.511 s, zero entries, unchanged 600 s deadline; earlier concurrent timeout remains, with prior production/script scans source-bound. Ordinary PR CI excludes dependency/dead-export scanning. Broad local lint stopped before diagnostics at unchanged 300 s SDK-preparation deadline. Hosted build generated declarations in 114.4 s; extension lint validated its same-run 12,174-file artifact and ran selected groups. All six planned core/root/scripts/extension lint jobs passed, closing matching preparation/lint coverage without relabeling local timeouts. No timeout/retry/suppression/baseline/budget change.

Two signed corrective commits follow the exact-51 CI failures. The requester Stop defect was at the recovery adapter: it checked a row-local cancellation claim rather than the canonical claim owner. Two SQLite regression controls failed before the repair; 89 cases passed after it, alongside relevant types, lint, line caps, and independent P1 review. A local attempt at the original Gateway suite failed readiness before reaching its assertions. The exact-0a hosted requester job subsequently executed all four original cases successfully, including Stop and same-session follow-up (16.439 s, whole file 77.077 s). The X composition fixture now joins its existing child release before reading the publication. The allowed/guest/revoked flow passed; a paired control on Node 26.5 failed before the change with HTTP 503 and passed after with HTTP 200. The exact hosted HTTP 404 was not reproduced, so the local control is causal fixture-settlement evidence, not a claim to have reproduced that precise response. The exact-0a hosted X job then executed the original allowed/guest/revoked case successfully (10.533 s, exit 0).

Earlier a7: build, 522/522 in 29 files, Doctor three passes/five markers, qualified through test-only 51a. Notices 1/0/0; migration/edit/deletion preserved. Markers did not run an installed old updater. Exact-0a SDK passed nine removals/fifteen signatures, budget 1, superseding inconclusive narrow emission; its mismatch remains recorded. Prior-source proof only.

Historical a7 final POST counts 1/0/0/0 came from separate invocations: three revoked passes; allowed first timed out at 120 s, then passed observation-only after drainage/reopen, not a fix. The 24-file 0a qualification covers admitted delivery only, not exact head/whole graph/new cancelled-outcome admission. Non-main junction create→describe/list passed fixed-owner assertions after two 10 s RPC timeouts; no public-creation repair claimed. Background startup failed before assertions; bounded 0a logs prove neither background nor junction coverage. These are synthetic HTTP/in-process observations, distinct from the later single-invocation ca proof.

Historical actual updater rollback failed: released 2026.9.8 / fc23bc864e4553c2d215e479eeec47b67a0bf943 rehearsed, captured three databases, then hit live Doctor scratch conflict. Both agent stores were marked changed: state-migrated-no-rollback, rollback not attempted, Gateway not serving. Physical-generation sensitivity is unproven; generations were not captured. Owned container/volume removed; earlier npm transport failures remain. Later admission/separate-state recovery does not convert this to a pass. Automatic in-place rollback remains failed proof; no hard-kill recovery. Schemas 21/24, no further schema/durability change.

Historical c31f76b changed-check: 50/54, not green. Admission line cap/stale X caller were later fixed; full-tree Knip lacked proof, broad lint named two inherited files (not a current-main exception). Reboots lost /tmp receipts; handoff/public-history claims remain distinct from surviving a7/hosted evidence.

Earlier repairs preserve admission/hook caps 700/1,000, fixture origins, background capacity, Doctor capture injection, Claws/Cron custody and main's output-accumulator deletion. Windows custody 32/32 used real storage/simulated aliases, not native Windows E2E. No new suppression, deprecated heartbeat alias, forbidden delivery option or budget increase.

Latest-head Crabbox/Testbox natural scheduling/delivery remains the accepted gap after the ten-minute allowance; no further cloud leases. Earlier records report five AWS leases released, both Testboxes completed, historical Hetzner absent; per-ID /tmp receipts were lost on reboot. Recovery census: no active Testbox among 102 deslop-10 claims and no verified task-owned active AWS lease. Unknown owners were preserved; no operator/Team Gateway changed.

No admin exception is requested over authority, fence, security, cancelled, zero-step, or otherwise missing proof. Main-red exceptions require current-main reproduction outside changed causal paths. Hosted CI on the corrected exact head remains the landing gate.

Complete failure inventory for published predecessor head 0a62246

CI 37545530966 completed against tested merge 871e34a89b951b1f21be6d0b49924330f94e8425 with 180 passed, eight failed root jobs, one failed aggregate, and thirteen unselected skips; no cancelled jobs. All nine failed job logs are retained. Separately, the complete exact-head check-run census is 260: 226 success, 24 conditional skips, nine failure, and one neutral; all nineteen attached workflows are terminal (eighteen successful, one failed CI workflow). All seven Security High checks, security-fast, and thirteen selected Critical Quality checks succeeded; dependency and security-sensitive commit statuses are successful, while the combined CI status is failed. The CodeQL aggregate is neutral, not a full green analysis. ClawSweeper revision 20 retained its authority and upgrade-recovery requirements before this newer qualification evidence. Successful prior-failure cases are credited only after inspecting their actual executed test output: requester Stop 4/4 and X publication 1/1 passed; the original node-worker test failed a different, explicit update gate and is not declared resolved.

Failed job Observed failure Attribution/status
UI E2E 5/9, 112550644821 Three PR-chip spacing assertions remain 12 pixels versus the allowed maximum of 8. This was the inherited main UI failure documented below; no causal file changed by this PR. Newer main now includes 7ac5dbaddcd / #166347, which collapses empty child-attention gaps. The tested base 2c620bbf predates that repair. The earlier main-red proof is not a current-main exception after this fix; the next integrated candidate needs its own corresponding result.
Node compact-large-15, 112550652455 trigger-script.preparation.test.ts does not preserve the expected Gateway artifact selection through both preparation loads. Candidate 621acaf58bf retains the scoped plugin/artifact owner. The accepted local current-install proof passed 4 Cron and 9 resolver cases; exact next-head hosted proof remains required.
Node changed-4, 112550652472 The original node-worker launch flow is rejected because its device worker requires an update before hosting sessions. Candidate ca20612f898 advertises the current prompt-context capability in the synthetic node fixture. Local types/lint/review passed; the wire attempt executed zero cases before preparation was stopped. Exact hosted after-proof remains required.
Node compact-small-15, 112550652509 Doctor/lint schema inspection observes duplicate registrations for the synthetic failed/fleet tools. The candidate preserves scoped artifact facts and checks tool policy before provider discovery. Their effect on the original Doctor registration assertions still needs exact next-head proof; no assertion was weakened or Doctor after-pass claimed.
Node compact-large-8, 112550652519 MCP session-control and swarm-collector cases reject shared-state admission because the host broker is absent. The combined fixture/policy repair removed all 30 original broker failures across this job and compact-large-20. The local combined 89-case run still has one allowed sessions.patch deadline failure (88 passed); authority tests are not waived.
Node compact-large-20, 112550652558 Four MCP collector HTTP calls return 500 instead of 200; a terminal-tool case also lacks the shared-state host broker. Covered by the same combined repair/control: baseline 30 failed/59 passed, then 88 passed/1 distinct protocol deadline failure. No inherited-failure exception or full passing composition is claimed.
Node changed-12, 112550652614 gateway.test.ts:761 observes two workspace plugin loads where reuse requires one. Candidate policy/artifact repairs address discovery ownership; 23 web-search cases passed. Both local Gateway attempts stopped during build preparation, so the original hosted reuse assertion still needs exact next-head proof.
Node changed-22, 112550652667 Both paired-node lifecycle scenarios are rejected by the device-worker update gate. Same current-capability fixture correction as changed-4; no update fence bypass. Direct types/lint/P1 passed, but local wire execution was not reached and hosted after-proof remains required.
CI aggregate, 112556940953 Selected Node/UI families contain the eight failed jobs above. Downstream aggregate, not an independent product failure.

The thirteen zero-step skips remain unselected product families plus release-only sealing; they supply no execution evidence. No selected cancellation or zero-step exception is requested. The CI failure table is an attribution record, not merge permission: unresolved authority, compatibility, or root failures still require their owning repair/proof.

Complete failure inventory for predecessor head 51a4100

CI run 37537182625 tested head 51a4100ee38a85e564581985eef2f3a2f8d937e6 through actual checkout merge 740b3c1ff9a3f8c554778c1b90b40a9aadf49cb6 with main dd1c1354350ece54f14aae4032e19e349ad98b03. It completed with 184 passed, four underlying failed jobs, one failed aggregate, and 13 conditional skips; zero jobs were cancelled. Every failed job log was fetched once and retained. The complete check-run census was 272: 233 success, five failure, 33 conditional skips, and one neutral. Three separate commit-status contexts reconciled to successful dependency/security-sensitive reviews and a failed combined CI gate.

Failed job Cause and attribution Corrective status
checks-ui-e2e (5/9), 112523279714 Three chat-pull-requests.e2e.test.ts assertions observed a 12-pixel gap where the maximum is 8, at lines 228 and 397. The identical failures occur in completed scheduled main job 112512148043, head 1a7f9628. No causal test/render/CSS/support path is changed by this PR. The relevant owner bytes were qualified through captured main 51f5546f027e; intervening CSS cleanup did not change PR-chip/context spacing. Inherited at that captured main; subsequently repaired on main by 7ac5dbaddcd (#166347). No assertion or style was weakened in this PR. The old failure is retained as historical evidence, not a current-main admin exception.
checks-node-changed-4, 112523290231 node-worker-launch-wire.e2e.test.ts exceeded its unchanged 240-second deadline while transferring/reconciling a Gateway-push workspace through a device runner. No matching current-main failure established attribution. Unresolved; passing older main proof or source parity alone is not a fix or main-red evidence. No timeout increase or retry was added.
checks-node-changed-18, 112523290257 The requester Stop case expected two model requests but observed one after Stop and same-session follow-up, at gateway-restored-requester-settle.e2e.test.ts:157. Investigation identified the recovery adapter's noncanonical cancellation-claim check. Canonical owner repair integrated: two failing SQLite controls → 89 passing cases, with review/types/lint. The original local Gateway replay stopped before assertions at readiness, so exact corrective-head hosted flow remains required.
checks-node-changed-19, 112523290233 X publication composition returned HTTP 404 where the allowed published child should be readable (line 544). The fixture did not await its existing child-release boundary. Existing release is now joined. Paired Node 26.5 control failed with HTTP 503 before and returned 200 after; allowed/guest/revoked case passed. Exact CI 404 was not reproduced. New-head CI must establish the original hosted path.
openclaw/ci-gate, 112530808496 Aggregate rejected the selected UI E2E and Node test matrix families containing the four failures above. Downstream of those individually attributed jobs; no separate product defect or bypass claim.

The aggregate explicitly records selected=false for all twelve zero-step product-CI exclusions; the thirteenth skip is full-release-only evidence sealing. None is execution proof. There were no cancelled or selected-zero-step jobs in this run. Full-tree Knip was not selected by ordinary PR policy and is not hidden among the successful jobs.

The neutral CodeQL aggregate reflects five absent report configurations, not a passed full scan: UI/web-media quality and native Android/macOS workflows exclude PR events, while the network job's fast diff scan completed and deliberately did not select full CodeQL. All seven selected Security High jobs passed. A brief security-status invalidation during post-CI reevaluation was replaced by the completed successful maintainer-authority result; the final combined CI status remained failed. ClawSweeper revision 19 had no code findings but retained the authority and upgrade-recovery proof requirements. This predecessor evidence does not clear them or certify the new head.

Complete failure inventory for published head c31f76b

CI run 37520283171 is completed against published head c31f76bbba9bfbe250fcd83d7b308ea3cc426b50: 175 passed, 13 underlying failed jobs, one failed aggregate, and 13 zero-step conditional skips; no CI job was cancelled. All fourteen failures are listed individually. Current GitHub annotations were recovered for every failure. The full failed-log archive request failed with an HTTP/2 stream cancellation before returning bytes; targeted security and typecheck job logs were then successfully retrieved once. No empty archive is treated as evidence. Historical local corrective results are qualified by the lost-receipt notice above and do not establish the corrected head’s CI.

Failed job Source cause and attribution Correction owner / current status
security-fast (112466162580) Production dependency audit found two high findings under GHSA-6qxp-vccf-f47h: @modelcontextprotocol/client <2.2.0 and @modelcontextprotocol/sdk <1.31.0 could send credentials to a server-selected authorization server. Main correction c39d9b0692d upgrades MCP SDK to 1.31.0 and is included in the local candidate. Security requires a completed new-head pass; no bypass.
build-artifacts (112466162649) PR fixture migration: built TUI PTY Gateway exited before readiness with code 78; the synthetic configuration retained legacy heartbeat shape. Canonical fixture configuration is integrated. Historical local PTY proof passed; new-head built-artifact CI is required.
checks-ui-e2e (2/9) (112466162754) Stale UI fixture: cloud-reconciliation-followup.e2e.test.ts:122 waited for Cloud · syncing files after the UI adopted Worker · syncing files. Main correction c39d9b0692d changes the expectation and is included. New-head UI CI is required; no blanket inherited-failure exception.
pr-fail-fast (112466163022) CI tooling failure: PR failure monitor unavailable: The operation was aborted due to timeout. No product attribution or main-red proof established. The new-head monitor must complete; this did not cancel the c31 CI jobs.
checks-node-changed-compact-small-15 (112466168498) PR integration fixture drift: four Cron wake/script-wake cases expected pre-cutover optional-argument shapes. Assertions are aligned with canonical session admission; historical correction proof passed 20/20. New-head Cron CI required.
checks-node-changed-compact-large-16 (112466169043) PR hook fixture drift: immediate-wake arguments omitted current admission/creation fields; terminal-session event fixture supplied no admitted origin. Canonical options and origins are integrated; historical focused proof passed. New-head hooks CI required.
checks-node-changed-compact-small-2 (112466169116) PR exec egress fixture drift: two terminal-result cases lacked captured session origins, so their notification assertions were false. Explicit fixture origins are integrated. Historical missing-origin controls failed as intended and the corrected exec cohort passed 122/122. New-head egress CI required.
checks-node-changed-compact-large-8 (112466169350) PR completion fixture drift: identical full-slug reuse expected two independently admitted completions but lacked explicit origins. Explicit fixture origins are integrated with the same exec cohort/control evidence. New-head completion CI required.
checks-node-changed-9 (112466173846) PR fixture migration: active-context preflight Gateway exited before readiness with code 78 because the fixture retained legacy heartbeat configuration. Canonical fixture configuration is integrated. Historical real-runtime active-context flow passed 1/1; new-head CI required.
checks-node-changed-21 (112466173916) Unresolved requester Stop failure: gateway-restored-requester-settle.e2e.test.ts:157 expected two model requests but observed one after Stop and a same-session follow-up. The original four cases later passed locally on c31, but no causal repair or main-red attribution was established. Remains unresolved until corrective-head proof; no admin exception.
checks-node-changed-18 (112466174015) PR stale internal caller: X publication composition did not complete its allowed publication because it still used the removed private reply export. Caller now uses getReplyFromConfigInternal. Historical allowed/guest/revoked flow passed 1/1 with relevant types/lint. New-head X CI required.
checks-node-changed-compact-large-20 (112466174155) Doctor fixture drift after main’s filesystem copy-owner change: three ENOSPC cases expected a load error but the obsolete injection point allowed the plugin to load. The candidate injects capture failures at the current copy owner. Historical original result was 3 failed/1 passed; correction passed 4/4. New-head Doctor CI required.
check-test-types-core-4 (112466580667) PR stale internal caller: x-publication-owner-composition.e2e.test.ts:23 raises TS2305 because get-reply.js no longer exports getReplyFromConfig. Canonical X caller is integrated and historical graph proof passed. New-head touched-graph and hosted stripe proof required.
openclaw/ci-gate (112473687501) Aggregate gate rejected security, built artifacts, UI E2E, Node test shards, core test-types, and the failure monitor. Downstream result of the thirteen root failures above; requires new-head completion, not a separate product repair.

The complete published-head census has 288 check runs: 229 success, 14 failure, 43 skipped, one cancelled, and one neutral. The cancelled PR-context job 112466556063 supplies no proof; the later same-head PR context and evidence job 112466675383 completed successfully.

The thirteen zero-step jobs in the primary CI run are conditional exclusions, not execution proof. The prior aggregate records identify unselected Windows, Python skills, real-Gateway UI, macOS Node, plugin/channel contracts, Node compatibility, Android screenshots, iOS release/build, macOS Swift, published-driver update, and PR-excluded release evidence sealing. Other skipped checks are also excluded from proof. Selected jobs that are cancelled or have no executed steps must be rerun on the corrected head; none may be treated as main-red.

The CodeQL aggregate is neutral, not green: five main configurations are absent from this PR’s report—network runtime, UI control plane, web-media runtime, Android critical security, and macOS critical security. The next exact-head security results must resolve the required scope; no security exception is inferred from the neutral aggregate.

Complete failure inventory for published head 184cc3d

The approved source-map-js 1.2.2 correction is present. At 184cc3d3, security-fast and all 18 secondary workflows passed; the main CI run retained the failures below.

CI run 37442567181 tested PR head 184cc3d353561333f4c866448a5e311c7fa6b60d through merge 72a5ecbd498c5943f42a4eeb1c08a28e47276df2 with main 9ad97b209d6e29a9fd9208a85777a82bd81c6fe7. It completed with 174 passed, 14 underlying failed jobs, one failed aggregate gate, and 13 conditional skips; zero jobs were cancelled.

The three gatewayLog failures came from main commit 607d5ee in that merge snapshot; the published PR head and its captured base retained the correct binding. Local corrective proof below does not replace CI on the corrective head. Status records only evidence available when this table was prepared.

Failed job Source cause and attribution Correction owner / recorded status
checks-node-changed-compact-small-32 (112201842056) Main merge regression: run-loop.test.ts could not register because run-loop-shutdown-completion.test-support.ts:54 lacked gatewayLog. Main: binding restored by 7b9405e; corrective-head CI pending.
check-test-types-core-1 (112202390863) Same main merge regression: TS18004 in the config/CLI test type project. Main: binding restored by 7b9405e; corrective-head CI pending.
check-prod-types (112202390954) Same main merge regression: TS18004 in the production type project. Main: binding restored by 7b9405e; corrective-head CI pending.
check-lint-core-1 (112202390865) PR lint defect: src/gateway/server-methods/cron-wake.ts:104 shadows outer cfg (no-shadow). This PR: reviewed rename committed locally in 06f0deef; focused lint and formatting pass. Corrective-head CI pending.
check-lint (112202391079) PR lint defect: test/scripts/run-oxlint-kysely.test.ts:103 shadows outer index (no-shadow). This PR: reviewed rename committed locally in 06f0deef; focused lint and formatting pass. Corrective-head CI pending.
check-test-types-core-2 (112202390894) PR integration defect: chat-send-preparation-ack.test.ts:4 still imports dispatchInboundMessage after the internal dispatch export was renamed. This PR: caller migrated in local 06f0deef; native Gateway-methods type graph passes (293.9 s). Corrective-head CI pending.
checks-node-changed-compact-large-18 (112201841920) Fixture deleted an open SQLite store in agent.session-reuse.test-utils.ts; the WAL identity guard killed the agent.test.ts worker. Reproduced on the actual CI merge. Gateway test fixtures: canonical cleanup repair passed all 392 cases locally on Linux; corrective-head CI pending.
checks-node-changed-extensions-bundle-6 (112201837147) extensions/codex/src/app-server/run-attempt.dynamic-tools.test.ts:53: required-command pending-call/terminal-collection case exceeded 120 seconds. The real five-second attempt deadline expired before command startup, while the test waited on an unbounded spawn gate. Fixture correction uses a coherent fake clock and synthetic budget for its 60-second scenario. Seven cases pass. The completed contrast removes only awaitResults and fails the terminal-content assertion with a still-running response; it is not a pre-fix production replay. Production and Vitest deadlines remain unchanged.
checks-node-changed-extensions-bundle-9 (112201837347) extensions/copilot/src/attempt-transcript-journal.test.ts:1097: rollback fixture expected its injected failure, but schema admission rejected trigger fail_copilot_tool_result. Upstream correction b2fab204 is incorporated. The canonical 37-case file passes in the completed 243e8c97 cohort. The separate TEMP-trigger proposal was not integrated. New-base proof is running.
checks-node-changed-compact-small-8 (112201837357) src/state/openclaw-state-db-schema-repair.windows.test.ts:111: eight drive/UNC, ordinary/namespaced, forward/reverse cases expected four inventory rows and received five. Main fix 09429c73 resets modules in the hoisted fixture. At b2fab204, the original pair passed 39/39, standalone files passed 8/8 and 15/15, and siblings passed 46/46. The separate per-case-spy proposal was not integrated. Corrective-head CI pending.
checks-node-changed-compact-large-7 (112201837480) src/config/sessions/session-accessor.sqlite-deletion.test.ts:314: sibling-preservation assertion received unexpected age-retention archive fields. Four current seed timestamps prevent unintended ordinary age retention while preserving every assertion. Completed proof on 184cc3d3 plus the reviewed patch: 20 standalone runs, three original shard runs, and 32 sibling tests—1,990 passes, no failures or retries. This fixture repair is retained.
checks-node-changed-compact-large-8 (112201837487) src/auto-reply/reply/session-event-permissions.test.ts, new-session case: capture before store creation had no usable generation; normal creation also revoked an admitted absence generation. Creation-provenance repair is integrated. At 243e8c97, all 35 generation/permissions/handoff and 30 follow-up cases pass, as does explicit non-main public creation. A separate generated-key RPC timeout is retained. New-base runtime and public-path proof are running.
checks-node-changed-compact-small-1 (112201837579) src/gateway/server.cron.test.ts: deferred wake returned failure after an unrelated config publication, contrary to the preserved newer-main expectation. Scoped routing/store and current-role checks preserve unrelated-config updates. The no-role authority repair has 40/40 earlier focused passes; current 243e8c97 runtime proof is listed below. Corrective-head CI remains pending.
checks-node-changed-11 (112201841914) test/cli-json-stdout.e2e.test.ts: stalled capability probe expected probe timed out after 20ms, received check timed out after 20ms. Inherited stale expectation: main b898c261 intentionally changed the public wording. Reviewed one-line assertion correction retains error/status/JSON/deadline assertions; corrective-head execution remains pending.
openclaw/ci-gate (112211592812) Aggregate gate rejected the four selected matrix families containing the 14 failed jobs above. CI aggregate: downstream failure; requires corrective-head results, not a separate product fix.

The 13 jobs without steps were conditional exclusions, not dependency-failure cancellations: the tested aggregate gate recorded selected=false for Windows, Python skills, real-Gateway UI, macOS Node, plugin contracts, channel contracts, Node compatibility, Android screenshots, iOS release E2E, iOS build, macOS Swift, and published-driver update. The remaining job seals full-release evidence and explicitly excludes PR events. These jobs provide no execution proof and are not counted as required checks passing. No cancellation or zero-step exception is being requested.

Earlier native failures, corrective controls, and source-bound history

Frozen 13d9044 native checks completed 51 passed / 3 failed. All three failures remain recorded with their repairs:

Native failure Cause Corrective proof
Step 9: mock-export ratchet APNs fixture omitted canonical pairing-module exports. Typed importOriginal preserves exports and overrides; 9/9 tests and the guard pass. Native tooling pruned exactly one obsolete baseline row.
Step 38: core-test-other TS2741: the receipt in session-state-events.test.ts:83 omitted accepted. The successful fixture now supplies its nonrejecting acceptance promise. All 43 cases, the type graph, lint, formatting, and scoped review pass.
Step 42: lint Three shadowed bindings, two callback-parameter reassignments, an unobserved Cron admission promise, and an unbound creation method. Naming/callback fixes plus admission refusal/rejection reporting and receiver-preserving forwarding address all seven diagnostics. Clean 243e8c97 scoped lint passes in 82.335 s. No lint suppression or baseline increase was added.

Cron notification repair: 49/49 on 8b534006 plus reviewed patch. Success stays quiet; async refusal/rejection reports preserve nonblocking post-commit behavior and creation receiver. Warm original-source control failed the missing warning; setup failures are excluded. Included in later 485-case cohort.

Main's worker-owned cache/current-actor settings remain. Return-settings adaptation 25/25, positive owner/fixture bytes matching accepted extraction; removing only the return failed effective read-only/{ webSearch: false } assertions, then was restored. Cron workspace-operation cleanup remains, with three-case priority proof at 243e8c97.

Unix-time-1 fixture seeds let maintenance archive before deletion; four current timestamps retain assertions. At 184cc3d3 plus patch: 1,990 passes (20 standalone runs, three original shards, 32 siblings), zero failures/retries. Real maintenance reproduced the archive fields; replay alone was not causal proof.

The canonical Windows inventory fix 09429c73 was verified on main b2fab204: the original ordered pair passed 39/39, standalone files 8/8 and 15/15, and siblings 46/46. The alternative per-case-spy patch was not integrated. The canonical Copilot fix was also retained; the unintegrated TEMP-trigger alternative's results are not attributed to it. The earlier WAL fixture correction reproduced the actual CI identity failure and passed all 392 cases with canonical cleanup.

Actual 13d9044: build 2,624.34 s, Doctor three-pass 225.44 s (notices 1/0/0), five candidate updater-marker cases 162.98 s, SDK comparison 1,463.701 s, cohort 448/448. All precede two main integrations; test-only qualifications did not rewrite build stamps, and conservative native namespace/config signatures distinguish changes. These are not current-base gates.

Doctor proof uses synthetic July configs/legacy rows, candidate schemas 21/24. Actual npm 2026.9.7 updater proved shared 19→21, agent 24, job/cadence/scratch, old-reader refusal and byte-exact manual restoration, not automatic failure rollback. Later driver cells failed installation/seed/readiness before candidate update: no migration/rollback result. Containers/volumes cleaned; no operator Gateway changed.

13d9044 diagnostic: preparation/admission/commit 2,477/2,834/2,537 ms, publication 7 ms, native write 9.975 s, RPC timeout 10.005 s, handler 10.048 s; this does not diagnose the later 243e8c97 timeout. No deadline increased. Codex contrast removed only awaitResults, failing terminal-output equality with still-running response; not a pre-fix production replay.

Earlier AWS 4a8b982 proved natural 60-second heartbeat→Doctor→Automation scheduling/delivery, same job/quiet hours/route/delivered markers; earlier-head only. Loopback Slack allowed delivery and blocked config/session revocations before POST; recovery variants timed out before model/transport calls. Other HTTP/Gateway startup probes stopped before decisive assertions. The indeterminate old HTTP fixture claim remains; no current recovery/natural-delivery proof is inferred.

Complete feature/scoped reviews retain source-backed dispositions and authority controls. Historical/setup failures and incomplete probes are not current-source passes. No operator Gateway or Team deployment changed.

Visual evidence

These inspected synthetic captures show earlier Control UI, Android and macOS changes. macOS uses the production menu renderer in an isolated 15.7.7 guest, not a full lifecycle test. All seven decoded with nonzero rendered dimensions in the existing Chrome extension session; the rendered Control UI capture was inspected.

Before: special heartbeat monitor in Control UI

After: ordinary automation policies in Control UI

After: ordinary automation scratch editor

Before: Android heartbeat wake control

After: Android ordinary automation editor

Before: production macOS Debug menu fixture

After: production macOS Debug menu fixture

@clawsweeper

clawsweeper Bot commented Oct 3, 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 channel: discord Channel integration: discord channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web app: android App: android app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime extensions: memory-core Extension: memory-core cli CLI command changes scripts Repository scripts commands Command implementations docker Docker and sandbox tooling agents Agent runtime and tooling channel: feishu Channel integration: feishu extensions: anthropic extensions: qa-lab extensions: codex plugin: file-transfer extensions: ollama extensions: copilot channel: reef Channel integration: reef channel: buzz extensions: active-memory size: XL labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

The branch converts heartbeat monitoring into ordinary Automations jobs, migrates existing state with Doctor, and routes immediate background follow-ups through normal session execution.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Substantial source-bound runtime evidence supports the work, but final-candidate upgrade compatibility remains a merge gate.
Proof confidence 🦞 diamond lobster (5/6) The author has verified maintainer authority, so the ordinary external-contributor proof gate does not apply. Recorded real transport authority controls and released-driver refusal/restoration evidence remain credited within their stated source limits; final-planner existing-state compatibility is independently insufficient.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this maintainer-led refactor remains necessary because current main still runs the dedicated heartbeat subsystem. The accepted design is clear, but the final candidate is not yet qualified for landing.

Priority: P2
Reviewed head: 67729b830062f3a1ccb8f680f945286b1d016e8e

Before merge

  • Resolve merge risk - Existing-state upgrade safety is not qualified for the final migration-planner revision: the released-driver refusal and restoration evidence is explicitly source-bound to earlier revisions, while the final head changes copied-state planning.
  • Complete next step - Obtain renewed scoped integration authority, resolve the reported conflicts, and qualify the resulting candidate's changed migration planner through the published updater boundary.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Agent review details

How this fits together

Automations schedules agent work and delivers its results; session execution handles immediate notices and follow-ups. Doctor converts older configuration and stored monitoring state into those canonical owners.

flowchart TD
  A[Legacy monitoring state] --> B[Doctor migration]
  B --> C[Ordinary automation jobs]
  C --> D[Schedule and policy checks]
  E[Background completion notices] --> F[Session admission and execution]
  D --> F
  F --> G[Results and channel delivery]
Loading

Technical review

Best possible solution:

Complete the accepted single-owner cutover with source-qualified upgrade evidence that preserves operator state and a verified recovery path.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bounded bug reproduction: this is an accepted ownership refactor with new per-job policies; current main directly confirms the separate heartbeat executor remains.

Is this the best way to solve the issue?

Yes at the design level: ordinary automation and session owners remove competing execution paths; final upgrade qualification is still needed before endorsing the complete candidate.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 04274119f651.

Merge-risk options

Maintainer options:

  1. Qualify the final upgrade boundary (recommended)
    Retain valid earlier restoration evidence and verify the changed planner through released-driver refusal and successful-upgrade cells on the integrated candidate.

Security

None.

Evidence

What I checked:

  • Current main still needs the retirement: At the fetched main revision, Gateway runtime services still start the dedicated heartbeat runner and invoke its execution owner. No merged fixing PR establishes that this branch is redundant. (src/gateway/server-runtime-services.ts:529, 04274119f651)
  • Accepted design and compatibility tradeoffs: The maintainer-authored body adopts Retire heartbeat into ordinary automations and session execution #134994 and records acceptance of standard automation delivery, heartbeat SDK removals, awaited in-process wake admission, the shared-state compatibility fence, and production growth. These choices do not need another product-acceptance packet. (67729b830062)
  • Captured body identity preserved: The retrieved complete body matches the supplied snapshot: SHA-256 68b5072dddfae34c978c5592f8316f267bf838cab39260d150f321f77330720a and 65,315 characters. Its historical proof qualifications and failed attempts were considered rather than treating omitted prompt ranges as absent evidence. (67729b830062)
  • Final planner changes the upgrade boundary: The final commit wraps copied-state migration planning in the existing artifact-preserving read scope. The body reports seven passing planner regressions, but explicitly limits released-driver migration qualifications to earlier revisions; these tests do not independently qualify the final published-driver composition. (src/infra/state-migrations.doctor.ts:1547, 67729b830062)
  • Durable cutover and operator notice: Doctor verifies canonical job rows and provisioning receipts before completing cutover, then emits the approved delivery-change notice. The branch advances shared-state schema 20 to 21 while retaining agent schema 24, making existing-state compatibility an independent merge gate. (src/commands/doctor-heartbeat-retirement.ts:80, 67729b830062)
  • Upgrade evidence has explicit limits: The complete body records released 2026.9.8 driver proof of scratch-conflict refusal before Gateway stop and separate-state restoration/convergence. It also preserves a failed historical automatic rollback and explicitly disclaims final-head execution. Separate restore evidence must remain credited; it is not automatic rollback proof. (67729b830062)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Reported authored LOC balance production +3,854; tests/support −5,525 The pinned-base body audit separates production growth from test retirement and records explicit acceptance of that growth.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #134994
Summary: This branch implements the accepted retirement issue and replaces the earlier closed, unmerged draft.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

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 an accepted architectural improvement without a newly established urgent user-facing regression.
  • merge-risk: 🚨 compatibility: The accepted SDK removals and schema fence affect upgrades, and final-planner existing-state compatibility remains unqualified.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster 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. Removing cross-occurrence alert suppression can change visible Telegram monitoring output, so the delivery change warrants Telegram Test Server evidence.

Rank-up moves

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

  • Qualify the changed migration planner through the published updater boundary while retaining valid earlier restoration evidence.
  • Resolve the reported conflicts under renewed integration authority and validate the resulting candidate.

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 (28 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-07T03:13:34.328Z sha 2745895 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-07T03:25:39.456Z sha 2745895 :: blocked before merge. :: none
  • reviewed 2026-10-07T04:35:14.236Z sha 2745895 :: blocked before merge. :: none
  • reviewed 2026-10-07T05:06:16.583Z sha 2745895 :: blocked before merge. :: none
  • reviewed 2026-10-07T12:33:55.073Z sha 7f3dc75cd685b1e1d185f3d47eae185a5e4b9da3 :: blocked before merge. :: none
  • reviewed 2026-10-07T13:22:39.165Z sha fa7ff4f4b34e1a1a2942dbdf6ee9f3f0343e2106 :: blocked before merge. :: none
  • reviewed 2026-10-07T13:49:05.833Z sha 761ad74 :: blocked before merge. :: none
  • reviewed 2026-10-07T15:30:59.440Z sha 2574ce4 :: blocked before merge. :: none

Reviewed October 7, 2026, 12:37 PM ET / 16:37 UTC (Revision 29).

@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

CI attribution for published head 761ad7436aeaa05eb119a352ed04594a68aaea43, run 37629622866. The commit-wide paginated census completed with 221 successful, 17 failed (16 roots plus aggregate), 30 conditionally skipped, 1 neutral, and 0 cancelled checks. This records failures; none is being waived. New-head CI is the gate.

Job Attribution and disposition
check-docs (112823611641) PR-owned import sorting in session-state-events.test.ts; corrected.
checks-node-changed-extensions-bundle-22 (112823621295) Codex registration recovery fake omitted skills/list data; main 329b2d52c3b and this branch contain the fix. Focused cases pass.
checks-node-changed-extensions-bundle-5 (112823621379) Codex retry fixture omitted skills/list data; main 9bdad160d80 and this branch contain the fix. Focused cases pass.
checks-node-changed-extensions-bundle-21 (112823621562) Discord partial preview expected output before main’s grapheme buffering. Corrected fixture asserts exact partial updates plus complete final delivery; three selected cases pass, 33 filtered.
checks-node-compact-small-11 (112823621604) Shared-runner cleanup deadline. Candidate/main local reproduction differs from hosted preparation; PR touches compiler inventory. Not qualified as main-red.
checks-node-changed-compact-small-14 (112823621809) Four Gateway owner-continuation cases end before requester admission. Missing replyText theory disproven. Unresolved; no authority waiver.
checks-node-changed-compact-large-17 (112823621892) WhatsApp configured field fixture uses retired summary contract. Mainf277 fixture fix is incorporated; hosted verification pending.
checks-node-changed-compact-small-23 (112823622042) Main 627d16bbdb2 holds trailing grapheme until final drain; exact 4/4/3/1 chunk and no-replay assertions corrected. Focused case passes.
checks-node-changed-compact-small-5 (112823622099) Three read-only migration-plan snapshot/SHM failures reproduce identically on tested merge 796010879c0 and main b35780788c4 (three failures/four passes each). Underlying worker path is PR-touched; strict admin exemption is not established.
checks-node-changed-compact-large-18 (112823622231) Yielded requester loses retained sharing authority. Incorporated main f6e6805b99b repair was absent from tested merge 796010879c0; hosted verification pending; no authority waiver.
checks-node-changed-compact-small-37 (112823630913) Doctor escaped-reference child 60-second deadline. Candidate/main both stop during legacy-state-migration before heartbeat retirement; PR-touched path prevents strict exemption.
checks-node-changed-7 (112823631013) Three terminal children keep delivery pending after requester authority refusal. Incorporated main f6e6805b99b repair; hosted verification pending.
checks-node-changed-4 (112823631079) Node-worker launch 240-second deadline; unresolved.
checks-node-changed-21 (112823631201) Doctor yes-mode 30-second deadline; unresolved.
check-lint (112824202149) Same import sorting; formatting failed before downstream lint. Corrected; new-head lint still required.
check-test-types-core-2 (112824202249) Two retired isHeartbeat fixture arguments; removed. Focused messaging types pass.
openclaw/ci-gate (112834026592) Aggregate failure from 16 root jobs above; no independent product cause.

@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Exact-head CI for 2574ce4e1dfc1c77394ba06998d118ceb036f912, run 37643634089, is complete. Paginated commit-wide census: 92 success, 5 failure (4 roots plus aggregate), 139 cancelled, 30 conditional skips, 1 neutral. The cancellations are missing proof and are not waived; the corrective head must complete those lanes. No auto-merge or admin merge is armed.

Job Attribution and disposition
checks-fast-baseline-ratchets (112871831888) PR-owned duplicate childReleased declaration in the X publication fixture. The duplicate wait is removed locally; main’s key/session-ID settlement wait remains. A subsequent local ratchet exposed publication-owner growth (700→742), now corrected by relocating the unchanged receipt readers to their existing state owner; native ratchet passes.
check-additional-boundaries (112871832099) The no-chained-type-assertions scanner hit the same duplicate declaration. Other boundary checks passed. No rule or suppression changed.
checks-node-changed-compact-small-34 (112871839837) Doctor escaped-reference subprocess reaches its unchanged 60-second limit. Same case previously reproduced on candidate and main before heartbeat retirement ran. This is not admitted as an admin exception because the PR touches its preflight path; unresolved.
check-lint-core-1 (112872380201) Same PR-owned duplicate declaration; scoped type check and P1 review of the deletion pass. Corrective commit pending focused owner proof.
openclaw/ci-gate (112876922919) Aggregate failure from the four root jobs above and incomplete cancelled lanes. No independent product cause; it is not a passing gate.

@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

The final authorized integration round is complete. Published head: 67729b830062f3a1ccb8f680f945286b1d016e8e. Main advanced to df8b0cbd63b230690a7778385ff475d4d31efca6. GitHub reports OPEN, ready, CONFLICTING/DIRTY; a pinned local merge-tree comparison confirms six conflicts:

  • config/test-mock-exports-baseline.txt
  • src/agents/bash-tools.visible-subagent-notify.test.ts
  • src/cron/isolated-agent.helpers.test.ts
  • src/gateway/server/hooks.agent-trust.test.ts
  • src/gateway/server/hooks.background-admission.test.ts (deleted on main, modified here)
  • src/gateway/server/hooks.early-failure.test.ts

All three additionally authorized conflict-only rebase rounds are consumed. No fourth round, auto-merge or admin merge was attempted. There is no merge SHA; the branch is pushed and clean.

The final corrective source passed 25 receipt/permission tests, seven unchanged planner regressions, relevant types, both cycle checks (zero/zero), suppression checks, line-cap ratchet and P1 autoreview. Registry/receipt guards moved unchanged to the existing state owner. Read-only planning uses the existing artifact-preserving scope. No delivery option, deprecated heartbeat SDK alias, baseline increase, schema change or Doctor-notice change was added.

All five failed checks from the prior exact-head run are attributed individually. Its 139 cancellations remain missing proof. The duplicate X declaration is corrected; the Doctor escaped-reference child still reaches its original 60-second limit on the actual tested merge. Parallel imports also timed out (60.35 versus 60.64 seconds); that experiment was reverted and is not a fix. Current-head full test CI cannot qualify a conflicting PR.

Production against the rebased base is +18,757/−14,903 = +3,854. The separate direct comparison against captured current main is +24,898/−19,126 = +5,772. Its extra 1,918 net lines come from unintegrated main changes, chiefly Gateway and Codex refactors; this is not the authored PR delta. The authored table and growth/retirement explanation remain in the body.

Direct current-main comparison Added Deleted Net
src/infra 1,245 6,331 -5,086
src/claws 3,663 739 +2,924
src/commands 2,812 856 +1,956
src/gateway 4,764 2,843 +1,921
extensions/codex 3,375 2,079 +1,296
src/cron 2,683 1,497 +1,186
src/auto-reply 2,043 1,316 +727
ui/src 811 330 +481
src/cli 482 56 +426
src/agents 874 1,145 -271
src/config 512 762 -250
src/sessions 293 112 +181
src/plugin-sdk 229 54 +175
src/state 246 102 +144
src/plugins 244 107 +137

No task-owned cloud lease is active; all local proof processes are joined. Unfinished checkouts and recovery evidence remain. Further integration requires another authorized round or an upstream change removing the conflicts. No gate exception is claimed.

@steipete

Copy link
Copy Markdown
Contributor Author

Closing this oversized integration branch (+47.5k/-48.7k, too large for GitHub to diff), whose final migration revision still lacked upgrade proof from existing state. The approved design in #134994 stays the reference: heartbeat retirement should land as a staged migration on current main, with existing-state upgrade proof at each step.

Closed in a sweep of stale maintainer PRs (no activity for 7+ days). Reopen with a current reproduction if this still matters.

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

Labels

agents Agent runtime and tooling app: android App: android app: macos App: macos app: web-ui App: web-ui channel: buzz channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: reef Channel integration: reef channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web cli CLI command changes commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: active-memory extensions: anthropic extensions: codex extensions: copilot extensions: memory-core Extension: memory-core extensions: ollama extensions: openai extensions: qa-lab extensions: xai gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: file-transfer 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. scripts Repository scripts security-sensitive-changed size: accepted-large Maintainer-accepted large change; exempts ClawSweeper size closure, not review or CI. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant