Repository navigation
test: trim ordinary test examples and unused support bindings - #206929
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: passed. What this changesThis PR removes selected test examples and unused support bindings while preserving targeted regression guards and repairing fixtures. Example: A skill downloads an extensionless ZIP from /download with Content-Disposition filename="runtime.zip".
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored cleanup addresses the prior findings, and this pass establishes no new blocking defect; current-head CI remains unfinished. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe affected tests exercise existing agent, Gateway, plugin, CLI, release-tooling, and Control UI owners; production inputs, outputs, and runtime contracts remain unchanged. flowchart LR
A[Test fixtures] --> B[Existing production owners]
B --> C[Observed results]
C --> D[Retained assertions]
D --> E[CI validation]
Technical reviewBest possible solution: Land the bounded test-only tranche once required current-head validation succeeds, retaining the restored regression guards. Do we have a high-confidence way to reproduce the issue? This is test maintenance rather than a product bug report; source inspection verified the changes, and no target code or tests were executed. Is this the best way to solve the issue? The existing test owners support this bounded cleanup, with the maintainer explicitly accepting listed ordinary coverage losses and the previously identified regression guards restored. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b7e36af75284. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -3967, Other -1. Total -3968 across 73 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed November 27, 2026, 7:18 PM ET / November 28, 2026, 00:18 UTC (Revision 3). |
4bde165 to
9608d92
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…aw#206929) * test: trim ordinary examples while retaining module guards * test: retire ordinary samples while retaining state guards * test: retire ordinary presentation and format permutations * test: remove stale lint bindings after coverage cleanup * test: remove unused Crabbox fixture import * test: pin fixture inputs and retain archive inference * test: retain the release tooling warning contract * test(ci): retain timing-free UI owner selection * test(ui): retain subagent and hovercard regression guards
…d by agent before paging (#205114) (cherry picked from commit 192b26a) Companion audit: #207853 is test simplification; #207781 and #207744 add configurable filters beyond the stable pre-pagination fix. #205729 stays separately selected; #207909/#207790/#207787/#207122/#207121 change unrelated board actions, and #207932/#207928/#207839/#207931/#207380/#206929 plus copy work do not change authorization-before-paging. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
The test suite carries ordinary presentation, nominal configuration and internal projection examples alongside its functional guards. This partial tranche retires selected examples while retaining a functional keeper for every affected module.
Related: #198737. This partial tranche does not complete or close the campaign.
User Impact
Internal test maintenance only. Production delta is zero, with no migration or operator action. Coverage intentionally decreases for the listed ordinary examples; retained keepers are not a claim that every retired oracle has equivalent coverage.
Why This Change Was Made
4afdbfcb643b48c48b6e7266598689bf95831436(treefa0dece24d2cff81c62486271ca332705db720e2); candidate:f8986b9c9c34c0dd97b7d10f788b7124118ce9f0(tree2667bcc0b35fdc73dc1fe5d17233ee5cf7f91f76).Deliberately retained holds
src/infra/git-worker.lifecycle.test.ts: retain the metadata-completes-while-two-diffs-are-held test. The host content-budget test mocks the worker pool and does not replace this real scheduler isolation guard.packages/ai/src/providers/anthropic.test.ts: retain the entire wire tool ordering/final-cache-marker case and itsToolimport. The focused projector keeper does not assert the final marker.extensions/memory-core/src/memory/index.test.ts: keep the proposed cut unapplied because the historical held-role/current held-source binding remains unresolved; no active-owner claim is inferred.Additional composition keepers remain: the responsive UI focus/footer/action/landscape guards plus the landed chat-view controller keeper; the new commentary grouping and audio refusal-reason cases; the credential-writer refusal; and the GitHub detail producer’s independent-section, head-drift and authority checks.
WORKER_WALLPAPER_PATHstays an internal fixture constant; its asset and all 30 named-import consumer files remain.Evidence
Current Source and verification limit: selected Source
f8986b9c9c34c0dd97b7d10f788b7124118ce9f0/ tree2667bcc0b35fdc73dc1fe5d17233ee5cf7f91f76, frozen base4afdbfcb643b48c48b6e7266598689bf95831436. Nine signed task commits and the clean tracked diff were verified. Normal content, formatter and staged-freshness hooks passed; formatter delta was zero. The timing-free boolean selector guard remains, with the exact importer result and real-gateway call inside its scoped spy and cleanup.Three original browser regression guards are restored: the four-width distinguishing-suffix/keyboard-heading case from #203777, narrowed report containment and wheel access from #186919, and session-specific cross-row pointer travel from #192212. The first two return
ui/src/e2e/subagents-panel.e2e.test.tsbyte-for-byte to the frozen base, so that file is no longer in the PR diff. It is a retained base keeper; its runtime was not rerun after restoration. The modified hovercard file keeps its restored session corridor and still retires the separate 137-line cold/bridge/sweep/menu timing case.Manual verification boundary: current browser runtime and UI type proof are not claimed from local execution. The preceding 6c native planner succeeded, but its proof exited 1 at a staging-directory identity guard before the remote shell or any selected check started. That upload refusal was not a test failure or a passing proof; no staging, cache, ownership or environment guard was bypassed. All owned Testboxes were subsequently stopped. Required exact-head CI must verify the remaining changed hovercard E2E file, its actual UI test-type graph and selected lint/check gates; returning the subagents file to base bytes is not labeled a runtime pass. The prior guard-proof allocation does not imply selected tests ran.
Historical 6c CI: selected Node jobs, root/test types and selected lint jobs passed at
6c89614486bf2c79572a6fb87f34119bfbcce746. The ordinary Control UI test step passed, but UI shard 1/3 failed in its separate WebKit overlays/focus step:ui/src/components/app-sidebar-session-filter.browser.test.ts:280, the 390 px LTR keyboard-navigation case expected the closed popover to be null but received a popover in its opening phase. That test, its immediate popover owner and sidebar fixtures are byte-identical to the frozen base and both repair heads. Causality remains UNCLASSIFIED; this is not labeled inherited, and the three independent browser guard restorations are not claimed to fix it. New-head required CI, including actual WebKit execution, must be green before landing.Historical 9608 static plan: 34 of 35 commands passed, including formatter parity, line-cap/suppression/assertion/SQLite guards, plugin/UI boundaries, all 29 core-test type shards, the plugin type graph, four root-test type partitions and every selected core/plugin/script/root lint command. The native doctor-contract gate additionally passed two files / ten tests, separate from the runtime scope below.
Manual export audit remains failed (exit 1), with exact frozen-base attribution: the same native
node --import tsx scripts/check-deadcode-exports.mtswrapper, CI=1, frozen install and environment was executed at prior candidate9608d924d7b63b35dc15a5825360af3e7cc3078cand at exact base4afdbfcb643b48c48b6e7266598689bf95831436after a guarded remote detach. Both report zero script-export entries; production reportsbuildRestartSentinelRow,nextRevisionandreadRestartSentinelRowForKeySyncinsrc/infra/restart-sentinel-store.ts; full-tree reports the latter two. Owner/config/reference provenance is unchanged, and the original candidate carrier/tree/dependency fingerprint was restored. Both nonzero outcomes remain recorded. This is narrow pre-existing debt on the frozen base, not an all-green audit, current-Main claim or required-CI exception. Production exports were not changed and no artificial consumer was added.Historical 9608 repaired runtime gate: 16 distinct files / 1,068 tests, zero skips or failures: gateway9 (697), CLI2 (191), original unit3 including the ZIP guard (150), the unchanged models-presentation helper caller (2), and the unsafe-temp owner controls (28). The formerly failing exact models selection assertion and idle-WAL artifact assertion passed; the ZIP success case exercised its independent header inference and fresh extracted payload. Commands used the actual owning configurations, Node, CI=1, one-worker serial scheduling, per-run bail and explicit stop between configurations. Target sets and argv context were preserved; native sequencing controls actual start order.
Historical 9608 selected runtime: 73 distinct files / 4,369 tests passed, with two explicit skips and zero assertion failures. Scope is the original 70 files plus
src/gateway/server-methods/models-presentation.test.ts,src/infra/tmp-openclaw-dir.test.tsandtest/scripts/full-release-validation-at-sha.candidate.test.ts. The latter ran within the existing 20-file tooling context. The three global test-environment producer files are unchanged Main coverage, not added prerequisites.Historical 9608 platform and browser coverage: Node 24.22.1 / pnpm 12.15.0 / Linux x64 on qualified default4 Blacksmith Testboxes with matching frozen dependency inputs. The 12 UI files passed 443 tests, including all three Chromium and all three WebKit image-alignment rows. Pinned Playwright 1.64.1 native browser preparation preserved the browser cache; real WebKit launch/close succeeded. The three real Chromium UI E2E files passed all 19 tests, then Chromium exited cleanly. The Windows-only SDK-loader local-application-data cache case was skipped on Linux. Real LIVE/paid-provider execution remains UNRUN.
Historical 9608 final helper routing and resolution: the first final-stage command passed its other 24 files, then exited 1 because the planner-selected agents-core config excludes
*.live.test.ts; no helper test was discovered and no assertion failed. Reusing that completed backend returned exit 2 before execution (commandMs=0). The old lease was reconciled and stopped. One replacement on the same provider/workflow qualified the same 215-workspace frozen install and ran only this corrected command:That helper file passed 29 tests; its real-provider sweep was deliberately skipped with both live flags asserted unset. These are the two reported skips, not passing coverage. The corrected run finished exit 0 with a settled native receipt. The original discovery failure and pre-execution backend refusal remain part of the proof history; the 72 already-passing files were not rerun.
Failure history is retained: the original 4bde runtime failed the two retained models/idle-WAL assertions and was interrupted with exit 130. Matched full-config controls reproduced both at old frozen b3, then passed at 4bde; order/cache/first-creator mechanics remain unresolved. Those replays alone were not labeled a fix or current-Main attribution. This branch pins the intended synthetic metadata and private fixture modes while preserving all original assertions and refusal/nonmutation controls.
Exact-head landing requirements: use the current PR checks and latest review discussion for live status. Required CI must cover the published head, including this changed tooling test and its lint/type gates. Fresh complete autoreview, an exact-head ClawSweeper verdict with no actionable findings or unaddressed Rank-up moves, and native prepare/merge gates remain required before landing. Historical successes and skipped jobs do not cover the new head.
Review history: prior 9608 reviews stopped as INCOMPLETE when CI owner/import context was missing. The subsequent 6c autoreview completed one of 24 passes with no findings, then was stopped before the other 23; it produced no clean aggregate verdict. Fresh Claw review on 6c accepted the ZIP and suppression-inventory repairs and identified the three browser guards restored here. That old-head review does not approve this head. Fresh complete autoreview and an exact-head Claw verdict with no remaining actionable finding or Rank-up move remain required.
Historical 9608 primary native allocation and historical 9608 replacement for the final helper; selected-source wrapper receipts, rather than the workflow-ref SHA or provider cleanup conclusion, bind the proof outcomes.
All 74 paths: exact diff, retained keeper and intentional loss
Keeper line links below bind the frozen base. All 74 base preimages equal the original audit preimages; complete current postimages are pinned by the candidate tree. Seven fixture/support/inventory rows describe their additional owner repair explicitly.
config/max-lines-baseline.txtextensions/browser/src/browser/routes/agent.existing-session.test.tsextensions/codex/src/app-server/thread-lifecycle.binding.test.tsextensions/crabbox/src/crabbox-worker-provider.test-support.tsextensions/crabbox/src/crabbox-worker-provider.test.tsextensions/discord/src/monitor/model-picker.test.tsextensions/google-meet/index.test.tsextensions/matrix/src/matrix/sdk.test.tsextensions/memory-core/src/cli.test.tsextensions/memory-lancedb/index.test.tsextensions/qa-lab/src/lab-server.test.tsextensions/workboard/browser/pages/workboard/view-editors.test.tsextensions/workboard/browser/pages/workboard/workboard-page-sessions.test.tspackages/agent-core/src/agent-loop.test.tssrc/agents/agent-command.live-model-switch.test.tssrc/agents/embedded-agent-runner-extraparams.test.tssrc/agents/models.profiles.live.test.tssrc/agents/subagents/spawn/acp-spawn.test.tssrc/agents/worktrees/base-ref.test.tssrc/auto-reply/reply/agent-runner.misc.runreplyagent.test.tssrc/channels/message/ingress-queue.test.tssrc/cli/capability-cli.test.tssrc/cli/update-cli/update-command-admit.test.tssrc/flows/doctor-health-contributions.test.tssrc/gateway/config-reload.test.tssrc/gateway/control-ui.http.test.tssrc/gateway/server-chat.agent-events.test.tssrc/gateway/server-methods/chat.directive-tags.test.tssrc/gateway/server-methods/control-ui.test.tssrc/gateway/server-methods/models-list.test-support.tssrc/gateway/server-methods/models.test.tssrc/gateway/server-plugins.test.tssrc/gateway/server.chat.gateway-server-chat-b.test.tssrc/gateway/session-utils.test.tssrc/media/parse.test.tssrc/plugins/manifest-registry.test.tssrc/plugins/sdk-alias.test.tssrc/plugins/uninstall.test.tssrc/skills/lifecycle/install-download.test.tssrc/tui/tui-command-handlers.test.tstest/scripts/bun-standalone-metadata.test.tstest/scripts/check-deadcode-exports.test.tstest/scripts/check-openclaw-package-tarball.test.tstest/scripts/ci-changed-node-test-plan.source-owners.test.tstest/scripts/ci-changed-node-test-plan.test.tstest/scripts/desktop-resize-proof.test.tstest/scripts/dev-tooling-safety.test.tstest/scripts/docker-build-helper.test.tstest/scripts/e2e-mock-config-limits.test.tstest/scripts/full-release-validation-at-sha.test-support.tstest/scripts/full-release-validation-at-sha.test.tstest/scripts/gateway-bench-profile.test.tstest/scripts/native-app-i18n.test.tstest/scripts/pr-merge.test.tstest/scripts/profile-extension-memory.test.tstest/scripts/release-beta-verifier.test.tstest/scripts/release-ci-summary.qualification.test.tstest/scripts/release-no-push-workflow.test.tstest/scripts/resolve-openclaw-package-candidate.test.tstest/scripts/runtime-postbuild.test.tstest/scripts/test-projects.test.tsui/src/app/app-shell-gateway.test.tsui/src/app/vite-config.node.test.tsui/src/components/app-sidebar-rail.test.tsui/src/components/tooltip.test.tsui/src/e2e/chat-transcript-disclosure-anchor.e2e.test.tsui/src/e2e/session-progress-hovercard.e2e.test.tsui/src/pages/chat/chat-responsive.browser.test.tsui/src/pages/chat/chat-thread.test.tsui/src/pages/chat/components/chat-files-panel.test.tsui/src/pages/chat/components/chat-tool-cards.test.tsxui/src/pages/custodian/custodian-page.test.tsui/src/pages/sessions/sessions-page.test.tsExact-head source review and validation
At
f8986b9c9c34c0dd97b7d10f788b7124118ce9f0, independent P0–P2 source review of the complete nine-commit, 73-path range finished scoped-clean: all 25 owner/integration assessments complete, zero actionable findings, zero incomplete assignments. The review checked whole pinned owners, callers, dependencies and retained guards against the intentional ordinary-coverage losses documented in the per-file table above. Source review supplies no runtime result.The live rollup at
2026-11-28T04:00:31.621839+00:00contains 80 successful, 63 skipped and one neutral context; zero failed or pending. Skipped checks are not passes. Exact-head CI run 46086418395 includes successful core/root lint and type checks, including the canonical UI E2E type graph; Control UI and WebKit overlays/focus and the selected modified-hovercard E2E succeeded. The WebKit/runtime-Gateway E2E preflights were skipped. The base-identical subagents E2E is a retained source keeper, not rerun; the historical earlier-head WebKit failure remains unclassified. No current-head local manual scoped-test pass is claimed. The exact-head ClawSweeper verdict is pass.Final diff: 98 added, 4,066 removed, 3,968 net lines removed across 73 test/support/baseline paths. The obsolete max-lines baseline row follows removal of its now-unnecessary explicit suppression; line caps and ratchet policy are unchanged.