Skip to content

test(agents,cli,infra,slack,ui): remove low-value tests (batch d316) - #178341

Merged
steipete merged 33 commits into
mainfrom
tcr/land-d316-1792492403
Oct 20, 2026
Merged

steipete merged 33 commits into
mainfrom
tcr/land-d316-1792492403

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Consolidates repeated test fixtures and assertions across the d316 campaign shards without changing production behavior.

User Impact

No user-visible behavior change. Test-only cleanup plus a shrink-only test baseline; no production code, runtime configuration, dependencies, or release artifacts changed. Distinct authority, lifecycle, security, and recovery cases are retained.

Why This Change Was Made

Replayed the supplied campaign commits onto pinned main 8318dc3. Current-main changes win wherever the older cleanup conflicts with newer regression coverage.

Replay decisions

  • Skipped 0d76cd89d39a: its clean changes were already present, and the remaining conflicts were dropped. Retained current cron-message-read, Docker entrypoint, and Doctor contention tests; did not restore deleted decision-admission test support.
  • Dropped overlapping edits to link-reader-hovercard in all three z0141 commits to preserve newer reader validation and epoch cases.
  • Dropped router-outlet-chat edits in the second and third z0143 commits to preserve newer colliding-key and missing-session regression cases; retained the first clean consolidation.
  • Dropped conflicting heartbeat-response-tool edits in z0145 to preserve current schema and response contracts.
  • Dropped conflicting runtime-policy-session-key edits in z0149 to preserve newer dm-alias coverage.
  • All other supplied commits replayed in order; any further resolution is noted below.

Evidence

Passed frozen-lockfile install, changed-file oxfmt, plain oxlint, and git diff --check. No local Vitest, check-changed, typecheck, coverage, or Testbox runs, per the operator's CI-only policy. Hosted openclaw/ci-gate is the behavior/type/merge proof. Independent review runs during CI. Local test wall time and CI test seconds are not claimed before hosted results.

Production LOC: +0 / -0. Test and test-support LOC: +8991 / -13119 (net -4128). Test baseline: +0 / -5. Total net: -4133. No touched paths match the current CODEOWNERS rules.

Shard evidence

The source reports explicitly say tests and coverage were not run under CI-only mode; no coverage totals or <=1% coverage-drop claim is available. The following counts compare this replay against its pinned main, including test support. Declaration counts are lexical it/test call counts, not expanded cases.

Shard LOC before → after Declarations before → after Source report coverage statement
z0140 Skipped; no diff Skipped; no diff Tests and coverage not run; CI-only.
z0144 2467 → 1977 (-490) 43 → 41 (-2) Tests and coverage not run; CI-only.
z0142 2368 → 2015 (-353) 53 → 50 (-3) Tests and coverage not run; CI-only.
z0141 2085 → 1738 (-347) 50 → 42 (-8) Tests and coverage not run; CI-only.
z0143 2496 → 2211 (-285) 51 → 51 (0) Tests and coverage not run; CI-only.
z0145 2302 → 1938 (-364) 36 → 32 (-4) Tests and coverage not run; CI-only.
z0131 2578 → 2117 (-461) 39 → 37 (-2) Tests and coverage not run; CI-only.
z0147 2336 → 1805 (-531) 52 → 45 (-7) Tests and coverage not run; CI-only.
z0146 2639 → 2256 (-383) 30 → 24 (-6) Tests and coverage not run; CI-only.
z0149 2298 → 1984 (-314) 35 → 30 (-5) Tests and coverage not run; CI-only.
z0148 2454 → 1854 (-600) 31 → 30 (-1) Tests and coverage not run; CI-only.
Files considered by shard (four restored files documented below)
  • z0140: no files changed after replay resolution.
  • z0144: extensions/slack/src/monitor/message-handler.thread-resolution.test.ts, extensions/slack/src/monitor/monitor.media.test.ts, extensions/slack/src/monitor/provider.ingress-start-cleanup.test.ts, extensions/slack/src/monitor/provider.interop.test.ts, extensions/slack/src/monitor/provider.reconnect-loop.test.ts, extensions/slack/src/monitor/provider.transport-credentials.test.ts, extensions/slack/src/monitor/relay-source.test.ts, extensions/slack/src/monitor/provider.event-identity-recovery.test.ts
  • z0142: ui/src/components/solid/hub-tabs.browser.test.tsx, ui/src/components/solid/identity-avatar.test.tsx, ui/src/components/solid/menu-frozen-contract.browser.test.tsx, ui/src/components/solid/menu-native-contract.browser.test.tsx, ui/src/components/solid/menu-navigation.browser.test.tsx, ui/src/components/solid/menu-shortcut-alignment.browser.test.tsx, ui/src/components/solid/modal-dialog.browser.test.tsx, ui/src/components/solid/menu-contract.test-support.tsx
  • z0141: ui/src/components/hub-tabs.browser.test.tsx, ui/src/components/identity-avatar-view.test.tsx, ui/src/components/image-lightbox.browser.test.ts, ui/src/components/image-lightbox.test.ts, ui/src/components/keyboard-shortcuts-dialog.test.ts, ui/src/components/link-reader-metadata.test.ts, ui/src/components/image-lightbox-gallery.test.ts
  • z0143: ui/src/app/overlays-update-continuity.test.ts, ui/src/app/plugin-distributions.node.test.ts, ui/src/app/render-error-reload.test.ts, ui/src/app/route-transition.test.ts, ui/src/app/router-outlet-chat.test.tsx, ui/src/app/router-outlet-presentation.test.tsx, ui/src/app/router-outlet.test.tsx, ui/src/app/overlays-update.test-support.ts, ui/src/app/router-outlet-fixtures.test-support.tsx
  • z0145: src/agents/tools/agent-step.test.ts, src/agents/tools/agents-wait-tool.required.test.ts, src/agents/tools/ask-user-tool-normalization.test.ts, src/agents/tools/github-publish-tool.test.ts, src/agents/tools/in-process-gateway.test.ts, src/agents/tools/computer-tool.test-helpers.ts, src/agents/tools/decision-tool.integration.test.ts
  • z0131: ui/src/pages/chat/components/chat-transcript-scroll-ownership.test.tsx, ui/src/pages/chat/components/chat-transcript-touch-prepend.test.tsx, ui/src/pages/chat/components/chat-transcript-voice-reconciliation.test.ts, ui/src/pages/chat/components/chat-transcript-recovery.test.ts, ui/src/pages/chat/components/chat-transcript-replies.test.ts, ui/src/pages/chat/components/chat-transcript-row-refs.test.ts, ui/src/pages/chat/components/chat-turn-video-gallery.test.ts, ui/src/pages/chat/components/chat-working-indicator.test.ts
  • z0147: src/infra/ssh-config.test.ts, src/infra/state-migrations.media-persistence.test.ts, src/infra/state-migrations.shared-auth-store.lifecycle.test.ts, src/infra/state-migrations.transcript-directives.masked-provider.test.ts, src/infra/sqlite-worker-transcripts.export-settlement.test.ts, src/infra/sqlite-worker-transfer.test.ts, src/infra/stale-while-revalidate-cache.test.ts
  • z0146: src/agents/custom-api-registry.test.ts, src/agents/decision-inference.integration.test.ts, src/agents/decision-inference.openai.integration.test.ts, src/agents/decision-inference.openrouter.integration.test.ts, src/agents/decision-inference.test-support.ts, src/agents/delegation-capability.test.ts, src/agents/delegation-guidance.test.ts, src/agents/docs-path.test.ts, src/agents/core-coding-tools.exec-workdir.test.ts
  • z0149: src/auto-reply/reply/restart-recovery-claim.lifecycle.test.ts, src/auto-reply/reply/route-reply.prepared.test.ts, src/auto-reply/reply/route-reply.test.ts, src/auto-reply/reply/recovery-controller.fixture.test-support.ts, src/auto-reply/reply/restart-recovery-claim.durability.test.ts, src/auto-reply/reply/restart-recovery-claim.pending-input.test.ts, src/auto-reply/reply/route-reply.fixture.test-support.ts, src/auto-reply/reply/route-reply.imessage.test.ts, src/auto-reply/reply/route-reply.recovery-owner.test.ts
  • z0148: src/cli/state-dir-gateway-check.server.test.ts, src/cli/state-dir-gateway-check.test.ts, src/cli/system-cli.test.ts, src/cli/update-cli-lifecycle.test-support.ts, src/cli/update-cli.already-current.test.ts, src/cli/update-cli.candidate-activation.test.ts, src/cli/update-cli.candidate-admission.test.ts, src/cli/state-dir-gateway-check.server-fixture.test-support.ts

CI and review follow-up

The initial CI run found replay-local test-type errors, unbound SDK method references, and a missing runtime-config snapshot inside the isolated durability fixture. Commit a63ffbd restores the fixture setup, the persisted user-message type and execution-run identity, typed signal/config/tuple contracts, void cleanup, and bound SDK calls. Local formatting, plain oxlint, and diff checks passed again; fresh-head CI must verify runtime/types. Initial run: https://github.com/openclaw/openclaw/actions/runs/39409519174.

