Skip to content

test(agents,plugins,ui): remove low-value tests (batch d613) - #184680

Merged
steipete merged 33 commits into
mainfrom
tcr/land-d613-1793021542
Oct 26, 2026
Merged

steipete merged 33 commits into
mainfrom
tcr/land-d613-1793021542

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Removes redundant test scaffolding and overlapping assertions from the d613 cleanup batch, while retaining the owning boundary scenarios.

User Impact

No intended production behavior, public API, or visual change. The reduction is confined to tests, shared test fixtures, and two stale test-inventory entries.

Why This Change Was Made

Replayed 29 of 30 supplied commits on pinned main a9464aeba6516f2f63356b08598aca181d1a12f5. Consolidates owner scenarios, removes copied inventories and fixture-only wrappers, and keeps stronger existing main coverage where the source lane diverged.

Conflict resolution:

  • Kept main's direct ACP provisioning assertions (including absent cwd, embedded and pinned cases); only the non-conflicting binding fixture simplification remains.
  • Kept the full main memory-board test file, including custom state-root, FIFO, byte-frozen grant, and publication-failure proof.
  • Kept main's clipboard tests and exact fallback/PowerShell argument assertions.
  • Kept main's Pi continuation test file, including concurrent adoption and exact file-baseline proof.
  • Kept main's browser trash fixture and temporary-directory lifecycle.
  • Kept the already-replayed HTTP mock fixture when later commits conflicted with main's late-bound transport adapters and explicit public mock shape.
  • Kept main's Matrix config-schema and action-support fixtures; no stale helper imports or simplified result shape were introduced there.
  • Kept main's UI cold-load event-stream async callback wrapper.
  • Skipped 0ef591e8db6608abd01ff3f7d16668022394738b entirely: cron tests are split differently on main, and its deletion/move would remove catalog-notification proof without a valid replacement. The earlier cron cleanup excludes its conflicting reconnect file.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <75 changed existing files>: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json <75 changed existing files>: exit 0.
  • git diff --check a9464aeba6516f2f63356b08598aca181d1a12f5: passed.
  • Per operator CI-only instruction, no local Vitest, check-changed, tsgo, builds, coverage, Crabbox, or Testbox execution. Hosted openclaw/ci-gate is the runtime proof and merge gate.
  • Independent full-diff review found three accepted issues: an invalid Vitest assertion API, removed ACP command-migration coverage, and removed cross-run schema-stability coverage. Restored the affected assertions/contracts; the focused follow-up review completed with no accepted/actionable findings (P2 scope).
  • Manual source inspection also caught a replay-only missing getButton export. Reused existing getElement(..., HTMLButtonElement) instead.
  • Rejected review finding: Foundry deployment rows do not require state; AzDeploymentSummary.state is optional and selectFoundryDeployment does not filter it. Provisioning filtering belongs to listResourceDeployments, outside the tested boundary.
  • Hosted run 40332902549 found three replay fixture type errors: Canvas response spreading hid the typed getHeader method, Matrix resolution omitted its required runtime, and a cleanup callback returned VitestUtils. Restored the explicit response adapter, runtime fixture, and void callback. A second focused corrective review is clean; formatting, plain lint and whitespace checks pass. Fresh-head CI must validate these fixes.
  • Hosted run 40334641509 passed the repaired typecheck gates, then exposed two runtime fixture issues: an ACP model table asserted the wrong intermediate alias state, and a plain fetch function bypassed recognized-mock routing and entered real I/O. Dropped all cleanup hunks in runtime-advertised-model.process.test.ts (restored pinned main byte-for-byte) and restored the original vi.fn fetch fixture in the headless launch test. No assertions were weakened or timeouts raised. Focused corrective review is clean; fresh-head CI must validate the correction.
  • Hosted run 40336638918 passed 59 jobs before its mock-export ratchet rejected two single-line partial mocks in project-environment.test.ts. Dropped those two formatting-only hunks, restoring the existing multiline declarations byte-for-byte from pinned main. No baseline was widened and no new mock exception was added. Focused corrective review is clean; fresh-head CI must validate the restoration.
  • Auto-merge was disabled before each repair and is re-armed only on the corrected exact head.

Net diff: +2,643 / -4,905 lines (−2,262) across 77 files. Production LOC: +0 / -0. Test and fixture LOC: +2,643 / -4,903. Test-inventory metadata: +0 / -2. No changed path matches the current CODEOWNERS rules.

The following counts are for the final changed test/fixture files against pinned main, not the older full-shard inventory. Declaration counts are lexical it/test call sites, not expanded or executed cases. Source reports predate some consolidation follow-ups and explicitly state coverage was not run; there are no in-shard measured coverage totals to quote and no claim of a measured ≤1% coverage delta.

Shard Test/fixture files Test/fixture LOC before → after Declarations before → after Source report coverage
o0373 9 932 → 747 (-185) 21 → 18 Not run (CI-only)
o0375 2 970 → 734 (-236) 30 → 23 Not run (CI-only)
o0374 11 1127 → 913 (-214) 30 → 26 Not run (CI-only)
o0376 4 549 → 443 (-106) 10 → 9 Not run (CI-only)
o0378 2 241 → 213 (-28) 6 → 5 Not run (CI-only)
o0377 6 1218 → 978 (-240) 33 → 29 Not run (CI-only)
o0379 7 756 → 624 (-132) 29 → 25 Not run (CI-only)
o0380 2 1195 → 952 (-243) 42 → 18 Not run (CI-only)
o0381 5 790 → 687 (-103) 7 → 6 Not run (CI-only)
o0383 5 655 → 504 (-151) 23 → 19 Not run (CI-only)
o0382 7 1077 → 899 (-178) 28 → 24 Not run (CI-only)
o0385 5 587 → 418 (-169) 1 → 1 Not run (CI-only)
o0384 8 1170 → 935 (-235) 49 → 46 Not run (CI-only)
o0386 2 1155 → 1115 (-40) 21 → 20 Not run (CI-only)
Per-shard changed paths

o0373

  • src/agents/agent-tools.caller-identity.test-support.ts
  • src/agents/code-mode.skill-read.test.ts
  • src/agents/pending-final-delivery-marker.test.ts
  • src/agents/tool-description-presets.test.ts
  • src/agents/acp-workspace-provisioning.test.ts
  • src/agents/agent-harness-native-custody.test.ts
  • src/agents/code-mode.catalog-index.test.ts
  • src/agents/lifecycle-creation.retention.test-support.ts
  • src/agents/prepared-model-runtime.plugin-context.test.ts

o0375

  • src/boards/board-store.test.ts
  • src/boards/sqlite-board-store.outcomes.test.ts

o0374

  • src/infra/device-pairing-approval-policy.test.ts
  • src/infra/infra-store.test.ts
  • src/infra/session-delivery-queue.recovery.persistence.test.ts
  • src/infra/backup-volatile-filter.test.ts
  • src/infra/file-watch-notifier.test.ts
  • src/infra/package-update-steps.postinstall.test.ts
  • src/infra/package-update-swap.windows.test.ts
  • src/infra/session-cost-usage-fixtures.test-support.ts
  • src/infra/sqlite-transaction.deadline.test.ts
  • src/infra/update-capture-paths.test.ts
  • src/infra/update-run-step-key.test.ts

o0376

  • extensions/acpx/src/codex-auth-bridge.migration.test.ts
  • extensions/acpx/src/pi-session-upstream-activity.test.ts
  • extensions/acpx/src/runtime-process-cleanup.process.test.ts
  • extensions/acpx/src/runtime.admission-retention.test-support.ts

o0378

  • ui/src/pages/cron/cron-page.catalog-notifications.test.ts
  • ui/src/pages/cron/view-description.test.ts

o0377

  • src/canvas/serve.runtime.test.ts
  • src/canvas/widget-tool.presenter.test.ts
  • src/canvas/widget-tool.report.test.ts
  • src/canvas/widget-tool.test.ts
  • scripts/lib/ci-proof-test-inventory.mts
  • src/canvas/documents.test.ts
  • src/canvas/widget-tool.test-support.ts
  • test/vitest/vitest.database-worker-core-paths.mjs

o0379

  • extensions/browser/src/browser/cdp.helpers.transport.test.ts
  • extensions/browser/src/browser/chrome.headless-launch.test.ts
  • extensions/browser/src/browser/client-fetch.auth.transport.test.ts
  • extensions/browser/src/browser/pw-tools-core.interactions.set-input-files.test.ts
  • extensions/browser/src/browser/screenshot-annotate.test.ts
  • extensions/browser/src/browser/cdp.test-support.ts
  • extensions/browser/src/browser/pw-tools-core.activity.test.ts

o0380

  • extensions/microsoft-foundry/index.test.ts
  • extensions/microsoft-foundry/onboard.connection.test.ts

o0381

  • src/plugin-sdk/test-helpers/provider-http-mocks.ts
  • src/plugin-sdk/test-helpers/provider-wizard-contract-suites.ts
  • src/plugin-sdk/test-helpers/stt-live-audio.ts
  • src/plugin-sdk/test-helpers/temp-home.test.ts
  • src/plugin-sdk/test-helpers/provider-contract-suites.ts

o0383

  • extensions/matrix/src/actions.test.ts
  • extensions/matrix/src/approval-reactions.test.ts
  • extensions/matrix/src/channel.setup.test.ts
  • extensions/matrix/src/directory-live.test.ts
  • extensions/matrix/src/resolve-targets.test.ts

o0382

  • extensions/signal/src/client-container.handshake.loopback.test.ts
  • extensions/signal/src/monitor.approval-reply-delivery.test.ts
  • extensions/signal/src/account-selection.test.ts
  • extensions/signal/src/client-container.websocket.test.ts
  • extensions/signal/src/reply-authors.test.ts
  • extensions/signal/src/signal-ingress.approval-reaction-replay.test.ts
  • extensions/signal/src/socket-path.test.ts

o0385

  • ui/src/test-helpers/cron.ts
  • ui/src/test-helpers/chat-model.ts
  • ui/src/test-helpers/config-form-fixtures.tsx
  • ui/src/test-helpers/control-ui-pane-runtime.test.ts
  • ui/src/test-helpers/control-ui-workboard-states.ts

o0384

  • packages/gateway-protocol/src/schema/agent.test.ts
  • packages/gateway-protocol/src/schema/audit-run.test.ts
  • packages/gateway-protocol/src/schema/board.test.ts
  • packages/gateway-protocol/src/schema/human-mentions.test.ts
  • packages/gateway-protocol/src/schema/logs-chat.test.ts
  • packages/gateway-protocol/src/schema/projects.test.ts
  • packages/gateway-protocol/src/schema/users-prefs.test.ts
  • packages/gateway-protocol/src/schema/worktrees.test.ts

o0386

  • src/projects/project-environment.test.ts
  • src/projects/project-registry.test.ts

Reuse the catalog Code Mode harness and its completion runner, share expected skill metadata, and remove the plugin-only plan already implied by includeCoreTools=false. Use scoped spy disposal and consolidate default/link-description checks without removing assertions.

Retain distinct catalog overflow/prefix, ACP binding, plugin activation, recovery locator, sandbox readiness, native custody, and program-data lifecycle coverage. CI-only: oxfmt, plain oxlint, and diff checks; no test or coverage execution. Reduction: 1066 to 1039 lines (2.5%); further cuts were not justified by duplicate behavior.
Consolidate Code Mode catalog overflow into the skill suite in the same agents-core project. Drive overflow with a minimal inventory around real core tools; retain shell/process signatures and ordering. Control-schema stability remains in agent-tools.prefix-stability.test.ts (WebChat and GitHub catalog cases).

Replace synthetic completion metadata with the real persisted batch before testing all four compaction locator outcomes. Keep redaction, remote skill context, creator authority, native custody endings, closed-port detection and caller collection. Installed-skill search and unavailable-name proof remain in code-mode.test.ts (disk-backed harness read authority) and tools/installed-skill-tools.test.ts (searches and reads whole instructions).

Drop mocked metadata forwarding replays: harness/runtime-plugin.test.ts covers cold candidate scope; prepared-model-runtime.test.ts covers read-only/runtime owners; retain admitted activation ownership here. Remove copied description inventories while keeping optional link append and all explicit tool guidance assertions. Open-port delivery remains covered by worker-native-task-port.test.ts and worker-native-lifecycle.test.ts.

CI-only: plain oxlint, oxfmt, diff checks and static project routing passed; no tests or coverage run. Shard baseline 1066 -> 852 lines (-20.1%), including the prior commit. No production changes.
Share delayed HTML/MCP grant replacement setup while retaining both cases. Move revision and pending-grant assertions into the retained HTML grant lifecycle test.

Keep successful plugin update identity and revision proof in 'preserves native identity and layout through edits, reopen, and replacement'; narrow the ownership test to rejected replacements and removal. Preserve exact rollback assertions.

CI-only shard: oxlint, oxfmt and diff-check passed; no tests or coverage run. Shard LOC 1183 -> 1110 (6.2%); below the 20% target because remaining memory, persistence, authority and publication paths are distinct.
Combine snapshot isolation with public metadata reads and MCP placement with its server-grant lifecycle. Drop SQL/clone call-shape assertions and copied schema inventories; retain migration round-trip and strict-table checks.

Generated-name variant coverage remains in 'preserves a beta.5-format unmarked explicit row and reuses the generated fallback', 'persists explicit ownership after generated takeover', and the memory owner's byte-frozen identity test. Keep distinct fallback rejection, authority, rollback and publication scenarios.

Shard LOC: 1183 -> 946 (-20.03%); this follow-up removes 164 lines. Oxfmt, plain oxlint and diff-check pass. No tests, coverage, typecheck or build run under CI-only instructions.
Finish PASS 18 structural reduction: consolidate same-branch inputs and fixtures, remove copied schemas and internal call-count inventories, and retain observable boundary outcomes.

Owner coverage: dedupe.test.ts prunes expired entries with $name and clears itself when maxSize floors to zero; number-coercion.test.ts retains NaN coercion. voicewake-routing.test.ts resolves trigger routing with punctuation-insensitive trigger values. update-failure-report-prepare.test.ts projects durable failure history without losing authority or order and retains a recognized exit cause.

Backup coverage: backup-create.test.ts skips current live volatile state files while preserving workspace locks and applies privacy to marked links through restore. Capture ancestor validation retains malformed marker rejection. File-watch integration retains backpressured stdout retirement; local tests retain coalescing, error retirement, cleanup and reentry.
Reduce the shard from 1052 to 841 lines without changing production code. Share the legacy/maintained auth runner and advertised-model success paths; execute the prepared auth command rather than reconstructing it. Keep native bindings, baseline/cursor behavior, model errors, GC ownership and delayed-close interleavings.

Removed duplicate proof remains covered by: src/plugin-sdk/session-catalog.test.ts (coordinates adoption and reuses stored adoption); src/plugins/session-catalog-history-import.test.ts (imports and deduplicates in the supplied config store); src/plugins/session-catalog.test.ts (imports newest-first pages with native provenance); src/plugins/runtime/runtime-agent.test.ts (rolls back a plugin-owned locked CLI session when initialization fails); extensions/acpx/src/pi-session-catalog.test.ts (reads the active JSONL branch); runtime-argv.process.test.ts (portable Codex and Claude wrapper argv); codex-auth-bridge.test.ts (source auth/config isolation and custom Claude commands); runtime.admission.test.ts (queued admission after predecessor failure); runtime-owner.process.test.ts (owner histories across restart and controls); runtime-mcp.process.test.ts (MCP scoping across reconnect).

CI-only mode: no tests, coverage or typecheck run. Plain oxlint, oxfmt and git diff --check passed. Retained all distinct error, policy, migration-isolation, cursor and lifecycle assertions; removed redundant data variants and fixture-level rollback/dedup replays.
Remove the duplicated event-discovery/save scenario from reconnect tests; cron-page.events.test.ts retains the identical owner-boundary case. Reuse RPC/input helpers and consolidate saved-description fixtures and redundant detail mounts while preserving escaping and lifecycle assertions.
Reuse the widget harness for presenter tests and consolidate repeated pinned-state assertions. Keep all 34 declarations and 50 expanded cases, including CSP, path safety, report validation, persistence and presentation failures.

The real creates-and-refreshes pinned HTML tests retain board content/write proof; wrap.test.ts keeps wrapped bytes stable, covering the removed repeated theme literals. Retain independent sandbox assertions at the widget and HTTP boundaries.

CI-only campaign: oxlint, oxfmt and diff checks pass. No tests or coverage run. Reduce 1218 lines to 1138 (6.6%); retain distinct boundary cases rather than force the 20% target.
Merge report tests into the existing database-worker widget suite and HTTP tests into the unit-routed document suite. Share real board setup, remove the redundant document builder, reuse identical database cleanup, and table the three HTTP rejection branches.

Document materialization and sandbox metadata remain in the retained HTTP GET/HEAD test. The retained sandboxed SVG grant test covers the tool result, hosted document marker, SVG wrapping and network separation; wrap.test.ts keeps exact generated bytes stable. Report reopening now checks props and revision through board.get instead of repeating the store read.

Keep separate path/link security checks, report validation, presentation failures, permission outcomes, lifecycle ordering and generated-name collision proof. Only remove deleted paths from routing/inventory lists. CI-only: formatting, plain oxlint and diff checks passed; no tests or coverage run. Shard total: 1218 -> 972 lines (20.2% reduction).
Share annotation and auth fixtures, await CDP release directly, and trim redundant upload setup. Retain every test case and security/lifecycle assertion.

Chrome preference reuse remains covered by chrome.internal.test.ts: reuses existing preferences without bootstrapping another Chrome. Remove that repeated launch sequence from the fresh-headless-profile matrix.

CI-only validation: plain oxlint, oxfmt, and git diff --check. Shard LOC 968 to 924 (4.5%); the 20% target was not safely attainable without removing distinct behaviors.
Move password precedence and explicit empty-header checks onto the real bridge route table; remove the parallel hand-built auth server and manual registry fixture. Retain token normalization and all three auth outcomes.

Consolidate overlay serialization assertions and preserve no-viewport projection in the planner cap case. Metadata and production-path projection remain covered by pw-tools-core.annotate.test.ts: projects annotations and counts skipped refs (full page: %s). Remove the overlay-clear IIFE/attribute spelling check, not its production capture path.

Reuse heldAction for cancellation setup, remove unused second-element fixtures and internal call bookkeeping, and rely on the configured runner for cross-file module/mock cleanup. Preserve path confinement, guarded upload, stream release, and lifecycle assertions.

CI-only static gates: plain oxlint exit 0, oxfmt, git diff --check. No test or build runs. Original shard LOC 968 to 821 (15.2%); still below the 20% target.
Share stream wrapper setup and consolidate auth-result assertions at the persisted configuration boundary. Keep secret clearing, selected-profile ordering, discovered deployments, and default-model assertions together; retain all runtime-auth, cache lifecycle, replay, and connection cases.
Replace repeated model selection, capabilities, alias, prompt, and stream cases with branch tables. Keep cache expiry, refresh interleaving, retry, and real CLI subprocess proof unchanged. The 503 connection preview case now also owns oversized-body cancellation; the 400 case retains the finite-body path. Remove duplicate CLI argument and prompt call-shape checks while retaining auth scopes, timeout options, credential routing, and observable results.
Factor wizard provider fixture construction and inline the one-use transport installer. Preserve all choice-resolution rows, identity assertions, transport rebinding, and SDK contracts. No cases or exports removed.
Keep temp-home coverage focused on live-child cleanup and ownership. Generic input retention remains in test/scripts/fixture-lifetime.test.ts (retains inputs and reports unverified cleanup). Acquisition recovery and retained homes remain in src/test-utils/temp-home.test.ts (rolls back a throwing env callback before reuse; preserves body-failure retention).

Run the synthetic child inline, remove repeated fixture lookups and one-child wizard describe wrappers, bind transport mocks directly, and use the standard promise timer. No production or public export changes. Static lint and formatting only per CI-only campaign policy.
Use HTTP owner signatures instead of copied mock types. Validate wizard choices in one collection and reuse text validation for environment keys. Keep all SDK credential, metadata, selection and uniqueness contracts; the removed auth-array assertion is already enforced at artifact collection and registration.

Read-only preservation review found no further safe deletion layer: public artifact providers bypass normalization; raw HTTP and native mutation helpers have independent boundary consumers. CI-only validation: plain oxlint, oxfmt and diff check.
Share setup credentials and directory request assertions. Consolidate action schema gating and normalized lookup fixtures without dropping their branch assertions. The shipped enabled-mode table now also proves unknown approval fields are stripped, replacing the standalone non-strict-object case. Preserve approval isolation, persistence fallback, credential handoff, and directory error coverage. CI-only validation: formatting, diff check, and plain oxlint; runtime proof deferred to hosted CI.
Fold exact-group preference into caches exact group matches, and retain each local directory decision as a table row. Share bootstrap success/failure setup while preserving password and env-backed inputs. Trim pass-through result fixtures and internal store-opening call assertions; retain approval keys, account isolation, persistence fallback, and lifecycle proof. No production changes or files deleted. CI-only: oxfmt, plain oxlint, and diff check pass; no test execution.
Specialize the single-scenario real-TCP peer and keep cleanup local to its test. Simplify approval delivery fixture overrides without dropping assertions. Retain all socket security, approval routing, replay, and lifecycle cases. CI-only: formatting, diff check, and plain oxlint passed; runtime proof deferred to hosted CI.
Remove duplicate account status/threading proof covered by accounts.test.ts transport/account selection and core.test.ts 'resolves account and chat-type scoped reply-to modes through plugin threading'. Keep alias writers and collision behavior here.

Drop local SQL observer calibration covered by sqlite-host-data-observer.test.ts 'detects every host SQL operation'. Keep real reply persistence and zero host SQL assertions. Simplify crash/socket, WebSocket event, policy and single-case ingress fixtures; remove internal call-shape checks while preserving delivery, privacy, timeout, permission and replay outcomes. CI-only: plain oxlint, oxfmt and diff-check passed; no test runs.
Move malformed-frame continuation and redaction proof into the real TCP reconnect scenario. Share the UUID-only monitor fixture and retain approval hints, registration and quoted-command rejection. Generic select fallback and table formatting remain in src/interactive/payload.fallback.test.ts and payload.test.ts; route metadata remains in core.test.ts structured-approval coverage.

Remove transport variant replays: setup-core.test.ts preserves existing container transport on URL updates and rejects managed/native endpoint conflicts; this shard retains stored alias and canonical-key selection. CI-only: oxfmt, diff-check and plain oxlint passed; no tests run. Cumulative shard LOC 1180 -> 1002; remaining cuts would cross distinct security/lifecycle boundaries.
Reuse the canonical cron form defaults through an isolated fixture copy and share pagination defaults. Preserve every existing case and assertion, including form-validation and webhook boundary coverage. Other shard helpers retain distinct lifecycle, ordering, model-presence, and popover contracts; stop below the line target rather than erase them.
Keep the unique render-hook composition contract with a minimal owner fixture. Proxy state/presence and render replacement remain exercised by chat-background-invalidation's shared-roster test; history publication and commit fencing remain in chat-loading-performance's selected-tail test and its pagination probe. Stream-runtime-budgets retains real hook replacement coverage.

Preserve all workboard matrix combinations and indices, reuse the existing Solid mount/update helper, and simplify model and serialized event-stream fixture construction. CI-only: formatting, diff checks, and plain oxlint pass; no tests executed. Cumulative shard lines: 895 to 716 (20 percent).
Reuse validation helpers and request fixtures, shorten schema imports, and remove redundant chat describe wrappers. Keep every protocol case, including approval bindings, recovery data, safe audit projections, mention privacy and schema bounds.

The chat activity schema test retains all accepted statuses and rejected shapes; remove only the JSON stringify/parse self-comparison, which does not exercise a protocol implementation.

CI-only static validation: oxfmt, plain oxlint and git diff --check. 1170 -> 1088 test lines (-7.0%); 49 declarations / 55 expanded cases unchanged. The 20% target is not met: further cuts would remove distinct public protocol assertions or only reformat the remaining required fixtures.
Reduce original shard from 1170 to 935 lines (20.1%). This follow-up removes 153 lines from the previous commit without changing production or shared helpers. Keep all approval, custody, recovery, privacy, and bounds rejection cases.

Retained boundary proof for removed positive fixtures: src/agents/tools/conversation-tools.test.ts validates list/send/turn output schemas in execute, including the lists opaque external addresses, stable send retry, and correlated turn tests. src/gateway/server-methods/users-preferences.test.ts covers typed profile quota details, typed no-durable-identity results, successful values, and conflict results. src/gateway/server-methods/board-generated-identity.test.ts asserts committed resolved widget names. src/gateway/server-methods/projects.test.ts covers normalized configured default repositories; projects-recents.test.ts covers deterministic resolved recents. ProjectRecordSchema remains validated through ProjectsListResultSchema for registered, cloned, and workspace records; ProjectsAddResultSchema is the same schema alias.

Consolidate history optional metadata, activity statuses, and GC metadata into complete fixtures. Empty/full error details cover optional fields without per-field replays. Preference cases retain each normalization route, accepted icon form, bounds, whitespace, path/URL rejection, and a non-string representative. Remove only same-path unknown-value and non-string variants.

Validation: plain oxlint, oxfmt, git diff --check and commit guards pass. CI-only instructions: no test, coverage, or build commands run.
Reuse clone registration and project record fixtures without removing distinct security, persistence, environment-capture, or lifecycle assertions. All test declarations and table rows remain unchanged. The safe 18-line reduction is below the shard target; additional cuts need coordinator judgment.
Share complete and truncated ref inventory setup while retaining all four initial/fetched cases and their publication checks. Drop mocked registry-result restatements from the environment matrix: project-registry.test.ts 'registers, orders, resolves real paths, deduplicates roots, and removes rows' remains the real persistence proof. Retain all snapshot routing, clone target, and refresh identity assertions. The cumulative 44-line cut remains below the 20 percent target; no distinct boundary checks were removed to reach it.
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

Restore bare and Claude ACP migration cases and cross-run tool-schema stability. Reuse the current typed DOM helper and retain valid Vitest assertions after replaying the cleanup batch.

Validation: oxfmt, plain oxlint and git diff --check pass; focused independent review is clean. Runtime proof is delegated to PR CI under the CI-only campaign rule.
@steipete
steipete enabled auto-merge (squash) October 26, 2026 13:42
@steipete
steipete disabled auto-merge October 26, 2026 13:52
Repair exact-head CI errors in the consolidated Canvas response, Matrix resolver runtime, and void cleanup callback. Preserve header binding and existing fixture behavior.

Validation: plain oxlint, oxfmt and whitespace checks pass; independent corrective review is clean. Hosted PR CI owns test and typecheck proof under the CI-only rule.
@steipete
steipete enabled auto-merge (squash) October 26, 2026 13:53
@steipete
steipete disabled auto-merge October 26, 2026 14:04
Drop advertised-model consolidation that asserted an invalid intermediate alias state. Restore the recognized fetch mock so the guarded transport keeps headless launch tests hermetic.

Exact-head CI exposed these fixture regressions. Formatting, plain oxlint, whitespace checks and independent corrective review pass; runtime validation remains in hosted CI.
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@steipete
steipete enabled auto-merge (squash) October 26, 2026 14:07
@clawsweeper clawsweeper Bot removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@steipete
steipete disabled auto-merge October 26, 2026 14:22
Drop two formatting-only mock rewrites flagged by the exact-head export ratchet. Preserve the original fixture exports and isolation without adding baseline exceptions.

Formatting, plain lint, whitespace checks and independent review pass. Hosted CI owns runtime and ratchet validation.
@steipete
steipete enabled auto-merge (squash) October 26, 2026 14:25
@steipete
steipete disabled auto-merge October 26, 2026 14:31
@steipete
steipete enabled auto-merge (squash) October 26, 2026 14:37
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR consolidates tests and shared fixtures and removes redundant assertions and stale test-inventory entries.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful consolidation with passing hosted test lanes, but two independent protocol checks need restoration.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test cleanup changes no production behavior; exact-head hosted Node and UI suites passed, with broader CI still pending.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-directed cleanup reduces repeated fixture machinery without requiring a product change, provided independent protocol contracts remain covered.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep open: this useful cleanup removes two independent protocol-schema checks that the cited handler tests do not replace.

Priority: P3
Reviewed head: b76377d60158ed25a11c24ab64d9dccb8b0482ba

Before merge

  • Restore preference result-schema acceptance checks (P2) - The removed quota-detail and preference-result tests are independent protocol checks. The cited users-preferences suite calls usersHandlers directly and captures payloads without validating UsersPrefsGetResultSchema, UsersPrefsSetResultSchema, or the error-detail schemas. A schema that rejects the valid {status: "conflict"} or {status: "no_durable_identity"} response would therefore leave those replacement tests green. Retain compact schema acceptance cases, or validate the real handler responses against these schemas before removing the fixtures.
  • Retain validation of the widget-put result schema (P2) - Removing the committed-widget-name case eliminates the independent check that BoardWidgetPutResultSchema accepts a snapshot containing resolvedWidgetName. The cited board-generated-identity test only casts the handler payload and reads that property; it never runs the schema. Removing resolvedWidgetName from the closed result schema would now leave that test green while making valid widget-put responses fail schema validation. Keep the compact acceptance case or add schema validation to the retained handler test.
  • Explain or restore the original intent of Preference and board result-schema acceptance - unknown: These assertions independently protect exported protocol payloads. Local blame could not recover older blobs; feature history and feat: sync new-session preferences and recents by identity #121816 establish the preference contract, but not the exact test introduction.

Findings

  • [P2] Restore preference result-schema acceptance checks — packages/gateway-protocol/src/schema/users-prefs.test.ts:83-87
  • [P2] Retain validation of the widget-put result schema — packages/gateway-protocol/src/schema/board.test.ts:74-77

Provenance

  • Preference and board result-schema acceptance changes intended behavior without addressing why it exists (unknown: These assertions independently protect exported protocol payloads. Local blame could not recover older blobs; feature history and feat: sync new-session preferences and recents by identity #121816 establish the preference contract, but not the exact test introduction.)
Agent review details

How this fits together

The test suites exercise agent, plugin, Gateway protocol, storage, and UI owners using fixtures, then report assertions through Vitest and CI.

flowchart LR
  A[Test fixtures] --> B[Production owners]
  B --> C[Observed responses]
  C --> D[Behavior assertions]
  C --> E[Protocol schema validation]
  D --> F[CI results]
  E --> F
Loading

Technical review

Best possible solution:

Keep the consolidation while retaining compact preference and board result-schema acceptance checks in the existing protocol suites.

Do we have a high-confidence way to reproduce the issue?

Source inspection confirms the removed schema assertions have no equivalent in the cited replacement tests; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Consolidation is appropriate, but matching handler payloads does not independently test whether the exported protocol schemas accept those payloads.

Full review comments:

  • [P2] Restore preference result-schema acceptance checks — packages/gateway-protocol/src/schema/users-prefs.test.ts:83-87
    The removed quota-detail and preference-result tests are independent protocol checks. The cited users-preferences suite calls usersHandlers directly and captures payloads without validating UsersPrefsGetResultSchema, UsersPrefsSetResultSchema, or the error-detail schemas. A schema that rejects the valid {status: "conflict"} or {status: "no_durable_identity"} response would therefore leave those replacement tests green. Retain compact schema acceptance cases, or validate the real handler responses against these schemas before removing the fixtures.
    Confidence: 0.96
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] Retain validation of the widget-put result schema — packages/gateway-protocol/src/schema/board.test.ts:74-77
    Removing the committed-widget-name case eliminates the independent check that BoardWidgetPutResultSchema accepts a snapshot containing resolvedWidgetName. The cited board-generated-identity test only casts the handler payload and reads that property; it never runs the schema. Removing resolvedWidgetName from the closed result schema would now leave that test green while making valid widget-put responses fail schema validation. Keep the compact acceptance case or add schema validation to the retained handler test.
    Confidence: 0.95
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8f737e10ef62.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test packages/gateway-protocol/src/schema/users-prefs.test.ts packages/gateway-protocol/src/schema/board.test.ts --maxWorkers=1
  • pnpm check:changed
  • git diff --check

