Skip to content

fix: adopt Settings write revisions across draft replay - #146002

Merged
obviyus merged 5 commits into
mainfrom
bugloop/config-form-revert-replay
Sep 12, 2026
Merged

obviyus merged 5 commits into
mainfrom
bugloop/config-form-revert-replay

Conversation

@obviyus

@obviyus obviyus commented Sep 12, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #145939, #145983.

What Problem This Solves

Fixes an issue where reverting a Settings edit during autosave could leave the first value saved and falsely show “Settings changed elsewhere.” A preference no-op could also clear a real conflict and enable an unsafe overwrite.

Why This Change Was Made

One draft operation adopts acknowledged configuration and revision together for all writes. Form replay preserves compatible changes and retains conflicting original content. Raw edits keep their exact content, and no-op refreshes use the existing ordered read mechanism.

User Impact

Reverts save correctly; conflicting external changes stay protected until the user reloads. Reconnect-paused drafts still require explicit submission. No configuration or protocol change.

Consumers: Settings autosave, Apply, patches, preference/plugin writes and capability disposal share acknowledgement adoption.

Evidence

Real-browser checks reproduced the revert and conflict bugs, then confirmed “Saved,” external-value preservation and safe recovery after Reload. Registered configuration capability tests passed 200 cases across eight suites, including delayed reads and disconnects. App-shutdown flushing was not proved.

@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 12, 2026
@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 12, 2026, 11:37 AM ET / 15:37 UTC (Revision 5).

ClawSweeper review

What this changes

Unifies Settings write acknowledgements so pending form and raw edits adopt saved revisions while preserving compatible changes.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 3 items remain

This remains useful follow-up work, but a successful preference write can still erase a retained Settings conflict and enable an external value to be overwritten. The no-op correction does not cover that path.

Priority: P2
Reviewed head: 66df3f913cc938f55fe7c23a559d657fb903e5ac

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful owner-level consolidation and concrete runtime evidence are limited by a remaining stale-draft overwrite path.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The identity-matched body records real Gateway/browser after-fix persistence and visible recovery for revert, raw-draft, and current-head no-op scenarios through the changed Settings owner; retained-client teardown is explicitly capability-level coverage.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The identity-matched body records real Gateway/browser after-fix persistence and visible recovery for revert, raw-draft, and current-head no-op scenarios through the changed Settings owner; retained-client teardown is explicitly capability-level coverage.
Evidence reviewed 9 items Introduced non-noop receipt adoption: Independent mutations capture the existing UI snapshot, then adopt successful write receipts before refreshing. A failed full-draft save does not itself refresh that snapshot.
Remaining conflict bypass: The independent-write overlap check uses the pre-write snapshot rather than newly acknowledged content. When that snapshot still equals the original draft baseline, staleForm is false; replay then replaces the originals and revision, removing the evidence needed to reject the stale draft.
Reachable preference writer: Server preference synchronization supplies the new receipt selector for a hashless config.patch. The Gateway reads current disk configuration for this narrow preference operation, so its successful receipt can contain an external change absent from the UI's captured snapshot.
Findings 1 actionable finding [P1] [P1] Preserve unresolved conflicts when adopting independent write receipts
Security None None.

How this fits together

The Control UI keeps a local Settings draft while the Gateway owns persisted configuration. Its write coordinator serializes saves and preference updates, then reconciles returned configuration and revisions with pending edits.

flowchart TD
  A[Settings edits] --> B[Local draft]
  C[Preference updates] --> D[Serialized writes]
  B --> D
  D --> E[Gateway configuration]
  E --> F[Receipt reconciliation]
  F --> B
  F --> G[Saved or conflict status]
Loading

Before merge

  • [P1] Preserve unresolved conflicts when adopting independent write receipts (P1) - After a form save fails because an external writer changed logging.level, the UI can still hold its old snapshot. If preference synchronization then performs a successful non-noop hashless patch before a refresh arrives, this adoption checks the draft against that old snapshot, finds no overlap, and replays the stale logging edit onto the new receipt. It clears the conflict and replaces the originals/base, so a subsequent form save passes validation and overwrites the external level. Preserve the unresolved conflict or validate it against the receipt before replacing its content evidence. Add the failed-save → non-noop preference patch → next-save sequence without an intervening refresh. This was also visible in the previous reviewed head; it is a late discovery in this review.
  • Resolve merge risk (P1) - A successful preference update can clear a retained conflict before the UI has observed the external change, allowing a later full-config save to overwrite it.
  • Complete next step (P2) - Fix independent-write conflict preservation and add coverage for a successful preference patch following a rejected form save without refreshing first.

Findings

  • [P1] [P1] Preserve unresolved conflicts when adopting independent write receipts — ui/src/lib/config/config-gateway-operations.ts:218-221
Agent review details

Security

None.

PR surface

Source +129, Tests +624. Total +753 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 9 277 148 +129
Tests 6 637 13 +624
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 914 161 +753

Review metrics

Metric Value Why it matters
Production versus test growth Production +129 net lines; tests +624 net lines The body explains the production growth as shared content validation and two existing-writer adapters; the tests cover meaningful continuation and ordering cases.

Merge-risk options

Maintainer options:

  1. Preserve conflicts across successful preference writes (recommended)
    Repair common receipt adoption and cover a rejected form save followed by a non-noop preference patch without an intervening refresh.

Technical review

Best possible solution:

Keep one acknowledgement owner, but preserve unresolved draft conflicts across independent writes until compatibility with the acknowledged content is established.

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

Yes, source establishes the remaining candidate defect: reject a stale form save, process a successful hashless preference patch before refreshing the UI snapshot, then save another form edit. No target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The shared acknowledgement owner is appropriate, but its independent-write conflict check is incomplete because the captured snapshot can predate the external value carried by the receipt.

Full review comments:

  • [P1] [P1] Preserve unresolved conflicts when adopting independent write receipts — ui/src/lib/config/config-gateway-operations.ts:218-221
    After a form save fails because an external writer changed logging.level, the UI can still hold its old snapshot. If preference synchronization then performs a successful non-noop hashless patch before a refresh arrives, this adoption checks the draft against that old snapshot, finds no overlap, and replays the stale logging edit onto the new receipt. It clears the conflict and replaces the originals/base, so a subsequent form save passes validation and overwrites the external level. Preserve the unresolved conflict or validate it against the receipt before replacing its content evidence. Add the failed-save → non-noop preference patch → next-save sequence without an intervening refresh. This was also visible in the previous reviewed head; it is a late discovery in this review.
    Confidence: 0.96
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded Settings concurrency repair with a remaining merge-blocking conflict-preservation defect.
  • merge-risk: 🚨 compatibility: The new receipt adoption can weaken existing concurrent-edit protection and overwrite another writer's saved configuration.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The identity-matched body records real Gateway/browser after-fix persistence and visible recovery for revert, raw-draft, and current-head no-op scenarios through the changed Settings owner; retained-client teardown is explicitly capability-level coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. The identity-matched body records real Gateway/browser after-fix persistence and visible recovery for revert, raw-draft, and current-head no-op scenarios through the changed Settings owner; retained-client teardown is explicitly capability-level coverage.

Evidence

What I checked:

  • Introduced non-noop receipt adoption: Independent mutations capture the existing UI snapshot, then adopt successful write receipts before refreshing. A failed full-draft save does not itself refresh that snapshot. (ui/src/lib/config/config-gateway-operations.ts:185, 66df3f913cc9)
  • Remaining conflict bypass: The independent-write overlap check uses the pre-write snapshot rather than newly acknowledged content. When that snapshot still equals the original draft baseline, staleForm is false; replay then replaces the originals and revision, removing the evidence needed to reject the stale draft. (ui/src/lib/config/config-draft-model.ts:440, 66df3f913cc9)
  • Reachable preference writer: Server preference synchronization supplies the new receipt selector for a hashless config.patch. The Gateway reads current disk configuration for this narrow preference operation, so its successful receipt can contain an external change absent from the UI's captured snapshot. (ui/src/app/server-prefs.ts:548, 66df3f913cc9)
  • Gateway contract: Hashless preference patches read a fresh write snapshot and merge only their allowed preference paths; successful responses include canonical configuration and its revision. The UI repair must preserve unrelated external values in that receipt. (src/gateway/server-methods/config.ts:969, 66df3f913cc9)
  • Regression coverage distinction: The added retained-conflict regression explicitly refreshes before a hashless no-op. Existing successful-patch conflict coverage also refreshes first. Neither exercises a non-noop preference receipt arriving while the UI snapshot still predates the rejected save. (ui/src/lib/config/config-noop-read.test.ts:84, 66df3f913cc9)
  • Proof snapshot identity and results: The full GitHub body was read beyond the supplied prefix and matched SHA-256 02615693e1dd9c5b749ccedc30ed2dd812ddc4c81e78be0eb476c3c9ee5f704f. It records real Gateway/browser before-and-after results for parser failure, revert persistence, raw conflicts, and current-head no-op recovery, including final disk values and visible Saved status. These support those scenarios; they do not cover the non-noop conflict bypass identified here. (66df3f913cc9)

Likely related people:

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

Rank-up moves

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

  • Preserve conflict evidence across non-noop independent writes and demonstrate that the next form save cannot overwrite the external value without an intervening refresh.

Rating scale

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

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

Workflow

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

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-12T13:58:26.150Z sha b3bf7ab :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T14:31:08.385Z sha 5daa2b4 :: blocked before merge. :: none
  • reviewed 2026-09-12T14:44:54.762Z sha d9ced13 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T15:09:19.823Z sha 0a67e19 :: needs maintainer review before merge. :: none

@obviyus obviyus changed the title fix: save Settings form reverts when JSON5 cannot load fix: adopt Settings write revisions across draft replay Sep 12, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 12, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 12, 2026
@obviyus

obviyus commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator Author

landpr-approve-admin-merge
pr: 146002
head: 66df3f9
scope: owner-review

@obviyus
obviyus merged commit ce4dbfc into main Sep 12, 2026
134 checks passed
@obviyus
obviyus deleted the bugloop/config-form-revert-replay branch September 12, 2026 15:51
@obviyus

obviyus commented Sep 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

Proof: Real browser and Gateway checks changed a revert-during-save conflict into a successful save. An unchanged preference operation now preserves a real conflict; Reload followed by a safe edit preserves the external value and displays Saved.

Bug: Draft replay could retain an old revision, while a preference operation that changed nothing could clear conflict protection.

Fix: The shared draft owner adopts acknowledged revisions and preserves pending edits with their original content context.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
)

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant