Skip to content

test(agents,plugins,ui): remove low-value tests (batch d042) - #168283

Merged
steipete merged 13 commits into
mainfrom
tcr/land-d042-1791612437
Oct 11, 2026
Merged

steipete merged 13 commits into
mainfrom
tcr/land-d042-1791612437

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Settled scope — supersedes the historical inventory below

The original cleanup removed distinct regression contracts as well as duplicate tests. Settlement restores those contracts and keeps only the independently reviewed smaller cut. Merged candidate: 0224e274d99d1a132beda70f4f7e30e9bbc37b96, tree 1a3afc763b8bd2d56d0ac437119d4053281bd794; squash merge 6abc55e183899edf8e3abf842d7147d13acfdb28.

  • Final diff against the reviewed base 390f0f0acb98c577d5ccf71cd04201a6c4083c7b: 33 test files, +128/-1,650 lines, net -1,522. Production, shared support, and configuration changes: zero.
  • Four rebase conflicts keep current main's complete suites: thinking-runtime, transcript-policy, QA gateway-child, and device-pair notify. Another 77 files were restored exactly to main after independent review, preserving security, ownership, delivery, recovery, public SDK, provider, and evidence-integrity contracts. No test timeout, assertion, expectation, or skip policy was relaxed.
  • All 81 restored/conflict-resolved suites passed in focused Testbox runs. Candidate proof. The last proof's source tree exactly matches the committed tree above. Final independent review is scoped-clean at P1; local plain Oxlint, Oxfmt, and diff checks pass.
  • The original architecture failure was the Kysely guard in two untouched production files, already fixed on main by db6449d3f6091740dbddcf02fdc0e34dc94ca424. The same command passes on clean main and the candidate; architecture passed final-head CI.
  • Final-head CI exposed an unrelated QA Smoke profile-4 failure. The exact grouped invocation reproduced the same subagent-completion-direct-fallback / [public:silent] timeout on clean current main, while passing on this PR head. The PR was merged under the explicitly authorized pre-existing-failure admin exception, as recorded in the evidence comment. The QA check and its aggregate were not claimed green; both were recorded for separate main repair. Historical coverage totals below are not a new coverage claim for this settled scope.
Final changed-file inventory
  • extensions/fal/music-generation-provider.test.ts
  • extensions/fal/video-generation-provider.test.ts
  • extensions/openai/embedding-provider.test.ts
  • extensions/qa-lab/src/evidence-environment.test.ts
  • extensions/qa-lab/src/evidence-gallery.test.ts
  • extensions/qa-lab/src/gateway-child-auth-profiles.test.ts
  • extensions/qa-lab/src/gateway-log-sentinel.test.ts
  • extensions/qa-lab/src/gateway-rpc-client.test.ts
  • extensions/qa-lab/src/lab-server-ui.test.ts
  • packages/media-core/src/attachment-classify.test.ts
  • packages/sdk/src/event-hub.test.ts
  • src/agents/embedded-agent-runner/cache-ttl.test.ts
  • src/agents/embedded-agent-runner/cli-backend-dispatch-transcript.test.ts
  • src/agents/embedded-agent-runner/compact-reasons.test.ts
  • src/agents/embedded-agent-runner/model.static-catalog.snapshot-cache.test.ts
  • src/agents/sessions-spawn-hooks.test.ts
  • src/node-host/node-worker-native-inference.test.ts
  • src/plugins/slots.test.ts
  • src/plugins/theme-catalog.test.ts
  • src/plugins/web-provider-public-artifacts.fallback.test.ts
  • test/scripts/clawlog.test.ts
  • test/scripts/cli-startup-bench-spawner.test.ts
  • test/scripts/close-duplicate-prs-after-merge.test.ts
  • test/scripts/codex-app-server-protocol-source.test.ts
  • test/scripts/codex-media-path-client.test.ts
  • test/scripts/control-ui-i18n-sync-plan.test.ts
  • test/scripts/control-ui-i18n-verify.test.ts
  • ui/src/components/markdown-code-blocks.test.ts
  • ui/src/components/markdown-mermaid.test.ts
  • ui/src/components/markdown-tables.test.ts
  • ui/src/components/mascot-animator.test.ts
  • ui/src/components/mcp-app-theme.test.ts
  • ui/src/components/multi-select.test.ts
Original campaign evidence and inventory — historical, superseded by settled scope above

What Problem This Solves

Reduces duplicate, implementation-mirroring, and low-value tests from the maintainer-requested cleanup campaign, batch d042.

User Impact

No user-visible behavior change. Production code, shared test support, and configuration are unchanged in the final diff. The final reduction is 11,396 test lines across 114 files, with 526 fewer static test declarations. Existing regression, security, authority, lifecycle, and browser contracts take precedence over deletion targets.

Why This Change Was Made

All ten requested commits were applied in order, preserving their subjects; none was skipped. Initial replay base was 6ca61e2b5b78fd3a113ab5d70ce21b9f30e8dd46. Main movement required two rebases; the final base is d54483901779f1acf9cd84f2c902d205d7ae1e5a.

Most hunks delete repeated cases or consolidate fixtures. x1079 instead strengthens two embedding error assertions (typed error code/status and exact diagnostics), with no test deletion.

Eight independent-review findings and two hosted-review findings were accepted. A subsequent WebKit CI failure exposed an additional named-test registration contract. Cleanup hunks were dropped completely for the following thirteen files; their current-main tests remain intact:

  • src/node-host/invoke-system-run-allowlist.test.ts
  • src/node-host/invoke-system-run.test.ts
  • src/agents/tool-allowlist-guard.test.ts
  • src/agents/embedded-agent-runner/google-prompt-cache.failures.test.ts
  • ui/src/components/mcp-app-view.test.ts
  • src/node-host/node-worker-bundle-installer.test.ts
  • test/scripts/clawsweeper-review-gate.test.ts
  • src/node-host/node-worker-prepared-workspace.test.ts
  • test/scripts/codeql-network-diff-scan.test.ts
  • src/node-host/invoke-system-run-plan.test.ts
  • src/node-host/node-worker-turn-store.test.ts
  • test/scripts/control-ui-performance.test.ts
  • ui/src/components/modal-dialog.test.ts

This preserves executable-path pinning, fail-closed explicit tool allowlists, writer takeover, MCP sandbox URL validation, bundle integrity, unambiguous review markers, manifest-publication rollback, security-query routing, short native-binary reads, predecessor-writer compatibility, the current performance model, and the complete modal/WebKit matrix.

Conflict decisions preserved current main's async Google cache entries and native-dialog behavior. On the first rebase, main had retired the old retained-asset model, so the performance-file cleanup was dropped entirely. The upstream i18n ordering correction was retained. The modal cleanup was later dropped entirely: the new WebKit lane requires exact named autofocus/reopen cases. No WebKit expectation, skip, or assertion was weakened.

Two TS2339 errors in the initial hosted run were fixed by removing reads of properties absent from every retained fixture row in tool-surface-plan.test.ts; its message-only allowlist stays explicit. The initial stale max-lines entry repair is now also present in main, so no baseline change remains in this final diff.

No final changed path matches CODEOWNERS.

Evidence

  • Frozen installs, Oxfmt, diff checks, and plain Oxlint passed.
  • Original aggregate focused run: 1,851 passed, 65 existing skips, 127 files. After the final two independent-contract restorations: 41 passed, affected typecheck and max-lines ratchet passed.
  • First-rebase focused run: 1,908 passed, 65 existing skips, 127 files. Its affected changed-file gate passed guards and root typecheck partitions before the pre-existing dead-export failures described below.
  • Final browser correction: the actual WebKit lane passed all 18 files, 281 cases plus 12 correctly recognized expected failures; the normal modal suite passed 25 tests, and its ui-components typecheck passed. Final correction review is scoped-clean at P1. Final WebKit proof, lease tbx_01m4jg50vwyd8z3b017ahtn6dh, verified tree 5460ad9728b4ef1c0502a6114ceef0fe23c92f3f, matching commit 71e716cd728933d13d691670a92bf4f877228069.
  • Broad changed-file validation passed all core test typecheck partitions, extension test types, root test types, architecture/i18n/ratchet checks, and coercion/deprecated-API checks. It stopped at dead-export scanning; later lint stages were not reached by that command.
  • The three unused exports (isPollVoteEchoText, PUBLIC_SESSION_ENTRY_SCRIPT, isClaudeLikeLiveAgent) were independently reproduced on clean standalone detached main 587a19170f3c333ad94507212e1ea18ec7c52d18 with its own frozen install. They are in untouched production files, are recorded for separate main repair, and are not represented as a passing gate. Standalone-main and aggregate proof run. First-rebase proof run.
  • All required hosted checks passed on bcb64fd49e161c2a5e908b945371e1bef1ae24c8 before main introduced the conflict. The next head exposed the WebKit registration failure and was not merged. Both real CI failures were repaired, not rerun unchanged. Fresh exact-head hosted openclaw/ci-gate remains the merge gate.
  • Early queued/source-sync attempts and invalid linked-main probes were discarded; they are not passing evidence. All task-owned Testboxes have been stopped.

Commands included CI=1 pnpm test <all 127 original paths>, remote node scripts/check-changed.mjs -- <changed paths>, focused changed-path typechecks, and CI=1 OPENCLAW_UI_WEBKIT=1 pnpm --dir ui test --project=webkit --maxWorkers=3 after the standard WebKit install. No production runtime or live Gateway was changed.

Diff accounting

Production +0/-0; shared support +0/-0; configuration +0/-0. Tests +918/-12,314, net -11,396. Static declarations in final touched files: 1,805 -> 1,279 (-526); these lexical counts are not expanded runtime counts.

The coverage totals below are historical campaign measurements, not a fresh coverage claim for the rebased aggregate. Additional reviewed tests were retained. x1082 uses its later completion receipt; x1079's excluded-group limitation is explicit.

x1080: test LOC +87 / -1656; declarations 245 -> 176 (-69)

Final files touched:

  • src/agents/embedded-agent-runner/run/message-tool-terminal.test.ts
  • src/agents/embedded-agent-runner/run/message-tool-terminal.tool-authored.test.ts
  • src/agents/embedded-agent-runner/run/model-setup.ownership.test.ts
  • src/agents/embedded-agent-runner/run/payloads.errors.test.ts
  • src/agents/embedded-agent-runner/run/prompt-failure.test.ts
  • src/agents/embedded-agent-runner/run/run-settlement.test.ts
  • src/agents/embedded-agent-runner/run/runtime-context-prompt.test.ts
  • src/agents/embedded-agent-runner/run/settled-tool-evidence.test.ts
  • src/agents/embedded-agent-runner/run/setup.test.ts
  • src/agents/embedded-agent-runner/run/terminal-outcome.test.ts
  • src/agents/embedded-agent-runner/run/terminal-preparation.test.ts
  • src/agents/embedded-agent-runner/run/tool-activity-heartbeat.test.ts
  • src/agents/embedded-agent-runner/run/tool-error-warning.test.ts
  • src/agents/embedded-agent-runner/run/tool-media-payloads.test.ts

Historical campaign coverage: covered statements 10538 -> 10538 (0); branches 7211 -> 7210 (-1); functions 1857 -> 1857 (0)

x1082: test LOC +114 / -1523; declarations 222 -> 148 (-74)

Final files touched:

  • src/agents/sessions-spawn-hooks.test.ts
  • src/agents/shell-utils.test.ts
  • src/agents/spawn-requester-origin.test.ts
  • src/agents/spawned-context.test.ts
  • src/agents/system-prompt-params.test.ts
  • src/agents/thinking-runtime.test.ts
  • src/agents/tool-call-id.test.ts
  • src/agents/tool-loop-detection.test.ts
  • src/agents/tool-replay-safety.test.ts
  • src/agents/tool-search-runtime.output-variants.test.ts
  • src/agents/tool-surface-plan.test.ts
  • src/agents/tool-terminal-outcome.test.ts
  • src/agents/transcript-policy.test.ts

Historical campaign coverage: covered statements 7326 -> 7331 (+5); branches 5130 -> 5130 (0); functions 1287 -> 1289 (+2)

x1079: test LOC +9 / -6; declarations 12 -> 12 (0)

Final files touched:

  • extensions/openai/embedding-provider.test.ts

Historical campaign coverage: Union comparison: statements 1918 -> 1918; branches 1446 -> 1446. The official comparison excluded the originally failing group; this is not an independently passing aggregate coverage gate. This shard only strengthens two existing assertions.

x1088: test LOC +34 / -1405; declarations 197 -> 140 (-57)

Final files touched:

  • test/scripts/clawlog.test.ts
  • test/scripts/cli-startup-bench-spawner.test.ts
  • test/scripts/close-duplicate-prs-after-merge.test.ts
  • test/scripts/code-mode-matrix-gateway-fixtures.test.ts
  • test/scripts/codesign-mac-app.test.ts
  • test/scripts/codex-app-server-protocol-source.test.ts
  • test/scripts/codex-install-assertions.test.ts
  • test/scripts/codex-media-path-client.test.ts
  • test/scripts/connect-installer.test.ts
  • test/scripts/control-ui-i18n-sync-plan.test.ts
  • test/scripts/control-ui-i18n-verify.test.ts
  • test/scripts/control-ui-i18n.test.ts
  • test/scripts/crabbox-routing-policy.test.ts

Historical campaign coverage: covered statements 2469 -> 2469 (0); branches 1660 -> 1660 (0); functions 446 -> 446 (0)

x1084: test LOC +71 / -1274; declarations 170 -> 87 (-83)

