Skip to content

fix(cron): keep legacy repair in Doctor - #160448

Merged
steipete merged 26 commits into
mainfrom
codex/doctor-cron-owner
Oct 1, 2026
Merged

steipete merged 26 commits into
mainfrom
codex/doctor-cron-owner

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Legacy cron jobs could change ownership, delivery behavior, or authored schedules during ordinary Gateway work instead of a backed-up Doctor migration.

User Impact

openclaw doctor --fix repairs supported legacy ownership and delivery settings before retiring their config markers. The normal openclaw update Doctor phase performs the same repair. Published clients may still send delivery.mode="deliver" to cron.add or cron.update; the request adapter persists announce, while stored aliases remain Doctor-owned. After a direct binary replacement, run Doctor before using unrepaired jobs; unknown delivery modes require an explicit operator choice.

Jobs with unresolved legacy ownership or a noncanonical delivery mode cannot run or launch their watched commands. A due one-shot keeps its enablement and pending occurrence until ownership is repaired, without recording a completed run. The editor requires an explicit delivery mode instead of silently selecting none during an unrelated edit. Ordinary job updates author a missing interval anchor only when the schedule is explicitly edited; Doctor repairs older missing anchors.

Operators with unrestricted session access can inspect unrepaired jobs. Restricted profile and agent views wait for Doctor when ownership is unresolved; canonical creator and agent-qualified session ownership retain their existing sharing checks. Runtime never infers additional access from a legacy SQL owner or default marker.

Why This Change Was Made

The published-driver update cell exposed a second migration defect: canary Doctor imported an absolute live cron.store into disposable SQLite and archived the live JSON before live Doctor could import it. The update reported success while the live database lacked the imported job. The candidate now reuses the existing rehearsal-path owner to retain external legacy sources and symlinked companions while allowing normalization in the private database. Deferred archival leaves removed_source=0; live Doctor performs the final import and archival. This works with the environment contract already emitted by published updaters.

The runtime still normalized legacy input while reading jobs and used full-definition upserts for scheduling, reservation, recovery, and completion. Those writes could persist inferred defaults or replace independent SQL ownership. Doctor now owns normalization and ownership materialization; runtime transitions update their state columns and only explicitly intended enablement changes. Receipts, live-authority checks, catch-up, and settlement stay with the existing worker owners. The async receipt-currentness path carries a canonical-delivery fact from its read worker.

Doctor preserves explicit job/session ownership and gives an existing SQL owner precedence over the historical default. All repairs of existing persisted rows now use the shared verified SQLite snapshot helper. Delivery-only repair takes one snapshot; combined import/normalization and ownership repair retains two snapshots, including the original durable rows and the later imported state. Rows, file digests, and maintenance authority are rechecked after awaited backup and before committing. Grant generations advance beyond both the current row and retained grant generations. Unsupported definitions remain intact while healthy siblings are saved. Session maintenance also carries the caller's environment into the existing lifecycle owner. No database schema or stored-data retention change is introduced.

Agent deletion holds its existing deletion fence and cron lock across the roster commit, then atomically removes cron jobs and scratch and revokes standing grants in the existing write worker. A rejected roster write leaves cron data and grants untouched. A rolled-back cleanup leaves complete rows for retry; a committed cleanup cannot leave orphan scratch. Cleanup failures preserve the deletion fence for retry, including uncertain roster outcomes. Revoked grants are never restored. This replaces the speculative deletion/rollback and separate scratch-pruning paths.

The six-month migration policy uses v2026.3.1 as the current retirement cutoff. These cron formats remain supported: the released job creator, row codec, and schema import can still write ownerless/mode-less jobs or preserve null, deliver, and mixed-case delivery modes. The audited tag is v2026.9.7 (c074824a27c96d3983043f9eeb33823cd1772d8c). The legacy JSON/state/quarantine writers also exist in stable v2026.5.28, and JSON run-log writes exist in v2026.3.1. History traces the job-JSON cutover to 005da57957c and state/quarantine cutover to 87d412d557e; both are after the retention cutoff. No cron format is retired, so no retired-format detector is added here.

