Repository navigation
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: stale review; fresh review needed. Summary Next step Review history (41 earlier review cycles; latest 8 shown)
|
|
Added exact-head real CLI proof to the Evidence section (built from @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
98cc83a to
1e36801
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
A valid, schema-passing openclaw.json written by hand — one without a meta block — was silently replaced by the previous openclaw.json.bak generation on any read-only command that loaded config. Only hand-authored files ever match that shape: OpenClaw's own writer always stamps meta.lastTouchedVersion. Detection stays on the observe path (warning-only); auto-restore now requires the identity signals only a product-written accepted baseline provides: - A hand-authored accepted baseline refuses a .bak whose bytes differ from it, blocking reverts to older generations. - Recovery prefers a retained .last-good payload only when its bytes hash to the recorded accepted baseline, and source selection runs before backup preparation so a missing or rejected .bak cannot short-circuit the verified promoted payload. - A valid read whose anomalies are not recoverable advances the accepted baseline, so later recovery compares against the operator's bytes rather than a stale product-written fingerprint. Closes openclaw#126806.
|
Rebuilt on the current main (3037992) as 656f77f — main's observe-system refactor absorbed part of the previous head, so this replays the remaining net change on top:
Verification on this head:
Test trade-off: the previous head carried a 1467-line main-side test file; the main base caps test files at 1000 lines, so the proof surface here is the 4 core recovery tests plus the 11 accepted-baseline e2e scenarios. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
|
Closing due to inactivity. |
What Problem This Solves
Closes #126806.
A valid, schema-passing
openclaw.jsonthat an operator wrote by hand (or deployed via dotfiles/Ansible/Nix) — one without ametablock — was silently replaced by the previousopenclaw.json.bakgeneration the next time any command loaded config, including read-only ones likeopenclaw models list. The operator'supdate.channelvalue and agent roster were dropped into aopenclaw.json.clobbered.<ts>sidecar behind a single log line: recoverable, but not obvious.Why This Change Was Made
loadConfigruns suspicious-read recovery after validation succeeds, so the restore only ever applies to configs that validate cleanly.missing-meta-vs-last-goodwas on the recoverable-reason list, and OpenClaw's own writer always stampsmeta.lastTouchedVersion— so a valid config lackingmetawas, by construction, hand-authored, the exact file a silent revert hurts most. The write path already treats the identical signal as benign (missing-meta-before-writeis only logged;resolveConfigWriteBlockingReasonsdoes not block), so the read path was stricter than the write path and reverted on it.The fix removes
missing-meta-vs-last-goodfromisRecoverableConfigReadSuspiciousReason(src/config/io.observe-recovery.ts). A valid config is now left untouched on read; the independent observe path (observeConfigSnapshot) still records the anomaly as a warning (Config observe anomaly: … (missing-meta-vs-last-good)) — the "at most, a warning" the issue asks for.gateway-mode-missing-vs-last-goodandupdate-channel-only-rootstay recoverable because they describe genuinely clobbered shapes.Two follow-up commits close the residual windows that first fix left open:
9637d635e2b— once a metadata-free config has been accepted and recorded as the last-known-good baseline, a later suspicious read could still auto-restore an older.bakgeneration over the operator's accepted file. The recovery source-eligibility check refuses a.bakwhose bytes differ from a hand-authored accepted baseline, so a revert to older bytes is blocked while a.bakholding the accepted bytes itself still restores.40bf9d02050— that skip still left a recognized valid clobber active when Gateway had promoted the accepted bytes to${configPath}.last-good. The read recovery path now prefers that retained payload, accepting it only when its bytes hash to the recorded accepted-baseline hash (prepareLastGoodRecoverySource); a recognized clobber is then repaired from the operator's own accepted config instead of staying active. When no hash-verified copy exists (no.last-good, or its bytes diverged), the skip remains fail-closed with an explicit unavailable-baseline warning (Config auto-restore from backup skipped: … accepted baseline is hand-authored and no verified last-good copy exists) — divergent bytes are never restored. The last-known-good promote/recover owner moves to its own module (src/config/io.last-known-good.ts) so the read path stays under the file-size budget.634bab43c8e(40fac9dcfc3adds docs only) — closes the two findings from that review. Acceptance bookkeeping (P1): both observers (observeConfigSnapshot/observeConfigSnapshotSync) advancedlastKnownGoodonly on completely clean reads, so the accepted warning-only read itself — the hand-authored edit — left the stale product-written fingerprint in place; a later recognized clobber then compared against that stale baseline, bypassed the hand-authored guard, and restored the pre-edit.bakover the live settings. A valid read whose anomalies are not recoverable now advances the baseline while the warning stays, with the recoverable/acceptance predicates owned in one place (isAcceptedConfigReadinsrc/config/io.observe-suspicious.ts). Source selection before backup preparation (P2): the.last-goodbranch sat behind.bakread/parse/prepare/gateway.modechecks, so a missing, unparsable, rejected, or gateway-mode-less.bakshort-circuited recovery before the verified promoted payload was ever consulted. Selection now needs only the retained baseline's hash and runs before any source-specific preparation;.bakpreparation runs only when.bakis the selected source.User Impact
Operators who hand-author or config-manage a valid
openclaw.jsonwithout ametablock no longer have it silently reverted to an older.bakgeneration by a read-only command — neither on the metadata-only read itself, nor later when a clobbered shape arrives (Scenario F). The accepted read itself becomes the recorded baseline, so later recovery compares against the operator's bytes rather than the pre-edit generation. When Gateway has promoted their accepted config, a later recognized clobber is repaired from that exact accepted payload even when the.bakis missing, unreadable, or rejected (Scenario D); otherwise the clobber is left in place with an explicit warning instead of being silently reverted or silently ignored (Scenarios C/E). Configs that genuinely lost theirgateway.modeor collapsed to anupdate.channel-only root are still auto-restored as before whenever the accepted baseline is a product-written config (Scenario B).Evidence
Real behavior (exact-head CLI transcript) — Scenarios A–E were captured at
40bf9d02050cc16badf05283774616ebd746af2eagainst the freshly built dist of that exact commit (OpenClaw 2026.8.1 (40bf9d0)); Scenario F re-runs the acceptance sequence at the current head40fac9dcfc3(bannerOpenClaw 2026.8.1 (40fac9d), via the repo dev runner — source is byte-identical to634bab43c8e, the docs commit sits on top). Every command runs against an isolatedOPENCLAW_STATE_DIRand an isolatedOPENCLAW_CONFIG_PATH(no operator state touched). Seven scenarios cover the metadata-only preservation, the product-written-baseline sibling, both halves of the accepted-baseline recovery semantics, the accepted-read baseline advancement, and the published-updater-to-candidate upgrade transition (Scenario G, captured at the current reviewed headd72b2078f90, bannerOpenClaw 2026.9.5 (d72b207)— source identical to the reviewed head70b177d5622).Scenario A — a valid hand-authored config missing only
meta(the regression the issue reports): baseline load stamps the last-known-good fingerprint, then the operator's file is rewritten without themetablock and re-read through the realopenclaw models list --jsonCLI.The hand-authored file is left byte-identical (no
metare-inserted), no.clobberedsidecar is written, no restore log — and the anomaly is still observed as a warning. Detection preserved; only the silent auto-restore is gone.Scenario B — the same missing
metacombined with a genuinely clobbered shape (gateway.modelost, file reduced to a bareupdate.channelroot), with anopenclaw.json.bakgeneration present. The accepted baseline is product-written (hasMeta: true), so the new guard must not apply:Restore for product-written baselines is unchanged — the guard is scoped to metadata-free accepted baselines only.
Scenario C — the two-read sequence with no promoted payload: a hand-authored config is accepted as the baseline (read 1), an older product generation sits in
.bak, then anupdate.channel-only clobber arrives (read 2). No.last-goodexists, so there is no verified copy to restore and the skip is fail-closed:Scenario D — the repaired recognized-clobber path: the same accepted hand-authored baseline, but this time Gateway actually started once and promoted the accepted bytes. The Gateway is started against the same isolated state (
openclaw gateway run --port 19003 --auth none), reaches[gateway] ready, promotes, and is then stopped before the clobber is written — the recovery read is a plain CLI load:The restore takes the operator's own accepted values (
port 19003), not the older.bakgeneration sitting next to it (port 19002— Scenario C's.bakwould have restored that value before this PR). The config-audit record for the read shows the repaired provenance:"restoredFromBackup": true,"restoredBackupPath": "/tmp/oc-126932-h/openclaw.json.last-good", and the clobbered bytes preserved in the sidecar.Scenario E — the fail-closed twin of Scenario D: the promoted
.last-goodbytes have diverged (here overwritten with{ "tampered": true }), so the recorded hash no longer matches and nothing is restored:Scenario F — the acceptance-bookkeeping sequence at the current head (
634bab43c8e, bannerOpenClaw 2026.8.1 (40fac9d)): a product-written baseline with a matching.bak(read 1), the operator's hand-authored edit that dropsmetaand adds channel settings (read 2), then a recognized clobber that losesgateway.mode(read 3). Read 2 must leave the edit live with only a warning and record it as the accepted baseline; read 3 must not restore the pre-edit.bak, which still holds the product bytes withmeta:Read 2's acceptance is what repairs read 3: because the accepted hand-authored read advanced the baseline (
hasMeta: false, its own hash), the recovery guard treats the operator's file as the accepted state and refuses the pre-edit.bak. Before this commit the baseline stayed on the product fingerprint (hasMeta: true), the guard was bypassed, and the.bak— with its stalemetaand without the operator's channel settings — was restored (the new regressions fail exactly there).Scenario G — the published-updater-to-candidate upgrade transition at the current head (
d72b2078f90, bannerOpenClaw 2026.9.5 (d72b207)): the publishedv2026.9.5release (commitec9c1a1) first owns the same isolated state — a hand-authored baseline load through its real CLI, then a promotion through the samepromoteConfigSnapshotToLastKnownGoodseam (src/config/io.runtime.ts) its Gateway startup calls — leaving existing config-health records and a hash-verified promoted.last-goodcopy behind. The candidate head then consumes exactly that published state with no migration step in between:The upgrade transition needs no schema migration to consume the published state: the
config_health_entrieskernel (src/config/io.health-state.kernel.ts) and fingerprint types (src/config/io.health-state.types.ts) are byte-identical betweenv2026.9.5and this head, and the generated DB-type diff between the two releases touches only unrelated subsystems — so the candidate opens thev2026.9.5state database, reads the recorded last-known-good and last-promoted-good fingerprints (70556f5d340e8b70…), verifies the promoted.last-goodcopy against that hash, and repairs the recognized clobber from the published payload in one read (Config auto-restored from last-good: …). The post-restore stability read confirms the trust boundary stays where it was: the restored bytes are the accepted state, no further restore or anomaly fires, and the file is untouched.Docs updated in this PR:
docs/gateway/troubleshooting.mdlistsupdate-channel-only-rootamong the recoverable observe signatures, separates the metadata-only warn-only case, describes.clobbered.*preservation as best effort (the bounded snapshot can be skipped under disk or rotation limits), and documents the hand-authored-baseline behavior with its exact skip warning plus the.last-good-first restore (Config auto-restored from last-good:);docs/help/faq.mdstates that a valid config missing only itsmetablock is left in place on its own and that last-known-good restoration still runs when the same read trips a recoverable signal — preferring a hash-verified.last-goodcopy when Gateway promoted one, and skipping with the warning otherwise.ClawSweeper review findings addressed:
src/config/io.observe.ts,src/config/io.observe-suspicious.ts, commit634bab43c8e): both observers now advancelastKnownGoodfor a valid read whose anomalies are not recoverable, while theConfig observe anomalywarning and audit stay. The acceptance predicate (isAcceptedConfigRead) lives besideisRecoverableConfigReadSuspiciousReasoninsrc/config/io.observe-suspicious.ts— the single owner of both sides of the recovery/acceptance boundary — and requiressnapshot.valid, so an unparsable file can never be promoted to the baseline by a missing-meta-only reason. Covered by the complete three-step sequence (product baseline → accepted metadata-free edit → recognized clobber keeps the operator's bytes) through both readers (loadConfig/observeConfigSnapshotSyncandreadConfigFileSnapshot/observeConfigSnapshot):loadConfig records accepted hand-authored edits so a later clobber keeps themandread snapshots record accepted hand-authored edits so a later clobber keeps them. Both fail on the pre-fix code at the baseline assertion (hasMetastaystrueafter the accepted edit) and end with the pre-edit.bakrestored over the accepted settings.src/config/io.observe-recovery.ts, commit634bab43c8e): the.last-goodbranch no longer sits behind.bakread/parse/prepare/gateway.modechecks. Source selection needs only the retained baseline's hash and runs first;.bakpreparation happens only when.bakis the selected source (hash equal to the accepted baseline keeps the.bakpath — byte-identical restore, unchanged). Covered by unusable-backup regressions through both recovery lanes: missing.bak(loadConfig restores a promoted accepted baseline when no backup exists,read snapshots restore a promoted accepted baseline when no backup exists) and unparsable.bak(… when the backup is unparsable, sync + async). All four fail on the pre-fix code with the clobber left active (gateway.modenever restored).src/config/io.observe-recovery.ts, commit40bf9d02050): the recovery source-eligibility guard no longer returns the recognized clobber unchanged "solely because.bakdiffers". When the accepted baseline is metadata-free and the.bakbytes differ, the recovery path now reads the retained${configPath}.last-goodpayload Gateway promoted at startup, accepts it only if its bytes hash to the recorded accepted-baseline hash, parses and re-validates it through the same candidate-preparation seam as.bak, and restores it — loggingConfig auto-restored from last-good: …and recordingrestoredBackupPath: <configPath>.last-goodin the config audit (Scenario D). When no hash-verified copy exists (missing file, diverged bytes, unparsable JSON5, rejected candidate, or a payload without a gateway mode), the source preparation returns null and the existing skip remains, now with the explicit unavailable-baseline reasonaccepted baseline is hand-authored and no verified last-good copy exists(Scenarios C/E) — divergent bytes are never restored.loadConfig-level regressions:loadConfig restores a promoted accepted baseline over a recognized clobber(promote → clobber → asserts the operator's bytes are restored, thefrom last-goodwarning, and the auditrestoredBackupPath) andread snapshots keep a recognized clobber when the retained baseline diverged(diverged.last-good→ asserts no restore and the skip warning). Both fail on the pre-fix code: the first restored nothing and left the clobber active, the second's assertion target (the skip warning text/behavior) did not exist.src/config/io.observe-recovery.ts, commit9637d635e2b): the.bak-vs-accepted-baseline refusal that started this repair — see the follow-up list in Why This Change Was Made.docs/gateway/troubleshooting.md): both bullets describe.clobbered.*preservation as best effort instead of a guarantee.Regression (
node scripts/run-vitest.mjs src/config/io.observe-recovery.test.ts— 71 tests at this head after removing six byte-identical merge duplicates, andnode scripts/run-vitest.mjs src/config/io.write-config.test.ts— 129 tests at the pre-merge head; both pass):.bakbytes over the accepted hand-authored baseline. The original two tests (does not auto-restore when only metadata is missing …,loadConfig leaves a valid hand-authored config without meta untouched) fail on pre-PR code for the restoredmeta/rewritten bytes.hasMetastayingtrueafter the accepted edit (then the pre-edit.bakrestored over the accepted settings), and the four unusable-backup tests with the clobber left active (gateway.modenever restored).src/configlane (3914 tests across 281 files) passes at this head.Sibling coverage: the recovery path is shared by load + read-snapshot.
gateway-mode-missing-vs-last-good,update-channel-only-root, andsize-drop-vs-last-goodrestore tests stay green for product-written baselines (their entries carrymeta, so the new check does not apply — Scenario B is the live-CLI twin); a.bakbyte-identical to an accepted hand-authored baseline still restores, so the skip never blocks restoring the operator's own bytes.Checks:
oxlint --type-awareclean andoxfmtclean on every file this PR touches;tsgo:coreclean at this head, and thecore-test-config-clitest shard reports no errors in any file this PR touches. The localtsgo:core:testshard run reports five errors, all in files this PR never touches (io.write-config.test.ts,io.write-reread.test.ts,session-accessor.test.ts,agents/workspace.test.ts—vi.spyOnmockImplementationimplicit-anyandSuiteAPI.sequential), consistent with stale localvitesttypings rather than this change; CI is authoritative for those lanes.node scripts/check-changed.mjs -- <touched files>passes its conflict-marker lane; its max-lines ratchet lane reports nine entries that this PR never touches (dreaming-narrative.*,xai/web-search.test.ts,plugin-auto-enable.shared.ts,schema.ts,exec-approval-manager.ts,server-close.ts,exec-approval-forwarder.ts,logger.ts) — all nine are already removed fromconfig/max-lines-baseline.txton currentmain(verified via the GitHub contents API), so the local lane red is branch-base lag, and the CI merge-commit run evaluates the ratchet against the up-to-date baseline.Focused-suite test-cost measurements (recorded as requested): local focused-suite wall times at head
d72b2078f90on an 8-vCPU Xeon dev host (node scripts/run-vitest.mjs run <file>, one shard per file):src/config/io.observe-recovery.accepted-baseline.test.ts(new sibling, 11 tests) — 22.1s vitest duration / ~28s wall;src/config/io.observe-recovery.test.ts(60 tests after the split) — 29.1s / ~35s;src/cli/gateway-cli/pre-bootstrap.process.test.ts(17 tests, spawns real child processes) — 137.8s / ~143s. Available CI durations (head82c803c81bf, run 35819716853, the last completed run of this test surface; the two later commits only split a test file within the same shard and touch no production code): the changedsrc/configtests run inside thecore-runtime-config-hosted-3shard of jobchecks-node-compact-large-23— 224 test files, 442.76s vitest duration; the pre-bootstrap file runs inside theagentic-clishard of jobchecks-node-compact-small-13— 543.48s vitest duration (that shard exited red on the since-repaired discarded-env fixture regression fixed in15c0680a19d, all 17 tests executed).reviewMetrics
src/config/io.observe-recovery.ts(first commit): prod net −1 behavioral line (removedmissing-meta-vs-last-goodfrom the recoverable-reason list); +3 comment lines documenting the non-obvious exclusion. Why it matters: removes a read-path auto-restore that silently destroyed valid hand-authored configs on read-only commands (silent failure / data-loss — highest severity).src/config/io.observe-recovery.ts(follow-up9637d635e2b): prod +11/+0 — one guarded skip (comment + condition + warn) inside the existing source-eligibility block. Positive delta justified: it adds the concrete ownership invariant that a hand-authored accepted baseline may not be reverted by an older product-written.bak, which cannot be expressed by reshaping the existing eligibility list without weakening restore for product-written baselines.40bf9d02050: prod +349/−247 acrossio.observe-recovery.ts(+99/−245), the newio.last-known-good.ts(+248), andio.factory.ts(+2/−2). Of that, ~205 lines are a verbatim move of the last-known-good promote/recover/clobber owner out ofio.observe-recovery.tsinto its own module (required by the 700-line max-lines ratchet — the file was at 723 with the fix inlined), leaving ≈ +95 net-new behavioral lines: the hash-verified.last-goodsource preparation generator, the restore-source switch, and the source-labeled restore log/audit path. Tests +98/−2 (two new load/snapshot regressions), docs +2/−2. Why it matters: turns the fail-closed skip into an actual repair for the default Gateway-promoted path while keeping the skip for unverifiable bytes; the positive delta is the verified-source recovery seam itself, which cannot be expressed by reshaping the existing.bakeligibility branch.634bab43c8e(current head): prod +114/−52 acrossio.observe-recovery.ts(+50/−49 — the source-selection restructure largely replaces the old prepare-then-discard ordering line for line),io.observe.ts(+44/−3 — acceptance bookkeeping in both observers), andio.observe-suspicious.ts(+20 — the two predicates moved to, or added at, their single owner). Tests +180/−0 (six new regressions), docs +3/−3. Why it matters: closes both reviewed recovery defects — accepted warning-only reads now advance the baseline so clobber recovery compares against the operator's bytes, and a verified.last-goodpayload is reachable even when the.bakis missing, unparsable, rejected, or gateway-mode-less.4dd29dc3086(semantic merge of currentmain): carries the recovery semantics above onto main's capture/patch health-state architecture — accepted-baseline advancement injected into both of main's capture/patch observers (async and sync symmetric), verified-source selection spliced into main'splanSuspiciousConfigRead, andio.last-known-good.tsfolded away because main owns the promote/recover cores inio.observe-recovery.ts. No behavior beyond the commits above; the merge review confirmed the earlier findings resolved and flagged two integration defects, fixed next.82c803c81bf(post-merge repair; current head): prod +15/−5, tests −129. Restores the no-source startup fast path:planSuspiciousConfigReadreturns before fingerprinting the file or opening the health worker when neither.baknor.last-goodexists on disk, while a missing.bakalongside a possible promoted payload still continues (the.last-goodlane is not gated on.bak) —skips recovery health reads without a backup and admits a later backupinsrc/commands/doctor-config-preflight.recovery.test.tsguards it (6/6 pass at this head). Removes the six byte-identical test copies the merge created (one copy of each scenario stays), drops a redundantBoolean()wrapper on an already-boolean expression, adds the three missing SAFETY invariants in the extractedio.last-good-recovery-sourcemodule, and removes a stray blank line.io.observe-recovery.test.ts(71 tests) anddoctor-config-preflight.recovery.test.ts(6 tests) pass at this head.risks
missing-meta-vs-last-good: configs that previously auto-restored on missing-meta alone no longer do. This is the intended fix — those were almost exclusively hand-authored valid files; a genuine clobber that lost onlymetawhile keeping every other field valid is near-impossible (corruption truncates/damages, it does not surgically stripmeta), and even then the file still validates and is left flagged. The observe path still records the anomaly;.bak/.clobberedbackups remain for manual restore..bakdiffers, recovery now repairs from the hash-verified.last-goodpayload (Scenario D). Only when that payload is missing or diverged does the read leave the recognized clobber active with the explicit unavailable-baseline warning — the operator compares against the retained.bak/.last-good/.clobberedartifacts and restores manually, or rewrites the file. This trades one automatic repair for never restoring unverified bytes; the skip warns with the exact reason and the observe anomaly is still audited..last-goodpayload trust is hash-scoped: the promoted payload is accepted only when its bytes hash to the recorded accepted-baseline fingerprint hash; a diverged.last-good(partial write, operator edit, tampering) is never restored (Scenario E). The fingerprint itself is Gateway-promoted state in the shared SQLite health store, so the trust boundary matches the existing last-known-good promotion contract rather than widening it.size-drop-vs-last-goodsibling: the issue traces the same read-stricter-than-write asymmetry for size drops but did not reproduce it; the write side blockssize-drop:unlessallowConfigSizeDropis set, so it is a weaker case. Intentionally out of scope here — flagged for a separate change with its own reproduction.bestSolution
Removing
missing-meta-vs-last-goodfrom the recoverable-reason list at its owner (isRecoverableConfigReadSuspiciousReason), plus source eligibility that prefers the hash-verified promoted.last-goodpayload and otherwise fails closed with an explicit warning, is the canonical fix set: the observe path provides the warning, recognized clobbers are repaired from the operator's own accepted bytes whenever a verified copy exists, and recovery for the unverifiable state stays explicit instead of silently reverting or silently ignoring.Main rebase (head 718ae1765c4)
Resolved the merge conflicts flagged in the review against current main (which now includes the config deslop in #157146):
src/config/io.observe-suspicious.ts: main's deslop removedisRecoverableConfigReadSuspiciousReasonand made any suspicious reason trigger recovery (suspicious.length === 0). The merge restores this branch's policy —missing-meta-vs-last-goodis excluded from auto-restore and drives the accepted-baseline advance instead — because reverting a valid hand-authored config is exactly the bug this PR fixes.src/config/io.observe.ts: kept theisAcceptedConfigReadimport alongside main's move ofNormalizedConfigIoDepstoio.read.types.js.src/config/io.observe-recovery-effects.ts/io.last-good-recovery-source.ts: follow main's@openclaw/fs-safe/atomicandio.read.types.jsimport locations.Verified on the merged head:
tsgoclean; the recovery suites (io.observe-recovery.test.ts,io.observe-recovery.accepted-baseline.test.ts,io.health-state.test.ts,io.load-env-restore.test.ts,io.observe-freshness.test.ts) — 109/109 pass. The remaining before-merge items are the maintainer decisions on the accepted-baseline fallback behavior, which the Scenario G / real-CLI evidence above documents.