Repository navigation
test(agents,config,codex): remove low-value tests (batch d084) - #160308
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, 7:46 AM ET / 11:46 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch consolidates and removes tests and test helpers for agent sessions, managed worktrees, configuration, and the Codex plugin, while shrinking related test routing and line baselines. Merge readiness⛔ Blocked before merge - 4 items remain Keep open. This maintainer-authored test audit remains useful, but the reviewed head removes the only direct check that default worktree cleanup reduces 101 live checkouts to 100 while preserving manual worktrees. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw creates managed worktrees for agent runs and later cleans them up using owner protections and a default count limit. The changed suites check those boundaries, alongside agent, config, and Codex behavior, before CI reports results. flowchart LR
A[Agent runs and config] --> B[Runtime owners]
B --> C[Managed worktree cleanup]
C --> D[Worktree boundary tests]
B --> E[Agent and Codex tests]
D --> F[CI results]
E --> F
Before merge
Findings
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the broad test pruning and restore one focused default Do we have a high-confidence way to reproduce the issue? Yes, at source level: the base and current main contain the default 101-to-100 cleanup test, while the introduced patch and verified test merge remove it. No test was executed in this read-only review. Is this the best way to solve the issue? No. The pruning is useful, but retaining one inexpensive service-boundary case is the narrowest way to protect the documented default cleanup behavior. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 659f4b73d8e2. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What 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 (2 earlier review cycles)
|
d33ccee to
5d29c33
Compare
Reduce the embedded subscription suite from 318 to 146 cases and 8135 to 4046 test lines. Consolidate event fixtures and retain receipt, media-trust, lifecycle, phase, and reconciliation regressions. Remove the obsolete max-lines baseline entry. Blacksmith proof: 146 tests passed. Covered statements 7931 -> 7920; branches 6306 -> 6265; functions 1286 -> 1286. Types, dead exports, boundaries, formatting, and changed-file plain lint passed. The broad changed gate hits the pre-existing UI max-lines failure in ui/src/pages/chat/components/chat-attachments.ts (716 > 700); that file is byte-identical to the starting commit.
5d29c33 to
97db6f0
Compare
#160308 removed src/agents/worktrees/service.run-end-cleanup.test.ts, but the managed-worktrees-workboard-lifecycle scenario still listed it in codeRefs, so extensions/qa-lab/src/scenario-catalog.test.ts failed deterministically on main and on every PR touching that shard. The remaining refs (service.ts, the Workboard dispatcher, and the e2e product proof) still cover the scenario.
…up tests #160308 deleted src/agents/worktrees/service.run-end-cleanup.test.ts, which the managed-worktrees-workboard-lifecycle scenario still listed as a codeRef, so extensions/qa-lab/src/scenario-catalog.test.ts failed on main. The surviving run-end cleanup outcome coverage lives in service.test.ts (late claims, stale lifecycle writes) and service.removal-safety.test.ts (dirty retention).
fb55609 (#160308) consolidated run-end cleanup coverage into the surviving service tests but left the deleted file in CI policy watches, the proof inventory, timing metadata, and a QA scenario code reference. The scenario failure was reported in CI run 36427486045, job 108949566158 on #160224: https://github.com/openclaw/openclaw/actions/runs/36427486045/job/108949566158 Before: the catalog test failed with the missing worktree cleanup codeRef (1 failed, 44 passed) in a worktree outside the older parent checkout. A nested worktree falsely passed because the resolver found the parent's old test file. Concurrent commit 3a300c6 repaired the scenario reference; retain that fix and remove the three remaining obsolete script entries. After: catalog 45/45, inventory/timing/node-plan 225/225, and 29 targeted changed-plan cases pass. The complete four-file tooling baseline also passed 550 tests. Scoped oxfmt, oxlint, and git diff --check pass. Independent review reports no actionable P0-P2 findings.
…up tests #160308 deleted src/agents/worktrees/service.run-end-cleanup.test.ts, which the managed-worktrees-workboard-lifecycle scenario still listed as a codeRef, so extensions/qa-lab/src/scenario-catalog.test.ts failed on main. The surviving run-end cleanup outcome coverage lives in service.test.ts (late claims, stale lifecycle writes) and service.removal-safety.test.ts (dirty retention). (cherry picked from commit 3a300c6)
…law#160308) * test(config): deslop t0065 tests * test(agents): deslop t0032 tests * test(worktrees): deslop t0060 tests * test(worktrees): deslop t0061 tests * test(codex): deslop t0051 tests * test(worktrees): deslop t0062 tests * test(agents): deslop t0049 tests * test(codex): deslop t0054 tests * test(agents): deslop t0034 tests Reduce the embedded subscription suite from 318 to 146 cases and 8135 to 4046 test lines. Consolidate event fixtures and retain receipt, media-trust, lifecycle, phase, and reconciliation regressions. Remove the obsolete max-lines baseline entry. Blacksmith proof: 146 tests passed. Covered statements 7931 -> 7920; branches 6306 -> 6265; functions 1286 -> 1286. Types, dead exports, boundaries, formatting, and changed-file plain lint passed. The broad changed gate hits the pre-existing UI max-lines failure in ui/src/pages/chat/components/chat-attachments.ts (716 > 700); that file is byte-identical to the starting commit. * test(config): deslop t0057 tests * test(config): retain node skill validation contracts * test: retain audited boundary coverage in d084
…up tests openclaw#160308 deleted src/agents/worktrees/service.run-end-cleanup.test.ts, which the managed-worktrees-workboard-lifecycle scenario still listed as a codeRef, so extensions/qa-lab/src/scenario-catalog.test.ts failed on main. The surviving run-end cleanup outcome coverage lives in service.test.ts (late claims, stale lifecycle writes) and service.removal-safety.test.ts (dirty retention).
196d5db (openclaw#160308) consolidated run-end cleanup coverage into the surviving service tests but left the deleted file in CI policy watches, the proof inventory, timing metadata, and a QA scenario code reference. The scenario failure was reported in CI run 36427486045, job 108949566158 on openclaw#160224: https://github.com/openclaw/openclaw/actions/runs/36427486045/job/108949566158 Before: the catalog test failed with the missing worktree cleanup codeRef (1 failed, 44 passed) in a worktree outside the older parent checkout. A nested worktree falsely passed because the resolver found the parent's old test file. Concurrent commit f4ed4c2 repaired the scenario reference; retain that fix and remove the three remaining obsolete script entries. After: catalog 45/45, inventory/timing/node-plan 225/225, and 29 targeted changed-plan cases pass. The complete four-file tooling baseline also passed 550 tests. Scoped oxfmt, oxlint, and git diff --check pass. Independent review reports no actionable P0-P2 findings.
…ptures (#159226) * refactor(infra): share filesystem observation policy Centralize polling overrides, guarded source admission and metadata sampling. Bound remote file notifications and join accepted output before shutdown. * refactor: migrate config, skills, memory and dev watchers Use fs-safe invalidations and scope replacement while keeping source selection, settling, reload and indexing policy with each owner. Remove first-party Chokidar, bespoke native transports and duplicate observation tests. Preserve joined application work and watch-limit degradation; isolate manual Gateway writer fixtures from filesystem readiness. Supersedes #158182. Thanks @vincentkoc. Co-authored-by: Vincent Koc <[email protected]> * fix(memory): use host filesystem observation for captured plugins Pair watch with SDK Root admission so captured plugin dependencies cannot split fs-safe's module-local Root registry. Preserve the strong Root check and route existing watcher tests through the host SDK boundary. Keep the eager Skills subscriber snapshot with Array.from and remove the new lint suppression without changing the production suppression allowlist. * fix: preserve fs-safe fallback for legacy polling overrides Treat legacy false, zero and empty polling overrides as a native preference so Bun and installations without the native addon retain working observation. Capture Config polling-recovery eligibility per observer to preserve the explicit override retry limit. Prepare the Skills recovery test through its existing worker owner and load the real snapshot dependency before cases begin. Keep recovery assertions, timeouts and artifact verification unchanged. * test(memory): check resolved observation backend health * fix(plugins): preserve native capture authority and lifetime * test(ci): scope native Doctor proof to its runtime owners * fix(plugins): break capture storage type import cycle * fix(memory): import observation types through host SDK * test(gateway): isolate operation journal fixtures * fix(qa): point worktree lifecycle scenario at surviving run-end cleanup tests #160308 deleted src/agents/worktrees/service.run-end-cleanup.test.ts, which the managed-worktrees-workboard-lifecycle scenario still listed as a codeRef, so extensions/qa-lab/src/scenario-catalog.test.ts failed on main. The surviving run-end cleanup outcome coverage lives in service.test.ts (late claims, stale lifecycle writes) and service.removal-safety.test.ts (dirty retention). (cherry picked from commit 3a300c6) * test: isolate planner contracts and share installer shell * refactor(gateway): schedule remote skill refresh (#160318) ## What Problem This Solves Remote-node skill refresh still kept a private debounce timer and threaded its handle through Gateway startup and shutdown. ## User Impact Skill changes keep the existing 30-second debounce, now owned by the kernel scheduler. Shutdown joins an active refresh and suppresses late broadcasts. Updating needs no operator action or config, storage, or public SDK migration. ## Why This Change Was Made Schedule refresh directly with the existing scheduler. Remove the timer getter/setter, delay option, runtime handle, and redundant close hook. Production **+18/-36/net -18**; tests **+100/-38/net +62**; docs **0**. Production counts use src/** and extensions/** with the work-order test exclusions. ## Evidence Deslop and Codex autoreview completed with no actionable findings through P2. Focused proof passed on blacksmith-testbox lease `tbx_01m3k4y56rf9r63tzs4hck3pek`, [run 36378613468](https://github.com/openclaw/openclaw/actions/runs/36378613468); unchanged source/test hashes were verified in the later proof. Each command used `pnpm test <file> --maxWorkers=1`: | File | Tests | Command wall | |---|---:|---:| | src/gateway/server-startup-early.test.ts | 14 | 14.763 s | | src/gateway/server-close.test.ts | 80 | 23.385 s | | src/gateway/server-startup-lifetime.test.ts | 14 | 37.299 s | The closeout docs PR will carry the complete census and merged-main sleep/shutdown proof; that live proof is still pending. Exact-head `node scripts/check-changed.mjs --base 5362ba0 -- <all 6 changed paths>` passed on `4fafc2add7ceeba82307bc25447af0262785364e`: production typecheck, 25 dependent test type graphs, lint (0 warnings/errors), dead-export scans and boundary guards. Check wall **1610.89 s**. Provider blacksmith-testbox, lease `tbx_01m3khvbn4fa9jb0bhe5qqp3we`, [run 36397188865](https://github.com/openclaw/openclaw/actions/runs/36397188865). The candidate was materialized in a clean detached worktree because native sync retained its hydration HEAD. ## Inherited CI failures and landing evidence Completed exact-head CI [36402003337](https://github.com/openclaw/openclaw/actions/runs/36402003337) has two underlying failures plus its aggregate gate. Both match independent PRs: - `gateway-agent-skill-refresh.e2e.test.ts:304` (called from line192): expected lifecycle count3, actual2. Identical without this cutover on approval [run36401825740/job108861794753](https://github.com/openclaw/openclaw/actions/runs/36401825740/job/108861794753). The unchanged synchronous `src/skills/runtime/refresh-state.ts` producer invokes the test's earlier registered listener directly. This PR changes a separate downstream remote-bin refresh consumer; the failing lifecycle count precedes the debounce/broadcast assertion. - `subagent-completion-blocked.e2e.test.ts:78`, ordinary delivery exhaustion: expected suspended, actual pending. Identical on questions [run36403551682/job108867383832](https://github.com/openclaw/openclaw/actions/runs/36403551682/job/108867383832). Neither PR touches that completion owner. Focused tests and the complete exact-head Testbox gate passed. The maintainer's standing instruction authorizes pinned admin squash over these inherited failures. No CI rerun or weakened assertion was used. The installed wrapper rejects the CLI admin argument shape; the native workflow's protected GraphQL merge route preserves the same squash, message, and expected-head payload used by that CLI operation. (cherry picked from commit df785c0) * test(gateway): adapt skills proof to fs-safe lifecycle * test(skills): normalize Windows observation lookup * test(memory): isolate guarded reconciliation from native hints (cherry picked from commit f07aececc0b5641a00adfd0271c89e7c7162d38d) * test(channels): update Synology context builder inventory Match the selected builder spelling after the Synology inbound route was inlined in #160639. Preserve the existing caller inventory assertion and production behavior. * test(skills): assert subscription renewal during recovery * fix(ci): exchange hybrid parallel groups within the job cap Reuse the existing bounded exchange optimizer for final hybrid consolidation. Preserve group ownership, child worker limits and admission budgets while reducing the fs-safe composition from 80 to 78 rows. Scope exchange by backend so valid Blacksmith layouts and cap-independent plan identity stay stable. * fix(test): retire subagent sweepers before SQLite owners Stop the original subagent registry before non-isolated file cleanup retires its SQLite owners. Join accepted sweeps and cleanup tails while preserving synchronous fixture resets, successor scheduling, and the actor path guard. Await the new reset contract in the concurrency benchmark too. Baseline controls demonstrate an old registry tick recreating a retired shared-state owner and premature settlement of three in-flight retirements. The receiving candidate passes 102 owning/sibling cases, including the 17-case nested fixture (16 passed, one expected skip). The benchmark with eight child sessions also passes. The owning run took 156.42 seconds. Types, lint, formatting, export scans, and repository guards were qualified. The exact historical hosted timer schedule remains unobserved. * test(ci): isolate worker boundary fixtures from prebuilt mode Keep synthetic historical runner fixtures in their explicit no-dist mode so an inherited CI prebuilt flag cannot enter package preparation before the worker-owner boundary. Preserve all six fixture modes and their assertions. * test(ci): align runner fixture with canonical main --------- Co-authored-by: Vincent Koc <[email protected]>
…ptures (openclaw#159226) * refactor(infra): share filesystem observation policy Centralize polling overrides, guarded source admission and metadata sampling. Bound remote file notifications and join accepted output before shutdown. * refactor: migrate config, skills, memory and dev watchers Use fs-safe invalidations and scope replacement while keeping source selection, settling, reload and indexing policy with each owner. Remove first-party Chokidar, bespoke native transports and duplicate observation tests. Preserve joined application work and watch-limit degradation; isolate manual Gateway writer fixtures from filesystem readiness. Supersedes openclaw#158182. Thanks @vincentkoc. Co-authored-by: Vincent Koc <[email protected]> * fix(memory): use host filesystem observation for captured plugins Pair watch with SDK Root admission so captured plugin dependencies cannot split fs-safe's module-local Root registry. Preserve the strong Root check and route existing watcher tests through the host SDK boundary. Keep the eager Skills subscriber snapshot with Array.from and remove the new lint suppression without changing the production suppression allowlist. * fix: preserve fs-safe fallback for legacy polling overrides Treat legacy false, zero and empty polling overrides as a native preference so Bun and installations without the native addon retain working observation. Capture Config polling-recovery eligibility per observer to preserve the explicit override retry limit. Prepare the Skills recovery test through its existing worker owner and load the real snapshot dependency before cases begin. Keep recovery assertions, timeouts and artifact verification unchanged. * test(memory): check resolved observation backend health * fix(plugins): preserve native capture authority and lifetime * test(ci): scope native Doctor proof to its runtime owners * fix(plugins): break capture storage type import cycle * fix(memory): import observation types through host SDK * test(gateway): isolate operation journal fixtures * fix(qa): point worktree lifecycle scenario at surviving run-end cleanup tests openclaw#160308 deleted src/agents/worktrees/service.run-end-cleanup.test.ts, which the managed-worktrees-workboard-lifecycle scenario still listed as a codeRef, so extensions/qa-lab/src/scenario-catalog.test.ts failed on main. The surviving run-end cleanup outcome coverage lives in service.test.ts (late claims, stale lifecycle writes) and service.removal-safety.test.ts (dirty retention). (cherry picked from commit f4ed4c2) * test: isolate planner contracts and share installer shell * refactor(gateway): schedule remote skill refresh (openclaw#160318) ## What Problem This Solves Remote-node skill refresh still kept a private debounce timer and threaded its handle through Gateway startup and shutdown. ## User Impact Skill changes keep the existing 30-second debounce, now owned by the kernel scheduler. Shutdown joins an active refresh and suppresses late broadcasts. Updating needs no operator action or config, storage, or public SDK migration. ## Why This Change Was Made Schedule refresh directly with the existing scheduler. Remove the timer getter/setter, delay option, runtime handle, and redundant close hook. Production **+18/-36/net -18**; tests **+100/-38/net +62**; docs **0**. Production counts use src/** and extensions/** with the work-order test exclusions. ## Evidence Deslop and Codex autoreview completed with no actionable findings through P2. Focused proof passed on blacksmith-testbox lease `tbx_01m3k4y56rf9r63tzs4hck3pek`, [run 36378613468](https://github.com/openclaw/openclaw/actions/runs/36378613468); unchanged source/test hashes were verified in the later proof. Each command used `pnpm test <file> --maxWorkers=1`: | File | Tests | Command wall | |---|---:|---:| | src/gateway/server-startup-early.test.ts | 14 | 14.763 s | | src/gateway/server-close.test.ts | 80 | 23.385 s | | src/gateway/server-startup-lifetime.test.ts | 14 | 37.299 s | The closeout docs PR will carry the complete census and merged-main sleep/shutdown proof; that live proof is still pending. Exact-head `node scripts/check-changed.mjs --base 9cd18e6 -- <all 6 changed paths>` passed on `4fafc2add7ceeba82307bc25447af0262785364e`: production typecheck, 25 dependent test type graphs, lint (0 warnings/errors), dead-export scans and boundary guards. Check wall **1610.89 s**. Provider blacksmith-testbox, lease `tbx_01m3khvbn4fa9jb0bhe5qqp3we`, [run 36397188865](https://github.com/openclaw/openclaw/actions/runs/36397188865). The candidate was materialized in a clean detached worktree because native sync retained its hydration HEAD. ## Inherited CI failures and landing evidence Completed exact-head CI [36402003337](https://github.com/openclaw/openclaw/actions/runs/36402003337) has two underlying failures plus its aggregate gate. Both match independent PRs: - `gateway-agent-skill-refresh.e2e.test.ts:304` (called from line192): expected lifecycle count3, actual2. Identical without this cutover on approval [run36401825740/job108861794753](https://github.com/openclaw/openclaw/actions/runs/36401825740/job/108861794753). The unchanged synchronous `src/skills/runtime/refresh-state.ts` producer invokes the test's earlier registered listener directly. This PR changes a separate downstream remote-bin refresh consumer; the failing lifecycle count precedes the debounce/broadcast assertion. - `subagent-completion-blocked.e2e.test.ts:78`, ordinary delivery exhaustion: expected suspended, actual pending. Identical on questions [run36403551682/job108867383832](https://github.com/openclaw/openclaw/actions/runs/36403551682/job/108867383832). Neither PR touches that completion owner. Focused tests and the complete exact-head Testbox gate passed. The maintainer's standing instruction authorizes pinned admin squash over these inherited failures. No CI rerun or weakened assertion was used. The installed wrapper rejects the CLI admin argument shape; the native workflow's protected GraphQL merge route preserves the same squash, message, and expected-head payload used by that CLI operation. (cherry picked from commit fdde317) * test(gateway): adapt skills proof to fs-safe lifecycle * test(skills): normalize Windows observation lookup * test(memory): isolate guarded reconciliation from native hints (cherry picked from commit f07aececc0b5641a00adfd0271c89e7c7162d38d) * test(channels): update Synology context builder inventory Match the selected builder spelling after the Synology inbound route was inlined in openclaw#160639. Preserve the existing caller inventory assertion and production behavior. * test(skills): assert subscription renewal during recovery * fix(ci): exchange hybrid parallel groups within the job cap Reuse the existing bounded exchange optimizer for final hybrid consolidation. Preserve group ownership, child worker limits and admission budgets while reducing the fs-safe composition from 80 to 78 rows. Scope exchange by backend so valid Blacksmith layouts and cap-independent plan identity stay stable. * fix(test): retire subagent sweepers before SQLite owners Stop the original subagent registry before non-isolated file cleanup retires its SQLite owners. Join accepted sweeps and cleanup tails while preserving synchronous fixture resets, successor scheduling, and the actor path guard. Await the new reset contract in the concurrency benchmark too. Baseline controls demonstrate an old registry tick recreating a retired shared-state owner and premature settlement of three in-flight retirements. The receiving candidate passes 102 owning/sibling cases, including the 17-case nested fixture (16 passed, one expected skip). The benchmark with eight child sessions also passes. The owning run took 156.42 seconds. Types, lint, formatting, export scans, and repository guards were qualified. The exact historical hosted timer schedule remains unobserved. * test(ci): isolate worker boundary fixtures from prebuilt mode Keep synthetic historical runner fixtures in their explicit no-dist mode so an inherited CI prebuilt flag cannot enter package preparation before the worker-owner boundary. Preserve all six fixture modes and their assertions. * test(ci): align runner fixture with canonical main --------- Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
This maintainer-authorized test-audit batch removes repetitive test matrices, duplicate replays, and unused fixtures from config, agent, managed-worktree, and Codex plugin tests.
User Impact
No production source or user-visible behavior changes. Distinct privacy, configuration, authority, lifecycle, and recovery contracts remain covered.
Why This Change Was Made
Replay all ten d084 campaign commits onto current main, consolidate equivalent scenarios, remove dead test support, and shrink three max-lines entries plus four obsolete test-routing entries. No whole commit was skipped.
Preserve main's entire source-reply-suppression test file where the campaign depended on a conflicting prerequisite assertion repair, and preserve node-skills config validation because no equivalent keeper was found. The Codex context-engine conflict keeps main's new shared fixture and history-tail, prefix-exclusion, and size-bound assertions. The final rebase includes #160349, which routes the unrelated hot-reload fixture through its correct database-worker owner.
Independent review retained ten specific protections: commentary opt-out through terminal flush, post-hook MCP diagnostics, independent redaction metadata, explicit tool-history inclusion, setup-script opt-out, exact retained-source identity, destructive-policy schema validation, browser network/bind isolation, restored Doctor hash, and pruning opt-out. Other findings were rejected only after locating concrete owner tests or checking the actual protocol/fixture contract. The repair also removes an unused test-only helper and an unnecessary default reported by hosted CI.
Final split: production +0/-0; tests +7,387/-23,927 (net -16,540); test support +97/-258 (net -161); baseline/routing +0/-7. Overall -16,708 LOC. Direct test declarations 1,264 → 822 (-442); table rows and helper-registered cases are not expanded.
No changed path matches current CODEOWNERS rules. The operator-approved campaign workflow uses exact-head squash auto-merge with hosted CI as the merge gate.
Evidence
node_modules/.bin/oxfmt --write <changed paths>,git diff --check, and plainnode_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS paths>passed. The final staged repair delta received a clean P0–P2 autoreview after the complete PR review and finding-by-finding owner-test verification.OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <102 changed paths>passed its preceding guards and reached the core TypeScript graph boundary, then failed on ui-other: 721 test roots exceeds 720. The same exactnode --import ./scripts/tsx.mjs scripts/check-tsgo-core-boundary.mtscommand failed identically, exit 1, in a freshly installed clean detached checkout of plain main6dd3011e9f56118d09aa562ee49d7fbcd75e99bcon the same Testbox. The diff has no UI files or TypeScript graph guard/config changes. Typecheck and later checks were not reached by this changed-file invocation; hosted CI remains the merge gate.Review findings rejected after checking stronger existing evidence
The protocol literal is accepted by the actual notification JSON type; retained native-app tests take the same forced-disabled policy path. Passive settlement timeout remains covered in
run-attempt.turn-watches.test.ts; untagged terminal suppression remains in the message lifecycle tests; both approval activity projections remain in the retained tools test. Completion-disabled resume is enforced at the Gateway owner, active-owner protection is exercised through real GC CLI/service tests, and hostile agent IDs are covered at the canonical validator plus the surviving integration gate. The removed wait/delete assertion was implemented by its mock, while real registry wait-to-cleanup wiring remains covered. Direct and runtime same-byte rollback fencing share the exact captured-identity closure and retain owner-level mutation tests. Ten substantive boundary findings were addressed, including narrower metadata/positive-option gaps where the broader claim was already covered.Per-shard files, final LOC and declaration deltas, and original coverage
Counts below describe the final replay against
6dd3011e9f56. Coverage quotes are historical in-shard measurements; combined current-main coverage was not remeasured. Static declarations count outermost TypeScriptit/testcalls without expanding table rows or helper registrations.t0065 —
f59bd86b6fd6Final touched files:
src/config/io.write-reread.test.tst0032 —
d4e8f7a232f8Final touched files:
src/agents/embedded-agent-subscribe.compaction-test-helpers.tssrc/agents/embedded-agent-subscribe.handlers.compaction.test.tssrc/agents/embedded-agent-subscribe.handlers.lifecycle.test.tssrc/agents/embedded-agent-subscribe.handlers.messages.lifecycle.test.tssrc/agents/embedded-agent-subscribe.handlers.messages.test-helpers.tssrc/agents/embedded-agent-subscribe.handlers.messages.update-commentary.test.tssrc/agents/embedded-agent-subscribe.handlers.messages.update-source.test.tssrc/agents/embedded-agent-subscribe.handlers.messages.update-stream-items.test.tssrc/agents/embedded-agent-subscribe.handlers.messages.update-stream-phases.test.tssrc/agents/embedded-agent-subscribe.handlers.tools.media.test.tssrc/agents/embedded-agent-subscribe.handlers.tools.progress.test-support.tssrc/agents/embedded-agent-subscribe.handlers.tools.test.tssrc/agents/embedded-agent-subscribe.lifecycle-billing-error.test.tst0060 —
91a68d5edc05Final touched files:
src/agents/worktrees/service.acceleration.test.tssrc/agents/worktrees/service.canonical-paths.test.tssrc/agents/worktrees/service.capacity.test.tssrc/agents/worktrees/service.configured-root.test.tssrc/agents/worktrees/service.diagnostics.test.tssrc/agents/worktrees/service.gc-cli.test.tssrc/agents/worktrees/service.gc.test.tssrc/agents/worktrees/service.hooks.test.tst0061 —
957ed218a13ccovered statements 2723 -> 2724 (+1)
branches 1456 -> 1456 (0)
functions 445 -> 445 (0)
Final touched files:
src/agents/worktrees/service.input-files.test.tssrc/agents/worktrees/service.naming.test.tssrc/agents/worktrees/service.orphans.test.tssrc/agents/worktrees/service.profiles.test.tssrc/agents/worktrees/service.provisioned.test.tssrc/agents/worktrees/service.removal-recovery.test.tssrc/agents/worktrees/service.removal-recovery.windows.test.tssrc/agents/worktrees/service.removal-safety.test.tssrc/agents/worktrees/service.remove-lease.test.tssrc/agents/worktrees/service.restore-source.test.tssrc/agents/worktrees/service.retire-snapshot.test.tstest/vitest/vitest.database-worker-core-paths.mjstest/vitest/vitest.database-worker-core-paths.mjs.t0051 —
725db433315ccovered statements 9695 -> 9667 (-28);
branches 7333 -> 7289 (-44);
functions 1833 -> 1823 (-10)
Final touched files:
config/max-lines-baseline.txtextensions/codex/src/app-server/run-attempt.activation.test.tsextensions/codex/src/app-server/run-attempt.agent-end-context.test.tsextensions/codex/src/app-server/run-attempt.auth-context.test.tsextensions/codex/src/app-server/run-attempt.bounded-continuity.test.tsextensions/codex/src/app-server/run-attempt.channel-tool-progress.test.tsextensions/codex/src/app-server/run-attempt.checkpoint.test.tsextensions/codex/src/app-server/run-attempt.compaction-closeout.test.tsextensions/codex/src/app-server/run-attempt.computer-use.test.tsextensions/codex/src/app-server/run-attempt.configured-mcp-authority.test.tsextensions/codex/src/app-server/run-attempt.configured-mcp.test-support.tsextensions/codex/src/app-server/run-attempt.configured-mcp.test.tsextensions/codex/src/app-server/run-attempt.context-engine-overflow.test.tsextensions/codex/src/app-server/run-attempt.context-engine.test.tsextensions/codex/src/app-server/run-attempt-test-harness.tsconfig/max-lines-baseline.txt.t0062 —
4035b1599de3covered statements 1993 -> 1987 (-6)
branches 1005 -> 1000 (-5)
functions 344 -> 341 (-3)
Final touched files:
test/vitest/vitest.database-worker-core-paths.mjssrc/agents/worktrees/service.run-end-cleanup.test.tssrc/agents/worktrees/service.snapshot-index.test.tssrc/agents/worktrees/service.source-only-filters.test.tssrc/agents/worktrees/service.sparse-isolation.test.tssrc/agents/worktrees/service.stale-probe.test.tssrc/agents/worktrees/service.submodules.test.tssrc/agents/worktrees/service.test.tstest/vitest/vitest.database-worker-core-paths.mjs.t0049 —
1c43b0a61ba7Final touched files:
src/agents/openclaw-tools.session-status.gateway-model.test.tssrc/agents/openclaw-tools.session-status.model-policy.test.tssrc/agents/openclaw-tools.session-status.test.tssrc/agents/openclaw-tools.sessions-participants.test-support.tssrc/agents/openclaw-tools.sessions-resume.test-support.tssrc/agents/openclaw-tools.sessions-send-child-coordination.test.tssrc/agents/openclaw-tools.sessions-steering.test.tssrc/agents/openclaw-tools.sessions-timeout.test-support.tssrc/agents/openclaw-tools.sessions-visibility.test.tssrc/agents/openclaw-tools.sessions.test.tssrc/agents/openclaw-tools.subagents.scope.test.tssrc/agents/openclaw-tools.subagents.sessions-spawn.allowlist.test.tssrc/agents/openclaw-tools.subagents.sessions-spawn.lifecycle.test.tssrc/agents/openclaw-tools.subagents.sessions-spawn.plan.test.tssrc/agents/openclaw-tools.swarm.test.tssrc/agents/tools/sessions-history-tool.test.tst0054 —
a6348ab102aacovered statements 12302 -> 12209 (-93);
branches 9861 -> 9778 (-83);
functions 2360 -> 2345 (-15)
Final touched files:
config/max-lines-baseline.txtextensions/codex/src/app-server/run-attempt.settled-finalization.test-support.tsextensions/codex/src/app-server/run-attempt.steering-authority.test.tsextensions/codex/src/app-server/run-attempt.steering-media.test.tsextensions/codex/src/app-server/run-attempt.steering.test.tsextensions/codex/src/app-server/run-attempt.test.tsextensions/codex/src/app-server/run-attempt.turn-watches.test.tsextensions/codex/src/app-server/run-attempt.usage-limits.test.tsextensions/codex/src/app-server/run-attempt.vision-tools.test.tsconfig/max-lines-baseline.txt.t0034 —
352675cb5f69Final touched files:
config/max-lines-baseline.txtsrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.block-reply-flushing.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.chunking-fences.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.compaction-and-tool-summaries.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.final-answer-delivery.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.final-tag-streaming.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.reasoning-delivery.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.subscribeembeddedagentsession.deferred-progress.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.subscribeembeddedagentsession.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.text-end-reconciliation.test.tssrc/agents/embedded-agent-subscribe.tool-result-ordering.test.tsconfig/max-lines-baseline.txt.t0057 —
4fd44e8efdc0covered statements 2736 -> 2730 (-6); branches 1668 -> 1660 (-8); functions 484 -> 481 (-3)
Final touched files:
src/config/config.legacy-config-detection.accepts-imessage-dmpolicy.test.tssrc/config/config.legacy-config-detection.rejects-routing-allowfrom.test.tssrc/config/config.legacy-config-provider-shapes.test.tssrc/config/config.meta-timestamp-coercion.test.tssrc/config/config.model-ref-validation.test.tssrc/config/config.multi-agent-agentdir-validation.test.tssrc/config/config.nix-integration-u3-u5-u9.test.tssrc/config/config.node-agent-runs.test.tssrc/config/config.plugin-validation.test.tssrc/config/config.pruning-defaults.test.tssrc/config/config.sandbox-docker.test.tssrc/config/legacy-config-detection.test-support.tsMain’s source-reply-suppression and node-skills validation files are retained unchanged. Review repairs in the canonical sessions-history tests are attributed to t0049, and dead test-harness cleanup to t0051. Shared baseline/routing deletions total seven lines and are counted once.