Related integration: #161703 deleted the old synchronous runtime-store.ts, but did not eliminate the legacy-repair problem; this PR preserves that worker-write migration and does not restore the file. It also preserves #161935's async receipt reads, #162091's worker-backed quarantine observations, and #162021's serving-owner observations. Inspected overlaps with #159873's one-shot delivery-attempt tracking and #161105's scheduled-tool policy changes concern separate responsibilities and hunks.

Production changes (src/** and extensions/**, excluding tests and test support): +1360 / -875 / net +485. Separately, the UI helper extraction and canonical-parser cleanup total net -2 lines. The additions move supported repairs into Doctor and make runtime refusal and persistence boundaries explicit. Superseded persister APIs and test-only state-publication branches are removed. Oversized files are split by responsibility without raising their ratchets or dropping assertions. Canonical model suggestions use the existing shared parser; nested selector aliases that every supported schema rejects no longer appear as suggestions. The audited repair and inventory implementations now live under the existing Doctor owner; the old store modules are deleted, all callers are migrated, and the read worker remains off-thread. No SQLite scanner exception or baseline increase is introduced.

Significant extraction overlaps: #158844's pending-action behavior stays in the original UI functions; #135889's model-budget assertions must follow their moved test if it lands first. #162192's independent quarantine-only await and Doctor fixture extraction remain with that PR's owner.

Evidence

Candidate 5963ef617460e0a4ca81150370a653f717a8b89d is based on 17f7eb7b21486e4720bd64a410d988d80717250b. Component, integrated, conflict-resolution, and incremental Codex reviews are clean through P2, including the rehearsal repair. The full selected native checks passed at bd1a6cb316a5fd3f2126336e8f86db7714b6e275; range-diff confirms the latest rebase preserves those production patches. Main's complete startup-fixture drain repair d1fcbda9fb8 is retained verbatim. The rehearsal guard passed its regressions, full selected changed checks, package build, and published-driver cell at production commit 2ece77687fbd9e260f5f4d228e6d8bbd43a86519. The final head additionally retains main's equivalent shared JSON/number helpers and routes the native SDK regression to its existing forked Node owner. Those integration boundaries passed 52 tests (137.77 s); the local alias uses the same shared function and keeps the file under its existing 700-line limit. Direct lint passed (5.36 s), and changed-test types passed (67.33 s). All 40 completed ordered fixture invocations passed at cecc6d4f2d43dac941da0e52e2f42d0cd57048dd against clean main 18154cae312943e32491b9d788ad3b6e3bb1ff11: ten per group and revision (2,317.34 s aggregate command wall time). Formatting, whitespace checks, and normal commit hooks passed. No local tests or builds ran.

The final conflict repair preserves #162683's own-conversation wait behavior and #161871's suite-owned session cleanup byte-for-byte from main. The conflict was the import union in two files; the SDK regression's preparation, historical seed, assertions, and executor release remain unchanged. The fresh P2 integration review is clean. On Testbox tbx_01m3w4qw5rwezt1xay9svb7ffj, final-head integration passed all ten selected cron wait/outcome cases (27.99 s), all four SDK maintenance cases (26.71 s), and direct lint (3.70 s), after a clean frozen install (5.25 s). The completed shard matrix and package/update cell are retained at their actual tested revisions.

The local-selection remote type command stopped before compilation at the global agents-other root budget (724 versus 720, 0.93 s). Its agents source tree and complete shard configuration tree are byte-identical between base and candidate, as are the boundary checker and planner. The existing check-limits owner reports this limit as advisory in GitHub Actions but blocks outside Actions. Final-head CI run 36903958676 separately passed all five core test-type jobs, the remaining test types, production types, and guards. The cron validation and SDK maintenance roots belong to stripes 2 and 4 respectively; that compiler evidence is retained without changing the unrelated graph guard or its environment.

Proof Observed result
Cron runtime, visibility, and deletion Retained focused proof includes 99 cron tests (54.48 s), scoped run history (19, 55.96 s), agent deletion (23), and 307 remaining Doctor/runtime sibling tests (77.94 s).
Published request alias The original-code control rejected cron.add with INVALID_REQUEST (22.46 s). The dedicated frozen-request alias test passed (23.69 s), and the remaining validation file passed 256 tests (22.08 s). Both add and update persist canonical rows.
Native receipt race Three exact-order cases passed (25.89 s). A preceding case warmed the retained read pool; the fixture now closes it before intercepting worker creation. Assertions remain unchanged.
Persistence and quarantine Seven files passed 137 tests (132.97 s). After the coherent test splits, the store file passed 32 cases (18.91 s), authority 8 (20.58 s), legacy migration 19 (15.05 s), and definition integrity 19 (20.29 s), each through a single-worker test command.
Doctor repair and backups Six canonical-owner delivery cases exposed the missing generic-repair backup. The shared snapshot helper now preserves the original durable rows, imported state, integrity, idempotence, and failed-backup behavior. After the first rebase, all 64 cases across the three Doctor files passed (138.97 s). The subsequent ownership relocation passed all 42 Doctor, read-worker, and plugin-Doctor cases (146.86 s), including every one of the 21 cron-owner flows.
Main integration Delivery recovery and quarantine: 48 passed (35.93 s). Scoped listing: 10 passed (38.85 s). Selected on-exit/stream Gateway dispatch: 29 passed (31.75 s), with the remaining 99 cases outside that filter, not counted as passing.
UI Six unit/view files passed 102 tests (5.50 s); the explicit-delivery browser case passed (14.21 s). Synthetic before/after captures were inspected, attached in the task chat, and verified rendered in GitHub at 1280×1000. Before/after proof.
Rehearsal source preservation All three new regressions failed on the pre-fix code, including direct ENOENT after live-source consumption (34.60 s). The corrected repair file passed 15 tests (41.09 s wall; real SQLite, filesystem, and live-after-rehearsal boundaries). Archive/import siblings passed 20 tests (23.93 s). The complete selected changed-check plan passed (613.75 s).
Native changed checks The complete selected plan is accounted for across retained passing prefixes and the final resume: production types, all selected test graphs, UI/extension/script checks, full lint, dead exports, ownership guards, and ratchets. Relocating the audited Doctor storage owners cleared the new SQLite ratchet without an exception. An unrelated missing UI import from the main baseline was repaired using main's exact 03137c1d729 change.
Package and published-driver update Production commit 2ece77687fbd9e260f5f4d228e6d8bbd43a86519: package build and tarball integrity passed (547.96 s); latest published 2026.9.7 → candidate cell passed (221.04 s). It verifies the published updater and candidate process identities, source preservation until live Doctor, all 11 repaired jobs, both verified snapshots, repeat-Doctor idempotence, installed Gateway execution, and synthetic session continuity. Supervisor restart is manual. The subsequent final-head changes are test routing and equivalent shared helper substitutions; this is retained production proof, not a claim that the package was built from the final Git head.

Evidence spans Testbox leases tbx_01m3syhh4njmz1ks32442pstbb, tbx_01m3t5ncs3tfhsme9s8h4m4f8e, tbx_01m3tdpbh6kczy80kxden8jwcf, tbx_01m3tsmefyxcv7bgwvrftbp499, tbx_01m3v1znnp65d6yqf8a5jbypz9, and tbx_01m3v8phpa3pdtrkecpcfg636b. Provider-ended and unstarted commands are not passes. Earlier results are retained for unchanged inputs, not relabeled as exact-head CI. The final hosted result and any independently attributed inherited failures will be recorded before landing.

Current CI fixture diagnosis: the original 50-file Gateway group reproduced three database is locked startup failures in 111.52 s, with 49 files passing. The fixture touched raw SQLite before asynchronous worker retirement settled; main's canonical drain repair is included verbatim. Its standalone original control also failed (69.05 s). The SDK fixture assumed a lazy native executor had already acquired file identity; its original five-file Bun group and standalone control both reproduced that failure (18.48 s and 14.83 s). Preparing the executor then exposed a deterministic routing defect in run 36859714624: the test ran in Bun threads, where host-only admission correctly refuses. The final candidate moves the file into the existing forked Node database-worker inventory, preserving its watch classification and all assertions. That CI run had one originating failed job plus its aggregate gate, 89 successes, 16 skips, and no cancellations.

Final ordered fixture proof uses the original 50-file Gateway group and the latest exact one-file SDK selection on clean main and candidate; only the candidate SDK owner changes to its canonical Node configuration. All ten repetitions per group/revision passed. Main Gateway: 1,000.36 s total; main SDK: 150.44 s; candidate Gateway: 968.82 s; candidate SDK: 197.72 s. Seven completed passes came from Testbox tbx_01m3vwagqhp16c1m12zktjca7j; its next SDK attempt was interrupted by runner communication loss and is not counted as a pass. The remaining 33 completed passes ran on tbx_01m3w4qw5rwezt1xay9svb7ffj (run 36892289624). The fixed iteration list was resumed, not rerun for green. Final routing checks passed in 168.21 s. This remains separate from the historical 45-second Doctor timeout, whose root cause is unproven.

The successful rehearsal/package/cell proof used Testbox tbx_01m3vn60852g76e596h7026d5w (run); the provider ended that lease after the commands and successful completion receipt. The full captured command log is retained. A pnpm tool-manager-only environment-document rewrite was isolated; Corepack verified the declared pin, runtime dependencies stayed byte-identical, and the package source passed exact cleanliness checks before and after build.

The final SDK regression now reaches the original product boundary: removing only cleanup's explicit environment forwarding produces Agent database execution belongs to another shared-state database (41.57 s). The fixed file passes all four cases (31.76 s). Its historical rows use the existing exact fixture seeding API; fresh patchSessionEntry creations correctly receive current activity timestamps and were invalid inputs for the fixture's synthetic old cleanup clock. The fresh Gateway standalone passed all 12 cases (103.47 s). No runtime guard, assertion, retry count, or test timeout was weakened.

Inherited CI failure

Prior-head CI run 36887840867, at cecc6d4f2d43dac941da0e52e2f42d0cd57048dd, has one originating failure: published-driver update job 110459141115, plus its aggregate gate. Security, dependency, code, and test checks passed. The same native published-driver job fails on clean main at fffdd92f45036e49093292cf48f5fa10c75204b3 in run 36885234851, job 110452503643. That main commit is an ancestor of tested merge parent e42c52b7d83ede656c778337b46c0a25cb279625; the Doctor merge was 5fdf957ec8d6d595964311b1772cded3076ac4fe.

Both runs installed 9.7, reached readiness, completed canary cleanup, stopped the previous Gateway cleanly, then exhausted the outer cell deadline during update (exit 124), with no update-result JSON or candidate restart. The relevant workflow, harness, service shim, updater, and daemon sources are unchanged across the comparison. The internal wait after service shutdown remains unexplained; this is evidence of a pre-existing failure, not a claimed infrastructure root cause. The separate cron-owner published-driver cell passed fully as recorded above. The failed prior-head CI job remains recorded as failed.

Final-head CI 36903958676 completed successfully at 5963ef617460e0a4ca81150370a653f717a8b89d, with no failed jobs. Exact-head squash auto-merge completed as d89da7595d0d6c51f4e17b5631114023e49f931b; no admin failure exception was needed for this head. A later passing invocation does not establish the cause of the earlier timeout.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts commands Command implementations docker Docker and sandbox tooling size: XL labels Sep 28, 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. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed October 1, 2026, 2:10 PM ET / 18:10 UTC (Revision 31).

ClawSweeper review

What this changes

Moves legacy cron ownership and delivery repairs into backed-up Doctor migrations, preserves authored definitions during runtime writes, makes agent-deletion cleanup atomic, and requires an explicit delivery choice in the editor.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: current main still performs legacy cron normalization at runtime, so this work remains useful. Migration and editor evidence are substantial, but the previously requested final-effect authority proof remains incomplete.

Priority: P2
Reviewed head: 5963ef617460e0a4ca81150370a653f717a8b89d

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has substantial migration and visual evidence with no definite code finding, but material authority uncertainty limits readiness.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: Authority-chain proof required: inspected screenshots establish editor recovery, and the complete hash-matched body records installed-updater Doctor repair, backups, idempotence, Gateway execution, and session continuity. Existing-state compatibility is supported, but the changed persisted ownership and grant generations have not been exercised against another restricted agent or stale/revoked authority through final execution or delivery I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: inspected screenshots establish editor recovery, and the complete hash-matched body records installed-updater Doctor repair, backups, idempotence, Gateway execution, and session continuity. Existing-state compatibility is supported, but the changed persisted ownership and grant generations have not been exercised against another restricted agent or stale/revoked authority through final execution or delivery I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 9 items Pinned introduction and merge identity: Reviewed the merge-base-to-head introduction rather than endpoint drift. The raw test-merge record has exactly the supplied base parent followed by the pinned PR head; it is a synthetic merge candidate, not the original head.
Current main still needs the repair: Current main's row decoder still changes destination-only stored delivery into announce while reading. Its agent resolver also retains configured-default fallback without the branch's legacy-repair distinction. No supplied merged PR replaces this central repair.
Authority-bearing repair: Doctor materializes SQL ownership into job definitions, clears the grant revision, and advances the definition generation beyond retained grants. This changes persisted authority consumed after migration; the nearest other agent and retained stale grant therefore remain relevant negative cases.
Findings None None.
Security None None.

How this fits together

Cron turns saved automation jobs into scheduled agent work, watched commands, and deliveries. Doctor repairs older stored jobs before the Gateway consumes their canonical ownership and delivery settings.

flowchart TD
  A[Existing automation jobs] --> B[Doctor inspection]
  B --> C[Verified backup and repair]
  C --> D[Canonical SQLite jobs]
  D --> E[Gateway authority and delivery checks]
  E --> F[Execute work and deliver results]
  E --> G[Refuse unrepaired or unauthorized work]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: inspected screenshots establish editor recovery, and the complete hash-matched body records installed-updater Doctor repair, backups, idempotence, Gateway execution, and session continuity. Existing-state compatibility is supported, but the changed persisted ownership and grant generations have not been exercised against another restricted agent or stale/revoked authority through final execution or delivery I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Persisted owner materialization and grant-generation invalidation lack observed final-effect rejection for another restricted agent and stale, revoked, or reassigned authority.
  • Complete next step (P2) - Add redacted production-boundary logs or a validation transcript showing allowed execution and rejection of another restricted agent and stale/revoked grants before final I/O. Update the PR body to trigger fresh review; if needed, ask a maintainer to comment @clawsweeper re-review.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test growth production net +502; tests/support net +2105 The introduced range, including UI production, grows mainly to move repairs into Doctor and protect persistence, upgrade, and authority boundaries.

Stored data model

Persistent data-model change detected: migration/backfill/repair: config/knip.config.ts, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/cron-owner-doctor.mjs, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/diagnostics.mjs, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/run.sh, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/worker-cell-package.mjs, migration/backfill/repair: scripts/e2e/upgrade-survivor-docker.sh, and 30 more. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Complete the authority evidence (recommended)
    Supply production-boundary observations showing the permitted repaired owner succeeds while another restricted agent and stale or revoked grants fail before execution or delivery I/O.

Technical review

Best possible solution:

Keep Doctor as the sole legacy-repair owner, retain the published request adapter and verified upgrade path, and establish that repaired ownership cannot revive stale execution or delivery authority.

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

Yes, source establishes the existing runtime normalization path, and the body records failing original-code controls. This read-only review did not execute target code.

Is this the best way to solve the issue?

Yes, separating backed-up repair from runtime state transitions follows the existing owners; merge confidence still requires the scoped authority evidence.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs bounded cron migration and persistence behavior without evidence of an urgent current outage.
  • merge-risk: 🚨 compatibility: Legacy jobs stop running until Doctor repairs them; the documented update path and recorded published-driver cell cover the intended migration.
  • merge-risk: 🚨 security-boundary: The patch persists repaired agent ownership and invalidates retained grant generations, while final-effect negative authority evidence remains incomplete.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: inspected screenshots establish editor recovery, and the complete hash-matched body records installed-updater Doctor repair, backups, idempotence, Gateway execution, and session continuity. Existing-state compatibility is supported, but the changed persisted ownership and grant generations have not been exercised against another restricted agent or stale/revoked authority through final execution or delivery I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Pinned introduction and merge identity: Reviewed the merge-base-to-head introduction rather than endpoint drift. The raw test-merge record has exactly the supplied base parent followed by the pinned PR head; it is a synthetic merge candidate, not the original head. (c4601693f4b8)
  • Current main still needs the repair: Current main's row decoder still changes destination-only stored delivery into announce while reading. Its agent resolver also retains configured-default fallback without the branch's legacy-repair distinction. No supplied merged PR replaces this central repair. (src/cron/store/row-codec.ts, c6e6380c5ed8)
  • Authority-bearing repair: Doctor materializes SQL ownership into job definitions, clears the grant revision, and advances the definition generation beyond retained grants. This changes persisted authority consumed after migration; the nearest other agent and retained stale grant therefore remain relevant negative cases. (src/commands/doctor/cron/store-repair.ts:98, 5963ef617460)
  • Complete captured body inspected: The complete live body has 16,465 UTF-16 units and SHA-256 121d27de4cf9247bb5b0ec9da7c0792f1330d3b1259f64d80eadfdfec2ae1ffe, matching the captured snapshot. It records a passing published 2026.9.7 updater-to-candidate cell at production commit 2ece776: 11 repaired jobs, two verified snapshots, idempotence, installed Gateway execution, and session continuity. Later changes are explicitly described as retained production proof rather than a final-head package run. (2ece77687fbd)
  • Upgrade proof scope: The maintained survivor scenario checks stored definitions, owner precedence, original and imported backups, source archival, repeated Doctor, and successful Gateway runs. Its runtime requests use the operator token; they do not exercise another restricted agent or a revoked/reassigned grant through execution or delivery. (scripts/e2e/lib/upgrade-survivor/cron-owner-doctor.mjs:644, 5963ef617460)
  • Inspected visual proof: Both downloaded screenshots from fix(cron): keep legacy repair in Doctor #160448 (comment) were inspected. Before shows None and an enabled save; after shows an explicit-choice placeholder, repair guidance, and disabled save. These establish the visible editor recovery, not authority rejection. (ui/src/lib/cron/index.ts:517, 5963ef617460)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shakkernerd: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Add final-effect proof for the permitted repaired owner and nearest other agent, including stale, revoked, or reassigned grant rejection before execution or delivery I/O.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (30 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-01T01:49:36.578Z sha 4f21103 :: needs real behavior proof before merge. :: [P1] Restore the released deliver alias for shared callers | [P2] Scope the six-month claim to supported repairs
  • reviewed 2026-10-01T09:57:27.549Z sha 1b3abc25e8c8df5436c4353c3d6f509213ceee1f :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T12:16:12.469Z sha 2ece776 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T12:52:47.452Z sha 675a837 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T14:04:29.165Z sha 83b8a2c :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T14:21:48.954Z sha 83b8a2c :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T16:01:56.017Z sha cecc6d4f2d43dac941da0e52e2f42d0cd57048dd :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T17:23:56.681Z sha cecc6d4f2d43dac941da0e52e2f42d0cd57048dd :: needs real behavior proof before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Sep 28, 2026
@steipete
steipete marked this pull request as ready for review September 28, 2026 14:06
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 29, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 29, 2026
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling and removed agents Agent runtime and tooling labels Sep 29, 2026
@steipete
steipete force-pushed the codex/doctor-cron-owner branch from fb1c3c2 to 49a706e Compare September 30, 2026 21:18
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 30, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Sep 30, 2026
@steipete
steipete force-pushed the codex/doctor-cron-owner branch from cecc6d4 to 5963ef6 Compare October 1, 2026 18:03
@steipete
steipete enabled auto-merge (squash) October 1, 2026 18:21
@steipete
steipete merged commit d89da75 into main Oct 1, 2026
172 checks passed
@steipete
steipete deleted the codex/doctor-cron-owner branch October 1, 2026 18:24
steipete added a commit that referenced this pull request Oct 1, 2026
Keep the captured baseline identity mandatory for the cron Doctor scenario without requiring its artifact in generic survivor flows. Preserve contextual identity failures when the frozen tarball or installed payload cannot be read.

Refs #162586, #160448
steipete added a commit that referenced this pull request Oct 1, 2026
The upgrade-survivor candidate identity check surfaced a raw node:fs read error instead of the identity messages when the candidate payload was missing or unreadable (test/scripts/upgrade-survivor-candidate-identity red on main since #160448 narrowed the contract). The generic baseline contract is restored (the captured baseline stays mandatory for cron-owner-doctor; generic scenarios use baselineCommit), and both filesystem error boundaries now produce the contextual identity error with the original cause retained.

Refs #160448
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
Runtime preserves authored cron definitions and consumes canonical ownership, delivery, and schedules. Doctor performs supported repairs with verified backups, while update rehearsals retain live legacy sources for the live import. Preserve durable receipts, explicit scope boundaries, and deletion fences.

Published 2026.9.7 updater acceptance passed on Testbox. The separately matched native published-driver CI timeout also fails on clean main; the PR records that inherited failure and its limits.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…w#162976)

The upgrade-survivor candidate identity check surfaced a raw node:fs read error instead of the identity messages when the candidate payload was missing or unreadable (test/scripts/upgrade-survivor-candidate-identity red on main since openclaw#160448 narrowed the contract). The generic baseline contract is restored (the captured baseline stays mandatory for cron-owner-doctor; generic scenarios use baselineCommit), and both filesystem error boundaries now produce the contextual identity error with the original cause retained.

Refs openclaw#160448
steipete added a commit that referenced this pull request Oct 2, 2026
Publish committed name metadata through both cron mutation owners and refresh
Gateway display projections at asynchronous boundaries. Retain physical
generation fences and reject unprepared or invalidated lookups instead of
reading SQLite on the caller thread. Preserve rename/delete labels, including
hidden SSE prefix refreshes and malformed peer metadata.

Builds on #160448. No schema, retention, durability, configuration, or update
contract changes. Native name reads retain the Doctor transaction-hook contract.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
Publish committed name metadata through both cron mutation owners and refresh
Gateway display projections at asynchronous boundaries. Retain physical
generation fences and reject unprepared or invalidated lookups instead of
reading SQLite on the caller thread. Preserve rename/delete labels, including
hidden SSE prefix refreshes and malformed peer metadata.

Builds on openclaw#160448. No schema, retention, durability, configuration, or update
contract changes. Native name reads retain the Doctor transaction-hook contract.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant