Repository navigation
fix: acknowledge committed config writes after concurrent edits - #145983
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: blocked before merge. Reviewed September 12, 2026, 12:28 PM ET / 16:28 UTC (Revision 8). ClawSweeper reviewWhat this changesConfig writes acknowledge the configuration and revision they committed, while checking concurrent root and include edits before synchronous publication and preserving permission-error copy fallback. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful fix for behavior still present on main. The prior fallback-creation finding is resolved, and no blocking defect was found. The earlier generic migration warning is not supported by a changed stored format. Priority: P2 Review scores
Verification
How this fits togetherGateway settings requests and CLI mutations share OpenClaw’s config writer. It validates and publishes config files, then returns a committed revision; runtime application is handled separately. flowchart TD
A[Settings or CLI mutation] --> B[Capture config revision]
B --> C[Validate candidate and includes]
C --> D[Check current ownership and inputs]
D --> E[Publish root file]
E --> F[Return committed config and revision]
E --> G[Reconcile runtime application]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +83, Tests +268. Total +351 across 15 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep committed acknowledgements authoritative for the completed write while later reads and runtime application independently report newer state. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source exposes the write-then-invalid-reread failure path, and the contributor records an authenticated reproduction; this review did not execute it. Is this the best way to solve the issue? Yes. Returning the writer’s captured commit pair removes the false acknowledgement failure while retaining the existing revision encoding, conflict checks, and separate runtime outcome. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ed1afab88dfc. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
|
landpr-approve-admin-merge |
Related: #145939. Context: #145983 (server acknowledgement owner; no landing-order dependency). ## What Problem This Solves A Settings edit reverted during its save can leave the first value on disk and show **Settings changed elsewhere**, without an external writer. Raw edits during autosave, patch acknowledgements and teardown also exposed stale draft revisions. A hashless preference no-op could additionally clear a real form conflict and let a later edit overwrite an external value. ## Why This Change Was Made The decision `what base revision the client holds after an acknowledged write` is made by exactly one mechanism at `ui/src/lib/config/config-draft-model.ts:431`, `adoptConfigWriteAck`. Set, Apply, patch, independent preference/plugin writes and teardown consume it. Canonical source and base revision advance together before any null-replay return. Form replay uses owned sanitized objects, including clean reverts; raw-text form replay and separate patch adoption are deleted. Raw buffers keep exact bytes and their original content evidence until canonical changes are incorporated. The shared input requires `independentSnapshot`. Loaded independent writes supply their pre-write source; no-ops supply the source admitted by the existing versioned read owner. Full-draft writes explicitly supply null; null also represents an independent write before initial load. A no-op read cannot count as a committed form submission. The draft owner compares both orders of form replay, using the existing redaction projection. Disjoint or matching edits agree; divergent overlapping edits retain original content and conflict before originals are replaced. Raw-document validation stays strict. No new caller guard, read owner, generation check or adoption branch is added. The extra content validation and two typed existing-writer adapters account for production growth. ## User Impact Reverts and raw edits use the acknowledged revision. Form replay preserves compatible canonical changes; stale raw content and conflicting form values remain protected. Apply and retained-client teardown use the same continuation owner. Reconnect-paused drafts still require explicit submission. Actual app shutdown stops the Gateway before capability disposal; teardown proof is at the registered capability boundary. No server response, config key, protocol, schema, SDK, migration, updater, native or CLI behavior changes. ## Evidence - Pinned main `75e207cb2de066549c36b60003943848edba3c05`: real Gateway/browser, original JSON5 comment, failed lazy-parser request, no external writer. Revert uses the old revision, receives INVALID_REQUEST and leaves logging debug on disk. Candidate blocked/normal-parser runs persist info with visible **Saved**. - Retained browser proof covers raw edits during form autosave, stale raw rejection/recovery, ordinary autosave, concurrent external edits and navigation. Exact patch-in-flight form continuation uses its receipt hash with every later config read held and displays **Saved**. - On `0a67e190`, a real preference no-op clears a retained form conflict; an unrelated console edit then saves stale logging debug over external error and displays Saved. The corrected registered regression preserves the conflict, original content and external value. - On committed `66df3f9`, the same real no-op preserves the conflict; another form edit sends no unsafe write and the external value stays on disk. Visible Reload followed by a safe edit displays **Saved** and preserves that value. Complete red/green order, files and sanitized captures are retained. - Current correction: 200 cases pass across eight affected suites. The retained-conflict test fails on `0a67e190`; late-read, disconnect and disjoint continuation controls remain. Formatting, focused lint, line-limit, assertion and all three unused-export scans pass. Type checking and full CI remain hosted. - Complete frames, fixture files, runner sources, failures and sanitized captures are retained. Historical coverage and reruns are separated in the Tests ledger. ## Consumers The expanded BASE census covers 133 distinct positions and their aliases; each resolves in an owning UI project. Four UI projects are selected; other projects are explicit exclusions. Current-head coverage resolves all 118 positions across 472 project attempts, with 15 expected exclusions; three prior-head supplemental positions also resolve. No missed alias or analysis failure remains. All 43 source hashes match the commit. The table preserves all 174 prior rows and adds all 22 newly returned BASE consumers: 196 concrete rows. The private form predicate at config-draft-model.ts:400 feeds common adoption at :431. Every full-draft/independent/no-op producer chooses its explicit source context in config-gateway-operations.ts; the existing coordinator owns serialized dispatch and read retirement. Runtime capability and locale/status subscribers consume the resulting canonical values and settled state. Native/CLI clients do not import these private modules. Lexical census generic-name review: `currentRaw` matches in `extensions/imessage/src/chat-context.ts`, `extensions/zalouser/src/message-sid.ts`, `src/auto-reply/reply/commands-session.ts`, `src/commands/onboard-non-interactive/local.default-agent.test.ts`, `src/config/io.write-safety.ts`, `src/config/io.write.ts`, `src/config/mutate.ts`, `src/gateway/worker-environments/node-worker-tunnel.test.ts`, `src/gateway/worker-environments/node-worker-workspace-actions.ts`, `src/gateway/worker-environments/node-workspace-upload-reader.test.ts`, `src/gateway/worker-environments/node-workspace-upload-reader.ts`, `src/gateway/worker-environments/workspace-local-reconciliation.ts`, `src/gateway/worker-environments/workspace-result-staging.ts`, `src/gateway/worker-environments/workspace-sync.ts`, `src/infra/session-cost-usage-cache.sqlite.ts`, `src/node-host/node-worker-transfer-client.test.ts`, `src/node-host/node-worker-transfer-client.ts` are independent local variables or worker-manifest fields, with no reference to the removed replay parameter. `submittedRaw` in `config-draft-model.ts` remains the independent error-formatting parameter, and in `config-write-coordinator.ts` remains reconnect recovery state. The replay callers are the two migrated callers listed above. census: generic currentRaw reviewed — 0 callers listed census: generic submittedRaw reviewed — 0 callers listed Additional lexical dispositions: `issues`, `sourceConfig` and `valid` were keys in the deleted temporary patch snapshot, not removed ConfigSnapshot fields. Their declarations in `ui/src/api/types.ts` and the canonical writes in `adoptConfigWriteAck` remain. Existing snapshot readers and independent schema/validation fields keep the same contract. `invalidateConfigLoad` is retained in `config-write-coordinator.ts`; its one `trackWrite` caller now invalidates acknowledged patch loads too, replacing the removed option handoff. `onAck` in `extensions/telegram/src/bot-update-tracker.ts`, `src/channels/message/receive.ts` and `src/channels/message/lifecycle.test.ts` belongs to the unchanged message-receive acknowledgement contract. No caller of the retired config-patch callback remains. census: generic invalidateConfigLoad reviewed — 1 callers listed census: generic issues reviewed — 0 callers listed census: generic sourceConfig reviewed — 0 callers listed census: generic valid reviewed — 0 callers listed census: generic onAck reviewed — 0 callers listed | Consumer | Support floor | Artifact | Operation | Result | | --- | --- | --- | --- | --- | | Control UI | Matching Gateway build, as specified by ui/AGENTS.md | Candidate UI source with the unchanged real Gateway | Settings save/revert/raw content/race | Passed for the browser flows described above | | Native and CLI clients | Unchanged | Unchanged shared acknowledgement | No modified consumer code | Outside this UI-only contract | ### Concrete consumer dispositions All UI consumers below are private modules shipped with the matching Gateway. The source column is the consumer and its artifact locator. Source locators bind the reviewed content at 66df3f913cc938f55fe7c23a559d657fb903e5ac. A retained fixture is not a claim that its suite ran; the per-family Tests ledger owns execution claims. | Consumer / source artifact | Operation | Disposition | | --- | --- | --- | | ui/src/lib/config/config-state-model.ts:19 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/config-page.ts:1105 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/view-types.ts:64 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/view.ts:245 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/view-diff.ts:140 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/custom-theme-import-owner.ts:18 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/session-storage.ts:220 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/lib/chat/follow-up-mode.ts:38 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/chat/chat-pane-render.ts:117 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/lib/config/runtime-config-capability.ts:81 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/app/app-root.ts:166 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/app/bootstrap.ts:657 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/app/startup-lifecycle.ts:37 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/app/gateway-store.ts:706 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/lib/plugins/index.ts:110 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/lib/skills/config-mutations.ts:23 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/features/github-connections/github-identity-controller-shared.ts:60 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/features/github-connections/github-identity-controller.ts:583 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/features/github-connections/github-identity-controller-authorization.ts:215 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/features/github-connections/github-connections.ts:49 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/agents/identity-actions.ts:85 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/agents/agents-page.ts:156 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/model-providers/config-mutation.ts:224 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/model-providers/login-controller.ts:255 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/model-providers/profile-actions-controller.ts:85 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/model-setup/model-setup-page.ts:549 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/app/server-prefs-profile.ts:72 | Profile preference result | Retain users.prefs.set results; this shared result type is not a config receipt. | | ui/src/pages/agents/model-config.ts:27 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/meeting-capture.ts:260 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/memory-page.ts:534 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/talk-page.ts:489 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/devices/devices-page.ts:583 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/channels/channels-page.ts:726 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/config-page.ts:1054 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/plugins/plugins-page.ts:677 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/session-storage.ts:275 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/agents/agents-page.ts:1124 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/lib/config/mcp-servers.ts:216 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/agents/memory/dreaming.ts:566 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/agents/memory/memory-panel.ts:294 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/cloud-workers/cloud-worker-repositories.ts:85 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/cloud-workers/cloud-worker-snapshot-policy.ts:68 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/cloud-workers/cloud-workers-page.ts:148 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/skill-workshop/access.ts:12 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/skill-workshop/skill-workshop-page.ts:463 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/components/mcp-servers-card.ts:83 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/chat/chat-pane-base.ts:586 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/labs/labs-page.ts:50 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/model-providers/model-providers-page.ts:197 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/new-session/new-session-page.ts:232 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/sessions/sessions-page.ts:184 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/cron/cron-page.ts:116 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/lib/config/config-draft-model.test.ts:89 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-draft-revision.test.ts:58 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-external-refresh.test.ts:84 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-gateway-operations.test.ts:429 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-patch-recovery.test.ts:213 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-state-model.test.ts:63 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-write-ack.test.ts:14 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-write-coordinator.test.ts:46 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-write-recovery.test.ts:125 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/runtime-config-capability.test.ts:674 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/app/server-prefs.test-support.ts:3 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/app/server-prefs.read-only.test.ts:257 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/features/github-connections/github-identity-controller.test.ts:61 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/skills/index.test.ts:37 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-providers/model-providers-page.test-support.ts:11 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/plugins/plugins-page.test-support.ts:274 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-providers/model-providers-page.login.test.ts:98 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-setup/model-setup-activation.test.ts:718 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-setup/model-setup-first-run.test.ts:142 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-setup/model-setup-page.test.ts:721 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/components/config-form-map-integrity.browser.test.ts:5 | Moved-helper test | Retain serializeFormForSubmit import/assertions; this helper test is not registered regression proof. | | ui/src/lib/config/config-test-harness.ts:65 | Receipt fixture producer | Retain stateful canonical config/hash responses; patch/deferred fixtures stay explicit. Protocol is unchanged. | | ui/src/test-helpers/control-ui-e2e.ts:1498 | Receipt fixture producer | Retain stateful canonical config/hash responses; patch/deferred fixtures stay explicit. Protocol is unchanged. | | ui/src/test-helpers/control-ui-e2e.mock-gateway.test.ts:122 | Receipt fixture producer | Retain stateful canonical config/hash responses; patch/deferred fixtures stay explicit. Protocol is unchanged. | | ui/src/e2e/agent-config-save.e2e.test.ts:207 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/agents-set-default-persistence.e2e.test.ts:53 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/appearance-settings-defaults.e2e.test.ts:598 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/channels-whatsapp-logout.e2e.test.ts:167 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/chat-composer-capability-menu.e2e.test.ts:838 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/chat-flow.active-run-follow-ups.e2e.test.ts:44 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/chat-outbox-capacity.e2e.test.ts:153 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/cloud-workers-settings.e2e.test.ts:694 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-enum-controls.e2e.test.ts:130 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-form-defaults.e2e.test.ts:166 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-form-integrity.e2e.test.ts:187 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-number-controls.e2e.test.ts:59 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-quick-thinking-persistence.e2e.test.ts:69 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-raw-save.e2e.test.ts:38 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-safe-write.e2e.test.ts:172 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/curated-settings-defaults.e2e.test.ts:150 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/memory-settings-defaults.e2e.test.ts:133 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/memory-settings-engine.e2e.test.ts:85 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/model-providers.e2e.test.ts:673 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/model-providers.test-support.ts:26 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/plugins-config-mutation.e2e.test.ts:101 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/plugins-request-ownership.e2e.test.ts:150 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/plugins-settings-admin.e2e.test.ts:603 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/session-storage-settings.e2e.test.ts:148 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/settings-prefs-reconnect.e2e.test.ts:279 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/skill-workshop-self-learning.e2e.test.ts:113 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/theme-muted-contrast.e2e.test.ts:188 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/transcript-library.e2e.test.ts:80 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/updates-settings.e2e.test.ts:256 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/plugins/plugins.e2e.test.ts:308 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/app/server-prefs.profile.test.ts:254 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/app/server-prefs.test.ts:394 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/components/mcp-servers-card.test.ts:440 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/agents/identity-actions.test.ts:71 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/agents/memory/dreaming.test.ts:865 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/channels/channels-page.test.ts:773 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/cloud-workers/cloud-worker-snapshots-dom.test-support.ts:87 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/cloud-workers/cloud-worker-snapshots.test.ts:294 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/cloud-workers/cloud-workers-page.test.ts:116 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/config/meeting-capture.test.ts:79 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/config/session-storage.test.ts:162 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/plugins/plugins-page.test.ts:291 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/agent-file-lifecycle.e2e.test.ts:203 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/agent-file-lifecycle.real-gateway.e2e.test.ts:177 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/agent-github-device-authorization.e2e.test.ts:230 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/agent-model-fallback-ownership.e2e.test.ts:156 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/browser-route-handoff.e2e.test.ts:482 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/config-controls-visual.e2e.test.ts:229 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/config-form-guidance.e2e.test.ts:234 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/control-ui-auth-transports.e2e.test.ts:728 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/cron-agent-ownership.e2e.test.ts:142 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/device-binding-state.e2e.test.ts:131 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-alias-display.e2e.test.ts:168 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-picker-search.real-gateway.e2e.test.ts:169 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-provider-login.e2e.test.ts:181 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-provider-usage-outcomes.e2e.test.ts:235 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-setup-activation-feedback.e2e.test.ts:402 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-setup-cancel.e2e.test.ts:218 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-setup-explicit.e2e.test.ts:89 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-setup-replacement.e2e.test.ts:125 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/operator-admin.e2e.test.ts:333 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/session-observer-model-catalog-recovery.e2e.test.ts:49 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/skills-library.e2e.test.ts:273 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/theme-typography.e2e.test.ts:177 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/update-confirmation.e2e.test.ts:358 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/agents/agents-page.test-support.ts:16 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/agents/memory/memory-panel.test.ts:84 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/config/config-page.test.ts:582 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/model-setup/model-setup-first-run.test-support.ts:48 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/model-setup/model-setup-gateway-owner.test.ts:67 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/plugins/plugins-page.lifecycle.test.ts:354 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/plugins/plugins-page.reload.test.ts:169 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/skill-workshop/skill-workshop-page.test.ts:914 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/test-helpers/mock-gateway-page.test.ts:64 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/cron-trigger-authoring.e2e.test.ts:220 | Page capability admission test | Retain setWritesSuspended/patchForm/apply path; it does not show navigation invokes dispose. | | ui/src/lib/config/config-draft-model.ts:420 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/lib/config/config-draft-model.ts:37 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/lib/format-error.ts:4 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/components/settings-save-indicator.ts:80 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/i18n/locales/en.ts:1898 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/lib/config/config-state-model.ts:70 | Versioned source-read owner | No-op refresh uses the existing versioned read owner for source admission, successors and connection retirement. Admitted source adoption does not invalidate newer reads. | | ui/src/lib/config/config-gateway-operations.ts:290 | Versioned source-read owner | No-op refresh uses the existing versioned read owner for source admission, successors and connection retirement. Admitted source adoption does not invalidate newer reads. | | ui/src/lib/config/runtime-config-capability.ts:234 | Versioned source-read owner | No-op refresh uses the existing versioned read owner for source admission, successors and connection retirement. Admitted source adoption does not invalidate newer reads. | | ui/src/app/app-shell-gateway.ts:170 | Versioned source-read owner | No-op refresh uses the existing versioned read owner for source admission, successors and connection retirement. Admitted source adoption does not invalidate newer reads. | | ui/src/app/server-prefs.ts | Independent preference config.patch producer | Retain its deliberately hashless preference patch; select its typed receipt and reconcile authored source under the shared config owner. | | ui/src/pages/plugins/install-wizard-controller.ts | Independent config.set producer | Select its typed receipt; shared form originals are not this adapter's wire document. | | ui/src/lib/config/config-patch-coordinator.ts | Patch receipt observer | Retain queued patch admission; forward the submission receipt to the common owner. Delete the old patch-only adopter and invalidation handoff. | | ui/src/lib/config/config-write-coordinator.ts | Write serialization, receipt lifetime, reconnect and disposal | Retain one writer. Only a live flight invalidates older loads; known receipts remain available to capability teardown. Only unacknowledged full-draft bytes can support lost-ack recovery. | | ui/src/components/config-form.shared.ts | Sensitive-value scans | Both original scans import the moved predicate; null, empty values and environment placeholders preserve their semantics. | | ui/src/lib/config-form-utils.ts | Shared predicate and form sanitization | Own the unchanged sensitive predicate used by both scans and content projection. | | ui/src/app/app-host.ts | Canonical state subscription | Consume the existing capability snapshot and refresh publication; no receipt policy is added. | | ui/src/app/app-shell-view.ts | Save-status rendering | Render settled status from the capability; no receipt policy is added. | | packages/normalization-core/src/stable-stringify.ts | Content comparison dependency | Retain the existing implementation and other callers. Only the draft-owner import is new; unrelated callers do not migrate. | | ui/src/lib/config/config-draft-model.ts:431 | Common acknowledgement owner | Six production calls use this owner with an explicit independent-source field. Form overlap uses the existing replay orders; raw inclusion stays strict. | | ui/src/lib/config/config-gateway-operations.ts:316 | Current source-result publication | readConfig admits results using existing request and connection checks before applyConfigSnapshot. No separate no-op read publisher remains. | | ui/src/lib/config/config-noop-read.test.ts:11 | Registered read-order/retirement test | Late A cannot rewind successor B or create a dirty conflict; disconnect settles before A is released. Next form save preserves B and settles Saved. | | ui/src/pages/model-providers/load.ts:14 | Existing editable-source reader | Retains resolveEditableSnapshotConfig import and source projection. No new production consumer or receipt policy is introduced. | | ui/src/pages/skill-workshop/self-learning.ts:5 | Existing editable-source reader | Retains resolveEditableSnapshotConfig import and source projection. No new production consumer or receipt policy is introduced. | The shared ConfigSnapshot and Gateway response contracts are unchanged. Native, CLI and server clients do not import the changed private UI declarations. Other stableStringify callers use its unchanged public contract. The four selected UI projects own typed coverage; project exclusions and lexical-name dispositions remain explicit in the evidence. ### Additional concrete consumer dispositions These 22 rows supplement the existing 174 Consumers rows. The earlier rows remain in place; together they account for 196 concrete rows. The locations identify the reviewed source at 66df3f913cc938f55fe7c23a559d657fb903e5ac. These files are unchanged by the three-file form-overlap correction. Retaining a fixture is not a claim that its suite ran. | Consumer | Contract | Disposition | | --- | --- | --- | | ui/src/app/context.ts:9/:111 | Application capability type/handle | Retain the app-owned RuntimeConfigCapability handle and forwarding contract; it adds no acknowledgement or read owner. | | ui/src/pages/agents/skills.ts:49/:61 | Agent skill-filter writer | clearAgentSkillFilter sends skills:null and replacePaths through registered patch. Retain the shared patch/adoption owner and dispatch admission. | | ui/src/pages/cloud-workers/cloud-worker-config-save.ts:19/:33 | Cloud-worker config writer and notice | Retain patchFromSnapshot, lastError handling and current-request guard. Publish success notice only after the registered patch succeeds. | | ui/src/app/update-config-interlock.ts:7/:12 | Write suspension interlock | Retain setWritesSuspended through the existing update overlay subscription. No updater/version contract changed. | | ui/src/pages/chat/chat-composer-capability-host.ts:49/:174/:563 | Derived effective-tools cache and runtime defaults | Retain appliedConfigHash → configRevisionHash → hash fingerprint priority and runtimeConfig projection. The cache key consumes admitted revision changes; source acknowledgement alone must not claim newly applied runtime. | | ui/src/lib/plugin-activation.ts:9/:14 | Canonical plugin activation projection | Retain config enabled/deny/allow/entry selection. It reads canonical config and ignores acknowledgement revision; it creates no draft. | | ui/src/pages/chat/chat-pane-board.ts:231 | Swarm availability | Retain canonical config selection through the subscribed shared capability and roster lifecycle; no separate receipt adoption. | | ui/src/pages/channels/wizard-host.ts:48 | Dirty-draft wizard admission | Retain the configFormDirty guard before opening channel setup; no write-base policy here. | | ui/src/components/markdown-session-links.ts:145 | Session-link origin | Retain runtimeConfig.gateway.publicOrigin projection and existing link rendering; no source-document reconstruction. | | ui/src/pages/new-session/capability-controller.ts:78 | New-session capabilities/defaults | Retain runtimeConfig projection and existing access gates; do not replace applied runtime defaults with editable source. | | ui/src/app/update-config-interlock.test.ts:50/:59 | Registered save/dispose interlock tests | Retain terminal/live/recovery-held update admission assertions and actual config request counts; cleanup calls capability disposal. No new updater matrix claim. | | ui/src/lib/config/runtime-config-capability.schema-access.test.ts:34/:51 | Capability lifecycle test consumer | Retain registered schema-access tests and disposal cleanup. Their unchanged schema fixtures are not new write-receipt producers. | | ui/src/lib/plugin-activation.test.ts:8/:19/:36/:57/:76 | Snapshot hash/config fixture producer | Retain activation selector fixtures for bundled defaults and explicit activation controls; hash does not adopt draft state. | | ui/src/pages/agents/skills.test.ts:2/:14/:40 | Capability patch fixture | Retain typed capability fixture and exact agent skill-clear patch expectations; no new receipt shape required. | | ui/src/pages/chat/chat-composer-capability-host.test.ts:14/:239/:317/:360/:397/:402/:444/:449 | Snapshot/source/runtime and cache fixtures | Retain fixture sourceConfig/runtimeConfig distinction and applied-revision cache invalidation tests. No receipt or cache policy change needed. | | ui/src/pages/agents/agents-page.test.ts:201 | Typed patch callback fixture | Retain Parameters<ApplicationContext["runtimeConfig"]["patch"]> fixture and queued skills-clear reconnect rejection; this is a forwarding consumer. | | ui/src/pages/agents/model-config.test.ts:61/:94/:140/:149/:156/:185/:202 | Form-state assertions and capability teardown | Retain explicit model staging, initial clean-state assertions and disposal; do not reinterpret cleanup as browser shutdown proof. | | ui/src/pages/config/config-page.transcripts.test.ts:110 | Mounted Settings capability teardown | Retain transcript settings rendering and capability cleanup; no receipt reconstruction. | | ui/src/pages/devices/route.test.ts:40 | Route capability lifecycle fixture | Retain onTestFinished disposal and refresh spy for route ownership; unrelated file replies are not config receipts. | | ui/src/pages/model-setup/model-setup-reconnect.test.ts:157/:179/:198/:247/:304/:348 | Reconnect/disposal test consumer | Retain registered model-setup reconnect fences and capability cleanup; no acknowledgement shape change. | | ui/src/pages/plugins/plugins-page.persisted-install.test.ts:136/:153/:168/:291/:298/:308/:358/:437 | Install outcome/revision/status tests | Retain before-install/saved-install and replacement-config assertions, persisted-versus-applied outcome wording, refresh ordering and disposal. This UI consumer change does not change the plugin artifact/SDK contract. | | ui/src/pages/config/config-page.custom-theme.test.ts:337/:361 | Dirty/missing-snapshot import fixtures | Retain unsaved-change and initial-load import gates; no receipt policy or new theme configuration key. | ## Invalidation Every acknowledged write advances the canonical snapshot and draft base together. Original form evidence advances only after compatible replay; incompatible external overlaps retain that evidence and conflict. Raw originals retain their content anchor until the full document incorporates canonical changes. Editing, mode switches, discard and parser generation retain their existing lifecycles. Only real write receipts invalidate older reads. Hashless no-ops follow the existing versioned read/successor/connection owner and supply its admitted source for content compatibility; reading a new revision does not authorize a stale form overwrite. Disconnect and reconnect retire flights; only unacknowledged full-draft bytes support lost-ack inference. Disposal retains receipt adoption while existing dispatch admission remains enforced. ## Contention The existing single writer serializes writes and no-op source reconciliation. The corrected-head disjoint contention case queued a registered save for 14,763 ms with zero premature sets, while visible Logs navigation and eight reads completed. Four milliseconds after release, the save used the newer admitted revision, preserved both values and settled saved. Settings controls were disabled during reads, so the competing write is explicitly capability-level proof. The Logs page did not display Saved. This affected no-op case was rerun for this correction; unaffected concurrent external-edit proof is retained. ## Tests New and rewritten cases enter through createRuntimeConfigCapability operations and observe requests, persisted documents and status. No tests are deleted. The ledger names all changed families and retired assertions. Runtime/source checks do not replace hosted typechecks. The pre-existing Raw Save wait for original JSON5 parsing is a separate dispatch gate outside this repair. Manual Raw Save disables its editor; browser proof uses the reachable raw-during-form-autosave path. Credit: the adversarial round; no external reporter. ### Final deletion and rewrite ledger This ledger closes the earlier pending-ledger checkpoint for 5daa2b4bc505a768f742f4b1c37a24959e5e8977, with unchanged test source at d9ced13ff1c6616ef47fe4081e824662612d07b9. Historical failures remain in the preserved checkpoints. The response-order and retirement correction is now bound to 0a67e190e19f095a9cf7f8d61a54f864957f9f90; its new family and exact execution receipts appear below. No test was deleted. The table names each changed family, its registered entry point, and the observable or retired assertion. All listed test filenames are under ui/src/lib/config/. The shared harness constructs createRuntimeConfigCapability; these cases use its public operations rather than calling acknowledgement adoption directly. | Test family and source location | Registered production entry point | Observable assertion / retired behavior | | --- | --- | --- | | config-draft-model.test.ts:14–67; four revert/delete/parser/disposal cases | createRuntimeConfigCapability → patchForm/removeFormValue; optional dispose → coordinator autosave/teardown | Exact trailing submitted document preserves canonical siblings; normal case ends clean/Saved. Adds unavailable-JSON5 normal and disposal variants. | | config-draft-model.test.ts:70–96; comments and semantic raw edit | patchForm → autosave; setRaw → save | Preserves raw bytes, adopts hash-2, rejects missing canonical content, and sends no second write. Retires old-base protection. | | config-gateway-operations.test.ts:429–466 | patch plus patchForm | Canonical patched field and pending form edit coexist; base is hash-2 and status idle. | | config-patch-recovery.test.ts:59–93 | patchForm, reconnect publication, patch | Paused draft incorporates canonical patch field; no autosave; persisted patch observed through config.get. | | config-patch-recovery.test.ts:165–218; raw and form cases | patchForm/setRaw, save, patch | Original draft/content retained under conflict; acknowledged base becomes hash-3; final store retains external content. | | config-write-coordinator.test.ts:1080–1124 | apply → patchForm → dispose | Trailing config.set uses hash-2 and exact latest form; final base hash-9. Retires blanket Apply teardown skip. | | config-write-ack.test.ts:14–34 | runExternalMutation before ensureLoaded | Independent receipt does not invent a pending draft; canonical form and hash adopted. | | config-write-ack.test.ts:36–74 | patchForm, disconnect/reconnect, runExternalMutation, dispose | Independent write cannot flush a reconnect-paused draft; final store read confirms only independent change. | | config-write-ack.test.ts:76–143; success/failure pair | setRaw, runExternalMutation, save | Hashless no-op reads source/raw/hash; refresh failure stays separate from mutation success; successful next save uses source hash. This does not test contention while that read is held. | | config-write-ack.test.ts:146–199; set/patch × normal/dispose | runExternalMutation, patchForm, optional dispose | Independent and form changes both persist; second request uses receipt hash; final store and base checked. | | config-write-ack.test.ts:201–230 | patch → patchForm → autosave | No-op retains dispatch source/raw/hash; next full write excludes runtime defaults. | | config-write-ack.test.ts:232–280; form/raw/Apply × normal/dispose | patchForm or setRaw; save/apply; setRaw; optional dispose | Raw bytes survive; exact second request uses hash-2; final base hash-3. Manual-Raw keystroke is capability-only evidence because browser editor is disabled. | | config-write-ack.test.ts:283–317 | patch → patchForm → autosave | Patch receipt revision chains to form save; final store has both values and status Saved. | | config-write-ack.test.ts:318–413; nine content cases | patchForm → autosave → setRaw; optional patchForm; save | Missing locale/changed empty/null/environment-reference secret is rejected; incorporated locale, reordered keys, and own redacted object/array values are accepted. Request count, next base, and conflict state checked. | - Normal revert/delete assertions remain. The disposed variants are additions; restricting settled clean/status assertions to the normal branch does not remove an old disposal assertion. - Raw tests replace obsolete pre-acknowledgement-base expectations with the receipt base and stale-content rejection. Exact bytes, dirty state, canonical content and absence of a second write remain asserted. - Patch tests replace obsolete old-base assertions with receipt-base assertions and canonical-field preservation. Paused drafts remain paused and send no autosave. - The Apply teardown rewrite retires the premise that every Apply restarts. The server derives restart need from its reload plan in src/gateway/server-methods/config-write-flow.ts:136 and can complete Apply after live application in src/gateway/server-methods/config.ts:671. The replacement checks the exact trailing raw/base pair and final receipt base. - Retained aggregate coverage is 268 distinct targeted cases, not one clean exact-head run: the 13-suite batch had 266 passes and one obsolete Apply expectation; the corrected 32-case owner suite passed; the added before-load regression passed in a 101-case four-suite rerun. - After d9ced13's type-contract correction, 117 owner tests and 68 patch-recovery/preference tests passed. These are reruns within retained coverage, not 185 new cases. - unit-red.log records the unavailable-parser regression on BASE. expanded-unit-red.log and config-write-ack-red.log record raw/patch/independent failures on the earlier narrow candidate. initial-external-red.log and initial-external-green.log record the before-load capture red/green pair. - Runtime and structural results do not replace hosted typechecks. The type correction accepts the actual nullable snapshot raw contract and returns the owner's produced status; no test assertion was weakened to address those diagnostics. - Raw keystrokes during manual Raw Save remain capability-only coverage because the real editor is disabled then. Retained-client disposal is capability coverage; real app shutdown retires the Gateway first. ### Response-order correction at 0a67e190 | Test family | Registered production entry | Observable assertion / retired behavior | | --- | --- | --- | | config-noop-read.test.ts:11–82; late A after B and disconnect pair | createRuntimeConfigCapability → runExternalMutation → refresh; then patchForm/save or Gateway retirement publication | Late A cannot replace B, dirty a clean form, or create a conflict. The next write uses hash-2 and preserves enabled=true, then settles Saved. Disconnect ends the refresh before held A is released. Retires unversioned source publication and blocked connection retirement. | - round2-noop-red.log records both new cases failing on d9ced13: stale response corrupts clean draft state; disconnect leaves the mutation unresolved while the response is held. - round2-targeted-tests.log records 187 passes across seven owner/caller suites; round2-read-sibling-tests.log records 11 passes in the read-owner sibling suite. Total correction coverage is 198 cases across eight suites. - These reruns preserve the historical aggregate proof and add two registered regression cases; they do not claim that all historical cases ran together on this head. ### Form-conflict correction at 66df3f913cc938f55fe7c23a559d657fb903e5ac | Test family | Registered production entry | Observable assertion / retired behavior | | --- | --- | --- | | config-noop-read.test.ts:84–136 | createRuntimeConfigCapability → patchForm → save → refresh → runExternalMutation → patchForm/save | A failed save and retained conflict survive a hashless no-op. Original count=1 remains as evidence, adopted base advances to hash-2, unsafe save fails, and external count=9 remains in the final store. Only the external write succeeds. | | config-noop-read.test.ts:138–178 | createRuntimeConfigCapability → runExternalMutation → patchForm/save during the held source read | A disjoint form edit waits for the source, uses hash-2, preserves enabled=true, persists count=2, and settles Saved. | No test or assertion was removed. The new pair distinguishes overlapping stale form content from safe disjoint continuation; the original late-read/disconnect pair remains unchanged. round3-registered-red.log fails only the retained-conflict case on 0a67e190; round3-targeted-tests.log passes all 200 cases across eight suites on corrected executable source. Previous counts remain historical receipts, not additive new-test totals. Co-authored-by: Ayaan Zaidi <[email protected]>
|
landpr-approve-admin-merge |
|
Proof: Real Gateway writes previously committed and then reported failure after a concurrent invalid edit; the fix acknowledged the committed result and retained the external bytes. Gateway and injected fallback checks rejected changed roots and includes before publication. Bug: A post-save reread could turn a committed configuration write into a reported failure. Fix: The writer returns its committed configuration and revision, and one publication check protects root and included files during rename and copy fallback. |
…146291) ## What Problem This Solves Fixes root config write regressions introduced by #145983: failed config saves could remove the root and recommend a destructive retry, or discard recovery backups before staging succeeded. ## Why This Change Was Made Root and included-file saves share staged publication and safe restoration. Backup bytes are prepared asynchronously; rotation follows successful staging. Partial failures report the original error, recovery status, and backup location. The writer rechecks captured include path identities during publication and restoration. Backup permissions change only through admitted regular-file descriptors. The decision `which backup files may be mutated` is made by exactly one mechanism at `src/config/backup-rotation.ts:78`. The decision `whether captured include paths are unchanged` is made by exactly one mechanism at `src/config/io.write-safety.ts:80`. ## User Impact Failed staging preserves all five recovery generations. Interrupted saves restore the original file when safe. Gateway clients receive complete recovery details. Cancelled login and setup writes retain the cancellation reason. ## Evidence Before: permission-denied fallback plus a concurrent include edit removed the root; following retry advice lost Gateway settings and cold startup failed. Five disk-full saves consumed the backup history. The same CLI scenarios now restore the root, preserve all five root and include backups, and retain Gateway settings on the next save. Authenticated cold health passes; a wrong token is rejected. All three Gateway save methods return complete structured recovery failures. Aliased includes survive denied rename, validate, and cold-start; linked backup targets retain their bytes and permissions. Detailed consumer coverage is retained in `proof/consumers.md`. ## Compatibility No config keys, stored formats, protocol schema, or protocol version change. Partial publication failures use the existing `UNAVAILABLE` outcome. Plain-root legacy mutation adapters retain their supplied revision; include-bearing adapters without a committed snapshot use the existing unknown revision and can refresh before their next edit. ## Consumers - Config CLI saves preserve root and include recovery backups, including through symlinked includes, and report restoration outcomes. - Gateway `config.set`, `config.patch`, and `config.apply` preserve complete recovery messages and structured details. - Login and service-install writers check live authority immediately before file effects. - Deferred chat and Telegram native login consent recheck retained flow and caller authority at publication. - Gateway setup activation carries cancellation through the shared config writer. - Legacy include mutation adapters receive an unknown revision when no committed composite revision is available. <details> <summary>Internal call migration</summary> The counts below refer to retired adapters and synthetic test-fixture fields. Filesystem options, the public authority callback, and real token/version contracts remain supported. census: generic assertConfigPathForWrite reviewed — 0 callers listed census: generic chmod reviewed — 0 callers listed census: generic copyFallbackOnPermissionError reviewed — 0 callers listed census: generic copyFile reviewed — 0 callers listed census: generic dirMode reviewed — 0 callers listed census: generic fileSystem reviewed — 0 callers listed census: generic maintainConfigBackups reviewed — 0 callers listed census: generic mkdir reviewed — 0 callers listed census: generic open reviewed — 0 callers listed census: generic overwrite reviewed — 0 callers listed census: generic promises reviewed — 0 callers listed census: generic rename reviewed — 0 callers listed census: generic tempPrefix reviewed — 0 callers listed census: generic to reviewed — 0 callers listed census: generic token reviewed — 0 callers listed census: generic unlink reviewed — 0 callers listed census: generic version reviewed — 0 callers listed </details> ## Invalidation Existing config watchers and runtime refresh remain unchanged. Captured path facts are scoped to one write and its restoration. Failed saves publish no success acknowledgement. ## Contention Backup preparation yields to unrelated Gateway requests. With a 2,000 ms injected preparation delay, an unrelated health request completed in 90 ms (limit: 1,000 ms). Candidate staging, backup renames, and final checks stay synchronous. ## Tests 374 targeted config-owner and CLI tests passed, including linked backup slots, alias fallback, alias replacement, and missing-parent repair. Registered `openclaw config set`, `config.set`, `config.patch`, `config.apply`, `models.authLogin`, and `wizard.next` cover config writes. Provider login is synthetic. Service-token/install tests use a mocked writer and prove forwarding and refusal, not native service effects. Package-entry consumers cover legacy revision compatibility. CI hits the same `server-startup-finish.ts:416` type error as [main run 34718269980](https://github.com/openclaw/openclaw/actions/runs/34718269980), introduced by #146275. The config tests, formatting, line limits, assertions, and unused-export checks pass. Follow-up: Settings reload/save after a missing root can create defaults; that existing UI behavior is tracked separately. Co-authored-by: Ayaan Zaidi <[email protected]>
) Related: #145939. Context: #145983 (server acknowledgement owner; no landing-order dependency). ## What Problem This Solves A Settings edit reverted during its save can leave the first value on disk and show **Settings changed elsewhere**, without an external writer. Raw edits during autosave, patch acknowledgements and teardown also exposed stale draft revisions. A hashless preference no-op could additionally clear a real form conflict and let a later edit overwrite an external value. ## Why This Change Was Made The decision `what base revision the client holds after an acknowledged write` is made by exactly one mechanism at `ui/src/lib/config/config-draft-model.ts:431`, `adoptConfigWriteAck`. Set, Apply, patch, independent preference/plugin writes and teardown consume it. Canonical source and base revision advance together before any null-replay return. Form replay uses owned sanitized objects, including clean reverts; raw-text form replay and separate patch adoption are deleted. Raw buffers keep exact bytes and their original content evidence until canonical changes are incorporated. The shared input requires `independentSnapshot`. Loaded independent writes supply their pre-write source; no-ops supply the source admitted by the existing versioned read owner. Full-draft writes explicitly supply null; null also represents an independent write before initial load. A no-op read cannot count as a committed form submission. The draft owner compares both orders of form replay, using the existing redaction projection. Disjoint or matching edits agree; divergent overlapping edits retain original content and conflict before originals are replaced. Raw-document validation stays strict. No new caller guard, read owner, generation check or adoption branch is added. The extra content validation and two typed existing-writer adapters account for production growth. ## User Impact Reverts and raw edits use the acknowledged revision. Form replay preserves compatible canonical changes; stale raw content and conflicting form values remain protected. Apply and retained-client teardown use the same continuation owner. Reconnect-paused drafts still require explicit submission. Actual app shutdown stops the Gateway before capability disposal; teardown proof is at the registered capability boundary. No server response, config key, protocol, schema, SDK, migration, updater, native or CLI behavior changes. ## Evidence - Pinned main `436898181ef0eda353dc32dfab943e340d100f6a`: real Gateway/browser, original JSON5 comment, failed lazy-parser request, no external writer. Revert uses the old revision, receives INVALID_REQUEST and leaves logging debug on disk. Candidate blocked/normal-parser runs persist info with visible **Saved**. - Retained browser proof covers raw edits during form autosave, stale raw rejection/recovery, ordinary autosave, concurrent external edits and navigation. Exact patch-in-flight form continuation uses its receipt hash with every later config read held and displays **Saved**. - On `0a67e190`, a real preference no-op clears a retained form conflict; an unrelated console edit then saves stale logging debug over external error and displays Saved. The corrected registered regression preserves the conflict, original content and external value. - On committed `66df3f9`, the same real no-op preserves the conflict; another form edit sends no unsafe write and the external value stays on disk. Visible Reload followed by a safe edit displays **Saved** and preserves that value. Complete red/green order, files and sanitized captures are retained. - Current correction: 200 cases pass across eight affected suites. The retained-conflict test fails on `0a67e190`; late-read, disconnect and disjoint continuation controls remain. Formatting, focused lint, line-limit, assertion and all three unused-export scans pass. Type checking and full CI remain hosted. - Complete frames, fixture files, runner sources, failures and sanitized captures are retained. Historical coverage and reruns are separated in the Tests ledger. ## Consumers The expanded BASE census covers 133 distinct positions and their aliases; each resolves in an owning UI project. Four UI projects are selected; other projects are explicit exclusions. Current-head coverage resolves all 118 positions across 472 project attempts, with 15 expected exclusions; three prior-head supplemental positions also resolve. No missed alias or analysis failure remains. All 43 source hashes match the commit. The table preserves all 174 prior rows and adds all 22 newly returned BASE consumers: 196 concrete rows. The private form predicate at config-draft-model.ts:400 feeds common adoption at :431. Every full-draft/independent/no-op producer chooses its explicit source context in config-gateway-operations.ts; the existing coordinator owns serialized dispatch and read retirement. Runtime capability and locale/status subscribers consume the resulting canonical values and settled state. Native/CLI clients do not import these private modules. Lexical census generic-name review: `currentRaw` matches in `extensions/imessage/src/chat-context.ts`, `extensions/zalouser/src/message-sid.ts`, `src/auto-reply/reply/commands-session.ts`, `src/commands/onboard-non-interactive/local.default-agent.test.ts`, `src/config/io.write-safety.ts`, `src/config/io.write.ts`, `src/config/mutate.ts`, `src/gateway/worker-environments/node-worker-tunnel.test.ts`, `src/gateway/worker-environments/node-worker-workspace-actions.ts`, `src/gateway/worker-environments/node-workspace-upload-reader.test.ts`, `src/gateway/worker-environments/node-workspace-upload-reader.ts`, `src/gateway/worker-environments/workspace-local-reconciliation.ts`, `src/gateway/worker-environments/workspace-result-staging.ts`, `src/gateway/worker-environments/workspace-sync.ts`, `src/infra/session-cost-usage-cache.sqlite.ts`, `src/node-host/node-worker-transfer-client.test.ts`, `src/node-host/node-worker-transfer-client.ts` are independent local variables or worker-manifest fields, with no reference to the removed replay parameter. `submittedRaw` in `config-draft-model.ts` remains the independent error-formatting parameter, and in `config-write-coordinator.ts` remains reconnect recovery state. The replay callers are the two migrated callers listed above. census: generic currentRaw reviewed — 0 callers listed census: generic submittedRaw reviewed — 0 callers listed Additional lexical dispositions: `issues`, `sourceConfig` and `valid` were keys in the deleted temporary patch snapshot, not removed ConfigSnapshot fields. Their declarations in `ui/src/api/types.ts` and the canonical writes in `adoptConfigWriteAck` remain. Existing snapshot readers and independent schema/validation fields keep the same contract. `invalidateConfigLoad` is retained in `config-write-coordinator.ts`; its one `trackWrite` caller now invalidates acknowledged patch loads too, replacing the removed option handoff. `onAck` in `extensions/telegram/src/bot-update-tracker.ts`, `src/channels/message/receive.ts` and `src/channels/message/lifecycle.test.ts` belongs to the unchanged message-receive acknowledgement contract. No caller of the retired config-patch callback remains. census: generic invalidateConfigLoad reviewed — 1 callers listed census: generic issues reviewed — 0 callers listed census: generic sourceConfig reviewed — 0 callers listed census: generic valid reviewed — 0 callers listed census: generic onAck reviewed — 0 callers listed | Consumer | Support floor | Artifact | Operation | Result | | --- | --- | --- | --- | --- | | Control UI | Matching Gateway build, as specified by ui/AGENTS.md | Candidate UI source with the unchanged real Gateway | Settings save/revert/raw content/race | Passed for the browser flows described above | | Native and CLI clients | Unchanged | Unchanged shared acknowledgement | No modified consumer code | Outside this UI-only contract | ### Concrete consumer dispositions All UI consumers below are private modules shipped with the matching Gateway. The source column is the consumer and its artifact locator. Source locators bind the reviewed content at 66df3f913cc938f55fe7c23a559d657fb903e5ac. A retained fixture is not a claim that its suite ran; the per-family Tests ledger owns execution claims. | Consumer / source artifact | Operation | Disposition | | --- | --- | --- | | ui/src/lib/config/config-state-model.ts:19 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/config-page.ts:1105 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/view-types.ts:64 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/view.ts:245 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/view-diff.ts:140 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/custom-theme-import-owner.ts:18 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/config/session-storage.ts:220 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/lib/chat/follow-up-mode.ts:38 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/pages/chat/chat-pane-render.ts:117 | State reader / display gate | Retain original-content and refresh contracts; display diff is not receipt replay. | | ui/src/lib/config/runtime-config-capability.ts:81 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/app/app-root.ts:166 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/app/bootstrap.ts:657 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/app/startup-lifecycle.ts:37 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/app/gateway-store.ts:706 | Lifecycle / applied-state guard | Retain lifecycle ownership; Gateway stops before capability disposal. Navigation does not prove shutdown flushing. | | ui/src/lib/plugins/index.ts:110 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/lib/skills/config-mutations.ts:23 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/features/github-connections/github-identity-controller-shared.ts:60 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/features/github-connections/github-identity-controller.ts:583 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/features/github-connections/github-identity-controller-authorization.ts:215 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/features/github-connections/github-connections.ts:49 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/agents/identity-actions.ts:85 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/agents/agents-page.ts:156 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/model-providers/config-mutation.ts:224 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/model-providers/login-controller.ts:255 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/model-providers/profile-actions-controller.ts:85 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/pages/model-setup/model-setup-page.ts:549 | Generic mutation caller / alias | Retain serialized mutation and refresh; no config receipt selector is installed. | | ui/src/app/server-prefs-profile.ts:72 | Profile preference result | Retain users.prefs.set results; this shared result type is not a config receipt. | | ui/src/pages/agents/model-config.ts:27 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/meeting-capture.ts:260 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/memory-page.ts:534 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/talk-page.ts:489 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/devices/devices-page.ts:583 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/channels/channels-page.ts:726 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/config-page.ts:1054 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/plugins/plugins-page.ts:677 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/config/session-storage.ts:275 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/pages/agents/agents-page.ts:1124 | Form writer | Retain patchForm/removeFormValue through the registered capability and common set owner. | | ui/src/lib/config/mcp-servers.ts:216 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/agents/memory/dreaming.ts:566 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/agents/memory/memory-panel.ts:294 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/cloud-workers/cloud-worker-repositories.ts:85 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/cloud-workers/cloud-worker-snapshot-policy.ts:68 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/cloud-workers/cloud-workers-page.ts:148 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/skill-workshop/access.ts:12 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/pages/skill-workshop/skill-workshop-page.ts:463 | Patch caller / admission | Retain patch/patchFromSnapshot admission and request shape; receipts reach common adoption. | | ui/src/components/mcp-servers-card.ts:83 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/chat/chat-pane-base.ts:586 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/labs/labs-page.ts:50 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/model-providers/model-providers-page.ts:197 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/new-session/new-session-page.ts:232 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/sessions/sessions-page.ts:184 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/pages/cron/cron-page.ts:116 | State subscriber | Retain snapshot/status shape and subscription refresh; no receipt decision is duplicated. | | ui/src/lib/config/config-draft-model.test.ts:89 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-draft-revision.test.ts:58 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-external-refresh.test.ts:84 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-gateway-operations.test.ts:429 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-patch-recovery.test.ts:213 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-state-model.test.ts:63 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-write-ack.test.ts:14 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-write-coordinator.test.ts:46 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/config-write-recovery.test.ts:125 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/config/runtime-config-capability.test.ts:674 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/app/server-prefs.test-support.ts:3 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/app/server-prefs.read-only.test.ts:257 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/features/github-connections/github-identity-controller.test.ts:61 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/lib/skills/index.test.ts:37 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-providers/model-providers-page.test-support.ts:11 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/plugins/plugins-page.test-support.ts:274 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-providers/model-providers-page.login.test.ts:98 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-setup/model-setup-activation.test.ts:718 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-setup/model-setup-first-run.test.ts:142 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/pages/model-setup/model-setup-page.test.ts:721 | Owner test / typed fixture | Retain revised-base, original-content, status and signature coverage. Changed assertions are in the test ledger; listing is not execution. | | ui/src/components/config-form-map-integrity.browser.test.ts:5 | Moved-helper test | Retain serializeFormForSubmit import/assertions; this helper test is not registered regression proof. | | ui/src/lib/config/config-test-harness.ts:65 | Receipt fixture producer | Retain stateful canonical config/hash responses; patch/deferred fixtures stay explicit. Protocol is unchanged. | | ui/src/test-helpers/control-ui-e2e.ts:1498 | Receipt fixture producer | Retain stateful canonical config/hash responses; patch/deferred fixtures stay explicit. Protocol is unchanged. | | ui/src/test-helpers/control-ui-e2e.mock-gateway.test.ts:122 | Receipt fixture producer | Retain stateful canonical config/hash responses; patch/deferred fixtures stay explicit. Protocol is unchanged. | | ui/src/e2e/agent-config-save.e2e.test.ts:207 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/agents-set-default-persistence.e2e.test.ts:53 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/appearance-settings-defaults.e2e.test.ts:598 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/channels-whatsapp-logout.e2e.test.ts:167 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/chat-composer-capability-menu.e2e.test.ts:838 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/chat-flow.active-run-follow-ups.e2e.test.ts:44 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/chat-outbox-capacity.e2e.test.ts:153 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/cloud-workers-settings.e2e.test.ts:694 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-enum-controls.e2e.test.ts:130 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-form-defaults.e2e.test.ts:166 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-form-integrity.e2e.test.ts:187 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-number-controls.e2e.test.ts:59 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-quick-thinking-persistence.e2e.test.ts:69 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-raw-save.e2e.test.ts:38 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/config-safe-write.e2e.test.ts:172 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/curated-settings-defaults.e2e.test.ts:150 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/memory-settings-defaults.e2e.test.ts:133 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/memory-settings-engine.e2e.test.ts:85 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/model-providers.e2e.test.ts:673 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/model-providers.test-support.ts:26 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/plugins-config-mutation.e2e.test.ts:101 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/plugins-request-ownership.e2e.test.ts:150 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/plugins-settings-admin.e2e.test.ts:603 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/session-storage-settings.e2e.test.ts:148 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/settings-prefs-reconnect.e2e.test.ts:279 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/skill-workshop-self-learning.e2e.test.ts:113 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/theme-muted-contrast.e2e.test.ts:188 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/transcript-library.e2e.test.ts:80 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/updates-settings.e2e.test.ts:256 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/plugins/plugins.e2e.test.ts:308 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/app/server-prefs.profile.test.ts:254 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/app/server-prefs.test.ts:394 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/components/mcp-servers-card.test.ts:440 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/agents/identity-actions.test.ts:71 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/agents/memory/dreaming.test.ts:865 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/channels/channels-page.test.ts:773 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/cloud-workers/cloud-worker-snapshots-dom.test-support.ts:87 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/cloud-workers/cloud-worker-snapshots.test.ts:294 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/cloud-workers/cloud-workers-page.test.ts:116 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/config/meeting-capture.test.ts:79 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/config/session-storage.test.ts:162 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/pages/plugins/plugins-page.test.ts:291 | Write request / receipt fixture | Retain scenario responses; shared set/apply builder is control-ui-e2e.ts:2200, patch/deferred responses stay local. No unlisted run claimed. | | ui/src/e2e/agent-file-lifecycle.e2e.test.ts:203 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/agent-file-lifecycle.real-gateway.e2e.test.ts:177 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/agent-github-device-authorization.e2e.test.ts:230 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/agent-model-fallback-ownership.e2e.test.ts:156 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/browser-route-handoff.e2e.test.ts:482 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/config-controls-visual.e2e.test.ts:229 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/config-form-guidance.e2e.test.ts:234 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/control-ui-auth-transports.e2e.test.ts:728 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/cron-agent-ownership.e2e.test.ts:142 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/device-binding-state.e2e.test.ts:131 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-alias-display.e2e.test.ts:168 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-picker-search.real-gateway.e2e.test.ts:169 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-provider-login.e2e.test.ts:181 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-provider-usage-outcomes.e2e.test.ts:235 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-setup-activation-feedback.e2e.test.ts:402 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-setup-cancel.e2e.test.ts:218 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-setup-explicit.e2e.test.ts:89 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/model-setup-replacement.e2e.test.ts:125 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/operator-admin.e2e.test.ts:333 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/session-observer-model-catalog-recovery.e2e.test.ts:49 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/skills-library.e2e.test.ts:273 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/theme-typography.e2e.test.ts:177 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/update-confirmation.e2e.test.ts:358 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/agents/agents-page.test-support.ts:16 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/agents/memory/memory-panel.test.ts:84 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/config/config-page.test.ts:582 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/model-setup/model-setup-first-run.test-support.ts:48 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/model-setup/model-setup-gateway-owner.test.ts:67 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/plugins/plugins-page.lifecycle.test.ts:354 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/plugins/plugins-page.reload.test.ts:169 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/pages/skill-workshop/skill-workshop-page.test.ts:914 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/test-helpers/mock-gateway-page.test.ts:64 | Method admission / routing fixture | Retain availability, no-write and routing assertions; lexical method names do not add an adopter or protocol migration. | | ui/src/e2e/cron-trigger-authoring.e2e.test.ts:220 | Page capability admission test | Retain setWritesSuspended/patchForm/apply path; it does not show navigation invokes dispose. | | ui/src/lib/config/config-draft-model.ts:420 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/lib/config/config-draft-model.ts:37 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/lib/format-error.ts:4 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/components/settings-save-indicator.ts:80 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/i18n/locales/en.ts:1898 | Error / locale / display | The explanatory error uses the eager English rawDraftUnverified key and existing translation, tooltip and accessibility paths. Generated translations remain unchanged. | | ui/src/lib/config/config-state-model.ts:70 | Versioned source-read owner | No-op refresh uses the existing versioned read owner for source admission, successors and connection retirement. Admitted source adoption does not invalidate newer reads. | | ui/src/lib/config/config-gateway-operations.ts:290 | Versioned source-read owner | No-op refresh uses the existing versioned read owner for source admission, successors and connection retirement. Admitted source adoption does not invalidate newer reads. | | ui/src/lib/config/runtime-config-capability.ts:234 | Versioned source-read owner | No-op refresh uses the existing versioned read owner for source admission, successors and connection retirement. Admitted source adoption does not invalidate newer reads. | | ui/src/app/app-shell-gateway.ts:170 | Versioned source-read owner | No-op refresh uses the existing versioned read owner for source admission, successors and connection retirement. Admitted source adoption does not invalidate newer reads. | | ui/src/app/server-prefs.ts | Independent preference config.patch producer | Retain its deliberately hashless preference patch; select its typed receipt and reconcile authored source under the shared config owner. | | ui/src/pages/plugins/install-wizard-controller.ts | Independent config.set producer | Select its typed receipt; shared form originals are not this adapter's wire document. | | ui/src/lib/config/config-patch-coordinator.ts | Patch receipt observer | Retain queued patch admission; forward the submission receipt to the common owner. Delete the old patch-only adopter and invalidation handoff. | | ui/src/lib/config/config-write-coordinator.ts | Write serialization, receipt lifetime, reconnect and disposal | Retain one writer. Only a live flight invalidates older loads; known receipts remain available to capability teardown. Only unacknowledged full-draft bytes can support lost-ack recovery. | | ui/src/components/config-form.shared.ts | Sensitive-value scans | Both original scans import the moved predicate; null, empty values and environment placeholders preserve their semantics. | | ui/src/lib/config-form-utils.ts | Shared predicate and form sanitization | Own the unchanged sensitive predicate used by both scans and content projection. | | ui/src/app/app-host.ts | Canonical state subscription | Consume the existing capability snapshot and refresh publication; no receipt policy is added. | | ui/src/app/app-shell-view.ts | Save-status rendering | Render settled status from the capability; no receipt policy is added. | | packages/normalization-core/src/stable-stringify.ts | Content comparison dependency | Retain the existing implementation and other callers. Only the draft-owner import is new; unrelated callers do not migrate. | | ui/src/lib/config/config-draft-model.ts:431 | Common acknowledgement owner | Six production calls use this owner with an explicit independent-source field. Form overlap uses the existing replay orders; raw inclusion stays strict. | | ui/src/lib/config/config-gateway-operations.ts:316 | Current source-result publication | readConfig admits results using existing request and connection checks before applyConfigSnapshot. No separate no-op read publisher remains. | | ui/src/lib/config/config-noop-read.test.ts:11 | Registered read-order/retirement test | Late A cannot rewind successor B or create a dirty conflict; disconnect settles before A is released. Next form save preserves B and settles Saved. | | ui/src/pages/model-providers/load.ts:14 | Existing editable-source reader | Retains resolveEditableSnapshotConfig import and source projection. No new production consumer or receipt policy is introduced. | | ui/src/pages/skill-workshop/self-learning.ts:5 | Existing editable-source reader | Retains resolveEditableSnapshotConfig import and source projection. No new production consumer or receipt policy is introduced. | The shared ConfigSnapshot and Gateway response contracts are unchanged. Native, CLI and server clients do not import the changed private UI declarations. Other stableStringify callers use its unchanged public contract. The four selected UI projects own typed coverage; project exclusions and lexical-name dispositions remain explicit in the evidence. ### Additional concrete consumer dispositions These 22 rows supplement the existing 174 Consumers rows. The earlier rows remain in place; together they account for 196 concrete rows. The locations identify the reviewed source at 66df3f913cc938f55fe7c23a559d657fb903e5ac. These files are unchanged by the three-file form-overlap correction. Retaining a fixture is not a claim that its suite ran. | Consumer | Contract | Disposition | | --- | --- | --- | | ui/src/app/context.ts:9/:111 | Application capability type/handle | Retain the app-owned RuntimeConfigCapability handle and forwarding contract; it adds no acknowledgement or read owner. | | ui/src/pages/agents/skills.ts:49/:61 | Agent skill-filter writer | clearAgentSkillFilter sends skills:null and replacePaths through registered patch. Retain the shared patch/adoption owner and dispatch admission. | | ui/src/pages/cloud-workers/cloud-worker-config-save.ts:19/:33 | Cloud-worker config writer and notice | Retain patchFromSnapshot, lastError handling and current-request guard. Publish success notice only after the registered patch succeeds. | | ui/src/app/update-config-interlock.ts:7/:12 | Write suspension interlock | Retain setWritesSuspended through the existing update overlay subscription. No updater/version contract changed. | | ui/src/pages/chat/chat-composer-capability-host.ts:49/:174/:563 | Derived effective-tools cache and runtime defaults | Retain appliedConfigHash → configRevisionHash → hash fingerprint priority and runtimeConfig projection. The cache key consumes admitted revision changes; source acknowledgement alone must not claim newly applied runtime. | | ui/src/lib/plugin-activation.ts:9/:14 | Canonical plugin activation projection | Retain config enabled/deny/allow/entry selection. It reads canonical config and ignores acknowledgement revision; it creates no draft. | | ui/src/pages/chat/chat-pane-board.ts:231 | Swarm availability | Retain canonical config selection through the subscribed shared capability and roster lifecycle; no separate receipt adoption. | | ui/src/pages/channels/wizard-host.ts:48 | Dirty-draft wizard admission | Retain the configFormDirty guard before opening channel setup; no write-base policy here. | | ui/src/components/markdown-session-links.ts:145 | Session-link origin | Retain runtimeConfig.gateway.publicOrigin projection and existing link rendering; no source-document reconstruction. | | ui/src/pages/new-session/capability-controller.ts:78 | New-session capabilities/defaults | Retain runtimeConfig projection and existing access gates; do not replace applied runtime defaults with editable source. | | ui/src/app/update-config-interlock.test.ts:50/:59 | Registered save/dispose interlock tests | Retain terminal/live/recovery-held update admission assertions and actual config request counts; cleanup calls capability disposal. No new updater matrix claim. | | ui/src/lib/config/runtime-config-capability.schema-access.test.ts:34/:51 | Capability lifecycle test consumer | Retain registered schema-access tests and disposal cleanup. Their unchanged schema fixtures are not new write-receipt producers. | | ui/src/lib/plugin-activation.test.ts:8/:19/:36/:57/:76 | Snapshot hash/config fixture producer | Retain activation selector fixtures for bundled defaults and explicit activation controls; hash does not adopt draft state. | | ui/src/pages/agents/skills.test.ts:2/:14/:40 | Capability patch fixture | Retain typed capability fixture and exact agent skill-clear patch expectations; no new receipt shape required. | | ui/src/pages/chat/chat-composer-capability-host.test.ts:14/:239/:317/:360/:397/:402/:444/:449 | Snapshot/source/runtime and cache fixtures | Retain fixture sourceConfig/runtimeConfig distinction and applied-revision cache invalidation tests. No receipt or cache policy change needed. | | ui/src/pages/agents/agents-page.test.ts:201 | Typed patch callback fixture | Retain Parameters<ApplicationContext["runtimeConfig"]["patch"]> fixture and queued skills-clear reconnect rejection; this is a forwarding consumer. | | ui/src/pages/agents/model-config.test.ts:61/:94/:140/:149/:156/:185/:202 | Form-state assertions and capability teardown | Retain explicit model staging, initial clean-state assertions and disposal; do not reinterpret cleanup as browser shutdown proof. | | ui/src/pages/config/config-page.transcripts.test.ts:110 | Mounted Settings capability teardown | Retain transcript settings rendering and capability cleanup; no receipt reconstruction. | | ui/src/pages/devices/route.test.ts:40 | Route capability lifecycle fixture | Retain onTestFinished disposal and refresh spy for route ownership; unrelated file replies are not config receipts. | | ui/src/pages/model-setup/model-setup-reconnect.test.ts:157/:179/:198/:247/:304/:348 | Reconnect/disposal test consumer | Retain registered model-setup reconnect fences and capability cleanup; no acknowledgement shape change. | | ui/src/pages/plugins/plugins-page.persisted-install.test.ts:136/:153/:168/:291/:298/:308/:358/:437 | Install outcome/revision/status tests | Retain before-install/saved-install and replacement-config assertions, persisted-versus-applied outcome wording, refresh ordering and disposal. This UI consumer change does not change the plugin artifact/SDK contract. | | ui/src/pages/config/config-page.custom-theme.test.ts:337/:361 | Dirty/missing-snapshot import fixtures | Retain unsaved-change and initial-load import gates; no receipt policy or new theme configuration key. | ## Invalidation Every acknowledged write advances the canonical snapshot and draft base together. Original form evidence advances only after compatible replay; incompatible external overlaps retain that evidence and conflict. Raw originals retain their content anchor until the full document incorporates canonical changes. Editing, mode switches, discard and parser generation retain their existing lifecycles. Only real write receipts invalidate older reads. Hashless no-ops follow the existing versioned read/successor/connection owner and supply its admitted source for content compatibility; reading a new revision does not authorize a stale form overwrite. Disconnect and reconnect retire flights; only unacknowledged full-draft bytes support lost-ack inference. Disposal retains receipt adoption while existing dispatch admission remains enforced. ## Contention The existing single writer serializes writes and no-op source reconciliation. The corrected-head disjoint contention case queued a registered save for 14,763 ms with zero premature sets, while visible Logs navigation and eight reads completed. Four milliseconds after release, the save used the newer admitted revision, preserved both values and settled saved. Settings controls were disabled during reads, so the competing write is explicitly capability-level proof. The Logs page did not display Saved. This affected no-op case was rerun for this correction; unaffected concurrent external-edit proof is retained. ## Tests New and rewritten cases enter through createRuntimeConfigCapability operations and observe requests, persisted documents and status. No tests are deleted. The ledger names all changed families and retired assertions. Runtime/source checks do not replace hosted typechecks. The pre-existing Raw Save wait for original JSON5 parsing is a separate dispatch gate outside this repair. Manual Raw Save disables its editor; browser proof uses the reachable raw-during-form-autosave path. Credit: the adversarial round; no external reporter. ### Final deletion and rewrite ledger This ledger closes the earlier pending-ledger checkpoint for 5daa2b4bc505a768f742f4b1c37a24959e5e8977, with unchanged test source at d9ced13ff1c6616ef47fe4081e824662612d07b9. Historical failures remain in the preserved checkpoints. The response-order and retirement correction is now bound to 0a67e190e19f095a9cf7f8d61a54f864957f9f90; its new family and exact execution receipts appear below. No test was deleted. The table names each changed family, its registered entry point, and the observable or retired assertion. All listed test filenames are under ui/src/lib/config/. The shared harness constructs createRuntimeConfigCapability; these cases use its public operations rather than calling acknowledgement adoption directly. | Test family and source location | Registered production entry point | Observable assertion / retired behavior | | --- | --- | --- | | config-draft-model.test.ts:14–67; four revert/delete/parser/disposal cases | createRuntimeConfigCapability → patchForm/removeFormValue; optional dispose → coordinator autosave/teardown | Exact trailing submitted document preserves canonical siblings; normal case ends clean/Saved. Adds unavailable-JSON5 normal and disposal variants. | | config-draft-model.test.ts:70–96; comments and semantic raw edit | patchForm → autosave; setRaw → save | Preserves raw bytes, adopts hash-2, rejects missing canonical content, and sends no second write. Retires old-base protection. | | config-gateway-operations.test.ts:429–466 | patch plus patchForm | Canonical patched field and pending form edit coexist; base is hash-2 and status idle. | | config-patch-recovery.test.ts:59–93 | patchForm, reconnect publication, patch | Paused draft incorporates canonical patch field; no autosave; persisted patch observed through config.get. | | config-patch-recovery.test.ts:165–218; raw and form cases | patchForm/setRaw, save, patch | Original draft/content retained under conflict; acknowledged base becomes hash-3; final store retains external content. | | config-write-coordinator.test.ts:1080–1124 | apply → patchForm → dispose | Trailing config.set uses hash-2 and exact latest form; final base hash-9. Retires blanket Apply teardown skip. | | config-write-ack.test.ts:14–34 | runExternalMutation before ensureLoaded | Independent receipt does not invent a pending draft; canonical form and hash adopted. | | config-write-ack.test.ts:36–74 | patchForm, disconnect/reconnect, runExternalMutation, dispose | Independent write cannot flush a reconnect-paused draft; final store read confirms only independent change. | | config-write-ack.test.ts:76–143; success/failure pair | setRaw, runExternalMutation, save | Hashless no-op reads source/raw/hash; refresh failure stays separate from mutation success; successful next save uses source hash. This does not test contention while that read is held. | | config-write-ack.test.ts:146–199; set/patch × normal/dispose | runExternalMutation, patchForm, optional dispose | Independent and form changes both persist; second request uses receipt hash; final store and base checked. | | config-write-ack.test.ts:201–230 | patch → patchForm → autosave | No-op retains dispatch source/raw/hash; next full write excludes runtime defaults. | | config-write-ack.test.ts:232–280; form/raw/Apply × normal/dispose | patchForm or setRaw; save/apply; setRaw; optional dispose | Raw bytes survive; exact second request uses hash-2; final base hash-3. Manual-Raw keystroke is capability-only evidence because browser editor is disabled. | | config-write-ack.test.ts:283–317 | patch → patchForm → autosave | Patch receipt revision chains to form save; final store has both values and status Saved. | | config-write-ack.test.ts:318–413; nine content cases | patchForm → autosave → setRaw; optional patchForm; save | Missing locale/changed empty/null/environment-reference secret is rejected; incorporated locale, reordered keys, and own redacted object/array values are accepted. Request count, next base, and conflict state checked. | - Normal revert/delete assertions remain. The disposed variants are additions; restricting settled clean/status assertions to the normal branch does not remove an old disposal assertion. - Raw tests replace obsolete pre-acknowledgement-base expectations with the receipt base and stale-content rejection. Exact bytes, dirty state, canonical content and absence of a second write remain asserted. - Patch tests replace obsolete old-base assertions with receipt-base assertions and canonical-field preservation. Paused drafts remain paused and send no autosave. - The Apply teardown rewrite retires the premise that every Apply restarts. The server derives restart need from its reload plan in src/gateway/server-methods/config-write-flow.ts:136 and can complete Apply after live application in src/gateway/server-methods/config.ts:671. The replacement checks the exact trailing raw/base pair and final receipt base. - Retained aggregate coverage is 268 distinct targeted cases, not one clean exact-head run: the 13-suite batch had 266 passes and one obsolete Apply expectation; the corrected 32-case owner suite passed; the added before-load regression passed in a 101-case four-suite rerun. - After d9ced13's type-contract correction, 117 owner tests and 68 patch-recovery/preference tests passed. These are reruns within retained coverage, not 185 new cases. - unit-red.log records the unavailable-parser regression on BASE. expanded-unit-red.log and config-write-ack-red.log record raw/patch/independent failures on the earlier narrow candidate. initial-external-red.log and initial-external-green.log record the before-load capture red/green pair. - Runtime and structural results do not replace hosted typechecks. The type correction accepts the actual nullable snapshot raw contract and returns the owner's produced status; no test assertion was weakened to address those diagnostics. - Raw keystrokes during manual Raw Save remain capability-only coverage because the real editor is disabled then. Retained-client disposal is capability coverage; real app shutdown retires the Gateway first. ### Response-order correction at 0a67e190 | Test family | Registered production entry | Observable assertion / retired behavior | | --- | --- | --- | | config-noop-read.test.ts:11–82; late A after B and disconnect pair | createRuntimeConfigCapability → runExternalMutation → refresh; then patchForm/save or Gateway retirement publication | Late A cannot replace B, dirty a clean form, or create a conflict. The next write uses hash-2 and preserves enabled=true, then settles Saved. Disconnect ends the refresh before held A is released. Retires unversioned source publication and blocked connection retirement. | - round2-noop-red.log records both new cases failing on d9ced13: stale response corrupts clean draft state; disconnect leaves the mutation unresolved while the response is held. - round2-targeted-tests.log records 187 passes across seven owner/caller suites; round2-read-sibling-tests.log records 11 passes in the read-owner sibling suite. Total correction coverage is 198 cases across eight suites. - These reruns preserve the historical aggregate proof and add two registered regression cases; they do not claim that all historical cases ran together on this head. ### Form-conflict correction at 66df3f913cc938f55fe7c23a559d657fb903e5ac | Test family | Registered production entry | Observable assertion / retired behavior | | --- | --- | --- | | config-noop-read.test.ts:84–136 | createRuntimeConfigCapability → patchForm → save → refresh → runExternalMutation → patchForm/save | A failed save and retained conflict survive a hashless no-op. Original count=1 remains as evidence, adopted base advances to hash-2, unsafe save fails, and external count=9 remains in the final store. Only the external write succeeds. | | config-noop-read.test.ts:138–178 | createRuntimeConfigCapability → runExternalMutation → patchForm/save during the held source read | A disjoint form edit waits for the source, uses hash-2, preserves enabled=true, persists count=2, and settles Saved. | No test or assertion was removed. The new pair distinguishes overlapping stale form content from safe disjoint continuation; the original late-read/disconnect pair remains unchanged. round3-registered-red.log fails only the retained-conflict case on 0a67e190; round3-targeted-tests.log passes all 200 cases across eight suites on corrected executable source. Previous counts remain historical receipts, not additive new-test totals. Co-authored-by: Ayaan Zaidi <[email protected]>
…claw#145983) ## What Problem This Solves #145660's mutation reread could fail after a config write committed. One writer receipt now acknowledges committed config/revision; later edits remain visible and conflict with stale writes. Runtime application remains separate; #145939 UI adoption is preserved. The decision “which source config and revision committed” is made by exactly one mechanism at `src/config/io.write.ts:613-620`, using `src/config/io.snapshot.ts:68-79`. The decision “may captured root/includes publish” is made by exactly one mechanism at `src/config/io.write-safety.ts:30`. The same guard checks rename/removal/creation. Successful owned removal alone advances private absence; external deletion conflicts, includes still revalidate. Plain/include EPERM/EEXIST fallback remains. ## Evidence - Base `3438a2a7675c48af303419f1df693e1479986377`: authenticated set commits include root, then invalid external edit causes UNAVAILABLE/ConfigWritePostCommitError. Source-launcher green: ACK/get equality, retained external bytes, preflight include rejection, CLI include preservation and stale-root/include conflicts. Patch/apply separately verify intentional persisted-but-not-applied/superseded outcomes, captured get and unchanged applied revision. - H4-5 not reproduced: setup/ordinary/team onboarding completed; no stored old-hash producer. v2026.9.4 team owner absent; runtime build failed on ambiguous export. No old-writer replay or compatibility fix claimed. - Six fallback races red on `066fb038`; ten fallback/323 owners green on `5095bab1`. Broader 51 Gateway/58 corpus passed before binding-only lint fix. CI **34703774380 SUCCESS**: Gateway 76 (fallback 10), corpus 58, owners 323; final receipts retained. Native fault injection, not a physically rename-denied filesystem. ## Contention Two-request set checks pairs/lock progress/final bytes/existing two-second bound. Factory lock remains; no queue/await/retry added. Sync blocks Promise interleavings, not arbitrary native-call races. Non-atomic fallback conflict after owned removal leaves root absent/backup retained. ## Tests Registered `src/gateway/server.config-patch.test.ts`: deletion/include races, ACK/get, patch/apply, content/target/disappearance, invalid-reread and contention retained. `src/config/io.write-config.test.ts`: 14 cases: plain/include roots across seven publication paths fallback/authority cases plus absent-root; shadowing fixed. `io.snapshot.test.ts` encoding retained; `io.write-reread.test.ts` sync initial commit/async compensation. `src/config/mutate.test.ts`: replaceConfigFile result/void adapters. Doctor 18 pass; cleanup 4 pass/28 unselected; exact entries/assertions below. Lint/format/line/assertion/diff checks pass. Initial no-param-reassign fixed with local expectedPublication; no local build/typecheck. No test deleted: reread assertion becomes legacy outcome; later-edit adoption becomes committed pair. Rollback/status/authority retained. Backup/cron/warning/beforeCommit precede staging under factory lock; failed staging can follow them. Dependency retains temp/cleanup/symlink/copy ownership. ## Consumers Typed base: 30 cells/1,455 refs. CI integration `d4fd151617dae79e7e821fdbe041093d9032fd31` (tree `d33a41ab8c4b2bd9ca68b41a7b764d406e6acad4`): 57 cells/1,564 references/668 locations/185 files, all dispositioned. Root/UI/config-CLI projects loaded; 135 omitted projects and 44,180 source exclusions are explicit gaps. Earlier raw proof retains original identities. Encoder query: declaration, snapshot call, writer import/call; absent on base. ### Native observers | Producer → final consumer | Intervening operation/state | Exact disposition and falsifying observation | | --- | --- | --- | | Root publication → `src/commands/doctor-config-flow.conflict.test.ts:188-218` → `src/flows/doctor-health-contribution-runners.config.ts:374-382,118-120` | `runInitialConfigWriteHealth` invokes the actual config mutation; test observes publication, then creates preferred config during audit stat | Migrate only initial-publication observation to sync rename. Keep post-rename path checks, audit-stat injection, `preferredCreated`, saved repair, backup and external bytes, `ConfigWritePostCommitError`/`not-restored`, and warning assertions at `:220-237`. No Doctor policy change. False if the external edit never occurs or a saved repair is reported as unwritten. | | Root publication → `src/gateway/server-claws-monitors.test.ts:584-646` | `applyClawRemovePlan` through fixture `:213-236`, actual config removal, and registered `claws.monitors` handler via fixture `:184-202` | Move the synthetic root-write denial to sync rename; retain the async operations of other owners. Keep partial status, agentRemoved false, error message, journal/workspace preservation, reopened journal and fresh retry completion. False if the injected config failure is not reached or cleanup reports complete before persistence succeeds. | | Root publication → `src/commands/doctor-gateway-services.authority.test.ts:156-166,415-428` → `src/commands/doctor-gateway-services.ts:902-917` | Real service repair persists the token before service publication; test records both native events | Observe root publication with sync rename, retain async service-publication observation, and require both events before comparing order. Production caller awaits success, ignores returned hash/config, and uses the submitted token for its existing service continuation; it reconstructs no revision. False if the order assertion succeeds with a missing config event. No service/Doctor behavior change is requested. | ### Receipt consumers commitPreparedConfigMutation/transformConfigFileAttempt forward the same receipt (previousHash input, persistedHash output). All ACKs must describe their committed pair; foreign bytes, invented revisions, false postcommit failure or lost subsequent conflict falsify. Public shapes/guards remain. Unrun consumers remain gaps. | Producer → final consumer | Operation and disposition | | --- | --- | | `mutate.ts` → Gateway `config.set` response, `server-methods/config-write-flow.ts`, `config.ts` | Redact/project committed pair; wire unchanged. | | Same owner → Gateway `config.patch` / `config.apply`, `config.ts` | Pair retained; non-applied/superseded/noop outcomes separate. | | Control UI autosave/apply, `ui/src/lib/config/config-gateway-operations.ts` → `config-draft-model.ts` | ACK adoption/replay; manual reload; dirty conflict retained. | | UI `adoptConfigPatchAck`, `config-gateway-operations.ts` | Non-noop adopts; noop preserves revision. | | Gateway `config.set` → native macOS `ConfigStore`, `apps/macos/Sources/OpenClaw/ConfigStore.swift` | baseHash save, ignore body/notify; route/offline owner unchanged. | | Gateway snapshots → iOS/Android/shared chat readers; `apps/ios/Sources/Model/NodeAppModel.swift`, `apps/ios/Sources/Chat/IOSGatewayChatTransport+ComposerCapabilities.swift`, `apps/android/app/src/main/java/ai/openclaw/app/NodeRuntime.kt`, `apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatGatewayRequest.swift`, `GatewayProtocol.kt` | get-only; method enum is not receipt reader; platforms unrun. | | CLI `config set` / `patch` / `unset`, `src/cli/config-cli-runner.ts` | Await/print; generic gateway call exposes ACK. | | setup final effects, `src/system-agent/setup-apply.ts` | Committed target → route check → configHashAfter. | | injected security fix IO, `src/security/fix.ts` | Injected IO → configWritten; permissions outside scope. | | injected secrets IO, `src/secrets/config-io.ts`, `src/secrets/apply.ts` | Config before env/auth; real failure recovery retained. | | plugin runtime APIs, `src/plugins/runtime/runtime-config.ts`, `types-core.ts` | Public result/nullability unchanged; symbol internal. | | Legacy custom `ConfigMutationIO.writeConfigFile`, `src/config/mutate.ts` | Supplied result or submitted config/null for void; no invented receipt. | | Legacy `writeConfigFile` SDK export, `src/plugin-sdk/config-runtime.ts` | Deprecated SDK export/raw hash retained. | ### Terminal consumers Rows retain guards/shapes. Tests are producers/readers, not shipped/runtime proof. Receipt consumers use committed nextConfig, not reconstructed hash. | Producer → final consumer | Operation and disposition | | --- | --- | | `src/gateway/server-methods/config-write-flow.ts` → `src/gateway/server-request-context.ts` → `src/gateway/server-shared-auth-generation.ts` | Committed reload policy; generation from current runtime. | | `createAgent`, `src/agents/agent-create.ts` → onboarding/team; `src/commands/onboard-agent.ts`, `src/agents/agent-team.ts` → `src/commands/onboard-agent.ts` | Creation returns config/hash; Fresh revision compare before merge/session migration; stale rejects. | | `src/wizard/setup.shared.ts` → `src/wizard/setup.ts` | Advance committed merge/workspace/finalization basis. | | `src/commands/configure.wizard.ts` | Saved remote/local basis and health follow-up. | | `src/commands/channels/add-wizard.ts` | Guarded plugin/channel result after hooks. | | noninteractive onboarding final config, `src/commands/onboard-non-interactive/config-write.ts`; `onboard-non-interactive.ts` → `src/commands/onboard-non-interactive.ts` and `onboard-non-interactive/local.ts` | Saved config plus fresh input guard; Risk/import/setup result; fresh creation guard. | | `src/commands/onboard-guided-consent.ts` | Read committed consent timestamp. | | `src/commands/agents.commands.add.ts` and `src/commands/agents.commands.identity.ts` | Saved setup/identity/JSON; staged auth after save. | | SDK migration adapter, `src/plugin-sdk/migration-runtime.ts`; `src/wizard/setup.migration-stage.ts` → `src/wizard/setup.migration-finalize.ts` | Saved config cache; staging null hash/no disk write. Successful mutation refreshes currentConfig. | | `src/config/mcp-config.ts` | Return saved config after hooks/authored mcpServers. | | `src/gateway/github-tool-identity-config.ts` | Return identity result after transform guards. | | `src/gateway/server-methods/agents-config-mutations.ts` → `src/gateway/server-methods/agents.ts` | Committed roster/status; durable fences separate from later edits. | | Same deletion adapter → `src/claws/lifecycle-config-removal.ts` | Removal status/targets; retain pre-delete config. | | `src/cli/update-cli/update-command-config.ts` | Adopt config/clear hash; reread before next write. | | `src/plugins/install-record-commit.ts` → `src/plugins/lifecycle.ts` → `src/gateway/config-reload.ts` | Forward hash/source; runtime compares current pair and rejects supersession. | | `src/config/io.read-helpers.ts`, `src/config/io.snapshot-shared.ts`, `src/config/types.openclaw.ts` | Unchanged read normalization/construction/type. | | `src/plugins/management-config.ts`, `management-uninstall.ts`, `install-config.ts`, `management-mutations.ts` | Fresh input guard; root/include edits reject stale token. | | `src/auto-reply/reply/commands-plugins.ts`, `src/cli/channel-auth.ts`, `directory-cli.ts`, `exec-policy-cli.ts` | Forward baseHash only. | | `src/cli/plugins-update-command.ts` | Fresh guarded plugin-update input. | | `src/cli/gateway-cli/pre-bootstrap.ts`, `src/cli/update-cli/schema-preflight.ts`, `update-command-managed-context.ts`, `update-command-plugins.ts` | Existing startup/update equality and raw fallback. | | `src/flows/doctor-health-contribution-runners.config.ts`, `src/gateway/server-startup-config.ts`, `server-startup-bootstrap.ts` | Input provenance; startup hash read-derived. | | `extensions/file-transfer/src/cli.ts`, `extensions/slack/src/monitor/events/channels.ts` | Unchanged bundled baseHash consumers. | | Runtime notification → `src/config/runtime-snapshot.ts` → `src/gateway/config-reload.ts` → `src/gateway/server-reload-managed.ts` | Newer runtime observation; watcher invalidates/broadcasts. | Unchanged fixture producers/readers (not runtime or shipped-consumer proof): - `src/agents/agent-create.test.ts`, `src/cli/plugins-install-config.test.ts`, `src/cli/program/register.configure.persistence.test.ts`, `src/cli/update-cli.test.ts`, `src/cli/update-cli/update-command-config-fence.test.ts`: Synthetic revisions/guards/results. - `src/commands/agents.add.test.ts`, `agents.bind.test-support.ts`, `configure.wizard.test-support.ts`, `test-runtime-config-helpers.ts`: Mock config/hash, no canonical symbol. - `src/commands/doctor-model-metadata-corruption.persistence.test.ts`, `doctor/finalize-config-flow.test.ts`, `gateway-install-token.test.ts`: Doctor/install input/output fixtures. - `src/commands/models.set.e2e.test.ts`, `models/aliases.test.ts`, `models/set.test.ts`, `models/shared.test.ts`, `promos/claim.test.ts`: Transform/guard fixtures. - `src/commands/onboard-agent.test.ts`, `onboard-non-interactive.gateway.test-mocks.ts`, `onboard-non-interactive/local.default-agent.test.ts`: Current guards/results, no stored-hash producer. - `src/commands/onboard-channels.post-write.test.ts`, `src/commands/onboard-config-provenance.integration.test.ts`: Commit/disk/env pair; onboarding hash, not live race. - `src/config/io.write-config.test.ts`: Raw authored/audit assertions, not composite. - `src/config/redact-snapshot.test.ts`, `runtime-snapshot.test.ts`, `src/flows/doctor-health.test-support.ts`, `doctor-plugin-install-config-write.test.ts`: Read/runtime/provenance; raw direct-writer hash. - `src/gateway/config-reload.test.ts`, `config-reload.transcripts.test.ts`, `server-reload-channel-restart.test.ts`, `server-startup-config.recovery.test.ts`, `test-helpers.config-snapshots.ts`, `test-helpers.config-runtime.ts`: Snapshot/result/supersession; current versus committed. - `src/hooks/installs.test.ts`, `src/plugins/status.runtime-inspection.test.ts`: Input guard fixtures. - `src/system-agent/chat-engine.test-support.ts`, `operations.gateway-lifecycle.test.ts`, `operations.setup.test.ts`, `operations.test.ts`, `overview.test.ts`, `rescue-message.test.ts`, `setup-apply.concurrency.test.ts`, `setup-apply.test-harness.ts`, `setup-apply.test.ts`, `setup-inference-activate.test.ts`: Input/result/concurrency, not old-hash upgrade proof. - `src/wizard/setup.test.ts`, `ui/src/pages/config/talk.test.ts`: Read fixtures; actual UI adoption inspected. - `src/plugin-sdk/test-helpers/plugin-runtime-mock.ts`, `extensions/migrate-hermes/test/provider-helpers.ts`: Null-hash synthetic/staging fixtures. - `apps/macos/Tests/OpenClawIPCTests/ExecApprovalsStoreRefactorTests.swift`, `ExecHostCwdTests.swift`, `SkillBinsGatewayOwnershipTests.swift`: approval-file owner outside config; native unrun. ### Producer dispositions | Producer → final consumer | Intervening operation/state | Disposition and falsifying observation | | --- | --- | --- | | Mutation result → `extensions/codex/src/migration/provider.test.ts:3665-3667` | Migration test runtime constructs `persistedHash` and `nextConfig` | Unchanged synthetic receipt producer. Returns its test config and fixed hash; no canonical disk receipt or shipped provider behavior is claimed. | | Mutation result → `extensions/migrate-claude/test/provider-helpers.ts:61,76` | Test runtime constructs mutate/replace results | Returns staged `nextConfig`; supplies no canonical committed revision. Test-only producer, not a changed plugin/SDK contract. | | Mutation result → `src/cli/plugins-cli-test-helpers.ts:1021-1034` | Mock writer stores submitted config and constructs a result | Returns that test config as `nextConfig` and fixed `persistedHash: "mock"`. No internal symbol or real-disk receipt is promised. | | Mutation result → `src/commands/agents.add.test-fixtures.ts:25-35` | Fixture commit store becomes fake agent-creation result | Forwards `committed.nextConfig` as `config` and its path. Does not reconstruct a revision; unchanged test adapter. | | Mutation result → `src/plugin-sdk/migration-runtime.test.ts:48-50,63-65` | Mock mutate/replace methods return config and fixed revision | Tests the existing migration cache adapter with synthetic receipts. No SDK argument, export or shipped compatibility change is implied. | | Mutation result → `src/plugins/install-record-commit.sqlite.test.ts:344-351` | Real install-record commit result compared with persisted config | Retained test consumes `nextConfig`, stamped metadata and removed install fields. Asserts ordinary successful commit contents; not new race proof or a schema change. | | `src/config/io.context.ts:60-64,138-156,256` → `src/config/io.write.ts:242,350-355` | Same resolver serves preliminary validation and final stamped-source capture | Preliminary validation creates no receipt. Final capture fills include hashes/targets and resolved source; the publication guard validates these facts before the sole receipt is returned. False if another resolver or receipt calculation adopts later inputs. | | `src/config/io.types.ts:14-29` → `src/config/io.ts:37`, `src/config/config.ts:51`, `src/config/io.runtime.ts:281,409,579`, `src/config/mutate.ts:112-122,1203-1216` | Type facades and runtime return preserve the writer result | Facades carry existing result types; runtime returns the original object, retaining the internal symbol. Mutation consumes its nested hash/source pair. Facades do not export the symbol or calculate another receipt. | | `src/config/io.snapshot.ts:68-79` → `src/config/io.snapshot.ts:237-242` and `src/config/io.write.ts:58,355` | Shared `hashConfigRevision` encoder | Both callers use the same root/include/target encoding. Source/lexical census finds no SDK/native consumer or second encoder. This candidate-only declaration is absent on base. Keep its bounded typed-query result with the census evidence. | ### Other consumers - Retained sync helper consumers: `src/commands/doctor-session-sqlite-migration-run.ts`, `src/agents/sessions/settings-storage.ts`, `src/secrets/shared.ts`, `src/logging/diagnostic-stability-bundle.ts`, `src/infra/npm-managed-root.ts`, `src/infra/widearea-dns.ts`, `src/config/doc-baseline.ts`. - Retained async helper consumers: `src/fleet/service-support.runtime.ts`, `src/cli/plugins-authoring-command.ts`, `extensions/memory-core/src/dreaming-dreams-file.ts`, `extensions/memory-core/src/dreaming-markdown.ts`, `extensions/memory-wiki/src/lint.ts`, `extensions/qa-lab/src/gateway-process-boundary.ts`, `extensions/qa-lab/src/suite-artifacts.ts`, `extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-config.ts`, `extensions/google-meet/src/cli-shared.ts`. - SDK facades (external gap): `src/plugin-sdk/security-runtime.ts`, `packages/plugin-sdk/src/security-runtime.ts`. - All result callers retain input/live-authority forwarding. Additional forwarders: `src/plugins/install-config-mutation.ts`, `src/plugins/install-persistence.ts`, `src/plugins/management-uninstall.ts`, `src/commands/doctor/shared/plugin-registry-migration.ts`, `src/system-agent/operations-execution-helpers.ts`, `src/plugins/management-mutations.ts`, `src/cli/hook-install-persistence.ts`, `src/cli/plugins-install-hook-fallback.ts`, `src/commands/agents.commands.delete.ts`. - Authority/callback test producers (not runtime proof): `src/cli/update-cli/update-command-plugin-caller.test.ts`, `src/commands/gateway-install-token.test.ts`, `src/config/io.write-lock.test.ts`, `src/plugins/install-persistence.test.ts`. - Unchanged shared-helper test adapters/spies; no config publication input: `src/commands/doctor-session-sqlite.test.ts`. - Channel command guards: `src/commands/channels/add.ts:312`, `remove.ts:256`, `capabilities.ts:322`; agent CLI guard: `src/commands/agents.commands.add.ts:524`. - Setup/config command guards: `src/commands/setup.ts:226`, `src/commands/configure.wizard.ts:458`, `src/commands/promos/claim.ts:275`, `src/config/mcp-config.ts:116`. - Hosted setup guards and display: `src/system-agent/hosted-setup.runtime.ts:62-76,224-254`, `src/system-agent/overview.ts:189`. - Doctor provenance: `src/commands/doctor/legacy-config-repair.ts:89`, `finalize-config-flow.ts:23`, `shared/plugin-registry-migration.ts:127-199`. No migration. - UI snapshot guard: `ui/src/pages/plugins/install-wizard-controller.ts:263`; resolved/applied status: `ui/src/lib/config/config-draft-model.ts:132` differs from raw revision. - `apps/macos/Sources/OpenClaw/ExecApprovalsStore.swift:373-382` owns approval-file hash, outside config. Writer preparation/publication/audit, runtime/factory/compensation and dependency temp/copy ownership remain. Callbacks preserve authority; login is not replayed. Ownership references: admission/compensation `io.write-safety.ts`; recovery `src/config/io.observe-recovery.ts`, `src/config/io.recovery.ts`; helper `src/infra/replace-file.ts`, `@openclaw/[email protected]/dist/replace-file.d.ts`, `@openclaw/[email protected]/dist/atomic.d.ts`; callback authority `src/cli/daemon-cli/install.ts`, `src/commands/gateway-install-token.ts`, `src/plugins/provider-auth-config.ts`; raw audit `src/system-agent/setup-inference-activate.ts`; cache `src/gateway/config-get-response.ts`; projection `src/gateway/config-revision-token.ts`, `src/gateway/server-methods/config.ts`, `config-write-flow.ts`; views `ui/src/app/app-shell-gateway.ts`, `ConfigStore.swift`. Other results: `src/commands/onboard-guided.ts:650` adopts saved recommendation; `extensions/memory-core/src/dreaming-command.ts:129` formats saved on/off result (no chat proof claimed). ### Generic dispositions Root-local beforeRename moved before staging; shared helper callbacks survive at: `extensions/memory-core/src/short-term-promotion-memory-write.ts:196`, `extensions/memory-wiki/src/lint.test.ts:746`, `extensions/qa-lab/src/suite-launch.runtime.test.ts:214`, `extensions/whatsapp/src/creds-persistence.ts:33`, `src/cli/update-cli/update-command-rollback.ts:358`, `src/cron/legacy-default-agent-owner-migration.ts:48`, `src/infra/json-files.ts:36`, `src/infra/json-files.ts:60`, `src/infra/state-migrations.legacy-session-store.ts:351`, `src/infra/state-migrations.media-persistence.ts:531`, `src/infra/state-migrations.transcript-directives-archives.ts:277`, `src/infra/state-migrations.transcript-directives.test.ts:860`, `src/plugin-sdk/session-store-runtime.ts:237`, `src/skills/lifecycle/clawhub-store.ts:448`. census: generic beforeRename reviewed — 14 callers listed census: generic promises reviewed — 3 callers listed census: generic rename reviewed — 3 callers listed census: generic readConfigFileSnapshotForWrite reviewed — 0 callers listed census: generic rollbackStatus reviewed — 0 callers listed Shared promises/rename survive; only three initial-publication observers migrate. The deleted read override is test-local; exports survive in `src/config/io.runtime.ts`, `src/config/io.factory.ts`, `src/config/io.ts`, `src/config/config.ts`, `src/plugin-sdk/config-mutation.ts`, `src/plugin-sdk/config-runtime.ts` . Deleted rollbackStatus is mutation-local: `src/config/io.write-errors.ts`, runtime/factory/include-owned rollback remain. Zero callers means those local paths, not tests/unloaded projects. External plugins/custom writers and native/security/secrets runtime are gaps. Omitted projects follow; files may load through selected projects. Exclusions are retained, not zero consumers. <details> <summary>Unselected typed-reference projects (135)</summary> ```text extensions/a2a/tsconfig.json extensions/acpx/tsconfig.json extensions/admin-http-rpc/tsconfig.json extensions/alibaba/tsconfig.json extensions/amazon-bedrock-mantle/tsconfig.json extensions/amazon-bedrock/tsconfig.json extensions/anthropic-vertex/tsconfig.json extensions/anthropic/tsconfig.json extensions/arcee/tsconfig.json extensions/azure-speech/tsconfig.json extensions/baseten/tsconfig.json extensions/brave/tsconfig.json extensions/browser/tsconfig.json extensions/buzz/tsconfig.json extensions/byteplus/tsconfig.json extensions/cerebras/tsconfig.json extensions/chutes/tsconfig.json extensions/clawrouter/tsconfig.json extensions/clickclack/tsconfig.json extensions/cloudflare-ai-gateway/tsconfig.json extensions/codex/tsconfig.json extensions/cohere/tsconfig.json extensions/comfy/tsconfig.json extensions/copilot-proxy/tsconfig.json extensions/copilot/tsconfig.json extensions/deepgram/tsconfig.json extensions/deepinfra/tsconfig.json extensions/deepseek/tsconfig.json extensions/diagnostics-otel/tsconfig.json extensions/diagnostics-prometheus/tsconfig.json extensions/diffs/tsconfig.json extensions/discord/tsconfig.json extensions/duckduckgo/tsconfig.json extensions/elevenlabs/tsconfig.json extensions/exa/tsconfig.json extensions/fal/tsconfig.json extensions/featherless/tsconfig.json extensions/feishu/tsconfig.json extensions/firecrawl/tsconfig.json extensions/fireworks/tsconfig.json extensions/geolocation/tsconfig.json extensions/github-copilot/tsconfig.json extensions/gmi/tsconfig.json extensions/google-meet/tsconfig.json extensions/google/tsconfig.json extensions/googlechat/tsconfig.json extensions/gradium/tsconfig.json extensions/groq/tsconfig.json extensions/huggingface/tsconfig.json extensions/image-generation-core/tsconfig.json extensions/imessage/tsconfig.json extensions/inworld/tsconfig.json extensions/irc/tsconfig.json extensions/kilocode/tsconfig.json extensions/kimi-coding/tsconfig.json extensions/line/tsconfig.json extensions/litellm/tsconfig.json extensions/llm-task/tsconfig.json extensions/lobster/tsconfig.json extensions/longcat/tsconfig.json extensions/matrix/tsconfig.json extensions/mattermost/tsconfig.json extensions/memory-core/tsconfig.json extensions/memory-lancedb/tsconfig.json extensions/memory-wiki/tsconfig.json extensions/meta/tsconfig.json extensions/microsoft-foundry/tsconfig.json extensions/microsoft/tsconfig.json extensions/minimax/tsconfig.json extensions/mistral/tsconfig.json extensions/moonshot/tsconfig.json extensions/msteams/tsconfig.json extensions/mxc/tsconfig.json extensions/nextcloud-talk/tsconfig.json extensions/nostr/tsconfig.json extensions/novita/tsconfig.json extensions/nvidia/tsconfig.json extensions/ollama/tsconfig.json extensions/openai/tsconfig.json extensions/opencode-go/tsconfig.json extensions/opencode/tsconfig.json extensions/openrouter/tsconfig.json extensions/openshell/tsconfig.json extensions/parallel/tsconfig.json extensions/perplexity/tsconfig.json extensions/pixverse/tsconfig.json extensions/qa-channel/tsconfig.json extensions/qa-lab/tsconfig.json extensions/qianfan/tsconfig.json extensions/qwen/tsconfig.json extensions/raft/tsconfig.json extensions/reef/tsconfig.json extensions/runway/tsconfig.json extensions/searxng/tsconfig.json extensions/sglang/tsconfig.json extensions/signal/tsconfig.json extensions/slack/tsconfig.json extensions/sms/tsconfig.json extensions/stepfun/tsconfig.json extensions/synology-chat/tsconfig.json extensions/synthetic/tsconfig.json extensions/tavily/tsconfig.json extensions/teams-meetings/tsconfig.json extensions/telegram/tsconfig.json extensions/tencent/tsconfig.json extensions/tlon/tsconfig.json extensions/together/tsconfig.json extensions/tokenjuice/tsconfig.json extensions/tsconfig.json extensions/tsconfig.package-boundary.base.json extensions/tsconfig.package-boundary.paths.json extensions/twitch/tsconfig.json extensions/venice/tsconfig.json extensions/vercel-ai-gateway/tsconfig.json extensions/vllm/tsconfig.json extensions/voice-call/tsconfig.json extensions/volcengine/tsconfig.json extensions/vydra/tsconfig.json extensions/webhooks/tsconfig.json extensions/whatsapp/tsconfig.json extensions/xai/tsconfig.json extensions/xiaomi/tsconfig.json extensions/zai/tsconfig.json extensions/zalo/tsconfig.json extensions/zalouser/tsconfig.json extensions/zoom-meetings/tsconfig.json packages/ai/tsconfig.json packages/llm-core/tsconfig.json packages/model-catalog-core/tsconfig.json packages/plugin-sdk/tsconfig.json test/tsconfig/tsconfig.extensions.test.json tsconfig.core.json tsconfig.extensions.json tsconfig.extensions.projects.json tsconfig.scripts.json ``` </details> Additional round-5 snapshot readers and fixtures: These source dispositions cover the expanded exists/raw query. Positions refer to head `5095bab1a0a66d634aad4b352be22f71245985dd`; the retained CI-tree query accounts for upstream line offsets and its extra config-validation project reference. The publication guard advances only its private expected root after successful owned removal. Canonical reader snapshots and the captured include graph stay unchanged. | Producer → final consumer | Intervening operation/state | Disposition and falsifying observation | | --- | --- | --- | | Canonical snapshot → `src/cli/config-cli.test.ts:247,248,412,413,1672,1673,1834,1835` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/config-cli.ts:243` | Config command missing-file selection; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/daemon-cli/lifecycle-action-preflight.ts:39` | Service action validation of existing invalid config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/daemon-cli/status.gather.ts:180` | Service status projection of observed config presence; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/fresh-install-config.ts:25` | Fresh-install missing-config selection; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/gateway-cli/run.option-collisions.test.ts:981,986` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/gateway-cli/run.ts:888` | Gateway CLI startup presence selection; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/program/config-guard.ts:269,357,361,463` | Command admission, invalid-config diagnostics, and retry validation; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/schema-preflight.test.ts:288` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-execution.test.ts:180,181` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-execution.ts:337,343` | Update execution source hash derived from observed raw bytes; `raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-fresh-doctor.ts:306` | Post-update repair selection for missing config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-generation.test-support.ts:129` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-migrated-windows.test.ts:156,157` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-migrated.test.ts:318,319` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-noop.ts:195` | Update status compares observed before/after raw bytes; `raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-post-update-recovery.test.ts:167,168` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-post-update-repair.test.ts:156,157` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-recovery.test.ts:233,234` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-cli/update-command-repair.ts:87` | Update repair source provenance uses observed raw bytes; `raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/cli/update-result-output.test-support.ts:37,38` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/backup-shared.ts:627,632` | Backup workspace/include ownership validation; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/config-validation.ts:55` | Command config presence/validity validation; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/dashboard.ts:31` | Dashboard command config validation; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor-config-flow.gateway-bind-persistence.test.ts:155` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor-config-flow.ts:288,395` | Doctor repair selection and source hash; `exists/raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor-config-preflight.plugin-persistence.test.ts:595` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor-config-preflight.state-migration-input.test.ts:67` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor-config-preflight.ts:351,357,382,383,394` | Doctor prefixed-config parse/repair selection; `exists/raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor-config-snapshot.test-helpers.ts:21,22` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor-lint.ts:172` | Doctor config validation diagnostics; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor-update.test-support.ts:339,340` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor/shared/automatic-startup-config-repair.test.ts:23,24,105` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor/shared/automatic-startup-config-repair.ts:29,30` | Startup repair eligibility from observed presence and bytes; `exists/raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor/shared/config-flow-steps.test.ts:26,29,175` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/doctor/shared/legacy-config-issues.ts:58` | Legacy issue selection for an existing config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/gateway-status/helpers.ts:175` | Gateway status projects observed config presence; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/onboard-non-interactive.gateway.test.ts:246` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/onboard.ts:656` | Onboarding existing-config selection; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/status.scan-overview.ts:162` | Status cold-start selection; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/commands/triage.ts:325` | Triage selection from observed config presence; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/agent-roster-provenance.test.ts:18,19` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/io.best-effort.test.ts:198,240` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/io.observe-recovery.test.ts:263,264,517,1308,1347,1382,1440` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/io.observe.ts:46,97,152` | Config observation consumes canonical root presence and raw bytes; `exists/raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/io.scalar-root.test.ts:46` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/io.snapshot.recovery.test.ts:102` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/issue-location.test.ts:18` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/issue-location.ts:369` | Validation-location projection of canonical raw bytes; `raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/legacy.roster.test.ts:30` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/redact-snapshot.restore.test.ts:103,119` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/redact-snapshot.ts:304,315,317,344` | Config redaction reads raw bytes and produces its own redacted projection; `raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/config/runtime-schema.test.ts:69,70` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/flows/channel-setup.ts:107,108` | Channel setup continuation validates current config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/flows/doctor-core-checks.ts:1372` | Doctor diagnostics distinguish missing and invalid config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/gateway/config-get-response.test.ts:149,150,151,236` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/gateway/server-methods/system-agent-execution.ts:57` | System-agent execution validates current config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/gateway/server-methods/system-agent.ts:267` | System-agent request selects current source config or empty input; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/gateway/server-methods/update.test-harness.ts:397,398` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/gateway/server-methods/update.test.ts:1013,1014` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/gateway/server-startup-config-helpers.ts:113` | Gateway startup selects behavior for existing config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/gateway/server-startup-finish.ts:409,410` | Gateway watcher initializes its observed raw-root revision; `exists/raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/gateway/server.chat-adopted-failure.test.ts:279,313` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/gateway/server.roles-allowlist-update.test.ts:905` | Snapshot fixture or assertion of canonical presence/raw bytes; `raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/infra/backup-config-capture.ts:41,48,49,127,128` | Backup capture validates root/include ownership and source stability; `exists/raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/infra/state-migrations.plan.ts:118,128` | State planning reads config presence and raw-root provenance; `exists/raw` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/mcp/openclaw-tools-serve.test.ts:41,43` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/plugins/native-session-catalog-registration.test.ts:57` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/security/audit-config-include-perms.test.ts:23,24,64,65` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists/raw` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/security/audit-extra.async.ts:524` | Security audit selects checks from observed config presence; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/system-agent/inference-fallback.ts:84` | Inference fallback selects valid existing config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/system-agent/operations-execute.ts:121` | System-agent operation rejects missing config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/system-agent/post-write-verification.ts:18` | Post-write verification resolves current disk presence; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/system-agent/setup-config-snapshot.ts:11,18,19` | Setup reads current source/runtime config or empty input; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/system-agent/setup-inference-core.ts:406` | Inference setup selects a valid existing snapshot; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/system-agent/setup-inference-detect.ts:129,183` | Inference detection validates and reports config presence; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/system-agent/setup-inference-turn.ts:495,527,709` | Inference turns select existing/current valid snapshots; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/system-agent/setup-recovery.ts:85,118` | Setup recovery validates current config presence; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/system-agent/verified-inference.ts:841,877` | Verified inference rejects missing or invalid config; `exists` | Unchanged canonical snapshot consumer. It does not receive the private expectedPublication snapshot; exists/raw retain observed-state meaning. No call-site or runtime-proof change is required. False if private publication-state advancement changes the canonical snapshot observed here. | | Canonical snapshot → `src/wizard/setup.shared.test.ts:186` | Snapshot fixture or assertion of canonical presence/raw bytes; `exists` | Unchanged test producer/reader. The guard replaces a private expected snapshot; it does not mutate this fixture or change its assertions. Reference coverage is not a claim that this suite ran. False if private publication-state advancement changes the canonical snapshot observed here. | ## Invalidation - Preflight captures include facts; same guard validates root/content/targets at rename/remove/create. Owned removal alone advances private absence; caller snapshot/graph unchanged; temp/async recovery separate. - Receipt is immutable history. Current revision changes with root/include bytes/targets/paths, excludes environment/defaults; include-free equals raw. Gateway projection/locked guards reject stale later writes. - Runtime reread/application can retain runtime on invalid/missing disk or reject supersession; separate from ACK. Watcher acceptance/applied-plugin keys invalidate get; without an active watcher, reads bypass the cache. UI ACK adopts pair; events refresh clean views, dirty basis retained; manual save/apply reloads; native route/projector unchanged. - Include-owned recovery remains separate; audit/rollback use raw hash. Successful wizard/configure commits advance merge basis; migration refreshes currentConfig (staging/null hash retained). Onboarding fresh-compares creation revision before merge/session migration. - Committed roster drives cleanup/status; durable registry/fences/pre-delete state separate. Follow-up policy uses committed config, generation current runtime. Update-channel view clears hash; later publish rereads. ## Compatibility Tier M; no persisted format, schema, config key, migration, dependency, protocol or SDK change. | Consumer/support | Artifact | Operation | Result | | --- | --- | --- | --- | | Current CLI/Gateway | Source launcher | Include save/race/stale write | Pass; committed ACK/external bytes preserved | | Prior-release state | Corpus | Startup/preservation | 58 pass; not old-CLI update | | v2026.9.4 custom writer | Shipped source/test | Result/void mutation | Supplied result or null revision retained | | v2026.9.4 stored-hash claim | Old source | Build/replay | H4-5 not reproduced; build failed, no producer/team owner | | Native/external plugin | Source census | ACK fields | Source-only; platforms unrun/external inventory incomplete | Co-authored-by: Ayaan Zaidi …
…penclaw#146291) ## What Problem This Solves Fixes root config write regressions introduced by openclaw#145983: failed config saves could remove the root and recommend a destructive retry, or discard recovery backups before staging succeeded. ## Why This Change Was Made Root and included-file saves share staged publication and safe restoration. Backup bytes are prepared asynchronously; rotation follows successful staging. Partial failures report the original error, recovery status, and backup location. The writer rechecks captured include path identities during publication and restoration. Backup permissions change only through admitted regular-file descriptors. The decision `which backup files may be mutated` is made by exactly one mechanism at `src/config/backup-rotation.ts:78`. The decision `whether captured include paths are unchanged` is made by exactly one mechanism at `src/config/io.write-safety.ts:80`. ## User Impact Failed staging preserves all five recovery generations. Interrupted saves restore the original file when safe. Gateway clients receive complete recovery details. Cancelled login and setup writes retain the cancellation reason. ## Evidence Before: permission-denied fallback plus a concurrent include edit removed the root; following retry advice lost Gateway settings and cold startup failed. Five disk-full saves consumed the backup history. The same CLI scenarios now restore the root, preserve all five root and include backups, and retain Gateway settings on the next save. Authenticated cold health passes; a wrong token is rejected. All three Gateway save methods return complete structured recovery failures. Aliased includes survive denied rename, validate, and cold-start; linked backup targets retain their bytes and permissions. Detailed consumer coverage is retained in `proof/consumers.md`. ## Compatibility No config keys, stored formats, protocol schema, or protocol version change. Partial publication failures use the existing `UNAVAILABLE` outcome. Plain-root legacy mutation adapters retain their supplied revision; include-bearing adapters without a committed snapshot use the existing unknown revision and can refresh before their next edit. ## Consumers - Config CLI saves preserve root and include recovery backups, including through symlinked includes, and report restoration outcomes. - Gateway `config.set`, `config.patch`, and `config.apply` preserve complete recovery messages and structured details. - Login and service-install writers check live authority immediately before file effects. - Deferred chat and Telegram native login consent recheck retained flow and caller authority at publication. - Gateway setup activation carries cancellation through the shared config writer. - Legacy include mutation adapters receive an unknown revision when no committed composite revision is available. <details> <summary>Internal call migration</summary> The counts below refer to retired adapters and synthetic test-fixture fields. Filesystem options, the public authority callback, and real token/version contracts remain supported. census: generic assertConfigPathForWrite reviewed — 0 callers listed census: generic chmod reviewed — 0 callers listed census: generic copyFallbackOnPermissionError reviewed — 0 callers listed census: generic copyFile reviewed — 0 callers listed census: generic dirMode reviewed — 0 callers listed census: generic fileSystem reviewed — 0 callers listed census: generic maintainConfigBackups reviewed — 0 callers listed census: generic mkdir reviewed — 0 callers listed census: generic open reviewed — 0 callers listed census: generic overwrite reviewed — 0 callers listed census: generic promises reviewed — 0 callers listed census: generic rename reviewed — 0 callers listed census: generic tempPrefix reviewed — 0 callers listed census: generic to reviewed — 0 callers listed census: generic token reviewed — 0 callers listed census: generic unlink reviewed — 0 callers listed census: generic version reviewed — 0 callers listed </details> ## Invalidation Existing config watchers and runtime refresh remain unchanged. Captured path facts are scoped to one write and its restoration. Failed saves publish no success acknowledgement. ## Contention Backup preparation yields to unrelated Gateway requests. With a 2,000 ms injected preparation delay, an unrelated health request completed in 90 ms (limit: 1,000 ms). Candidate staging, backup renames, and final checks stay synchronous. ## Tests 374 targeted config-owner and CLI tests passed, including linked backup slots, alias fallback, alias replacement, and missing-parent repair. Registered `openclaw config set`, `config.set`, `config.patch`, `config.apply`, `models.authLogin`, and `wizard.next` cover config writes. Provider login is synthetic. Service-token/install tests use a mocked writer and prove forwarding and refusal, not native service effects. Package-entry consumers cover legacy revision compatibility. CI hits the same `server-startup-finish.ts:416` type error as [main run 34718269980](https://github.com/openclaw/openclaw/actions/runs/34718269980), introduced by openclaw#146275. The config tests, formatting, line limits, assertions, and unused-export checks pass. Follow-up: Settings reload/save after a missing root can create defaults; that existing UI behavior is tracked separately. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #145660, #145939.
What Problem This Solves
Fixes an issue where saving configuration could report failure after the write had already committed, if another edit made the subsequent read invalid.
Why This Change Was Made
The configuration writer returns the source configuration and revision it committed. The same publication guard checks root and included files before replacement, removal and creation. Runtime application remains a separate outcome.
User Impact
Successful saves acknowledge the committed value while later edits remain visible and stale writes still conflict. A conflict during the non-atomic copy fallback can leave the root configuration absent; its backup remains available. No configuration format or migration changes.
Consumers: configuration write responses and their command, setup and Settings continuations use the committed configuration/revision pair.
Evidence
Registered configuration set, patch and apply tests cover acknowledgements, conflicting edits, included files and fallback races. Command-line saves preserve includes. Final checks passed 76 Gateway tests, 58 startup corpus cases and 323 configuration tests. Filesystem failures were injected; older-release replay remained unverified.