Repository navigation
test(core,plugins,ui): remove low-value tests (batch d605) - #184459
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. |
Remove the byte-identical residual-history cases from retry: doctor-session-sqlite.residual.test.ts retains all four cases and assertions. Replace the mocked status snapshot layer with explicit local/admitted/remote/error branch cases. Doctor per-store output in doctor-database-diagnostics.test.ts retains real admitted text/JSON projection; status-overview-rows.test.ts and status-json-runtime.test.ts retain formatting and JSON assembly proof. Reuse the canonical-repair fixture, compact the model audit fixture while keeping persistence and rematerialization checks, and remove internal inventories, call-shape checks and redundant setup assertions. Shard test/support LOC: 1668 to 1334 across both commits. Plain oxlint, oxfmt and diff-check passed; no tests or coverage run in CI-only mode.
Share timed stream completion assertions, ADC reset setup, and HTTP auth assertions while retaining every distinct lifecycle and credential path. No cases deleted. CI-only validation; the shard remains below the 20 percent reduction target.
Consolidate registered media request proof, voice finalization and empty-response proof, stream termination fixtures, ADC retry setup, and provider policy tables. Keep auth, redaction, endpoint, MCP, cancellation, and recovery assertions. Network overflow teardown remains covered by the overflow row of src/infra/net/fetch-guard.release.test.ts: ends only the request while a captured sibling keeps its pooled transport. Google media still proves its 16 MiB cap and response-stream cancellation with the shared streaming fixture. Removed model-classification replays remain covered by extensions/google/provider-models.test.ts: keeps non-chat Gemini surfaces out of text discovery and forward compatibility; classifies only ordinary Gemini generation ids for native video. CI-only: formatting, diff checks, and plain oxlint passed; no tests run. Original shard 1190 lines to 951 lines.
Keep side-question restriction assertions in the native harness policy matrix; its conversation-deny case now also covers the former specific-denylist replay. Reuse the lifecycle attempt-result fixture without adding diagnostic state. Remove run-registry setup from transcript projection tests: the owner only reads message and provenance facts, and the retained quiet-artifacts case covers every visibility branch. Preserve all authority, relay, deadline and lifecycle cases. CI-only: formatting, plain oxlint and diff checks; runtime proof deferred to hosted CI.
Remove duplicate model merge assertions covered by model-provider-config.test.ts (fills omissions but preserves authored API/headers) and scoped parameter variants covered by model-extra-params.test.ts plus openai-routing.test.ts (fixed-store owner). Keep harness-specific explicit runtime, implicit routes, prepared overrides and pre-model defaults. Selection.test.ts preserves disabled tools, additive plugin grants, wildcard allowlists and overlapping runtime glob handoff semantics. Keep sender lifetime assertions with the sender denial test. Share the native and legacy deadline timeline, and prove continuation rejection, accepted dispatch and source revocation in one maintenance-authority lifecycle. CI-only: formatting, plain oxlint and diff checks; no runtime tests.
Keep policy tests at the prepared-policy boundary; model-runtime-policy, openai-routing and harness selection suites cover config parsing and concrete routing. Keep finalizer tool denial, ambient stripping, transcript callback custody and lifecycle notifications; drop internal flag inventory duplicated by attempt prompt/session tests and the child finalization-scope integration. Diagnostic owner tests cover classification and tool-definition tests cover metadata. Retain the actual nested Code Mode lifetime, completion/abort and stale-threshold assertions. Merge duplicate scheduled prose visibility into the artifact case, preserving each role and error path. Reuse relay defaults, lifecycle fixtures and turn identity/status builders, remove redundant mock cleanup and predicate assertions. No production edits. CI-only: plain oxlint, oxfmt and diff checks pass; no test runs. Shard total 1445 -> 1156 lines (20 percent).
Remove unused CLI fixture exports, share speed resolver setup, and consolidate dynamic-model spies. Inline the delegated preparation barrier without changing its authority assertions. Selected-route recovery remains covered by skips unused hook context while preserving selected-route recovery; uses each selected model policy retains hooked runtime recovery checks. Keep distinct approval, custody, transport, and lifecycle cases. CI-only campaign: static lint, formatting, and diff checks; no runtime or coverage execution.
Remove five explicit-candidate replays duplicated by the same named tests in live-model-explicit-candidates.test.ts. Keep all three prioritized dynamic resolution paths and their context, normalization, ordering and no-network assertions. Retain parameter merging in the sole-hook context test and explicit/invalid tiers in extensions/anthropic/fast-mode-policy.test.ts. Receipt configured equivalence and provider fallback remain in terminal-preparation.run-stats.test.ts; producer response formatting remains in the shared-fallback run-entry test. Trim duplicate helper counts and fixture layers without removing approval, sanitization or redaction boundaries. Original shard: 1698 lines; after first commit: 1581; final: 1358 (20.02 percent reduction). CI-only: formatting, diff check and plain oxlint passed; no tests or coverage run.
5cb127a to
fc4ab93
Compare
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures and removes duplicate assertions and scenarios across core, plugins, and the Control UI. Example: Test cleanup
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this is useful maintainer-directed cleanup, but one distinct Codex schema-fallback negative control should be restored before merge. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe changed test suites supply synthetic inputs to production owners and check routing, authority, persistence, lifecycle, and UI behavior through assertions consumed by CI. flowchart LR
A[Test scenarios] --> B[Shared fixtures]
B --> C[Production owners]
C --> D[Boundary assertions]
D --> E[CI gates]
Technical reviewBest possible solution: Keep the fixture reductions while retaining both generic HTTP 400 and schema-worded HTTP 429 rejection cases in the existing Codex boundary test. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the lost negative control: matching any HTTP 400 would satisfy the retained positive and 429 cases while incorrectly retrying a generic 400; no tests or mutation experiment were run. Is this the best way to solve the issue? Consolidating fixtures around existing owners is appropriate, but status-code rejection and schema-message rejection are independent controls and should remain separate table rows. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eb9f9fa1dc31. 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, 7:46 AM ET / 11:46 UTC. |
…184459) * test(codex): reduce o0269 fixture scaffolding Move usage clock and TTL inputs into the existing case table and replace repeated response dispatch branches with an exact-key fixture map. Replace three partial-module prewarm mock factories with scoped spies, retaining auth and authority assertions. Keep fallback authority coverage in preserves authority across schema fallback instead of duplicating its factory call-shape assertion. Shorten the synthetic receipt while keeping admission and continuation assertions. * test(codex): remove duplicate o0269 boundary replays Timeout classification remains covered by attempt-startup's clears the shared app-server when a startup RPC times out and client-startup-lifetime's fork timeout preserves a peer through the exact late response; cancellation cases keep the negative classifier checks. Consolidate probe success around both configured and inherited SQLite state while keeping macOS preflight and all managed-policy refusals. Keep the schema-like HTTP 429 as the representative non-schema rejection path. Reuse the existing OAuth fixture with the original long expiry. * test(node-host): deslop o0271 tests Share heartbeat interval/skew cases and local identity setup; compact worker frame parsing without dropping protocol cases. Remove only the socket test's self-authored order ledger and duplicate marker read: child exit still precedes socket EOF, and the final marker plus no-local-run assertion retain the no-replay proof. Preserve security, cancellation, identity isolation, and lifecycle assertions. CI-only campaign: formatting and plain oxlint checked locally; execution deferred to hosted CI. * test(node-host): consolidate o0271 fixtures and lifecycle cases Consolidate seed absence/freshness/replacement into the existing snapshot lifecycle, and move the pre-aborted bridge request case into worker.test.ts's shared client fixture. Keep one initial policy row per security/ask decision path plus all tightened-policy source boundaries. Drop duplicate signed-envelope validation from the no-replay test: src/infra/exec-host.socket.test.ts's real UDS boundary covers it. Preserve actual child execution, UNKNOWN reporting, and no local replay. Reuse native server disposal and state-database fixture cleanup without changing mock surfaces. CI-only: plain oxlint, oxfmt, and diff checks pass. No test runs. Total shard remains below the requested reduction: 1423 to 1332 lines; distinct remaining security and lifecycle proof prevents a safe whole-file deletion. * test(node-host): shrink o0271 fixture scaffolding Reuse the existing registerCommands fixture for exec-policy tests, table cancellation setup, fold independent cache-root assertions into the cached-identity scenario, and replace the signal test's fake shutdown implementation with a direct ordering assertion. Keep all distinct authorization, identity, and shutdown checks. CI-only: oxfmt, plain oxlint, and diff checks pass; no tests run. Shard is 1423 to 1291 lines, still short of 20 percent. No whole-file deletion has a behavior-complete keeper within the authorized shard. * test(imessage): deslop o0273 tests Remove the unused runInboundWithDispatch test adapter (repository-wide search has no callers), inline single-use replay fixtures, use the real approval error classifier, and share conversation allowFrom setup while retaining rejection and reply-context assertions. Canonical chat-id and group-GUID identity rows are covered by the retained direct-session and group-session tests in session-route.test.ts; the formatted phone row retains canonical phone coverage. No production changes. CI-only: plain oxlint, oxfmt and diff-check passed; tests and coverage deferred to hosted CI. Lines 1439 -> 1300 (9.7%); remaining cases protect distinct authority, recovery, installer, debounce and routing behavior. * test(imessage): consolidate o0273 branch coverage Consolidate watcher/database ownership and installer fixtures into branch tables; share native prompt assertions and remove redundant wrapper and call-shape checks. Preserve authority retirement, cleanup order, receipt recovery, explicit approvers, and durable replay assertions. Coverage owners: session-route.test.ts routes configured service targets and keeps explicit targets on direct/group sessions, covering the removed SMS parsing and inference probes. Its direct GUID lookup and native group row cover the duplicate group GUID row. The alias presentation case now also asserts noncanonical identity. The remaining prefixed GUID allowFrom row covers the removed unprefixed row through recursive parsing. Approval handler runtime tests retain the exact authorized tapback request and transient retry decision assertions; approval-reaction-poller.test.ts expectResolution retains exec identity fields. Durable replay keeps identical request redelivery, no chat fallthrough, outstanding claims and completion deduplication. SQLite recovery retains all fixture rows and its caller-thread calibration; only the duplicated fixture-content assertion is removed. CI-only: oxfmt, diff-check and plain oxlint pass. No tests, coverage, builds or check-changed ran. Shard lines 1439 -> 1151 overall (20.01%); this additional commit removes 149 lines from 1300. No production changes or deleted files. * test(process): deslop o0272 tests Share process-identity setup and resource close sequencing while preserving all 50 cases. The 20% reduction target is not reached: the remaining tests cover distinct admission, cleanup, transport, runtime-diagnostic, and lifecycle-ordering paths. Static lint and formatting only under campaign CI-only mode. * test(process): consolidate o0272 broker fixtures Merge startup, failed-spawn, and partial-handoff siblings without removing their cases. Exercise asynchronous startup fallback at its broker owner instead of replaying the Gateway harness; Gateway wiring remains covered by server.spawn-broker.test.ts: owns startup callbacks and shutdown with native Bun transport. Keep framing, PID identity, admission, pending native close, and deadline-settlement paths. CI-only validation: oxlint, oxfmt, and diff check; no tests run. * test(process): shrink o0272 diagnostic and socket fixtures Retain startup failures at the real broker boundary with a shared diagnostic table. Merge resource framing and EOF into one socket conversation, and replace resource-server network doubles with real socket traffic. Preserve native-close joining and duplicate owner-message rejection. Remove mock-supplied Execa fidelity assertions covered by execa.test.ts 'matches buffered %s results and errors'; retain every deadline state and both serialization paths. Remove the now-unused context runtime helper and its declaration entry. Static validation only under CI-only campaign rules; no test execution. * test(infra): deslop o0274 tests * test(infra): remove redundant o0274 proof layers Keep Windows tool path proof in windows-diagnostic-env and windows-process-start; APNs decoding in push-apns.store; media normalization in session-accessor.sqlite-transcript-store. Keep Tailscale readiness and clean-stop proof in the process-boundary cases. Remove mock-written artifact echoes and repeated schema inspection. * test(infra): consolidate o0274 fixture ownership Isolate warning probes while preserving the current runtime for suppression checks. Reuse the compile-only SQL facade and share transcript verification and conflict assertions without removing cases. * test(chat): deslop o0270 tests Share question and placement fixtures, companion assertions, scroll setup, and pasted-text selectors. Table the two payload-release paths while preserving all 54 expanded cases. No production or shared-support changes. CI-only audit: 1566 to 1545 lines (1.34%). The 20% target is not met: retained cases protect distinct admission, recovery, ownership, policy, lifecycle, and UI behavior. Static oxlint, formatting, and diff checks pass; runtime proof is deferred to hosted CI. * test(chat): consolidate o0270 owner-boundary tests Remove duplicate in-card restore coverage retained by components/chat-attachments.test.tsx (retains focused pasted-text actions when a peer read completes and uses current controls) and e2e/chat-pasted-text-show-in-text-field.e2e.test.ts (restores pasted text directly from the composer). Keep icon activation, sidebar removal, and all stale-action guards. Keep client retirement and pending-answer interleavings in the companion pane table. Hydration recovery remains in chat-session-companion-history.test.ts (reconciles a late answer into the earlier failed turn without consuming an old answer). Model reconnection remains in chat-pane-model-catalog.test.ts (retains model selection through a blip, fences late reads, and clears on client replacement). Transcript loading edges remain in chat-pane-transcript-loading.test.ts. Remove annotation composer-owner replay covered by chat-pane-browser-annotation-lifecycle.test.ts (invalidates annotation Undo when the logical Gateway client is replaced). Timeout retry remains in chat-pane-transcript-loading.test.ts (automatically restores live observation after a subscription timeout without a composer error); keep mutation-admission retries and selection, connection, rejection, upgrade, and disposal fences here. Use the mounted-pane send response handler instead of a request forwarding spy, and table shared policy retirement and activity visibility setup. CI-only: plain oxlint, formatting, and diff checks pass; no tests or coverage run. Shard total is 1566 to 1416 lines, below the requested 20 percent reduction because remaining cases retain distinct boundary behavior. * test(chat): remove duplicated o0270 test layers Use the existing composer fixture for disclosure ownership instead of a hand-built root and renderer. Retain draft versus focus defaults, readiness replacement, reconnect disclosure, and focus return. Collapsed summaries and queued arrival/navigation remain covered by ui/src/e2e/chat-async-questions.e2e.test.ts: keeps async arrivals nonblocking and preserves their queue through a blocking question; keeps the docked question and composer within a 390 px viewport. Remove the compaction producer/consumer replay from chat-history.recovery-status.test.ts. The producer contract remains in src/gateway/server-chat-state.test.ts: replays the latest recovery compaction after an attempt failure (summary). Active/completed/stale compaction remains in tool-stream-fallback.node.test.ts: keeps newer compaction active after stale events. Generic history event replay remains in chat-history.inflight.test.ts: restores cleared activity alongside an owned run. Retain the history-specific retry/fallback sequence and omitted model-wait regressions. Use per-test spies instead of partial module factories for annotation Undo, trim unrelated finished-run recovery setup and duplicate fixture assertions, and reuse canonical queue and pane parameter builders. Keep all negative outbox admission checks and payload/focus ownership assertions. The final empty-port scroll probe could not detect a leaked listener; the retained disconnect probe still has connected registered ports and does detect stale painting. CI-only: no tests, builds, coverage, or Testbox runs. Plain oxlint, oxfmt, and git diff --check pass. Shard lines: original 1566, prior commit 1416, now 1251 (20.11 percent cumulative reduction). No production files or Vitest routing changed. * test(ui): deslop o0275 tests Share request-match option types and expanded-section polling without removing assertions or changing fixture data. Retain all layout checks used by workboard-sidebar.e2e.test.ts and codex-sessions.e2e.test.ts. Remaining shard helpers own distinct lifecycle, readiness, permission, and fixture contracts; no safe 20% structural cut found. * test(ui): trim unused o0275 fixture behavior Drop the unused board presentation fixture pinning algorithm and reject unconfigured pins explicitly. Pinning remains covered by the scoped RPC and event identities test in ui/src/lib/board/provider.test.ts. Preserve snapshot, operations, grants, frame, and command behavior used by presentation consumers. Reuse createInitialDevicesState for duplicated device and exec-approval defaults. Keep the paired-list fixture and view-specific defaults unchanged. CI-only validation: plain oxlint, formatting, and diff check. * test(openrouter): deslop o0277 tests Consolidate catalog, request, response and media fixtures while preserving all cases. Keep transport auth and private-network assertions at the outgoing request boundary; remove duplicated internal resolver call-shape checks. Catalog mapping retains the unified catalog contract; video submission retains polling, download, metadata and binary assertions. Speech and transcription suites remain unchanged. * test(gateway): deslop o0276 tests Reuse the existing successful-session request assertion, centralize probe mock cleanup, and remove the duplicate model-patch input assertion already enforced by fixture.project. Retain all distinct authority, lifecycle, and persistence cases. * test(gateway): consolidate o0276 owner-boundary proof Keep shutdown metadata locally; server-kernel's readiness/sidecar lifecycle test and server-startup-lifetime's deferred-failure test cover ordered joins and retained failures. restart-trace covers trace thresholds. TerminalSessionManager's overlapping-drain test owns exit settlement, and its shared-session test owns size/finalization; retain Gateway counts and holder identities here. Drop the slow-subscriber replay: server-broadcast.transport's delivery-loss table owns dropping, device-bootstrap's consume/confirm test owns persisted recovery, and connect-hello.setup-completion covers delivery ordering. Keep access metadata and token redaction here. Dashboard title's contended-renamed case owns manual-label preservation. Remove assertion-helper success probes and duplicate account-policy combinations. Replace simulated lifecycle commits with the existing native compound-worker fixture. Retain rejection, exact runtime publication, stale session identity, and activity owner assertions. Keep the live-probe invalid-clock regression from 963533f. CI-only: formatting, diff check, and plain oxlint passed; no tests run. * test(commands): remove duplicate o0280 proof layers Remove the byte-identical residual-history cases from retry: doctor-session-sqlite.residual.test.ts retains all four cases and assertions. Replace the mocked status snapshot layer with explicit local/admitted/remote/error branch cases. Doctor per-store output in doctor-database-diagnostics.test.ts retains real admitted text/JSON projection; status-overview-rows.test.ts and status-json-runtime.test.ts retain formatting and JSON assembly proof. Reuse the canonical-repair fixture, compact the model audit fixture while keeping persistence and rematerialization checks, and remove internal inventories, call-shape checks and redundant setup assertions. Shard test/support LOC: 1668 to 1334 across both commits. Plain oxlint, oxfmt and diff-check passed; no tests or coverage run in CI-only mode. * test(google): deslop o0279 tests Share timed stream completion assertions, ADC reset setup, and HTTP auth assertions while retaining every distinct lifecycle and credential path. No cases deleted. CI-only validation; the shard remains below the 20 percent reduction target. * test(google): consolidate o0279 test layers Consolidate registered media request proof, voice finalization and empty-response proof, stream termination fixtures, ADC retry setup, and provider policy tables. Keep auth, redaction, endpoint, MCP, cancellation, and recovery assertions. Network overflow teardown remains covered by the overflow row of src/infra/net/fetch-guard.release.test.ts: ends only the request while a captured sibling keeps its pooled transport. Google media still proves its 16 MiB cap and response-stream cancellation with the shared streaming fixture. Removed model-classification replays remain covered by extensions/google/provider-models.test.ts: keeps non-chat Gemini surfaces out of text discovery and forward compatibility; classifies only ordinary Gemini generation ids for native video. CI-only: formatting, diff checks, and plain oxlint passed; no tests run. Original shard 1190 lines to 951 lines. * test(harness): deslop o0278 tests Keep side-question restriction assertions in the native harness policy matrix; its conversation-deny case now also covers the former specific-denylist replay. Reuse the lifecycle attempt-result fixture without adding diagnostic state. Remove run-registry setup from transcript projection tests: the owner only reads message and provenance facts, and the retained quiet-artifacts case covers every visibility branch. Preserve all authority, relay, deadline and lifecycle cases. CI-only: formatting, plain oxlint and diff checks; runtime proof deferred to hosted CI. * test(harness): consolidate o0278 owner-boundary proof Remove duplicate model merge assertions covered by model-provider-config.test.ts (fills omissions but preserves authored API/headers) and scoped parameter variants covered by model-extra-params.test.ts plus openai-routing.test.ts (fixed-store owner). Keep harness-specific explicit runtime, implicit routes, prepared overrides and pre-model defaults. Selection.test.ts preserves disabled tools, additive plugin grants, wildcard allowlists and overlapping runtime glob handoff semantics. Keep sender lifetime assertions with the sender denial test. Share the native and legacy deadline timeline, and prove continuation rejection, accepted dispatch and source revocation in one maintenance-authority lifecycle. CI-only: formatting, plain oxlint and diff checks; no runtime tests. * test(harness): trim o0278 fixtures and redundant proof layers Keep policy tests at the prepared-policy boundary; model-runtime-policy, openai-routing and harness selection suites cover config parsing and concrete routing. Keep finalizer tool denial, ambient stripping, transcript callback custody and lifecycle notifications; drop internal flag inventory duplicated by attempt prompt/session tests and the child finalization-scope integration. Diagnostic owner tests cover classification and tool-definition tests cover metadata. Retain the actual nested Code Mode lifetime, completion/abort and stale-threshold assertions. Merge duplicate scheduled prose visibility into the artifact case, preserving each role and error path. Reuse relay defaults, lifecycle fixtures and turn identity/status builders, remove redundant mock cleanup and predicate assertions. No production edits. CI-only: plain oxlint, oxfmt and diff checks pass; no test runs. Shard total 1445 -> 1156 lines (20 percent). * test(agents): deslop o0282 tests Remove unused CLI fixture exports, share speed resolver setup, and consolidate dynamic-model spies. Inline the delegated preparation barrier without changing its authority assertions. Selected-route recovery remains covered by skips unused hook context while preserving selected-route recovery; uses each selected model policy retains hooked runtime recovery checks. Keep distinct approval, custody, transport, and lifecycle cases. CI-only campaign: static lint, formatting, and diff checks; no runtime or coverage execution. * test(agents): deduplicate o0282 owner coverage Remove five explicit-candidate replays duplicated by the same named tests in live-model-explicit-candidates.test.ts. Keep all three prioritized dynamic resolution paths and their context, normalization, ordering and no-network assertions. Retain parameter merging in the sole-hook context test and explicit/invalid tiers in extensions/anthropic/fast-mode-policy.test.ts. Receipt configured equivalence and provider fallback remain in terminal-preparation.run-stats.test.ts; producer response formatting remains in the shared-fallback run-entry test. Trim duplicate helper counts and fixture layers without removing approval, sanitization or redaction boundaries. Original shard: 1698 lines; after first commit: 1581; final: 1358 (20.02 percent reduction). CI-only: formatting, diff check and plain oxlint passed; no tests or coverage run. * test: preserve current fast-mode contracts during batch replay * test: preserve authority policy and finalization regression coverage * test: keep deadline rows and broker requests type-safe * test: retain current broker and lifecycle fixtures after CI * test: preserve socket completion and canonical-row fixtures * test: retain history admission fixture initialization * test: document synthetic approval boundary isolation * test: prune stale d605 mock baseline entries * test(ui): scope snooze clicks to the owned submenu
What Problem This Solves
This test-reduction campaign batch removes duplicate boundary replays, assertion-only implementation details, unused fixture behavior, and repeated setup across 12 retained owner shards. Distinct authority, cancellation, persistence, security, and lifecycle contracts remain at their owning tests. No product behavior or production runtime code changes are intended.
Initially replayed 29 of the 30 supplied commits onto pinned main
79798ed63e1d974179c2bfd7960c04daa7f14dda, plus nine replay-preservation/correction commits. Skippeda37d98c6beb5: its Doctor native-admission scaffolding was already removed by8792e3a68a7c(#178949).Replay decisions
505a4204b4f5.a389e12b3d47; its other changes remain.Evidence and limitations
CI-only validation as directed:
node_modules/.bin/oxfmt --write <changed TS/JS files>,node_modules/.bin/oxlint -c .oxlintrc.json <changed TS/JS files>, andgit diff --check 79798ed63e1d974179c2bfd7960c04daa7f14ddapassed. Frozen prefer-offline install passed. No Vitest, check-changed, tsgo, coverage, or Testbox runs were performed locally. Hostedopenclaw/ci-gateis the runtime/type/broad proof gate. No Testbox leases were created.All supplied shard result reports explicitly state coverage was not run under CI-only instructions; none contains numerical coverage totals. Coverage preservation is therefore unmeasured, not claimed as a <=1% result. Independent review completed with six P2 findings. Four accepted: restored baseline continuation-authority, plugin execution policy, and APNs read-kernel files, and restored explicit finalization safety assertions. Shutdown coverage was declined after source inspection (the timeout file was subsequently restored after CI):
server-kernel.test.tscovers ordered shutdown and aggregate cleanup failures through the actual lifecycle;server-startup-lifetime.test.tscovers deferred failure settlement;restart-trace.test.tscovers trace thresholds.chat-pane-transcript-loading.test.tsretains the real sent-request timeout/retry path, preserved history, active observation and no composer error. Auto-merge was disabled for these corrections and re-armed on corrected heads. The first CI run also identified three batch type errors: the restored authority fixture fixes its required disableTools field; uniform deadline-table rows and restored discriminated broker request shapes fix the remaining two. Only format/lint/diff checks ran locally; fresh-head hosted CI must validate types and runtime behavior.Production runtime LOC: +0/-0. Test/support/snapshot LOC: +1893/-3927 (net -2034). Mock-baseline maintenance: +0/-2. No production runtime changes. No CODEOWNERS rules in the current file match these changed paths.
The next CI run found a Gateway lifecycle fixture missing host admission, broker runtime-classification failures, a numeric stat passed where audit identity fields require strings/nulls, and a required OpenRouter base URL. Restored the complete o0272 broker shard (including deleted tests and its registry entry) and the Gateway lifecycle-publication test to main. Restored the original null audit metadata and supplied the OpenRouter default base URL. These are batch repairs, not pre-existing failure exceptions. o0272 contributes zero final changes.
The following CI run exposed two more fixture regressions: consuming the socket via a stream iterator produced an AbortError during expected response loss, and raw Doctor fixture insertion bypassed canonical-row preparation. Restored
invoke-system-run.socket.test.tsanddoctor-session-canonical-keys.address.test.tsto their original main versions, keeping no cleanup hunks in those files.The UI run found two history-admission assertions failing because fixture initialization no longer set
chatErrorto null. Restoredchat-history-subscription-admission.test.tsin full, including its timeout row and cleanup. The prior timeout review concern is therefore also restored in the final tree. No product code or assertion weakening was used for any CI repair.The baseline gate required an explicit isolation rationale for the edited iMessage approval Gateway mock. Added a comment documenting the synthetic external-resolution boundary; the queue and replay path remain real, with no behavior/assertion change.
The next baseline check identified two stale entries after the approved mock-isolation rationale and shutdown-mock removal. Removed exactly those two reported rows from
config/test-mock-exports-baseline.txt; no baseline widening or local pruning tool was used.A later CI head reached one unrelated mobile-sharing busy-state failure in
ui/src/pages/chat/components/chat-session-sharing-mobile.test.tsx. No matching hourly-main failure was established, so no pre-existing-failure exception was used. Following the stale-base rule, rebased the complete 37-commit stack onto05a0dd8ee67f1896886198f81d25188f0304d18bafter main advanced 48 commits. The rebase had no conflicts; range-diff and fresh changed-file format/lint/diff checks verify the replay. New exact-head CI remains the gate.The rebased run reproduced a concrete WebKit locator defect in
ui/src/components/session-menu.browser.test.ts: the page-wide custom-snooze selector matched a previous compact menu and the current submenu. Scope both clicks to the exact submenu returned byopenSubmenu; retain all focus/recreation assertions and real browser clicks. No retries, timeout changes, skipped tests, or production changes. This additional fixture repair is +10/-4 test LOC and will be validated by fresh-head hosted CI.Shard inventory
Counts cover changed files versus the pinned base; declarations are static call sites, not expanded cases. o0272 was dropped after CI and is not counted in the final diff.
Changed files by shard
o0269
extensions/codex/src/app-server/bounded-turn-output-schema.test.tsextensions/codex/src/app-server/ephemeral-turn.test.tsextensions/codex/src/app-server/installed-probe.test.tsextensions/codex/src/app-server/shared-client-usage.test-support.tso0270
ui/src/pages/chat/browser-annotation-removal.test.tsui/src/pages/chat/chat-composer-optional-question.test.tsui/src/pages/chat/chat-history.recovery-status.test.tsui/src/pages/chat/chat-mobile-scroll-fades.test.tsui/src/pages/chat/chat-outbox-loading.test.tsui/src/pages/chat/chat-pane-companion-lifecycle.test.tsui/src/pages/chat/chat-pane-history.test-support.tsui/src/pages/chat/chat-pane-startup-publication.test.tsui/src/pages/chat/chat-pasted-text-sidebar.test.tsxui/src/pages/chat/subagents-panel-activity.test.tsui/src/pages/chat/tool-stream.provider-policy.node.test.tso0271
src/node-host/local-id.test.tssrc/node-host/node-invoke-progress.test.tssrc/node-host/node-worker-supervisor.device-folder.test.tssrc/node-host/node-worker-transfer-client.fixture.test-support.tssrc/node-host/node-worker-workspace.test.tssrc/node-host/runtime.worker-supervisor.test.tssrc/node-host/worker.test.tso0273
extensions/imessage/src/accounts.test.tsextensions/imessage/src/approval-native.test.tsextensions/imessage/src/install-imsg.test.tsextensions/imessage/src/monitor.approval-reaction-replay.test.tsextensions/imessage/src/monitor.debounce-policy.test.tsextensions/imessage/src/monitor.last-route.test-support.tsextensions/imessage/src/remote-file.test.tsextensions/imessage/src/send.sqlite.test.tsextensions/imessage/src/session-route.test.tsextensions/imessage/src/targets.test.tso0274
src/infra/openclaw-cli-shim.windows.test.tssrc/infra/session-sqlite-transcript-verification.test.tssrc/infra/tailscale-route-owner.worker.test.tssrc/infra/update-immutable-build.test.tssrc/infra/update-immutable-owner.test.tssrc/infra/update-retained-runtime-imports.process.test.tssrc/infra/warning-filter.test.tssrc/infra/windows-install-roots.test.tso0275
ui/src/test-helpers/board-provider.tsui/src/test-helpers/control-ui-e2e-contract.tsui/src/test-helpers/control-ui-session-section-layout.tsui/src/test-helpers/devices-fixtures.tso0276
src/gateway/config-reload.telegram-policy.test.tssrc/gateway/device-pair-setup-completion.test.tssrc/gateway/live-agent-probes.test.tssrc/gateway/server-active-work.test.tssrc/gateway/server-shutdown.test.tssrc/gateway/server.sessions.title-source.test.tssrc/gateway/sessions-patch.operator-model-policy.test.tssrc/gateway/test-helpers.listener.tso0277
extensions/openrouter/image-generation-provider.test.tsextensions/openrouter/video-generation-provider.test.tso0278
src/agents/harness/attempt-deadlines.test.tssrc/agents/harness/builtin-openclaw.test.tssrc/agents/harness/context-engine-turn.test-support.tssrc/agents/harness/execution-environment.test.tssrc/agents/harness/host-capability.grant-authority.test.tssrc/agents/harness/native-hook-relay.remote-http.test.tssrc/agents/harness/policy.test.tssrc/agents/harness/selection.test-support.tssrc/agents/harness/tool-surface-bridge.diagnostics.test.tssrc/agents/harness/transcript-visibility.test.tso0279
extensions/google/api.test.tsextensions/google/media-understanding-provider.video.test.tsextensions/google/transport-stream.lifecycle.test.tsextensions/google/vertex-adc-refresh.test.tso0280
src/commands/__snapshots__/status-database-engines.test.ts.snapsrc/commands/doctor-config-flow.plugin-session-plan.test.tssrc/commands/doctor-foreign-launchd-jobs.test.tssrc/commands/doctor-model-metadata-corruption.persistence.test.tssrc/commands/status-database-engines.test.tso0282
src/agents/agent-run-terminal-receipt.test.tssrc/agents/agent-tools.before-tool-call.trusted-approval.test.tssrc/agents/agent-tools.delegated-authority.test.tssrc/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.streams-ollama-pretool-narration.test.tssrc/agents/mcp-transport-config.test.tssrc/agents/tool-loop-progress-card.test.ts