Independent review returned seven findings. Accepted two: restored the SVG data-URL download case and modified-link / selection-veto cases. Rejected five after source verification: DecisionRuntimeV2 explicitly extends DecisionRuntimeV1; LinkReaderHovercardProvider is registered by its module; mountSolid roots are cleaned by the shared dom.setup afterEach (both alleged leaks); foreign-origin no-fetch is retained at the avatar loader owner. The follow-up 11-file correction review completed clean with no actionable P0-P2 findings.

The second CI run passed the repaired core lint/type jobs and durability shard, then identified four replayed UI fixture failures and five modified mocks needing isolation documentation. Commit 98f2545 restores these four files byte-for-byte to pinned main: ui/src/components/link-reader-metadata.test.ts, ui/src/app/router-outlet.test.tsx, ui/src/pages/chat/components/chat-transcript-recovery.test.ts, and ui/src/components/solid/menu-navigation.browser.test.tsx. Their cleanup is dropped, including the menu rewrite; main retains the full modified-link/veto tests. The five mock factories keep their existing behavior with explicit isolation reasons. Formatting, plain oxlint and diff-check passed. Final diff: 76 test/support files; no production changes. Second run: https://github.com/openclaw/openclaw/actions/runs/39410758248.

Follow-up 7250eb9 removes the now-unreferenced McpView and controlButton test helpers and their imports after those restorations. Changed-file formatting, plain lint, and diff-check passed again. The restoration/helper delta is independently reviewed while final-head CI runs.

The restoration/helper review completed clean. CI on 7250eb9 then required removing the five exact obsolete mock-baseline entries corresponding to the new isolation notes and found the retained-pin warning fixture had lost currentVersion/nextVersion metadata. Commit 34eb115 restores the original explicit version fields and shrinks only those five baseline rows. Formatting, plain lint, and diff-check passed. The assertion and production behavior are unchanged. Final scope: 76 test/support files plus one test baseline. Run: https://github.com/openclaw/openclaw/actions/runs/39412379583.

@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XL labels Oct 20, 2026
@steipete
steipete disabled auto-merge October 20, 2026 10:48
@steipete
steipete enabled auto-merge (squash) October 20, 2026 10:50
@steipete
steipete disabled auto-merge October 20, 2026 11:01
@steipete
steipete enabled auto-merge (squash) October 20, 2026 11:02
@steipete
steipete disabled auto-merge October 20, 2026 11:04
@steipete
steipete enabled auto-merge (squash) October 20, 2026 11:04
@steipete
steipete disabled auto-merge October 20, 2026 11:17
@steipete
steipete enabled auto-merge (squash) October 20, 2026 11:17
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates repeated tests and fixtures across agents, reply recovery, CLI updates, infrastructure, Slack, and the Control UI.

Example: A lightbox image upgrade fails temporarily.

  • Before: Separate tests cover preview preservation, zoom retention, and retry.
  • After: A consolidated parameterized test checks the same preview, zoom, and successful retry behavior.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful test consolidation with retained boundary coverage and CI-backed harness evidence, without a measured performance claim.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR changes test organization without changing shipped behavior; hosted test and type checks provide supporting validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-approved direction reduces repeated test maintenance while keeping production behavior and meaningful boundary coverage intact.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored cleanup open; the inspected consolidations preserve meaningful regression boundaries, with no actionable correctness or security finding.

Priority: P3
Reviewed head: 34eb115563c568f867924a1f4530277f47222446

Before merge

None.

Findings

None.

Agent review details

How this fits together

These test suites feed synthetic scenarios through existing runtime, transport, persistence, and UI owners, then assert observable results under CI.

flowchart LR
  A[Synthetic scenarios] --> B[Shared test fixtures]
  B --> C[Existing production owners]
  C --> D[Transport state and DOM results]
  D --> E[Regression assertions]
  E --> F[Required CI gate]
Loading

Technical review

Best possible solution:

Land the test consolidation after required CI passes, preserving the retained regression boundaries.

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

This PR addresses repeated test setup rather than a reported product failure, so product-bug reproduction does not apply.

Is this the best way to solve the issue?

