Repository navigation
test(scripts,ui): remove low-value tests (batch d455) - #182377
Conversation
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.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis 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.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Agent review detailsHow this fits togetherThese 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d57f91b8fab0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -9001. Total -9001 across 60 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel 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 Reviewed October 24, 2026, 3:55 AM ET / 07:55 UTC. |
* 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
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. Skipped9f6d3f35a7cd721a3e75270344477dd6cd3adf82: the duplicate receipt/recovery suites are already removed on main byd84c03e3f52ec(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.openclaw/ci-gateis the runtime/type proof and merge gate. No runtime wall-time or CI duration is claimed before that run.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:
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.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).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.generate-npm-package-lock.test.tsin both picks (expanded lockfile/platform coverage).plugins-settings-admin.e2e.test.ts(current administration/credential and uncertain-write proof).claude-sessions.e2e.test.tsandnew-session-page.workspace-memory.e2e.test.tsin the second pick (new terminal deadline, preference and registered-project assertions).agent-tools.before-tool-call.e2e.test.ts,model-fallback.run-embedded.e2e.test.ts, and the latter's still-usedmodel-fallback.run-embedded.attempts.test-support.tsin the second pick (new diagnostic, churn, retry/profile-health coverage).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.tstest/scripts/ci-changed-lint.test.tstest/scripts/code-mode-matrix-gateway-fixtures.test.tstest/scripts/full-release-candidate-reuse.test.tstest/scripts/install-ps1.release.test.tstest/scripts/live-docker-stage.test.tstest/scripts/oxlint-config.test.tstest/scripts/prepublish-plugin-registry-artifact.test.tstest/scripts/release-beta-verifier.test.tstest/scripts/release-tooling-identity.test.tstest/scripts/test-projects-routing.test.tstest/scripts/upgrade-survivor-first-hop.test.tsui/src/e2e/catalog-acquisition.test-support.tsui/src/e2e/chat-agent-avatar.real-gateway.e2e.test.tsui/src/e2e/chat-managed-media-order.real-gateway.e2e.test.tsui/src/e2e/command-palette-catalog.real-gateway.e2e.test.tsui/src/e2e/config-safe-write.e2e.test.tsui/src/e2e/control-ui-auth-transports.e2e.test.tsui/src/e2e/dashboard-fullscreen.e2e.test.tsui/src/e2e/github-link-hovercard.e2e.test.tsui/src/e2e/model-provider-login.e2e.test.tsui/src/e2e/model-providers.e2e.test.tsui/src/e2e/new-session-page.instant-thread.e2e.test.tsui/src/e2e/session-ownership.e2e.test.tsui/src/e2e/session-placement.move.e2e.test.tsui/src/e2e/warm-boot.e2e.test.tsq0038 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.
test/scripts/docker-build-helper.test.tstest/scripts/pr-baseline-refresh.test.tstest/scripts/release-publish-parent.test.tstest/scripts/check-database-first-legacy-stores.test.tstest/scripts/plugin-publication-artifact.test.tstest/scripts/pr-merge-outcome.test-support.tstest/scripts/write-cli-startup-metadata.test.tstest/scripts/bench-gateway-installed.test.tstest/scripts/control-ui-i18n.test.tstest/scripts/pnpm-audit-prod.test.tstest/scripts/run-vitest-bounded.test.tstest/scripts/check-cli-startup-memory.test.tstest/scripts/clawhub-fixture-server.test.tstest/scripts/kova-report-gate.test.tstest/scripts/validate-full-release-validation-evidence.test.tstest/scripts/release-priority.test.tsui/src/e2e/chat-composer-redesign.e2e.test.tsui/src/e2e/chat-position-rail.e2e.test.tsui/src/e2e/lazy-custom-element-recovery.e2e.test.tsui/src/e2e/command-palette-create.e2e.test.tsui/src/e2e/chat-flow.models-reasoning.e2e.test.tsui/src/e2e/chat-selection-to-main.e2e.test.tsui/src/e2e/chat-flow.messaging.e2e.test.tsui/src/e2e/home-attention.e2e.test.tsui/src/e2e/mobile-shell-geometry.e2e.test.tsui/src/e2e/native-desktop-appearance.e2e.test.tsui/src/e2e/chat-scroll-dock.e2e.test.tsui/src/e2e/chat-active-turn-recovery.e2e.test.tsui/src/e2e/chat-stop-finished-run.real-gateway.e2e.test.tstest/scripts/e2e-shell-tempfiles.test.tstest/scripts/ios-periphery-comment-workflow.test.tstest/scripts/check-gateway-watch-regression.test.tstest/scripts/dependency-guard-script.test.tstest/scripts/worker-deploy-build-plugin.test.tsNo 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:
The campaign's original reduction targets were not reached; this batch retains distinct contracts instead of increasing deletions to meet a quota.