Skip to content

test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) - #159607

Merged
steipete merged 11 commits into
mainfrom
tcr/land-d064-1790503244
Sep 27, 2026
Merged

steipete merged 11 commits into
mainfrom
tcr/land-d064-1790503244

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Duplicate test cases, repeated fixture setup, and unused fixture branches add maintenance and CI work across OpenShell, QA Lab, Slack, Team reports, and Reef.

User Impact

No user-visible behavior changes. This batch changes 27 test files only; production and separate test-support LOC are unchanged.

Why This Change Was Made

Remove redundant matrix rows and owner-boundary replays, consolidate repeated local fixtures, and remove unused fixture responses. Retain the distinct filesystem safety, provider correlation, cancellation, evidence integrity, privacy, live authority, and persisted recovery contracts.

Replayed all ten campaign commits in order, then restored the distinct missing-failure-output case after review, onto main at f27997f86c95d9acfc3ba17c2d46b6b24e50248c. No commits skipped, no manual conflicts, and no hunks dropped. Current-main behavior is retained. No baseline edits and no CODEOWNERS-matched paths are touched.

Evidence

  • Local frozen-lockfile install, targeted oxfmt --write, git diff --check, and plain oxlint -c .oxlintrc.json passed.
  • Full changed-file gate: OPENCLAW_TESTBOX=1 CRABBOX_PROVIDER=blacksmith-testbox node scripts/check-changed.mjs -- <all 27 changed paths> passed on Blacksmith Testbox tbx_01m3h6sx7gq4gjtp2h6hkj31xh (run); remote command 8m28s, lease stopped.
  • Final focused proof: CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <all 27 changed files> passed across six Vitest shards in 99.58s on tbx_01m3h7f33fpvzrdgayjwa665pt (run). This includes the restored missing-failure-output row.
  • Final follow-up gate: CI=1 OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 node scripts/check-changed.mjs -- extensions/qa-lab/src/runtime-tool-fixture.known-gap.test.ts passed on the same final lease. Combined focused tests plus follow-up gate completed with exit 0 in 7m48s; lease stopped.
  • The initial focused attempt on tbx_01m3h555br601e2pegms4mj1gm stopped before candidate execution: source verification's shallow base fetch returned Git exit 128 after 10m37s. That lease was stopped; the fresh final run above completed the previously blocked proof.
  • Independent review: accepted one coverage concern and restored its test row; the follow-up review is scoped-clean at P2. Rejected portions and remaining owner-boundary coverage are explained below.

Review retained one additional s523 case (four lines) for the missing failure receipt, so the final reduction is 65 executed cases across the original shard scopes and 1,133 test lines. The table below preserves the original measured campaign numbers.

The original in-shard coverage gates passed with covered statement and branch losses below 1% per shard. These are the original campaign measurements, not a fresh coverage run of the combined rebased batch. Syntactic declarations count each parameterized it/test call once; executed cases include expanded tables and unchanged files owned by each shard.

Shard Test LOC delta Declaration count Original executed cases
s517 -195 29 → 23 (-6) 45 → 36 (-9)
s521 -102 13 → 11 (-2) 37 → 29 (-8)
s527 -14 8 → 8 (0) 9 → 9 (0)
s522 -270 34 → 29 (-5) 71 → 52 (-19)
s523 -46 10 → 8 (-2) 50 → 44 (-6)
s528 -59 11 → 8 (-3) 22 → 15 (-7)
s530 -35 4 → 4 (0) 29 → 27 (-2)
s538 -176 22 → 16 (-6) 35 → 26 (-9)
s541 -38 8 → 7 (-1) 14 → 12 (-2)
s535 -202 15 → 14 (-1) 71 → 67 (-4)
Total -1,137 154 → 128 (-26) 383 → 317 (-66)

Final replay diff: tests +1,145/-2,278 (net -1,133); production +0/-0; separate test support +0/-0.

Shard files and original coverage totals

Paths below are relative to each named directory.

s517 — extensions/openshell/src/: openshell-mirror-fs-bridge.test.ts

covered statements 177 -> 177 (0); branches 126 -> 126 (0); functions 43 -> 43 (0)

s521 — extensions/qa-lab/src/: code-mode-model-matrix.admission.test.ts, code-mode-model-matrix.runtime-identity.test.ts, crabline-transport-lifecycle.test.ts, crabline-transport-provider-identity.test.ts

covered statements 808 -> 807 (-1); branches 494 -> 493 (-1); functions 156 -> 156 (0)

The final-only preview rejection remains covered in qa-transport.test.ts.

s527 — extensions/qa-lab/src/live-transports/discord/: channel-e2e.test.ts

covered statements 319 -> 319 (0); branches 245 -> 245 (0); functions 50 -> 50 (0)

s522 — extensions/qa-lab/src/: crabline-transport-response.test.ts, crabline-transport-thread-routing.test.ts, evidence-containment.test.ts, evidence-invocation.test.ts, fixture-utils.fetch.test.ts

statements 2092 → 2083 (-9); branches 1141 → 1134 (-7); functions 437 → 437 (0)

Statement and branch losses were 0.43% and 0.61%. The sibling Matrix config/target test covers the eight-statement provider-target drop; one statement was in qa-transport.ts.

s523 — extensions/qa-lab/src/: gateway-child-env.test.ts, runtime-tool-fixture.known-gap.test.ts, runtime-tool-fixture.nested.test.ts, scenario-catalog.delegation.test.ts

covered statements 949 -> 946 (-3); branches 757 -> 750 (-7); functions 209 -> 209 (0)

s528 — extensions/qa-lab/src/live-transports/matrix/scenarios/: scenario-runtime-e2ee-cli-shared.test.ts, scenario-runtime-tool-progress.test.ts

covered statements 312 -> 312 (0); branches 197 -> 197 (0); functions 69 -> 69 (0)

s530 — extensions/qa-lab/src/live-transports/whatsapp/: participant-identity-flow.test.ts, scenario-environment.test.ts

covered statements 1020 -> 1016 (-4); branches 583 -> 583 (0); functions 184 -> 182 (-2)

s538 — extensions/slack/src/: errors.causes.test.ts, monitor.history-policy.test.ts, progress-blocks.command-output.test.ts, send.direct-authority.test.ts

covered statements 3744 -> 3742 (-2); branches 2613 -> 2609 (-4); functions 671 -> 671 (0)

Circular-object serialization remains covered by errors.test.ts. Retained direct-delivery boundary proof still asserts revocation after the first chunk and one HTTP write.

s541 — extensions/team-reports/src/: work-sessions.test.ts

covered statements 282 -> 282 (0); branches 117 -> 116 (-1); functions 62 -> 62 (0)

The ambiguity branch remains covered by http.test.ts; Gateway tests retain real ownership/visibility proof.

s535 — extensions/reef/: protocol/encoding.test.ts, src/inbox-cursor.test.ts, src/transport-capacity-recovery.test.ts

covered statements 773 -> 773 (0); branches 482 -> 481 (-1); functions 153 -> 153 (0)

Only a test-helper default-capacity branch lost coverage; production coverage was unchanged. Actual post-ingress restart recovery and persisted-marker suppression remain.

Review decisions

The independent review raised three P2 coverage concerns. Accepted the missing-failure-output portion and restored its original row in runtime-tool-fixture.known-gap.test.ts, protecting the separate failure-receipt guard and known-gap skip classification.

Rejected the Telegram concern: the retained does not deliver a rejected %s final and preserves accepted recovery table still exercises real HTTP 400 responses for both send and edit, asserts that rejected text is absent, and checks the exact accepted recovery sequence.

Rejected the delegation concern: retained sender/provider cases keep the coding grant intact while asserting non-owner denial. Global deny precedence remains covered by assembled-tool tests in src/agents/agent-tools-agent-config.test.ts and explicit openclaw deny cases in src/agents/tool-catalog.test.ts; the QA path uses that shared policy pipeline.

The other runtime-tool portions remain covered: missing call and missing happy output share the same guard and failure classifier, while runtime-tool-fixture.test.ts retains direct failed-happy-result rejection. No production behavior changed. The isolated review of the four-line restoration finished scoped-clean at P2 with no accepted/actionable findings.

@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.

@steipete
steipete enabled auto-merge (squash) September 27, 2026 11:13
@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 Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 7:17 AM ET / 11:17 UTC.

ClawSweeper review

What this changes

The branch consolidates fixtures and removes redundant test cases across QA Lab, OpenShell, Slack, Reef, and Team reports without changing production code.

Merge readiness

⛔ Blocked before merge - 1 item remains

Current main still contains the test cases this PR prunes, so the cleanup remains distinct work. The retained boundary tests cover the principal safety and recovery cases I checked, and I found no concrete blocking defect.

Priority: P3
Reviewed head: 0286dda276fb024fcbbe6f3b4267c44d99501939

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The cleanup has a clear scope and retained boundary coverage, with focused validation reported in the PR body.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This test-only cleanup changes no production behavior or stored-data contract. The PR body reports focused test execution; this read-only review inspected source and did not run the branch.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This test-only cleanup changes no production behavior or stored-data contract. The PR body reports focused test execution; this read-only review inspected source and did not run the branch.
Evidence reviewed 9 items Introduced test-only change: The pinned merge-base-to-head diff changes 27 test files and no production files.
Still distinct from main: The verified test-merge result differs from its exact main parent in the 27 introduced test paths; the cleanup is not already on that main revision.
Retained Slack authority proof: The retained test sends split text through the core outbound path and loopback HTTP transport, then checks that revoked authority yields a partial failure after one provider write.
Findings None None.
Security None None.

How this fits together

These tests feed fixture scenarios into bundled plugin and QA Lab behavior, then assert the results used by CI. They cover filesystem operations, channel delivery, evidence handling, and report session visibility.

flowchart LR
  A[Scenario fixtures] --> B[Plugin and QA tests]
  B --> C[Runtime boundaries]
  C --> D[Behavior assertions]
  D --> E[CI results]
Loading

Before merge

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

Security

None.

PR surface

Tests -1133. Total -1133 across 27 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 27 1138 2271 -1133
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 27 1138 2271 -1133

Review metrics

Metric Value Why it matters
Executed test cases 65 fewer, per the final PR-body count This quantifies the intended CI reduction; the body distinguishes its original shard coverage measurements from the combined branch.

Technical review

Best possible solution:

Keep the smaller test suite while preserving one strong boundary test for each distinct safety, recovery, privacy, and evidence contract.

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

Not applicable: this PR addresses duplicate test maintenance rather than a reported product failure.

Is this the best way to solve the issue?

Yes, the branch removes repeated cases and fixtures while retaining the principal boundary assertions checked in source. I found no narrower repair needed before ordinary review.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: The branch reduces test maintenance and CI work without changing user-facing production behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 test-only cleanup changes no production behavior or stored-data contract. The PR body reports focused test execution; this read-only review inspected source and did not run the branch.

Label justifications:

  • P3: The branch reduces test maintenance and CI work without changing user-facing production behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 test-only cleanup changes no production behavior or stored-data contract. The PR body reports focused test execution; this read-only review inspected source and did not run the branch.

Evidence

What I checked:

Likely related people:

  • Shakker: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Agustin Rivera: 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)
  • RoboClaw: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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 e834097 into main Sep 27, 2026
110 of 114 checks passed
@steipete
steipete deleted the tcr/land-d064-1790503244 branch September 27, 2026 11:22
vincentkoc added a commit that referenced this pull request Sep 27, 2026
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits)
  perf(agents): serialize large model requests once (#159574)
  refactor(cli): share capability agent-selection test cases (#159616)
  fix(workers): restore installation type checks (#159629)
  test(channels,qa,providers): remove low-value tests (batch d065) (#159627)
  test(doctor): run isolated migration cases concurrently (#159609)
  feat(apple): show agent identities in native chat (#159528)
  chore(i18n): refresh native locales (#159635)
  fix(gateway): keep node provisioning's installation contract after overlapped preparation
  fix(models): keep shared catalog requests alive for remaining callers (#157191)
  feat: let agents query online people and device activity (#159117)
  perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520)
  refactor(android): deslop Android app third pass (#159589)
  test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607)
  fix: align process liveness checks (#151107) thanks @ekinnee
  fix: sessions model default does not clear the override (#159587)
  fix(ios): preserve typing during reentrant SwiftUI updates
  fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594)
  perf(gateway): avoid duplicate recipient row lookup (#159595)
  refactor(gateway): deslop gateway fourth pass (#158786)
  test(agents): split subagent task-settlement test support under the line cap (#159584)
  ...
vincentkoc added a commit that referenced this pull request Sep 27, 2026
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits)
  perf(agents): serialize large model requests once (#159574)
  refactor(cli): share capability agent-selection test cases (#159616)
  fix(workers): restore installation type checks (#159629)
  test(channels,qa,providers): remove low-value tests (batch d065) (#159627)
  test(doctor): run isolated migration cases concurrently (#159609)
  feat(apple): show agent identities in native chat (#159528)
  chore(i18n): refresh native locales (#159635)
  fix(gateway): keep node provisioning's installation contract after overlapped preparation
  fix(models): keep shared catalog requests alive for remaining callers (#157191)
  feat: let agents query online people and device activity (#159117)
  perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520)
  refactor(android): deslop Android app third pass (#159589)
  test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607)
  fix: align process liveness checks (#151107) thanks @ekinnee
  fix: sessions model default does not clear the override (#159587)
  fix(ios): preserve typing during reentrant SwiftUI updates
  fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594)
  perf(gateway): avoid duplicate recipient row lookup (#159595)
  refactor(gateway): deslop gateway fourth pass (#158786)
  test(agents): split subagent task-settlement test support under the line cap (#159584)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
…s (batch d064) (openclaw#159607)

* test(openshell): deslop s517 tests

* test(qa-lab): deslop s521 tests

* test(qa-lab): deslop s527 tests

* test(qa-lab): deslop s522 tests

* test(qa-lab): deslop s523 tests

* test(qa-lab): deslop s528 tests

* test(qa): deslop s530 tests

* test(slack): deslop s538 tests

* test(team-reports): deslop s541 tests

* test(reef): deslop s535 tests

* test(qa-lab): retain missing failure receipt coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: reef Channel integration: reef channel: slack Channel integration: slack extensions: openshell extensions: qa-lab P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: team-reports 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