Repository navigation
test(gateway, infra, ui): remove low-value tests (batch d510) - #183194
Conversation
Share repeated request fixtures and assertions without dropping distinct authority, lifecycle, or persistence checks. Retain persisted-roster Claw plan/apply cases instead of replaying their enabled-roster variants. Claude CLI projection remains covered by the prepared-owner registry table, including availability. Usage rollup invalidation remains covered by the population-sharing test through the same revision-aware cache owner. UI reconnect target pinning and revocation remain in the original owner turn; retain the subsequent-owner transition. CI-only campaign: plain oxlint, oxfmt and diff checks passed; no test or coverage runs. Shard LOC 5565 to 5470; static declarations 97 to 95 and expanded cases 169 to 165. Short of 25 percent: remaining suites protect distinct auth, cleanup, sandbox, storage and lifecycle behavior.
Remove six auth control-plane cases already covered by users-auth-connect.control-plane.test.ts, including FIFO selection, forbidden callers, explicit admin identity, credential linking, and disclosure revalidation. Keep the narrower provider harness rather than broadening its identity mocks to reuse the control-plane helper. Keep plugin panel delivery in server-plugins.panels.test.ts. Keep metadata handoff and normalization at prepared-model-runtime.metadata-handoff.test.ts and model-ref-shared.test.ts, with Gateway generation tests retained. Alias path precedence and disposal ordering remain in user-profile-list.resident.test.ts and database resource tests; Gateway fanout and root replacement remain here. Consolidate cron admission and revocation setup while checking unchanged persistence after each method. Share usage visibility and creator fixtures without dropping role isolation or hidden-spend checks. Retain late-cancellation progress completion as the stronger completion case. CI-only: oxfmt, plain oxlint and diff-check passed; no tests/builds/coverage run. Original shard 5565 to 4940 lines (11.2 percent); this follow-up removes 530 lines. The 25 percent target remains unmet because remaining proof protects distinct authority, lifecycle, persistence and execution behavior.
Infer the cron policy fixture API from its constructor and reuse canonical catalog auth, model and plugin fixtures. Preserve all test cases, per-method persistence checks, captured configuration semantics and callback teardown ordering. Third pass inspected all five reduction moves and existing owner proof. Remaining provider, authority, lifecycle and persistence cases have distinct coverage; do not broaden mocks or change event config ownership to reach a line target. Original shard 5565 to 4923 lines (11.5 percent), still short of the requested 25 percent. No files deleted. CI-only validation: plain oxlint, oxfmt and git diff --check passed; no tests, builds or coverage runs.
Remove the duplicated vector/scorer layer from the KNN subprocess suite; manager-search-vector.test.ts retains cancellation, signed-rowid cursors, aliases, scoring, snapshot payloads, snippet bounds and KNN cap coverage. Keep subprocess-specific lifecycle and transport proofs. Retain scheduler yielding in the identically named manager-sync-yield.test.ts case. Consolidate embedding fixtures and database publication setup, remove duplicate auto-selection cases and the duplicate holdMemoryTestOperation definition. CI-only: formatting, plain oxlint and diff checks pass; runtime and coverage checks deferred to hosted CI.
Remove duplicate presence cases already covered by the same-name tests in server-request-context.presence.test.ts. Reuse the existing committed transcript publication registrar and consolidate scoped fixtures without dropping approval, privacy, durability or lifecycle assertions. CI-only: oxfmt, plain oxlint and diff checks pass. No tests or coverage run. Shard LOC 6027 -> 5451 (9.6%); further reduction would remove distinct boundary coverage.
Share Web Push preparation and terminal outcome tables without losing authority, expiry, privacy or receipt assertions. Reuse existing SSE and subscription fixtures, consolidate publication signals and trim internal call-shape restatements. Group deletion remains covered by nonempty-drop, interrupted-retirement and idempotent deletion cases plus server.sessions.store-rpc.test.ts chat organization. Async prepared-consumer rejection remains in session-event-prepared-row.test.ts; released-view guards remain in the repository-description case. CI-only: formatting, plain oxlint and diff checks passed; no tests or coverage run. Additional 192-line reduction; original shard 6027 -> 5259 (12.7%). Remaining distinct authority, durability and lifecycle paths prevent a safe 25% cut.
Table the four session-create hook routing branches, including omitted hook defaults and both main-scope dispositions. Share held decision-effect and broadcast fixtures; retain no-chat-handler transcript custody separately from handler-backed publication. Move greatest persisted group-position allocation proof into the real-worker alias/lifecycle test; repeated registration remains in the committed catalog publication case. Remove the mocked kernel-only SQL-shape layer. Keep current, unbound and missing-role-policy push targets together; retained preparation and terminal policy cases prove downgrade fences. CI-only static gates passed: oxfmt, plain oxlint, git diff --check. No tests, coverage or builds run. Additional 125 lines removed; original shard 6027 -> 5134 (14.8%). Distinct authority, durability, private-memory and lifecycle paths prevent the requested 25% cut under the current retention bar.
Consolidate catalog fixtures, identity migration database and result assertions, and repeated rollback completion. Preserve every existing behavioral scenario; split unsafe identity inputs into independently cleaned-up table cases. CI-only audit: oxlint, oxfmt, and diff-check passed. Test/support LOC 5473 to 5354; 125 declarations retained. Further cuts would remove distinct security, durability, or lifecycle proof. No tests or coverage run locally.
Collapse handoff input cross-products to branch representatives, drop duplicate recovery verdict replay, remove fixture-state inventories, and minimize pass-through security responses. Keep snapshot byte/WAL independence in sqlite-private-snapshot-fork.test.ts; native timeout cleanup in sqlite-readonly-location.cancellation.test.ts; allocation diagnostics in sqlite-readonly-location.test.ts. Retain IPC custody and startup errors here. Keep late Git refusal in update-runner-git-cleanup.test.ts, source-change refusal in retained rollback interleavings, runtime metadata in update-runner-git-candidate.test.ts, and bounded state progress/output in update-candidate-state.diagnostics.test.ts and update-candidate-state.budget.test.ts. Archive traversal and unchanged-byte cases retain the observable contracts after removing EXPLAIN and timing replay. CI-only: no test or coverage runs. Plain oxlint, oxfmt and diff-check pass. Second pass 5354 to 4962 lines; original 5473 to 4962 (9.3 percent). No whole file was fully redundant; distinct authority, durability and lifecycle cases retained.
Share identity, blob, inspection and Git activation fixtures. Remove copied metadata and diagnostic inventories, redundant process payload assertions and public API pass-through fixture data. Keep private publication, no-write-lock, cleanup-stage and authority boundaries. The held pre-schema crash case retains ordinary-reader publication proof. Archive convergence plus session-accessor.sqlite-archive-artifact.test.ts retain publication byte/retry proof. Lifecycle tests retain rollback verification projection while result tests retain terminal outcome and downtime. CI-only static gates: plain oxlint, oxfmt and diff-check passed; no test/build/coverage commands. This pass 4962 to 4723 lines; original 5473 to 4723. No files deleted.
Remove replay duplicates retained in images.replay.test.ts, images.media-refs.test.ts, and preemptive-compaction.replay.test.ts. Consolidate admission and settled-tool fixtures without dropping their lifecycle or authority assertions.
Replace repeated request and settlement setup with branch tables and shared fixtures. Reduce compaction ownership replays to the Responses ownership, explicit enable, memory trigger, and Anthropic pass-through decisions; Anthropic direct/proxy enable-disable remains in the transport preparation test. Keep credential, authority, lifecycle ordering, and recovery assertions.
Remove the byte-identical managed npm peer-repair tests and their local helpers; npm-managed-root-peer-repair.test.ts retains all five cases, including active-host preservation and work deadlines. Keep immediate async listener rejection coverage in the stronger node-duplex drain-failure case, carrying forward closed-channel and single-delivery assertions. Retain separate buffered rejection coverage. Share repeated worker, shell probe, pnpm shared-store, and framing fixtures without changing production code. CI-only validation: oxfmt, git diff --check, and plain oxlint passed. No tests, coverage, or builds run. Shard reduction is below 25%; retain distinct authority, transaction recovery, migration, accounting, and lifecycle checks.
Share native update layouts, defaults, and fixture lifetime; keep every rollback and authority interleaving. Consolidate shell module loading and applied-key lifecycle checks, worker round trips, and broker result assertions. Move framing readiness, empty-message, and heartbeat assertions into the bidirectional transfer flow. Buffered drain proves ordered buffered delivery; exact-limit delivery proves acceptance above the pending-byte budget. Retain the multi-fragment concurrent-send path. Remove resolved-version helper replays covered by install.npm-spec.test.ts: preserves an existing npm plugin by resolving update metadata to a compatible version. Keep install safety argv exact. Drop pnpm helper inventories covered by retained invoking-project resolution and package-update-steps.pnpm11-guard.test.ts grouped-install refusal. CI-only: plain oxlint, oxfmt, and diff checks passed; no tests or builds run. Remaining distinct credential, recovery, FIFO, usage accounting, and native-lifecycle behavior prevents a defensible 25 percent shard reduction.
Represent all eight native rollback cases by one scenario discriminant instead of three correlated fields. Share native error and directory-entry fixtures without changing rollback assertions. Share the runner for all seven MCP OAuth source rejection modes, retaining source, receipt, and canonical-state checks. Compare the complete imported credential fixture minus retired state. Share the three npm override branches and compact repeated lockfile fixtures. CI-only proof: oxfmt, plain oxlint, and git diff --check pass. No tests or builds run. This pass saves 50 lines; the shard remains below the 25 percent reduction target because remaining native lifecycle, FIFO, authority, accounting, credential and recovery behaviors lack equivalent retained proof.
Consolidate staged-read cleanup observation, runtime invocation setup, retention cancellation setup, and durable container-state assertions without dropping their boundary checks. Remove the duplicated drained-forward close case: "waits out a %i-byte forward instead of the short close acknowledgement" retains payload delivery and the no-short-timer branch; "settles after the target closes before drain" retains Duplex teardown and drain-listener cleanup, including the carried target and WebSocket teardown assertions. CI-only shard: formatting, plain oxlint, and diff checks pass. Runtime and coverage verification are deferred to hosted CI. Reduction is 88 of 5160 lines (1.7%), below the 25% target; the remaining cases protect distinct authority, persistence, recovery, platform, or lifecycle behavior.
Remove the private turn-kernel SQL-count layer; durable claim/finish receipt and timestamp assertions now live in the real cross-store serialization case. Merge container startup assertions into the existing isolated launch lifecycle and replace fake-engine SQLite trace polling with direct blocked-removal receipt assertions. Exact identity-before-dispatch and no-dispatch-on-journal-failure checks remain. Keep Windows helper reuse and stale nonce proof in node-worker-workspace-quiescence.windows.test.ts (retains the Windows quiescence helper). Placement claim protection remains covered by node-worker-prepared-workspace.test.ts (retains active bindings and leaves a permanent tombstone after retirement) and the retained in-flight generation command test. Startup retention now shares the bounded backlog lifecycle. Snapshot journal-mode and full-row inventories remain owned by sqlite-snapshot.test.ts. Consolidate config snapshot transitions, cleanup-owner retry rows and stream harness disposal. Preserve candidate CLI/preflight selection, Bun global/trusted installation flags, authority, source-state isolation and cleanup ordering. CI-only: plain oxlint, oxfmt and diff-check pass; no runtime tests or coverage run. Additional cut 253 lines; original shard 5160 to 4819 (-6.6%), still below the 25% target.
Unify fake-container option decoding and locked state transitions while preserving real subprocess execution and removal/startup holds. Remove unused daemon event metadata and the unused version command; all fixture consumers supply a resolved container engine. Use scoped skill-cache lifecycle setup instead of a callback fixture transport, retaining exact PATH restoration and pending-operation teardown. Exercise upload followed by download in one manifest-retention lifecycle; both transfer branches still run and each retention transition remains asserted. CI-only: plain oxlint, oxfmt and diff checks pass; no tests or coverage run. This additional cut removes 45 lines. Original shard 5160 to 4774 (-7.5%); the 25% target remains unmet rather than removing distinct authority, persistence, transport or lifecycle proof.
Consolidate repeated fixtures while retaining authority, durability, replay and lifecycle assertions. Keep header identity fallback in the existing payload matrix; the large-metadata publication case covers duplicate catalogue receipt proof. CI-only validation: formatting, plain oxlint and diff-check; runtime proof deferred to hosted CI.
Keep activity summary coverage in session-actor-pathalias.test.ts and the nonactor content/topology invalidation case in session-actor-transcript-residency.test.ts. Keep normal fenced-context and parent advancement coverage in session-actor-transcript-replica.test.ts; retain oversized-input and resident-eviction integration checks here. Remove duplicate worker reply-shape/SQL instrumentation while retaining authority, rollback and publication assertions. CI-only: plain oxlint, oxfmt and diff-check passed; no tests run.
Remove low-level maintenance finalization duplication covered by maintenance-worker's committed-removal publication test and no-op duplication covered by maintenance-read/kick. Consolidate resident anchors/accounting into the bounded-context scenario; bookkeeping, rewrite, reset, exact accounting and prompt persistence remain in transcript-residency, entry-residency, pathalias, gateway transcript-reader and user-turn-transcript owner tests. Consolidate cold cohort facts into its bounded snapshot scenario while retaining lifecycle, masking, native update and integer-bound checks. Remove internal SQL/request instrumentation. Preserve lifecycle producer regression 9e1f027. CI-only static gates passed; no test runs.
Keep admission and cleanup proof in ops.run-admission.test.ts and ops.run-admission-cleanup.test.ts; rollback, completion, and pacing proof in ops.rollback.test.ts, ops.mutation-completion.test.ts, and ops.pacing.test.ts; cooldown and recovery policy in failure-alerts.persistence.test.ts. Schedule-error redaction remains covered by jobs.schedule-error-isolation.test.ts. Retain ninth-failure diagnostics while using timer.batch-finalization for the tenth-failure durable boundary. Force cadence remains covered by the manual-backoff regression and service.restart-catchup-pacing. Consolidate pause and retry fixtures without dropping their distinct behavior. CI-only: plain oxlint, formatting, and diff checks; no test runs.
Share reclaim and subagent fixtures, usage expectations, and sidebar layout setup. Preserve distinct authority, lifecycle, privacy, and usage behaviors. The sidebar docking lifecycle case now carries the former standalone bottom-dock assertions; unchanged-layout scenarios share a table. Command routing remains covered by the legacy-main alias case.
Remove the usage, notice, Guardian, and startup replay layer already owned by tool-stream.usage.node.test.ts. Keep canonical model provenance checks in the stream reconciliation case; chat-send.test.ts covers slash-command canonical model settlement. Placement success and offline availability/continuation are covered by session-placement.move.e2e.test.ts: shows authoritative device targets to writers and moves through the exact-source RPC; waits for an offline device or explicitly continues from Gateway-synced state. Preserve failure, cancellation, live authority, and stale-target cases. Keep one native startup-stop flow plus a worker-label branch table; move the archive reason assertion into the archived dispatch test. Capability success flows remain in chat-composer-capability-menu.e2e.test.ts: validates and adds MCP servers for session and everywhere scopes; refreshes the open Tool access view when the session run settles. Keep failure stages and request ownership fences here. Drop the manually staged eviction replay in favor of chat-pane-attachment-handoff.test.ts: keeps an unsaved composer and its recovery warning across eviction. Retain actual pane retirement, IME continuation, previews, and native draft ownership. Basic running-count rendering remains in components/chat-working-indicator.test.ts; zero-count disappearance stays in the navigation test. Consolidate fixtures, same-branch layout inputs, and repeated internal assertions. CI-only: plain oxlint, oxfmt, and diff checks passed; no test runs. Additional 698 lines removed; total shard 5681 to 4765 lines, 16.1%, below the 25% target rather than deleting distinct behavioral proof.
Share catalog fixtures and DOM assertions, simplify settings edit fixtures, and remove unused duplicate pageFixture/runtimeFixture builders. The live fixture owner remains plugins-page.lifecycle-test-support.ts. Remove the independent category-read replay covered by catalog-results: presents independent owner reads, retries failures, and retains cards during refresh and pagination. Remove the optional-enrichment replay covered by routing: renders disabled/needs-setup local settings controls while optional metadata settles. CI-only campaign: formatting, diff check, and plain oxlint passed; tests, coverage, and typechecks deferred to hosted CI. Net test/support reduction is 153 lines (2.8%), below the 25% target; retain distinct authority, lifecycle, configuration, and browser-layout proof.
Move duplicate install-action assertions into catalog-results held-refresh completion proof. Keep ranking in grouped-home refresh and category-pin sorting in bounded pagination. Search cursor suppression remains in the settled manual-search case. Inherited-array editing is covered by config-form-collection-defaults.browser.test.ts: shows optional array defaults and authors inherited items without dropping siblings. Keep plugin compact-array rendering in the object-array layout case. Share schema-recovery setup without losing Reload or Retry entry points. Remove repeated same-branch rounding/color inputs, internal RPC inventories, and oversized fixtures. Preserve credential, authority, lifecycle, recovery, and native-layout outcomes. CI-only: oxfmt, diff check, and plain oxlint passed; no tests or typechecks run. Additional reduction 317 lines; cumulative listed shard reduction remains below 25 percent.
Catalog installation settlement is owned by install-progress.e2e: shows a catalog card as installed when its install succeeds. Pinned popup refresh and hidden Other/Uncategorized behavior remain in plugins.e2e. Keep warning-on-empty, mixed publisher grouping, independent read errors, and visual layout locally. Remove autosave/late-catalog replay covered by plugins-request-ownership.e2e: keeps the current rendered inspection after an old optional catalog response. Retry selection remains in settings-editor.handlers, real recovery in plugins-settings-admin.e2e, and menu Escape/focus in plugins-settings-keyboard.e2e. Nested credential writes remain in plugins-credentials.e2e: edits the advertised nested credential through the acknowledged writer. Preserve strict-object atomicity locally and source-selector editing at the credential owner. Category/search debounce ordering remains in plugins.e2e, with shelf-state retention assertions moved into existing overview restoration proof. CI-only: formatting, diff check, and plain oxlint passed. No tests or typechecks run. Additional reduction 364 lines; cumulative listed shard reduction 5437 to 4520 remains below the requested 25 percent.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates repeated test fixtures and removes redundant coverage across Gateway, infrastructure, agents, sessions, memory, node-host, and Control UI suites. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored cleanup provides useful test consolidation, with no actionable defect found in the introduced diff; the exact-head aggregate CI gate remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherTest fixtures exercise existing runtime owners and UI components, then check observable results, authority boundaries, persistence, and lifecycle behavior. flowchart LR
A[Test fixtures] --> B[Test runners]
B --> C[Existing runtime owners]
C --> D[Behavior assertions]
D --> E[CI gate]
Technical reviewBest possible solution: Merge the test-only consolidation once the existing exact-head CI gate passes. Do we have a high-confidence way to reproduce the issue? No product bug is alleged; source inspection confirms a test-only change, and no local tests or runtime commands were run. Is this the best way to solve the issue? Shared fixtures and branch tables are appropriate here, and the checked removals retain stronger owner coverage without adding production seams. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dfcb2469b18a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -3492. Total -3492 across 68 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 25, 2026, 12:14 AM ET / 04:14 UTC. |
…aw#183194) * test(gateway): deslop s0106 tests Share repeated request fixtures and assertions without dropping distinct authority, lifecycle, or persistence checks. Retain persisted-roster Claw plan/apply cases instead of replaying their enabled-roster variants. Claude CLI projection remains covered by the prepared-owner registry table, including availability. Usage rollup invalidation remains covered by the population-sharing test through the same revision-aware cache owner. UI reconnect target pinning and revocation remain in the original owner turn; retain the subsequent-owner transition. CI-only campaign: plain oxlint, oxfmt and diff checks passed; no test or coverage runs. Shard LOC 5565 to 5470; static declarations 97 to 95 and expanded cases 169 to 165. Short of 25 percent: remaining suites protect distinct auth, cleanup, sandbox, storage and lifecycle behavior. * test(gateway): remove duplicate s0106 proof layers Remove six auth control-plane cases already covered by users-auth-connect.control-plane.test.ts, including FIFO selection, forbidden callers, explicit admin identity, credential linking, and disclosure revalidation. Keep the narrower provider harness rather than broadening its identity mocks to reuse the control-plane helper. Keep plugin panel delivery in server-plugins.panels.test.ts. Keep metadata handoff and normalization at prepared-model-runtime.metadata-handoff.test.ts and model-ref-shared.test.ts, with Gateway generation tests retained. Alias path precedence and disposal ordering remain in user-profile-list.resident.test.ts and database resource tests; Gateway fanout and root replacement remain here. Consolidate cron admission and revocation setup while checking unchanged persistence after each method. Share usage visibility and creator fixtures without dropping role isolation or hidden-spend checks. Retain late-cancellation progress completion as the stronger completion case. CI-only: oxfmt, plain oxlint and diff-check passed; no tests/builds/coverage run. Original shard 5565 to 4940 lines (11.2 percent); this follow-up removes 530 lines. The 25 percent target remains unmet because remaining proof protects distinct authority, lifecycle, persistence and execution behavior. * test(gateway): reuse s0106 lifecycle fixture definitions Infer the cron policy fixture API from its constructor and reuse canonical catalog auth, model and plugin fixtures. Preserve all test cases, per-method persistence checks, captured configuration semantics and callback teardown ordering. Third pass inspected all five reduction moves and existing owner proof. Remaining provider, authority, lifecycle and persistence cases have distinct coverage; do not broaden mocks or change event config ownership to reach a line target. Original shard 5565 to 4923 lines (11.5 percent), still short of the requested 25 percent. No files deleted. CI-only validation: plain oxlint, oxfmt and git diff --check passed; no tests, builds or coverage runs. * test(memory): deslop s0104 tests Remove the duplicated vector/scorer layer from the KNN subprocess suite; manager-search-vector.test.ts retains cancellation, signed-rowid cursors, aliases, scoring, snapshot payloads, snippet bounds and KNN cap coverage. Keep subprocess-specific lifecycle and transport proofs. Retain scheduler yielding in the identically named manager-sync-yield.test.ts case. Consolidate embedding fixtures and database publication setup, remove duplicate auto-selection cases and the duplicate holdMemoryTestOperation definition. CI-only: formatting, plain oxlint and diff checks pass; runtime and coverage checks deferred to hosted CI. * test(gateway): deslop s0108 tests Remove duplicate presence cases already covered by the same-name tests in server-request-context.presence.test.ts. Reuse the existing committed transcript publication registrar and consolidate scoped fixtures without dropping approval, privacy, durability or lifecycle assertions. CI-only: oxfmt, plain oxlint and diff checks pass. No tests or coverage run. Shard LOC 6027 -> 5451 (9.6%); further reduction would remove distinct boundary coverage. * test(gateway): consolidate s0108 boundary fixtures Share Web Push preparation and terminal outcome tables without losing authority, expiry, privacy or receipt assertions. Reuse existing SSE and subscription fixtures, consolidate publication signals and trim internal call-shape restatements. Group deletion remains covered by nonempty-drop, interrupted-retirement and idempotent deletion cases plus server.sessions.store-rpc.test.ts chat organization. Async prepared-consumer rejection remains in session-event-prepared-row.test.ts; released-view guards remain in the repository-description case. CI-only: formatting, plain oxlint and diff checks passed; no tests or coverage run. Additional 192-line reduction; original shard 6027 -> 5259 (12.7%). Remaining distinct authority, durability and lifecycle paths prevent a safe 25% cut. * test(gateway): share s0108 lifecycle scenario fixtures Table the four session-create hook routing branches, including omitted hook defaults and both main-scope dispositions. Share held decision-effect and broadcast fixtures; retain no-chat-handler transcript custody separately from handler-backed publication. Move greatest persisted group-position allocation proof into the real-worker alias/lifecycle test; repeated registration remains in the committed catalog publication case. Remove the mocked kernel-only SQL-shape layer. Keep current, unbound and missing-role-policy push targets together; retained preparation and terminal policy cases prove downgrade fences. CI-only static gates passed: oxfmt, plain oxlint, git diff --check. No tests, coverage or builds run. Additional 125 lines removed; original shard 6027 -> 5134 (14.8%). Distinct authority, durability, private-memory and lifecycle paths prevent the requested 25% cut under the current retention bar. * test(infra): deslop s0110 tests Consolidate catalog fixtures, identity migration database and result assertions, and repeated rollback completion. Preserve every existing behavioral scenario; split unsafe identity inputs into independently cleaned-up table cases. CI-only audit: oxlint, oxfmt, and diff-check passed. Test/support LOC 5473 to 5354; 125 declarations retained. Further cuts would remove distinct security, durability, or lifecycle proof. No tests or coverage run locally. * test(infra): remove duplicate s0110 proof layers Collapse handoff input cross-products to branch representatives, drop duplicate recovery verdict replay, remove fixture-state inventories, and minimize pass-through security responses. Keep snapshot byte/WAL independence in sqlite-private-snapshot-fork.test.ts; native timeout cleanup in sqlite-readonly-location.cancellation.test.ts; allocation diagnostics in sqlite-readonly-location.test.ts. Retain IPC custody and startup errors here. Keep late Git refusal in update-runner-git-cleanup.test.ts, source-change refusal in retained rollback interleavings, runtime metadata in update-runner-git-candidate.test.ts, and bounded state progress/output in update-candidate-state.diagnostics.test.ts and update-candidate-state.budget.test.ts. Archive traversal and unchanged-byte cases retain the observable contracts after removing EXPLAIN and timing replay. CI-only: no test or coverage runs. Plain oxlint, oxfmt and diff-check pass. Second pass 5354 to 4962 lines; original 5473 to 4962 (9.3 percent). No whole file was fully redundant; distinct authority, durability and lifecycle cases retained. * test(infra): consolidate s0110 fixtures and assertions Share identity, blob, inspection and Git activation fixtures. Remove copied metadata and diagnostic inventories, redundant process payload assertions and public API pass-through fixture data. Keep private publication, no-write-lock, cleanup-stage and authority boundaries. The held pre-schema crash case retains ordinary-reader publication proof. Archive convergence plus session-accessor.sqlite-archive-artifact.test.ts retain publication byte/retry proof. Lifecycle tests retain rollback verification projection while result tests retain terminal outcome and downtime. CI-only static gates: plain oxlint, oxfmt and diff-check passed; no test/build/coverage commands. This pass 4962 to 4723 lines; original 5473 to 4723. No files deleted. * test(agents): deslop s0111 tests Remove replay duplicates retained in images.replay.test.ts, images.media-refs.test.ts, and preemptive-compaction.replay.test.ts. Consolidate admission and settled-tool fixtures without dropping their lifecycle or authority assertions. * test(agents): consolidate s0111 branch fixtures Replace repeated request and settlement setup with branch tables and shared fixtures. Reduce compaction ownership replays to the Responses ownership, explicit enable, memory trigger, and Anthropic pass-through decisions; Anthropic direct/proxy enable-disable remains in the transport preparation test. Keep credential, authority, lifecycle ordering, and recovery assertions. * test(infra): deslop s0109 tests Remove the byte-identical managed npm peer-repair tests and their local helpers; npm-managed-root-peer-repair.test.ts retains all five cases, including active-host preservation and work deadlines. Keep immediate async listener rejection coverage in the stronger node-duplex drain-failure case, carrying forward closed-channel and single-delivery assertions. Retain separate buffered rejection coverage. Share repeated worker, shell probe, pnpm shared-store, and framing fixtures without changing production code. CI-only validation: oxfmt, git diff --check, and plain oxlint passed. No tests, coverage, or builds run. Shard reduction is below 25%; retain distinct authority, transaction recovery, migration, accounting, and lifecycle checks. * test(infra): consolidate s0109 behavior fixtures Share native update layouts, defaults, and fixture lifetime; keep every rollback and authority interleaving. Consolidate shell module loading and applied-key lifecycle checks, worker round trips, and broker result assertions. Move framing readiness, empty-message, and heartbeat assertions into the bidirectional transfer flow. Buffered drain proves ordered buffered delivery; exact-limit delivery proves acceptance above the pending-byte budget. Retain the multi-fragment concurrent-send path. Remove resolved-version helper replays covered by install.npm-spec.test.ts: preserves an existing npm plugin by resolving update metadata to a compatible version. Keep install safety argv exact. Drop pnpm helper inventories covered by retained invoking-project resolution and package-update-steps.pnpm11-guard.test.ts grouped-install refusal. CI-only: plain oxlint, oxfmt, and diff checks passed; no tests or builds run. Remaining distinct credential, recovery, FIFO, usage accounting, and native-lifecycle behavior prevents a defensible 25 percent shard reduction. * test(infra): consolidate s0109 scenario tables Represent all eight native rollback cases by one scenario discriminant instead of three correlated fields. Share native error and directory-entry fixtures without changing rollback assertions. Share the runner for all seven MCP OAuth source rejection modes, retaining source, receipt, and canonical-state checks. Compare the complete imported credential fixture minus retired state. Share the three npm override branches and compact repeated lockfile fixtures. CI-only proof: oxfmt, plain oxlint, and git diff --check pass. No tests or builds run. This pass saves 50 lines; the shard remains below the 25 percent reduction target because remaining native lifecycle, FIFO, authority, accounting, credential and recovery behaviors lack equivalent retained proof. * test(node-host): deslop s0112 tests Consolidate staged-read cleanup observation, runtime invocation setup, retention cancellation setup, and durable container-state assertions without dropping their boundary checks. Remove the duplicated drained-forward close case: "waits out a %i-byte forward instead of the short close acknowledgement" retains payload delivery and the no-short-timer branch; "settles after the target closes before drain" retains Duplex teardown and drain-listener cleanup, including the carried target and WebSocket teardown assertions. CI-only shard: formatting, plain oxlint, and diff checks pass. Runtime and coverage verification are deferred to hosted CI. Reduction is 88 of 5160 lines (1.7%), below the 25% target; the remaining cases protect distinct authority, persistence, recovery, platform, or lifecycle behavior. * test(node-host): remove redundant s0112 proof layers Remove the private turn-kernel SQL-count layer; durable claim/finish receipt and timestamp assertions now live in the real cross-store serialization case. Merge container startup assertions into the existing isolated launch lifecycle and replace fake-engine SQLite trace polling with direct blocked-removal receipt assertions. Exact identity-before-dispatch and no-dispatch-on-journal-failure checks remain. Keep Windows helper reuse and stale nonce proof in node-worker-workspace-quiescence.windows.test.ts (retains the Windows quiescence helper). Placement claim protection remains covered by node-worker-prepared-workspace.test.ts (retains active bindings and leaves a permanent tombstone after retirement) and the retained in-flight generation command test. Startup retention now shares the bounded backlog lifecycle. Snapshot journal-mode and full-row inventories remain owned by sqlite-snapshot.test.ts. Consolidate config snapshot transitions, cleanup-owner retry rows and stream harness disposal. Preserve candidate CLI/preflight selection, Bun global/trusted installation flags, authority, source-state isolation and cleanup ordering. CI-only: plain oxlint, oxfmt and diff-check pass; no runtime tests or coverage run. Additional cut 253 lines; original shard 5160 to 4819 (-6.6%), still below the 25% target. * test(node-host): simplify s0112 shared fixtures Unify fake-container option decoding and locked state transitions while preserving real subprocess execution and removal/startup holds. Remove unused daemon event metadata and the unused version command; all fixture consumers supply a resolved container engine. Use scoped skill-cache lifecycle setup instead of a callback fixture transport, retaining exact PATH restoration and pending-operation teardown. Exercise upload followed by download in one manifest-retention lifecycle; both transfer branches still run and each retention transition remains asserted. CI-only: plain oxlint, oxfmt and diff checks pass; no tests or coverage run. This additional cut removes 45 lines. Original shard 5160 to 4774 (-7.5%); the 25% target remains unmet rather than removing distinct authority, persistence, transport or lifecycle proof. * test(sessions): deslop s0113 tests Consolidate repeated fixtures while retaining authority, durability, replay and lifecycle assertions. Keep header identity fallback in the existing payload matrix; the large-metadata publication case covers duplicate catalogue receipt proof. CI-only validation: formatting, plain oxlint and diff-check; runtime proof deferred to hosted CI. * test(sessions): remove duplicate s0113 proof layers Keep activity summary coverage in session-actor-pathalias.test.ts and the nonactor content/topology invalidation case in session-actor-transcript-residency.test.ts. Keep normal fenced-context and parent advancement coverage in session-actor-transcript-replica.test.ts; retain oversized-input and resident-eviction integration checks here. Remove duplicate worker reply-shape/SQL instrumentation while retaining authority, rollback and publication assertions. CI-only: plain oxlint, oxfmt and diff-check passed; no tests run. * test(sessions): consolidate s0113 owner-boundary coverage Remove low-level maintenance finalization duplication covered by maintenance-worker's committed-removal publication test and no-op duplication covered by maintenance-read/kick. Consolidate resident anchors/accounting into the bounded-context scenario; bookkeeping, rewrite, reset, exact accounting and prompt persistence remain in transcript-residency, entry-residency, pathalias, gateway transcript-reader and user-turn-transcript owner tests. Consolidate cold cohort facts into its bounded snapshot scenario while retaining lifecycle, masking, native update and integer-bound checks. Remove internal SQL/request instrumentation. Preserve lifecycle producer regression 169ee00. CI-only static gates passed; no test runs. * test(cron): deslop s0114 tests * test(cron): remove duplicated s0114 suite layers Keep admission and cleanup proof in ops.run-admission.test.ts and ops.run-admission-cleanup.test.ts; rollback, completion, and pacing proof in ops.rollback.test.ts, ops.mutation-completion.test.ts, and ops.pacing.test.ts; cooldown and recovery policy in failure-alerts.persistence.test.ts. Schedule-error redaction remains covered by jobs.schedule-error-isolation.test.ts. Retain ninth-failure diagnostics while using timer.batch-finalization for the tenth-failure durable boundary. Force cadence remains covered by the manual-backoff regression and service.restart-catchup-pacing. Consolidate pause and retry fixtures without dropping their distinct behavior. CI-only: plain oxlint, formatting, and diff checks; no test runs. * test(chat): deslop s0115 tests Share reclaim and subagent fixtures, usage expectations, and sidebar layout setup. Preserve distinct authority, lifecycle, privacy, and usage behaviors. The sidebar docking lifecycle case now carries the former standalone bottom-dock assertions; unchanged-layout scenarios share a table. Command routing remains covered by the legacy-main alias case. * test(chat): deslop s0115 redundant test layers Remove the usage, notice, Guardian, and startup replay layer already owned by tool-stream.usage.node.test.ts. Keep canonical model provenance checks in the stream reconciliation case; chat-send.test.ts covers slash-command canonical model settlement. Placement success and offline availability/continuation are covered by session-placement.move.e2e.test.ts: shows authoritative device targets to writers and moves through the exact-source RPC; waits for an offline device or explicitly continues from Gateway-synced state. Preserve failure, cancellation, live authority, and stale-target cases. Keep one native startup-stop flow plus a worker-label branch table; move the archive reason assertion into the archived dispatch test. Capability success flows remain in chat-composer-capability-menu.e2e.test.ts: validates and adds MCP servers for session and everywhere scopes; refreshes the open Tool access view when the session run settles. Keep failure stages and request ownership fences here. Drop the manually staged eviction replay in favor of chat-pane-attachment-handoff.test.ts: keeps an unsaved composer and its recovery warning across eviction. Retain actual pane retirement, IME continuation, previews, and native draft ownership. Basic running-count rendering remains in components/chat-working-indicator.test.ts; zero-count disappearance stays in the navigation test. Consolidate fixtures, same-branch layout inputs, and repeated internal assertions. CI-only: plain oxlint, oxfmt, and diff checks passed; no test runs. Additional 698 lines removed; total shard 5681 to 4765 lines, 16.1%, below the 25% target rather than deleting distinct behavioral proof. * test(plugins): fix schema retry wait helper reference * test(plugins): deslop s0116 tests Share catalog fixtures and DOM assertions, simplify settings edit fixtures, and remove unused duplicate pageFixture/runtimeFixture builders. The live fixture owner remains plugins-page.lifecycle-test-support.ts. Remove the independent category-read replay covered by catalog-results: presents independent owner reads, retries failures, and retains cards during refresh and pagination. Remove the optional-enrichment replay covered by routing: renders disabled/needs-setup local settings controls while optional metadata settles. CI-only campaign: formatting, diff check, and plain oxlint passed; tests, coverage, and typechecks deferred to hosted CI. Net test/support reduction is 153 lines (2.8%), below the 25% target; retain distinct authority, lifecycle, configuration, and browser-layout proof. * test(plugins): consolidate s0116 branch and lifecycle proof Move duplicate install-action assertions into catalog-results held-refresh completion proof. Keep ranking in grouped-home refresh and category-pin sorting in bounded pagination. Search cursor suppression remains in the settled manual-search case. Inherited-array editing is covered by config-form-collection-defaults.browser.test.ts: shows optional array defaults and authors inherited items without dropping siblings. Keep plugin compact-array rendering in the object-array layout case. Share schema-recovery setup without losing Reload or Retry entry points. Remove repeated same-branch rounding/color inputs, internal RPC inventories, and oversized fixtures. Preserve credential, authority, lifecycle, recovery, and native-layout outcomes. CI-only: oxfmt, diff check, and plain oxlint passed; no tests or typechecks run. Additional reduction 317 lines; cumulative listed shard reduction remains below 25 percent. * test(plugins): remove s0116 duplicate proof layers Catalog installation settlement is owned by install-progress.e2e: shows a catalog card as installed when its install succeeds. Pinned popup refresh and hidden Other/Uncategorized behavior remain in plugins.e2e. Keep warning-on-empty, mixed publisher grouping, independent read errors, and visual layout locally. Remove autosave/late-catalog replay covered by plugins-request-ownership.e2e: keeps the current rendered inspection after an old optional catalog response. Retry selection remains in settings-editor.handlers, real recovery in plugins-settings-admin.e2e, and menu Escape/focus in plugins-settings-keyboard.e2e. Nested credential writes remain in plugins-credentials.e2e: edits the advertised nested credential through the acknowledged writer. Preserve strict-object atomicity locally and source-selector editing at the credential owner. Category/search debounce ordering remains in plugins.e2e, with shelf-state retention assertions moved into existing overview restoration proof. CI-only: formatting, diff check, and plain oxlint passed. No tests or typechecks run. Additional reduction 364 lines; cumulative listed shard reduction 5437 to 4520 remains below the requested 25 percent. * test: remove stale imports and fixture state after batch replay * test: preserve boundary coverage and current fixture contracts * test(gateway): supply rollback workspace in Claw fixture * test(plugins): retain authored object-array layout fixture
What Problem This Solves
Removes redundant test layers and repeated fixture setup in a bounded test-cleanup batch, preserving distinct authority, persistence, cancellation, and lifecycle assertions.
User Impact
No production behavior or visual change. Production LOC: +0/-0. Test/support LOC: +3929/-7421, net -3492 across 68 files. No dependencies, configuration, public contracts, or runtime ownership change.
Why This Change Was Made
Replay 29 of the 30 supplied campaign commits onto pinned main
6aee15629b7f63835079c970fad444c63023d747. Shared fixtures and branch tables replace repeated setup; duplicate coverage stays at its stronger owner. Current-main fixture and wait-helper contracts are retained.One commit was skipped:
d889d94d5bba(memory owner consolidation), because its interdependent fixture rewrite conflicts with current-main database cleanup, identity, and publication helpers. Other conflict resolutions retain current-main changes and drop obsolete campaign hunks, as detailed below. Post-replay cleanup removes unused projection state. CI showed that the memory operation helper still has provider-lifecycle callers on current main, so its deletion was reverted.Evidence
node_modules/.bin/oxfmt --write <68 changed files>passed.node_modules/.bin/oxlint -c .oxlintrc.json <68 changed files>exited 0. One existing Solid reactivity warning remains in the unchanged mount/wait callback incatalog-results.test.tsx.git diff --check 6aee15629b7f63835079c970fad444c63023d747passed.openclaw/ci-gateis the runtime/build proof and merge gate. No Testbox leases created.stopReason: "error";node-worker-prepared-workspace.test.tsprotects an acquired workspace until release;node-worker-workspace-quiescence.windows.test.tsproves helper reuse and wrong/stale nonce fencing around sequential leases. These are retained owner proofs, not missing coverage.Replayed shard accounting
Counts are for the files actually changed by this replay, not the larger historical shard. Declarations are a static lexical count of direct
it/testdeclarations, including table declarations once; aliases and expanded runtime cases are not counted. They are not test-run counts.The supplied results for every shard below explicitly state that coverage was not run under CI-only mode. There is no coverage totals line to reproduce and no measured <=1% coverage-drop claim.
Files by shard
s0104
extensions/memory-core/src/memory/embeddings.test.tsextensions/memory-core/src/memory/manager-embedding-ops.retry.test.tss0106
src/gateway/server-methods/chat-send-attachments.owner.test.tssrc/gateway/server-methods/claws-add.test.tssrc/gateway/server-methods/cron.gateway-policy.integration.test.tssrc/gateway/server-methods/cron.list-scoped.test.tssrc/gateway/server-methods/models-dispatch.lifecycle.integration.test.tssrc/gateway/server-methods/models-list-result.plugin-runtime.test.tssrc/gateway/server-methods/progress-card-refresh.queued.test.tssrc/gateway/server-methods/session-creator-preparation.test.tssrc/gateway/server-methods/ui-command.test.tssrc/gateway/server-methods/usage.sessions-usage-cache.test.tss0108
src/gateway/approval-web-push.test.tssrc/gateway/control-ui-session-pr-subscriptions.test.tssrc/gateway/server-request-context.test.tssrc/gateway/server.sessions.reset-hooks.test.tssrc/gateway/server.subagent-transcript-conflict.test.tssrc/gateway/session-groups.test.tssrc/gateway/session-row-projection.prepared-read.test.tss0109
src/infra/node-duplex-framing.test.tssrc/infra/session-cost-usage-refresh.test.tssrc/infra/shell-env.test.tssrc/infra/sqlite-worker-broker.test.tssrc/infra/state-migrations.mcp-oauth.test.tssrc/infra/update-global.bun-owner.test.tssrc/infra/worker-cpu.test.tss0110
src/infra/clawhub-plugin-catalog.test.tssrc/infra/clawhub-skills.test.tssrc/infra/sqlite-readonly-worker.test.tssrc/infra/state-migrations.device-identity.test.tssrc/infra/update-managed-service-handoff-command.test-support.tssrc/infra/update-managed-service-handoff-database-publication.test.tssrc/infra/update-runner-git-transactions.test-support.tss0111
src/agents/embedded-agent-runner/run/attempt-midturn-precheck.test.tssrc/agents/embedded-agent-runner/run/attempt-result.test.tssrc/agents/embedded-agent-runner/run/failover-retry-controller.inline-auth.worker.test.tssrc/agents/embedded-agent-runner/run/lane-controller.queue-liveness.test.tssrc/agents/embedded-agent-runner/run/settled-tool-evidence.test.tss0112
src/node-host/auto-update-compatibility.test.tssrc/node-host/config.test.tssrc/node-host/node-stream-transport.test.tssrc/node-host/node-worker-supervisor.settlement.test.tssrc/node-host/node-worker-transfer-client.lifetime.test.tssrc/node-host/node-worker-workspace-quiescence.test.tssrc/node-host/node-worker-workspace-retention.test.tssrc/node-host/runtime.test.tss0113
src/config/sessions/conversation-registry.test.tssrc/config/sessions/session-accessor.sqlite-maintenance-writer.test.tssrc/config/sessions/session-actor-memory.test.tssrc/config/sessions/session-entry-cohort.worker.test.tss0114
src/cron/service/timer-outcomes.regression.test.tssrc/cron/service/timer.batch-finalization.test.tssrc/cron/service/timer.test.tssrc/cron/service/timer.timeout-watchdog.test.tss0115
ui/src/pages/chat/chat-command-executor.test.tsui/src/pages/chat/chat-composer-capability-host.test.tsui/src/pages/chat/chat-pane-placement-stop.test.tsui/src/pages/chat/chat-pane-placement.test.tsui/src/pages/chat/chat-pane-sidebar-layout.test.tsxui/src/pages/chat/chat-pane-typing.test.tsui/src/pages/chat/chat-subagent-wait.test.tss0116
ui/src/pages/plugins/catalog-results.browser.test.tsxui/src/pages/plugins/catalog-results.test-support.tsui/src/pages/plugins/catalog-results.test.tsxui/src/pages/plugins/credential-editor.browser.test.tsxui/src/pages/plugins/plugin-discovery-controller.test.tsui/src/pages/plugins/plugins-page.generations.test.tsui/src/pages/plugins/settings-editor.browser.test.tsxConflict resolutions and retained current-main code
d889d94d5bbarather than partially applying its mutually dependent helpers.users-auth-connect.test.tsand its support/control-plane ownership. Kept current-main usage-cache additions while applying independent cache fixture consolidation; removed its now-unused projection variable.exec-approval-manager.lifetime.test.tsandserver-runtime-subscriptions.publication.test-support.ts, including current assertions, fixture typing, and shutdown/publication custody. Kept the current request-context type import; retained current broadcast assertions rather than replaying the later conflicting fixture rewrite.npm-managed-root.test.ts(peer-repair split already present) andpackage-update-steps.native-transaction.test.ts(current filesystem/rollback fixtures). Replayed the independent shell, broker, framing, OAuth, and update-owner cleanup.attempt-stream-transport.test.ts. Replayed independent request, settlement, and queue fixture consolidation.waitForSolid, not the older campaign helper. Independent catalog, settings, credential, generation, and discovery reductions apply.First-head CI and corrective head
Initial run: https://github.com/openclaw/openclaw/actions/runs/40157935982 on
07cec8c07332aa36c63cc905452e8ee48b855912. Auto-merge was disabled during repair. The logs exposed current-main helper/signature/type drift, unbound cleanup callbacks, and Bun partial-object matching of omitted versus explicit-undefined properties. Repairs preserve the same observable assertions and use current API payloads; no retries, timeout changes, skips, or assertion weakening were used. The ambiguous transcript-reuse and update-cleanup rewrites were dropped. All 12 initially failing job logs were fetched once and reused. Fresh-head hosted CI remains required; the old run is not claimed as passing proof.Second run: https://github.com/openclaw/openclaw/actions/runs/40158639682 identified one remaining fixture type error: the Claw rollback fixture also needs its required workspace. The fixture now uses the adjacent rollback test's synthetic workspace. Auto-merge was disabled during this correction; focused correction review completed clean through P2. Local validation remains format/plain lint/diff-check only.
Third run: https://github.com/openclaw/openclaw/actions/runs/40159079803 exposed a settings-layout cleanup hunk that changed authored object-array values into a schema default and added an incorrect field-order expectation. That one test was restored to pinned main's authored-value fixture and original count/alignment/search/removal assertions; the other settings reductions remain. Auto-merge was disabled during repair. Focused restoration review completed clean through P2; the next exact head requires fresh hosted CI.