Final files touched:

  • ui/src/components/markdown-code-blocks.test.ts
  • ui/src/components/markdown-details.test.ts
  • ui/src/components/markdown-links.test.ts
  • ui/src/components/markdown-mermaid.test.ts
  • ui/src/components/markdown-streaming-highlight.test.ts
  • ui/src/components/markdown-tables.test.ts
  • ui/src/components/mascot-animator.test.ts
  • ui/src/components/mcp-app-security.test.ts
  • ui/src/components/mcp-app-theme.test.ts
  • ui/src/components/multi-select.test.ts

Historical campaign coverage: covered statements 16125 -> 16126 (+1); branches 10160 -> 10159 (-1)

x1092: test LOC +43 / -1804; declarations 219 -> 146 (-73)

Final files touched:

  • src/plugins/public-surface-runtime.test.ts
  • src/plugins/registry-refresh.test.ts
  • src/plugins/runtime-context.test.ts
  • src/plugins/sdk-alias.test.ts
  • src/plugins/session-catalog.test.ts
  • src/plugins/slots.test.ts
  • src/plugins/stage-bundled-plugin-runtime.test.ts
  • src/plugins/synthetic-auth.runtime.test.ts
  • src/plugins/theme-catalog.test.ts
  • src/plugins/uninstall.test.ts
  • src/plugins/web-fetch-providers.runtime.test.ts
  • src/plugins/web-provider-public-artifacts.fallback.test.ts
  • src/plugins/web-provider-runtime-shared.test.ts
  • src/plugins/web-search-providers.runtime.test.ts

Historical campaign coverage: covered statements 8080 -> 8075 (-5); branches 5612 -> 5602 (-10); functions 1819 -> 1817 (-2)

x1091: test LOC +95 / -1071; declarations 209 -> 143 (-66)

Final files touched:

  • src/agents/embedded-agent-runner/cache-ttl.test.ts
  • src/agents/embedded-agent-runner/cli-backend-dispatch-transcript.test.ts
  • src/agents/embedded-agent-runner/cli-backend-dispatch.test.ts
  • src/agents/embedded-agent-runner/compact-reasons.test.ts
  • src/agents/embedded-agent-runner/compaction-duplicate-user-messages.test.ts
  • src/agents/embedded-agent-runner/compaction-runtime-context.test.ts
  • src/agents/embedded-agent-runner/delivery-evidence.test.ts
  • src/agents/embedded-agent-runner/effective-tool-policy.test.ts
  • src/agents/embedded-agent-runner/failure-signal.test.ts
  • src/agents/embedded-agent-runner/google-prompt-cache.test.ts
  • src/agents/embedded-agent-runner/history.test.ts
  • src/agents/embedded-agent-runner/model.static-catalog.snapshot-cache.test.ts
  • src/agents/embedded-agent-runner/openrouter-model-capabilities.test.ts

Historical campaign coverage: covered statements 5581 -> 5579 (-2); branches 3710 -> 3706 (-4)

x1090: test LOC +160 / -1482; declarations 231 -> 187 (-44)

Final files touched:

  • extensions/qa-lab/src/evidence-environment.test.ts
  • extensions/qa-lab/src/evidence-gallery.test.ts
  • extensions/qa-lab/src/evidence-invocation.test.ts
  • extensions/qa-lab/src/evidence-summary.test.ts
  • extensions/qa-lab/src/gateway-child-artifacts.test.ts
  • extensions/qa-lab/src/gateway-child-auth-profiles.test.ts
  • extensions/qa-lab/src/gateway-child-bootstrap.test.ts
  • extensions/qa-lab/src/gateway-child-lifecycle.test.ts
  • extensions/qa-lab/src/gateway-child.test.ts
  • extensions/qa-lab/src/gateway-log-sentinel.test.ts
  • extensions/qa-lab/src/gateway-rpc-client.test.ts
  • extensions/qa-lab/src/harness-parity.test.ts
  • extensions/qa-lab/src/lab-server-ui.test.ts
  • extensions/qa-lab/src/lab-server.test.ts
  • extensions/qa-lab/src/live-scenario-timeouts.test.ts

Historical campaign coverage: covered statements 4185 -> 4180 (-5); branches 2766 -> 2761 (-5)

x1087: test LOC +95 / -882; declarations 111 -> 93 (-18)

Final files touched:

  • src/node-host/config.test.ts
  • src/node-host/desktop-stream-command.test.ts
  • src/node-host/exec-policy.test.ts
  • src/node-host/invoke-agent-cli-claude.test.ts
  • src/node-host/invoke-worker-supervisor.test.ts
  • src/node-host/mcp.recovery.test.ts
  • src/node-host/mcp.test.ts
  • src/node-host/node-worker-native-inference.test.ts
  • src/node-host/node-worker-workspace-manifest.test.ts

Historical campaign coverage: covered statements 2812 -> 2814 (+2); branches 2082 -> 2083 (+1); functions 490 -> 490 (0)

x1085: test LOC +210 / -1211; declarations 189 -> 147 (-42)

Final files touched:

  • extensions/device-pair/index.test.ts
  • extensions/device-pair/notify.test.ts
  • extensions/fal/image-generation-provider.test.ts
  • extensions/fal/music-generation-provider.test.ts
  • extensions/fal/video-generation-provider.test.ts
  • packages/media-core/src/attachment-classify.test.ts
  • packages/media-core/src/inline-image-data-url.test.ts
  • packages/media-core/src/mime.test.ts
  • packages/sdk/src/event-hub.test.ts
  • packages/sdk/src/index.test.ts
  • packages/sdk/src/run-event-replay.recovery.test.ts
  • packages/sdk/src/transport.test.ts

Historical campaign coverage: covered statements 3454 -> 3450 (-4); branches 2205 -> 2205 (0); functions 595 -> 595 (0)

@clawsweeper

clawsweeper Bot commented Oct 10, 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.

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR removes and consolidates tests across agents, plugins, packages, tooling, and the Control UI.

Example: Enter custom/Model-A when the model catalog contains custom/model-a.

  • Before: Interaction tests require both choices to appear and the selected custom reference to retain its case.
  • After: Those interaction tests are removed without equivalent remaining coverage.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Reported focused validation supports the cleanup, but independent contract coverage remains removed.
Proof confidence 🦐 gold shrimp (3/6) This test-only maintainer cleanup changes no shipped behavior; inspected historical picker screenshots establish regression context rather than proof of this cleanup.
Patch quality 🦪 silver shellfish (2/6) 6 actionable review findings remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Duplicate and implementation-coupled tests increase maintenance and validation cost.
Reason: The maintainer-requested cleanup has value when independently meaningful regression, public API, and lifecycle contracts remain protected.

Merge readiness

⛔ Needs changes before merge - 12 items remain

This PR provides useful test cleanup, but six independent contracts still lose coverage; the earlier disclosure-depth finding is resolved.

Priority: P3
Reviewed head: 0224e274d99d1a132beda70f4f7e30e9bbc37b96

Before merge

  • Retain a case-distinct custom-model selection regression (P2) - The previously reported deletion remains: every interaction entering custom/Model-A beside catalog entry custom/model-a is removed. The retained alias fixture contains only the uppercase catalog identity, and display/panel tests do not drive typed selection. A regression that compares catalog identities using lowercase search keys could hide the custom Add row without failing those tests. Restore one compact interaction asserting both rows and the unchanged custom value after selection.
  • Retain dual-kind plugin slot-selection coverage (P2) - This deletion removes the only inspected call to applyExclusiveSlotSelection with selectedKind: ["memory", "context-engine"]. Remaining selection cases exercise only memory, while hasKind and resetPluginSlotsToDefaults test different operations. Selecting dual-plugin must replace both memory-core and legacy slot owners; a regression selecting only the first kind would now pass these suites. Retain the compact assertion of both resulting slots.
  • Retain the sandbox-safe MCP font-stack regression (P2) - The removed font case protects a previously fixed integration defect: host Inter and JetBrains Mono stacks cannot be assumed loadable inside an embedded app. The remaining test checks only trimmed values and one background color; MCP view and conformance coverage also checks colors rather than fonts. Omitting --font-sans or publishing the host brand-led stacks would therefore pass the retained coverage. Keep the small assertions requiring system-resolvable sans and mono stacks.
  • Retain coverage that attachment sniffing stays bounded (P2) - Removing the 'invalid byte outside a complete sample' row leaves only boundary-completion positives and truncated-input negatives. For a complete 4,096-byte text sample followed by 0xff, the established bounded heuristic must still classify text; decoding the entire attachment would incorrectly classify it as binary while satisfying the remaining cases. Restore that row to protect the explicit sample-boundary contract.
  • Retain buffered draining before an explicit undefined close error (P2) - The deleted case distinguishes the public EventHub.close(undefined) contract from close(): queued 0 and undefined payloads must drain, then the next read must reject with undefined. Remaining coverage uses no-error closure for buffered events and an Error object for pending reads. A truthiness-based close-error check or premature error propagation would now escape those cases. Retain this compact combined contract.
  • Retain Mermaid cache eviction and visible-image ownership coverage (P2) - The removed sustained-use case is the only component case crossing the 16-layout cache limit. Remaining sharing and disconnect cases never exercise eviction. After rendering 20 distinct diagrams, remounting the oldest should render again while currently displayed image URLs remain valid; removing the cache-pruning call would pass the retained component tests and retain layouts without a bound. Keep the focused eviction case or an equivalent compact boundary test.
  • Explain or restore the original intent of Case-sensitive picker interactions - 28f5187: Prevent a differently cased catalog identity from hiding or rewriting an authored fallback reference.
  • Explain or restore the original intent of Dual-kind slot selection - 235908c: Allow one plugin to occupy both memory and context-engine slots.
  • Explain or restore the original intent of Embedded MCP font stacks - e279076: Publish system-resolvable fonts that remain usable under the app sandbox's font policy.
  • Explain or restore the original intent of Bounded UTF-8 attachment sniffing - 064b33e: Complete only the UTF-8 sequence crossing the sample boundary while leaving later bytes outside the heuristic.
  • Explain or restore the original intent of SDK buffered close errors - f630956: Preserve undefined payloads and explicit close errors while changing queue consumption and retirement.
  • Explain or restore the original intent of Mermaid cache eviction - 4ec1c8a: Bound retained layouts without invalidating image URLs owned by displayed diagrams.

Findings

  • [P2] Retain a case-distinct custom-model selection regression — ui/src/components/multi-select.test.ts:231-234
  • [P2] Retain dual-kind plugin slot-selection coverage — src/plugins/slots.test.ts:109-111
  • [P2] Retain the sandbox-safe MCP font-stack regression — ui/src/components/mcp-app-theme.test.ts:13-16

Provenance

  • Case-sensitive picker interactions changes intended behavior without addressing why it exists (28f5187: Prevent a differently cased catalog identity from hiding or rewriting an authored fallback reference.)
  • Dual-kind slot selection changes intended behavior without addressing why it exists (235908c: Allow one plugin to occupy both memory and context-engine slots.)
  • Embedded MCP font stacks changes intended behavior without addressing why it exists (e279076: Publish system-resolvable fonts that remain usable under the app sandbox's font policy.)
  • Bounded UTF-8 attachment sniffing changes intended behavior without addressing why it exists (064b33e: Complete only the UTF-8 sequence crossing the sample boundary while leaving later bytes outside the heuristic.)
  • SDK buffered close errors changes intended behavior without addressing why it exists (f630956: Preserve undefined payloads and explicit close errors while changing queue consumption and retirement.)
  • Mermaid cache eviction changes intended behavior without addressing why it exists (4ec1c8a: Bound retained layouts without invalidating image URLs owned by displayed diagrams.)

Tests

  • Missing end-to-end proof: No shipped behavior change requires a new live demonstration; the identified contracts need executable coverage retained.
Agent review details

How this fits together

Vitest suites pass synthetic inputs through production owners and check their rendering, selection, configuration, and lifecycle outputs.

flowchart LR
A[Test fixtures] --> B[Vitest suites]
B --> C[Production owners]
C --> D[Observed outputs]
D --> E[Contract assertions]
E --> F[CI results]
Loading

Technical review

Best possible solution:

Keep the duplicate-test reduction while retaining compact coverage of the six independent contracts identified below.

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

The pinned diff and remaining suites establish the coverage losses by source inspection; no runtime failure or test run is claimed.

Is this the best way to solve the issue?

Consolidation is appropriate where remaining tests exercise the same contract, but these six deletions remove distinct protection rather than duplicate assertions.

Full review comments:

  • [P2] Retain a case-distinct custom-model selection regression — ui/src/components/multi-select.test.ts:231-234
    The previously reported deletion remains: every interaction entering custom/Model-A beside catalog entry custom/model-a is removed. The retained alias fixture contains only the uppercase catalog identity, and display/panel tests do not drive typed selection. A regression that compares catalog identities using lowercase search keys could hide the custom Add row without failing those tests. Restore one compact interaction asserting both rows and the unchanged custom value after selection.
    Confidence: 0.99
  • [P2] Retain dual-kind plugin slot-selection coverage — src/plugins/slots.test.ts:109-111
    This deletion removes the only inspected call to applyExclusiveSlotSelection with selectedKind: ["memory", "context-engine"]. Remaining selection cases exercise only memory, while hasKind and resetPluginSlotsToDefaults test different operations. Selecting dual-plugin must replace both memory-core and legacy slot owners; a regression selecting only the first kind would now pass these suites. Retain the compact assertion of both resulting slots.
    Confidence: 0.98
  • [P2] Retain the sandbox-safe MCP font-stack regression — ui/src/components/mcp-app-theme.test.ts:13-16
    The removed font case protects a previously fixed integration defect: host Inter and JetBrains Mono stacks cannot be assumed loadable inside an embedded app. The remaining test checks only trimmed values and one background color; MCP view and conformance coverage also checks colors rather than fonts. Omitting --font-sans or publishing the host brand-led stacks would therefore pass the retained coverage. Keep the small assertions requiring system-resolvable sans and mono stacks.
    Confidence: 0.98
  • [P2] Retain coverage that attachment sniffing stays bounded — packages/media-core/src/attachment-classify.test.ts:28-31
    Removing the 'invalid byte outside a complete sample' row leaves only boundary-completion positives and truncated-input negatives. For a complete 4,096-byte text sample followed by 0xff, the established bounded heuristic must still classify text; decoding the entire attachment would incorrectly classify it as binary while satisfying the remaining cases. Restore that row to protect the explicit sample-boundary contract.
    Confidence: 0.97
  • [P2] Retain buffered draining before an explicit undefined close error — packages/sdk/src/event-hub.test.ts:73-74
    The deleted case distinguishes the public EventHub.close(undefined) contract from close(): queued 0 and undefined payloads must drain, then the next read must reject with undefined. Remaining coverage uses no-error closure for buffered events and an Error object for pending reads. A truthiness-based close-error check or premature error propagation would now escape those cases. Retain this compact combined contract.
    Confidence: 0.96
  • [P2] Retain Mermaid cache eviction and visible-image ownership coverage — ui/src/components/markdown-mermaid.test.ts:270-272
    The removed sustained-use case is the only component case crossing the 16-layout cache limit. Remaining sharing and disconnect cases never exercise eviction. After rendering 20 distinct diagrams, remounting the oldest should render again while currently displayed image URLs remain valid; removing the cache-pruning call would pass the retained component tests and retain layouts without a bound. Keep the focused eviction case or an equivalent compact boundary test.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test src/plugins/slots.test.ts packages/media-core/src/attachment-classify.test.ts packages/sdk/src/event-hub.test.ts --maxWorkers=1
  • pnpm --dir ui test src/components/multi-select.test.ts src/components/mcp-app-theme.test.ts src/components/markdown-mermaid.test.ts --maxWorkers=1
  • node scripts/check-changed.mjs -- src/plugins/slots.test.ts packages/media-core/src/attachment-classify.test.ts packages/sdk/src/event-hub.test.ts ui/src/components/multi-select.test.ts ui/src/components/mcp-app-theme.test.ts ui/src/components/markdown-mermaid.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit f630956 adds packages/sdk/src/event-hub.test.ts:37 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f63095668169; files: packages/sdk/src/event-hub.test.ts)
  • Shakker: Raw commit 28f5187 adds ui/src/components/multi-select.test.ts:310 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 28f51878583b; files: ui/src/components/multi-select.test.ts)
  • fuller-stack-dev: Raw commit 235908c adds src/plugins/slots.test.ts:297 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 235908c30e1b; files: src/plugins/slots.test.ts)
  • Jason (Json): Raw commit 5cd60fd adds ui/src/components/mcp-app-theme.test.ts:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 5cd60fd9fb06; files: ui/src/components/mcp-app-theme.test.ts)

PR surface

Tests -1522. Total -1522 across 33 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 33 128 1650 -1522
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 33 128 1650 -1522

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests +128/-1,650. The reduction stays outside shipped code, but distinct regression contracts must survive consolidation.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal test maintenance with no change to shipped behavior.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • 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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-10T06:37:45.306Z sha ba533c84ef69a6e7a82ea06a0b0360effd6e2c3c :: needs changes before merge. :: [P2] Restore the native-binary short-read regression test | [P2] Restore the predecessor-writer compatibility test
  • reviewed 2026-10-10T08:02:11.716Z sha bcb64fd49e161c2a5e908b945371e1bef1ae24c8 :: needs changes before merge. :: [P2] Restore renderer coverage of the disclosure depth limit
  • reviewed 2026-10-10T08:38:02.291Z sha ae0bd09 :: needs changes before merge. :: [P2] Restore renderer coverage of the disclosure depth limit | [P2] Retain a case-distinct custom-model selection regression
  • reviewed 2026-10-10T09:10:03.145Z sha 71e716c :: needs changes before merge. :: [P2] Restore renderer coverage of the disclosure depth limit | [P2] Retain a case-distinct custom-model selection regression

Reviewed October 11, 2026, 4:01 AM ET / 08:01 UTC (Revision 5).

@steipete
steipete enabled auto-merge (squash) October 10, 2026 07:53
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@steipete
steipete disabled auto-merge October 10, 2026 08:03
@steipete
steipete force-pushed the tcr/land-d042-1791612437 branch from bcb64fd to ae0bd09 Compare October 10, 2026 08:30
@steipete
steipete enabled auto-merge (squash) October 10, 2026 08:34
@steipete
steipete disabled auto-merge October 10, 2026 08:39
@steipete
steipete force-pushed the tcr/land-d042-1791612437 branch from ae0bd09 to 71e716c Compare October 10, 2026 09:03
@steipete
steipete enabled auto-merge (squash) October 10, 2026 09:05
@steipete
steipete disabled auto-merge October 11, 2026 06:59
@steipete
steipete force-pushed the tcr/land-d042-1791612437 branch from 71e716c to 0224e27 Compare October 11, 2026 07:53
@steipete
steipete enabled auto-merge (squash) October 11, 2026 07:55
@steipete

Copy link
Copy Markdown
Contributor Author

Settlement evidence for head 0224e274d99d1a132beda70f4f7e30e9bbc37b96:

  • check-guards-architecture now passes. The earlier Kysely failure was stale-base fallout, fixed on main by db6449d3f6091740dbddcf02fdc0e34dc94ca424 and incorporated by the rebase.
  • The only remaining failed check is QA Smoke CI (profile 4/4), plus its openclaw/ci-gate aggregate. The failing scenario is subagent-completion-direct-fallback, step proves terminal-reply channel behavior including restart recovery: [public:silent] timed out after 60000ms.
  • The same six-scenario primary invocation, with the CI build/runtime settings, concurrency, and unchanged timeouts, reproduces that exact scenario, phase, and error on clean main 90f04bfb10df3b55d7473b6519be8bbe8fab77a2, verified tree f881b247304f864912364d3d9e096d9387ce0e7b: Testbox main proof. The other five scenarios passed. An isolated scenario probe passed, which is why the full CI grouping was used for attribution.
  • The full six-scenario invocation also passed on this exact PR tree, 1a3afc763b8bd2d56d0ac437119d4053281bd794: Testbox head proof. The batch changes only 33 test files; it does not change this scenario, its production runtime, or the CI planner.

Independent review is now scoped-clean at P1. Settlement retained the complete main coverage in 81 restored/conflict-resolved suites, all of which passed focused Testbox proof. The final reduction is 1,522 test lines; no production code, assertion, timeout, or skip policy was weakened to clear CI.

Per the explicitly authorized campaign pre-existing-failure rule, this head is being landed with the pinned admin exception. The QA failure remains red and will be recorded for separate main repair; this is not a claim that the failing hosted check passed.

@steipete
steipete merged commit 6abc55e into main Oct 11, 2026
110 of 113 checks passed
@steipete
steipete deleted the tcr/land-d042-1791612437 branch October 11, 2026 08:51
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…w#168283)

* test(agents): deslop x1080 tests

* test(agents): deslop x1082 tests

* test(openai): deslop x1079 tests

* test(test): deslop x1088 tests

* test(ui): deslop x1084 tests

* test(plugins): deslop x1092 tests

* test(agents): deslop x1091 tests

* test(qa-lab): deslop x1090 tests

* test(config): deslop x1087 tests

* test(device-pair): deslop x1085 tests

* test: preserve regression contracts in cleanup batch d042

* test(ui): retain the complete WebKit modal contract

* test: preserve boundary coverage in cleanup batch d042
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 18, 2026
First-parent upstream c96fac1..d9eba8a (10 PRs: openclaw#168948 GitHub
connection authority to workers, openclaw#168975, openclaw#168772 cron receipt custody
removal, openclaw#169012, openclaw#169006, openclaw#169009, openclaw#168283 test batch d042, openclaw#168994,
openclaw#168964, openclaw#168855 approval/placement state in workers).

Conflicts:
- docs/reference/database-schemas/worker-access-inventory.md: took
  upstream, then regenerated (db:worker-inventory:gen, 633 files / 2449
  calls) instead of hand-merging.
- src/agents/embedded-agent-runner/compact-reasons.test.ts: upstream
  openclaw#168283 deleted low-value cases; kept upstream's file plus our own
  additions only (unknown_model, empty reason, closed-union check and the
  isCompactionSkipCode block).

session-reset-service.ts auto-merged: upstream's awaited placement
retirement (assertCurrent) is disjoint from our continuation-cancellation
cleanup reason.

Refs #1475

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 extensions: fal extensions: openai extensions: qa-lab P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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