Repository navigation
test(runtime,ui): remove low-value tests (batch d604) - #184449
Conversation
Consolidate mutation-free install rejection tables and repeated MCP setup, and simplify parsing and banner assertions without deleting scenarios. Keep all authority, OAuth, lifecycle and plugin contract checks. CI-only validation: plain oxlint, oxfmt and diff checks; no test or coverage execution.
Keep actual owner, lifecycle, OAuth and cold-import contracts. Drop exact animation scheduling inventories and duplicate startup marker rows; reuse temporary-directory cleanup and compact the disk fixture. Config expectation success remains covered by config-cli.integration.test.ts: accepts absent and exact authored expectations. Retain the null edge and all rejection cases here. Plugin compatibility diagnostic details remain covered by loader.runtime-version.test.ts: admits below-floor official runtime according to its release owner. CLI cold inspection still proves incompatible-plugin isolation. Workboard state assertions replace internal RPC method inventories. CI-only validation: plain oxlint exits 0, oxfmt and diff check pass. No test or coverage runs. Cumulative shard reduction remains below 20 percent; retained distinct contracts prevent a safe whole-file deletion.
Remove the duplicate JSON5 parse-error row; config-cli.integration.test.ts retains the empty-inline-batch case in honors config set batch input selection. Keep CLI callback state validation, all error branches, and real process import/retirement proof. Drop redundant OAuth start call counts and the duplicate update helper export list without changing initialization order. Consolidate argv imports without changing cases. Plain oxlint, oxfmt, and diff checks pass; no test runs. Cumulative reduction is 1565 to 1433 lines and remains below the requested 20 percent.
Reuse the runtime parity SQLite transcript fixture without changing root-scoped cleanup. Trim irrelevant prompt-report fixture fields while retaining each drift and precedence assertion. No test cases removed; further cuts in this shard would discard distinct boundary or lifecycle proof. CI-only validation: plain oxlint, oxfmt, and diff check.
Cover helper-only warm-cache assertions in the retained SQLite cache-miss test. Combine Control UI loading variants into one observed loading sequence per transcript kind, retaining role, active-pane, privacy and bounded-diagnostic assertions. Keep one surface-drift table row per report source/branch, including hashless descriptions, and retain behavioral drift checks. Reuse existing cold-child and account-start fixtures. Remove copied delivery metadata and argument assertions already checked by the loaded model-switch flow and real failure-aware delivery. Preserve routing collision cases and all lifecycle/identity assertions. CI-only: oxfmt, plain oxlint and diff check; no tests run.
Replace the test-only bus, account-start, cancellation and shutdown implementation with startQaLabServer and its native stop path. Retain the normal embedded-runner echo and failure-aware text-only delivery assertions. No test cases removed. Static validation only: oxfmt, plain oxlint and diff check.
Consolidate blocked-announcement replay scenarios and represent custody mutations once, retaining every expanded case and existing durability/authority assertion. CI-only campaign: format, plain oxlint and diff checks passed; runtime proof deferred to hosted CI. Safe reduction is 53 of 1571 lines; remaining cases protect distinct settlement, receipt and lifecycle boundaries.
Deduplicate credential and subprocess fixtures, use scoped file-handle disposal, and trim unexercised platform package inventory. Retain every test case and all existing outcome assertions. The optional-dependency swap table retains installed-native, missing-optional, and missing-required behavior; isOptionalPackageLink tests membership, not the removed platform inventory. CI-only proof: oxfmt, plain oxlint, and diff checks. This shard is already boundary-dense: 31 lines removed (2.5%), below the 20% target rather than deleting distinct lifecycle, durability, or platform proof.
Collapse malformed Git marker variants onto one failed-probe case; the marker-absent path remains in classifies checkout roots, aliases and nested packages. Remove internal probe counts, argument shapes, inventory projections, and timer wiring assertions while retaining visible results. Share one borrowed source for descriptor hashing and copying, with immediate post-hash cursor proof. Keep the memory-import native-mode regression from 6dbf187; the compiled-worker auto/default test does not cover that import. No files or production code deleted. CI-only: oxfmt, plain oxlint, and diff checks pass. Original shard 1258 -> 1155 lines (-8.2%); the 20% target remains unmet because remaining cases cover distinct durability, authority, ordering, error, and platform paths.
The package-only startup case adds no package-specific wrapper branch. Keep package discovery in update-check-status.test.ts (reports kind with lockfiles) and explicit no-Git proof at the nested-package owner boundary. Drop canonicalized-entry receipt wording already proven by the mixed-database test's durable SQL read. Preserve outcome, partial-upgrade, warning, refusal-order and source-retention assertions. CI-only static gates pass; no tests run. Full shard remains 1143/1258 lines, below the requested 20% reduction; remaining cases retain distinct behavior.
Consolidate credential and preference fixtures, reuse the canonical prompt-report builder, and trim handshake payload and assertion plumbing. Preserve all test cases and distinct auth, protocol, worker-write, pairing, and recovery assertions. No runtime or coverage execution under campaign CI-only mode.
Remove the CLI test-helper handshake suite: client.handshake tests retain catalog capability negotiation, signed fallback nonces, and request/reconnect framing; test-helpers.acquisition retains token/nonce forwarding. Remove only its two inventory entries. Retain bootstrap privacy assertions while leaving interval timing to control-ui-document-diagnostics and anonymous identity exclusion to control-ui.http. Probe-auth retains remote password survival. Consolidate group discovery into a warm/cold above-cap flow, paging into a two-branch table, and shared attribution policy into local cases with repository publication/revocation/replay checks. Shard test LOC: 1335 -> 1068 (20 percent); follow-up: 1282 -> 1068. Plain oxlint, oxfmt, and diff checks pass. No tests, coverage, or type-aware checks run under CI-only instructions.
Remove the duplicate bounded-pairing block from session-model-context-window.test.ts. The same ownership, overflow, synthetic-result, retained-frame, and recovery cases remain in session-model-context-pairing.test.ts against the real production limits; the deleted copies still passed limits removed in df27c0c. Share cold-storage preparation, report-fact fixtures, transcript persistence, and turn expectations without removing distinct storage or authority assertions. Shard LOC: 1757 to 1579 (10.1%); declarations: 47 to 37. Below the 20% target to retain distinct contracts. CI-only: plain oxlint, oxfmt, and diff checks passed; no tests or coverage run.
Share self-copy and cross-encoding generation fixtures while preserving full source snapshots, exact trajectory bytes, encoding conversion, and fingerprints. Use one scope-lifetime matrix for consumer/prepared guards and remove redundant acquisition call-count assertions. Remove JSON.parse duplicate-key rows: retained assistant-ID and malformed-message link cases cover the projector inputs after parsing, including null-parent links. Keep single-message, even batch, and odd multi-chunk turn representatives; sizes 2 and 3 add no decision branches beyond 4 and 513. Additional shard LOC: 1579 to 1522; original baseline1757, total reduction13.4%, below20%. Remaining durability, authority, and lifecycle assertions retained. Plain oxlint, oxfmt, and git diff checks passed. CI-only: no tests or coverage run.
Share freshness scenarios, cold-storage fixtures, and worker cleanup while preserving lifecycle, durability, and snapshot assertions. Reduce report-fact variants to distinct projection branches. The removed opaque preparation probe is covered at the real SDK boundary by session-entry-patch.test.ts: retains synchronous SDK entry reads inside an opaque last-route commit guard. Normalized run ownership remains covered by transcript-events.test.ts. Prior pairing deduplication remains covered by session-model-context-pairing.test.ts. CI-only validation: plain oxlint, oxfmt, and git diff --check passed; no tests or coverage run. Shard LOC: 1757 baseline -> 1405 (20.03% reduction), down from 1522 before this commit.
Consolidate mutation-mode cases and shared selector and plugin fixtures while retaining every distinct policy, credential, and migration assertion. Remove a redundant model-only X search no-op probe already covered by the enabled model-only case. CI-only campaign: local formatting, diff checks, and plain oxlint; behavioral proof remains with hosted CI.
Consolidate same-branch allowlist and web migrations, share model and plugin fixtures, and assert user-visible repair results instead of repeated diagnostic inventories and intermediate object shapes. Preserve distinct authorization, privacy, source precedence, and model-blocking checks. The xAI session wrapper replay is covered by doctor-retired-models.test.ts: repairs session choices and model-derived state while preserving Platform pins. Keep the xAI subscription resolver and custom-endpoint cases here. CI-only validation: oxfmt, plain oxlint, and git diff --check. No tests or coverage run. Shard total is 1243 lines, down from 1557 at the campaign baseline.
Keep successful reconnect ownership in 'ignores overtaken screenshots', including the changed URL. Shared Solid icon and StrokeIcon tests retain SVG defaults and namespace proof, so remove the toolbar replay. Reuse panel cleanup and local favicon/download assertions. CI-only audit; all distinct startup, recovery, capture, resize, and security cases retained.
Move hosted tabs and backend recovery into the protected toolbar suite without changing Vitest project routing. Share capture pinning and backend retry setup through branch tables, preserving all expanded cases. Remove redundant stream request counts where outcome assertions prove reconciliation and navigation. CI-only: formatting, diff checks, and plain oxlint; no tests run.
Reuse the strict panelScenario dispatcher for viewport and touch input, including action-body observation. Share native panel construction and trim the bridge/error fixture. Retain rendered tab labels, favicon updates and multi-panel DOM associations instead of copied getter projections and repeated ARIA assertions. Keep every lifecycle, input, resize and sanitization case. CI-only: plain oxlint, oxfmt, and diff checks; no tests run.
Reuse the Matrix sync fixture for top-level reporting and compact approval fixtures without dropping flow, target, or report assertions. Keep stale-sidecar rejection in the accountId/userId cursor-selection cases before seeding the valid target, retaining both identity rejection and unrelated-state preservation checks.
Remove verbatim progress diagnostics tables already covered by scenario-runtime-tool-progress-diagnostics.test.ts. Keep its event-scope and gate lifecycle tests. Consolidate media cases into scenario-runtime-thread.test.ts with one room fixture and real synthetic HTTP image delivery; carry the shared preview Unicode assertion into timeout diagnostics. The mentioned-room row covers the identical room-override top-level path. Trim internal deadline and copied report-shape assertions while retaining approval IDs, decisions, targets, and ordering.
Keep one representative per reply-preview, workspace-label and subagent presentation branch. Consolidate download retirement into pending, completed and disconnected settlement cases while retaining stale-result, abort and delivery checks. Retained stronger coverage: - chat-attachments.test.tsx: retains focused pasted-text actions when a peer read completes and uses current controls. - chat-pasted-text-sidebar.test.tsx: handles the pasted file card restore and preview actions independently. - chat-session-discussion-toggle.e2e.test.ts: keeps a cross-origin discussion in sync when the real host color scheme changes. - widget-theme.test.ts: shares one token sample across frames and refreshes mounted widgets on root changes. - session-discussion-panel.open-flow.test.ts: preserves a held discussion read and frame theme updates across same-turn moves. - chat-startup-progress.e2e.test.ts: shows snapshot, first preparation, and capture in one startup line. - chat-view.contention.test.ts: keeps Stop available during waiting_for_state. - chat-pane-run-activity.test.ts: keeps child counts and the request timer through roster hydration and settlement. Static validation only under the campaign CI-only budget: oxfmt, diff check and plain oxlint.
Keep code indentation, literal NO_REPLY and multiline prepared-text cases as the sanitizer pass-through proof. Remove five input variants that traverse the same metadata-strip and trim path; preserve all custody, redaction, media recovery and explicit-threading assertions. Table the existing structured-media cases without dropping assertions. CI-only campaign: oxlint, oxfmt and diff checks pass; runtime proof deferred to hosted CI. Shard remains below the reduction target because other files protect distinct authority, recovery and lifecycle paths.
Remove duplicate layers, retain distinct boundary assertions. Custody authority is covered by delivery-completion.integration.test.ts: retains the writer in queued custody after a channel transforms a direct final. Restart readiness is covered by restart-recovery-claim.lifecycle.test.ts: settles restart readiness without adopting successor facts. Media prompt plumbing is covered by reply.media-note.test.ts: includes all MediaPaths in the agent prompt. Gateway containment and staged bytes remain covered by chat-reply-media.workspace.test.ts: uses session media permissions before configured containment. ACP mode/text shapes remain in commands-acp.test.ts and dispatch-acp.test.ts; this shard retains attach identity and completion assertions. Keep native/normal precedence, queued revocation, accounting authority and binding-order cases. Remove the unused warm-up turn, one same-branch SSH Markdown variant, and internal call-shape duplication. CI-only: formatting, plain oxlint and diff checks pass; no tests or builds run.
Inline the sole remaining fast-runtime invocation with its minimal routing input, remove the obsolete WhatsApp registration and generic fixture, and retain both structured command precedence branches. Remove the unused ACP diagnostics snapshot mock; admission still asserts complete identity evidence and completion. Table failed-fallback outcomes and focus runner thread tests on their distinct thread result; effective-reply-route.test.ts covers the channel/destination/account tuple. CI-only: oxfmt, plain oxlint and diff check pass; no runtime tests or builds run. The shard remains above the requested 20 percent reduction threshold; unique accounting, binding, identity and recovery boundaries remain retained.
Keep schema forwarding in the explicit schema-dialect fallback cases; successful bounded-turn completion remains covered by the mandatory-hooks case in bounded-turn.test.ts. Share fallback guard setup without removing deadline or authority assertions. Remove cancellation teardown already owned by useClientHarnesses and the WebSocket test finally block, and unwrap first-reply rejection assertions.
|
🦞👀 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: needs changes before merge. What this changesThis PR consolidates test fixtures and removes duplicate assertions across runtime, plugin, and UI suites. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-directed cleanup open; one Gateway test change weakens an explicitly retained wire contract and needs a focused correction. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe changed suites feed synthetic inputs through runtime owners and UI components, then check observable results in hosted CI. flowchart LR
A[Test fixtures] --> B[Runtime owners]
A --> C[UI components]
B --> D[Observed results]
C --> D
D --> E[Contract assertions]
E --> F[Hosted CI]
Technical reviewBest possible solution: Retain the cleanup while restoring observation of every matching Gateway response before asserting the exact sequence. Do we have a high-confidence way to reproduce the issue? Source inspection shows that an accepted, accepted, ok response trace now produces only two collected frames and passes the sequence assertion; no target code was executed. Is this the best way to solve the issue? Fixture consolidation is useful, but the existing raw receive log is the smallest complete way to preserve duplicate-frame detection. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2e836131ee20. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfacePR surface statistics unavailable: the file list is incomplete. 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 26, 2026, 6:53 AM ET / 10:53 UTC. |
* test(cli): deslop o0258 tests Consolidate mutation-free install rejection tables and repeated MCP setup, and simplify parsing and banner assertions without deleting scenarios. Keep all authority, OAuth, lifecycle and plugin contract checks. CI-only validation: plain oxlint, oxfmt and diff checks; no test or coverage execution. * test(cli): trim redundant o0258 proof layers Keep actual owner, lifecycle, OAuth and cold-import contracts. Drop exact animation scheduling inventories and duplicate startup marker rows; reuse temporary-directory cleanup and compact the disk fixture. Config expectation success remains covered by config-cli.integration.test.ts: accepts absent and exact authored expectations. Retain the null edge and all rejection cases here. Plugin compatibility diagnostic details remain covered by loader.runtime-version.test.ts: admits below-floor official runtime according to its release owner. CLI cold inspection still proves incompatible-plugin isolation. Workboard state assertions replace internal RPC method inventories. CI-only validation: plain oxlint exits 0, oxfmt and diff check pass. No test or coverage runs. Cumulative shard reduction remains below 20 percent; retained distinct contracts prevent a safe whole-file deletion. * test(cli): remove remaining o0258 duplicate plumbing Remove the duplicate JSON5 parse-error row; config-cli.integration.test.ts retains the empty-inline-batch case in honors config set batch input selection. Keep CLI callback state validation, all error branches, and real process import/retirement proof. Drop redundant OAuth start call counts and the duplicate update helper export list without changing initialization order. Consolidate argv imports without changing cases. Plain oxlint, oxfmt, and diff checks pass; no test runs. Cumulative reduction is 1565 to 1433 lines and remains below the requested 20 percent. * test(qa-lab): deslop o0259 tests Reuse the runtime parity SQLite transcript fixture without changing root-scoped cleanup. Trim irrelevant prompt-report fixture fields while retaining each drift and precedence assertion. No test cases removed; further cuts in this shard would discard distinct boundary or lifecycle proof. CI-only validation: plain oxlint, oxfmt, and diff check. * test(qa-lab): consolidate o0259 boundary fixtures Cover helper-only warm-cache assertions in the retained SQLite cache-miss test. Combine Control UI loading variants into one observed loading sequence per transcript kind, retaining role, active-pane, privacy and bounded-diagnostic assertions. Keep one surface-drift table row per report source/branch, including hashless descriptions, and retain behavioral drift checks. Reuse existing cold-child and account-start fixtures. Remove copied delivery metadata and argument assertions already checked by the loaded model-switch flow and real failure-aware delivery. Preserve routing collision cases and all lifecycle/identity assertions. CI-only: oxfmt, plain oxlint and diff check; no tests run. * test(qa-lab): use the lab owner for runtime integration Replace the test-only bus, account-start, cancellation and shutdown implementation with startQaLabServer and its native stop path. Retain the normal embedded-runner echo and failure-aware text-only delivery assertions. No test cases removed. Static validation only: oxfmt, plain oxlint and diff check. * test(agents): deslop o0260 tests Consolidate blocked-announcement replay scenarios and represent custody mutations once, retaining every expanded case and existing durability/authority assertion. CI-only campaign: format, plain oxlint and diff checks passed; runtime proof deferred to hosted CI. Safe reduction is 53 of 1571 lines; remaining cases protect distinct settlement, receipt and lifecycle boundaries. * test(infra): deslop o0262 tests Deduplicate credential and subprocess fixtures, use scoped file-handle disposal, and trim unexercised platform package inventory. Retain every test case and all existing outcome assertions. The optional-dependency swap table retains installed-native, missing-optional, and missing-required behavior; isOptionalPackageLink tests membership, not the removed platform inventory. CI-only proof: oxfmt, plain oxlint, and diff checks. This shard is already boundary-dense: 31 lines removed (2.5%), below the 20% target rather than deleting distinct lifecycle, durability, or platform proof. * test(infra): consolidate o0262 boundary fixtures Collapse malformed Git marker variants onto one failed-probe case; the marker-absent path remains in classifies checkout roots, aliases and nested packages. Remove internal probe counts, argument shapes, inventory projections, and timer wiring assertions while retaining visible results. Share one borrowed source for descriptor hashing and copying, with immediate post-hash cursor proof. Keep the memory-import native-mode regression from e834396; the compiled-worker auto/default test does not cover that import. No files or production code deleted. CI-only: oxfmt, plain oxlint, and diff checks pass. Original shard 1258 -> 1155 lines (-8.2%); the 20% target remains unmet because remaining cases cover distinct durability, authority, ordering, error, and platform paths. * test(infra): remove duplicate o0262 package discovery proof The package-only startup case adds no package-specific wrapper branch. Keep package discovery in update-check-status.test.ts (reports kind with lockfiles) and explicit no-Git proof at the nested-package owner boundary. Drop canonicalized-entry receipt wording already proven by the mixed-database test's durable SQL read. Preserve outcome, partial-upgrade, warning, refusal-order and source-retention assertions. CI-only static gates pass; no tests run. Full shard remains 1143/1258 lines, below the requested 20% reduction; remaining cases retain distinct behavior. * test(gateway): deslop o0263 tests Consolidate credential and preference fixtures, reuse the canonical prompt-report builder, and trim handshake payload and assertion plumbing. Preserve all test cases and distinct auth, protocol, worker-write, pairing, and recovery assertions. No runtime or coverage execution under campaign CI-only mode. * test(gateway): finish o0263 structural reduction Remove the CLI test-helper handshake suite: client.handshake tests retain catalog capability negotiation, signed fallback nonces, and request/reconnect framing; test-helpers.acquisition retains token/nonce forwarding. Remove only its two inventory entries. Retain bootstrap privacy assertions while leaving interval timing to control-ui-document-diagnostics and anonymous identity exclusion to control-ui.http. Probe-auth retains remote password survival. Consolidate group discovery into a warm/cold above-cap flow, paging into a two-branch table, and shared attribution policy into local cases with repository publication/revocation/replay checks. Shard test LOC: 1335 -> 1068 (20 percent); follow-up: 1282 -> 1068. Plain oxlint, oxfmt, and diff checks pass. No tests, coverage, or type-aware checks run under CI-only instructions. * test(sessions): deslop o0261 tests Remove the duplicate bounded-pairing block from session-model-context-window.test.ts. The same ownership, overflow, synthetic-result, retained-frame, and recovery cases remain in session-model-context-pairing.test.ts against the real production limits; the deleted copies still passed limits removed in b39303c. Share cold-storage preparation, report-fact fixtures, transcript persistence, and turn expectations without removing distinct storage or authority assertions. Shard LOC: 1757 to 1579 (10.1%); declarations: 47 to 37. Below the 20% target to retain distinct contracts. CI-only: plain oxlint, oxfmt, and diff checks passed; no tests or coverage run. * test(sessions): consolidate o0261 branch fixtures Share self-copy and cross-encoding generation fixtures while preserving full source snapshots, exact trajectory bytes, encoding conversion, and fingerprints. Use one scope-lifetime matrix for consumer/prepared guards and remove redundant acquisition call-count assertions. Remove JSON.parse duplicate-key rows: retained assistant-ID and malformed-message link cases cover the projector inputs after parsing, including null-parent links. Keep single-message, even batch, and odd multi-chunk turn representatives; sizes 2 and 3 add no decision branches beyond 4 and 513. Additional shard LOC: 1579 to 1522; original baseline1757, total reduction13.4%, below20%. Remaining durability, authority, and lifecycle assertions retained. Plain oxlint, oxfmt, and git diff checks passed. CI-only: no tests or coverage run. * test(sessions): finish o0261 structural consolidation Share freshness scenarios, cold-storage fixtures, and worker cleanup while preserving lifecycle, durability, and snapshot assertions. Reduce report-fact variants to distinct projection branches. The removed opaque preparation probe is covered at the real SDK boundary by session-entry-patch.test.ts: retains synchronous SDK entry reads inside an opaque last-route commit guard. Normalized run ownership remains covered by transcript-events.test.ts. Prior pairing deduplication remains covered by session-model-context-pairing.test.ts. CI-only validation: plain oxlint, oxfmt, and git diff --check passed; no tests or coverage run. Shard LOC: 1757 baseline -> 1405 (20.03% reduction), down from 1522 before this commit. * test(doctor): deslop o0264 tests Consolidate mutation-mode cases and shared selector and plugin fixtures while retaining every distinct policy, credential, and migration assertion. Remove a redundant model-only X search no-op probe already covered by the enabled model-only case. CI-only campaign: local formatting, diff checks, and plain oxlint; behavioral proof remains with hosted CI. * test(doctor): reduce o0264 migration test layers Consolidate same-branch allowlist and web migrations, share model and plugin fixtures, and assert user-visible repair results instead of repeated diagnostic inventories and intermediate object shapes. Preserve distinct authorization, privacy, source precedence, and model-blocking checks. The xAI session wrapper replay is covered by doctor-retired-models.test.ts: repairs session choices and model-derived state while preserving Platform pins. Keep the xAI subscription resolver and custom-endpoint cases here. CI-only validation: oxfmt, plain oxlint, and git diff --check. No tests or coverage run. Shard total is 1243 lines, down from 1557 at the campaign baseline. * test(browser): deslop o0265 tests Keep successful reconnect ownership in 'ignores overtaken screenshots', including the changed URL. Shared Solid icon and StrokeIcon tests retain SVG defaults and namespace proof, so remove the toolbar replay. Reuse panel cleanup and local favicon/download assertions. CI-only audit; all distinct startup, recovery, capture, resize, and security cases retained. * test(browser): consolidate o0265 rendered panel suites Move hosted tabs and backend recovery into the protected toolbar suite without changing Vitest project routing. Share capture pinning and backend retry setup through branch tables, preserving all expanded cases. Remove redundant stream request counts where outcome assertions prove reconciliation and navigation. CI-only: formatting, diff checks, and plain oxlint; no tests run. * test(browser): share o0265 fixtures and trim redundant projections Reuse the strict panelScenario dispatcher for viewport and touch input, including action-body observation. Share native panel construction and trim the bridge/error fixture. Retain rendered tab labels, favicon updates and multi-panel DOM associations instead of copied getter projections and repeated ARIA assertions. Keep every lifecycle, input, resize and sanitization case. CI-only: plain oxlint, oxfmt, and diff checks; no tests run. * test(qa-lab): deslop o0267 tests Reuse the Matrix sync fixture for top-level reporting and compact approval fixtures without dropping flow, target, or report assertions. Keep stale-sidecar rejection in the accountId/userId cursor-selection cases before seeding the valid target, retaining both identity rejection and unrelated-state preservation checks. * test(qa-lab): consolidate o0267 scenario proof Remove verbatim progress diagnostics tables already covered by scenario-runtime-tool-progress-diagnostics.test.ts. Keep its event-scope and gate lifecycle tests. Consolidate media cases into scenario-runtime-thread.test.ts with one room fixture and real synthetic HTTP image delivery; carry the shared preview Unicode assertion into timeout diagnostics. The mentioned-room row covers the identical room-override top-level path. Trim internal deadline and copied report-shape assertions while retaining approval IDs, decisions, targets, and ordering. * test(chat): deslop o0266 tests * test(chat): consolidate o0266 branch coverage Keep one representative per reply-preview, workspace-label and subagent presentation branch. Consolidate download retirement into pending, completed and disconnected settlement cases while retaining stale-result, abort and delivery checks. Retained stronger coverage: - chat-attachments.test.tsx: retains focused pasted-text actions when a peer read completes and uses current controls. - chat-pasted-text-sidebar.test.tsx: handles the pasted file card restore and preview actions independently. - chat-session-discussion-toggle.e2e.test.ts: keeps a cross-origin discussion in sync when the real host color scheme changes. - widget-theme.test.ts: shares one token sample across frames and refreshes mounted widgets on root changes. - session-discussion-panel.open-flow.test.ts: preserves a held discussion read and frame theme updates across same-turn moves. - chat-startup-progress.e2e.test.ts: shows snapshot, first preparation, and capture in one startup line. - chat-view.contention.test.ts: keeps Stop available during waiting_for_state. - chat-pane-run-activity.test.ts: keeps child counts and the request timer through roster hydration and settlement. Static validation only under the campaign CI-only budget: oxfmt, diff check and plain oxlint. * test(auto-reply): deslop o0268 tests Keep code indentation, literal NO_REPLY and multiline prepared-text cases as the sanitizer pass-through proof. Remove five input variants that traverse the same metadata-strip and trim path; preserve all custody, redaction, media recovery and explicit-threading assertions. Table the existing structured-media cases without dropping assertions. CI-only campaign: oxlint, oxfmt and diff checks pass; runtime proof deferred to hosted CI. Shard remains below the reduction target because other files protect distinct authority, recovery and lifecycle paths. * test(auto-reply): deslop o0268 tests Remove duplicate layers, retain distinct boundary assertions. Custody authority is covered by delivery-completion.integration.test.ts: retains the writer in queued custody after a channel transforms a direct final. Restart readiness is covered by restart-recovery-claim.lifecycle.test.ts: settles restart readiness without adopting successor facts. Media prompt plumbing is covered by reply.media-note.test.ts: includes all MediaPaths in the agent prompt. Gateway containment and staged bytes remain covered by chat-reply-media.workspace.test.ts: uses session media permissions before configured containment. ACP mode/text shapes remain in commands-acp.test.ts and dispatch-acp.test.ts; this shard retains attach identity and completion assertions. Keep native/normal precedence, queued revocation, accounting authority and binding-order cases. Remove the unused warm-up turn, one same-branch SSH Markdown variant, and internal call-shape duplication. CI-only: formatting, plain oxlint and diff checks pass; no tests or builds run. * test(auto-reply): deslop o0268 tests Inline the sole remaining fast-runtime invocation with its minimal routing input, remove the obsolete WhatsApp registration and generic fixture, and retain both structured command precedence branches. Remove the unused ACP diagnostics snapshot mock; admission still asserts complete identity evidence and completion. Table failed-fallback outcomes and focus runner thread tests on their distinct thread result; effective-reply-route.test.ts covers the channel/destination/account tuple. CI-only: oxfmt, plain oxlint and diff check pass; no runtime tests or builds run. The shard remains above the requested 20 percent reduction threshold; unique accounting, binding, identity and recovery boundaries remain retained. * test(codex): deslop o0269 tests Keep schema forwarding in the explicit schema-dialect fallback cases; successful bounded-turn completion remains covered by the mandatory-hooks case in bounded-turn.test.ts. Share fallback guard setup without removing deadline or authority assertions. Remove cancellation teardown already owned by useClientHarnesses and the WebSocket test finally block, and unwrap first-reply rejection assertions. * test: preserve boundary contracts and repair batch fixtures * test: restore required mock and configuration fixtures * test(doctor): retain grandfathered legacy manifest fixture * test: prune retired update mock baseline * test(ui): scope snooze focus checks to their menu
What Problem This Solves
Reduces duplicate test layers and repeated fixtures across CLI, QA Lab, agents, sessions, infrastructure, Gateway, Doctor, browser, chat, auto-reply, and Codex tests (batch d604).
User Impact
No intended user-visible or product-runtime behavior change. This is test/support cleanup; distinct current-main authority, retirement, native-mode, and migration regressions are retained.
Why This Change Was Made
Consolidate proof at its owning boundary and reuse existing fixtures. Replayed onto main
54408a978fc91fd20130b6f904534b47c8dfe25a. Applied 28 of 30 supplied commits, preserving commit messages. No production runtime files changed. Total diff: +2,994 / -4,738 (net -1,744) across 87 files. Test files: +2,941 / -4,679 (net -1,738); test-support fixtures: +53 / -58 (net -5); CI test inventories: 0 / 0; exact stale mock-baseline rows: 0 / -1; product code: 0 / 0.Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <88 existing changed files>: passed.node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>: exited 0.git diff --check 54408a978fc91fd20130b6f904534b47c8dfe25a: passed.openclaw/ci-gateis the test proof and merge gate. Local test wall time: not run; hosted timing belongs to the attached CI run.Replay decisions
a884c06b6216: local requester-wake batch fixture was already present; conflict resolution was empty.57a2238d414d: broad requester-wake consolidation overlaps newer main retirement, yielded-wake, and cleanup cases. Kept main and the earlier o0260 cleanup; did not delete the standalone queue-receipt/ended-hook suites.a08ad5cac251: dropped only update-CLI helper export cleanup; main already centralizes exports and has additional consumers.169b79fcb96c: retained all newer native-mode parameters while sharing the module URL fixture.9547f02d452f: dropped its subsequent fs-safe rewrite, keeping those expanded main cases intact.679cb20c6b94: retained main's explicit malformed assistant payload when sharing report-fact fixtures.3a47aca1265dand05430e0047f9: dropped conflicting source-authority/report-facts rewrites; retained newer main scoped-guard coverage and report-fact payloads. Other independent hunks applied.1e4df24b91b4: dropped xAI retirement-file changes to keep newer pinned-account, policy, and session-repair cases.821b955112d2: used the real Matrix event normalizer plus existing message fixture for the retained current-event predicate test.37c4719fbfee: dropped cancellation-file cleanup because main still owns explicit client teardown and no longer uses the campaign's shared harness. Other schema/first-reply changes applied.Review and first-head CI corrections
The full-diff independent review reported four findings. Accepted three: restored ordinary restart-recovery armed/unarmed assertions, anonymous root-document bootstrap non-disclosure, and the live CLI handshake suite plus both CI registrations. Rejected the locale-registration finding:
ui/src/pages/chat/components/chat-pasted-text.tsxitself imports and callsregisterEnglishCatalog(registerChatComposerEnglish); duplicating that registration in the test is unnecessary. A second independent review of the corrective delta returned scoped-clean at P0-P2.First-head CI run 40299124689 exposed two batch-caused errors:
assistantRequestwas a stale helper name in the session-window test, and the workspace-revocation table callback incorrectly assumed a second test-context argument. Corrected the helper toassistantand dropped the workspace-file hunk entirely, retaining main's original signal-aware loop and assertions. These caused two typecheck jobs and two test jobs to fail; no pre-existing-failure exemption claimed. Formatting/plain lint/diff checks passed again; fresh-head hosted CI is required.Second-head CI run 40300171042 found three further batch failures. Restored the Matrix fetch fixture's
vi.fnwrapper: the runtime intentionally recognizes mocked global fetch, so the plain function had bypassed it and reached Undici. Restored string-body narrowing and removed four awaits on the synchronous temp-directory helper to satisfy hosted type-aware lint. Dropped the Doctor install-health rewrite entirely to preserve its configured Matrix homeserver and discovery fixture. A third independent review of these corrections returned scoped-clean at P0-P2. Plain lint, formatting, and diff checks passed again; no local tests or typechecks were run.Third-head CI run 40301781873 passed the prior failing tests/type/lint checks but rejected the touched, grandfathered partial manifest-registry mock in the legacy Doctor fixture. Dropped that file's cosmetic rewrite; its bytes now exactly match pinned main (verified by an empty base diff). The focused review requested reverting the rewrite; that finding was rejected as a reversed interpretation of the supplied restoration diff, since the requested restoration was already present. No mock suppression or weaker assertion was added. The other remaining checks were still pending at this correction.
Fourth-head CI run 40303617523 identified the next mock-exports maintenance item: the exact baseline tuple for the removed
./update-global.jsmock insrc/infra/update-install-status.test.ts. Verified the mock was absent and removed only that stale tuple fromconfig/test-mock-exports-baseline.txt, as the hosted guard requested. Independent review of this shrink-only deletion returned scoped-clean at P0-P2; plain lint and diff checks passed. No baseline expansion or test weakening.Fifth-head CI run 40305984630 passed the mock-baseline correction but hit an unrelated WebKit test-isolation failure in
ui/src/components/session-menu.browser.test.ts: the page-global Date and time label locator matched both a retained invalid input and the current menu's input. The three recent hourly main runs passed that shard, so no pre-existing-failure exemption is claimed. Scoped the re-resolving locator to the mounted menu, preserving both focus checks and the picker replacement assertion. Independent review returned scoped-clean; plain lint, formatting, and diff checks passed. This one-line CI repair adds one changed test file outside the original shard inventory, with zero net LOC or declaration change.Per-shard replay totals
Counts below cover only changed test/support files on the pinned base, not untouched shard files. Declarations are a static syntactic count of test calls, not expanded or executed cases. Metadata-only inventory lines are excluded from test LOC.
Changed files by shard
o0258
src/cli/argv.test.tssrc/cli/claw-banner.test.tssrc/cli/cold-command-plugin-imports.process.test.tssrc/cli/config-set-input.test.tssrc/cli/mcp-cli.login-loopback.test.tssrc/cli/plugins-cli.cold-inspect.test.tssrc/cli/plugins-install-preflight.test.tssrc/cli/runtime-cleanup-scope.retirement.test.tssrc/cli/startup-trace.test.tssrc/cli/workboard-owner.test.tso0259
extensions/qa-lab/src/agent-run-identity-repeated-turn-child.process.test.tsextensions/qa-lab/src/evidence-environment.test.tsextensions/qa-lab/src/harness-parity.test.tsextensions/qa-lab/src/harness-runtime.integration.test.tsextensions/qa-lab/src/runtime-parity-cache-diagnostics.test.tsextensions/qa-lab/src/scenario-catalog-channel-routing-proof.test.tsextensions/qa-lab/src/scenario-catalog-model-switch-tool-continuity-proof.test.tsextensions/qa-lab/src/scenario-flow-runner.control-ui-image.test.tso0260
src/agents/subagents/completion/subagent-completion-admission.requester-wake.test.tssrc/agents/subagents/completion/subagent-completion-replay.test.tso0261
src/config/sessions/conversation-identity.test.tssrc/config/sessions/entry-freshness.test.tssrc/config/sessions/session-accessor.sqlite-generation-copy.test.tssrc/config/sessions/session-accessor.sqlite-worker-request.test.tssrc/config/sessions/session-cold-storage-worker.test.tssrc/config/sessions/session-model-context-window.test.tssrc/config/sessions/session-transcript-report-facts.test.tssrc/config/sessions/session-turn-count.test.tssrc/config/sessions/transcript-recent-text.test-support.tso0262
config/test-mock-exports-baseline.txt(one stale tuple removed; excluded from test LOC)src/infra/file-descriptor.test.tssrc/infra/fs-safe-defaults.test.tssrc/infra/package-update-swap.optional-dependencies.test.tssrc/infra/sqlite-database-admission-turn.test.tssrc/infra/state-migrations.caller-mode.mixed-databases.test.tssrc/infra/transport-ready.test.tssrc/infra/update-candidate-state.local-schema.test.tssrc/infra/update-check-install-kind.test.tssrc/infra/update-install-status.test.tssrc/infra/update-runner-git-node-preflight.test.tso0263
src/gateway/auth-surface-resolution.test.tssrc/gateway/control-ui-bootstrap-document.http.test.tssrc/gateway/github-pr-attribution.test.tssrc/gateway/node-pending-work.test.tssrc/gateway/server-methods.channel-identities.test.tssrc/gateway/server.agent.rpc-contracts.test.tssrc/gateway/server.sessions.inbound-worktree-writer.test.tssrc/gateway/session-group-mutation-targets.test.tso0264
src/commands/doctor/shared/allowfrom-fallback-migration.test.tssrc/commands/doctor/shared/codex-route-music.test.tssrc/commands/doctor/shared/config-mutation-state.test.tssrc/commands/doctor/shared/context-engine-plugin-id-selector.test.tssrc/commands/doctor/shared/exec-safe-bins.test.tssrc/commands/doctor/shared/legacy-config-migrations.runtime.retired.memory-qmd.test.tssrc/commands/doctor/shared/legacy-config-migrations.runtime.tool-policy-conflicts.profiles.test.tssrc/commands/doctor/shared/legacy-web-tools-migrate.test.tso0265
ui/src/components/browser/browser-panel-controller-viewport-sync.test.tsui/src/components/browser/browser-panel-hosted-tabs.test.tsui/src/components/browser/browser-panel-recovery.test.tsui/src/components/browser/browser-panel-stream.test-support.tsui/src/components/browser/browser-panel-stream.test.tsui/src/components/browser/browser-panel-toolbar.test.tsui/src/components/browser/browser-panel-touch-input.test.tso0266
ui/src/pages/chat/components/chat-attachment-download.test.tsui/src/pages/chat/components/chat-details-subagents.test.tsxui/src/pages/chat/components/chat-message-stream.solid.test.tsxui/src/pages/chat/components/chat-pane-header-workspace.test.tsui/src/pages/chat/components/chat-pasted-text.test.tsxui/src/pages/chat/components/chat-reply-preview.test.tsui/src/pages/chat/components/chat-transcript-lazy-rows.test.tsxui/src/pages/chat/components/session-discussion-panel.test.tso0267
extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-environment.observation.test.tsextensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-approval.test.tsextensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-cli-runtime.test.tsextensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-media.test.tsextensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-shared.test.tsextensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-state-files.test.tsextensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-thread.test.tsextensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-tool-progress.test.tso0268
src/auto-reply/reply/acp-attach-identity.test.tssrc/auto-reply/reply/agent-runner.media-ownership.test.tssrc/auto-reply/reply/get-reply.fast-path.runtime.test.tssrc/auto-reply/reply/pending-final-delivery.test.tssrc/auto-reply/reply/reply-media-paths.ssh.test.tso0269
extensions/codex/src/app-server/bounded-turn-output-schema.test.tsextensions/codex/src/app-server/mcp-app-first-reply.test.ts