Repository navigation
refactor(cli): deslop CLI and fix Gateway presence publication - #159554
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 28, 2026, 10:50 AM ET / 14:50 UTC (Revision 22). ClawSweeper reviewWhat this changesThe branch consolidates CLI command, secret, and updater helpers, delays Gateway connection presence publication until hello delivery, and repairs related test fixtures. Merge readiness⛔ Blocked before merge - 4 items remain This PR remains useful: current main does not delay Gateway presence publication until hello delivery. The remaining merge blocker is upgrade proof for the final production tree; the published-updater run documented in the PR used an earlier tree. Priority: P3 Review scores
Verification
How this fits togetherThe CLI prepares commands and updates for an installed Gateway. The Gateway authenticates WebSocket clients, sends a hello snapshot, and publishes connection presence to other readers. flowchart LR
A[CLI commands] --> B[Command and update helpers]
B --> C[Gateway service]
D[WebSocket client] --> E[Authenticated hello]
C --> E
E --> F[Presence store]
F --> G[Snapshots and events]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the consolidated CLI owners and publish connection presence only after successful hello delivery, with the released updater verified against that final behavior. Do we have a high-confidence way to reproduce the issue? Yes for the Gateway presence race: current-main source publishes without a pending-delivery fence, and the PR supplies an isolated-Gateway handshake scenario. This read-only review did not execute it. Is this the best way to solve the issue? Yes for the presence repair: staging at authenticated connect and committing after hello delivery uses the existing presence owner. The updater portion still needs the repository's upgrade proof. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ec4e102c8720. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (21 earlier review cycles; latest 8 shown)
|
14f2657 to
d431e6f
Compare
d431e6f to
bf5b0f7
Compare
bf5b0f7 to
7fd67af
Compare
c5e5dcc to
0e068d8
Compare
0e068d8 to
571cc7e
Compare
Retain three original implementations required by strict validation and lint contracts. Align the process fixture with the provider diagnostic already shipped by #159237, without weakening envelope, output, or exit assertions.
Keep pending connection rows in the canonical presence store, but expose them only to their own hello snapshot until delivery succeeds. Preserve disconnect cleanup and explicitly transfer publication ownership when an HTTP watch node replaces a pending WebSocket connection. Force an overlapping presence broadcast in the registered handshake regression and cover the HTTP handoff through its real route. Keep existing handshake assertions and move unchanged fixture helpers into their existing support module to satisfy the line-cap ratchet.
571cc7e to
5a11936
Compare
|
…law#159554) * refactor(cli): deslop CLI fourth pass Consolidate command preparation, argument validation and report rendering under their existing CLI owners. Remove redundant forwarding, test-only injection, repeated normalization and duplicate finalization guards while preserving command, output and configuration contracts. * test(cli): preserve boundary checks and current provider diagnostics Retain three original implementations required by strict validation and lint contracts. Align the process fixture with the provider diagnostic already shipped by openclaw#159237, without weakening envelope, output, or exit assertions. * test(cli): verify progress completion before command parsing * fix(gateway): publish connection presence after hello delivery Keep pending connection rows in the canonical presence store, but expose them only to their own hello snapshot until delivery succeeds. Preserve disconnect cleanup and explicitly transfer publication ownership when an HTTP watch node replaces a pending WebSocket connection. Force an overlapping presence broadcast in the registered handshake regression and cover the HTTP handoff through its real route. Keep existing handshake assertions and move unchanged fixture helpers into their existing support module to satisfy the line-cap ratchet. * test: stabilize config audit and browser server fixtures
Merged as
ae602ac11e99ddafae39f53963093cab3b5c0eb7from head1eb731364351b6fd8df0ec2fab15051f7d9705ffunder the authorized pre-existing CI failure exception. Merge ancestry and the reconstructed pinned-head tree were verified on main.What Problem This Solves
Maintainer-requested fourth-pass CLI cleanup removes repeated command preparation, argument handling, rendering, and forwarding code left after the earlier CLI sweeps.
User Impact
The CLI simplifications preserve commands, flags, help text, output formats, exit codes, and configuration writes. The follow-up Gateway repair prevents a failed hello from briefly publishing a connected client, while retaining its own hello snapshot and disconnect cleanup. HTTP watch-node replacements also retain visible presence. No configuration migration is required; the Gateway correction is the release-note context.
Why This Change Was Made
This is a below-threshold sweep after full source coverage. The earlier merged passes were #156622, #157748, and #158514. Their file lists were inspected first; unchanged code retains its named runtime or public contract rather than being compressed to meet a line target.
Evidence
Final head
1eb731364351b6fd8df0ec2fab15051f7d9705ffpreserves the reviewed production tree and adds five test-fixture corrections over5a1193657fd16e9d5aa255a6052b969964f8a895. Source tree:fa719f78174fc59a8dc92b67842d36a43254fff6. The fifth rebase remains the final rebase; no additional main integration was performed.ConfigMutationConflictErrorat the unchanged generation fence. Only this three-layout audit table now disables file notifications. Real managed preflight/application, include/root ownership, journals, and every existing assertion remain active.EADDRINUSE, then retains its route assertions. Restoring only the original reservation helpers makes that assertion fail because the competing bind succeeds. The original CI startup diagnostic was suppressed, so this proves and removes the allocation gap without claiming its historical bind error was captured. The standalone production occupied-port/auth tests remain unmocked and passed; startup fetch retries were removed.tbx_01m3m1ach9r8wz6a8sfrxvsvd3(run 36424932156) verified the candidate tree. Both negative controls failed for their intended reasons; their temporary source edits were restored byte-for-byte. The repaired original config shard passed 85 cases (with four existing Windows-only skips) in 254.36 s, the 29-file browser selection passed 739 cases (one existing skip) in 66.18 s, and the two additional browser boundary files passed 13 cases in 34.70 s. Standalone costs usingpnpm test <file> --maxWorkers=1: config audit file 81/81, 153.33 s; browser command file 50/50, 32.19 s.checks-node-compact-small-22, job108978080578,ci-changed-node-test-plan.integration.test.ts > retains every PR-exempt file in hourly and release plans with its canonical owner, timed out at 120,000 ms. The successful PR failure monitor cancelled siblings; cancelled work is not passing coverage. Security-fast, security-sensitive review, and dependency review passed.83fb0337e8bc28ddef4071c78abc35f0b9fa492d; run 36432996490, job108964699374, fails the identical case with the identical 120-second timeout. Test and planner owner bytes match between its main parent3e0def1451b31ce1208c5b3665cd13f19e2ea029and our tested maincbc0f01aa24d0b5a3edf555d4f9ced01aad5f2ba. Our tested merge isf069bc39115afb434259d34abe9077cf8c798413. Inspection found zero PR-changed paths in its 175-file executable import superset or 906 present PR-exempt test paths; this case enumerates those tests without importing/running them. Repository source is also indexed as metadata, so blanket input-byte disjointness is not claimed.git merge-base --is-ancestorconfirms the merge commit on refreshed main. Earlier planner fixes fix(ci): keep PR-exempt ownership proof within its timeout #160408 and fix(ci): prevent leaf-config ownership check timeouts #160458 were already present in both failing runs; the remaining unmatched-source parsing cost is now owned by active draft fix(ci): avoid parsing unmatched test consumer sources #160507 and overlapping fix(ci): reduce PR-exempt ownership check runtime #160517. No duplicate repair or competing landing was started. All identified leases are stopped; native source staging is removed.Fifth rebase candidate:
5a1193657fd16e9d5aa255a6052b969964f8a895, onto809b62cc7e49b9e34720eff64a2170c3d1ae1b54, source treeb70018b9789d9dc754448bc4db63388132e039f2.assertRecoveryCurrentWindows recovery-authority check is retained unchanged alongside the equivalent shared service-guard callback. Net: 547 lines removed, 950 added / 1,497 deleted across 84 files. Earlier conflict resolutions and dropped hunks remain recorded below.assertReliabilityForcedExit. Existing main repairda2efd83b8a689572803d31c740fd700d0f0a907restores that export and is included here. No duplicate fix was added. The coordinator's renewed old-head auto-merge request was retired before this rebase.tbx_01m3kjgp288d94grwg5w44aan6(run 36398343273) passednode scripts/check-changed.mjs --base 809b62cc7e49b9e34720eff64a2170c3d1ae1b54 --head HEAD --timedin 2,410.60 s, plus routed configurations 0–9. SSH then ended with exit 255 before configuration 10 produced a result; this invocation is not represented as wholly successful. Its lease completed and was stopped.tbx_01m3ksxkx9619034k2g93cf32e(run 36411610444), again verifying the candidate SHA and tree. The resumed invocation exited 0; the lease is stopped. Combined first completed results across 17 CLI/direct-importer/owner/boundary configurations: 673 passing files / 12,781 passing tests, with three skipped files and 52 existing skipped tests. This includes import-boundary coverage and all 106 CLI E2E cases. Main CLI: 419.10 s; serial CLI process configuration: 1,459.48 s.tbx_01m3kx735tzwjr3pmrx682e5fj(run 36417333538) passed the candidate build in 377.89 s and the pinned-base build in 347.54 s. 332 before/after help paths matched in exit code, stderr, and text: 325 byte-identical, seven differing only in the exact known build-commit banner. Isolated empty config/state was used; no other normalization or mismatches. The invocation exited 0. The lease is stopped.526f67dc6382bae28cb26231b0813ce755521d80had no changed-path intersection. Fresh main2da0e9a4c85b4976d0c6ac56b3dab57e88f859f6merges cleanly as tree99bf0f36d061614326ade4a8db89ea380d6a839e; its sole intersecting file,server-lifecycle.ts, changes notification scheduling and old timer cleanup in separate hunks. Those incoming changes and this PR's presence callbacks remain intact. No equivalent presence repair was found on main.5a1193657fd16e9d5aa255a6052b969964f8a895and completed with 104 successful jobs, two failing test jobs plus the aggregate gate, 31 fail-fast cancellations, and 20 skips. The run conclusion is cancelled, not passed.checks-node-changed-compact-small-21failed the include-only operation audit case inserver.config-patch.test.tswithConfigMutationConflictError: active config environment changed while preparing write.checks-node-changed-extensions-bundle-13failed browser download fixture startup withECONNREFUSED. Neither failure is currently claimed as qualifying inherited evidence. The original Gateway shard is replaying on owned Blacksmith Testboxtbx_01m3m1ach9r8wz6a8sfrxvsvd3(run 36424932156); no merge has been requested.pnpm test <file> --maxWorkers=1: hello-order 23.807 s (four cases), ws-connection 15.238 s (37), control-ui-build-admission 20.769 s (two), post-connect-health 33.718 s after unchanged helper extraction (63), suspension-admission 16.279 s (11), and system-presence 1.635 s (19). Hosted timings are being extracted from the completed run without treating cancelled work as coverage.Historical fourth rebase:
45a746bab1d0cd1e8cb18bfc397e5dee7a3ac72fontoff8c752d852f5d01da5a8a5e6abb7546c1328e83. All four commits replayed patch-identically; no additional hunks were dropped. The inherited attachment line-cap failure was repaired on main by2e95cdba84c2(#160159), with duplicate-export cleanupbb05e779e2a7cef13417cdc7cd06291627cb2cb0; no duplicate UI fix was added. Its lease is stopped. Gateway review's stale-disconnect and shared-node-callback findings were rejected against unique operator keys, exact-current node unregister, and the HTTP-only callback owner. Independent caller inspection corrected HTTP replacement readiness and a missing mock export. The extracted helpers preserve their bodies and timing. Later complete proof supersedes this round's partial checks.b9cd492ac60fe4cd5924fe6faa3962df9659ee29(fix(tooling): enforce Linux process-tree memory limits #160024); the packaged-worker fixture also has995048d9a9b8c2ca29e0715cf541c51b94154d44(fix(test): prevent Vitest preloads from breaking packaged workers #160069). No duplicate fixture repair is being added.6d684b94eae486bc4cc8ee4d7e2f5847f21d4ae3, repeats all seven checkout mismatches in job 108778486718 and all four database-verifier exit-1 failures in job 108778488172. Unrelated fix: stop worker provisioning effects after host authority closes #159178's current headc9921022529005400c41de6580dfabc99b7948dc, run 36375622410, repeats all 17 missingci-static-step.shplanning failures in job 108781143704. The exact packaged-worker failure was found on an older unrelated head only, so it is not claimed as qualifying current-run proof.4880c84c8d03caf123eb194cbb757b13895c5544, run 36296893094, job 108558354184. However, its import path reaches this PR's changedcore-command-descriptors.tsandsubcli-descriptors.ts; those edits only affect types/comments, but the operator's strict no-overlap exception is not met. Landing remains held for a repair.246e575c929fa43dc13d8cdf65c7fea4faf975e9replayed all three commits patch-identically with no conflicts: all prior simplifications were kept, no additional hunks were dropped. The known fixture repairs are incorporated. The new Gateway fix keeps a connecting row private until hello delivery and forces the overlapping-broadcast race in the retained registered WebSocket test. The deferred-WebSocket regression failed both cases on the original code and passed with the repair; 173 owner/sibling cases passed. Final-path cost runs passed all 136 cases, including the real HTTP handoff, and the HTTP negative control failed as intended when publication readiness was withheld. All 106 CLI E2E cases passed. The first changed-check attempt caught four lines of growth in an already oversized test; its existing backend-client and wait helpers were moved verbatim into the existing support module, preserving every assertion and timeout. Remaining validation is in progress; no final-head pass or merge is claimed yet.Current candidate:
571cc7e95aedfe00facbf564dcb2b2c467b8da6b, rebased onto38dbd361b708a1fd53e123cebc3fda7ffbc7e471. The coordinator's auto-merge request was retired and its absence verified before this rebase.findVerifiedGatewayListenerPidsOnPortSync, whose existing finite/positive/self-PID filtering makes the removed wrapper redundant. The complete call-site cutover retains main's new safeguards.help-exit.process.test.tsis already on main, so it drops out of this branch's diff. The previously retired Tasks/TaskFlow paths remain absent.da6e11cf802afb8946cae58cf60f6eb14a1d914a(fix(android): align Play Store icon with the app #159964), replacing the source-string assertion with an executed candidate-version mismatch fixture. No duplicate repair was added.579e5513568c598c087e334c1e83d94fb2b6de6b, Blacksmith Testboxtbx_01m3jtpgw6vy3hjtzxbdmbtcm3(run 36366849818), Node 24.19.0. The full invocation exited 0.git diff --checkpassed;check-changed --base origin/main --head HEAD --timedpassed in 1,645.77 s; all 17 routed CLI/direct-importer configurations passed: 640 files / 12,310 tests, with three skipped files and 52 existing skipped tests. Import-boundary coverage passed. The serial process configuration passed in 885.33 s; main CLI in 331.75 s.571cc7e95aedfe00facbf564dcb2b2c467b8da6band completed with failures diagnosed in the latest entry above. Auto-merge became enabled externally after the push; this task did not arm it and explicitly retired it before the new repair.Earlier-head evidence below is historical and does not replace this candidate's proof.
Rebase refresh:
0e068d83786921cc374de9518aecbadfc63705dbonto8bfc0ce8e1f982974c92a8177a7726eadb743b88. Rebase only; the coordinator auto-merge request was retired before replacing the head. No merge or re-arm was requested.Kept: all still-equivalent CLI simplifications and both existing follow-up fixes. The descriptor uses the shared
NamedCommandDescriptortype, surviving routes keep shared value-flag parsing, and Gateway mode diagnostics retain identical bytes. Main's Gateway config-read and startup-failure behavior remains intact. The two follow-up commits replayed patch-identically.Dropped: retry/dismiss registration consolidation and list/audit parser simplifications for Tasks/TaskFlow, which main intentionally removed in refactor: remove Tasks and TaskFlow runtime #159179. The Tasks descriptor, registration file, and route exports remain absent. No retired path or test was restored.
Net diff: 697 lines removed, 745 added / 1,442 deleted across 72 files. Production: 617 added / 1,219 deleted (602 removed); tests: 125 / 214 (89 removed); assertion baseline: 3 / 9 (6 removed).
Fresh independent Codex review is scoped-clean through P2. The first diff-only review questioned two removed outer updater checks; supplying the complete custody and executor owners confirmed that termination, killed-process, and unsettled-cleanup rejection still occurs before returning a result. No code change was needed.
Exact source tree
f3a8ba533f33584467fb85a84e5ffa94db8bc978was verified on Blacksmith Testbox.check-changed --base origin/main --head HEAD --timedpassed the early guards, graph boundary, and production typecheck, then failed at unchangedsrc/agents/tools/media-generate-background-retention.test.ts:233(TS2554: the spy omits the worker-owner callback argument). Test and reader blobs match the rebase base exactly. Repair fix(ci): repair stale core test fixtures #159836 owns this defect and has now merged as0b6f02faae371776d8bfdb5b4f3a7696ee50e34b; no duplicate fix was added to this frozen candidate. Command wall: 316.87 s. Check Testbox run. Leasetbx_01m3j2wfef2fnjfyrmrbg3h6jmstopped.Baseline build passed (380.20 s), candidate build passed (406.70 s), and 332 before/after help paths retain the same behavior: 325 captures are byte-identical; the other seven differ only in the expected build commit hash in the cached help banner. All stderr and exit codes match. Each of the seven raw diffs was inspected. Build/help Testbox run, lease
tbx_01m3j4ndszkee1kddac1gkb4q9, stopped. The wrapper returned nonzero because the raw comparator deliberately reported those metadata differences and an earlier selection helper failed; those exits are not reported as fully green commands.Cross-shard CLI/direct-importer validation: 16 configurations passed, covering 632 passing files / 12,587 passing tests, with three skipped files and 52 existing skipped tests. This includes import-boundary selections, the serial CLI process configuration (982 passing tests; 1,047.93 s), and the main CLI configuration (8,430 passing tests; 386.37 s). The source stayed fixed throughout. Earlier Testbox run; outage-recovery Testbox run. Lease
tbx_01m3j5fa979ye115b852yb8m5scompleted after a transport exit 255 during CLI process tests; a fresh owned lease reran that unfinished configuration and the remaining selections. Completed configuration evidence was retained. Recovery/E2E leasetbx_01m3jfqeykv4xtzhn42gwn3tc2is stopped; all task-owned leases are stopped or completed.The eight-file E2E selection completed with 105 passed / one failed:
plugins-cli.clawhub-install.e2e.test.ts, “keeps a valid local install successful when telemetry is unavailable,” returned child exit 0 but then read no persisted install record. The test and examined install/read/cache/telemetry owners are unchanged by this candidate. The identical failure is documented in refactor(cli): reuse environment snapshots in tests #159669's run 36322636530; that PR is an investigation reference, not a known fix. Its equivalent environment-restoration test refactor does not change those production owners. This supports an inherited integration failure, but its mechanism remains unproven. A same-selection replay reproduced the identical failure: again 105 passed / one failed. First E2E command wall: 658.16 s; replay: 601.46 s, including the wrapper-owned E2E build prerequisite. The original failure remains unresolved; no speculative fix was added. Across the selected tests, the first completed results are 12,692 passed / one failed / 52 skipped.git diff --checkalso passed remotely.Discarded proof-harness attempts encountered an overbroad graph/deleted filename filter, a file-list buffer limit, and mismatched assumptions about the router's ordinary/E2E selection shapes. Empty or aborted selections are not counted as passing proof. The final selection contains 643 test files across 17 configurations; the last E2E configuration runs directly through the repository wrapper.
The state-migration plugin-execution refusals owned by fix: state migration leases target a retired database #159757 and published-upgrade WhatsApp Doctor source-identity failure owned by fix(plugins): prevent WhatsApp Doctor failures after updates #159650 remain outside this rebase. Owner states were refreshed after outage recovery: fix: state migration leases target a retired database #159757 remains open and fix(plugins): prevent WhatsApp Doctor failures after updates #159650 is merged. No duplicate repair or published-upgrade rerun was attempted here.
Force-push with an explicit old-head lease succeeded. CI run 36360757192 is attached to exact head
0e068d83786921cc374de9518aecbadfc63705dband was queued at handoff. GitHub reports the PR open and mergeable. This task did not re-arm auto-merge or request a merge. A subsequent remote observation showed auto-merge enabled by another session; that request was left with its owner.Prior-head evidence and campaign history follow; they do not replace the current-head results above.
d760c81b9e7c4d8c4851efce7da124bb6d9e8d53dropped four comment removals already on main. Refreshes through96a91f0e005ef02d95c3249249839ad6c4df64f8, including the filesystem boundary and SQLite worker repairs, are patch-identical. The CLI source tree is unchanged by the last refresh.tbx_01m3gw7r3jnttcqyn4rcv154k2: baseline build passed (412.7 s), candidate build passed (395.7 s), and 571 before/after help invocations matched exactly in stdout, stderr, and exit code (563.6 s). Testbox run. Lease stopped.src/infra/fs-safe-import-boundary.test.ts, the plugin/test-helper boundary siblings, andsrc/flows/doctor-health.legacy-update.test.tsin its infra owner. The remaining CLI config passed 409 files / 8,416 tests; the E2E config passed 8 files / 106 tests. The original process-shard failure is addressed below.node scripts/check-changed.mjs --base 8620e9097726a817be6bd8f9385a14a54e24f89d -- <correction files>passed (1,267.71 s): formatting, every typecheck shard, all dead-export scans, lint, and guards. The earlier full selection passed its non-lint gates and exposed the inherited line-cap failures listed below.pnpm update:compat:checkpassed the published 2026.9.1–2026.9.6 inventory. The final build passed (359.94 s), and the credential-free published-driver upgrade-survivor base cell passed (672.49 s) on Blacksmith Testboxtbx_01m3h8s1x912ps58k12ht74apm(run). Its synced source tree is02406e7486983a0f7aaa44aed81810abf13aca25, identical to pre-rebase head14f265708dda0d286757983f93408a4889a15c7b. The published baseline resolved to 2026.9.6; its installed updater applied the candidate tarball, preserved seeded state and unavailable-plugin config bytes, repaired dependency debris, and passed Gateway health/readiness/status. Installed and candidate manifests match across all 11,193 files. Lease stopped.e8b091921ef03a016985cbb9a55abf0766470773during closeout and is included here.7fd67af9deb31b69efd755b89f07246a591b7cbepassed the fixed worker suite (33 tests), 20 consecutive migration-file runs (23 cases each; 797.11 s total), three original eight-worker shard runs (490 passed / two existing skips per run; 135.69 / 128.18 / 127.83 s), and all import-boundary siblings. Full checks passed (1,602.77 s), build passed (365.25 s), and the compatibility inventory passed (1.27 s) on Blacksmith Testboxtbx_01m3hq1ey26wv5p1p2py1jps07(run), Node 24.21.0, four actual CPUs / 16.6 GB RAM. The shard worker setting matches CI; this Testbox has fewer CPUs than the original CI host. The published 2026.9.6 driver completed package activation, then Doctor failed to load WhatsApp withPlugin source changed while preparing its reload(650.01 s cell wall). This is the exact default/manual upgrade defect owned by fix(plugins): prevent WhatsApp Doctor failures after updates #159650, whose final candidate has matching published-driver proof. Its repair is still open; no duplicate patch or blind rerun was made. This lane's lease was stopped after retaining the failed summary.tbx_01m3hvvc8r30qa44fk1cn00mpf(run); that lease is stopped. Ayaan Zaidi's equivalent test(media): use a decodable PNG in the Windows media tool test #159771 landed first as7969275f362caa4fb5326f0059dbaf1024e459b4, so test(agents): use a valid PNG for Windows media URLs #159770 was closed unmerged. Current-main ancestry and the retained replacement fixture were verified. The next CLI refresh will incorporate that repair.Changed-test wall cost on Testbox using
pnpm test <file> --maxWorkers=1: capability CLI 24.07 s; command-secret targets 15.28 s; config-set mode 1.38 s; lifecycle fallback 1.73 s; Gateway health route 1.78 s; nodes media utilities 1.25 s. The source-wiring guard measured 14.27 s; the corrected process fixture measured 72.39 s. Its existing 29-case subprocess matrix proves actual process exits, output draining, and JSON envelopes; only one expected diagnostic changed. Progress rendering measured 2.13 s (15 tests), and CLI exit behavior measured 19.53 s (203 tests). A negative control removing pre-parse completion fails the strengthened ordering assertion; the original source was restored and its hash verified. These changes retain existing boundary coverage; no real timers, retries, or weakened assertions were added. Hosted case-execution sums from CI run 36313555292, which exposed the progress fixtures corrected above: capability CLI 15.433 s; secret targets 0.860 s; lifecycle fallback 0.018 s; Gateway health route 0.331 s; progress 0.089 s; CLI exit behavior 21.922 s. These sums exclude collection, transformation, startup, and file teardown; whole-file CI wall time was not retained.Fixes found along the way: the process test for an unknown model provider still expected the old generic error after #159237 intentionally added the rejected provider and recovery command. The fixture now checks the current exact diagnostic; its JSON envelope, clean stdout/stderr, ANSI/BEL, and exit-code assertions are retained. The two expected failures were reproduced on clean base
8620e9097726a817be6bd8f9385a14a54e24f89d; the corrected full process file passed all 29 tests (72.39 s). No product behavior or retry policy was changed.Inherited main failures during the first full check: the untouched task-settlement test helper exceeded its line cap (811 counted lines), as did session row projection (701). Their fixes subsequently landed in #159584 and #159473; both are included by the final rebase. No duplicate fixes were added to this lane. The first lease expired before executing a check, and the first review route had expired authentication; both were recovered through their existing owners.
Coverage: all 161 production CLI files over 200 lines, verified against the final CLI head and sorted by original size
src/cli/run-main.tssrc/cli/exec-approvals-cli.tssrc/cli/mcp-cli.tssrc/cli/gateway-cli/run-loop.tssrc/cli/skills-cli.tssrc/cli/gateway-cli/run.tssrc/cli/devices-cli.runtime.tssrc/cli/command-secret-gateway.tssrc/cli/plugins-cli.runtime.tssrc/cli/plugins-authoring-command.tssrc/cli/gateway-cli/register.tssrc/cli/logs-cli.tssrc/cli/command-secret-targets.tssrc/cli/daemon-cli/status.gather.tssrc/cli/update-cli/update-command-run.tssrc/cli/update-cli/update-command-executor.tssrc/cli/update-cli/update-command-post-update.tssrc/cli/update-cli/update-command-execution.tssrc/cli/update-cli/update-command-service-plan.tssrc/cli/update-cli/update-command-service-maintenance.tssrc/cli/update-cli/update-command.tssrc/cli/config-model-validation.tssrc/cli/plugins-update-command.tssrc/cli/daemon-cli/lifecycle-core.tssrc/cli/update-cli/update-command-git.tssrc/cli/daemon-cli/status.print.tssrc/cli/gateway-cli/pre-bootstrap.tssrc/cli/update-cli/shared.tssrc/cli/update-cli/update-command-rollback.tssrc/cli/claws-cli.runtime.tssrc/cli/update-cli/update-command-target.tssrc/cli/cron-cli/shared.tssrc/cli/daemon-cli/lifecycle.tssrc/cli/update-cli/update-command-package.tssrc/cli/update-cli/update-command-service.tssrc/cli/update-cli/update-command-result.tssrc/cli/config-cli-input.tssrc/cli/update-cli/update-command-plugins.tssrc/cli/update-cli/update-command-post-core.tssrc/cli/daemon-cli/install.tssrc/cli/command-catalog.tssrc/cli/completion-runtime.tssrc/cli/config-cli-runner.tssrc/cli/update-cli/update-command-fresh-doctor.tssrc/cli/nodes-cli/register.status.tssrc/cli/capability-cli/model.tssrc/cli/update-cli/update-command-terminal.tssrc/cli/update-cli/update-command-config.tssrc/cli/models-cli.tssrc/cli/daemon-cli/restart-health.tssrc/cli/exec-policy-cli.tssrc/cli/update-cli/update-command-finalize.tssrc/cli/config-cli-path.tssrc/cli/update-cli/update-command-resume.tssrc/cli/capability-cli/tts-runtime.tssrc/cli/completion-cli.tssrc/cli/update-cli/update-finalization-lifecycle.tssrc/cli/program/route-args.tssrc/cli/program/register.status-health-sessions.tssrc/cli/config-cli-validation.tssrc/cli/skills-cli.format.tssrc/cli/argv.tssrc/cli/config-cli.tssrc/cli/plugins-inspect-command.tssrc/cli/update-cli/update-command-service-recovery.tssrc/cli/program/register.onboard.tssrc/cli/ports.tssrc/cli/channels-cli.tssrc/cli/cron-cli/register.cron-edit.tssrc/cli/program/register.maintenance.tssrc/cli/secrets-store-cli.tssrc/cli/update-cli/update-command-convergence.tssrc/cli/update-cli/update-command-service-command.tssrc/cli/update-cli/update-command-verification.tssrc/cli/hooks-cli.tssrc/cli/cron-cli/register.cron-add.tssrc/cli/daemon-cli/restart-health-probe.tssrc/cli/update-cli/status.tssrc/cli/node-cli/daemon.tssrc/cli/secrets-cli.tssrc/cli/update-cli/update-command-readiness.tssrc/cli/capability-cli/image.tssrc/cli/update-cli/update-command-original-service.tssrc/cli/update-cli/update-command-initialization-run.tssrc/cli/update-cli/update-command-migrated.tssrc/cli/update-cli/update-command-handoff.tssrc/cli/startup-trace.tssrc/cli/update-cli/update-command-schema.tssrc/cli/proxy-cli.runtime.tssrc/cli/capability-cli/video.tssrc/cli/directory-cli.tssrc/cli/channel-auth.tssrc/cli/program/register.backup.tssrc/cli/plugins-install-hook-fallback.tssrc/cli/program/config-guard.tssrc/cli/cron-cli/schedule-options.tssrc/cli/update-cli.tssrc/cli/skills-library-cli.tssrc/cli/nodes-camera.tssrc/cli/native-hook-relay-cli.tssrc/cli/exec-policy-diagnostics.tssrc/cli/connect-cli.tssrc/cli/update-cli/update-command-service-publication.tssrc/cli/capability-cli/metadata.tssrc/cli/update-cli/progress.tssrc/cli/gateway-cli/update-successor.tssrc/cli/hooks-cli.format.tssrc/cli/progress.tssrc/cli/nodes-cli/rpc.tssrc/cli/tagline.tssrc/cli/update-cli/update-command-candidate-admission.tssrc/cli/update-cli/update-command-executor-children.tssrc/cli/cron-cli/register.cron-simple.tssrc/cli/run-main-policy.tssrc/cli/nodes-cli/register.camera.tssrc/cli/cron-cli/register.cron-edit-options.tssrc/cli/plugins-cli.tssrc/cli/program/subcli-descriptors.tssrc/cli/update-cli/update-repair-command.tssrc/cli/daemon-cli/start-repair.tssrc/cli/container-target.tssrc/cli/update-cli/update-command-noop.tssrc/cli/daemon-cli/response.tssrc/cli/update-cli/update-command-service-drain.tssrc/cli/dns-cli.tssrc/cli/daemon-cli/restart-health-inspect.tssrc/cli/qr-cli.tssrc/cli/program/register.tasks.tssrc/cli/program/register.agent.tssrc/cli/claws-cli.project.tssrc/cli/session-ref.tssrc/cli/worktrees-cli.tssrc/cli/program/preaction.tssrc/cli/program/register.subclis.tssrc/cli/cron-cli/list-jobs.tssrc/cli/update-cli/update-command-admit.tssrc/cli/resume-cli.runtime.tssrc/cli/daemon-cli/shared.tssrc/cli/claw-banner.tssrc/cli/session-target.tssrc/cli/program/message/helpers.tssrc/cli/update-cli/update-command-dry-run.tssrc/cli/nodes-cli/register.pairing.tssrc/cli/update-cli/update-command-service-env.tssrc/cli/update-cli/update-command-plugins-internals.tssrc/cli/update-cli/update-command-windows-task.tssrc/cli/config-set-input.tssrc/cli/security-cli.tssrc/cli/failure-output.tssrc/cli/capability-cli/shared.tssrc/cli/update-cli/update-command-unwind.tssrc/cli/update-cli/update-command-database-context.tssrc/cli/claws-update-cli.runtime.tssrc/cli/fleet-cli/register.tssrc/cli/attach-cli.tssrc/cli/pairing-cli.tssrc/cli/plugins-feature-scaffold.tssrc/cli/daemon-cli/register-service-commands.tssrc/cli/program/register.migrate.tssrc/cli/update-cli/schema-preflight.tssrc/cli/completion-bash.ts