Skip to content

test(core,agents,plugins,ui): remove low-value tests (batch d016) - #167089

Merged
steipete merged 10 commits into
mainfrom
tcr/land-d016-1791450514
Oct 8, 2026
Merged

steipete merged 10 commits into
mainfrom
tcr/land-d016-1791450514

Conversation

@steipete

@steipete steipete commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The test suite repeats equivalent cases and bootstraps separate fixtures for behavior already covered at the same owner boundary. This is maintainer-authorized test-reduction batch d016.

User Impact

No user-visible behavior, production runtime code, configuration contract, or persistent-store semantics change. The suite retains the identified regression, security, ordering, and lifecycle cases while reducing duplicate test maintenance.

Why This Change Was Made

Replay ten audited shard commits onto current main. Consolidate retained cases into their existing owner suites, remove duplicate variants and wiring probes, delete one unused Zalouser mock helper, and remove stale test-inventory and baseline entries.

All ten supplied commits applied in order without conflicts. No commits or hunks were dropped; main's unrelated changes remain intact. There are no paths matched by the current CODEOWNERS rules.

Actual PR diff: production runtime +0/-0 LOC; tests +2730/-5595 LOC (net -2865); test support +0/-12 LOC; tooling/inventories/baselines +0/-6 LOC. Baselines shrink only. Test moves preserve their Vitest projects.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • Targeted oxfmt --write, plain oxlint -c .oxlintrc.json on every surviving changed TS/JS file, and git diff --check: passed. Plain lint also passed before every replayed commit.
  • Changed-check dry run: passed; selected core-test, extension-test, scripts, and tooling lanes.
  • Independent autoreview of the complete replay against base 54bd6ecee1897f51b2963b6ea4c165a356e2d805: scoped clean, no actionable P0–P2 findings.
  • Source-shard focused tests and coverage evidence are recorded below. Fresh combined validation targets all 43 surviving changed test files, including the consolidated destinations.

Infrastructure gap: fresh batch Testbox focused tests and OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <all 70 changed paths> were attempted but had not executed at publication. Lease tbx_01m4dcg91tj52tnv2by3a4jjz3 remained queued without an assigned runner; source-capsule preparation also encountered shared mirror saturation. The campaign mirror pool was selected for the corrected attempt. An initial preparation was intentionally interrupted to replace an inappropriate raw-HEAD check with exact source-byte verification for the wrapper's synthetic capsule commit; no tests ran in that attempt. This PR uses the operator's explicit infrastructure-gap arming rule. Hosted openclaw/ci-gate remains the merge gate; pending or unrun remote checks are not claimed as passing.

Per-shard source metrics and changed files

These are the original shard-wide metrics, not a fresh aggregate coverage run of this PR. Coverage units overlap between shards and must not be summed. No cases were folded.

Shard Test LOC Declarations Covered statements; branches; functions
w1150 3444 → 3295 (-149) 58 → 53 (-5) 7915 → 7924 (+9); 6478 → 6484 (+6); 1383 → 1383 (0)
w1153 2467 → 2385 (-82) 57 → 52 (-5) 12432 → 12401 (-31); 8636 → 8607 (-29); 2321 → 2314 (-7)
w1160 2006 → 1346 (-660) 56 → 38 (-18) 789 → 784 (-5); 510 → 509 (-1); 162 → 159 (-3)
w1156 3299 → 3083 (-216) 56 → 52 (-4) 4547 → 4547 (0); 3647 → 3647 (0); 865 → 865 (0)
w1157 3002 → 2681 (-321) 56 → 49 (-7) 1709 → 1709 (0); 1118 → 1117 (-1); 363 → 363 (0)
w1155 2628 → 2336 (-292) 57 → 51 (-6) 3053 → 3053 (0); 2717 → 2717 (0); 594 → 594 (0)
w1149 5945 → 5870 (-75) 58 → 55 (-3) 7015 → 7005 (-10); 4586 → 4578 (-8); 1727 → 1727 (0)
w1161 2416 → 2314 (-102) 55 → 51 (-4) 9685 → 9683 (-2); 6060 → 6055 (-5); 1761 → 1760 (-1)
w1159 2174 → 1648 (-526) 56 → 41 (-15) 1587 → 1586 (-1); 915 → 912 (-3); 296 → 296 (0)
w1158 1277 → 835 (-442) 56 → 38 (-18) 391 → 391 (0); 395 → 395 (0); 71 → 71 (0)

w1150 uses the later successful coordinator recovery comparison (remote run); its initial blocked report is superseded. w1149 is a passing-subset comparison containing both modified files; four unchanged replacement-publication tests failed in the historical full shard, so full-shard coverage is not claimed. The source reports document declaration-reduction shortfalls where retained contracts prevented further removal.

w1150

  • src/auto-reply/reply/get-reply.auto-fallback.test.ts
  • src/auto-reply/reply/get-reply.explicit-owner.test.ts
  • src/auto-reply/reply/get-reply.message-hooks.test.ts
  • src/auto-reply/reply/get-reply.reset-hooks-fallback.test.ts
  • src/auto-reply/reply/get-reply.timeout.test.ts
  • src/auto-reply/reply/get-reply.turn-model-selection-differential.test.ts
  • src/auto-reply/reply/get-reply.workspace-failure.test.ts

w1153

  • src/agents/openclaw-tools.sessions-send-child-coordination.test.ts
  • src/agents/openclaw-tools.subagents.sessions-spawn.allowlist.test.ts
  • src/agents/openclaw-tools.subagents.sessions-spawn.plan.test.ts
  • src/agents/openclaw-tools.tts-config.test.ts

w1160

  • config/test-mock-exports-baseline.txt
  • extensions/zalouser/src/accounts.test-mocks.ts
  • extensions/zalouser/src/channel.directory.test.ts
  • extensions/zalouser/src/channel.sendpayload.test.ts
  • extensions/zalouser/src/channel.test.ts
  • extensions/zalouser/src/send.handoff.test.ts
  • extensions/zalouser/src/send.test.ts

w1156

  • scripts/lib/ci-policy-test-watch.mts
  • scripts/lib/ci-proof-test-inventory.mts
  • src/cron/service.store-load-invalid-main-job.test.ts
  • src/cron/service.stream-trigger.test.ts
  • src/cron/service.stream-validation.test.ts
  • src/cron/service.trigger-cadence.test.ts
  • src/cron/service.trigger-eval.test.ts
  • src/cron/service.unresolved-owner.test.ts
  • src/cron/service.wake-now-real-heartbeat.test.ts

w1157

  • src/acp/control-plane/manager.accepted-controls.test.ts
  • src/acp/control-plane/manager.accepted-ownership.test.ts
  • src/acp/control-plane/manager.actor-epoch-fencing.test.ts
  • src/acp/control-plane/manager.close-control.test.ts
  • src/acp/control-plane/manager.configured-bindings.test.ts
  • src/acp/control-plane/manager.failover.test.ts
  • src/acp/control-plane/manager.operator-model-policy.test.ts
  • src/acp/control-plane/manager.owner-authority.test.ts
  • src/acp/control-plane/manager.preactive-cancellation.test.ts
  • src/acp/control-plane/manager.reset-liveness.test.ts
  • src/acp/control-plane/manager.reset-options.test.ts
  • src/acp/control-plane/manager.restart.test.ts
  • src/acp/control-plane/manager.runtime-config-validation.test.ts
  • src/acp/control-plane/manager.runtime-config.test.ts
  • src/acp/control-plane/manager.runtime-handles.test.ts
  • test/vitest/vitest.unit-fast-paths.mjs

w1155

  • ui/src/lib/sessions/index.activity-summary.test.ts
  • ui/src/lib/sessions/index.board-presentation.test.ts
  • ui/src/lib/sessions/index.child-event-refresh.test.ts
  • ui/src/lib/sessions/index.event-refresh.test.ts
  • ui/src/lib/sessions/index.test.ts
  • ui/src/lib/sessions/index.tree-snapshots.test.ts

w1149

  • src/config/sessions/session-accessor.sqlite-lifecycle-admission.test.ts
  • src/config/sessions/session-accessor.sqlite-maintenance-cadence.test.ts

w1161

  • src/agents/agent-tools.at-prefixed-host-paths.test.ts
  • src/agents/agent-tools.collector.integration.test.ts
  • src/agents/agent-tools.memory-flush-append-write.test.ts
  • src/agents/agent-tools.runtime.test.ts
  • src/agents/agent-tools.session-owner.test.ts
  • src/agents/agent-tools.session-portal.test.ts
  • src/agents/agent-tools.workspace-outside.test.ts
  • src/agents/agent-tools.workspace-paths.test.ts

w1159

  • config/test-timeout-race-baseline.txt
  • src/agents/sandbox/remote-fs-bridge.parent-alias.test.ts
  • src/agents/sandbox/remote-fs-bridge.path-bytes.test.ts
  • src/agents/sandbox/remote-fs-bridge.test.ts
  • src/agents/sandbox/ssh.spawn-env.test.ts
  • src/agents/sandbox/ssh.stream-errors.test.ts
  • src/agents/sandbox/ssh.test.ts

w1158

  • src/cli/cron-cli/shared.cause-display.test.ts
  • src/cli/cron-cli/shared.errors.test.ts
  • src/cli/cron-cli/shared.run-times-display.test.ts
  • src/cli/cron-cli/shared.test.ts

@clawsweeper

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

@steipete
steipete enabled auto-merge (squash) October 8, 2026 09:26
@openclaw-barnacle openclaw-barnacle Bot added channel: zalouser Channel integration: zalouser app: web-ui App: web-ui cli CLI command changes scripts Repository scripts agents Agent runtime and tooling size: XL labels Oct 8, 2026
@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 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 8, 2026, 5:32 AM ET / 09:32 UTC.

ClawSweeper review

What this changes

This PR consolidates retained regressions into existing suites, removes duplicate test variants and unused test support, and prunes corresponding inventories and baselines.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful test consolidation with no identified actionable defect, supported by historical unit-level comparisons rather than independently verified combined execution.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The supplied maintainer association exempts this internal test cleanup from contributor runtime proof; no production authority or stored-data contract changes. Historical shard comparisons are supplemental, and combined current-head validation was unrun at publication.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes
Reason: The maintainer-directed cleanup reduces repeated fixtures and equivalent cases while consolidating meaningful regressions under existing owners.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this is useful, maintainer-directed test maintenance, and no concrete introduced defect was found. Historical shard results support the cleanup, but do not establish a passing combined run of the reviewed head.

Priority: P3
Reviewed head: 5ba19f9a736973d985f06ea2dd1f49a5812e8997

Before merge

  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.

Findings

None.

Provenance

  • src/agents agent-tool assembly and workspace tests: original intent not found (unknown: History searches inspected recent area maintenance, but unavailable historical blobs prevented establishing all original test introductions.)
  • src/auto-reply/reply fallback and model-selection tests: original intent not found (unknown: The attempted symbol-history expansion encountered unavailable historical blobs, so original introduction rationale remains unverified.)
  • src/config/sessions lifecycle-admission and maintenance tests: original intent not found (unknown: Recent session maintenance history was inspected, but original rationale for every removed probe could not be established from available historical blobs.)
Agent review details

How this fits together

OpenClaw’s tests exercise agent tools, session lifecycle, scheduled tasks, plugins, and the Control UI. Test inventories route those suites into CI, which reports whether the retained contracts pass.

flowchart TD
  A[Behavioral contracts] --> B[Test fixtures]
  B --> C[Consolidated owner suites]
  D[Test inventories] --> E[CI test selection]
  C --> E
  E --> F[Validation results]
Loading

Technical review

Best possible solution:

Keep meaningful regressions at their existing owner boundaries and use the enforced current-head CI gate to validate the consolidated suites.

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

Not applicable: this PR addresses duplicate test maintenance rather than a reported runtime defect; the introduced consolidation is inspectable in source.

Is this the best way to solve the issue?

Yes: consolidating retained regressions into existing owner suites is a maintainable approach, and no concrete test-execution defect was identified.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: unit tests only. Added test files: 64.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Source -12, Tests -2866, Other -5. Total -2883 across 70 files.

View PR surface stats
Area Files Added Removed Net
Source 1 0 12 -12
Tests 65 2721 5587 -2866
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 4 0 5 -5
Total 70 2721 5604 -2883

Labels

Label changes:

  • add P3: This is internal test maintenance with no introduced user-facing 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 internal test maintenance with no introduced user-facing 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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

@steipete
steipete merged commit 76d6104 into main Oct 8, 2026
152 of 157 checks passed
@steipete
steipete deleted the tcr/land-d016-1791450514 branch October 8, 2026 09:35
steipete added a commit that referenced this pull request Oct 8, 2026
Enable CPU profiles, allocation profiles, and heap snapshots through the existing diagnostics owner on the supported Bun runtime. Preserve debugger/tracing conflicts, authorization, cancellation, redaction, limits, and native cleanup; use the current runtime in native tests and genuine Node for the V8 object-ID regression.

The shared 42bd pin includes integral heap sampling and snapshot metadata cleanup. Linux and macOS each passed 112/112 diagnostics tests on Node 24 and pinned Bun, with zero skips. P2 review and exact-head ClawSweeper found no actionable issues; CI run 37762723772 passed. The unrelated local full-tree unused-export failure from #167089 was reproduced on clean main and retained in PR evidence.
steipete added a commit that referenced this pull request Oct 8, 2026
Keep LocalRemoteShellSpawnResult file-local after #167089 removed its last
external consumer. Preserve its use by LocalRemoteShellSpawn. The four
turn-model fixture exports were fixed separately in #167160.

This clears the remaining unused-export finding from main's dependency
check (CI run 37758070507). Repository-wide references, including extensions
and UI, confirm no external consumer.

Validation: full-tree, production, and script Knip export scans report zero
findings; deadcode:full, check-changed, and git diff --check pass. The 11
importing test files pass on Node 24.21.0 and pinned Bun 42bd (105 tests per
runtime; 39 existing conditional skips). P2 autoreview is scoped-clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
…enclaw#167089)

* test(auto-reply): deslop w1150 tests

* test(agents): deslop w1153 tests

* test(zalouser): deslop w1160 tests

* test(cron): deslop w1156 tests

* test(acp): deslop w1157 tests

* test(ui): deslop w1155 tests

* test(sessions): deslop w1149 tests

* test(agents): deslop w1161 tests

* test(sandbox): deslop w1159 tests

* test(cron-cli): deslop w1158 tests
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
…aw#166933)

Enable CPU profiles, allocation profiles, and heap snapshots through the existing diagnostics owner on the supported Bun runtime. Preserve debugger/tracing conflicts, authorization, cancellation, redaction, limits, and native cleanup; use the current runtime in native tests and genuine Node for the V8 object-ID regression.

The shared 42bd pin includes integral heap sampling and snapshot metadata cleanup. Linux and macOS each passed 112/112 diagnostics tests on Node 24 and pinned Bun, with zero skips. P2 review and exact-head ClawSweeper found no actionable issues; CI run 37762723772 passed. The unrelated local full-tree unused-export failure from openclaw#167089 was reproduced on clean main and retained in PR evidence.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
Keep LocalRemoteShellSpawnResult file-local after openclaw#167089 removed its last
external consumer. Preserve its use by LocalRemoteShellSpawn. The four
turn-model fixture exports were fixed separately in openclaw#167160.

This clears the remaining unused-export finding from main's dependency
check (CI run 37758070507). Repository-wide references, including extensions
and UI, confirm no external consumer.

Validation: full-tree, production, and script Knip export scans report zero
findings; deadcode:full, check-changed, and git diff --check pass. The 11
importing test files pass on Node 24.21.0 and pinned Bun 42bd (105 tests per
runtime; 39 existing conditional skips). P2 autoreview is scoped-clean.
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: zalouser Channel integration: zalouser 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. scripts Repository scripts 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