Skip to content

test(scripts,ui): remove low-value tests (batch d455) - #182377

Merged
steipete merged 30 commits into
mainfrom
tcr/land-d455-1792826433
Oct 24, 2026
Merged

steipete merged 30 commits into
mainfrom
tcr/land-d455-1792826433

Conversation

@steipete

@steipete steipete commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Redundant test layers and repeated fixture machinery add maintenance cost to tooling, Control UI, and agent test suites.

User Impact

No production or user-visible behavior changes. This maintainer-requested batch removes low-value replays and consolidates fixture setup while retaining the owning boundary tests. No migrations or operator actions.

Why This Change Was Made

Replay campaign batch d455 on pinned main 5dda1e2c1ae9eb871c97e826f99a5f62b1893d04. Applied 29 of the 30 requested commits in order, preserving their messages. Skipped 9f6d3f35a7cd721a3e75270344477dd6cd3adf82: the duplicate receipt/recovery suites are already removed on main by d84c03e3f52ec (batch d402); retaining main's newer fixture naming made the pick empty.

Keepers include release/publication authority and artifact integrity, executable CLI outcomes, isolated browser and Gateway boundaries, and agent approval/disposal policy. The catalog-acquisition diagnostic helper is retained with its owner test.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <34 existing changed files>: passed; no residual edits.
  • node_modules/.bin/oxlint -c .oxlintrc.json <34 existing changed TS files>: exited 0.
  • git diff --check 5dda1e2c1ae9eb871c97e826f99a5f62b1893d04: passed.
  • CI-only operator instruction: no local tests, typechecks, check-changed, builds, coverage, or Testbox runs. Required openclaw/ci-gate is the runtime/type proof and merge gate. No runtime wall-time or CI duration is claimed before that run.
  • Two complete independent autoreview runs through P2 identified 25 findings. All were accepted and addressed by restoring the affected baseline coverage and support; no findings were rejected. The remaining changes were reviewed in those passes.

Diff split against pinned main: production +0/-0 LOC; test/support +1504/-6386 LOC (net -4882) across 34 files. No workflow/config/production paths or file deletions remain. None of these paths matches a listed CODEOWNERS rule.

Replay decisions

Current main wins where source fixtures were rewritten. The following file-level cleanup hunks were dropped; their current-main versions are unchanged:

  • q0032: build-external-plugin-local-dist.test.ts (new build-all orchestration/browser-asset proof), plugin-clawhub-recovery.test.ts (new response/authority and recovery cases), across all three q0032 picks.
  • q0007: pr-merge-prior-ci-rest-observation.test.ts, security-sensitive-guard-script.test.ts, upgrade-survivor-schema-expectation.test.ts, vitest-runner-outcome.test.ts (expanded authority, schema refusal, and terminal-outcome coverage).
  • q0033: npm-onboard-channel-agent-assertions.test.ts (current mock-model, auth-store, and legacy-release coverage). During replay, the code-mode fixture conflict retained main's required-tool assertion; preservation review then restored that file fully.
  • q0038: generate-npm-package-lock.test.ts in both picks (expanded lockfile/platform coverage).
  • q0037: plugins-settings-admin.e2e.test.ts (current administration/credential and uncertain-write proof).
  • q0034: claude-sessions.e2e.test.ts and new-session-page.workspace-memory.e2e.test.ts in the second pick (new terminal deadline, preference and registered-project assertions).
  • q0042: agent-tools.before-tool-call.e2e.test.ts, model-fallback.run-embedded.e2e.test.ts, and the latter's still-used model-fallback.run-embedded.attempts.test-support.ts in the second pick (new diagnostic, churn, retry/profile-health coverage).
  • q0041: plugin-npm-extended-stable-workflow.test.ts (new trusted-tooling and immutable publication evidence guards).

The q0039 Stop-test import conflict keeps main's real provider/teardown and artifact import with the incoming typed host import. Other conflicted UI files subsequently restored during preservation review are listed below.

Preservation review and CI repair

The initial CI run (40074986652) exposed a deleted rail locator, over-constrained inferred rollback fixtures, redundant generic arguments, a broken changed-lint fixture, and a staged parser import whose workspace dependency was unavailable. These were batch-related failures, not waived as pre-existing. The rail uses its original tick locator again; the other failing file rewrites were dropped.

The two preservation reviews additionally retained hook fail-closed behavior, package/executor/provenance and downloaded-byte bindings, real installer exit propagation, guarded config writes, read-only authorization, session creation replay, provider setup/defaults, live media and catalog publication, placement payloads, dashboard iframe/live grants, warm history and qualified cross-repository references.

All 26 following files are byte-identical to the pinned base after the corrective commit:

  • src/agents/agent-tools.before-tool-call.integration.e2e.test.ts
  • test/scripts/ci-changed-lint.test.ts
  • test/scripts/code-mode-matrix-gateway-fixtures.test.ts
  • test/scripts/full-release-candidate-reuse.test.ts
  • test/scripts/install-ps1.release.test.ts
  • test/scripts/live-docker-stage.test.ts
  • test/scripts/oxlint-config.test.ts
  • test/scripts/prepublish-plugin-registry-artifact.test.ts
  • test/scripts/release-beta-verifier.test.ts
  • test/scripts/release-tooling-identity.test.ts
  • test/scripts/test-projects-routing.test.ts
  • test/scripts/upgrade-survivor-first-hop.test.ts
  • ui/src/e2e/catalog-acquisition.test-support.ts
  • ui/src/e2e/chat-agent-avatar.real-gateway.e2e.test.ts
  • ui/src/e2e/chat-managed-media-order.real-gateway.e2e.test.ts
  • ui/src/e2e/command-palette-catalog.real-gateway.e2e.test.ts
  • ui/src/e2e/config-safe-write.e2e.test.ts
  • ui/src/e2e/control-ui-auth-transports.e2e.test.ts
  • ui/src/e2e/dashboard-fullscreen.e2e.test.ts
  • ui/src/e2e/github-link-hovercard.e2e.test.ts
  • ui/src/e2e/model-provider-login.e2e.test.ts
  • ui/src/e2e/model-providers.e2e.test.ts
  • ui/src/e2e/new-session-page.instant-thread.e2e.test.ts
  • ui/src/e2e/session-ownership.e2e.test.ts
  • ui/src/e2e/session-placement.move.e2e.test.ts
  • ui/src/e2e/warm-boot.e2e.test.ts

q0038 and q0042 therefore have no net changes in the final batch. The catalog helper is not deleted. All 29 replayed commits remain in order, followed by test: retain boundary proof after d455 review. The one skipped source commit is recorded above. The new head's hosted CI remains the required runtime/type proof; no local tests or typechecks were run.

Per-shard replay inventory and campaign coverage evidence

LOC is the net test/support line delta after replay and preservation corrections. Declaration deltas are static line counts of it/test declarations, not expanded/runtime case counts; table consolidation changes declaration counts without implying every row was removed. Original shard reports predate follow-up consolidation commits and are not final replay metrics.

Shard Final test/support LOC delta Static declaration delta Files touched
q0031 -831 -9 test/scripts/docker-build-helper.test.ts
q0032 -345 -9 test/scripts/pr-baseline-refresh.test.ts
test/scripts/release-publish-parent.test.ts
test/scripts/check-database-first-legacy-stores.test.ts
q0035 -232 0 test/scripts/plugin-publication-artifact.test.ts
test/scripts/pr-merge-outcome.test-support.ts
test/scripts/write-cli-startup-metadata.test.ts
q0007 -618 -10 test/scripts/bench-gateway-installed.test.ts
test/scripts/control-ui-i18n.test.ts
test/scripts/pnpm-audit-prod.test.ts
test/scripts/run-vitest-bounded.test.ts
q0033 -281 -3 test/scripts/check-cli-startup-memory.test.ts
test/scripts/clawhub-fixture-server.test.ts
test/scripts/kova-report-gate.test.ts
test/scripts/validate-full-release-validation-evidence.test.ts
test/scripts/release-priority.test.ts
q0036 -915 -3 ui/src/e2e/chat-composer-redesign.e2e.test.ts
ui/src/e2e/chat-position-rail.e2e.test.ts
ui/src/e2e/lazy-custom-element-recovery.e2e.test.ts
q0038 0 0 None; restored during review
q0037 -410 -4 ui/src/e2e/command-palette-create.e2e.test.ts
q0034 -384 -4 ui/src/e2e/chat-flow.models-reasoning.e2e.test.ts
ui/src/e2e/chat-selection-to-main.e2e.test.ts
q0039 -629 -7 ui/src/e2e/chat-flow.messaging.e2e.test.ts
ui/src/e2e/home-attention.e2e.test.ts
ui/src/e2e/mobile-shell-geometry.e2e.test.ts
ui/src/e2e/native-desktop-appearance.e2e.test.ts
ui/src/e2e/chat-scroll-dock.e2e.test.ts
ui/src/e2e/chat-active-turn-recovery.e2e.test.ts
ui/src/e2e/chat-stop-finished-run.real-gateway.e2e.test.ts
q0040 -141 -1 test/scripts/e2e-shell-tempfiles.test.ts
test/scripts/ios-periphery-comment-workflow.test.ts
test/scripts/check-gateway-watch-regression.test.ts
q0042 0 0 None; restored during review
q0041 -96 0 test/scripts/dependency-guard-script.test.ts
test/scripts/worker-deploy-build-plugin.test.ts

No report contains measured coverage totals: every shard explicitly states that coverage was not run in CI-only mode. The following preserves each report's coverage/validation statement rather than inventing a percentage:

  • q0007: No tests, coverage, Testbox, builds, or typechecks ran, per CI-only mode.
  • q0031: Tests and coverage were not run, per CI-only instructions.
  • q0032: Tests, coverage and check-changed were not run, per CI-only mode.
  • q0033: Tests, coverage, and check-changed were not run, per CI-only instructions.
  • q0034: Tests, coverage, and check-changed were not run, per CI-only mode.
  • q0035: Tests and coverage were not run, per CI-only mode.
  • q0036: No tests, builds or coverage ran, per CI-only mode.
  • q0037: Tests, coverage, and check-changed were not run, per CI-only instructions.
  • q0038: Tests, coverage, and check-changed were not run under CI-only instructions.
  • q0039: Tests, coverage and check-changed were not run, per CI-only mode.
  • q0040: Tests, coverage, and check-changed were not run under CI-only mode.
  • q0041: Tests, coverage, and check-changed were not run, per CI-only mode.
  • q0042: Tests, coverage, and check-changed were not run under CI-only mode.

The campaign's original reduction targets were not reached; this batch retains distinct contracts instead of increasing deletions to meet a quota.

Remove npm and CLI timeout source inventories; executable ownership remains in test/scripts/openclaw-e2e-instance.test.ts (wraps installs with timeout/gtimeout, bounds npm install failure logs, wraps package-installed OpenClaw CLI calls).

Retain the survivor logging regression from 8cba5f7 and the distinct lifecycle, cleanup, authority and publication proofs. CI-only campaign: formatting, diff check and plain oxlint passed; runtime proof deferred to hosted CI. Below the 40% target because the remaining fixture-heavy tests protect distinct behavior.
Remove source-text command inventories, retaining generic supply-chain, credential and capability guards. Share supervisor, Doctor inspection and diagnostics fixture setup without weakening failure-path assertions.

Duplicate restart/PID proof remains in upgrade-survivor-systemd.test.ts: keeps the inspected service alive after the caller terminal closes and drains restart children. The Doctor transport handshake remains in doctor-install-switch-transport.test.ts.

CI-only validation: oxfmt, diff check and plain oxlint passed; no tests or coverage run. Original 5459 lines become 4711 (13.7 percent), below the 40 percent target; retained post-core, publication, process-group and config-restoration paths have distinct owner coverage.
Keep generated and caller-owned functional builds as separate cases with shared setup. Reuse existing survivor JSON/summary fixtures and tracked process completion, and remove the single-element systemctl fixture callback layer.

Preserve the distinct publication, post-core, plugin identity, process-group, Doctor and config-restoration contracts. CI-only validation: oxfmt, diff check and plain oxlint pass; no tests or coverage run. 4713 to 4628 lines this pass; original 5459 to 4628 remains below the 40 percent target.
Share baseline/successor fault fixtures, remove duplicate pending and required-job variants, and retain browser asset ownership in the generated browser metadata scenario. Artifact selection remains covered by src/plugins/plugin-runtime-artifact-resolution.test.ts: selects declared output over a stale neighbor.

CI-only audit: preserve distinct publication, provenance, parser, and Git authority branches. The 40 percent target is not safely reachable for this already-consolidated shard; reduce 5118 lines to 5018 without dropping distinct contracts.
Retire repeated supervision and successor recovery proof covered by pr-baseline-signing, pr-baseline-successor, and pr-correction-publication. Keep package module loading at test/plugin-npm-package-manifest.test.ts and CJS asset lifecycle at plugin-npm-runtime-assets.

Consolidate candidate constituent and publisher validation at sealed verification. Retain workflow approval and evidence-before-cancellation invariants without step-name inventories. Reduce same-branch authority and metadata input variants and use minimal legacy recovery responses.

CI-only: plain oxlint, oxfmt, and diff-check passed. No test or coverage execution. Original shard 5118 lines to 4592; forty-percent goal remains unmet because distinct executable parser, publication, and recovery flows remain.
Drive registry retries, terminal visibility, and ledger token/payload assertions through the retained publication gating scenario. Reuse the native baseline fixture for successor admission and remove custom successor setup; native successor and signing suites retain archive and signature proof.

Unify candidate provenance fixtures, consolidate active exact-attempt loading, share ClawHub recovery responses, and remove the CLI policy replay covered by the executable finalization keeper. Share database source envelopes and drop the assertion-free branch fixture that exited before analysis.

CI-only: plain oxlint, oxfmt, and diff-check passed. No tests or builds run. Shard lines 5118 to 4382; distinct retained behavior still prevents meeting the requested 40 percent reduction.
Reuse script temp-directory and startup metadata fixtures, consolidate merge observation shapes, and remove source-restating spawn assertions. Retain all publication, archive-integrity, authority, and process-lifecycle cases; the distinct boundaries do not support the requested 40% cut.
Keep the native startup zombie regression from fb1c32b while removing duplicated live-group classification and unknown-probe scenarios. Live and indeterminate drainage remain covered by managed-child-process.drain.test.ts (fails a persistently live/indeterminate group); startup state preservation remains covered by preserves shared state when a canceled process group cannot be proven dead. Retain the owned reaper cleanup and output bounds.

Remove upstream tar-consumer fixture sanity assertions, keep every OpenClaw malformed-header rejection, and use one representative for the shared unsupported ZIP flag mask and route-independent PAX rejection.
Port q0007 commits ecdef82bcbe068a8f2fbe76c889b032af02e6a51, a916a967d74872d44b414da9157593134499585e, and cc3ed62330ec7aad623958d161418bee2595c7b4 onto the campaign lane.

Preserve the updated controller-guard baselines in the consolidated scenario and retain the complete lazy catalog test, including new-session runtime copy. Apply all other shard deletions and consolidations unchanged.

Validation: plain oxlint exit 0 across all ten files; oxfmt --check and git diff --check passed. Independent review found no actionable findings through P2. Tests were not run under the requested CI-only mode.
Keep upgrade plugin record, consent and artifact proof at upgrade-survivor-assertions.test.ts and upgrade-survivor-registry-identity.test.ts; keep shell recovery wiring at upgrade-survivor-recovery-phase.test.ts. Retain pending-plugin admission and HTTP artifact proof here. Keep legacy auth storage proof at auth-profile-store-assertions.test.ts and source binding mismatch proof at full-release-publication-admission.test.ts. Consolidate startup isolation assertions and trim Kova fixture data without changing its branches. CI-only: format, diff and plain oxlint checked; no test runs.
Reuse owner coverage in npm-onboard-channel-agent-shell, docker-all-scheduler, prepublish-plugin-registry-shell, and code-mode-matrix-config tests. Keep registry tampering covered through prepared-bundle creation's final artifact validator. Consolidate CLI rendering and metadata normalization fixtures while preserving publication and dispatch authority guards. No test runs under campaign CI-only mode; oxfmt, plain oxlint, and diff checks pass.
Remove catalog diagnostic and capture scaffolding, including its orphaned helper. Keep all catalog publication, failure, retry, acquisition-count and account-scope assertions.

Drop login model-access replays covered by model-providers-page.login.test.ts, model-providers-page.login-start-chat.test.ts and wizard-view-solid.test.tsx. Composer preference mutation remains covered by chat-flow.model-picker-refresh.e2e.test.ts; View preference persistence by appearance-settings-defaults.e2e.test.ts; provider grouping by chat-model-picker.test.tsx.

CI-only campaign: oxlint, oxfmt and diff checks passed; no test, build or coverage run. Preserve remaining transport, layout and lifecycle cases rather than force the 40 percent target.
Share JSON and bootstrap fixtures and remove repeated native installer tours. Historical publisher cases retain the recovery-ref assertion. Winget repair remains covered through Main, with one direct Boolean-output check; quiet-main-success retains healthy-Node bypass proof. The file-exit duplicate is covered by install-ps1.test.ts handled-failure entrypoint cases and the native upgrade PATH failure case.

CI-only campaign: oxfmt, plain oxlint and diff checks passed; no tests or coverage run. Retain distinct publication identity, archive integrity, package graph, rollback and native-shell contracts; line reduction is below the requested 40%.
Use the existing ZIP library and shared tar fixture creation instead of custom encoding and npm-pack setup. Prune copied parser/argument inventories and equivalent matrix rows. Keep real generator graph, artifact escape, native rollback, caller-state and ordering boundaries.

Qualified byte mismatch and missing-tarball scenarios remain in plugin-npm-publication-readback.test.ts (rejects before final success); the verifier retains failure propagation/no-receipt proof. Shared artifact tuple and ZIP traversal checks remain in plugin-publication-artifact.test.ts. Certificate retry classification remains in clawhub-client.test.ts and bounded content-length rejection in bounded-response.test.ts. Scoped fork parsing and policies remain covered by the retained planner and final-lock integration. File help remains in install-ps1.test.ts; streamed help remains in this shard.

CI-only: plain oxlint, oxfmt and diff-check passed; no tests, builds or coverage run. Shard is 4577 to 4235 lines cumulatively, below the requested 40 percent because remaining distinct release and native behaviors have no stronger duplicate proof.
Remove five duplicated mocked-Gateway scenarios; retain mobile provider-title geometry in the existing provider layout flow.

Remaining Models proof: load.test.ts (configured reads and explicit refresh), view.test.ts (model recovery and rejected credentials), config-mutation.test.ts (utility values without a primary), and view-defaults.test.ts (utility selection). The credentials E2E still verifies initial configured-only loading and saved default reload.

Remaining palette proof: palette-session-draft.test.tsx remembers only the palette and restores defaults without touching prompt/caret; palette-session-menus.test.tsx keeps agent navigation and Escape inside the nested menu. Background creation E2E retains foreground custody.

Remaining hovercard proof: markdown-links.test.ts covers explicit formatted references and independent destinations; the cross-repository E2E remains. link-reader-hovercard-prefetch.test.ts keeps shared warming alive when consumers leave. Cached permalink and pending/error E2E remain.

CI-only campaign: oxfmt, plain oxlint, and diff-check pass. No tests, builds, coverage, or Testbox commands run. Cut 5222 to 4785 lines (8.4%); stop below 40% rather than remove distinct browser pixel, focus, authority, or lifecycle proof.
Reduce the shard from 5222 baseline lines to 3128 (40.1%). Keep the screenshot-readiness suite unchanged, move provider-header and plugin-field geometry into retained same-page scenarios, and remove duplicate inventory and recording scaffolding.

Models keep read-only capability and reconnect/error/access-change E2E. Provider aliases and catalog grouping remain in data.test.ts and view.test.ts; quotas remain in account-usage.test.tsx and model-providers-page.usage.test.ts; key submission and default rollback remain in model-providers-page.actions.test.ts, config-mutation.test.ts and model-providers-page.login.test.ts; browser probe and default selection remain in model-providers-profile-outcomes.e2e.test.ts and model-providers-progressive.e2e.test.ts.

Sidebar owner facets, grouping and avatars remain in app-sidebar.sessions.test.ts via session-ownership.ts and session-ownership-filtering.ts. Query custody and persistence remain in app-sidebar.owner-query.test.ts, app-sidebar-session-types.test.ts and session-roster-refresh.events.test.ts. Read-only sharing remains in chat-session-sharing.test.tsx; draft creation remains in create-params.test.ts and draft-submission-flow.test.ts. Keep browser geometry, long sharing-directory scrolling, visibility rejection and policy replacement.

Palette input scrolling/growth remains in command-palette-input.browser.test.tsx; prompt/search transitions remain in command-palette.test.ts and command-palette-pending.test.ts; cold submission remains in app-shell-command-palette-loading.test.ts, palette-session-draft.test.tsx and command-palette-first-open.e2e.test.ts. Keep browser collapse animation, settings keyboard navigation, local/device submission, rejection and recovery.

GitHub reference parsing remains in markdown-links.test.ts; error backoff and shared prefetch remain in link-reader-hovercard-interactions.test.ts and link-reader-hovercard-prefetch.test.ts. Keep reader synchronization, lazy loading, narrow geometry, missing-result recovery, native focus/traversal and popup permalink navigation.

Remove the exact nested reference replay covered by plugins-credentials.e2e.test.ts. Enable/disable and uninstall remain in plugins-lifecycle.e2e.test.ts; autosave/reset remain in plugins-settings-keyboard.e2e.test.ts, plugins-settings-composition.e2e.test.ts and plugin-overview.e2e.test.ts. Keep real bundled-manifest union credentials, read-only mutation guards, inspection races and error recovery.

CI-only: oxfmt, plain oxlint and git diff --check pass. No test, coverage, build or Testbox runs. No production or shared helper edits; coordinator owns cleanup of now-unused providerConfig/createProviderProofCapture in the cross-shard model-providers.test-support.ts.
Keep browser-specific geometry, recovery, login, and auth boundaries; remove owner-level scenario replays and copied inventories.

Remaining proof: chat-composer-size.e2e.test.ts, chat-composer-picker-layout.e2e.test.ts, chat-composer-accessory-focus.e2e.test.ts, chat-flow.model-picker-refresh.e2e.test.ts, chat-composer-context.browser.test.ts, chat-composer-catalog.e2e.test.ts, chat-pane-run-activity.test.ts, and chat-native-turn-activity.e2e.test.ts own composer contracts.

stale-chunk-reload.test.ts, lazy-custom-element.test.ts, lazy-shell-action.test.ts, debug-overlay-layout.test.tsx, and the browser-route-handoff, desktop-document-mode, dashboard-fullscreen, and terminal-embedded E2E suites own repeated lazy recovery and route contracts.

model-providers-page.login.test.ts owns provider/account inventories. initial-session-turn-handoff.test.ts, draft-submission-flow.test.ts, draft-session-startup.test.ts, creation-composer.test.ts, started-session-navigation.test.ts, and new-session-page.transition.e2e.test.ts own repeated startup ordering and recovery contracts.

chat-position-rail.test.tsx, chat-position-rail-layout.e2e.test.ts, settings-message-width.e2e.test.ts, and settings.browser.test.ts own continuation and settings contracts. command-palette.test.ts, model-catalog-store.test.ts, and models-list.discovery-lifecycle.integration.test.ts own catalog invalidation and retry contracts. config-safe-write.e2e.test.ts retains 64-bit identifier preservation.

CI-only validation: plain oxlint, oxfmt, and git diff --check passed. No tests or coverage commands run. Shard test LOC: 5194 baseline to 3115; follow-up starts at 4686.
Remove duplicate config Raw-revert scenarios: config-draft-revision.test.ts covers external revision rebasing, and config-draft-model.test.ts covers failed-save revert recovery. Keep browser guarded writes, lost acknowledgements, reconnects and identifier integrity.

Keep real Gateway media send, persisted order, decoded pixels, managed frames, live/reload order and disclosure checks. Remove pane-state inspection and custom diagnostic inventories; chat-pane-run-settlement.test.ts retains watched recap settlement and chat-history-cursor.test.ts retains cursor adoption. Remove opt-in config capture plumbing.

CI-only: oxfmt, plain oxlint and git diff --check pass. No test, build or coverage runs. Shard LOC 5100 to 4757 (6.7%); declarations 52 to 50; statically expanded cases 62 to 60. Below the 40% target: remaining scenarios protect distinct browser layout, authority and lifecycle behavior.
PASS 15 follow-up: reduce the original 5100 lines to 3059 without changing production or shared support. Keep real Gateway media ordering, sandbox wheel/touch routing, focused-route errors, placement races and annotation persistence.

Retired layers retain these owners:
- Config writes: config-draft-model, config-draft-revision, config-write-recovery, config-write-coordinator and runtime-config-capability tests; config-raw-save and config-form-guidance E2Es; labs-page executor preservation.
- Models: model-select-state, session-model-override, chat-model-runtime, chat-model-controls-search and chat-send pending-setting tests. Fold nonempty inherited reasoning into retained A/B navigation.
- Placement: chat-pane-placement authoritative target/cloud/abandonment tests, chat-pane-placement-stop offline action policy and components/chat-pane-placement ownership table. Retain terminal/outbox/split/reload and stale-startup no-flash E2Es.
- Dashboard: solo-widget-chrome retains page controls in split view without reloading; board-view.browser retains widget geometry and identity through focused/split changes; board-document, board-view and board provider own loading/grants/events.
- Catalog: catalog-page-hosts pages only cursor hosts and preserves exhausted hosts through refresh; chat-responsive.browser centers overflowing messages and configured widths; external-session-catalogs opens paired-node view-only transcripts; terminal-panel-handoff owns first-output readiness.
- Selection: chat-comment-lifecycle and chat-comment-controller own edit/delete/replacement; chat-comment-preview roundtrips formatted selections; retained shard cases own touch/reload, cancellation highlights, pin reflow, clear-history and DOM offsets.
- Project dedup/create: project-chip omits listed project recents; draft-submission-flow materializes remote projects. Keep server-recents precedence and late folder/roster races.

Validation: CI-only mode; oxfmt, plain oxlint and git diff --check pass. No tests, coverage or builds run. Coordinator follow-up: resumableClaudeCatalog is now unused in claude-sessions.test-support.ts, a shared file outside this shard scope.
Remove basic reload proof duplicated by warm-boot.e2e.test.ts and chat-active-turn-recovery.e2e.test.ts. Idle alias dispatch remains covered by chat-send.test.ts; retain all messaging ordering regressions.

Keep the repeated-delta activity regression but retire the duplicate favicon layer: control-ui-favicon-status.test.ts owns priority and visibility, control-ui-favicon.browser.test.ts owns palette and original-link restoration, and chat-native-turn-activity.e2e.test.ts retains event-to-favicon wiring.

Leave merged PR rendering to chat-pr-publication-state.e2e.test.ts and mobile/desktop dock geometry to chat-scroll-dock.e2e.test.ts. Remove duplicate native theme replays while retaining both theme assertions and every error path. No production or support changes.

CI-only: plain oxlint, oxfmt, and git diff --check pass. No tests or coverage run. Retention-limited result: 4974 to 4818 lines (3.1%), 40 to 38 declarations, 78 to 73 expanded cases; below the 40% target to preserve distinct browser contracts.
Warm pagination and short-viewport behavior remain in session-snapshot-write.test.ts, chat-pane-history.test.ts and chat-pane-history-autofill.test.ts. DB6 retirement remains in sidebar-snapshot-store.test.ts: retires pre-rail-identity sidebars and unbounded transcripts. Keep browser reload and account isolation.

Home attention remains in app-sidebar.people.test.ts via attention.ts, with Home footer activity in app-sidebar.interactions.test.ts. Mobile Details layout and closed progress updates remain in session-details-progress.e2e.test.ts. Scroll-follow locking remains in scroll.test.ts and disclosure intent in session-progress-disclosure.e2e.test.ts; retain dock geometry and late layout races.

Messaging same-run finals remain in chat-live-final-order.e2e.test.ts, terminal persistence ordering in chat-state.test.ts, and steer routing in chat-send.test.ts. Keep browser stale-input, URL state, cross-client and reconnect ordering. Native collapse and send-lock lifecycle remain in apps/linux/tests/quick_chat.py QuickChatFixture.exercise; keep appearance and identity refresh races.

CI-only: no test, coverage or build runs. Plain oxlint, oxfmt and diff check pass. This follow-up removes 606 lines; original shard 4974 to 4212 lines, 15.3 percent cumulative. No files deleted. Below requested 40 percent rather than discarding unmatched native-stream, viewport, authority or lifecycle proof.
Reuse existing page/send helpers and local session/tool builders in active-turn recovery. Keep each lifecycle case and every strict adjacent ordering check; remove the redundant transitive order check. Preserve count and visibility proof.

Record avatar cancellation as an exact ordered event ledger instead of independent counters, and share decoded-image assertions. Native cancellation, socket closure, retry budget and successful image reads remain asserted. Runtime executable selection is covered by openclaw-test-instance.runtime.test.ts; preserve Bun probing and the built-entry guard.

Use the real ChatPageHost type in stale-Stop observation and trim unused frame fields. Empty remote URL validation remains in apps/linux/tests/first_run.py exercise. Drop unconditional warm-boot screenshot artifacts, not visual assertions.

CI-only: no tests, coverage, builds or typechecks. Plain oxlint exits zero; formatting and diff checks pass. Additional 50-line reduction, cumulative 4974 to 4162 (16.3 percent). Target remains unmet: no further safe duplicate layer was established for unique transport, viewport, authority and lifecycle scenarios.
Replace the whole-repository helper-import census with an exact synthetic routing fixture. Keep transitive/file-URL coverage in test-projects.test.ts and leaf-owner routing in test-projects-routing.test.ts.

Share release lint Git fixtures; remove copied tsconfig and runner-label metadata checks. Installed-binary policy and package project tests retain executable lint proof. Periphery artifact attempts, hostile archives, comment admission and live-authority tests remain unchanged.

Exercise run_case_local_basic log rejection instead of grepping shell source; existing TCP-readiness tests retain isolated Gateway log-path coverage. CI-only mode: format, diff-check and plain oxlint passed; runtime tests and coverage intentionally not run. Reduction: 5308 to 5202 lines; below the 40 percent target to retain distinct safety and lifecycle contracts.
Replace extracted ClawHub selector and verifier probes with full install-proof script scenarios. Keep native-risk filtering, explicit requests, and prefix-escape rejection at the shell entry point; remove repeated identity variants through identical guards.

Remove copied routing, package-root, debug-project, and scenario-log inventories. Retain one representative per routing/policy/publication branch. Prefix selection is covered by test-projects.test.ts: bounds extensionless prefix probes while excluding deleted cached matches. Cache isolation is covered by test-projects-build-admission.test.ts: preserves cache ownership through preflight and execution. Transitive helper routing remains in test-projects.test.ts: routes test helper and file-URL fixture consumers completely. Shared numeric validation remains in numeric-options.test.ts; watch keeps its CLI boundary example.

Share lint fixtures, replace package root-list inspection with type-error exclusion sentinels, and retain four distinct scenario-log admission predicates. CI-only validation: formatting, plain oxlint and diff checks; no tests, builds or coverage runs. Original shard 5308 lines to 4797; the 40 percent target remains unmet because the retained suites exercise distinct safety and lifecycle contracts.
Keep the failing-update first-hop scenario, which traverses the same process-capture and Doctor publication path as exit zero while additionally proving large migration capture and redaction. Remove the duplicate null rollback input; missing evidence exercises the same nullish guard.

Keep leading pnpm-separator behavior in the native run/watch specs and option-operand partitioning in the exclusion-occurrence test. Remove the weaker direct parser replays. GitHub warning-only exit behavior remains in lint-status.test.ts: run-oxlint.mjs preserves real oxlint warning/error exits (GitHub Actions: true); retain the evidence-bearing warning/error scenario here.

CI-only: oxfmt, plain oxlint and diff-check passed; no test/build/coverage commands. Deeper sibling audit found no equivalent keeper for the remaining publisher, IPC, watch-lifecycle or native lint boundaries. Original shard is 5308 to 4766 lines; 40 percent remains unmet without dropping distinct behavior or expanding scope.
Remove approval routing copies covered by agent-tools.before-tool-call.approval-policy.test.ts and the four cooldown scenarios covered by model-fallback.timeout-cooldown.e2e.test.ts.

Share code-mode setup and exact hook assertions across all existing input variants; reuse local private-preparer/client fixtures and deferred gates without dropping lifecycle or authority checks.

CI-only validation: plain oxlint, oxfmt, and git diff --check. No runtime or coverage runs. Cut 559 of 4967 lines (11.3%); retain unique loop, redaction, adapter, retry, and suspension behavior rather than forcing the 40% target.
Keep loop algorithm proof in tool-loop-detection.test.ts (current-run warnings, completed churn, ping-pong loops, global veto escalation). Retain real write/exec and security diagnostic integration here. Host path enumeration remains in host-tool-param-parsers.test.ts: derives apply_patch destination paths from the input envelope; the retained trusted-rewrite test still proves hook propagation.

Hook ordering remains in hooks.before-tool-call.test.ts: binds the first approval to its owner and snapshot while allowing a later block. Hook failure remains in the shard terminal-diagnostic table. Consolidate plain context forwarding and trace/block precedence assertions into retained same-path scenarios.

Failover policy stays in run/failover-policy.test.ts and run/assistant-failure.test.ts, including timeout ownership and committed writes. Retry and TPM limits stay in run/failover-retry-controller.test.ts: paces TPM recovery and shares retry ceilings. Provider cooldown persistence stays in auth-profiles.markauthprofilefailure.test.ts: follows the latest provider deadline without escalating repeated failures.

Ordered integration proof stays in embedded-agent-runner.run-embedded-agent.fault-sequences.e2e.test.ts: walks the mixed fault chain and rotates after a rate limit and cools down only for provider timing. Overload probing stays in model-fallback.probe.test.ts: attempts non-primary fallbacks during overloaded cooldown after primary probe failure. Stale errors stay in run/attempt-recovery.test.ts: does not recover stale errors after success. Missing endpoints classification stays in test/plugins/openrouter-error-classification.integration.test.ts. Keep Azure, per-day cap, timeout health, routing receipts, and suspension ownership scenarios here.

Trim unused shard-private fixture branches after repo-wide caller search. No source-text inventory assertions or missing subjects found. Static-only proof: plain oxlint, oxfmt, git diff --check; no tests or coverage runs. The cumulative reduction remains below 40%; do not drop the remaining unique privacy, approval, authority, and routing-receipt proof to force the target.
Remove duplicated workflow source inventories and worker build-graph assertions. Keep collectWorkerDeployArtifactErrors and the relocated archive probes as the worker graph owner proof; keep the Playwright registry transform guard.

Publication identity and byte verification remain covered by plugin-publication-artifact.test.ts and plugin-npm-prepared-release.test.ts. npm-trusted-publisher-preflight.test.ts owns exchange behavior; release-check.test.ts owns npm JSON shapes. Keep workflow authority, provenance, pinning, and preflight nonpublication guards.

Retain every distinct native sidecar and process-lifecycle case: the 40 percent line target cannot be met safely in this shard. CI-only validation: oxfmt, diff-check, and plain oxlint; no tests or coverage run.
@clawsweeper

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T08:07:14.163492Z 237f834 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 24, 2026 07:39
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui agents Agent runtime and tooling size: XL labels Oct 24, 2026
@steipete
steipete disabled auto-merge October 24, 2026 07:45
@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 24, 2026
@clawsweeper

clawsweeper Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR removes redundant tests and consolidates fixtures across tooling, Control UI, and agent suites.

Example: Run the reader-position rail E2E in light or dark mode.

  • Before: The hover-wave assertion reads the defined ticks locator.
  • After: The locator declaration is removed, so the retained assertion throws ReferenceError.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The cleanup has clear maintenance value, but retained tests fail and detailed typecheck diagnostics remain unavailable.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test cleanup changes no shipped behavior; hosted test execution supplies supporting validation and exposes the listed defects.
Patch quality 🦪 silver shellfish (2/6) 4 actionable review findings remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Repeated test layers and fixture setup increase maintenance cost.
Reason: The maintainer-directed cleanup uses existing test owners and leaves production behavior unchanged.

Merge readiness

⛔ Needs changes before merge - 4 items remain

Keep this maintainer-directed cleanup open; four introduced test defects need correction before merge.

Priority: P3
Reviewed head: 6d2da0529d35f9c1303f08e4f02883d8ed1994a5

Before merge

  • Restore the ticks locator used by the retained wave assertion (P2) - The cleanup deletes const ticks = markers.locator(...), but waveWidths still reads ticks. Both light and dark reader tests now fail with ReferenceError: ticks is not defined, as confirmed by hosted UI E2E annotations. Retain the locator or inline it in the remaining assertion.
  • Preserve the inferred-project diagnostic expectations (P2) - The fixture writes Promise.resolve(); into the inferred JavaScript files, but the new assertion requires zero diagnostics for them. The installed type-aware linter reports typescript(no-floating-promises), so this test now fails. The previous test checked that these files were unmatched by configured projects and preserved diagnostic parity; unmatched does not mean unlinted. Restore that contract or assert the actual independent expected diagnostics.
  • Resolve workspace dependencies in the staged parser fixture (P2) - Replacing the self-contained parser fixture with a re-export loads the real parser's @openclaw/normalization-core/string-coerce import from a subprocess running in the temporary stage. Linking node_modules alone does not supply the repository TypeScript path mapping. Hosted CI exits with MODULE_NOT_FOUND before validating --force, so the malformed-package regression no longer reaches its intended guard. Supply the existing source-runtime resolution contract to this fixture.
  • Expose the callback-captured signal without invalid narrowing (P2) - The new signal local is assigned only inside the fetch callback. TypeScript does not carry that callback assignment into the enclosing control flow, so signal?.aborted accesses a property on never. Store the observation in a typed holder or read it through a getter so the test remains typecheckable without a cast.

Findings

  • [P2] Restore the ticks locator used by the retained wave assertion — ui/src/e2e/chat-position-rail.e2e.test.ts:330-331
  • [P2] Preserve the inferred-project diagnostic expectations — test/scripts/oxlint-config.test.ts:394-395
  • [P2] Resolve workspace dependencies in the staged parser fixture — test/scripts/live-docker-stage.test.ts:335
Agent review details

How this fits together

These suites exercise tooling commands, browser interactions, and agent hooks, turning synthetic inputs into assertions used by CI.

flowchart LR
  A[Synthetic fixtures] --> B[Tooling commands]
  A --> C[Browser and Gateway]
  A --> D[Agent hook adapters]
  B --> E[Retained assertions]
  C --> E
  D --> E
  E --> F[CI gate]
Loading

Technical review

Best possible solution:

Repair the retained test fixtures and assertions without changing production behavior or weakening their owning contracts.

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

Hosted CI on the reviewed head confirms three introduced failures; source inspection identifies the callback-narrowing defect, and no local tests were run.

Is this the best way to solve the issue?

Consolidating duplicate proof at existing owners is appropriate, but the retained fixtures must remain executable and preserve their original contracts.

Full review comments:

  • [P2] Restore the ticks locator used by the retained wave assertion — ui/src/e2e/chat-position-rail.e2e.test.ts:330-331
    The cleanup deletes const ticks = markers.locator(...), but waveWidths still reads ticks. Both light and dark reader tests now fail with ReferenceError: ticks is not defined, as confirmed by hosted UI E2E annotations. Retain the locator or inline it in the remaining assertion.
    Confidence: 1
  • [P2] Preserve the inferred-project diagnostic expectations — test/scripts/oxlint-config.test.ts:394-395
    The fixture writes Promise.resolve(); into the inferred JavaScript files, but the new assertion requires zero diagnostics for them. The installed type-aware linter reports typescript(no-floating-promises), so this test now fails. The previous test checked that these files were unmatched by configured projects and preserved diagnostic parity; unmatched does not mean unlinted. Restore that contract or assert the actual independent expected diagnostics.
    Confidence: 1
  • [P2] Resolve workspace dependencies in the staged parser fixture — test/scripts/live-docker-stage.test.ts:335
    Replacing the self-contained parser fixture with a re-export loads the real parser's @openclaw/normalization-core/string-coerce import from a subprocess running in the temporary stage. Linking node_modules alone does not supply the repository TypeScript path mapping. Hosted CI exits with MODULE_NOT_FOUND before validating --force, so the malformed-package regression no longer reaches its intended guard. Supply the existing source-runtime resolution contract to this fixture.
    Confidence: 1
  • [P2] Expose the callback-captured signal without invalid narrowing — test/scripts/pnpm-audit-prod.test.ts:299
    The new signal local is assigned only inside the fetch callback. TypeScript does not carry that callback assignment into the enclosing control flow, so signal?.aborted accesses a property on never. Store the observation in a typed holder or read it through a getter so the test remains typecheckable without a cast.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Package fallback lint fixture changes intended behavior with a stated reason (fb1ca63: Preserve project selection and complete diagnostic parity while reducing the fallback type graph, as documented in perf(lint): bound the package fallback type graph #160281.)
  • Reader-position rail browser coverage changes intended behavior with a stated reason (8c5918e: test(ui): avoid repeated Appearance boots in rail checks #180369 reduced repeated Appearance boots while retaining persistence, geometry, keyboard, animation, and continuation assertions; this PR explicitly retires redundant layers.)
  • Agent hook integration consolidation keeps the original intent (1e1e45b: Outer code-mode hooks normalize code and command aliases and retain active hook context; the consolidation preserves those input variants and identifies sibling owners for removed policy replays.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/oxlint-config.test.ts test/scripts/live-docker-stage.test.ts test/scripts/pnpm-audit-prod.test.ts
  • pnpm test:ui:e2e ui/src/e2e/chat-position-rail.e2e.test.ts
  • pnpm tsgo:test:root
  • pnpm tsgo:test:ui
  • git diff --check

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 2e353eb adds test/scripts/oxlint-config.test.ts:31 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 2e353eb4a7d8; files: test/scripts/oxlint-config.test.ts)

PR surface

Tests -9001. Total -9001 across 60 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 60 2527 11528 -9001
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 60 2527 11528 -9001

Review metrics

Metric Value Why it matters
Production versus test/support LOC production +0/-0; tests/support +2770/-13432 The reduction serves the authorized cleanup and introduces no production machinery.

Labels

Label changes:

  • add P3: This is test maintenance with no intended user-facing runtime change.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • 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 intended user-facing runtime change.
  • 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 execution lanes are retired.

Reviewed October 24, 2026, 3:55 AM ET / 07:55 UTC.

@steipete steipete changed the title test(scripts,ui,agents): remove low-value tests (batch d455) test(scripts,ui): remove low-value tests (batch d455) Oct 24, 2026
@steipete
steipete enabled auto-merge (squash) October 24, 2026 08:03
@openclaw-barnacle openclaw-barnacle Bot removed the agents Agent runtime and tooling label Oct 24, 2026
@steipete
steipete merged commit 70f3071 into main Oct 24, 2026
94 checks passed
@steipete
steipete deleted the tcr/land-d455-1792826433 branch October 24, 2026 08:10
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 25, 2026
* test(scripts): deslop q0031 tests

Remove npm and CLI timeout source inventories; executable ownership remains in test/scripts/openclaw-e2e-instance.test.ts (wraps installs with timeout/gtimeout, bounds npm install failure logs, wraps package-installed OpenClaw CLI calls).

Retain the survivor logging regression from df3eb35 and the distinct lifecycle, cleanup, authority and publication proofs. CI-only campaign: formatting, diff check and plain oxlint passed; runtime proof deferred to hosted CI. Below the 40% target because the remaining fixture-heavy tests protect distinct behavior.

* test(scripts): consolidate q0031 tooling proof

Remove source-text command inventories, retaining generic supply-chain, credential and capability guards. Share supervisor, Doctor inspection and diagnostics fixture setup without weakening failure-path assertions.

Duplicate restart/PID proof remains in upgrade-survivor-systemd.test.ts: keeps the inspected service alive after the caller terminal closes and drains restart children. The Doctor transport handshake remains in doctor-install-switch-transport.test.ts.

CI-only validation: oxfmt, diff check and plain oxlint passed; no tests or coverage run. Original 5459 lines become 4711 (13.7 percent), below the 40 percent target; retained post-core, publication, process-group and config-restoration paths have distinct owner coverage.

* test(scripts): retain q0031 capability ownership guards

* test(scripts): share q0031 fixture branches

Keep generated and caller-owned functional builds as separate cases with shared setup. Reuse existing survivor JSON/summary fixtures and tracked process completion, and remove the single-element systemctl fixture callback layer.

Preserve the distinct publication, post-core, plugin identity, process-group, Doctor and config-restoration contracts. CI-only validation: oxfmt, diff check and plain oxlint pass; no tests or coverage run. 4713 to 4628 lines this pass; original 5459 to 4628 remains below the 40 percent target.

* test(scripts): deslop q0032 tests

Share baseline/successor fault fixtures, remove duplicate pending and required-job variants, and retain browser asset ownership in the generated browser metadata scenario. Artifact selection remains covered by src/plugins/plugin-runtime-artifact-resolution.test.ts: selects declared output over a stale neighbor.

CI-only audit: preserve distinct publication, provenance, parser, and Git authority branches. The 40 percent target is not safely reachable for this already-consolidated shard; reduce 5118 lines to 5018 without dropping distinct contracts.

* test(scripts): consolidate q0032 boundary proof layers

Retire repeated supervision and successor recovery proof covered by pr-baseline-signing, pr-baseline-successor, and pr-correction-publication. Keep package module loading at test/plugin-npm-package-manifest.test.ts and CJS asset lifecycle at plugin-npm-runtime-assets.

Consolidate candidate constituent and publisher validation at sealed verification. Retain workflow approval and evidence-before-cancellation invariants without step-name inventories. Reduce same-branch authority and metadata input variants and use minimal legacy recovery responses.

CI-only: plain oxlint, oxfmt, and diff-check passed. No test or coverage execution. Original shard 5118 lines to 4592; forty-percent goal remains unmet because distinct executable parser, publication, and recovery flows remain.

* test(scripts): reduce q0032 fixture and replay layers

Drive registry retries, terminal visibility, and ledger token/payload assertions through the retained publication gating scenario. Reuse the native baseline fixture for successor admission and remove custom successor setup; native successor and signing suites retain archive and signature proof.

Unify candidate provenance fixtures, consolidate active exact-attempt loading, share ClawHub recovery responses, and remove the CLI policy replay covered by the executable finalization keeper. Share database source envelopes and drop the assertion-free branch fixture that exited before analysis.

CI-only: plain oxlint, oxfmt, and diff-check passed. No tests or builds run. Shard lines 5118 to 4382; distinct retained behavior still prevents meeting the requested 40 percent reduction.

* test(scripts): deslop q0035 tests

Reuse script temp-directory and startup metadata fixtures, consolidate merge observation shapes, and remove source-restating spawn assertions. Retain all publication, archive-integrity, authority, and process-lifecycle cases; the distinct boundaries do not support the requested 40% cut.

* test(scripts): reduce q0035 subprocess and archive fixture layers

Keep the native startup zombie regression from 38b1a41 while removing duplicated live-group classification and unknown-probe scenarios. Live and indeterminate drainage remain covered by managed-child-process.drain.test.ts (fails a persistently live/indeterminate group); startup state preservation remains covered by preserves shared state when a canceled process group cannot be proven dead. Retain the owned reaper cleanup and output bounds.

Remove upstream tar-consumer fixture sanity assertions, keep every OpenClaw malformed-header rejection, and use one representative for the shared unsupported ZIP flag mask and route-independent PAX rejection.

* test(scripts): consolidate q0007 fixtures and stale proof

Port q0007 commits ecdef82bcbe068a8f2fbe76c889b032af02e6a51, a916a967d74872d44b414da9157593134499585e, and cc3ed62330ec7aad623958d161418bee2595c7b4 onto the campaign lane.

Preserve the updated controller-guard baselines in the consolidated scenario and retain the complete lazy catalog test, including new-session runtime copy. Apply all other shard deletions and consolidations unchanged.

Validation: plain oxlint exit 0 across all ten files; oxfmt --check and git diff --check passed. Independent review found no actionable findings through P2. Tests were not run under the requested CI-only mode.

* test(pr): reduce q0033 fixture and duplicate proof layers

Keep upgrade plugin record, consent and artifact proof at upgrade-survivor-assertions.test.ts and upgrade-survivor-registry-identity.test.ts; keep shell recovery wiring at upgrade-survivor-recovery-phase.test.ts. Retain pending-plugin admission and HTTP artifact proof here. Keep legacy auth storage proof at auth-profile-store-assertions.test.ts and source binding mismatch proof at full-release-publication-admission.test.ts. Consolidate startup isolation assertions and trim Kova fixture data without changing its branches. CI-only: format, diff and plain oxlint checked; no test runs.

* test(scripts): consolidate remaining q0033 proof layers

Reuse owner coverage in npm-onboard-channel-agent-shell, docker-all-scheduler, prepublish-plugin-registry-shell, and code-mode-matrix-config tests. Keep registry tampering covered through prepared-bundle creation's final artifact validator. Consolidate CLI rendering and metadata normalization fixtures while preserving publication and dispatch authority guards. No test runs under campaign CI-only mode; oxfmt, plain oxlint, and diff checks pass.

* test(ui): deslop q0036 tests

Remove catalog diagnostic and capture scaffolding, including its orphaned helper. Keep all catalog publication, failure, retry, acquisition-count and account-scope assertions.

Drop login model-access replays covered by model-providers-page.login.test.ts, model-providers-page.login-start-chat.test.ts and wizard-view-solid.test.tsx. Composer preference mutation remains covered by chat-flow.model-picker-refresh.e2e.test.ts; View preference persistence by appearance-settings-defaults.e2e.test.ts; provider grouping by chat-model-picker.test.tsx.

CI-only campaign: oxlint, oxfmt and diff checks passed; no test, build or coverage run. Preserve remaining transport, layout and lifecycle cases rather than force the 40 percent target.

* test(release): deslop q0038 tests

Share JSON and bootstrap fixtures and remove repeated native installer tours. Historical publisher cases retain the recovery-ref assertion. Winget repair remains covered through Main, with one direct Boolean-output check; quiet-main-success retains healthy-Node bypass proof. The file-exit duplicate is covered by install-ps1.test.ts handled-failure entrypoint cases and the native upgrade PATH failure case.

CI-only campaign: oxfmt, plain oxlint and diff checks passed; no tests or coverage run. Retain distinct publication identity, archive integrity, package graph, rollback and native-shell contracts; line reduction is below the requested 40%.

* test(release): remove redundant q0038 proof layers

Use the existing ZIP library and shared tar fixture creation instead of custom encoding and npm-pack setup. Prune copied parser/argument inventories and equivalent matrix rows. Keep real generator graph, artifact escape, native rollback, caller-state and ordering boundaries.

Qualified byte mismatch and missing-tarball scenarios remain in plugin-npm-publication-readback.test.ts (rejects before final success); the verifier retains failure propagation/no-receipt proof. Shared artifact tuple and ZIP traversal checks remain in plugin-publication-artifact.test.ts. Certificate retry classification remains in clawhub-client.test.ts and bounded content-length rejection in bounded-response.test.ts. Scoped fork parsing and policies remain covered by the retained planner and final-lock integration. File help remains in install-ps1.test.ts; streamed help remains in this shard.

CI-only: plain oxlint, oxfmt and diff-check passed; no tests, builds or coverage run. Shard is 4577 to 4235 lines cumulatively, below the requested 40 percent because remaining distinct release and native behaviors have no stronger duplicate proof.

* test(ui): deslop q0037 tests

Remove five duplicated mocked-Gateway scenarios; retain mobile provider-title geometry in the existing provider layout flow.

Remaining Models proof: load.test.ts (configured reads and explicit refresh), view.test.ts (model recovery and rejected credentials), config-mutation.test.ts (utility values without a primary), and view-defaults.test.ts (utility selection). The credentials E2E still verifies initial configured-only loading and saved default reload.

Remaining palette proof: palette-session-draft.test.tsx remembers only the palette and restores defaults without touching prompt/caret; palette-session-menus.test.tsx keeps agent navigation and Escape inside the nested menu. Background creation E2E retains foreground custody.

Remaining hovercard proof: markdown-links.test.ts covers explicit formatted references and independent destinations; the cross-repository E2E remains. link-reader-hovercard-prefetch.test.ts keeps shared warming alive when consumers leave. Cached permalink and pending/error E2E remain.

CI-only campaign: oxfmt, plain oxlint, and diff-check pass. No tests, builds, coverage, or Testbox commands run. Cut 5222 to 4785 lines (8.4%); stop below 40% rather than remove distinct browser pixel, focus, authority, or lifecycle proof.

* test(ui): consolidate q0037 owner-boundary coverage

Reduce the shard from 5222 baseline lines to 3128 (40.1%). Keep the screenshot-readiness suite unchanged, move provider-header and plugin-field geometry into retained same-page scenarios, and remove duplicate inventory and recording scaffolding.

Models keep read-only capability and reconnect/error/access-change E2E. Provider aliases and catalog grouping remain in data.test.ts and view.test.ts; quotas remain in account-usage.test.tsx and model-providers-page.usage.test.ts; key submission and default rollback remain in model-providers-page.actions.test.ts, config-mutation.test.ts and model-providers-page.login.test.ts; browser probe and default selection remain in model-providers-profile-outcomes.e2e.test.ts and model-providers-progressive.e2e.test.ts.

Sidebar owner facets, grouping and avatars remain in app-sidebar.sessions.test.ts via session-ownership.ts and session-ownership-filtering.ts. Query custody and persistence remain in app-sidebar.owner-query.test.ts, app-sidebar-session-types.test.ts and session-roster-refresh.events.test.ts. Read-only sharing remains in chat-session-sharing.test.tsx; draft creation remains in create-params.test.ts and draft-submission-flow.test.ts. Keep browser geometry, long sharing-directory scrolling, visibility rejection and policy replacement.

Palette input scrolling/growth remains in command-palette-input.browser.test.tsx; prompt/search transitions remain in command-palette.test.ts and command-palette-pending.test.ts; cold submission remains in app-shell-command-palette-loading.test.ts, palette-session-draft.test.tsx and command-palette-first-open.e2e.test.ts. Keep browser collapse animation, settings keyboard navigation, local/device submission, rejection and recovery.

GitHub reference parsing remains in markdown-links.test.ts; error backoff and shared prefetch remain in link-reader-hovercard-interactions.test.ts and link-reader-hovercard-prefetch.test.ts. Keep reader synchronization, lazy loading, narrow geometry, missing-result recovery, native focus/traversal and popup permalink navigation.

Remove the exact nested reference replay covered by plugins-credentials.e2e.test.ts. Enable/disable and uninstall remain in plugins-lifecycle.e2e.test.ts; autosave/reset remain in plugins-settings-keyboard.e2e.test.ts, plugins-settings-composition.e2e.test.ts and plugin-overview.e2e.test.ts. Keep real bundled-manifest union credentials, read-only mutation guards, inspection races and error recovery.

CI-only: oxfmt, plain oxlint and git diff --check pass. No test, coverage, build or Testbox runs. No production or shared helper edits; coordinator owns cleanup of now-unused providerConfig/createProviderProofCapture in the cross-shard model-providers.test-support.ts.

* test(ui): remove duplicate q0036 e2e layers

Keep browser-specific geometry, recovery, login, and auth boundaries; remove owner-level scenario replays and copied inventories.

Remaining proof: chat-composer-size.e2e.test.ts, chat-composer-picker-layout.e2e.test.ts, chat-composer-accessory-focus.e2e.test.ts, chat-flow.model-picker-refresh.e2e.test.ts, chat-composer-context.browser.test.ts, chat-composer-catalog.e2e.test.ts, chat-pane-run-activity.test.ts, and chat-native-turn-activity.e2e.test.ts own composer contracts.

stale-chunk-reload.test.ts, lazy-custom-element.test.ts, lazy-shell-action.test.ts, debug-overlay-layout.test.tsx, and the browser-route-handoff, desktop-document-mode, dashboard-fullscreen, and terminal-embedded E2E suites own repeated lazy recovery and route contracts.

model-providers-page.login.test.ts owns provider/account inventories. initial-session-turn-handoff.test.ts, draft-submission-flow.test.ts, draft-session-startup.test.ts, creation-composer.test.ts, started-session-navigation.test.ts, and new-session-page.transition.e2e.test.ts own repeated startup ordering and recovery contracts.

chat-position-rail.test.tsx, chat-position-rail-layout.e2e.test.ts, settings-message-width.e2e.test.ts, and settings.browser.test.ts own continuation and settings contracts. command-palette.test.ts, model-catalog-store.test.ts, and models-list.discovery-lifecycle.integration.test.ts own catalog invalidation and retry contracts. config-safe-write.e2e.test.ts retains 64-bit identifier preservation.

CI-only validation: plain oxlint, oxfmt, and git diff --check passed. No tests or coverage commands run. Shard test LOC: 5194 baseline to 3115; follow-up starts at 4686.

* test(ui): deslop q0034 tests

Remove duplicate config Raw-revert scenarios: config-draft-revision.test.ts covers external revision rebasing, and config-draft-model.test.ts covers failed-save revert recovery. Keep browser guarded writes, lost acknowledgements, reconnects and identifier integrity.

Keep real Gateway media send, persisted order, decoded pixels, managed frames, live/reload order and disclosure checks. Remove pane-state inspection and custom diagnostic inventories; chat-pane-run-settlement.test.ts retains watched recap settlement and chat-history-cursor.test.ts retains cursor adoption. Remove opt-in config capture plumbing.

CI-only: oxfmt, plain oxlint and git diff --check pass. No test, build or coverage runs. Shard LOC 5100 to 4757 (6.7%); declarations 52 to 50; statically expanded cases 62 to 60. Below the 40% target: remaining scenarios protect distinct browser layout, authority and lifecycle behavior.

* test(ui): deslop q0034 tests

PASS 15 follow-up: reduce the original 5100 lines to 3059 without changing production or shared support. Keep real Gateway media ordering, sandbox wheel/touch routing, focused-route errors, placement races and annotation persistence.

Retired layers retain these owners:
- Config writes: config-draft-model, config-draft-revision, config-write-recovery, config-write-coordinator and runtime-config-capability tests; config-raw-save and config-form-guidance E2Es; labs-page executor preservation.
- Models: model-select-state, session-model-override, chat-model-runtime, chat-model-controls-search and chat-send pending-setting tests. Fold nonempty inherited reasoning into retained A/B navigation.
- Placement: chat-pane-placement authoritative target/cloud/abandonment tests, chat-pane-placement-stop offline action policy and components/chat-pane-placement ownership table. Retain terminal/outbox/split/reload and stale-startup no-flash E2Es.
- Dashboard: solo-widget-chrome retains page controls in split view without reloading; board-view.browser retains widget geometry and identity through focused/split changes; board-document, board-view and board provider own loading/grants/events.
- Catalog: catalog-page-hosts pages only cursor hosts and preserves exhausted hosts through refresh; chat-responsive.browser centers overflowing messages and configured widths; external-session-catalogs opens paired-node view-only transcripts; terminal-panel-handoff owns first-output readiness.
- Selection: chat-comment-lifecycle and chat-comment-controller own edit/delete/replacement; chat-comment-preview roundtrips formatted selections; retained shard cases own touch/reload, cancellation highlights, pin reflow, clear-history and DOM offsets.
- Project dedup/create: project-chip omits listed project recents; draft-submission-flow materializes remote projects. Keep server-recents precedence and late folder/roster races.

Validation: CI-only mode; oxfmt, plain oxlint and git diff --check pass. No tests, coverage or builds run. Coordinator follow-up: resumableClaudeCatalog is now unused in claude-sessions.test-support.ts, a shared file outside this shard scope.

* test(ui): deslop q0039 tests

Remove basic reload proof duplicated by warm-boot.e2e.test.ts and chat-active-turn-recovery.e2e.test.ts. Idle alias dispatch remains covered by chat-send.test.ts; retain all messaging ordering regressions.

Keep the repeated-delta activity regression but retire the duplicate favicon layer: control-ui-favicon-status.test.ts owns priority and visibility, control-ui-favicon.browser.test.ts owns palette and original-link restoration, and chat-native-turn-activity.e2e.test.ts retains event-to-favicon wiring.

Leave merged PR rendering to chat-pr-publication-state.e2e.test.ts and mobile/desktop dock geometry to chat-scroll-dock.e2e.test.ts. Remove duplicate native theme replays while retaining both theme assertions and every error path. No production or support changes.

CI-only: plain oxlint, oxfmt, and git diff --check pass. No tests or coverage run. Retention-limited result: 4974 to 4818 lines (3.1%), 40 to 38 declarations, 78 to 73 expanded cases; below the 40% target to preserve distinct browser contracts.

* test(ui): retire redundant q0039 e2e layers

Warm pagination and short-viewport behavior remain in session-snapshot-write.test.ts, chat-pane-history.test.ts and chat-pane-history-autofill.test.ts. DB6 retirement remains in sidebar-snapshot-store.test.ts: retires pre-rail-identity sidebars and unbounded transcripts. Keep browser reload and account isolation.

Home attention remains in app-sidebar.people.test.ts via attention.ts, with Home footer activity in app-sidebar.interactions.test.ts. Mobile Details layout and closed progress updates remain in session-details-progress.e2e.test.ts. Scroll-follow locking remains in scroll.test.ts and disclosure intent in session-progress-disclosure.e2e.test.ts; retain dock geometry and late layout races.

Messaging same-run finals remain in chat-live-final-order.e2e.test.ts, terminal persistence ordering in chat-state.test.ts, and steer routing in chat-send.test.ts. Keep browser stale-input, URL state, cross-client and reconnect ordering. Native collapse and send-lock lifecycle remain in apps/linux/tests/quick_chat.py QuickChatFixture.exercise; keep appearance and identity refresh races.

CI-only: no test, coverage or build runs. Plain oxlint, oxfmt and diff check pass. This follow-up removes 606 lines; original shard 4974 to 4212 lines, 15.3 percent cumulative. No files deleted. Below requested 40 percent rather than discarding unmatched native-stream, viewport, authority or lifecycle proof.

* test(ui): simplify q0039 e2e fixture machinery

Reuse existing page/send helpers and local session/tool builders in active-turn recovery. Keep each lifecycle case and every strict adjacent ordering check; remove the redundant transitive order check. Preserve count and visibility proof.

Record avatar cancellation as an exact ordered event ledger instead of independent counters, and share decoded-image assertions. Native cancellation, socket closure, retry budget and successful image reads remain asserted. Runtime executable selection is covered by openclaw-test-instance.runtime.test.ts; preserve Bun probing and the built-entry guard.

Use the real ChatPageHost type in stale-Stop observation and trim unused frame fields. Empty remote URL validation remains in apps/linux/tests/first_run.py exercise. Drop unconditional warm-boot screenshot artifacts, not visual assertions.

CI-only: no tests, coverage, builds or typechecks. Plain oxlint exits zero; formatting and diff checks pass. Additional 50-line reduction, cumulative 4974 to 4162 (16.3 percent). Target remains unmet: no further safe duplicate layer was established for unique transport, viewport, authority and lifecycle scenarios.

* test(scripts): deslop q0040 tests

Replace the whole-repository helper-import census with an exact synthetic routing fixture. Keep transitive/file-URL coverage in test-projects.test.ts and leaf-owner routing in test-projects-routing.test.ts.

Share release lint Git fixtures; remove copied tsconfig and runner-label metadata checks. Installed-binary policy and package project tests retain executable lint proof. Periphery artifact attempts, hostile archives, comment admission and live-authority tests remain unchanged.

Exercise run_case_local_basic log rejection instead of grepping shell source; existing TCP-readiness tests retain isolated Gateway log-path coverage. CI-only mode: format, diff-check and plain oxlint passed; runtime tests and coverage intentionally not run. Reduction: 5308 to 5202 lines; below the 40 percent target to retain distinct safety and lifecycle contracts.

* test(scripts): remove redundant q0040 proof layers

Replace extracted ClawHub selector and verifier probes with full install-proof script scenarios. Keep native-risk filtering, explicit requests, and prefix-escape rejection at the shell entry point; remove repeated identity variants through identical guards.

Remove copied routing, package-root, debug-project, and scenario-log inventories. Retain one representative per routing/policy/publication branch. Prefix selection is covered by test-projects.test.ts: bounds extensionless prefix probes while excluding deleted cached matches. Cache isolation is covered by test-projects-build-admission.test.ts: preserves cache ownership through preflight and execution. Transitive helper routing remains in test-projects.test.ts: routes test helper and file-URL fixture consumers completely. Shared numeric validation remains in numeric-options.test.ts; watch keeps its CLI boundary example.

Share lint fixtures, replace package root-list inspection with type-error exclusion sentinels, and retain four distinct scenario-log admission predicates. CI-only validation: formatting, plain oxlint and diff checks; no tests, builds or coverage runs. Original shard 5308 lines to 4797; the 40 percent target remains unmet because the retained suites exercise distinct safety and lifecycle contracts.

* test(scripts): consolidate remaining q0040 branch replays

Keep the failing-update first-hop scenario, which traverses the same process-capture and Doctor publication path as exit zero while additionally proving large migration capture and redaction. Remove the duplicate null rollback input; missing evidence exercises the same nullish guard.

Keep leading pnpm-separator behavior in the native run/watch specs and option-operand partitioning in the exclusion-occurrence test. Remove the weaker direct parser replays. GitHub warning-only exit behavior remains in lint-status.test.ts: run-oxlint.mjs preserves real oxlint warning/error exits (GitHub Actions: true); retain the evidence-bearing warning/error scenario here.

CI-only: oxfmt, plain oxlint and diff-check passed; no test/build/coverage commands. Deeper sibling audit found no equivalent keeper for the remaining publisher, IPC, watch-lifecycle or native lint boundaries. Original shard is 5308 to 4766 lines; 40 percent remains unmet without dropping distinct behavior or expanding scope.

* test(agents): deslop q0042 tests

Remove approval routing copies covered by agent-tools.before-tool-call.approval-policy.test.ts and the four cooldown scenarios covered by model-fallback.timeout-cooldown.e2e.test.ts.

Share code-mode setup and exact hook assertions across all existing input variants; reuse local private-preparer/client fixtures and deferred gates without dropping lifecycle or authority checks.

CI-only validation: plain oxlint, oxfmt, and git diff --check. No runtime or coverage runs. Cut 559 of 4967 lines (11.3%); retain unique loop, redaction, adapter, retry, and suspension behavior rather than forcing the 40% target.

* test(agents): remove redundant q0042 e2e layers

Keep loop algorithm proof in tool-loop-detection.test.ts (current-run warnings, completed churn, ping-pong loops, global veto escalation). Retain real write/exec and security diagnostic integration here. Host path enumeration remains in host-tool-param-parsers.test.ts: derives apply_patch destination paths from the input envelope; the retained trusted-rewrite test still proves hook propagation.

Hook ordering remains in hooks.before-tool-call.test.ts: binds the first approval to its owner and snapshot while allowing a later block. Hook failure remains in the shard terminal-diagnostic table. Consolidate plain context forwarding and trace/block precedence assertions into retained same-path scenarios.

Failover policy stays in run/failover-policy.test.ts and run/assistant-failure.test.ts, including timeout ownership and committed writes. Retry and TPM limits stay in run/failover-retry-controller.test.ts: paces TPM recovery and shares retry ceilings. Provider cooldown persistence stays in auth-profiles.markauthprofilefailure.test.ts: follows the latest provider deadline without escalating repeated failures.

Ordered integration proof stays in embedded-agent-runner.run-embedded-agent.fault-sequences.e2e.test.ts: walks the mixed fault chain and rotates after a rate limit and cools down only for provider timing. Overload probing stays in model-fallback.probe.test.ts: attempts non-primary fallbacks during overloaded cooldown after primary probe failure. Stale errors stay in run/attempt-recovery.test.ts: does not recover stale errors after success. Missing endpoints classification stays in test/plugins/openrouter-error-classification.integration.test.ts. Keep Azure, per-day cap, timeout health, routing receipts, and suspension ownership scenarios here.

Trim unused shard-private fixture branches after repo-wide caller search. No source-text inventory assertions or missing subjects found. Static-only proof: plain oxlint, oxfmt, git diff --check; no tests or coverage runs. The cumulative reduction remains below 40%; do not drop the remaining unique privacy, approval, authority, and routing-receipt proof to force the target.

* test(scripts): deslop q0041 tests

Remove duplicated workflow source inventories and worker build-graph assertions. Keep collectWorkerDeployArtifactErrors and the relocated archive probes as the worker graph owner proof; keep the Playwright registry transform guard.

Publication identity and byte verification remain covered by plugin-publication-artifact.test.ts and plugin-npm-prepared-release.test.ts. npm-trusted-publisher-preflight.test.ts owns exchange behavior; release-check.test.ts owns npm JSON shapes. Keep workflow authority, provenance, pinning, and preflight nonpublication guards.

Retain every distinct native sidecar and process-lifecycle case: the 40 percent line target cannot be met safely in this shard. CI-only validation: oxfmt, diff-check, and plain oxlint; no tests or coverage run.

* test: retain boundary proof after d455 review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui 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