What I checked:

  • Pinned introduction: The verified merge-base-to-head diff changes tests, fixtures, and two inventory entries; it introduces no production implementation changes. (b76377d60158)
  • Preference replacement bypasses schema validation: The cited preference tests invoke usersHandlers directly and capture an unvalidated payload; they do not replace the removed UsersPrefsGetResultSchema, UsersPrefsSetResultSchema, or quota-detail schema assertions. (src/gateway/server-methods/users-preferences.test.ts:120, b76377d60158)
  • Board replacement bypasses schema validation: The cited generated-identity test reads resolvedWidgetName through a type assertion rather than validating the response against BoardWidgetPutResultSchema. (src/gateway/server-methods/board-generated-identity.test.ts:54, b76377d60158)
  • An equivalent consolidation exists elsewhere: Conversation-tool tests independently validate returned details against the exported output schemas, so those removed standalone positive fixtures retain schema coverage. (src/agents/tools/conversation-tools.test.ts:58, b76377d60158)
  • Feature-history ownership: Current-main history includes Peter Steinberger's board performance repair, Canvas retirement, Code Mode repair, and shared-fixture refactors, establishing ownership beyond this PR. (src/boards/board-store.test.ts:278, d1a8e9966dfb)
  • Exact-head CI: The reviewed head's Node and UI test jobs passed; two PostgreSQL conformance jobs and an iOS scan remained in progress. No diff-caused CI failure was established. (b76377d60158)

PR surface

Tests -2261, Other -1. Total -2262 across 77 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 76 2616 4877 -2261
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 77 2616 4878 -2262

Labels

Label changes:

  • add P3: This is test maintenance with no production behavior change; the repairs preserve independent contract coverage.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is test maintenance with no production behavior change; the repairs preserve independent contract coverage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

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

Reviewed October 26, 2026, 10:46 AM ET / 14:46 UTC.

@steipete
steipete merged commit 703c981 into main Oct 26, 2026
173 of 175 checks passed
@steipete
steipete deleted the tcr/land-d613-1793021542 branch October 26, 2026 14:49
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…w#184680)

* test(agents): deslop o0373 tests

Reuse the catalog Code Mode harness and its completion runner, share expected skill metadata, and remove the plugin-only plan already implied by includeCoreTools=false. Use scoped spy disposal and consolidate default/link-description checks without removing assertions.

Retain distinct catalog overflow/prefix, ACP binding, plugin activation, recovery locator, sandbox readiness, native custody, and program-data lifecycle coverage. CI-only: oxfmt, plain oxlint, and diff checks; no test or coverage execution. Reduction: 1066 to 1039 lines (2.5%); further cuts were not justified by duplicate behavior.

* test(agents): consolidate o0373 boundary proofs

Consolidate Code Mode catalog overflow into the skill suite in the same agents-core project. Drive overflow with a minimal inventory around real core tools; retain shell/process signatures and ordering. Control-schema stability remains in agent-tools.prefix-stability.test.ts (WebChat and GitHub catalog cases).

Replace synthetic completion metadata with the real persisted batch before testing all four compaction locator outcomes. Keep redaction, remote skill context, creator authority, native custody endings, closed-port detection and caller collection. Installed-skill search and unavailable-name proof remain in code-mode.test.ts (disk-backed harness read authority) and tools/installed-skill-tools.test.ts (searches and reads whole instructions).

Drop mocked metadata forwarding replays: harness/runtime-plugin.test.ts covers cold candidate scope; prepared-model-runtime.test.ts covers read-only/runtime owners; retain admitted activation ownership here. Remove copied description inventories while keeping optional link append and all explicit tool guidance assertions. Open-port delivery remains covered by worker-native-task-port.test.ts and worker-native-lifecycle.test.ts.

CI-only: plain oxlint, oxfmt, diff checks and static project routing passed; no tests or coverage run. Shard baseline 1066 -> 852 lines (-20.1%), including the prior commit. No production changes.

* test(boards): deslop o0375 tests

Share delayed HTML/MCP grant replacement setup while retaining both cases. Move revision and pending-grant assertions into the retained HTML grant lifecycle test.

Keep successful plugin update identity and revision proof in 'preserves native identity and layout through edits, reopen, and replacement'; narrow the ownership test to rejected replacements and removal. Preserve exact rollback assertions.

CI-only shard: oxlint, oxfmt and diff-check passed; no tests or coverage run. Shard LOC 1183 -> 1110 (6.2%); below the 20% target because remaining memory, persistence, authority and publication paths are distinct.

* test(boards): consolidate o0375 owner scenarios

Combine snapshot isolation with public metadata reads and MCP placement with its server-grant lifecycle. Drop SQL/clone call-shape assertions and copied schema inventories; retain migration round-trip and strict-table checks.

Generated-name variant coverage remains in 'preserves a beta.5-format unmarked explicit row and reuses the generated fallback', 'persists explicit ownership after generated takeover', and the memory owner's byte-frozen identity test. Keep distinct fallback rejection, authority, rollback and publication scenarios.

Shard LOC: 1183 -> 946 (-20.03%); this follow-up removes 164 lines. Oxfmt, plain oxlint and diff-check pass. No tests, coverage, typecheck or build run under CI-only instructions.

* test(infra): deslop o0374 tests

* test(infra): deslop o0374 tests

Finish PASS 18 structural reduction: consolidate same-branch inputs and fixtures, remove copied schemas and internal call-count inventories, and retain observable boundary outcomes.

Owner coverage: dedupe.test.ts prunes expired entries with $name and clears itself when maxSize floors to zero; number-coercion.test.ts retains NaN coercion. voicewake-routing.test.ts resolves trigger routing with punctuation-insensitive trigger values. update-failure-report-prepare.test.ts projects durable failure history without losing authority or order and retains a recognized exit cause.

Backup coverage: backup-create.test.ts skips current live volatile state files while preserving workspace locks and applies privacy to marked links through restore. Capture ancestor validation retains malformed marker rejection. File-watch integration retains backpressured stdout retirement; local tests retain coalescing, error retirement, cleanup and reentry.

* test(acpx): deslop o0376 tests

* test(acpx): consolidate o0376 boundary proof

Reduce the shard from 1052 to 841 lines without changing production code. Share the legacy/maintained auth runner and advertised-model success paths; execute the prepared auth command rather than reconstructing it. Keep native bindings, baseline/cursor behavior, model errors, GC ownership and delayed-close interleavings.

Removed duplicate proof remains covered by: src/plugin-sdk/session-catalog.test.ts (coordinates adoption and reuses stored adoption); src/plugins/session-catalog-history-import.test.ts (imports and deduplicates in the supplied config store); src/plugins/session-catalog.test.ts (imports newest-first pages with native provenance); src/plugins/runtime/runtime-agent.test.ts (rolls back a plugin-owned locked CLI session when initialization fails); extensions/acpx/src/pi-session-catalog.test.ts (reads the active JSONL branch); runtime-argv.process.test.ts (portable Codex and Claude wrapper argv); codex-auth-bridge.test.ts (source auth/config isolation and custom Claude commands); runtime.admission.test.ts (queued admission after predecessor failure); runtime-owner.process.test.ts (owner histories across restart and controls); runtime-mcp.process.test.ts (MCP scoping across reconnect).

CI-only mode: no tests, coverage or typecheck run. Plain oxlint, oxfmt and git diff --check passed. Retained all distinct error, policy, migration-isolation, cursor and lifecycle assertions; removed redundant data variants and fixture-level rollback/dedup replays.

* test(cron): deslop o0378 tests

Remove the duplicated event-discovery/save scenario from reconnect tests; cron-page.events.test.ts retains the identical owner-boundary case. Reuse RPC/input helpers and consolidate saved-description fixtures and redundant detail mounts while preserving escaping and lifecycle assertions.

* test(canvas): deslop o0377 tests

Reuse the widget harness for presenter tests and consolidate repeated pinned-state assertions. Keep all 34 declarations and 50 expanded cases, including CSP, path safety, report validation, persistence and presentation failures.

The real creates-and-refreshes pinned HTML tests retain board content/write proof; wrap.test.ts keeps wrapped bytes stable, covering the removed repeated theme literals. Retain independent sandbox assertions at the widget and HTTP boundaries.

CI-only campaign: oxlint, oxfmt and diff checks pass. No tests or coverage run. Reduce 1218 lines to 1138 (6.6%); retain distinct boundary cases rather than force the 20% target.

* test(canvas): consolidate o0377 owner suites

Merge report tests into the existing database-worker widget suite and HTTP tests into the unit-routed document suite. Share real board setup, remove the redundant document builder, reuse identical database cleanup, and table the three HTTP rejection branches.

Document materialization and sandbox metadata remain in the retained HTTP GET/HEAD test. The retained sandboxed SVG grant test covers the tool result, hosted document marker, SVG wrapping and network separation; wrap.test.ts keeps exact generated bytes stable. Report reopening now checks props and revision through board.get instead of repeating the store read.

Keep separate path/link security checks, report validation, presentation failures, permission outcomes, lifecycle ordering and generated-name collision proof. Only remove deleted paths from routing/inventory lists. CI-only: formatting, plain oxlint and diff checks passed; no tests or coverage run. Shard total: 1218 -> 972 lines (20.2% reduction).

* test(browser): deslop o0379 tests

Share annotation and auth fixtures, await CDP release directly, and trim redundant upload setup. Retain every test case and security/lifecycle assertion.

Chrome preference reuse remains covered by chrome.internal.test.ts: reuses existing preferences without bootstrapping another Chrome. Remove that repeated launch sequence from the fresh-headless-profile matrix.

CI-only validation: plain oxlint, oxfmt, and git diff --check. Shard LOC 968 to 924 (4.5%); the 20% target was not safely attainable without removing distinct behaviors.

* test(browser): consolidate o0379 fixtures and redundant proof

Move password precedence and explicit empty-header checks onto the real bridge route table; remove the parallel hand-built auth server and manual registry fixture. Retain token normalization and all three auth outcomes.

Consolidate overlay serialization assertions and preserve no-viewport projection in the planner cap case. Metadata and production-path projection remain covered by pw-tools-core.annotate.test.ts: projects annotations and counts skipped refs (full page: %s). Remove the overlay-clear IIFE/attribute spelling check, not its production capture path.

Reuse heldAction for cancellation setup, remove unused second-element fixtures and internal call bookkeeping, and rely on the configured runner for cross-file module/mock cleanup. Preserve path confinement, guarded upload, stream release, and lifecycle assertions.

CI-only static gates: plain oxlint exit 0, oxfmt, git diff --check. No test or build runs. Original shard LOC 968 to 821 (15.2%); still below the 20% target.

* test(microsoft-foundry): deslop o0380 tests

Share stream wrapper setup and consolidate auth-result assertions at the persisted configuration boundary. Keep secret clearing, selected-profile ordering, discovered deployments, and default-model assertions together; retain all runtime-auth, cache lifecycle, replay, and connection cases.

* test(microsoft-foundry): consolidate o0380 branch coverage

Replace repeated model selection, capabilities, alias, prompt, and stream cases with branch tables. Keep cache expiry, refresh interleaving, retry, and real CLI subprocess proof unchanged. The 503 connection preview case now also owns oversized-body cancellation; the 400 case retains the finite-body path. Remove duplicate CLI argument and prompt call-shape checks while retaining auth scopes, timeout options, credential routing, and observable results.

* test(plugin-sdk): deslop o0381 tests

Factor wizard provider fixture construction and inline the one-use transport installer. Preserve all choice-resolution rows, identity assertions, transport rebinding, and SDK contracts. No cases or exports removed.

* test(plugin-sdk): remove redundant o0381 fixture layers

Keep temp-home coverage focused on live-child cleanup and ownership. Generic input retention remains in test/scripts/fixture-lifetime.test.ts (retains inputs and reports unverified cleanup). Acquisition recovery and retained homes remain in src/test-utils/temp-home.test.ts (rolls back a throwing env callback before reuse; preserves body-failure retention).

Run the synthetic child inline, remove repeated fixture lookups and one-child wizard describe wrappers, bind transport mocks directly, and use the standard promise timer. No production or public export changes. Static lint and formatting only per CI-only campaign policy.

* test(plugin-sdk): consolidate o0381 contract scaffolding

Use HTTP owner signatures instead of copied mock types. Validate wizard choices in one collection and reuse text validation for environment keys. Keep all SDK credential, metadata, selection and uniqueness contracts; the removed auth-array assertion is already enforced at artifact collection and registration.

Read-only preservation review found no further safe deletion layer: public artifact providers bypass normalization; raw HTTP and native mutation helpers have independent boundary consumers. CI-only validation: plain oxlint, oxfmt and diff check.

* test(matrix): deslop o0383 tests

Share setup credentials and directory request assertions. Consolidate action schema gating and normalized lookup fixtures without dropping their branch assertions. The shipped enabled-mode table now also proves unknown approval fields are stripped, replacing the standalone non-strict-object case. Preserve approval isolation, persistence fallback, credential handoff, and directory error coverage. CI-only validation: formatting, diff check, and plain oxlint; runtime proof deferred to hosted CI.

* test(matrix): finish structural reduction for o0383

Fold exact-group preference into caches exact group matches, and retain each local directory decision as a table row. Share bootstrap success/failure setup while preserving password and env-backed inputs. Trim pass-through result fixtures and internal store-opening call assertions; retain approval keys, account isolation, persistence fallback, and lifecycle proof. No production changes or files deleted. CI-only: oxfmt, plain oxlint, and diff check pass; no test execution.

* test(signal): deslop o0382 tests

Specialize the single-scenario real-TCP peer and keep cleanup local to its test. Simplify approval delivery fixture overrides without dropping assertions. Retain all socket security, approval routing, replay, and lifecycle cases. CI-only: formatting, diff check, and plain oxlint passed; runtime proof deferred to hosted CI.

