Skip to content

test(gateway, infra, ui): remove low-value tests (batch d510) - #183194

Merged
steipete merged 33 commits into
mainfrom
tcr/land-d510-1792897775
Oct 25, 2026
Merged

steipete merged 33 commits into
mainfrom
tcr/land-d510-1792897775

Conversation

@steipete

@steipete steipete commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Frozen-lockfile installation passed.
  • Direct node_modules/.bin/oxfmt --write <68 changed files> passed.
  • Direct node_modules/.bin/oxlint -c .oxlintrc.json <68 changed files> exited 0. One existing Solid reactivity warning remains in the unchanged mount/wait callback in catalog-results.test.tsx.
  • git diff --check 6aee15629b7f63835079c970fad444c63023d747 passed.
  • Per operator CI-only instruction: no local Vitest, check-changed, typecheck, coverage, or Testbox runs. Hosted openclaw/ci-gate is the runtime/build proof and merge gate. No Testbox leases created.
  • Full-diff independent review produced six findings. Three accepted findings were repaired: mutation-time Doctor authority coverage, the real private-row synchronous-consumer guard, and unchecked mock-call indexing. Correction review completed clean through P2.
  • Rejected findings: the assistant-message fixture already defaults to stopReason: "error"; node-worker-prepared-workspace.test.ts protects an acquired workspace until release; node-worker-workspace-quiescence.windows.test.ts proves helper reuse and wrong/stale nonce fencing around sequential leases. These are retained owner proofs, not missing coverage.
  • None of the changed paths matches this base's CODEOWNERS rules.

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/test declarations, 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.

Shard Changed test/support LOC before → after Static declarations before → after Coverage totals
s0104 834 → 731 (-103) 22 → 20 Not run; CI-only
s0106 4736 → 4317 (-419) 77 → 69 Not run; CI-only
s0108 4437 → 4099 (-338) 90 → 80 Not run; CI-only
s0109 4400 → 4189 (-211) 117 → 107 Not run; CI-only
s0110 3960 → 3484 (-476) 92 → 87 Not run; CI-only
s0111 2819 → 2551 (-268) 46 → 44 Not run; CI-only
s0112 3790 → 3553 (-237) 82 → 75 Not run; CI-only
s0113 2522 → 2421 (-101) 40 → 40 Not run; CI-only
s0114 2296 → 2239 (-57) 47 → 47 Not run; CI-only
s0115 4414 → 3727 (-687) 109 → 92 Not run; CI-only
s0116 3331 → 2736 (-595) 75 → 70 Not run; CI-only
Files by shard

s0104

  • extensions/memory-core/src/memory/embeddings.test.ts
  • extensions/memory-core/src/memory/manager-embedding-ops.retry.test.ts

s0106

  • src/gateway/server-methods/chat-send-attachments.owner.test.ts
  • src/gateway/server-methods/claws-add.test.ts
  • src/gateway/server-methods/cron.gateway-policy.integration.test.ts
  • src/gateway/server-methods/cron.list-scoped.test.ts
  • src/gateway/server-methods/models-dispatch.lifecycle.integration.test.ts
  • src/gateway/server-methods/models-list-result.plugin-runtime.test.ts
  • src/gateway/server-methods/progress-card-refresh.queued.test.ts
  • src/gateway/server-methods/session-creator-preparation.test.ts
  • src/gateway/server-methods/ui-command.test.ts
  • src/gateway/server-methods/usage.sessions-usage-cache.test.ts

s0108

  • src/gateway/approval-web-push.test.ts
  • src/gateway/control-ui-session-pr-subscriptions.test.ts
  • src/gateway/server-request-context.test.ts
  • src/gateway/server.sessions.reset-hooks.test.ts
  • src/gateway/server.subagent-transcript-conflict.test.ts
  • src/gateway/session-groups.test.ts
  • src/gateway/session-row-projection.prepared-read.test.ts

s0109

  • src/infra/node-duplex-framing.test.ts
  • src/infra/session-cost-usage-refresh.test.ts
  • src/infra/shell-env.test.ts
  • src/infra/sqlite-worker-broker.test.ts
  • src/infra/state-migrations.mcp-oauth.test.ts
  • src/infra/update-global.bun-owner.test.ts
  • src/infra/worker-cpu.test.ts

s0110

  • src/infra/clawhub-plugin-catalog.test.ts
  • src/infra/clawhub-skills.test.ts
  • src/infra/sqlite-readonly-worker.test.ts
  • src/infra/state-migrations.device-identity.test.ts
  • src/infra/update-managed-service-handoff-command.test-support.ts
  • src/infra/update-managed-service-handoff-database-publication.test.ts
  • src/infra/update-runner-git-transactions.test-support.ts

s0111

  • src/agents/embedded-agent-runner/run/attempt-midturn-precheck.test.ts
  • src/agents/embedded-agent-runner/run/attempt-result.test.ts
  • src/agents/embedded-agent-runner/run/failover-retry-controller.inline-auth.worker.test.ts
  • src/agents/embedded-agent-runner/run/lane-controller.queue-liveness.test.ts
  • src/agents/embedded-agent-runner/run/settled-tool-evidence.test.ts

s0112

  • src/node-host/auto-update-compatibility.test.ts
  • src/node-host/config.test.ts
  • src/node-host/node-stream-transport.test.ts
  • src/node-host/node-worker-supervisor.settlement.test.ts
  • src/node-host/node-worker-transfer-client.lifetime.test.ts
  • src/node-host/node-worker-workspace-quiescence.test.ts
  • src/node-host/node-worker-workspace-retention.test.ts
  • src/node-host/runtime.test.ts

s0113

  • src/config/sessions/conversation-registry.test.ts
  • src/config/sessions/session-accessor.sqlite-maintenance-writer.test.ts
  • src/config/sessions/session-actor-memory.test.ts
  • src/config/sessions/session-entry-cohort.worker.test.ts

s0114

  • src/cron/service/timer-outcomes.regression.test.ts
  • src/cron/service/timer.batch-finalization.test.ts
  • src/cron/service/timer.test.ts
  • src/cron/service/timer.timeout-watchdog.test.ts

s0115

  • ui/src/pages/chat/chat-command-executor.test.ts
  • ui/src/pages/chat/chat-composer-capability-host.test.ts
  • ui/src/pages/chat/chat-pane-placement-stop.test.ts
  • ui/src/pages/chat/chat-pane-placement.test.ts
  • ui/src/pages/chat/chat-pane-sidebar-layout.test.tsx
  • ui/src/pages/chat/chat-pane-typing.test.ts
  • ui/src/pages/chat/chat-subagent-wait.test.ts

s0116

  • ui/src/pages/plugins/catalog-results.browser.test.tsx
  • ui/src/pages/plugins/catalog-results.test-support.ts
  • ui/src/pages/plugins/catalog-results.test.tsx
  • ui/src/pages/plugins/credential-editor.browser.test.tsx
  • ui/src/pages/plugins/plugin-discovery-controller.test.ts
  • ui/src/pages/plugins/plugins-page.generations.test.ts
  • ui/src/pages/plugins/settings-editor.browser.test.tsx