Consolidating fixtures and equivalent cases at existing test owners is appropriate, and the inspected transport, security, recovery, and UI regressions remain represented.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned scope and reduction: The introduced diff changes tests, test support, and five removed mock-baseline entries; production code, dependencies, workflows, and persisted product formats are unchanged. (34eb115563c5)
  • Slack transport boundaries retained: The relay suite retains acknowledgement only after durable acceptance, failed-acceptance rejection, recovery settlement, proxy authentication, rejected credentials, stalled CONNECT cancellation, and TLS trust checks; the proxy contract originated in fix(slack): honor relay proxy settings without direct fallback #143881. (extensions/slack/src/monitor/relay-source.test.ts:72, 34eb115563c5)
  • Recovery ownership retained: The shared fixture uses the existing session actor and recovery controller; retained cases cover database reopen, restart handoff, successor generations, commit-time interruption, session retargeting, and ordinary user abort. (src/auto-reply/reply/recovery-controller.fixture.test-support.ts:11, 34eb115563c5)
  • Removed avatar security replay has owner coverage: The unchanged avatar owner test rejects sender-controlled origins and asserts that authenticated fetch never runs, supporting removal of the overlapping renderer test. (ui/src/lib/identity-avatar.test.ts:577, 34eb115563c5)
  • Solid cleanup remains owned: mountSolid registers roots with the shared cleanup owner, and the DOM setup calls cleanupSolid after each test; removed local unmount wrappers do not establish a leak. (ui/src/test-helpers/dom.setup.ts:7, 34eb115563c5)
  • Exact-head validation remains pending: Hosted UI, browser, lint, and type checks passed on the reviewed head; the required openclaw/ci-gate remains pending. GitHub reports mergeable=true and mergeable_state=blocked, which does not establish a conflict. (34eb115563c5)

Likely related people:

  • Vincent Koc: Raw commit 621f574 adds src/agents/decision-inference.openai.integration.test.ts:16 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 621f574e6639; files: src/agents/decision-inference.openai.integration.test.ts)
  • Jason T. Greene: Raw commit a4ad6f3 adds extensions/slack/src/monitor/relay-source.test.ts:257 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a4ad6f3137d0; files: extensions/slack/src/monitor/relay-source.test.ts)

PR surface

Tests -3108, Other -5. Total -3113 across 77 files. Added test files: 5.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 76 6153 9261 -3108
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 5 -5
Total 77 6153 9266 -3113

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests and support +8898/-13026, net -4128. Shared fixtures replace repeated setup without adding production machinery; this establishes source reduction, not a measured runtime improvement.

Labels

Label changes:

  • add P3: This is test maintenance with no user-visible runtime change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test maintenance with no user-visible runtime change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 20, 2026, 7:37 AM ET / 11:37 UTC.

@steipete
steipete merged commit cbfaa0d into main Oct 20, 2026
138 of 139 checks passed
@steipete
steipete deleted the tcr/land-d316-1792492403 branch October 20, 2026 11:44
steipete added a commit that referenced this pull request Oct 20, 2026
Remove orphaned context-engine assertions and the already-current convergence table after #178340 and #178341. Keep webhook, MCP authority, and JSON-target helpers local after #178399, #172026, and #178407; replace the test-only skill-authoring reset seam with module isolation.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
…penclaw#178341)

* test(slack): deslop z0144 tests

* test(slack): deslop z0144 tests

* test(slack): deslop z0144 tests

* test(ui): deslop z0142 tests

* test(ui): deslop z0142 tests

* test(ui): deslop z0141 tests

* test(ui): deslop z0141 tests

* test(ui): deslop z0141 tests

* test(ui): deslop z0143 tests

* test(ui): deslop z0143 tests

* test(ui): deslop z0143 tests

* test(agents): deslop z0145 tests

* test(agents): deslop z0145 tests

* test(agents): deslop z0145 tests

* test(ui): deslop z0131 tests

* test(ui): deslop z0131 tests

* test(ui): deslop z0131 tests

* test(infra): deslop z0147 tests

* test(infra): further deslop z0147 tests

* test(infra): further consolidate z0147 tests

* test(agents): deslop z0146 tests

* test(agents): deslop z0146 tests

* test(agents): deslop z0146 tests

* test(auto-reply): deslop z0149 tests

* test(auto-reply): deslop z0149 tests

* test(auto-reply): deslop z0149 tests

* test(cli): deslop z0148 tests

* test(cli): deslop z0148 tests

* test(cli): deslop z0148 tests

* test: preserve fixture contracts in batch d316

* test: retain baseline UI fixtures and document mock isolation

* test: remove helpers orphaned by fixture restoration

* test: preserve pin warning fixture and shrink mock baseline
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
Remove orphaned context-engine assertions and the already-current convergence table after openclaw#178340 and openclaw#178341. Keep webhook, MCP authority, and JSON-target helpers local after openclaw#178399, openclaw#172026, and openclaw#178407; replace the test-only skill-authoring reset seam with module isolation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: slack Channel integration: slack cli CLI command changes P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant