Repository navigation
test(ui, agents, gateway): remove low-value tests (batch d586) - #184119
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review 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. |
Use the shared native presence stream for reset, patch, order, removal and recovery cases; retain event-log delivery and input immutability there. Keep the async recovery-generation tests. Drop lower-owner replays covered by session-delete-mutations replacement/deletion tests, Debug event-log eviction proof, canvas-surface-lease expiry proof, and the retained Vite compression-policy tests. Keep built-file decompression, source-map release behavior, shell navigation/draft effects, and auth boundaries. Collapse storage/worker variants and copied metadata inventories. CI-only static gates passed; no tests/builds run. Total shard reduction is 245 of 4577 lines (5.35%); the 20% target remains unmet without an identified safe further cut.
Reuse the existing session deletion harness, share build identity/catalog and ready-guest fixtures, and consolidate auth/canvas lifecycle setup. Keep the predecessor deletion cleanup and exact list timestamps, callback ownership, emitted-asset checks and locale invalidation contracts. CI-only validation: plain oxlint, formatting and diff checks pass; no tests/builds run. Additional reduction: 128 lines. Original shard total 4577 -> 4204 (8.15%); the 20% target remains unmet.
Keep compacted-payload removal proof in the retained payload lifecycle test, including the short task needed to expose equality-elided writes. Cover unchanged prepared registration in the queued-deletion lifecycle test. Remove redundant collaborator assertions while retaining durable outcomes, authority gates, targets, and ordering.
Prepared-result ownership remains covered by subagent-announce-result: retains prepared result authority across an equivalent immutable publication; registry lifecycle: keeps queued result authority correct after completion; and the retained worker Gateway-binding test across real immutable publications. Cold-loaded delivery still checks effective restored profile, scopes, grant, rejection cases, and secret exclusion instead of repeating the serialized source shape.
Share bundle HTTP/prefetch fixtures and launch-store identities, schema reads, and malformed identity inputs. Centralize connection cleanup in the test fixture. Keep native-inference and prompt-context negotiation in the existing negotiates $kind inventory per connection case, including unsupported and reconnected states. Preserve all bundle integrity, journal authority, cancellation, rollback, and lifecycle assertions. CI-only validation: oxfmt, plain oxlint, and git diff --check. Shard LOC 4462 -> 4222 (5.38%); the 20% target was not met without removing distinct protected behavior. Tests and coverage intentionally deferred to hosted CI.
Consolidate launch-claim coverage into launch-store in the same database-worker project. Remove SQL read-count instrumentation and retain rollback, foreign-write, physical-owner, boot-adoption, and pruning assertions. Boot adoption retains the monotonic receipt timestamp assertion. Retire the workspace-git mock wiring suite: uploads worker commits only when result v%s was negotiated retains real history/framing proof; node workspace Git pack downloads imports and recaptures a Git workspace beyond the Windows path limit retains long-path proof. Keep environment isolation assertions in node worker Git transfers. Fold cache repair/local acquisition, prewarm, capability negotiation, nested-skill rejection, and upload precondition fixtures into their existing boundary cases without dropping error, security, or lifecycle assertions. CI-only proof: plain oxlint, oxfmt, and git diff --check. No tests, coverage, builds, or typechecks run. Original shard: 4462 -> 3569 test lines, 20.01 percent reduction; 97 -> 80 declarations and 177 -> 161 statically expanded cases. Previous commit retained unchanged.
Consolidate transcript fixtures, HTTP response parsing, fork caller setup, and admission retry assertions without removing behavior cases. Preserve authorization, usage, recovery, and lifecycle ordering coverage. CI-only validation: plain oxlint, oxfmt, and diff check; 4297 to 4107 shard lines (4.4%, below target).
Remove redundant recap matrix and fixtures: durable results remain in session-activity-summaries.test.ts, permanent failures in session-activity-summaries.retry.test.ts, and fallback routing in utility-completion.runtime.test.ts. Retain delta authorization and lifecycle cases; decoder reconstruction remains in session-list-enrichment.test.ts, wire serialization in session-list-serialization.test.ts, and history eviction in session-list-baseline-diagnostics.test.ts. Routed prompt provenance and string decorators remain in cli-session-history.routed-prompts.test.ts and cli-session-history.paging.test.ts. Keep original-order bootstrap, inventory, workspace, quiescence and reclaim proof. Remove self-fulfilled filesystem checks and independent deletion replay covered by server.sessions.mcp-cleanup.test.ts, server.sessions.worker-placement-lifecycle.test.ts and server.sessions.delete-state-lifecycle.test.ts. Keep broadcast recipient and ancestor proof in server-broadcast.board.test.ts and session-row-event-ancestor-placement.test.ts. CI-only static checks passed. Additional 339 lines removed; original shard 4297 to 3768 lines (12.3 percent), still below the 20 percent target. Preserve the remaining distinct recovery, authority, ordering and known performance regression guards.
Replace the layered original-order replay with the sole unmatched contract: remote-exec initialization and usable workspace commands never start persistent SSH. The obsolete reverse tunnel was retired in bb1ce58. Remaining owner proof: bootstrap.test.ts retries on authenticated fallback and reuses/finally cleans ambiguous uploads; store.test.ts reopens ordered fallback ports; store-change-events.test.ts reopens bootstrapping state; provider-bootstrap.test.ts keeps bootstrapping until receipt durability; placement-dispatch-reclaim.test.ts proves attach/sync/activate and fenced teardown ordering; placement-reclaim-lifecycle.test.ts proves reconciliation before lease release; workspace-sync-scripts.test.ts and workspace-sync-tunnel.test.ts exercise actual process quiescence and workspace transfers. Remove the duplicate decorated-input composition test, covered by cli-session-history.paging.test.ts matching original native text and cleaning unmatched imports plus retained input projection controls. Reuse existing dispatch cleanup ownership, consolidate identical HTTP error expectations, and leave summary projection state to its canonical owner tests. CI-only static validation: oxfmt, plain oxlint and diff check. No test runs. Shard original 4297 to 3429 lines, down 868 lines (20.2 percent); this commit removes another 339 lines.
Keep required-policy changes, Stop fencing, and native-runtime restoration in session-placement-required.test.ts. Keep old-generation history/event rejection in the cached primary/managed generation test, before and after rollback. Consolidate required-placement fixtures and metadata cleanup. Preserve distinct authority and lifecycle cases; static reduction is 124 lines (2.8%), below the requested 20% target. CI-only mode: no tests or coverage run.
Remove copied default-policy inventories and redundant input variants. Consolidate MCP configure preservation and skill receipt/read assertions at their existing command boundaries. Reuse Gateway validation proof and reduce repeated table fixtures. Generic Gateway success remains covered by gateway-backed-exit.process.test.ts: uses stored auth for stability RPC without persisting hello-issued tokens or state. Workspace metadata exclusion remains covered by config-cli-model-normalization.workspace.test.ts: preserves global provider policies across workspace changes without executing plugins.
Flatten repeated migration config fixtures and remove single-case suite wrappers. Preserve every existing case and assertion; CI-only validation with local oxlint, oxfmt, and diff checks. Reduction is below the requested target because remaining migration, policy, persistence, and lifecycle cases protect distinct behavior.
Replace repeated retirement and Lossless setup with branch tables, trim model-slot inventories and diagnostic prose snapshots, and drop helper call-shape checks covered by outcomes. Keep public plugin routing, policy, migration conflict, and persistence assertions. The removed audio consolidation replay is covered by tags and deduplicates modality models without conflating capabilities in legacy-config-migrations.runtime.retired.test.ts. Primary fallback policy proof is retained in preserves execution-only runtime selections in legacy-model-reference-migration.test.ts. Validation: plain oxlint, oxfmt, and git diff --check; no tests run under CI-only instructions.
Share repeated migration fixtures and preserve exact policy, persistence, and lifecycle assertions. Remove the vLLM detection replay covered by 'moves Qwen model-map and model-row params while preserving canonical compat'. Codex media-ref replay remains covered by codex-route-music.test.ts 'keeps music detection and writing aligned with image and video'. CI-only: formatting, plain oxlint and diff checks pass; no test or coverage runs. Shard is 3501 lines versus 4119 originally (15.0% reduction); retained distinct security, migration and ownership cases prevent claiming the 20% target.
Consolidate plugin-menu refresh assertions into the current scoped action test while retaining its pre-render invocation check. Compact route normalization cases and repeated command setup without dropping branches.
Use the live-props view harness instead of a second signal root, collapse patch-kind selection replays at their common settlement boundary, and reuse scope, placement, goal, and typing fixtures. Remove formatter-spy and copied control inventories. Keyboard sorting, actual row ordering, and aria-sort remain covered by session-management.groups.e2e.test.ts: sorts threads from the keyboard and identifies destructive selection targets. Local coverage retains focused-node identity. Shared owner label variants remain in presence-users.test.ts. Archive Undo/chunking and unsubscribe/resubscribe races remain intact.
Move command outcomes into the same-project archive outcome suite and keep confirmation stubbing local to the deletion case. The personal visibility failure-refresh-retry scenario now also covers successful RPC dispatch and managed roster refresh, replacing its standalone success replay.
Reuse collector, worker config, and captured-store fixtures. Table target-policy guidance and configured registry cases without removing their distinct inputs or assertions. Preserve authority, rollback, persistence, and lifecycle cases; CI-only validation per campaign instructions.
ACP target resolution remains covered by acp-spawn.test.ts: resolves workspace access, resumes through the configured ACP owner and backend, and uses the owner's bound account for ACP thread spawn. Profile pinning/schema execution remains covered by the disk-loaded command profile test; native replay equality remains in the plugin facade host-input test. Preserve refusal, rollback interleaving, custody, sandbox and persistence assertions. CI-only: static lint/format/diff gates only. Reduction remains below the campaign target rather than dropping distinct contracts.
Keep Matrix casing at channels/conversation-resolution.test.ts: keeps Matrix room casing when the channel resolver returns a child thread; keep ACP bound-account dispatch here. Both spawn backends use reconcileSubagentAgentDispatch, whose accepted/pending/terminal behavior remains in native spawn tests. Keep requireAgentId and allowlist refusal at openclaw-tools.subagents.sessions-spawn.allowlist.test.ts; explicit and collector-default guidance remains at sessions-spawn-tool.input.test-support.ts. Consolidate native refusals and retain atomic live-cap and lifetime-cap proof. Static checks only under campaign CI-only mode; cumulative reduction remains below 20%.
Consolidate storage rejection setup while retaining text, attached, offline command, and unknown recovery-owner behavior. Share client-side presentation setup for pairing and companion commands, retaining dispatch, untouched transcript, idle run, and input history assertions. Input-history key navigation remains covered by input-history.test.ts; companion aliases remain covered by companion-question.test.ts. No production or shared-support changes; CI-only validation.
Share identical startup options; build scoped restoration cases without duplicated row fixtures; derive volatile retry text and error from the retained state dimension. Remove assertions on the void event-adapter return while preserving all ordering and queue assertions. Retain every scenario and its request, ownership, recovery, and data-retention checks. CI-only: oxfmt, plain oxlint, diff check; no test execution.
Preserve current model metadata and deep-link bootstrap replies. Restore hook inspection fixture values, required Gateway resolver typing, subscriber sets, platform literals, and complete policy tuples. Correct Vite helper return and matcher types from hosted CI. CI-only validation: changed-file formatting, plain oxlint and diff checks passed; focused repair autoreview found no actionable issues.
Type child registration against the standard GatewayRequestContext it consumes rather than the stronger local factory return type. Source-only autoreview and plain lint pass; hosted CI remains the test gate.
Document existing isolated auth and security mocks and shrink their exact baseline entries. Remove the now-unused ACP size suppression and restore synchronous HTTP request callbacks from main. Source-only review and changed-file formatting/plain lint passed; hosted CI owns validation.
Hosted CI identified the exact ACP test entry after its unused suppression was removed. Shrink only; no source or assertion changes. Source-only review found no actionable issues.
Drop the bounded mailbox helper extraction after hosted CI observed an ordering failure whose repair is not established. Preserve current main byte-for-byte, including all ordering assertions and timing budgets. The branch is refreshed onto e61931e; no claim that the helper caused or fixed the failure. Source-only review and plain lint pass.
58201f5 to
660f442
Compare
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures and overlapping cases across the UI, agents, Gateway, CLI, Doctor, browser, and node host. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this is useful maintainer-approved cleanup, with one distinct regression guard to retain before merge. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe affected suites exercise production owners using synthetic requests, transports, and persisted fixtures, producing assertions about their observable contracts. flowchart LR
A[Test fixtures] --> B[UI and CLI]
B --> C[Gateway and agents]
C --> D[Node and browser owners]
D --> E[Transport and storage fixtures]
E --> F[Contract assertions]
Technical reviewBest possible solution: Keep the consolidation and retain one initialized-store claim/start regression that forbids warm schema writes. Do we have a high-confidence way to reproduce the issue? Source comparison establishes the regression-coverage deletion; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? Shared fixtures and consolidation into existing owner suites are appropriate, provided independent historical contracts remain protected. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 29397d2a185c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceTests -4020, Other -6. Total -4026 across 76 files. Added test files: 0. 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, 11:58 PM ET / October 26, 2026, 03:58 UTC. |
…law#184119) * test(ui): consolidate o0036 repeated boundary proof Use the shared native presence stream for reset, patch, order, removal and recovery cases; retain event-log delivery and input immutability there. Keep the async recovery-generation tests. Drop lower-owner replays covered by session-delete-mutations replacement/deletion tests, Debug event-log eviction proof, canvas-surface-lease expiry proof, and the retained Vite compression-policy tests. Keep built-file decompression, source-map release behavior, shell navigation/draft effects, and auth boundaries. Collapse storage/worker variants and copied metadata inventories. CI-only static gates passed; no tests/builds run. Total shard reduction is 245 of 4577 lines (5.35%); the 20% target remains unmet without an identified safe further cut. * test(ui): reduce o0036 fixture scaffolding Reuse the existing session deletion harness, share build identity/catalog and ready-guest fixtures, and consolidate auth/canvas lifecycle setup. Keep the predecessor deletion cleanup and exact list timestamps, callback ownership, emitted-asset checks and locale invalidation contracts. CI-only validation: plain oxlint, formatting and diff checks pass; no tests/builds run. Additional reduction: 128 lines. Original shard total 4577 -> 4204 (8.15%); the 20% target remains unmet. * test(subagents): deslop o0038 tests * test(subagents): consolidate o0038 recovery fixtures Keep compacted-payload removal proof in the retained payload lifecycle test, including the short task needed to expose equality-elided writes. Cover unchanged prepared registration in the queued-deletion lifecycle test. Remove redundant collaborator assertions while retaining durable outcomes, authority gates, targets, and ordering. * test(subagents): remove redundant o0038 authority proof Prepared-result ownership remains covered by subagent-announce-result: retains prepared result authority across an equivalent immutable publication; registry lifecycle: keeps queued result authority correct after completion; and the retained worker Gateway-binding test across real immutable publications. Cold-loaded delivery still checks effective restored profile, scopes, grant, rejection cases, and secret exclusion instead of repeating the serialized source shape. * test(node-host): deslop o0037 tests Share bundle HTTP/prefetch fixtures and launch-store identities, schema reads, and malformed identity inputs. Centralize connection cleanup in the test fixture. Keep native-inference and prompt-context negotiation in the existing negotiates $kind inventory per connection case, including unsupported and reconnected states. Preserve all bundle integrity, journal authority, cancellation, rollback, and lifecycle assertions. CI-only validation: oxfmt, plain oxlint, and git diff --check. Shard LOC 4462 -> 4222 (5.38%); the 20% target was not met without removing distinct protected behavior. Tests and coverage intentionally deferred to hosted CI. * test(node-host): consolidate o0037 boundary suites Consolidate launch-claim coverage into launch-store in the same database-worker project. Remove SQL read-count instrumentation and retain rollback, foreign-write, physical-owner, boot-adoption, and pruning assertions. Boot adoption retains the monotonic receipt timestamp assertion. Retire the workspace-git mock wiring suite: uploads worker commits only when result v%s was negotiated retains real history/framing proof; node workspace Git pack downloads imports and recaptures a Git workspace beyond the Windows path limit retains long-path proof. Keep environment isolation assertions in node worker Git transfers. Fold cache repair/local acquisition, prewarm, capability negotiation, nested-skill rejection, and upload precondition fixtures into their existing boundary cases without dropping error, security, or lifecycle assertions. CI-only proof: plain oxlint, oxfmt, and git diff --check. No tests, coverage, builds, or typechecks run. Original shard: 4462 -> 3569 test lines, 20.01 percent reduction; 97 -> 80 declarations and 177 -> 161 statically expanded cases. Previous commit retained unchanged. * test(gateway): deslop o0039 tests Consolidate transcript fixtures, HTTP response parsing, fork caller setup, and admission retry assertions without removing behavior cases. Preserve authorization, usage, recovery, and lifecycle ordering coverage. CI-only validation: plain oxlint, oxfmt, and diff check; 4297 to 4107 shard lines (4.4%, below target). * test(gateway): remove duplicate o0039 test layers Remove redundant recap matrix and fixtures: durable results remain in session-activity-summaries.test.ts, permanent failures in session-activity-summaries.retry.test.ts, and fallback routing in utility-completion.runtime.test.ts. Retain delta authorization and lifecycle cases; decoder reconstruction remains in session-list-enrichment.test.ts, wire serialization in session-list-serialization.test.ts, and history eviction in session-list-baseline-diagnostics.test.ts. Routed prompt provenance and string decorators remain in cli-session-history.routed-prompts.test.ts and cli-session-history.paging.test.ts. Keep original-order bootstrap, inventory, workspace, quiescence and reclaim proof. Remove self-fulfilled filesystem checks and independent deletion replay covered by server.sessions.mcp-cleanup.test.ts, server.sessions.worker-placement-lifecycle.test.ts and server.sessions.delete-state-lifecycle.test.ts. Keep broadcast recipient and ancestor proof in server-broadcast.board.test.ts and session-row-event-ancestor-placement.test.ts. CI-only static checks passed. Additional 339 lines removed; original shard 4297 to 3768 lines (12.3 percent), still below the 20 percent target. Preserve the remaining distinct recovery, authority, ordering and known performance regression guards. * test(gateway): finish o0039 layer consolidation Replace the layered original-order replay with the sole unmatched contract: remote-exec initialization and usable workspace commands never start persistent SSH. The obsolete reverse tunnel was retired in eb60528. Remaining owner proof: bootstrap.test.ts retries on authenticated fallback and reuses/finally cleans ambiguous uploads; store.test.ts reopens ordered fallback ports; store-change-events.test.ts reopens bootstrapping state; provider-bootstrap.test.ts keeps bootstrapping until receipt durability; placement-dispatch-reclaim.test.ts proves attach/sync/activate and fenced teardown ordering; placement-reclaim-lifecycle.test.ts proves reconciliation before lease release; workspace-sync-scripts.test.ts and workspace-sync-tunnel.test.ts exercise actual process quiescence and workspace transfers. Remove the duplicate decorated-input composition test, covered by cli-session-history.paging.test.ts matching original native text and cleaning unmatched imports plus retained input projection controls. Reuse existing dispatch cleanup ownership, consolidate identical HTTP error expectations, and leave summary projection state to its canonical owner tests. CI-only static validation: oxfmt, plain oxlint and diff check. No test runs. Shard original 4297 to 3429 lines, down 868 lines (20.2 percent); this commit removes another 339 lines. * test(sessions): deslop o0040 tests Keep required-policy changes, Stop fencing, and native-runtime restoration in session-placement-required.test.ts. Keep old-generation history/event rejection in the cached primary/managed generation test, before and after rollback. Consolidate required-placement fixtures and metadata cleanup. Preserve distinct authority and lifecycle cases; static reduction is 124 lines (2.8%), below the requested 20% target. CI-only mode: no tests or coverage run. * test(sessions): consolidate o0040 lifecycle test families Remove the five permission-order scenarios duplicated in session-permission-mutations.test.ts. Merge offline metadata into the lifecycle fixture and required placement into startup; retain filtered-list, policy, physical-identity, rollback, and cancellation assertions. Consolidate presentation retirement and deletion-window tables. Keep scope-retirement proof at session-method-access.test.ts and gateway-store.deferred-intents.test.ts. Application startup retry tests retain profile/automatic dispatch and definitive rejection proof. Remove retired sessions.send and history-receipt scenarios per 66d9c47. CI-only static validation: formatting, plain oxlint, and diff-check passed; no tests or coverage run. Additional reduction: 4334 to 3717 lines; cumulative 4458 to 3717 (16.6%), below the 20% target. * test(browser): deslop o0042 tests Share navigation-fence and download event fixtures, reuse guard setup, and compact equivalent wait assertions and proxy envelopes. Preserve all distinct security, authority, cancellation, and lifecycle cases. Dense suites already consolidated in earlier passes remain intact. * test(browser): deduplicate o0042 test layers Remove historical-target cases duplicated in server.historical-target.test.ts and annotation cases duplicated in pw-tools-core.annotate.test.ts. Keep action parsing inventories with agent.act.normalize.test.ts and form-fields.test.ts instead of replaying the harness leaf dispatcher. Retain route responses, normalization handoff and rejection-before-dispatch checks. The Chromium successor-download flow covers the removed mocked waiter-cancellation replay. output-directories.test.ts covers symlinked output ancestors while the retained download parent-swap test proves guarded finalization. Consolidate grace timing and evaluation errors into retained same-path cases. No tests run in CI-only mode. * test(browser): consolidate o0042 lifecycle fixtures Share HTTP and native-action cancellation setup, direct route mock assertions, invalid-action cases, and queued screenshot interruption fixtures. Preserve all distinct policy, authority, output, cancellation and cleanup assertions. Keep prior shard commits unchanged; no test execution in CI-only mode. * test(cli): deslop o0043 tests Remove copied hook formatting and install-acknowledgement cases covered by hooks-cli.test.ts, library filesystem boundaries covered by skills-library-input.test.ts, and startup cases covered by command-startup-policy.test.ts. Preserve the unique native-host and cloud-worker startup assertions. Consolidate static path-policy expectations without dropping policy checks. * test(cli): consolidate remaining o0043 proof Remove copied default-policy inventories and redundant input variants. Consolidate MCP configure preservation and skill receipt/read assertions at their existing command boundaries. Reuse Gateway validation proof and reduce repeated table fixtures. Generic Gateway success remains covered by gateway-backed-exit.process.test.ts: uses stored auth for stability RPC without persisting hello-issued tokens or state. Workspace metadata exclusion remains covered by config-cli-model-normalization.workspace.test.ts: preserves global provider policies across workspace changes without executing plugins. * test(cli): simplify o0043 hook inspection fixtures * test(doctor): deslop o0041 tests Flatten repeated migration config fixtures and remove single-case suite wrappers. Preserve every existing case and assertion; CI-only validation with local oxlint, oxfmt, and diff checks. Reduction is below the requested target because remaining migration, policy, persistence, and lifecycle cases protect distinct behavior. * test(doctor): consolidate o0041 migration proof Replace repeated retirement and Lossless setup with branch tables, trim model-slot inventories and diagnostic prose snapshots, and drop helper call-shape checks covered by outcomes. Keep public plugin routing, policy, migration conflict, and persistence assertions. The removed audio consolidation replay is covered by tags and deduplicates modality models without conflating capabilities in legacy-config-migrations.runtime.retired.test.ts. Primary fallback policy proof is retained in preserves execution-only runtime selections in legacy-model-reference-migration.test.ts. Validation: plain oxlint, oxfmt, and git diff --check; no tests run under CI-only instructions. * test(doctor): deslop o0041 fixtures further Share repeated migration fixtures and preserve exact policy, persistence, and lifecycle assertions. Remove the vLLM detection replay covered by 'moves Qwen model-map and model-row params while preserving canonical compat'. Codex media-ref replay remains covered by codex-route-music.test.ts 'keeps music detection and writing aligned with image and video'. CI-only: formatting, plain oxlint and diff checks pass; no test or coverage runs. Shard is 3501 lines versus 4119 originally (15.0% reduction); retained distinct security, migration and ownership cases prevent claiming the 20% target. * test(sessions): deslop o0044 tests Consolidate plugin-menu refresh assertions into the current scoped action test while retaining its pre-render invocation check. Compact route normalization cases and repeated command setup without dropping branches. * test(sessions): reduce o0044 structural test overhead Use the live-props view harness instead of a second signal root, collapse patch-kind selection replays at their common settlement boundary, and reuse scope, placement, goal, and typing fixtures. Remove formatter-spy and copied control inventories. Keyboard sorting, actual row ordering, and aria-sort remain covered by session-management.groups.e2e.test.ts: sorts threads from the keyboard and identifies destructive selection targets. Local coverage retains focused-node identity. Shared owner label variants remain in presence-users.test.ts. Archive Undo/chunking and unsubscribe/resubscribe races remain intact. * test(sessions): consolidate o0044 command outcome suites Move command outcomes into the same-project archive outcome suite and keep confirmation stubbing local to the deletion case. The personal visibility failure-refresh-retry scenario now also covers successful RPC dispatch and managed roster refresh, replacing its standalone success replay. * test(subagents): deslop o0045 tests Reuse collector, worker config, and captured-store fixtures. Table target-policy guidance and configured registry cases without removing their distinct inputs or assertions. Preserve authority, rollback, persistence, and lifecycle cases; CI-only validation per campaign instructions. * test(subagents): consolidate o0045 spawn proof layers ACP target resolution remains covered by acp-spawn.test.ts: resolves workspace access, resumes through the configured ACP owner and backend, and uses the owner's bound account for ACP thread spawn. Profile pinning/schema execution remains covered by the disk-loaded command profile test; native replay equality remains in the plugin facade host-input test. Preserve refusal, rollback interleaving, custody, sandbox and persistence assertions. CI-only: static lint/format/diff gates only. Reduction remains below the campaign target rather than dropping distinct contracts. * test(subagents): retire duplicate o0045 proof layers Keep Matrix casing at channels/conversation-resolution.test.ts: keeps Matrix room casing when the channel resolver returns a child thread; keep ACP bound-account dispatch here. Both spawn backends use reconcileSubagentAgentDispatch, whose accepted/pending/terminal behavior remains in native spawn tests. Keep requireAgentId and allowlist refusal at openclaw-tools.subagents.sessions-spawn.allowlist.test.ts; explicit and collector-default guidance remains at sessions-spawn-tool.input.test-support.ts. Consolidate native refusals and retain atomic live-cap and lifetime-cap proof. Static checks only under campaign CI-only mode; cumulative reduction remains below 20%. * test(chat): deslop o0046 tests Consolidate storage rejection setup while retaining text, attached, offline command, and unknown recovery-owner behavior. Share client-side presentation setup for pairing and companion commands, retaining dispatch, untouched transcript, idle run, and input history assertions. Input-history key navigation remains covered by input-history.test.ts; companion aliases remain covered by companion-question.test.ts. No production or shared-support changes; CI-only validation. * test(chat): reduce o0046 fixture repetition Share identical startup options; build scoped restoration cases without duplicated row fixtures; derive volatile retry text and error from the retained state dimension. Remove assertions on the void event-adapter return while preserving all ordering and queue assertions. Retain every scenario and its request, ownership, recovery, and data-retention checks. CI-only: oxfmt, plain oxlint, diff check; no test execution. * test(agents): deslop o0047 tests * test: repair d586 fixtures against current contracts Preserve current model metadata and deep-link bootstrap replies. Restore hook inspection fixture values, required Gateway resolver typing, subscriber sets, platform literals, and complete policy tuples. Correct Vite helper return and matcher types from hosted CI. CI-only validation: changed-file formatting, plain oxlint and diff checks passed; focused repair autoreview found no actionable issues. * test: accept recovered gateway contexts in d586 fixture Type child registration against the standard GatewayRequestContext it consumes rather than the stronger local factory return type. Source-only autoreview and plain lint pass; hosted CI remains the test gate. * test: finish d586 lint and mock isolation cleanup Document existing isolated auth and security mocks and shrink their exact baseline entries. Remove the now-unused ACP size suppression and restore synchronous HTTP request callbacks from main. Source-only review and changed-file formatting/plain lint passed; hosted CI owns validation. * test: prune stale d586 max-lines baseline entry Hosted CI identified the exact ACP test entry after its unused suppression was removed. Shrink only; no source or assertion changes. Source-only review found no actionable issues. * test: retain main requester wake settlement fixtures Drop the bounded mailbox helper extraction after hosted CI observed an ordering failure whose repair is not established. Preserve current main byte-for-byte, including all ordering assertions and timing budgets. The branch is refreshed onto 019a3d6; no claim that the helper caused or fixed the failure. Source-only review and plain lint pass.
What Problem This Solves
Reduces repeated test scaffolding and lower-value duplicate proof in campaign batch d586 while retaining the current owning-boundary contracts.
User Impact
No production behavior changes. This batch changes tests/test support plus shrink-only mock-export and test-routing bookkeeping. Production LOC: +0/-0. Test/support LOC: +4906/-8925 (net -4019); bookkeeping: +0/-7. Total: +4906/-8932 (net -4026). No changelog edit: release-owned repository.
Why This Change Was Made
Replays all 30 supplied commits in order onto pinned main
e61931e664fd5a5fc8da2275b63a04d2c50279e2. Consolidates shared fixtures, tables equivalent variants, and removes lower-layer replay where the campaign identifies retained owner proof. No whole commit skipped. No public API, schema, migration, dependency, or runtime changes.Conflict resolution deliberately preserves current main:
The initial base was d9a5304. After an interrupted-predecessor ordering assertion failed in requester-wake CI, main had added owner coverage in 4643dbc. Refreshed onto the pinned base above and dropped the mailbox helper extraction: requester-wake-settlement.test-support.ts is now byte-identical to current main. This is not claimed as a root-cause fix. Preserve all ordering assertions, deadlines, and cases. Rebase conflicts in presence, guest-storage, and Vite tests preserve current-main fixture helpers and equivalent reviewed consolidation.
No changed path matches the current CODEOWNERS rules.
Evidence
CI-only validation: frozen dependency install passed; changed-file oxfmt --write passed without further edits; plain oxlint -c .oxlintrc.json on changed TS/JS files exited 0; git diff --check against the pinned base passed. No Vitest, check-changed, tsgo, builds, coverage, Crabbox or Testbox ran locally. Test timing is therefore not measured; hosted openclaw/ci-gate selects and proves changed-file lanes. Independent review completed across the full replay and then the eight-file repair delta. Accepted the deep-link bootstrap response finding; rejected the launch-tool extra-presence finding because current connection.ts publishes exactly CORE_WORKER_LAUNCH_TOOL_NAMES and the fixture has no plugin tools. Repair review: no actionable P0-P2 findings.
Initial head 515350f failed hosted CI: missing hook fixture names and preserved model metadata; current type contracts also require literal platforms, subscriber Sets, required Gateway resolvers, complete policy rows, and void-returning Vite wrappers. These were repaired in 2e8cb20 without weakening assertions. Auto-merge was disabled for repair and is re-armed only on the pushed replacement head. The replacement run then exposed a helper parameter inferred more narrowly than the standard recovered Gateway context; its type-only correction also passed independent review. Subsequent behavioral/type checks passed; late hosted lint identified four mock-factory fingerprint changes needing explicit isolation reasons, an unused size suppression, and an async HTTP listener callback. The repair records the existing synthetic credential/security boundaries, removes exactly four obsolete mock-baseline entries, removes the stale suppression, and restores main's synchronous request-body listener. Its five-file review found no actionable issues. CI subsequently passed all those checks and requested removal of the ACP test's now-stale max-lines baseline path; that exact one-line shrink also passed independent review. Fresh-head CI is the proof; no local tests/typechecks were run.
The supplied per-shard results explicitly report that coverage was not run under CI-only mode. They contain no coverage totals line; no statement/branch-loss percentage is claimed. Their earlier LOC totals precede some supplied follow-up commits, so the table below measures the actual replay against pinned main instead. Static declaration counts are a text census of changed test/support files, not executed or table-expanded case counts.
Per-shard changed files and actual replay LOC
o0036
ui/src/app/app-host.deleted-session.test.ts(+0/-13)ui/src/app/bootstrap-location.test.ts(+0/-10)ui/src/app/control-ui-isolated-desktop-runtime.node.test.ts(+1/-12)ui/src/app/gateway-store.auth.test.ts(+75/-108)ui/src/app/gateway-store.presence.test.ts(+6/-55)ui/src/app/guest-welcome.test.ts(+14/-22)ui/src/app/plugin-distributions.node.test.ts(+0/-1)ui/src/app/service-worker-refresh.runtime.test.ts(+17/-21)ui/src/app/vite-build.node.test.ts(+31/-52)ui/src/app/vite-config.node.test.ts(+127/-234)o0037
src/node-host/connection.test.ts(+268/-435)src/node-host/gateway-candidate-connection.test.ts(+86/-105)src/node-host/node-worker-bundle-installer.test.ts(+256/-403)src/node-host/node-worker-launch-claim.test.ts(+0/-203)src/node-host/node-worker-launch-store.test.ts(+242/-429)src/node-host/node-worker-supervisor.reboot.test.ts(+61/-70)src/node-host/node-worker-transfer-client.git.test.ts(+52/-36)src/node-host/node-worker-transfer-client.snapshot.test.ts(+18/-35)src/node-host/node-worker-workspace-git.test.ts(+0/-148)src/node-host/skills.test.ts(+96/-108)o0038
src/agents/subagents/registry/subagent-detached-recovery.restart-integration.test.ts(+171/-234)src/agents/subagents/registry/subagent-registry-pressure.test.ts(+0/-4)src/agents/subagents/registry/subagent-registry-worker.test.ts(+24/-89)src/agents/subagents/registry/subagent-registry.requester-completion.fixture.test-support.ts(+0/-1)src/agents/subagents/registry/subagent-registry.requester-completion.test-support.ts(+104/-132)o0039
src/gateway/cli-session-history.claude-input.test.ts(+63/-116)src/gateway/openai-compatible-http.server.usage.test.ts(+54/-93)src/gateway/server-plugin-subagent-runtime.fork-transport.test.ts(+230/-266)src/gateway/server-runtime-subscriptions.activity-summary.test-support.ts(+18/-49)src/gateway/server-worker-placement-session-evidence.worker.test.ts(+38/-55)src/gateway/server.chat-admission-retry.test-support.ts(+137/-209)src/gateway/server.sessions.worker-original-order.test.ts(+24/-406)src/gateway/session-utility-harness.test.ts(+5/-100)src/gateway/worker-workspace-recovery-transcript.test.ts(+20/-44)o0040
ui/src/lib/sessions/index.create-background.test.ts(+15/-20)ui/src/lib/sessions/session-mutations-reconnect.test.ts(+42/-48)ui/src/lib/sessions/session-offline-lifecycle.test.ts(+217/-73)ui/src/lib/sessions/session-offline-metadata.test.ts(+0/-288)ui/src/lib/sessions/session-presentation.test.ts(+83/-121)o0041
src/commands/doctor/shared/codex-route-warnings.test.ts(+140/-192)src/commands/doctor/shared/empty-allowlist-scan.test.ts(+35/-55)src/commands/doctor/shared/legacy-config-migrate.test.ts(+515/-887)src/commands/doctor/shared/legacy-config-migrations.runtime.models.test.ts(+2/-21)src/commands/doctor/shared/legacy-config-migrations.runtime.retired.test.ts(+279/-359)src/commands/doctor/shared/legacy-model-reference-migration.test.ts(+9/-26)src/commands/doctor/shared/model-metadata-corruption-repair.test.ts(+14/-22)src/commands/doctor/shared/plugin-runtime-symlinks.test.ts(+4/-18)src/commands/doctor/shared/release-configured-plugin-installs.persistence.test.ts(+63/-80)o0042
extensions/browser/src/browser/pw-session-navigation-fence.test.ts(+65/-107)extensions/browser/src/browser/pw-tools-core.browser-ssrf-guard.test.ts(+62/-119)extensions/browser/src/browser/pw-tools-core.interactions.navigation-guard.test.ts(+27/-21)extensions/browser/src/browser/pw-tools-core.screenshots-element-selector.test.ts(+33/-42)extensions/browser/src/browser/pw-tools-core.waits-next-download-saves-it.test.ts(+19/-92)o0043
src/cli/command-path-policy.test.ts(+36/-137)src/cli/gateway-cli.coverage.test.ts(+33/-66)src/cli/hooks-cli.toggle.test.ts(+45/-72)src/cli/mcp-cli.test.ts(+4/-20)src/cli/security-cli.test.ts(+30/-41)o0044
ui/src/pages/sessions/route.test.ts(+21/-41)ui/src/pages/sessions/sessions-page.archive-outcome.test.ts(+161/-27)ui/src/pages/sessions/sessions-page.command-outcomes.test.ts(+0/-151)ui/src/pages/sessions/sessions-page.test.ts(+32/-92)ui/src/pages/sessions/sessions-page.typing.test.ts(+22/-39)ui/src/pages/sessions/view.test.ts(+34/-140)o0045
src/agents/subagents/spawn/acp-spawn-target.test.ts(+57/-131)src/agents/subagents/spawn/acp-spawn.test.ts(+57/-169)src/agents/subagents/spawn/subagent-spawn.plugin-disk-profile.test-support.ts(+2/-13)src/agents/subagents/spawn/subagent-spawn.plugin-profiles.test-support.ts(+5/-20)src/agents/subagents/spawn/subagent-spawn.test.ts(+241/-408)src/agents/subagents/spawn/subagent-spawn.worktree.test-support.ts(+0/-6)src/agents/subagents/spawn/subagent-target-policy.test.ts(+22/-92)o0046
ui/src/pages/chat/chat-send.test.ts(+183/-284)o0047
src/agents/main-session-recovery/main-session-recovery-empty-aggregate.test.ts(+59/-87)routing
config/max-lines-baseline.txt(+0/-1)config/test-mock-exports-baseline.txt(+0/-5)test/vitest/vitest.database-worker-core-paths.mjs(+0/-1)