Conflict resolutions and retained current-main code
  • s0104: retained current-main generic embedding, database publication, and KNN subprocess files, plus the shared operation helper used by current provider lifecycle tests. Their config, cleanup, and split-suite layouts differ from the campaign. Skipped the entire follow-up d889d94d5bba rather than partially applying its mutually dependent helpers.
  • s0106: retained the current split users-auth-connect.test.ts and its support/control-plane ownership. Kept current-main usage-cache additions while applying independent cache fixture consolidation; removed its now-unused projection variable.
  • s0108: retained current-main exec-approval-manager.lifetime.test.ts and server-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.
  • s0109: retained npm-managed-root.test.ts (peer-repair split already present) and package-update-steps.native-transaction.test.ts (current filesystem/rollback fixtures). Replayed the independent shell, broker, framing, OAuth, and update-owner cleanup.
  • s0110: retained current canonical archive migration and managed-service handoff-result fixtures. Dropped the entire update-cleanup rewrite after CI exposed the newer receipt-channel fixture signature; current diagnostics and deadline behavior remain unchanged.
  • s0111: retained current split image/compaction tests and current attempt-stream-transport.test.ts. Replayed independent request, settlement, and queue fixture consolidation.
  • s0112: retained current container supervisor tests, container support, and turn-store tests. Container support's journal recording must remain with the retained assertions; its removal was dropped together with the conflicting test rewrite. Current daemon-delay behavior remains.
  • s0113: retained conflicting current entry-authority, lifecycle-projection, transcript-payload, and snapshot-merge rewrites. Retained the current maintenance-writer and cohort files when the final consolidation conflicted, including main's new protection regression. Earlier independent maintenance/cohort edits and actor/conversation reductions remain. The whole transcript-reuse rewrite was dropped after CI showed its hydration/runtime-config fixtures had changed on main.
  • s0114: retained current failure-alert, run-admission/authority, receipt-finalization, and conflicting timer diagnostics assertions. The current run-admission split and diagnostic regressions are not replaced by older campaign layers.
  • s0115: retained current retained-presentation and tool-stream fallback files, including compact/noncompact branches and current eviction coverage. Independent placement, capability, command, sidebar, typing, and subagent cleanup remains.
  • s0116: retained the current plugin-page shared helper owner (duplicate builders already absent), artwork/icon tests, and routing tests on conflicting consolidations. The supplied one-line wait-helper correction was reverted after CI: current main owns 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.

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.
@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@steipete
steipete enabled auto-merge (squash) October 25, 2026 03:21
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T03:57:42.322964Z 7031584 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime extensions: memory-core Extension: memory-core agents Agent runtime and tooling size: XL labels Oct 25, 2026
@steipete
steipete disabled auto-merge October 25, 2026 03:28
@steipete
steipete enabled auto-merge (squash) October 25, 2026 03:33
@steipete
steipete disabled auto-merge October 25, 2026 03:37
@steipete
steipete enabled auto-merge (squash) October 25, 2026 03:54
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates repeated test fixtures and removes redundant coverage across Gateway, infrastructure, agents, sessions, memory, node-host, and Control UI suites.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful test consolidation with retained boundary coverage and successful exact-head test, type, and lint checks; no measured coverage or performance improvement is claimed.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored test-only PR changes no shipped behavior; hosted checks exercise the revised suites, with aggregate CI still pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Repeated fixture setup and duplicate test layers increase maintenance effort.
Reason: The maintainer-approved direction reduces test duplication while preserving the checked authority, persistence, cancellation, ordering, and lifecycle contracts.

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
Reviewed head: 70315847b1396e16521ad6c02ecbd1894aa62a2e

Before merge

None.

Findings

None.

Agent review details

How this fits together

Test 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 699a3c5 adds src/config/sessions/conversation-registry.test.ts:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 699a3c58bf28; files: src/config/sessions/conversation-registry.test.ts)
  • Patrick Erichsen: Raw commit 7f41da0 adds ui/src/pages/plugins/catalog-results.test.ts:452 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7f41da0c7e42; files: ui/src/pages/plugins/catalog-results.test.ts)

PR surface

Tests -3492. Total -3492 across 68 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 68 3922 7414 -3492
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 68 3922 7414 -3492

Review metrics

Metric Value Why it matters
Production versus test/support LOC Production +0/-0; tests/support +3922/-7414, net -3492 The reduction is confined to test fixtures and assertions, with no production machinery added.

Labels

Label changes:

  • add P3: This is test-maintenance cleanup with no intended user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test-maintenance cleanup with no intended user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 25, 2026, 12:14 AM ET / 04:14 UTC.

@steipete
steipete merged commit 01f7cb1 into main Oct 25, 2026
130 checks passed
@steipete
steipete deleted the tcr/land-d510-1792897775 branch October 25, 2026 04:24
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui extensions: memory-core Extension: memory-core gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant