Repository navigation
fix: keep shared-state writers available during update progress checks - #158673
fuller-stack-dev wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR prepares ordinary update-ledger integrity checks without excluding peer writers and revalidates them before writing. Example: An update records its staging, validating, and activating phases while another connection writes shared state.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the published patch has useful behavior evidence and no new discrete finding, but its main-integrated correction remains unpublished and GitHub reports a conflict. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherUpdate progress enters the shared-state admission owner, which validates SQLite integrity, schema, file identity, and current ownership before committing ledger rows and retiring its native connection. flowchart TD
A[Update progress] --> B[Existing state writer]
B --> C[Query only integrity snapshot]
C --> D[Current write admission]
D --> E[Data version revalidation]
E --> F[SQLite ledger commit]
F --> G[Native handle retirement]
Technical reviewBest possible solution: Keep integrity preparation and final write validation within current main's native writer and cleanup owners. Do we have a high-confidence way to reproduce the issue? Source places cold existing-state integrity admission inside an immediate transaction, which excludes peer writers; supplied exact-head installed observations demonstrate the changed admission behavior, but this review ran no reproduction. Is this the best way to solve the issue? Preparing a read snapshot and invalidating it after peer commits addresses writer exclusion while retaining transactional safety checks; the unpublished port requires a separate review once published. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b1c3004f73ca. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +81, Tests +257. Total +338 across 3 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (44 earlier review cycles; latest 8 shown)
Reviewed October 9, 2026, 9:08 PM ET / October 10, 2026, 01:08 UTC (Revision 45). |
|
The requested installed-updater evidence and test timing are now in the PR body. The published v2026.9.6 updater completed the candidate survivor lane, including migration, persisted state and Gateway readiness. Its 31 ledger scans blocked peer writers; all 62 candidate query-only scans across the upgrade and subsequent no-op admitted peer writers. Four forced commits triggered transactional revalidation, then phase progress resumed. The five-case contention file took 32.60 seconds wall time. Evidence: https://crabbox.openclaw.ai/portal/runs/run_701c5db584da The combined run exited 1 because my extra wrapper rejected the valid skipped/already-current result. The audit passed against the retained observations and preserves that failure. The post-no-op full survival assertion did not run. These probes establish writer admission, not scan duration or production latency; intentional transactional fallback still excludes writers. No full-lane green claim is made. A comment-only Kysely-guard correction is reviewed locally and awaiting completed native gates. Those gates passed build/typechecks but hit four unchanged baseline lint violations; existing repairs are being landed separately. Fresh exact-head CI and review remain required before merge. |
|
The four desktop Independent focused Chromium verification on Odin, using a disposable detached worktree and synthetic fixtures:
Command: The correction imports the owning composer stylesheet and supplies the production This isolates the reported failure to the old fixture, independently of ledger admission or image-frame PR150545. Published head |
Integrate canonical main and retain the reviewed runtime-only packaging and SQLite writer changes. Defer unrelated unpublished prerequisites. Includes the update writer contract from #158673.
|
Closing as superseded. Current main already fixes the problem this PR targets, through #174660 (reuse database admission across short-lived handles) and #176600 (retain subset admission across one-shot writes). Checked on main f991117 with this PR's own contention case. Its expectation of 3 integrity scans during update progress now gets 0. A stronger probe confirmed:
The probe and both existing-state writer/check-once suites passed, 29/29. |
What Problem This Solves
Fixes shared-state writes being blocked throughout full database integrity scans when update progress is recorded.
User Impact
Other writers can proceed while ordinary update bookkeeping prepares its integrity check. Corruption, ownership changes, schema drift, and failed native cleanup still prevent unsafe writes.
Why This Change Was Made
Ordinary existing-state admission prepares integrity on its native handle in a query-only read snapshot. It consumes that result inside the managed write transaction only when the same connection reports an unchanged data version. A peer commit requires transactional revalidation. Repair and existing-runtime schema scopes retain their current validation.
The correction uses the current transaction, maintenance and failed-close owners. It preserves file identity, schema, external ownership and original-error checks. It does not restore the retired coordination-file APIs. The scan remains synchronous; this reduces writer exclusion, not scan duration, and a busy store can require a second scan under write admission.
Evidence
The published head remains
e720e434d9035ab3d10e3becedbd74a95f98b7f7. The unpublished correction isbd96fa01b76fc03512808428aac04b6d144e7051, containing canonical7db874d10a7b215a81806a6c97203fe133c8dff8through normal ancestry-preserving merges. Its parent04bdb963native invocation was stopped during build after pinned pnpm rewrote redundant package-manager lock metadata. A no-op script reproduced the write; the normalized same-fixture control left the lock unchanged. The generated 25-line correction leaves the entire application dependency document byte-identical and passed independent P0–P2 review. Exit 130 and incomplete builds do not count as passing gates. Publication, full exact-head gates, hosted checks, ClawSweeper review and verified merge remain pending.The correction now uses canonical #162599 for checkpoint-stable database generations. The obsolete unpublished checkpoint callbacks, successor tracking and removal module have been removed. A real native-close fault and same-owner retry succeeded on unchanged canonical code locally and on Windows. Independent Windows acceptance passed normal restore and foreign-writer refusal. Both committed 4,152-byte WALs were observed before restore; separate processes then read baseline rows, displaced candidate rows and the update-run ID. This is API acceptance, not packaged-updater or Windows service proof.
https://crabbox.openclaw.ai/portal/runs/run_d7432b2e288072da0609ac12c3ee9f17
Browser cleanup tests retain canonical test movement and awaited database closure. Their improved oracle rejects an actual no-op cleanup that falsely passed the earlier test; deferred waits now observe premature operation settlement. All 44 browser cases, typed lint and formatting passed on the preceding composition. The newer canonical dependency and SDK changes are incorporated and the frozen install passed. All 58 CI-planner and 17 restore cases pass on the current composition, including both retained native-reader refusal and successful retry cases. Scoped lint, formatting, independent full-file audits and API reviews pass. Full required gates remain outstanding.
The supplier results below are historical and retain their original candidate identities.
The earlier supplier candidate
f8d82080passed all seven selected cases on Windows Server 2022, Node 24.20.0 and SQLite 3.53.4. Native run. The same seven local cases, scoped type-aware lint and formatting pass. The final two-line correction review is P0-P2 clean at 0.94 confidence. All 18 restore cases and their complete fixture were audited without weakened assertions, skips or timeouts. Earlier API review 12884 retained a P2 finding; actual ordinary-read/write refusal under retained maintenance authority falsified it, and its disposition remains recorded rather than relabeled clean.Independent source-blind acceptance on that supplier candidate now passes all three clauses. A bounded external-fixture pause let the validator directly inspect both 4,152-byte WALs, their complete committed frames and actual candidate rows before restore. Both WALs remained unchanged after the readers closed. Separate fresh readers after restore confirmed baseline rows, recoverable displaced candidate rows and the exact update-run ID. Earlier checks also confirmed foreign-write refusal without displacement and independent witnesses in distinct private roots. This qualifies the old supplier candidate, not the pending canonical composition, service lifecycle or packaged updater.
The preceding exact
e736b1d3native build failed atupdate-database-restore.ts:322with TS2322; check and tests did not start. The generation reader already validates the exact inventory and string-or-null values. Consuming its validated singleton avoids an unchecked indexed lookup without a duplicate guard or widened type. The same native base-declaration lane passed on the corrected source in 93.491 seconds. That scoped result is not a full build/check/test pass. The new canonical composition preserves 64 authored-only and 207 canonical-only file contents; its sole merged maintenance fixture retains all eight cases and both the canonical mock relocation and timer cleanup.The following paragraphs retain earlier candidate evidence. Their failed or incomplete runs do not count as current-head gate success.
The preceding
145e9147native run passed the full build in 13m 10.2s, then failed only the 1,000-line lint cap insession-tab-registry.sqlite.test.ts, at 1,036 counted lines. Full tests did not start. That file matched fresh canonical main. The current fixture refactor shares repeated session/profile inputs and stored-row reads, uses the existing deferred helper, and always releases and joins the paused sweep during cleanup. All 28 original cases and assertions remain. The same focused lint command fails before and passes after; the whole file passes before and after in 54.55s and 30.53s. Typed lint, formatting and independent P0–P2 review pass. The shorter second run reused compiler outputs, so it is not a measured test-speed improvement. Required full gates for the current commit remain pending.A follow-up fixture audit separated malformed-field validation from the existing wrong-key case, propagates early sweep settlement to the waiting test, and awaits worker retirement before reset and temporary-directory cleanup. The final two-file refinement preserves all 28 cases, 93 assertions and the line cap. All 44 cases across its three fixture consumers pass on the exact final source in 52.58s; typed lint, formatting and independent P0–P2 review also pass. This improves test isolation and coverage; the audit did not establish a historical resource leak.
The current candidate adds two reviewed test prerequisites. The shared child-readiness fixture now uses the existing Vitest cancellation signal: the original timeout-race check fails before the repair and passes afterward, and both existing real-child cleanup/refusal cases pass. The explicit Gateway-port prerequisite preserves the reviewed socket reservation, startup, rejected-close and cleanup behavior. Its three files exactly match the credited supplier; 51 passing cases and the independent source review are reused after checking the relevant inputs. Scoped type-aware lint, formatting and diff checks pass. All touched test files were audited, with no weakened assertions, skips or timeouts.
The credited missing-scope UI import is also present identically on canonical main as
03137c1d729e25edbdb4dc482730aed74a6c2427. The reviewed Kysely/package and updater presentation prerequisites landed in PR #162464 as3a3d68111cc8ace6f257acddfe79913bf5ebcab1and are adopted here with their original credit. Lint prepares the generated database types, packaged hooks retain their import closure, and the updater keeps its final renderer until terminal publication while stopping polling at the inner return. The same controlled reader fixture fails on canonical main and passes with the repair. The supplier passed 67 affected cases, the final 27 immutable-reader unit cases, a committed-head admission regression, and four source-blind text/JSON/migrated-error probes. The latter use simulated service boundaries and prove phase order, not per-line latency. Final API review is scoped-clean P0-P2, confidence 0.89. Exact adopted source, scoped typed lint, formatting, and the 143-entry native source review are verified; required full gates are next.The seven integration conflicts were resolved and the entire touched test files audited. The merge preserves canonical test pruning, deterministic fixture release, joined child cleanup and private Git routing. The focused native run passed 207 tests across nine files, with one existing platform skip, in 273.637 seconds. Review found an inherited Git environment gap in the new foreign-repository sentinel. A two-private-repository control reproduced the wrong-repository write; using the existing fixture environment sanitizer confined the write to the intended repository. After that repair, both affected GC cases passed in 31.095 seconds. No assertion, timeout or skip was weakened.
The complete
52f20898integration API review finished both passes with no P0-P2 findings, confidence 0.68. Scoped type-aware lint, formatting, diff checks, assertion checks and line limits passed. Normal commit hooks preserved the reviewed tree. The retired artificial MCP file-order wrapper remains covered by canonical direct runtime-retirement and requester-lease tests; the original historical timeout remains unexplained. These results establish focused readiness, not a completed full gate.Earlier candidate evidence and investigations
The following results belong to the explicitly named earlier candidates. Their failed or incomplete runs do not count as current-head gate success.
The exact
82219042native run passed the full build in 24m 34.3s and the full check, including types, lint, formatting, line limits and policy guards. Its extension QA process then exited withSIGSEGV, after 609 passing case lines across ten files and without a complete group verdict. macOS identified the process but refused to save its crash report because the report limit was exceeded. The remaining admitted groups were stopped through the native supervisor; the invocation exited 143. All 600 recorded process identities and 99 groups settled, and native lock recovery completed. This is failed and incomplete full-gate evidence, not publication clearance.A bounded diagnostic kept the candidate, native QA configuration, Node 24.20.0 and one-worker budget, with LLDB attached. It used fresh private state and transform cache, without the three concurrent groups. The same original ten-file prefix passed in order, including all 51 runtime-tool-fixture cases. It reported 2,930 passing cases across 134 files before its ten-minute bound, then exited 143 with no reproduced crash or complete group verdict. All 133 diagnostic process identities and 50 groups settled; private diagnostic state/cache was removed. No QA source, assertion, timeout, retry or skip changed. The original crash remains unexplained. CI declares Node 24.21.0; the next admitted gate will use that declared runtime through child-only PATH selection. This aligns the test environment and is not a claimed crash repair.
The credited Scanner prerequisite
1f46a55f, incorporated as82219042, repairs an injected filesystem race in the two existing Skills replacement cases. The selected root still plans before replacement and its first watch; descendant plans now wait until that replacement finishes before probing shared prefixes. The original same-fixture control fails with ENOENT and the repair passes. All ten cases and seven adjacent cases passed in 10.84 seconds. A forced real symlink failure remained visible and cleanup joined all watchers, closed subscriptions and removed the private root. Independent sequential fault, normal and comparison calls confirmed that behavior, ten normal passes, and one original failure versus one repaired pass. The timing marker identifies watch invocation, not the internal first scan or historical full-suite scheduling. The integrating maintainer and supplier audited the entire touched file; every case, assertion and strict startup rejection remains. Scoped types, lint and formatting passed. API review was clean for P0-P2 at 0.78 confidence but lacked the full test file and full gate, a limitation retained alongside the separate whole-file audits. Consumer preimage and affected proof inputs match the supplier, so these focused results were reused. Full PR gates remain pending.The exact
ffec2cdenative run passed the full build in 681.7 seconds and the full check. Its TUI PTY group then finished with 115 passes and one failure in 374.22 seconds: the ANSI/OSC/C1 terminal-safety case hit its existing 25-second outer timeout. The full error footer identifies no individual scenario or cleanup phase. The same named case previously failed a completed-frame assertion in the Mac run; passing replays did not establish its cause. The corrected viewport case and earlier WebChat QA case both passed naturally in this run. After retaining the completed failure, the full invocation was stopped through its native supervisor and exited 130; all 1,016 recorded process identities settled, native lock recovery completed, and private temporary output was removed. This is failed and incomplete full-gate evidence. Two bounded diagnostics kept the original nine-file order, scenarios, assertions and timeouts. They passed all 116 cases in 300.39 and 288.06 seconds. In the final trace, reconnect release resolved at 1.915 seconds, the child file-watcher callback arrived at 8.139 seconds, and the complete reconnect frame reached the parent at 8.174 seconds. The unchanged frame oracle correctly rejected the earlier complete disconnect frame and accepted the reconnect frame. Those observations placed the sampled delay before the watcher callback but could not distinguish native notification delay from unobserved child scheduling. Neither passing diagnostic reproduced the historical timeout. All temporary observations were removed and the exact candidate source restored; observed processes settled. The subsequent causal probe and repair are described below; the original full gate remains failed and incomplete.A subsequent probe reproduced a reconnect-fixture defect on unchanged
ffec2cde. Both an ordinary nativefs.watchrun and a withheld-notification control missed the durable release for the existing 20-second wait while the child remained responsive. The first repair,1d6a99e4, usedwatchFileand passed its three-cell probe, independent eight-child acceptance and all 116 existing PTY cases. Contrary evidence then showed that an initial asynchronous stat can adopt a newly created release without emitting an event. That candidate's readiness was withdrawn before publication.The same controlled initial-stat ordering reproduced the defect in both reconnect and the existing rendering barrier on
1d6a99e4. Both remained unresolved for the original 20-second observation despite the real release file and responsive children; all six controls passed. The rendering preimage also matched freshly fetched canonical main. The final repair,4649d509, directly checks persistent release state every 50 ms, clears its timer before callback or resolution, keeps an immediate check, and does not keep the child alive. The identical eight-cell probe passes. This proves the release-observation defects, not the sole cause of every historical TUI timeout.Independent validation passed all six contract clauses across ten naturally joined children, covering absent and near-match files, preexisting release, Unicode paths, repeated writes, stop before and after release, and publication while the initial pool task remained pending. An earlier validator attempt incorrectly sent JSON commands; those children also exited naturally, and only the corrected plain-text command run counts as acceptance. On the final source, the unchanged nine-file real-TUI PTY lane passed all 116 tests without skips in 377.46 seconds, 431.84 seconds including preparation. The command exited 0; all 19 recorded process identities settled and private test output was removed. All three touched helpers were audited in full. No assertions, scenarios, timeouts, retries, concurrency settings or production TUI behavior changed. API review found no actionable P0-P2 findings at 0.94 confidence; scoped lint, formatting, line and assertion guards, and normal commit hooks passed. These results cover fixture release and affected TUI behavior, not full PR gates or Gateway transport and persistence.
The credited Mac prerequisite
9dd553bc, incorporated as28319f8c, fixes the same notification dependence in the non-IPC checkout-readiness fixture. It directly observes owned readiness state while preserving Node IPC, cancellation, deadlines and cleanup. The supplier's controlled red/green and eight independent cases passed; the original two-file group passed 127 tests with 34 existing skips in 266.48 seconds. API review found no actionable P0-P2 findings at 0.93 confidence. The entire 1,539-line fixture was audited. Ledger's affected preimage and proof inputs match the supplier exactly, so that focused run was reused. No distinct test, assertion, timeout or skip changed.The earlier
ffec2cdecomposition passed 210 tests across all 13 selected files in 197.017 seconds, with one existing platform skip. Coverage includes broker admission and settlement, native service discovery, runtime publication fences, update ledger contention, update/Doctor history, model-setup ownership and test inventory. The two broker files were audited in full; the merge resolution preserves the bootstrap assertion and verifies that local refusal sends no command. Services and update type checks, scoped lint, formatting and diff checks passed. Independent review found no unresolved composition blocker. The API review's timer finding was rejected against the reviewed file's existing unconditional real-timer teardown; its report is retained as a findings report. These are affected-scope results, not a completed full gate.The credited prerequisite
6158df93prevents test setup from importing state paths before selecting its private home. It moves the unchanged external-supervisor predicate to its existing lightweight marker owner and preserves the supervision re-export. The new fresh-child regression failed three cases before the repair. All 46 focused cases then passed, as did 12 independent behavior executions covering path isolation, caller bytes, environment restoration and cleanup. The entire touched test file was audited; original sandbox assertions remain unchanged. API review and complete changed checks passed.The previous native gate on
06f3cfddpassed build in 555.7 seconds and full check, then failed viewport coalescing and QA delegation before owned interruption with exit 130. The UI failure is now reproduced and repaired: three chat fixtures retained composer resize observers after completion. Their teardown now calls the existing view-state cleanup before restoring globals or removing DOM nodes. The identical four-file sequence changed from 28 passes and one failure to 29 passes in 8.94 seconds, with one viewport frame instead of four. The original 875-file sequence also reproduced the failure. All 18 fixture cases and assertions remain; all three files were audited. Independent pagination, comment-pin and realtime-notice execution took about 437 ms, 100 ms and 13 ms. Source-blind original-order, viewport-only and reversed-fixture controls passed 29, 11 and 29 cases. P0-P2 review was clean, confidence 0.98; scoped types, formatting, lint and guards passed.The original QA failure remains unexplained: the WebChat ownership-denial case failed after 119,346 ms with unusable diagnostics. An unchanged whole-file control passed seven cases; the observed 149-file original-order control passed 3,041 tests with three existing skips in 561.82 seconds. WebChat passed in 26,788 ms. Both captured complete serialized results with no unhandled errors or outstanding hook records. Caught broker receipt warnings occur in passing runs too and do not establish causality. No QA source, timeout, assertion or retry changed. These results do not turn the earlier native run into a pass.
Previously reviewed production changes are unchanged by the fixture cleanup. The worker inventory preserves the single PDF resource route that an automatic merge would remove. Seven affected owner files passed 163 tests on the preceding composition. Final four-file integration on
06f3cfddpassed 154 tests without skips in 188.60 seconds: 20 local-command, 107 model-selection, 17 cleanup-owner and 10 signal-custody cases. Independent composition review, scoped lint and formatting passed. These are scoped results for their recorded candidates, not completed full-gate evidence for the unpublished correction.The shared signal-custody fixture repair is committed in
a4600b4f. The original 137-file group reproduced five failures when the fixture could not capture its cleanup callback. Controlled comparisons passed all ten cases with a fresh worker or an import-only predecessor, but a real prior registration reproduced the same five failures. The original fixture also interfered with later cleanup. The fixture now gives its mocked cleanup owner a private singleton key, delegates to the real cleanup implementation, and removes only that private key after teardown. All ten distinct custody, cancellation, refusal and cleanup cases and their assertions remain. The repaired original group passed 1,367 tests with the same six existing skips in 225.02 seconds. Independent source-blind controls passed 30 cases and verified prior listeners and removal of real successor bytes. Forbidden SQLite/worker counters were not independently exposed to that validator; the unchanged per-case assertions were separately reviewed. Scoped formatting, lint, types and line limits pass. Independent API review found no actionable P0-P2 findings, confidence 0.97. Every touched fixture line was audited; no case, timeout, retry or skip was weakened. All observed processes settled and consumed private proof resources were removed.The Gateway follow-up fixture is repaired in
2b01ada1. It now tracks both invocations through the existing subagent lifetime and awaits its persisted cleanup event before checking the original announcement, delivery, identity, payload, requester and replay assertions. A controlled real-writer probe proved that the former finite poll could reject valid durable completion: holding only the acknowledgment continuation caused rejection after 2,427 ms; releasing it completed the original once-only delivery and all ten cases, including six negative controls. An unchanged 580-test replay also passed, so the historical full-run cause remains unproved. Independent source-blind acceptance passed all 580 tests across 16 files in 140.95 seconds, and API review found no actionable P0-P2 finding, confidence 0.96. Those two results precede one mechanical lint adjustment from object spread toObject.assignover disjoint plain literals. Final formatting, lint, selected types and line-limit checks pass. The entire touched file was audited and reduced from 2,826 to 2,819 lines without removing cases or assertions. Exact-current full gates are still required.The preceding native full gate
76218onaa2374a5passed its full build in 10 min 10.9 s and its full check, then recorded four Gateway follow-up failures and 576 passing tests in that group. Its process group passed 958 tests with 57 existing skips, including all 13 repaired broker cases. The run was stopped through its native supervisor and exited 130; all 176 observed process identities and 42 groups settled, and exact native lock recovery completed. FTS was not reached. That interrupted run is retained as failed and incomplete evidence.The preceding native gate
37077onde92548cpassed the full build in 11 min 49.3 s and full check, then stopped after the host-scope fixture timed out. Five of 706 shards started; the single completed shard passed 21 files and 188 tests, with one skipped test. Both the outer invocation and inner runner exited 130. All observed processes settled and native lock recovery completed. The fixture cause was reproduced: the mock mishandled the bootstrap callback overload. Repair4eef9f60passes all 11 cases, changed checks and independent review through P2. It preserves every launch-error and ownership assertion.The integrated correction passed 120 focused tests across five files in 240.27 s, covering Ledger contention, fresh-state capture and refusal, recovery and diagnostics. The reviewed tree is unchanged in the final commit. Independent full-residual review completed three passes with no actionable P0-P2 findings, confidence 0.88. The isolated reviewers had the full diff and supplied owner context; this is not a full-suite result.
The preceding
f96fa6cagate passed its full build in 11 min 51.3 s and passed full checks, then failed during tests. Its process admission fixture sent requests before bootstrap readiness and allowed a delayed shutdown timer to invoke a real group kill after mocks were restored. The committed repair7ff648ebwaits for readiness and clears owned timers before restoring native process hooks. Both original transport cases, full changed checks, independent review and source-blind valid/invalid startup cleanup controls pass. The entire test file was audited; every capacity, ordering and no-native-launch assertion remains. No production behavior, test timeout, retry or skip changed.The memory FTS fixture is repaired in
d2bede18. Controlled diagnostics proved that eager runtime loading preceded the intended watcher mock, allowing physical watcher events to dirty the fixture. Separately, a case crossing the 30-second provider-cache boundary could legitimately retry construction. The fixture now installs its watcher mock before loading the runtime and controls the per-case clock while retaining explicit expiry tests. A guard proving that the private workspace reaches the controlled watcher failed with the original import order and passes after repair. Final source-blind acceptance passed all 26 cases in 63.26 s, with no skips. Scoped types, lint and formatting pass; final independent review found no actionable P0-P2 findings, confidence 0.97. The entire file was audited and reduced from 794 to 750 lines by consolidating repeated errors. All cases and existing call-count, result, error and recovery assertions remain. Explicit transient-manager close, registry cleanup, pending work and clock restoration are joined. The original failed full run did not record cache age, so its precise extra-call cause remains unknown.The previous
2a4f23c0native run passed its full build in 9 min 57.9 s and its full check, then recorded 31 failed cases across six files before a supported stop. Thirty failures came from five provider fixtures reaching the host-only SQLite broker from threaded projects. The unchanged context test reproduced alone; changing only the execution pool made all 37 cases in the five affected files pass. The repair adds those files to the existing broker route and excludes the image fixture from its former media project.The routing regression failed in six places before the repair and passed all 16 checks afterward in 3.67 s. Its complete file was audited: seven registry-membership checks now exercise the public run planner, and full-project ownership and ordinary-route controls protect against omitted or duplicate execution. No assertion, timeout or skip was weakened. Independent source-blind validation passed all 37 original cases on the integrated
d3da7c70tree in 21.26 s, once each through the ordinary entrypoint without a pool override. The 39 unchanged control cases passed in their original project. The final one-entry Codex prerequisite changes a separate extension route; its published upstream proof remains separately attributed. Scoped types, lint, formatting and line limits passed. Independent review through P2 found no actionable routing defects.Two observations remain unresolved. The mobile-header browser failure expected
nonebut receivedgrid; an unchanged 118-file, 1,481-case replay passed with different sequencing, which does not prove a fix or establish stylesheet causality. A process shard also received SIGKILL before the later stop; bounded native and macOS diagnostics did not establish why. The old invocation exited 130, its recorded processes settled, and its native lock was recovered. That interrupted run is not successful full-suite evidence.The previous
bea23451run passed build and check, then recorded 16 CLI fixture failures before a safety stop. The first failure occurred while publishing an image into the default shared scratch directory, before supervisor spawn. The failed call also left a queued mock result that shifted later cases. The final fixtures own private scratch, clear unused queued outputs between cases, use explicit settlement barriers, restore clocks and join pending work on failure. The original filesystem error did not reproduce in private sequential or concurrent controls, so its cause remains unproved. The corrected cases and complete helper file pass; a fresh source-blind run passed three selected cases with varied strings and private paths, with 44 cases filtered rather than counted as coverage.A separate real Git regression proved that an inherited template directory could copy outer hooks into an independent fixture. The fixture environment now removes that inherited setting while preserving explicit fixture templates. All 14 helper tests and a fresh independent real init/commit control pass. The full touched test files were audited; distinct scenarios and assertions remain.
Canonical runtime changes also exposed missing asynchronous metadata resolvers in two test mocks. The same failing cases now pass, and the model-switch, compaction and embedded-maintenance suites passed all 153 cases. The final candidate uses canonical compaction repair
313f6211and the independently reviewed model-switch repair. Scoped types, lint, formatting and unchanged line limits pass. Redundant setup was simplified without removing cases or raising limits. Independent API reviews found no actionable P0-P2 issue in these repairs.Current Ledger proof includes 37 contention/readback/terminal cases and 11 admission cases. A fresh source-blind private SQLite probe passed six clauses: absent reads create no state, creation is explicit and idempotent, writers remain usable after reads, stale writes cannot replace a terminal result, a distinct failure persists after reopening, and cleanup completes naturally. The 37 and 11 case runs used the preceding
c5cb8604composition; the final Ledger owner bytes are unchanged. These focused results do not stand in for the current native full gate.The preceding
381857c4full build passed, but its check caught an authoredno-unsafe-finallyerror in a recovery test; tests never started. The repaired cleanup reports the original assertion failure after joining all pending work. All observed processes from that failed run settled and native lock recovery completed.The preceding
254e5694gate passed its full build in 8 min 8.9 s and passed the full check. Tests stopped with exit 130 after five recovery fixtures reached a shared temporary SQLite path and an MCP integration lost its real transport. Five shards passed, one failed with six cases, and four were interrupted. All recorded processes settled, native lock recovery completed, and owned temporary output was removed. The shared database was not opened, migrated or deleted during diagnosis.Both fixture causes are now repaired. Recovery tests use private stores and scoped cleanup. An ordered four-test MCP producer followed by the original integration reproduced the missing plugin-data failure; retiring the drained producer manager made that same order pass without a diagnostic reset. The entire producer and integration files passed 21 tests in 168.79 s including native runtime preparation. A source-blind run passed all 107 recovery/model-switch tests in 82.68 s with private state and verified cleanup. All four touched files were audited: distinct cases remain, an unreachable conditional and redundant setup/cleanup were removed, mutable expectations were strengthened, and failure paths join their asynchronous work. The largest file remains three lines shorter than the original fixture. The earlier scoped lint ran before its final cleanup edit and did not cover
381857c4; the native failure corrected that evidence gap. On the final repair, the same lint command, selected agent test types, formatting and unchanged line limits pass. Both affected detached-start cases passed again in 39.87 s with private state and settled processes. The other 105 cases were not rerun. Independent API review found no actionable P0-P2 findings, and independent review confirmed the final simplification preserves error precedence. These focused results do not constitute a completed full gate.The integrated worker, fixture and line-limit repairs passed 290 tests across 19 files. Five existing model-setup suites passed 56 cases. The limits remain unchanged: redundant code was removed and existing owners were reused. Independent review found no actionable P0-P2 findings. The full touched test files were audited, preserving distinct behavior and cleanup coverage.
The previous
97196a9anative run passed its build in 9 min 58.6 s and passed the full check, but refused test preparation before any test shard. The artifact guard treated an authoritatively absent launchd service as unknown because an optional field was omitted. The narrow254e5694repair now accepts confirmed absence while still refusing live Gateway overlap and incomplete inspection. Its regression failed before repair, all 100 affected tests passed afterward with one existing skip, and an independent source-blind validator passed the same four acceptance and refusal clauses. The four-file focused run took 37.52 s; the three added native-boundary cases took 13, 4 and 4 ms. Scoped lint, formatting and independent review passed. No service was restarted, and no assertion, skip, timeout or retry was weakened.Earlier proof and investigations below retain their original candidate and environment limits. They do not stand in for the current full gates.
Earlier integrated correction proof
3710c1f8.3710c1f8build passed in 11 min 44.7 s, then its full check failed on four inherited line-limit violations; tests did not start. Those violations are now repaired and the integrated seven-file strict lint check passes. The completed supplier proof above covers the refactor. Earlier source-blind and installed-updater evidence below applies only to unchanged Ledger behavior and does not replace the pending full gates.Earlier remote correction proof
Native Testbox run: build passed in 11 min 56.8 s and full check passed. Five test projects completed with 32,755 passes and 53 skips, then the remote command ended with exit 255 during tooling. No failed test case preceded the disconnect, but the full gate did not pass. A second independent candidate encountered the same approximate two-hour disconnect on a different passing fixture; the cause remains unproved. Native local gates are now the selected route; no unchanged remote retry is planned. No test timeout, retry count, skip or assertion was weakened.
The two
77036473formatting changes leave executable bytes unchanged. Both complete lease maintenance/timer test files were audited with all distinct coverage retained. Formatting and diff checks pass, and the merge preview against freshly fetched main82bd51a3is conflict-free. Earlier runtime proof remains applicable to unchanged code; it does not replace the missing full gate.On exact
3911ad71, seven whole files passed all 80 focused tests in 49.33 s. The standalone full build passed in 8 min 32.3 s. Independent integrated API review found no P0-P2 findings, confidence 0.70.A real published
[email protected]driver updated to exact3911ad71. Its persisted update ledger completedsucceeded/finishedwith 44 terminal steps. A distinct real no-op completedskipped/already-current/finishedwith nine terminal steps. Neither left an active step. Native migration, state/config/approval survival, Gateway, agent-turn, plugin/Doctor and backup/rollback assertions passed.AWS installed proof, lease
cbx_92e8695ca5bf, native survivor exit 0. The outer wrapper exited 2 only during later archive export because Docker result files were unreadable to the exporter. A read-only same-lease recovery exited 0, verified exact source/artifact/installed identities and ledger rows, and confirmed container absence without replaying acceptance. The lease is released with cleanup complete.The
1e5ead74prerequisite replaces a deleted QA code reference with surviving tests. The actual resolver rejected the old reference in an isolated fixture and accepted the canonical replacement; a missing-path negative control still refused. Independent review passed through P2, confidence 0.94. No product or test code, assertions, skips or timeouts changed. The earlier runtime and installed proof remains applicable to unchanged bytes; this does not claim completed full gates on the new head.Earlier integration proof
Historical installed updater evidence
The installed observations below are for published
e720e434. Subsequent canonical ownership integration changed the implementation, so these results remain historical. The current3911ad71installed run is recorded above.Original AWS run and retained-observation audit, provider
aws, leasecbx_c6fada2fa24a. The audit log contains the result manifest, SHA2569302e4b64e3750e6aa6f8be1cf434e0db80cc647b15c585ffc28c245ec1fe8d9.Published
[email protected], commiteb377ac59e6c9fd6c7705028034812becf00271b, drove an installed update to exact candidatee720e434d9035ab3d10e3becedbd74a95f98b7f7. The native survivor lane passed migration, state survival, installed identity, Gateway readiness and status. Real SQLite peer probes ran at the integrity-scan boundary, with ledger observations selected by real caller frames.The forced fallback cases covered
recordUpdateRunSteptwice,adoptUpdateRun, andcreateUpdateRun. Writer exclusion during those four transactional rechecks is intentional. The first update finishedsucceeded; the candidate's same-version invocation finishedskipped/already-current.The combined run exited 1 because the extra no-op wrapper reused an assertion that requires
okand rejected the correctskipped/already-currentreport. The subsequent observation audit passed in 2.921 s and preserves this failure. The full survival assertion after that extra no-op did not run. This is not a claim that the combined lane passed.The observer measures peer-writer admission, not scan duration or production latency. Integrity remains synchronous, and peer commits still require transactional revalidation. Manual restart mode proves Gateway readiness in the test, not updater-owned service restart. The already-running old updater retains its old admission behavior.
Prior CI investigation
The following observations concern earlier heads. They do not establish full-gate success or root-cause attribution for the current correction.
Earlier failures, bounded investigations and related fixes
The original runtime-config shard failed the cleanup-service applied-summary age case with "Agent database resources are closing" after synchronous test cleanup. Original failure. The same 167-file order passed locally, 2,161 tests plus one existing skip in 706.65 s wall time, on macOS Node 24.20 rather than Linux Node 24.19. A separate lifecycle probe confirmed that synchronous close can leave real history-reader and reclamation-worker drainage pending; awaited canonical close settled those resources. The original age-case failure was not reproduced. A scheduled main run at
932572acindependently failed the count-pressure reopen case with the same resources-closing refusal, while 1,364 tests passed. That establishes baseline susceptibility, not the cause of the original age-case failure. Canonical commit6c7544adc9826fa637425a2fa967389e0507a800now awaits asynchronous database closure in this fixture, retaining its assertions. It is included in local integrated candidateaa244113; its new full gate remains pending. No test assertion, timeout, retry, or skip was changed in the ledger PR.An optional full release check stopped after 20m59.3s when the package import scanner remained CPU-bound on a 190 KB generated browser bundle. It did not pass. The independently reproduced scanner repair is tracked in #158705. It is outside this ledger change.
The earlier
23e64a97native full run also found four Chromium saved-column failures. An independent worker reproduced all four 12-pixel failures with the old fixture, then passed all six cases on unchanged parent production code using only the fixture correction already merged in #158683, commit3dede6a26f3db5b14cf087bcdc995a2221dfe458. Fresh main also passed. All original assertions remain. Exact browser evidence.The TUI unit shard found one OSC8 terminator assertion mismatch. The PTY shard found 37 rejections of
CSI 16 tand one more terminator assertion mismatch. The independently reproduced test correction landed in #158748 ate91fd2ed975aff1260beabea73e9f67e74f0c7b5. It preserves production rendering and strict control rejection. The same run hit the 180-second outer timeout inagent-bundle-mcp-retention.test.ts, before its retention assertion. The cancellation-cleanup repair landed separately in #158767 at8d9179bca949ca20bfd6ee01c82a5b16739220f9; it is not a proven performance fix. A lower-concurrency run on scanner candidate77defc7apassed the MCP case in 147.621 s and its containing shard with 1,938 tests passed and five existing skips. That run used two project shards and two Vitest workers, unlike the ledger run's ten project shards and one worker. The original normal timeout remains unclassified. None of these observations is claimed as the cause of the original Mac lockup, and none has been hidden by skips, weakened assertions, retries, or increased timeouts.The run also reported a native
SIGSEGVin one 138-fileunit-srcgroup. It emitted case output from 123 files before stopping; the other four source groups completed. The scheduler stopped admitting new shards. An independent native replay of the exact group reproduced SIGSEGV 139 after 448.196 s, ending after a different test file. The remaining three groups were then cancelled through the native supervisor. Across 24 completed shard summaries, 50,265 tests passed and 44 failed; the other 639 planned shards did not complete. The exact file and cause remain unknown. Interleaved state-test output is not crash attribution, and no successful full-gate result is claimed.A dedicated worker completed three bounded LLDB comparisons of the same 138-file inventory. Each passed 130 files and 1,843 tests, with eight existing skipped files and 103 skipped tests. All 123 original observed file positions matched.
51b995e18df4ebb6dd549c02b7d595522f21f39a23e64a97a701d6910fbf8b369a2bd646c2e9dc4051b995e18df4ebb6dd549c02b7d595522f21f39aSampled compiler inputs and all four loaded native libraries kept stable hashes and file identities during the final control. The original deleted dependency graph was unavailable for a direct binary comparison. Two earlier diagnostic setups were rejected for changed compiler-input metadata and a cached test-order mismatch; neither counts as crash evidence. The successful comparisons still differ from the two raw crashes in debugger timing and background load. There is no reproduced canonical fault or originating native stack to justify a crash patch or assign its cause. Integrated candidate
aa244113still requires native gates; these focused passes do not replace them.Shared gate prerequisite repair
History’s full native run at
2094ed23a9ef196db43a86aaa29583cff849dad9passed build and check, then exposed three failures shared by this candidate. The reviewed repairs below are now integrated into local Ledger candidate87683c99abab91bcd488d7a62d686c219f542374, with identical repaired file contents and original credit. The candidate also includes upstream worker-recovery fixture fixbbbb3b464a9fe6094a65cc391ce3db94a1c29c07. These corrections are not yet published. Current-candidate review, full gates and landing remain pending.fc47343a5198574003ff7a806c774bf6034535ae: isolate the MCP command fixture's global runtime manager. An ordered fresh-main reproduction showed that a preceding file's retained factory bypassed the transport mock and started a real process. The full command fixture passes all 20 cases; both permanent ordered-pair regressions pass, including all four transport-settlement paths.0fa080f71eb40c9eb1f5a3b6b7c97f6dafc448d5: remove incomplete lifecycle-error mocks and restore timers during teardown. Both original and reversed file orders reproduce the missing export on unmodified main. The repaired lease and adjacent maintenance suites pass all 27 cases.b464a9a55d1bbe07c457d3be131ff4bcb83b1a51: keep GitHub item icons with the first label line. Fitting chips remain on one line; oversized labels wrap without clipping or icon overlap in both directions. All seven browser tests and six independent source-blind clauses across 80 combinations pass.All five touched test files were audited in full. Distinct regressions, failure paths and cleanup checks remain; no tests were removed or skipped, and no timeout or retry was increased. The UI test now distinguishes fitting from oversized labels and checks clipping and overlap. A new RTL guard rejected the first padding draft. Scoped types, lint, formatting, styles and changed-plan guards pass. Final independent API review found no actionable P0–P2 issue, confidence 0.93. These are focused results, not a completed full-gate claim.
The before/after captures use the same synthetic component fixture, Chromium renderer and 200/208-pixel columns. Base:
1fe560c198c2917154e2e1b130b0df3352ac5114. Head:b464a9a55d1bbe07c457d3be131ff4bcb83b1a51. This proves component layout, not a full Gateway workflow or every browser engine.Before video:
https://91b59577e757131d68d55a471fe32aca.r2.cloudflarestorage.com/openclaw-crabbox-artifacts/crabbox-artifacts/v2/org/b3BlbmNsYXc/owner/Z2l0aHViOjI2MzA2MDIwMg/pr-158680/publish/20260928-061345-944996000/before.mp4?X-Amz-Expires=604800&X-Amz-Date=20260928T061345Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=a677a1e59413a4e54bcc2da5fec6164a%2F20260928%2Fauto%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=7e738bc0a2aaf033c3881374b5d220d472c0fd32ed2f6df84af0a21ee47a6ef1
After video:
https://91b59577e757131d68d55a471fe32aca.r2.cloudflarestorage.com/openclaw-crabbox-artifacts/crabbox-artifacts/v2/org/b3BlbmNsYXc/owner/Z2l0aHViOjI2MzA2MDIwMg/pr-158680/publish/20260928-061345-944996000/after.mp4?X-Amz-Expires=604800&X-Amz-Date=20260928T061345Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=a677a1e59413a4e54bcc2da5fec6164a%2F20260928%2Fauto%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=a95c81c2122825713eddf588b9638379ea62a6816c358381340a468443784943
Contract · Raw before · Raw after · Artifact manifest
All published files were downloaded and hash-verified. Links expire on October 5, 2026.