Repository navigation
test(browser,plugins,channels): remove low-value tests (batch d598) - #184340
Conversation
Simplify the navigation cancellation harness and remove redundant signal-state assertions; the same owner-boundary test retains forwarded authority, exact rejection, drain, abort, and unroute checks. Scope Windows receipt and directory cleanup to their consuming tests. Compact snapshot and diagnostic fixtures without deleting behavior cases. CI-only shard: no tests or coverage run. Plain oxlint, formatting, and diff checks pass. Test LOC 1470 -> 1372 (6.7%); below the 20% target because the remaining suites protect distinct parsing, auth, SSRF, transport, and lifecycle behaviors.
Remove repeated layers: cdp.internal.test.ts builds role refs, promotes cursor-interactive nodes, and appends link urls covers final URL-expanded caps; snapshot-delta-cache.test.ts marks new elements across requests sharing one browser runtime covers new-role deltas; retain the explicit ref-renumbering negative case. Keep unique flattened value/depth checks while removing the copied node inventory. errors.test.ts preserves the navigation reason without forwarding policy details owns payload sanitization; client-fetch.loopback-auth.test.ts uses operation metadata rather than timeout wording over HTTP retains HTTP metadata propagation. client-fetch.auth.transport.test.ts reads the real bridge routes with its own auth when Gateway auth differs covers IPv4 token auth; server.auth-fail-closed.test.ts returns null when the browser control port is already in use covers the shared listener failure. Keep bridge password, IPv6, unauthorized resolver, shutdown and noVNC privacy boundaries. Replace the error-body route dispatcher with a single-response real HTTP fixture and backpressure-aware stream pipeline. Narrow the termination socket fixture to constructor failure; cdp.helpers.test.ts rejects and rethrows when the WebSocket fails to open owns asynchronous handshake errors. Keep SSRF/pinning and stale-owner assertions. Exact navigation unroute and observer behavior remain in pw-session.create-page.navigation-guard.test.ts; retain cancellation and drain proof here. CI-only: no test/build/coverage runs. Plain oxlint, oxfmt, and git diff --check pass. Original shard 1470 -> 1176 lines (-20.0%); this additional commit removes 196 lines from the prior 1372-line result. No production, shared-support, or config changes.
Share blocked startup cleanup setup and consolidate its overlapping drain and replacement scenarios. The retained starts-promptly/drains/fences case keeps the hook deadline, pending stop, retired instance, and successor assertions. Simplify promotion and command fixtures and drop redundant corpus invocation counting; retain all corpus result and effective-context assertions. CI-only: oxlint, oxfmt, and diff checks passed; runtime tests deferred to hosted CI. Reduction is below target because the remaining shard covers distinct privacy, authority, durability, and lifecycle boundaries.
Keep exact corpus outcomes; share command/read-only fixtures and use the real keyed SQLite store for CAS conflict tests. Preserve all lock comparison and missing-capability assertions. Retire duplicate transcript-secret ingestion proof: dreaming-phases.test.ts / checkpoints session transcript ingestion and skips unchanged transcripts retains the raw-secret and safe-text assertions. Retain redaction-product-boundaries.test.ts as the QA scenario promotion entry point. Remove duplicated mixed-block and indented-heading checks covered by short-term-promotion.test.ts / compacts MEMORY.md with mixed marker-backed user text and indented user ATX heading. Replace the scoring numeric snapshot with existing ranks repeated recalls with query diversity, concept tags, and spaced consolidation; boosts deep ranking when light/rem phase signals reinforce a candidate; and rejects ranking with default thresholds. Keep the precise inclusive threshold and legacy diversity cases. CI-only: plain oxlint, oxfmt and diff checks passed. No runtime tests or coverage runs. Cumulative shard LOC: 1506 to 1204.
Consolidate restart fixture setup and snapshot assertions, simplify singleton tables, and remove repeated protocol client assertions. Retain all 68 expanded cases, including credential, ownership, and lifecycle boundaries.
Consolidate environment, installation-outcome, and owner-readiness tables. Keep real protocol admission and executor revocation proof; remove helper call-shape/count replay and unused fixture observations. Coverage replacements: restart-health-progress.test.ts retains the migration-completion flow in the "migration released at 120s before readiness at 145s" row. Its "observes explicit startup phases before readiness at 90000 ms" case retains explicit-budget expiry, while "migration completion credited only once" retains the free-port still-starting outcome and diagnostics. restart-health-probe.test.ts retains generic version/build rejection in "stops immediately on $expected.waitOutcome", channel rejection in "stops waiting once the expected-version gateway reports channel probe errors", and transport-failure inspection in "clears a prior detail-probe failure after the next managed poll succeeds". Attribution-specific eligibility and auth-only liveness cases remain. launchd-runtime.test.ts retains nested-coalition parsing in "reports selected job state, ignoring nested coalitions"; the restart fixture now contains only the selected job state and PID. The cancellation case uses the existing migration activity helper to retain its heartbeat-producing fixture.
Consolidate build identity, Doctor and usage fixtures; use Git metadata discovery directly for naming checks. Preserve every security, lifecycle and plugin contract case. The activation planner selects manifest owners table retains tool capability ownership proof removed from the explicit capability hint case.
Replace activation and envelope setup with branch tables and remove repeated schema failure combinations. Keep credential, signature, policy, quarantine and capture lifetime assertions. Catalog lookup identity, alias normalization and array isolation remain in official-external-plugin-bundled-catalogs.test.ts (keeps exact lookup identities separate from lowercase canonical and provider queries; returns independent arrays with shared row identities). Asset behavior remains in plugin-module-generation.interop.test.ts (keeps TypeScript metadata and assets with captured source). Conditional inspection checks move into retained import.meta and cyclic graph cases; native selection also remains in plugin-generation-conditions.test.ts. Reuse existing Doctor and registry builders; drop discovery self-tests, internal call counters and repeated metadata dumps. CI-only: oxfmt, plain oxlint and diff-check passed; no tests or builds run. Original shard 1738 lines to 1390 (20.02 percent reduction).
Share the real symlink fixture in account-inspect's configured-unavailable test with the runtime token resolver, preserving fallback refusal and diagnostic path redaction. Simplify sequential-key message builders without removing lane assertions. CI-only: formatting, diff-check and plain oxlint passed; tests and coverage were not run. Retain distinct credential, callback, persistence, cancellation and ordering contracts rather than forcing the 20% target.
Merge credential inspection into token tests and reuse their isolated files. Replace mocked question finalization with real HTTP text/caption cases retaining receipt-part selection, stale metadata handling, bounds, and clear-before-edit ordering. Approval alias/overflow remains covered by outbound-adapter.telegram-http.test.ts host-media delivery; approval-callback-data.test.ts owns Unicode compaction. Keep distinct native callback domains, credential barriers, offset recovery, and cancellation assertions. Consolidate cold avatar acquisition and native stream lifecycle fixtures. CI-only: plain oxlint, formatting and diff-check pass; no tests or coverage run. Cumulative shard reduction: 1692 to 1462 lines (13.6%); remaining distinct behaviors prevent reaching 20% safely.
Use shared branch-driven credential fixtures and retain every credential denial and SecretRef outcome. Consolidate overlapping audit timeout/error and membership lifecycle cases, and exercise avatar coalescing, scope isolation and expiry in one lifecycle. Remove the explicit-button getter probe: interactive-fallback.test.ts covers explicit-button precedence through canonicalization. Keep independent namespace, privacy, cancellation and offset recovery assertions. Simplify spool projection and forward-timer guards. CI-only: plain oxlint, oxfmt and diff-check pass; no tests or coverage run. Shard total is 1353 lines versus 1692 at baseline, a 20.04 percent reduction.
Share preparation rejection and hosted-stop failure scaffolding without dropping security cases. Reuse config snapshot setup and runtime fixtures for onboarding; trim redundant fixture data. All 73 expanded cases remain. CI-only static validation; lifecycle and authority contracts retained.
Remove the copied command inventory; executable routing remains in operations-parse.test.ts and hosted-setup.runtime.test.ts. Retain all prompt security and surface restrictions. The route-drift row of approval-intent.resources.test.ts owns rejection after in-flight credential rotation. Drop the narrower mocked-resolver duplicate and scope metadata setup to fixture creation. Move alias rows into the discovery-to-activation test in setup-inference-activate.openrouter-onboarding.test.ts. Literal provider refs also remain covered by model-selection-alias-scope.test.ts: keeps explicit provider/model authoritative with default provider openai. Reuse catalog/runtime/chat fixtures and collapse repetitive parser assertions without removing distinct lifecycle, consent, memory-copy or transport boundaries. Static CI-only checks; no tests run. Original shard 1763 lines to 1601; 20 percent target remains unmet.
Collapse fallback scenario scaffolding into one typed execution fixture while retaining all ten cases, exact attempt order, and missing-owner rejection. Remove redundant configured auth metadata: the fixture derives and installs the selected profile from the explicit model suffix. Reuse command/chat snapshot builders for native runtime and memory tests, simplify prompt-time authority revocation, and remove an unreachable commit hook from the cancelled-consent fixture. Keep consent, credential, lifecycle and persistence boundaries intact. CI-only: formatting, plain oxlint, and diff checks pass; no test or build commands run. Shard 1763 to 1530 lines; the 20 percent target remains unmet.
Consolidate prompt fixtures and assertions without deleting distinct lifecycle, authority, privacy, or transcript-race cases. The controller suite retains sequence, type, turn, payload, finality and state assertions; talk-events.test.ts preserves turn, capture and provider correlation fields at the event envelope owner. CI-only shard: 53 declarations and 68 expanded cases unchanged. Test/support LOC 1546 to 1507 (2.5%); below the 20% target because the remaining small suites protect distinct branches and interleavings. Formatting, diff check and plain oxlint pass; tests and coverage intentionally not run.
Merge greeting and native admission checks into the bridge-adoption test and table callback failures and session policy branches. Keep metadata separation, queue limits, cancellation, trust classification, log redaction and file egress assertions. Remove generic logger envelope checks owned by logging/subsystem.test.ts and diagnostic-log-events.test.ts. Talk diagnostics.test.ts retains the complete bounded event envelope. Remove unused digest expectSend and fakeDigestTimers helpers after repository-wide caller inspection. CI-only: plain oxlint, formatting and diff check pass. No test or coverage execution. Cumulative shard LOC 1546 to 1381 (10.7%); short of 20% because remaining cases retain distinct lifecycle, authority, prompt-byte, persistence and transcript-race contracts.
Keep tool-policy normalization, invalid fallback and all allowlist branches at the resolved session-policy boundary. Consolidate lifecycle and error logging into one branch table while retaining file and diagnostic egress privacy checks. Talk diagnostics.test.ts owns the diagnostic envelope; logging owner suites retain trust classification proof. Reuse collectTextContentBlocks instead of a local transcript text walker, preserving ordered transcript and forbidden-reply assertions. Static checks pass; no tests or coverage run under CI-only mode. Cumulative shard LOC 1546 to 1337 (13.5%); 20% target remains unmet after source-backed duplicate-layer inspection.
Share row publication, catalog pagination, and geolocation fixtures without dropping cases or lifecycle assertions. Keep all 54 declarations and 79 expanded cases; no safe redundant behavior layer was identified in this already consolidated shard. CI-only validation: plain oxlint, oxfmt, and git diff --check.
Reduce this shard from its original 1810 lines to 1448 (-20%). Keep each distinct lifecycle and authority outcome while consolidating same-owner flows, branch matrices, and fixtures. Static declarations: 54 to 42; expanded cases: 79 to 60. No production or shared support changes. Remaining coverage: catalog pending/error/retry behavior stays in app-sidebar.catalog-discovery.test.ts (keeps scope failures visible, pauses pending discovery), app-sidebar.session-feedback.test.ts (pending append and empty completion), and app-sidebar-cases/catalog-pages.ts plus catalog-compat.ts (expanded errors and load-more retry). The local catalog suite retains truncated-page append and refresh warnings. Native Tab/outside-focus ownership remains in solid/menu-navigation.browser.test.ts (native Tab exit and caller-selected destinations) and overlay-lifecycle.browser.test.ts (outside focus). Icon-only preview titles remain in link-reader-title-tooltip.test.ts (cold loading, failures, recovery and release). Session selection stays in app-sidebar-cases/interactions.ts; virtualization stays in app-sidebar-session-visibility.browser.test.ts. Paired/bare glyph geometry remains in app-sidebar.stress.browser.test.ts and session-owner-chip.browser.test.ts; running animations remain in app-sidebar-session-visibility.browser.test.ts. Retain local rotated-circle centering, artwork stability, unread badge and queued-trace checks. Menu subtree identity remains in solid/menu-native-contract.browser.test.ts; retain session-specific search, stale-toggle and retired-key checks here. CI-only validation: plain oxlint exited 0, oxfmt and git diff --check passed. No tests, coverage, builds, or Testbox commands run.
Consolidate fixture construction, queue payload extraction and outcome assertions without removing cases. Replace the config guard's manual quote/comment scanner with token scanning while retaining all three guard scopes. Retain distinct policy, requester isolation, thread/account matching, admission ordering, sensitive media and crash durability assertions. The existing compact suite permits a 73-line reduction (5.9%), below the requested 20%; no distinct behavior was traded for the target. Static formatting, diff and oxlint checks pass; runtime proof is deferred under campaign CI-only instructions.
Reduce the shard from its original 1241 lines to 992 (20.1%). Consolidate Unicode code fixtures per planner mode, retain one disabled-limit representative, and use direct branch tables without fixture wrapper layers. The bound-router cold-store and no-binding proof now precedes the existing list/prune lifecycle in the same test. Reuse runNodeScript for joined child capture and cleanup while retaining the committed-row SIGKILL boundary, spool retention and acknowledgement assertions. Keep source-target/account/thread checks and admission-ordering checks; remove duplicate receipt projections and post-success internal call counts. No production changes or files deleted. Formatting, diff checks and plain oxlint passed; no tests or coverage run under CI-only campaign instructions.
Simplify the fixed model-run CLI fixture without changing its arguments, cases, or assertions. Preserve the shard's distinct lifetime, cleanup, recovery, platform, and credential boundary coverage; no production or shared support changes.
Combine platform allocation with compatible setup and binary upgrade with protected model execution. Keep lifecycle timing, stale capture selectors, and secret boundaries intact. Remove duplicate legacy-success and migration-ready checks covered by gateway-methods: reports legacy allocations with doctor guidance and recovers only the acknowledged row; and warm-image-allocation: retries failed legacy admission until recovery succeeds. Shared command: retries only coordinator failures retains the bootstrap-output non-retry check. Reuse the existing command-result fixture and trim copied argv/log assertions.
Share the lease metadata fixture, retry outcome harness, cleanup-pending harness, native capability response, and retirement record. Preserve each retry branch, cleanup interleaving, selector guard, platform decision, and model credential assertion. No production changes or test runs.
Compact parser, probe, wiki and sender lookup fixtures without deleting behavior. Move delivery-routing denial into the existing read-policy table, retaining its exact authorization assertion. CI-only static validation: oxfmt, plain oxlint and diff-check pass. Shard LOC 1847 -> 1776; declarations 68 -> 67 with all expanded cases retained. Below the 20% target: remaining tests protect distinct credential, replay, lifecycle, migration, parsing and pagination behavior. No production or shared support changes; runtime and coverage proof deferred to hosted CI.
Consolidate migration, probe, sender-cache, pagination, parser and WebSocket recovery fixtures. Retain security, lifecycle and replay assertions; remove internal log wording and stale client/service mock inventories. Named stronger coverage: tool-account-routing.test.ts preserves punctuation-key authority; bot.test.ts delivers post files with captions; bot-content.media.test.ts covers multiple and unnamed post-file downloads; feishu-ingress.test.ts suppresses captioned redelivery after upgrade. Retained post.test.ts owns code rendering removed from bot.helpers.test.ts. CI-only: formatting, plain oxlint and diff-check pass; no tests/builds/coverage run. Original shard LOC 1847 -> 1566 (15.2%, below the 20% target). This additional commit removes 210 lines beyond the first pass without deleting distinct auth or durable lifecycle behavior.
Table the two successful access paths without dropping result assertions. Carry channel-title and single-lookup proof into the existing occupancy transcript lifecycle case. Remove the Resumed replay of the inherited Ready handler and the mislabelled decryption row that follows the same generic socket-error branch. Minimize unused worker fixture options and frame inputs. Preserve distinct recovery, authorization and physical-drain checks.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
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. |
…penclaw#184340) * test(browser): deslop o0184 tests Simplify the navigation cancellation harness and remove redundant signal-state assertions; the same owner-boundary test retains forwarded authority, exact rejection, drain, abort, and unroute checks. Scope Windows receipt and directory cleanup to their consuming tests. Compact snapshot and diagnostic fixtures without deleting behavior cases. CI-only shard: no tests or coverage run. Plain oxlint, formatting, and diff checks pass. Test LOC 1470 -> 1372 (6.7%); below the 20% target because the remaining suites protect distinct parsing, auth, SSRF, transport, and lifecycle behaviors. * test(browser): consolidate o0184 boundary tests Remove repeated layers: cdp.internal.test.ts builds role refs, promotes cursor-interactive nodes, and appends link urls covers final URL-expanded caps; snapshot-delta-cache.test.ts marks new elements across requests sharing one browser runtime covers new-role deltas; retain the explicit ref-renumbering negative case. Keep unique flattened value/depth checks while removing the copied node inventory. errors.test.ts preserves the navigation reason without forwarding policy details owns payload sanitization; client-fetch.loopback-auth.test.ts uses operation metadata rather than timeout wording over HTTP retains HTTP metadata propagation. client-fetch.auth.transport.test.ts reads the real bridge routes with its own auth when Gateway auth differs covers IPv4 token auth; server.auth-fail-closed.test.ts returns null when the browser control port is already in use covers the shared listener failure. Keep bridge password, IPv6, unauthorized resolver, shutdown and noVNC privacy boundaries. Replace the error-body route dispatcher with a single-response real HTTP fixture and backpressure-aware stream pipeline. Narrow the termination socket fixture to constructor failure; cdp.helpers.test.ts rejects and rethrows when the WebSocket fails to open owns asynchronous handshake errors. Keep SSRF/pinning and stale-owner assertions. Exact navigation unroute and observer behavior remain in pw-session.create-page.navigation-guard.test.ts; retain cancellation and drain proof here. CI-only: no test/build/coverage runs. Plain oxlint, oxfmt, and git diff --check pass. Original shard 1470 -> 1176 lines (-20.0%); this additional commit removes 196 lines from the prior 1372-line result. No production, shared-support, or config changes. * test(memory-core): deslop o0185 tests Share blocked startup cleanup setup and consolidate its overlapping drain and replacement scenarios. The retained starts-promptly/drains/fences case keeps the hook deadline, pending stop, retired instance, and successor assertions. Simplify promotion and command fixtures and drop redundant corpus invocation counting; retain all corpus result and effective-context assertions. CI-only: oxlint, oxfmt, and diff checks passed; runtime tests deferred to hosted CI. Reduction is below target because the remaining shard covers distinct privacy, authority, durability, and lifecycle boundaries. * test(memory-core): consolidate o0185 boundary fixtures Keep exact corpus outcomes; share command/read-only fixtures and use the real keyed SQLite store for CAS conflict tests. Preserve all lock comparison and missing-capability assertions. Retire duplicate transcript-secret ingestion proof: dreaming-phases.test.ts / checkpoints session transcript ingestion and skips unchanged transcripts retains the raw-secret and safe-text assertions. Retain redaction-product-boundaries.test.ts as the QA scenario promotion entry point. Remove duplicated mixed-block and indented-heading checks covered by short-term-promotion.test.ts / compacts MEMORY.md with mixed marker-backed user text and indented user ATX heading. Replace the scoring numeric snapshot with existing ranks repeated recalls with query diversity, concept tags, and spaced consolidation; boosts deep ranking when light/rem phase signals reinforce a candidate; and rejects ranking with default thresholds. Keep the precise inclusive threshold and legacy diversity cases. CI-only: plain oxlint, oxfmt and diff checks passed. No runtime tests or coverage runs. Cumulative shard LOC: 1506 to 1204. * test(daemon-cli): deslop o0186 tests Consolidate restart fixture setup and snapshot assertions, simplify singleton tables, and remove repeated protocol client assertions. Retain all 68 expanded cases, including credential, ownership, and lifecycle boundaries. * test(daemon-cli): consolidate o0186 branch coverage Consolidate environment, installation-outcome, and owner-readiness tables. Keep real protocol admission and executor revocation proof; remove helper call-shape/count replay and unused fixture observations. Coverage replacements: restart-health-progress.test.ts retains the migration-completion flow in the "migration released at 120s before readiness at 145s" row. Its "observes explicit startup phases before readiness at 90000 ms" case retains explicit-budget expiry, while "migration completion credited only once" retains the free-port still-starting outcome and diagnostics. restart-health-probe.test.ts retains generic version/build rejection in "stops immediately on $expected.waitOutcome", channel rejection in "stops waiting once the expected-version gateway reports channel probe errors", and transport-failure inspection in "clears a prior detail-probe failure after the next managed poll succeeds". Attribution-specific eligibility and auth-only liveness cases remain. launchd-runtime.test.ts retains nested-coalition parsing in "reports selected job state, ignoring nested coalitions"; the restart fixture now contains only the selected job state and PID. The cancellation case uses the existing migration activity helper to retain its heartbeat-producing fixture. * test(plugins): deslop o0187 tests Consolidate build identity, Doctor and usage fixtures; use Git metadata discovery directly for naming checks. Preserve every security, lifecycle and plugin contract case. The activation planner selects manifest owners table retains tool capability ownership proof removed from the explicit capability hint case. * test(plugins): consolidate o0187 contract coverage Replace activation and envelope setup with branch tables and remove repeated schema failure combinations. Keep credential, signature, policy, quarantine and capture lifetime assertions. Catalog lookup identity, alias normalization and array isolation remain in official-external-plugin-bundled-catalogs.test.ts (keeps exact lookup identities separate from lowercase canonical and provider queries; returns independent arrays with shared row identities). Asset behavior remains in plugin-module-generation.interop.test.ts (keeps TypeScript metadata and assets with captured source). Conditional inspection checks move into retained import.meta and cyclic graph cases; native selection also remains in plugin-generation-conditions.test.ts. Reuse existing Doctor and registry builders; drop discovery self-tests, internal call counters and repeated metadata dumps. CI-only: oxfmt, plain oxlint and diff-check passed; no tests or builds run. Original shard 1738 lines to 1390 (20.02 percent reduction). * test(telegram): deslop o0190 tests Share the real symlink fixture in account-inspect's configured-unavailable test with the runtime token resolver, preserving fallback refusal and diagnostic path redaction. Simplify sequential-key message builders without removing lane assertions. CI-only: formatting, diff-check and plain oxlint passed; tests and coverage were not run. Retain distinct credential, callback, persistence, cancellation and ordering contracts rather than forcing the 20% target. * test(telegram): consolidate o0190 test layers Merge credential inspection into token tests and reuse their isolated files. Replace mocked question finalization with real HTTP text/caption cases retaining receipt-part selection, stale metadata handling, bounds, and clear-before-edit ordering. Approval alias/overflow remains covered by outbound-adapter.telegram-http.test.ts host-media delivery; approval-callback-data.test.ts owns Unicode compaction. Keep distinct native callback domains, credential barriers, offset recovery, and cancellation assertions. Consolidate cold avatar acquisition and native stream lifecycle fixtures. CI-only: plain oxlint, formatting and diff-check pass; no tests or coverage run. Cumulative shard reduction: 1692 to 1462 lines (13.6%); remaining distinct behaviors prevent reaching 20% safely. * test(telegram): finish o0190 structural consolidation Use shared branch-driven credential fixtures and retain every credential denial and SecretRef outcome. Consolidate overlapping audit timeout/error and membership lifecycle cases, and exercise avatar coalescing, scope isolation and expiry in one lifecycle. Remove the explicit-button getter probe: interactive-fallback.test.ts covers explicit-button precedence through canonicalization. Keep independent namespace, privacy, cancellation and offset recovery assertions. Simplify spool projection and forward-timer guards. CI-only: plain oxlint, oxfmt and diff-check pass; no tests or coverage run. Shard total is 1353 lines versus 1692 at baseline, a 20.04 percent reduction. * test(system-agent): deslop o0191 tests Share preparation rejection and hosted-stop failure scaffolding without dropping security cases. Reuse config snapshot setup and runtime fixtures for onboarding; trim redundant fixture data. All 73 expanded cases remain. CI-only static validation; lifecycle and authority contracts retained. * test(system-agent): consolidate o0191 boundary fixtures Remove the copied command inventory; executable routing remains in operations-parse.test.ts and hosted-setup.runtime.test.ts. Retain all prompt security and surface restrictions. The route-drift row of approval-intent.resources.test.ts owns rejection after in-flight credential rotation. Drop the narrower mocked-resolver duplicate and scope metadata setup to fixture creation. Move alias rows into the discovery-to-activation test in setup-inference-activate.openrouter-onboarding.test.ts. Literal provider refs also remain covered by model-selection-alias-scope.test.ts: keeps explicit provider/model authoritative with default provider openai. Reuse catalog/runtime/chat fixtures and collapse repetitive parser assertions without removing distinct lifecycle, consent, memory-copy or transport boundaries. Static CI-only checks; no tests run. Original shard 1763 lines to 1601; 20 percent target remains unmet. * test(system-agent): reduce o0191 fixture layers Collapse fallback scenario scaffolding into one typed execution fixture while retaining all ten cases, exact attempt order, and missing-owner rejection. Remove redundant configured auth metadata: the fixture derives and installs the selected profile from the explicit model suffix. Reuse command/chat snapshot builders for native runtime and memory tests, simplify prompt-time authority revocation, and remove an unreachable commit hook from the cancelled-consent fixture. Keep consent, credential, lifecycle and persistence boundaries intact. CI-only: formatting, plain oxlint, and diff checks pass; no test or build commands run. Shard 1763 to 1530 lines; the 20 percent target remains unmet. * test(talk): deslop o0188 tests Consolidate prompt fixtures and assertions without deleting distinct lifecycle, authority, privacy, or transcript-race cases. The controller suite retains sequence, type, turn, payload, finality and state assertions; talk-events.test.ts preserves turn, capture and provider correlation fields at the event envelope owner. CI-only shard: 53 declarations and 68 expanded cases unchanged. Test/support LOC 1546 to 1507 (2.5%); below the 20% target because the remaining small suites protect distinct branches and interleavings. Formatting, diff check and plain oxlint pass; tests and coverage intentionally not run. * test(talk): consolidate o0188 test layers Merge greeting and native admission checks into the bridge-adoption test and table callback failures and session policy branches. Keep metadata separation, queue limits, cancellation, trust classification, log redaction and file egress assertions. Remove generic logger envelope checks owned by logging/subsystem.test.ts and diagnostic-log-events.test.ts. Talk diagnostics.test.ts retains the complete bounded event envelope. Remove unused digest expectSend and fakeDigestTimers helpers after repository-wide caller inspection. CI-only: plain oxlint, formatting and diff check pass. No test or coverage execution. Cumulative shard LOC 1546 to 1381 (10.7%); short of 20% because remaining cases retain distinct lifecycle, authority, prompt-byte, persistence and transcript-race contracts. * test(talk): deduplicate o0188 policy and logging proof Keep tool-policy normalization, invalid fallback and all allowlist branches at the resolved session-policy boundary. Consolidate lifecycle and error logging into one branch table while retaining file and diagnostic egress privacy checks. Talk diagnostics.test.ts owns the diagnostic envelope; logging owner suites retain trust classification proof. Reuse collectTextContentBlocks instead of a local transcript text walker, preserving ordered transcript and forbidden-reply assertions. Static checks pass; no tests or coverage run under CI-only mode. Cumulative shard LOC 1546 to 1337 (13.5%); 20% target remains unmet after source-backed duplicate-layer inspection. * test(control-ui): deslop o0189 tests Share row publication, catalog pagination, and geolocation fixtures without dropping cases or lifecycle assertions. Keep all 54 declarations and 79 expanded cases; no safe redundant behavior layer was identified in this already consolidated shard. CI-only validation: plain oxlint, oxfmt, and git diff --check. * test(control-ui): consolidate o0189 test layers Reduce this shard from its original 1810 lines to 1448 (-20%). Keep each distinct lifecycle and authority outcome while consolidating same-owner flows, branch matrices, and fixtures. Static declarations: 54 to 42; expanded cases: 79 to 60. No production or shared support changes. Remaining coverage: catalog pending/error/retry behavior stays in app-sidebar.catalog-discovery.test.ts (keeps scope failures visible, pauses pending discovery), app-sidebar.session-feedback.test.ts (pending append and empty completion), and app-sidebar-cases/catalog-pages.ts plus catalog-compat.ts (expanded errors and load-more retry). The local catalog suite retains truncated-page append and refresh warnings. Native Tab/outside-focus ownership remains in solid/menu-navigation.browser.test.ts (native Tab exit and caller-selected destinations) and overlay-lifecycle.browser.test.ts (outside focus). Icon-only preview titles remain in link-reader-title-tooltip.test.ts (cold loading, failures, recovery and release). Session selection stays in app-sidebar-cases/interactions.ts; virtualization stays in app-sidebar-session-visibility.browser.test.ts. Paired/bare glyph geometry remains in app-sidebar.stress.browser.test.ts and session-owner-chip.browser.test.ts; running animations remain in app-sidebar-session-visibility.browser.test.ts. Retain local rotated-circle centering, artwork stability, unread badge and queued-trace checks. Menu subtree identity remains in solid/menu-native-contract.browser.test.ts; retain session-specific search, stale-toggle and retired-key checks here. CI-only validation: plain oxlint exited 0, oxfmt and git diff --check passed. No tests, coverage, builds, or Testbox commands run. * test(outbound): deslop o0194 tests Consolidate fixture construction, queue payload extraction and outcome assertions without removing cases. Replace the config guard's manual quote/comment scanner with token scanning while retaining all three guard scopes. Retain distinct policy, requester isolation, thread/account matching, admission ordering, sensitive media and crash durability assertions. The existing compact suite permits a 73-line reduction (5.9%), below the requested 20%; no distinct behavior was traded for the target. Static formatting, diff and oxlint checks pass; runtime proof is deferred under campaign CI-only instructions. * test(outbound): consolidate o0194 branch and lifecycle fixtures Reduce the shard from its original 1241 lines to 992 (20.1%). Consolidate Unicode code fixtures per planner mode, retain one disabled-limit representative, and use direct branch tables without fixture wrapper layers. The bound-router cold-store and no-binding proof now precedes the existing list/prune lifecycle in the same test. Reuse runNodeScript for joined child capture and cleanup while retaining the committed-row SIGKILL boundary, spool retention and acknowledgement assertions. Keep source-target/account/thread checks and admission-ordering checks; remove duplicate receipt projections and post-success internal call counts. No production changes or files deleted. Formatting, diff checks and plain oxlint passed; no tests or coverage run under CI-only campaign instructions. * test(crabbox): deslop o0193 tests Simplify the fixed model-run CLI fixture without changing its arguments, cases, or assertions. Preserve the shard's distinct lifetime, cleanup, recovery, platform, and credential boundary coverage; no production or shared support changes. * test(crabbox): consolidate o0193 boundary coverage Combine platform allocation with compatible setup and binary upgrade with protected model execution. Keep lifecycle timing, stale capture selectors, and secret boundaries intact. Remove duplicate legacy-success and migration-ready checks covered by gateway-methods: reports legacy allocations with doctor guidance and recovers only the acknowledged row; and warm-image-allocation: retries failed legacy admission until recovery succeeds. Shared command: retries only coordinator failures retains the bootstrap-output non-retry check. Reuse the existing command-result fixture and trim copied argv/log assertions. * test(crabbox): consolidate o0193 lifecycle fixtures Share the lease metadata fixture, retry outcome harness, cleanup-pending harness, native capability response, and retirement record. Preserve each retry branch, cleanup interleaving, selector guard, platform decision, and model credential assertion. No production changes or test runs. * test(feishu): deslop o0192 tests Compact parser, probe, wiki and sender lookup fixtures without deleting behavior. Move delivery-routing denial into the existing read-policy table, retaining its exact authorization assertion. CI-only static validation: oxfmt, plain oxlint and diff-check pass. Shard LOC 1847 -> 1776; declarations 68 -> 67 with all expanded cases retained. Below the 20% target: remaining tests protect distinct credential, replay, lifecycle, migration, parsing and pagination behavior. No production or shared support changes; runtime and coverage proof deferred to hosted CI. * test(feishu): consolidate o0192 owner coverage Consolidate migration, probe, sender-cache, pagination, parser and WebSocket recovery fixtures. Retain security, lifecycle and replay assertions; remove internal log wording and stale client/service mock inventories. Named stronger coverage: tool-account-routing.test.ts preserves punctuation-key authority; bot.test.ts delivers post files with captions; bot-content.media.test.ts covers multiple and unnamed post-file downloads; feishu-ingress.test.ts suppresses captioned redelivery after upgrade. Retained post.test.ts owns code rendering removed from bot.helpers.test.ts. CI-only: formatting, plain oxlint and diff-check pass; no tests/builds/coverage run. Original shard LOC 1847 -> 1566 (15.2%, below the 20% target). This additional commit removes 210 lines beyond the first pass without deleting distinct auth or durable lifecycle behavior. * test(discord): consolidate o0196 boundary fixtures Table the two successful access paths without dropping result assertions. Carry channel-title and single-lookup proof into the existing occupancy transcript lifecycle case. Remove the Resumed replay of the inherited Ready handler and the mislabelled decryption row that follows the same generic socket-error branch. Minimize unused worker fixture options and frame inputs. Preserve distinct recovery, authorization and physical-drain checks. * test: preserve boundary coverage during batch cleanup * test: repair batch fixtures against current contracts * test: retain current boundary fixtures after CI feedback
…#184851) * test(plugins): cover unused URL expressions in source references Restore regression coverage for #182194: a discarded new URL(...) or its discarded .href is not a plugin source asset, while the URL's arguments are still traced. The original regression was deleted with the bundled reload module in #182403, and #184340 removed this suite's visitor assertion. Before #182194, this pattern in a generated codec made the OpenAI plugin reload capture the host build, which hung Linux Bun teardown of server.config-patch.test.ts in restart.close.config-reloader. * test(plugins): pass a lazy resolver to the source reference visitor #188890 changed visitPluginSourceReferences to take getResolver. The old call throws a TypeError on current main, and stale PR CI could not see it.
…openclaw#184851) * test(plugins): cover unused URL expressions in source references Restore regression coverage for openclaw#182194: a discarded new URL(...) or its discarded .href is not a plugin source asset, while the URL's arguments are still traced. The original regression was deleted with the bundled reload module in openclaw#182403, and openclaw#184340 removed this suite's visitor assertion. Before openclaw#182194, this pattern in a generated codec made the OpenAI plugin reload capture the host build, which hung Linux Bun teardown of server.config-patch.test.ts in restart.close.config-reloader. * test(plugins): pass a lazy resolver to the source reference visitor openclaw#188890 changed visitPluginSourceReferences to take getResolver. The old call throws a TypeError on current main, and stale PR CI could not see it.
…openclaw#184851) * test(plugins): cover unused URL expressions in source references Restore regression coverage for openclaw#182194: a discarded new URL(...) or its discarded .href is not a plugin source asset, while the URL's arguments are still traced. The original regression was deleted with the bundled reload module in openclaw#182403, and openclaw#184340 removed this suite's visitor assertion. Before openclaw#182194, this pattern in a generated codec made the OpenAI plugin reload capture the host build, which hung Linux Bun teardown of server.config-patch.test.ts in restart.close.config-reloader. * test(plugins): pass a lazy resolver to the source reference visitor openclaw#188890 changed visitPluginSourceReferences to take getResolver. The old call throws a TypeError on current main, and stale PR CI could not see it.
What Problem This Solves
Reduces duplicated test proof and fixture scaffolding across browser, memory-core, daemon CLI, plugins, channels, Talk, system-agent, Control UI, outbound delivery, and Crabbox.
User Impact
No production or user-visible behavior change. This batch changes 86 test/support files: +2,470 / -4,759 lines (net -2,289). Production LOC: +0 / -0. Existing boundary, authorization, lifecycle, and recovery contracts remain the retention bar.
Why This Change Was Made
Replays batch d598 onto main at eb69886, keeping current-main behavior where campaign fixtures diverged. Consolidates repeated setup and equivalent cases; removes duplicate assertions and already-covered layers. No dependencies, runtime code, public contracts, or visual output changed.
27 of the 30 requested commits applied. Three skipped:
Conflict decisions
Preserved main's versions and dropped conflicting cleanup in browser chrome.version and chrome-mcp.snapshot; memory-core memory-workspace-lock.cas and the later promotion-scoring rewrite; daemon response; Telegram fallback-topic-media; system-agent operations.gateway-lifecycle and overview; Talk session-runtime and realtime-session-policy consolidation; outbound policy and media-directive-durability; Feishu doctor-contract; Discord access. These preserve newer platform cases, calibration/default checks, atomic lock fixtures, output classification, rich-message behavior, lifecycle/exit protection, startup text, provider bridges, authorization and migrations. Earlier nonconflicting promotion-scoring cleanup remains, with main's imports and multi-entry phase-signal setup retained. Talk's initial small conflict retained main's bridge construction. UI agent-select retains main's vetoed-close/focus-restoration case while consolidating the other fixture and reconnect checks. No retired crash-process fixture was resurrected. No baseline changes.
No changed path matches the current CODEOWNERS file.
Evidence
pnpm install --frozen-lockfile --prefer-offline.node_modules/.bin/oxfmt --write <85 existing changed files>passed.node_modules/.bin/oxlint -c .oxlintrc.json <85 existing changed files>exited 0.git diff --check eb69886959153aa9beb85976e022897e9d4be226passed.openclaw/ci-gateis the proof/merge gate; independent review runs while CI is pending.Review and CI corrections
The first independent review raised nine findings. Accepted eight coverage gaps and restored the navigation-detail redaction, mixed-memory preservation, post-inference authority, enrollment no-retry, Solid provider, nested Escape, tooltip/link-reader and branch-link destination assertions. Rejected the alleged cyclic-reference assertion mismatch: the submitted file contains no reference-edge assertion. The corrective deltas received clean independent P0–P2 reviews.
The first CI run (https://github.com/openclaw/openclaw/actions/runs/40285165337) caught fixture defects: overloaded DNS mock typing and export isolation; incomplete/readonly test data; misuse of Vitest table context; a removed expected-value helper; and applying external-log redaction expectations to trusted diagnostic events. Fixed these without production changes, type casts, retries or weaker assertions. Dropped the unsafe Telegram audit/button/finalization, restart-protocol/support, and sidebar-row fixture rewrites, restoring their main versions. Review restores also remove the entire cleanup from memory-budget, approval-intent, retry coordinator, session-menu-solid and tooltip-title. The hovercard destination assertion remains in its consolidated test. Current main was checked for fixes to the failing files; none changed since the pinned base. A fresh exact-head CI run is required after these corrections.
extensions/browser/src/browser/bridge-server.auth.test.tsextensions/browser/src/browser/chrome-mcp-labels.chromium.test.tsextensions/browser/src/browser/doctor.test.tsextensions/browser/src/browser/extension-windows-management.test.tsextensions/browser/src/browser/pw-role-snapshot.test.tsextensions/browser/src/browser/pw-session.navigation-guard.owner-boundary.test.tsextensions/memory-core/src/dreaming-command.test.tsextensions/memory-core/src/dreaming-startup-lifecycle.test.tsextensions/memory-core/src/memory-get-corpus.test.tsextensions/memory-core/src/redaction-product-boundaries.test.tsextensions/memory-core/src/short-term-promotion-scoring.test.tssrc/cli/daemon-cli/install-environment.test.tssrc/cli/daemon-cli/lifecycle-action-preflight.test.tssrc/cli/daemon-cli/restart-health-diagnostic-attribution.test.tssrc/cli/daemon-cli/restart-health-external.test.tssrc/cli/daemon-cli/restart-health-wait.test.tssrc/plugins/activation-planner.test.tssrc/plugins/bundled-plugin-code-identity.test.tssrc/plugins/bundled-plugin-naming.test.tssrc/plugins/doctor-contract-registry.capture.test.tssrc/plugins/official-external-plugin-catalog-envelope.test.tssrc/plugins/official-external-plugin-catalog.test.tssrc/plugins/plugin-generation-source-inspection.test.tssrc/plugins/provider-runtime.usage-harness.test.tssrc/plugins/registry-runtime.channel-ingress.test-support.tssrc/plugins/registry.tool-schema-diagnostics.test.tssrc/plugins/web-provider-capture-lifetime.test.tsextensions/telegram/src/account-inspect.test.tsextensions/telegram/src/bot-message-avatar.test.tsextensions/telegram/src/sequential-key.test.tsextensions/telegram/src/telegram-ingress-coalescing.test-support.tsextensions/telegram/src/telegram-ingress-spool.test-support.tsextensions/telegram/src/token.test.tsextensions/telegram/src/update-offset-store.test.tssrc/system-agent/assistant.test.tssrc/system-agent/hosted-setup.memory.test.tssrc/system-agent/inference-fallback.test.tssrc/system-agent/operations.tui.test.tssrc/system-agent/setup-inference-activate.openrouter-onboarding.test.tssrc/system-agent/setup-inference-detect.lifecycle.test.tssrc/system-agent/setup-inference.groq-external.integration.test.tssrc/system-agent/setup-native-runtime.test.tssrc/system-agent/system-agent.lifecycle.test.tssrc/talk/agent-consult-tool.test.tssrc/talk/agent-talkback-runtime.test.tssrc/talk/client-voice-session.digest-harness.test-support.tssrc/talk/logging.test.tssrc/talk/realtime-session-policy.test.tssrc/talk/talk-session-controller.test.tssrc/talk/voice-consult-transcript-race.test.tsui/src/components/agent-select-opening.browser.test.tsui/src/components/app-sidebar-session-catalog-state.test.tsui/src/components/ip-location.test.tsui/src/components/lobster-favicon.browser.test.tsui/src/components/mcp-app-view-lifecycle.test.tsui/src/components/native-link-menu.test.tsui/src/components/session-glyph.browser.test.tsxui/src/components/session-hovercard.locale.test.tsxui/src/components/session-workspace-recovery.test.tssrc/infra/outbound/bound-delivery-router.test.tssrc/infra/outbound/cfg-threading.guard.test.tssrc/infra/outbound/deliver-queue-admission.test.tssrc/infra/outbound/message-plan.test.tssrc/infra/outbound/source-delivery-plan.test.tssrc/infra/outbound/targets.test-helpers.tsextensions/crabbox/src/crabbox-model-run.test.tsextensions/crabbox/src/crabbox-worker-lifetime.test.tsextensions/crabbox/src/crabbox-worker-node-enrollment.test-support.tsextensions/crabbox/src/crabbox-worker-profile.test.tsextensions/crabbox/src/crabbox-worker-provider-platforms.test.tsextensions/crabbox/src/crabbox-worker-provider.test-support.tsextensions/crabbox/src/crabbox-worker-stop.test.tsextensions/crabbox/src/crabbox-worker-warm-image-cli.test.tsextensions/feishu/src/accounts.test.tsextensions/feishu/src/bot-sender-name.test.tsextensions/feishu/src/bot.helpers.test.tsextensions/feishu/src/dedupe-key.test.tsextensions/feishu/src/lifecycle.test-support.tsextensions/feishu/src/monitor.cleanup.test.tsextensions/feishu/src/post.test.tsextensions/feishu/src/probe.test.tsextensions/feishu/src/read-policy.test.tsextensions/feishu/src/wiki.test.tsextensions/discord/src/voice/audio-transport.test.tsextensions/discord/src/voice/voice-occupancy.test.tsextensions/discord/src/voice/voice-receive-backlog.test.ts