Skip to content

test(protocol,workboard,channels,memory,ai): remove low-value tests (batch d066) - #159648

Merged
steipete merged 11 commits into
mainfrom
tcr/land-d066-1790508650
Sep 27, 2026
Merged

steipete merged 11 commits into
mainfrom
tcr/land-d066-1790508650

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The test suite repeats equivalent cases and fixture setup across protocol, AI, channel, memory, and Workboard tests, adding maintenance cost without distinct behavioral proof.

User Impact

No user-visible behavior changes. Batch d066 changes 22 test files: +788/-1,277 test LOC (net -489), with 0 production or test-support-file LOC changed. Existing boundary, lifecycle, cancellation, migration, and security regressions remain covered.

Why This Change Was Made

Replay ten previously validated test-audit shards onto current main. Consolidate fixtures and cleanup, remove redundant table rows and weaker duplicate assertions, and retain the stronger owner-boundary cases. All ten commits applied in their original order with their original messages. Replay was conflict-free and no source commit was skipped. Landing review restored three memory cases: two legacy embedding-cache migration safety rows and the modern-schema/no-content-revision corpus combination. CI also exposed an unchanged WebSocket test peer without maxPayload; the fixture now uses the Signal client’s existing 1 MiB limit. No baselines, production seams, runtime behavior, dependencies, or generated files changed.

Base: 624b66f24f3774f28d775f87c3e3a604ede2413e. No changed path matches the current CODEOWNERS rules.

Evidence

Fresh replay validation passed on head aa491b93c9c299ca86904bf1dead9b8babc3c3d3:

  • Local pnpm install --frozen-lockfile --prefer-offline, oxfmt --write <22 changed files>, plain oxlint -c .oxlintrc.json <22 changed files> (exit 0), and git diff --check: passed.
  • Blacksmith Testbox: CI=1 pnpm install --frozen-lockfile --prefer-offline >/dev/null && CI=1 pnpm test <all 22 changed files>: all 8 selected Vitest shards passed in 100.99s; 3 existing macOS-only Signal ACL cases skipped on Linux. Exact source/tree verified by Crabbox. Lease tbx_01m3ha9g6vhw7tpf3x15y9evad, run, stopped/completed.
  • OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <all 22 changed paths>: passed, including all 25 core test typecheck partitions, extension test typechecking, type-aware lint, and repository guards. Remote command exit 0 in 24m19.964s. Lease tbx_01m3hccvafz4eyxy6fcxa67d2j, run, stopped/completed.

Corrected head df7cf4208f788f57bf68c9a0ef5c7d9c28ebcb38 was revalidated on Blacksmith Testbox: all 22 touched files passed (279 tests passed, 3 existing platform skips; 8 shards in 100.47s), and checksum-verified OpenGrep 1.30.0 ran the repository precise rulepack over all 22 files with 0 findings. OpenGrep reported partial analysis of two files; that scanner limitation is not represented as complete analysis. The previously failing WebSocket fixture now has an explicit payload bound. Lease tbx_01m3hgtc9p8qcgxh08xdr4qvr2, run, stopped/completed, command exit 0. Final autoreview of the exact staged candidate was scoped-clean through P2, with no accepted/actionable findings.

The wrapper reported a non-fatal external runner portal sync timeout after successful proof; it did not prevent any validation from running. Testbox lifecycle cleanup can leave the linked Actions run marked cancelled; the delegated command summaries both report exit 0.

Independent autoreview identified two accepted coverage concerns, now repaired by restoring the legacy cache migration rows and the mixed corpus configuration. Two findings were rejected against retained proof: exact generic RPC error-redaction assertions remain in client-unix.test.ts, and a real-TCP pending-handshake abort/reconnect test remains in client-container.handshake.loopback.test.ts.

Initial hosted CI found the pre-existing unbounded WebSocket test peer; this candidate adds the 1 MiB fixture limit described above. Separately, checks-ui (1/3) failed the palette fixture readiness wait in ui/src/pages/new-session/palette-session-draft.test.ts after 1,041 ms, with 8,049 tests passing. Neither changed Workboard UI test executes in that shard; the palette test, its owners, and runner configuration are unchanged. No relevant main fix or plain-main reproduction was found, and no repair of that readiness failure is claimed. The corrected head receives fresh hosted CI; the old run was not rerun.

GitHub's required openclaw/ci-gate gates the pinned-head squash merge.

Per-shard reductions and original in-shard coverage evidence

The reduction table reflects the final landing candidate, including three restored cases in s575. Coverage totals below come from each shard's original before/after report before those restorations, not a new aggregate coverage run. Owners overlap, so coverage totals must not be summed. All shard statement/branch losses are within the 1% limit. Declaration counts refer to syntactic it/test sites in changed files; executed case counts include table expansion and each shard's full test scope.

Shard Files touched Test LOC delta Declarations Executed cases
s572 packages/gateway-protocol/src/schema/runtime-vitals.test.ts -1 2 → 2 15 → 14
s556 extensions/workboard/browser/components/toast.test.ts -15 2 → 2 6 → 4
s565 packages/ai/src/anthropic-opus-55-transport-parity.test.ts -7 3 → 3 19 → 18
s562 extensions/zalouser/src/send.handoff.test.ts -68 17 → 13 39 → 29
s537 extensions/signal/src/{account-selection,client-container.handshake.loopback,client-container.websocket,client-unix,reply-authors,socket-path}.test.ts -134 59 → 57 84 → 72
s558 extensions/workboard/browser/pages/workboard/workboard-page-automation.test.ts -44 3 → 3 8 → 7
s575 packages/memory-host-sdk/src/host/{memory-schema-provenance,memory-schema-storage-migration,search-deadline-control,session-transcript-corpus}.test.ts -64 23 → 22 45 → 43
s571 packages/gateway-protocol/src/{sessions-search,theme}.test.ts -42 17 → 17 144 → 118
s561 extensions/zalo/src/channel.send-handoff.test.ts -44 1 → 1 4 → 2
s559 extensions/workboard/src/{lifecycle-sync.service,sqlite-store.lifecycle,store-subscription-scope,store.scoped-list}.test.ts -70 26 → 26 35 → 30
Total 22 test files -489 153 → 146 399 → 337
s572: covered statements 14 -> 14 (0); branches 0 -> 0 (0); functions 1 -> 1 (0)
s556: covered statements 124 -> 124 (0); branches 67 -> 67 (0); functions 23 -> 23 (0)
s565: covered statements 1228 -> 1227 (-1); branches 848 -> 840 (-8); functions 179 -> 179 (0)
s562: covered statements 726 -> 726 (0); branches 349 -> 349 (0); functions 128 -> 128 (0)
s537: covered statements 962 -> 962 (0); branches 642 -> 642 (0); functions 152 -> 152 (0)
s558: covered statements 1536 -> 1536 (0); branches 1339 -> 1339 (0); functions 372 -> 372 (0)
s575: covered statements 649 -> 649 (0); branches 392 -> 392 (0); functions 149 -> 149 (0)
s571: covered statements 2605 -> 2605 (0); branches 159 -> 159 (0); functions 60 -> 60 (0)
s561: covered statements 123 -> 123 (0); branches 59 -> 59 (0); functions 20 -> 20 (0)
s559: covered statements 1427 -> 1426 (-1); branches 1096 -> 1092 (-4); functions 448 -> 448 (0)

The two nonzero losses are s565 (statements 0.08%, branches 0.94%) and s559 (statements 0.07%, branches 0.36%). The shard reports retain three pre-existing macOS-only Signal ACL skips on Linux. No coverage groups were excluded.

@clawsweeper

clawsweeper Bot commented Sep 27, 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 channel: signal Channel integration: signal channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser app: web-ui App: web-ui gateway Gateway runtime plugin: workboard size: XL labels Sep 27, 2026
@steipete
steipete enabled auto-merge (squash) September 27, 2026 12:38
@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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 27, 2026, 9:41 AM ET / 13:41 UTC (Revision 3).

ClawSweeper review

What this changes

The branch consolidates and removes tests across Gateway protocol, AI transport, Signal and Zalo channels, Workboard, and memory storage without changing production code.

Merge readiness

✅ Ready for maintainer review

The corrected head resolves the prior migration-coverage finding, and the inspected retained tests support the cleanup. Current main and the latest release still contain the cases this PR proposes to consolidate, so the work remains useful.

Priority: P3
Reviewed head: df7cf4208f788f57bf68c9a0ef5c7d9c28ebcb38

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The corrected patch retains the previously flagged safety cases and has useful focused validation for a test-only cleanup.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored cleanup changes test suites rather than a production entrypoint. The PR reports an exact-head focused Testbox run; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored cleanup changes test suites rather than a production entrypoint. The PR reports an exact-head focused Testbox run; no stored-data contract changes.
Evidence reviewed 8 items Prior finding resolved: The corrected head retains refusal cases for an unknown embedding-cache index and a populated extra cache column, with assertions that a refused migration leaves the database unchanged. The structured prior review identified these two missing cases.
Current-main comparison: Current main still has the original Workboard scheduled-versus-reading test table; the proposed consolidation has not landed there.
Latest-release comparison: The latest release tag also retains the original Workboard lifecycle cases, so the PR is not already shipped.
Findings None None.
Security None None.

How this fits together

OpenClaw’s test suites take production code and fixtures as inputs and check protocol, channel, Workboard, and memory behavior. CI uses their results to detect regressions before a change lands.

flowchart LR
A[Code and fixtures] --> B[Test suites]
B --> C[Protocol and AI checks]
B --> D[Channel checks]
B --> E[Workboard checks]
B --> F[Memory checks]
C --> G[CI result]
D --> G
E --> G
F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -489. Total -489 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 22 788 1277 -489
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 788 1277 -489

Review metrics

None.

Technical review

Best possible solution:

Keep one strong test for each distinct owner-boundary behavior, including the restored migration refusal cases and cancellation checks.

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

Not applicable: this PR audits test coverage rather than reporting a runtime bug. The introduced diff and retained cases can be inspected directly.

Is this the best way to solve the issue?

Yes: the inspected reductions consolidate shared fixtures and overlapping cases while retaining the reviewed migration, channel, and theme boundaries.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e8b091921ef0.

Labels

Label changes:

  • 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: This member-authored cleanup changes test suites rather than a production entrypoint. The PR reports an exact-head focused Testbox run; no stored-data contract changes.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is test-maintenance cleanup with no production or user-visible behavior change.
  • 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: This member-authored cleanup changes test suites rather than a production entrypoint. The PR reports an exact-head focused Testbox run; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit d0a658d adds extensions/signal/src/client-container.websocket.test.ts:144 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d0a658d9dcec; files: extensions/signal/src/client-container.websocket.test.ts)
  • Shakker: 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-27T12:42:51.669Z sha aa491b9 :: blocked before merge. :: [P2] Keep the legacy-cache migration refusal cases
  • reviewed 2026-09-27T12:49:38.454Z sha aa491b9 :: needs changes before merge. :: [P2] Restore the legacy-cache migration refusal cases

@steipete
steipete disabled auto-merge September 27, 2026 12:44
@steipete
steipete enabled auto-merge (squash) September 27, 2026 13:36
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 27, 2026
@steipete
steipete merged commit b1935b0 into main Sep 27, 2026
116 checks passed
@steipete
steipete deleted the tcr/land-d066-1790508650 branch September 27, 2026 13:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
…batch d066) (openclaw#159648)

* test(protocol): deslop s572 tests

* test(workboard): deslop s556 tests

* test(ai): deslop s565 tests

* test(zalouser): deslop s562 tests

* test(signal): deslop s537 tests

* test(workboard): deslop s558 tests

* test(memory): deslop s575 tests

* test(protocol): deslop s571 tests

* test(zalo): deslop s561 tests

* test(workboard): deslop s559 tests

* test: preserve migration coverage and bound Signal fixture
steipete added a commit that referenced this pull request Sep 28, 2026
Full Release Validation for 2026.9.7 (parent 36466521174) failed two
release-tooling checks that main never exercises:

- The installed-package verifier applied the 6 MiB root-dist cap to
  dist/package-update-activation-recovery.mjs, the ~66 MB sealed
  self-contained recovery helper added by #158491. Treat it like the other
  self-contained bundles (80 MiB cap, no reparse), as #155877 did for the
  sqlite-store worker. Every main-based FRV since #158491 failed here.
- plugin-npm-security-scan had no reviewed inventory for release/2026.9.7.
  Freeze the 9.6 counts, record four post-9.6 test-file-only findings
  (codex auth-refresh harness spawn, feishu proxy env test, imessage
  client test #156334, signal socket probe count after #159648) in the
  current inventory, and map release/2026.9.7 to it, as #153372 did for 9.6.
steipete added a commit that referenced this pull request Sep 28, 2026
#160717)

fix(release): admit 2026.9.7 recovery helper and plugin scan inventory

Full Release Validation for 2026.9.7 (parent 36466521174) failed two
release-tooling checks that main never exercises:

- The installed-package verifier applied the 6 MiB root-dist cap to
  dist/package-update-activation-recovery.mjs, the ~66 MB sealed
  self-contained recovery helper added by #158491. Treat it like the other
  self-contained bundles (80 MiB cap, no reparse), as #155877 did for the
  sqlite-store worker. Every main-based FRV since #158491 failed here.
- plugin-npm-security-scan had no reviewed inventory for release/2026.9.7.
  Freeze the 9.6 counts, record four post-9.6 test-file-only findings
  (codex auth-refresh harness spawn, feishu proxy env test, imessage
  client test #156334, signal socket probe count after #159648) in the
  current inventory, and map release/2026.9.7 to it, as #153372 did for 9.6.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
openclaw#160717)

fix(release): admit 2026.9.7 recovery helper and plugin scan inventory

Full Release Validation for 2026.9.7 (parent 36466521174) failed two
release-tooling checks that main never exercises:

- The installed-package verifier applied the 6 MiB root-dist cap to
  dist/package-update-activation-recovery.mjs, the ~66 MB sealed
  self-contained recovery helper added by openclaw#158491. Treat it like the other
  self-contained bundles (80 MiB cap, no reparse), as openclaw#155877 did for the
  sqlite-store worker. Every main-based FRV since openclaw#158491 failed here.
- plugin-npm-security-scan had no reviewed inventory for release/2026.9.7.
  Freeze the 9.6 counts, record four post-9.6 test-file-only findings
  (codex auth-refresh harness spawn, feishu proxy env test, imessage
  client test openclaw#156334, signal socket probe count after openclaw#159648) in the
  current inventory, and map release/2026.9.7 to it, as openclaw#153372 did for 9.6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: signal Channel integration: signal channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: workboard 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