* test(signal): prune redundant o0382 fixtures and checks

Remove duplicate account status/threading proof covered by accounts.test.ts transport/account selection and core.test.ts 'resolves account and chat-type scoped reply-to modes through plugin threading'. Keep alias writers and collision behavior here.

Drop local SQL observer calibration covered by sqlite-host-data-observer.test.ts 'detects every host SQL operation'. Keep real reply persistence and zero host SQL assertions. Simplify crash/socket, WebSocket event, policy and single-case ingress fixtures; remove internal call-shape checks while preserving delivery, privacy, timeout, permission and replay outcomes. CI-only: plain oxlint, oxfmt and diff-check passed; no test runs.

* test(signal): consolidate o0382 boundary coverage

Move malformed-frame continuation and redaction proof into the real TCP reconnect scenario. Share the UUID-only monitor fixture and retain approval hints, registration and quoted-command rejection. Generic select fallback and table formatting remain in src/interactive/payload.fallback.test.ts and payload.test.ts; route metadata remains in core.test.ts structured-approval coverage.

Remove transport variant replays: setup-core.test.ts preserves existing container transport on URL updates and rejects managed/native endpoint conflicts; this shard retains stored alias and canonical-key selection. CI-only: oxfmt, diff-check and plain oxlint passed; no tests run. Cumulative shard LOC 1180 -> 1002; remaining cuts would cross distinct security/lifecycle boundaries.

* test(ui): deslop o0385 tests

Reuse the canonical cron form defaults through an isolated fixture copy and share pagination defaults. Preserve every existing case and assertion, including form-validation and webhook boundary coverage. Other shard helpers retain distinct lifecycle, ordering, model-presence, and popover contracts; stop below the line target rather than erase them.

* test(ui): consolidate o0385 fixture layers

Keep the unique render-hook composition contract with a minimal owner fixture. Proxy state/presence and render replacement remain exercised by chat-background-invalidation's shared-roster test; history publication and commit fencing remain in chat-loading-performance's selected-tail test and its pagination probe. Stream-runtime-budgets retains real hook replacement coverage.

Preserve all workboard matrix combinations and indices, reuse the existing Solid mount/update helper, and simplify model and serialized event-stream fixture construction. CI-only: formatting, diff checks, and plain oxlint pass; no tests executed. Cumulative shard lines: 895 to 716 (20 percent).

* test(gateway-protocol): deslop o0384 tests

Reuse validation helpers and request fixtures, shorten schema imports, and remove redundant chat describe wrappers. Keep every protocol case, including approval bindings, recovery data, safe audit projections, mention privacy and schema bounds.

The chat activity schema test retains all accepted statuses and rejected shapes; remove only the JSON stringify/parse self-comparison, which does not exercise a protocol implementation.

CI-only static validation: oxfmt, plain oxlint and git diff --check. 1170 -> 1088 test lines (-7.0%); 49 declarations / 55 expanded cases unchanged. The 20% target is not met: further cuts would remove distinct public protocol assertions or only reformat the remaining required fixtures.

* test(gateway-protocol): finish o0384 test consolidation

Reduce original shard from 1170 to 935 lines (20.1%). This follow-up removes 153 lines from the previous commit without changing production or shared helpers. Keep all approval, custody, recovery, privacy, and bounds rejection cases.

Retained boundary proof for removed positive fixtures: src/agents/tools/conversation-tools.test.ts validates list/send/turn output schemas in execute, including the lists opaque external addresses, stable send retry, and correlated turn tests. src/gateway/server-methods/users-preferences.test.ts covers typed profile quota details, typed no-durable-identity results, successful values, and conflict results. src/gateway/server-methods/board-generated-identity.test.ts asserts committed resolved widget names. src/gateway/server-methods/projects.test.ts covers normalized configured default repositories; projects-recents.test.ts covers deterministic resolved recents. ProjectRecordSchema remains validated through ProjectsListResultSchema for registered, cloned, and workspace records; ProjectsAddResultSchema is the same schema alias.

Consolidate history optional metadata, activity statuses, and GC metadata into complete fixtures. Empty/full error details cover optional fields without per-field replays. Preference cases retain each normalization route, accepted icon form, bounds, whitespace, path/URL rejection, and a non-string representative. Remove only same-path unknown-value and non-string variants.

Validation: plain oxlint, oxfmt, git diff --check and commit guards pass. CI-only instructions: no test, coverage, or build commands run.

* test(projects): deslop o0386 tests

Reuse clone registration and project record fixtures without removing distinct security, persistence, environment-capture, or lifecycle assertions. All test declarations and table rows remain unchanged. The safe 18-line reduction is below the shard target; additional cuts need coordinator judgment.

* test(projects): consolidate o0386 inventory fixtures

Share complete and truncated ref inventory setup while retaining all four initial/fetched cases and their publication checks. Drop mocked registry-result restatements from the environment matrix: project-registry.test.ts 'registers, orders, resolves real paths, deduplicates roots, and removes rows' remains the real persistence proof. Retain all snapshot routing, clone target, and refresh identity assertions. The cumulative 44-line cut remains below the 20 percent target; no distinct boundary checks were removed to reach it.

* test: preserve boundary coverage after batch replay

Restore bare and Claude ACP migration cases and cross-run tool-schema stability. Reuse the current typed DOM helper and retain valid Vitest assertions after replaying the cleanup batch.

Validation: oxfmt, plain oxlint and git diff --check pass; focused independent review is clean. Runtime proof is delegated to PR CI under the CI-only campaign rule.

* test: retain typed response and runtime fixture contracts

Repair exact-head CI errors in the consolidated Canvas response, Matrix resolver runtime, and void cleanup callback. Preserve header binding and existing fixture behavior.

Validation: plain oxlint, oxfmt and whitespace checks pass; independent corrective review is clean. Hosted PR CI owns test and typecheck proof under the CI-only rule.

* test: restore model selection and mocked transport fixtures

Drop advertised-model consolidation that asserted an invalid intermediate alias state. Restore the recognized fetch mock so the guarded transport keeps headless launch tests hermetic.

Exact-head CI exposed these fixture regressions. Formatting, plain oxlint, whitespace checks and independent corrective review pass; runtime validation remains in hosted CI.

* test: preserve existing project mock declarations

Drop two formatting-only mock rewrites flagged by the exact-head export ratchet. Preserve the original fixture exports and isolation without adding baseline exceptions.

Formatting, plain lint, whitespace checks and independent review pass. Hosted CI owns runtime and ratchet validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: matrix Channel integration: matrix channel: signal Channel integration: signal extensions: acpx extensions: browser extensions: microsoft-foundry gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant