Skip to content

test(agents,channels,cli): remove low-value tests (batch d173) - #164302

Merged
steipete merged 10 commits into
mainfrom
tcr/land-d173-1791029493
Oct 3, 2026
Merged

steipete merged 10 commits into
mainfrom
tcr/land-d173-1791029493

Conversation

@steipete

@steipete steipete commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated fixtures, duplicate probes, and separately declared variants add maintenance cost to the core test suite.

User Impact

No user-visible change. This batch changes only tests across agents, audit, auto-reply, channels, claws, and CLI; production and shared test-support code are unchanged.

Why This Change Was Made

Replay ten validated campaign shards onto current main, removing redundant cases and consolidating repeated setup into tables while retaining regression, security, authority, ordering, cancellation, and recovery assertions. All ten requested commits applied in order, with their original messages. No conflicts or dropped hunks. Git automatically integrated main's corrected readiness expectations without reverting them.

The replay starts at 2288edbca9dd24e9a195b54d077964d6cebb579f. Actual batch diff: 46 test files, +3,748 / -5,822 lines (net -2,074). Production LOC: +0 / -0. Shared test-support LOC: +0 / -0. No changed paths match the current CODEOWNERS rules.

Evidence

The following are original in-shard measurements, including audited files that remained unchanged. These are source campaign results, not fresh coverage measurements on this PR head. Original shard commit IDs were rewritten during campaign integration and replay. Coverage owners overlap, so coverage totals must not be summed.

Shard Test LOC before → after Declarations before → after Executed cases before → after Original covered totals
u0121 2,490 → 2,353 (-137) 36 → 25 (-11) 83 → 71 covered statements 7676 → 7679 (3); branches 4701 → 4700 (-1); functions 1254 → 1255 (1)
u0124 1,380 → 1,350 (-30) 34 → 23 (-11) 46 → 46 covered statements 1868 → 1868 (0); branches 942 → 942 (0); functions 316 → 316 (0)
u0130 1,406 → 1,205 (-201) 33 → 22 (-11) 46 → 36 covered statements 550 → 550 (0); branches 441 → 441 (0); functions 150 → 150 (0)
u0128 3,153 → 2,714 (-439) 91 → 61 (-30) 141 → 138 covered statements 2080 → 2082 (2); branches 1517 → 1517 (0); functions 467 → 468 (1)
u0129 2,643 → 2,539 (-104) 48 → 33 (-15) 91 → 91 covered statements 2121 → 2121 (0); branches 1583 → 1583 (0); functions 345 → 345 (0)
u0132 1,528 → 1,446 (-82) 55 → 37 (-18) 87 → 83 covered statements 669 → 669 (0); branches 586 → 586 (0); functions 137 → 137 (0)
u0127 1,256 → 1,207 (-49) 22 → 15 (-7) 31 → 26 covered statements 7080 → 7080 (0); branches 5537 → 5537 (0); functions 1245 → 1245 (0)
u0134 2,627 → 2,235 (-392) 77 → 50 (-27) 98 → 102 covered statements 2176 → 2176 (0); branches 1582 → 1582 (0); functions 462 → 462 (0)
u0135 2,987 → 2,602 (-385) 106 → 73 (-33) 221 → 156 covered statements 1336 → 1336 (0); branches 952 → 952 (0)
u0136 3,494 → 3,239 (-255) 76 → 53 (-23) 165 → 145 raw covered statements 1491 → 1491; branches 1233 → 1233; comparator statements 0 → 0, branches 0 → 0 (sole group excluded)
Total 22,964 → 20,890 (-2,074) 578 → 392 (-186) 1,009 → 894 (-115) Not summed

Source proof qualifications: u0121 lost one covered branch in scoped-session-access.ts (0.02% overall); other compared shards reported no per-file drops. u0136's coverage comparator excluded its sole group because of two baseline readiness failures, so its unchanged raw totals are supplemental evidence only. Its original tests finished 143 passed / 2 failed. u0134/u0135/u0136 original changed checks failed on an inherited environment budget mismatch (475 actual / 476 budget), with the other planned checks passing separately. Fresh landing validation is recorded below. All shards met the later declaration-reduction target; none met the older 50% case/LOC target, and their retention ledgers explain the preserved contracts. u0134 has more executed cases because internal variants became individually reported table rows.

Changed files by shard
  • u0121: src/agents/tools/sessions-history-tool.anchor-budget.test.ts, src/agents/tools/sessions-list-privacy.test.ts, src/agents/tools/sessions-search-tool.matching.test.ts, src/agents/tools/sessions-send-followup.test.ts, src/agents/tools/sessions-spawn-cloud.test.ts, src/agents/tools/sessions-tool.owner.test.ts, src/agents/tools/skill-workshop-tool-library.test.ts.
  • u0124: src/agents/worktrees/service.restore-source.test.ts, src/agents/worktrees/service.retire-snapshot.test.ts, src/audit/audit-event-writer.lifecycle.test.ts, src/audit/execution-owner-binding.test.ts.
  • u0130: src/channels/draft-streaming-chunking.test.ts, src/channels/inbound-event/media.test.ts.
  • u0128: src/auto-reply/reply/queue/cleanup.session-authority.test.ts, src/auto-reply/reply/reply-delivery.test.ts, src/auto-reply/reply/reply-media-paths.test.ts, src/auto-reply/reply/reply-model-levels.test.ts, src/auto-reply/reply/reply-run-registry.abort.test.ts, src/auto-reply/reply/reply-run-registry.successor-barrier.test.ts.
  • u0129: src/auto-reply/reply/reply-tool-authority.test.ts, src/auto-reply/reply/reply-turn-admission.recovery.test.ts, src/auto-reply/reply/reply-turn-admission.rotation.test.ts, src/auto-reply/reply/restart-recovery-claim.lifecycle.test.ts, src/auto-reply/reply/route-reply.imessage.test.ts, src/auto-reply/reply/waiting-status.delivery.test.ts.
  • u0132: src/channels/plugins/binding-routing.test.ts, src/channels/plugins/message-action-dispatch.write-authority.test.ts, src/channels/plugins/message-actions.test.ts.
  • u0127: src/auto-reply/reply/get-reply-run-admission.session-file.test.ts, src/auto-reply/reply/mcp-channel-actions.test.ts.
  • u0134: src/claws/migrate.test.ts, src/claws/reader.test.ts, src/claws/tool-policy-runtime.integration.test.ts, src/claws/update-apply.adopted.test.ts, src/claws/update-capability-changes.test.ts.
  • u0135: src/cli/channel-auth.test.ts, src/cli/cli-utils.test.ts, src/cli/config-cli-path.test.ts, src/cli/config-cli-runner.supplied-intent.test.ts.
  • u0136: src/cli/config-read-failure.test.ts, src/cli/cron-cli/cron-pagination.gateway.test.ts, src/cli/daemon-cli/diagnostic-readiness.test.ts, src/cli/daemon-cli/install.definition-repair.test.ts, src/cli/daemon-cli/lifecycle-core.output.test.ts, src/cli/daemon-cli/lifecycle-fallback.test.ts, src/cli/daemon-cli/lifecycle-readiness.test.ts.

Fresh landing-head validation

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write <46 changed test files> and git diff --check: passed with no formatting changes.
  • node_modules/.bin/oxlint -c .oxlintrc.json <changed test files>: passed before every replay commit and will run again before push.
  • Blacksmith Testbox CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <all 46 changed test files>: 742 tests / 46 files passed, eight Vitest projects in 114.32s. Source verification checked all 46 file hashes on landing head c5f53afb119a5ec77433a37433465d130d1c4d62. Testbox run, lease tbx_01m40tyzvkgwtwd57we8s5gb1q, stopped after success. The first attempt stopped before tests because an extra guard incorrectly compared Testbox's carrier commit with the source head; the corrected source-hash guard passed.
  • The previously failing source-shard readiness cases now pass with main's corrected assertions retained.
  • OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <46 changed paths>: passed, including all eight selected test type graphs, repository ratchets, plugin boundaries, three dead-export scans, and typed lint (zero warnings/errors). The environment-variable budget is now 475/475. Testbox run, lease tbx_01m40vpyccrynxhxvt4p0vqgmk, automatically stopped after success; command time 10m11.9s. A subsequent portal-sync warning did not affect the successful command result.
  • Independent autoreview runs during hosted CI under the campaign landing workflow. GitHub's required openclaw/ci-gate gates auto-merge.

@clawsweeper

clawsweeper Bot commented Oct 3, 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 cli CLI command changes agents Agent runtime and tooling labels Oct 3, 2026
@steipete
steipete enabled auto-merge (squash) October 3, 2026 12:38
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 8:43 AM ET / 12:43 UTC.

ClawSweeper review

What this changes

This PR removes redundant tests and consolidates fixtures and cases across agent sessions, audit, reply delivery, channels, Claw packages, and CLI commands.

Merge readiness

✅ Ready for maintainer review

Keep open as useful, maintainer-owned test cleanup that is not already on main. No concrete blocking defect was found in the consolidations or verified merge result.

Priority: P3
Reviewed head: c5f53afb119a5ec77433a37433465d130d1c4d62

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, scoped test cleanup with retained meaningful assertions and no concrete blocking defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: The verified repository admin's test-only cleanup changes no production entrypoint; contributor runtime proof is exempt, and no stored-data contract changes. Reported Testbox validation is supplemental and its command logs were unavailable to this reviewer.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The verified repository admin's test-only cleanup changes no production entrypoint; contributor runtime proof is exempt, and no stored-data contract changes. Reported Testbox validation is supplemental and its command logs were unavailable to this reviewer.
Evidence reviewed 8 items Introduced scope: The pinned merge-base-to-head delta contains only test files; production code, dependencies, workflows, and shared test support are unchanged.
Verified merge preserves current main: Raw test-merge parents are the pinned main followed by the exact PR head. Its delta against main remains test-only, and the readiness consolidation retains the current health-failure and slow-start expectations.
Removed cancellation probe has stronger remaining coverage: The remaining pending/rejected successor-release cases abort the wait, assert settlement is false, keep successors fenced, and verify admission resumes after successful release.
Findings None None.
Security None None.

How this fits together

These tests protect the core paths that turn agent requests and CLI commands into session updates, replies, and service operations. The batch changes their validation structure without changing production behavior.

flowchart LR
  A[Agent requests] --> C[Core runtime owners]
  B[CLI commands] --> C
  C --> D[Session and authority checks]
  D --> E[Replies and service operations]
  F[Consolidated test cases] --> C
  E --> G[Behavior assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -2074. Total -2074 across 46 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 46 3724 5798 -2074
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 46 3724 5798 -2074

Review metrics

None.

Technical review

Best possible solution:

Keep distinct regression contracts at their strongest test owner while consolidating repeated setup and redundant probes.

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

Not applicable: this PR addresses test maintenance rather than a reported product defect; no tests were executed during this read-only review.

Is this the best way to solve the issue?

Yes: local fixture reuse and table cases are a suitable approach, and the inspected consolidations retain the important cancellation, authority, recovery, and delivery assertions.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is test-maintenance cleanup with no introduced production behavior or user-facing regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The verified repository admin's test-only cleanup changes no production entrypoint; contributor runtime proof is exempt, and no stored-data contract changes. Reported Testbox validation is supplemental and its command logs were unavailable to this reviewer.

Label justifications:

  • P3: This is test-maintenance cleanup with no introduced production behavior or user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The verified repository admin's test-only cleanup changes no production entrypoint; contributor runtime proof is exempt, and no stored-data contract changes. Reported Testbox validation is supplemental and its command logs were unavailable to this reviewer.

Evidence

What I checked:

  • Introduced scope: The pinned merge-base-to-head delta contains only test files; production code, dependencies, workflows, and shared test support are unchanged. (c5f53afb119a)
  • Verified merge preserves current main: Raw test-merge parents are the pinned main followed by the exact PR head. Its delta against main remains test-only, and the readiness consolidation retains the current health-failure and slow-start expectations. (src/cli/daemon-cli/lifecycle-readiness.test.ts:166, a53157e069e2)
  • Removed cancellation probe has stronger remaining coverage: The remaining pending/rejected successor-release cases abort the wait, assert settlement is false, keep successors fenced, and verify admission resumes after successful release. (src/auto-reply/reply/reply-run-registry.successor-barrier.test.ts:132, c5f53afb119a)
  • Media probe ownership: The inbound adapter still asserts candidate selection and the eight-probe budget; the probe owner's existing test independently verifies eight executions and empty excess results, supporting removal of the adapter's mock-produced duplicate. (src/media/media-probe.test.ts:279, c5f53afb119a)
  • Maintainer authority verified: GitHub's repository permission endpoint confirms steipete has admin access, resolving the conflicting association values in the supplied context.
  • Reported validation and inspection limit: The captured PR body reports 742 passing tests in 114.32 seconds and successful changed-file gates with source hashes checked against the pinned head. The linked Testbox workflows are completed/cancelled, consistent with the stated lease shutdown; command logs could not be inspected because their download host was blocked. These results remain author-reported validation, not independently verified command success. (c5f53afb119a)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit d002c67 into main Oct 3, 2026
123 of 124 checks passed
@steipete
steipete deleted the tcr/land-d173-1791029493 branch October 3, 2026 12:47
vincentkoc added a commit that referenced this pull request Oct 3, 2026
* origin/main:
  fix(test): restore fixture state and await async completion (#164222)
  refactor(sessions): stage and settle pending inputs in workers (#164284)
  fix: speech-only replies fail when models include reasoning (#164285)
  fix(nextcloud-talk): avoid webhook migration for unconfigured channels
  fix: guide background skill reviews through Workshop proposals (#164292)
  test(build): reject AI dependencies in retained config repairs
  refactor(channels): require canonical private-network settings (#163535)
  fix(memory): migrate embedding cache in bounded batches and record oversized rows (#164303)
  feat(state): incognito actor memory and Codex history routing (P5c, inactive) (#164224)
  refactor(synology-chat): remove unused route account ID (#164280)
  test(ui): await web push preference publications (#164295)
  perf(scripts): avoid compiler projects for runtime import parsing (#164243)
  fix(worktrees): create workspaces from nested Windows repositories (#164249)
  test(agents,channels,cli): remove low-value tests (batch d173) (#164302)
  perf(workboard): serve cards per board revision and push changes instead of polling (#164301)
  refactor(sqlite): deslop sqlite stores (#164271)
  chore(ui): refresh control ui locales (#164299)
  refactor(events): deslop listener and disposal plumbing (#164221)
  fix: canonicalize fresh worker reasoning signatures (#164287)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
…law#164302)

* test(agents): deslop u0121 tests

* test(agents,audit): deslop u0124 tests

* test(channels): deslop u0130 tests

* test(auto-reply): deslop u0128 tests

* test(auto-reply): deslop u0129 tests

* test(channels): deslop u0132 tests

* test(auto-reply): deslop u0127 tests

* test(claws): deslop u0134 tests

* test(cli): deslop u0135 tests

* test(cli): deslop u0136 tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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