Skip to content

test(agents,ui,tooling): remove low-value tests (batch d090) - #160776

Merged
steipete merged 12 commits into
mainfrom
tcr/land-d090-1790624002
Sep 29, 2026
Merged

steipete merged 12 commits into
mainfrom
tcr/land-d090-1790624002

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated test variants, source inventories, and overlapping helper probes add maintenance and CI work without independently protecting behavior.

User Impact

No user-visible behavior or runtime production code changes. This maintainer-requested batch consolidates existing behavior coverage across chat, QA tooling, agent recovery, code mode, status, cron, Docker scripts, and Discord.

Why This Change Was Made

Replay ten coverage-gated campaign shards onto current main while retaining stronger owner-boundary tests. Remove twelve obsolete test files and their stale inventory references; keep authority, cancellation, delivery, redaction, and regression coverage at the remaining owners.

All ten supplied commits were applied in order; none were skipped. One additional commit retains distinct behavior contracts identified during review and corrects a narrowed health fixture type. The initial replay conflict was in src/commands/status.command-sections.test.ts: the consolidation was retained, and main's new missing-Node-executable warning regression was preserved unchanged. No hunk was dropped during conflict resolution and no newer main behavior was removed. Review-driven retained cases are documented below. The inventory change merged automatically with current main. A follow-up rebase onto f9358275abe0c8d76367f14c7b98b4bf6786bee6 resolved one QA fixture conflict by preserving main's two structured Messaging guidance strings inside the consolidated tests. Range-diff confirms the other ten commits are patch-identical.

Current-base LOC: runtime production +0/-0; tests and test support +4,581/-20,964 (net -16,383); test tooling and inventories +3/-9 (net -6) across 69 files. Final per-shard metrics below include the review restorations; literal declarations fall from 1,070 to 586. No changed path matches the current CODEOWNERS rules.

Evidence

Hosted CI exposed two additional owner updates, now repaired: the native-compiler test's existing Node-only runtime designation and inventory entry follow its consolidation into code-mode.auto-results.test.ts, and the Discord abort fixture retains Error-typed rejection reasons. The routing regression fixture moved with its real owner; no assertions or runtime requirements were removed.

  • Frozen dependency installation, targeted oxfmt, git diff --check, and plain oxlint -c .oxlintrc.json on all 55 surviving changed TS/JS files passed.
  • Before the mechanical rebase, CI=1 pnpm test <49 selected targets> passed all 14 selected Vitest shards in 424.07 seconds, including every surviving changed test, both owners of modified test-support modules, and six inventory/routing checks. Blacksmith focused proof, lease tbx_01m3mw4y1a2kefp3nyaczwkcjt; stopped. The payload verified hashes for all 55 surviving changed files and absence of all 12 deleted files.
  • Before the mechanical rebase, OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <67 changed paths> passed formatting, boundary/ratchet guards, core types, all 26 core/UI test type shards, extension-test types, script types, all four root-test type shards, coercion/deprecated-API checks, and dead-export scans. It then stopped at the inherited core-lint failure below; later lint/guard lanes did not execute locally. Changed-check proof, lease tbx_01m3mysys5qadn6y7e7ymtvx2x; completed and stopped.
  • The exact failing command, CI=1 node --import ./scripts/tsx.mjs scripts/run-oxlint-shards.mts --only=core, reproduced the same eslint(max-lines) error on a clean detached main checkout at 32632247faa84ee3620e93b0d880a369d1c0afee: src/commands/doctor/shared/missing-configured-plugin-install.repair.ts has 746 lines / 700 allowed. The file and lint configuration are unchanged between the landing base and that main snapshot, and neither is touched by this PR. Clean-main reproduction, lease tbx_01m3n207h96dy0bb8bn4jgv9ac; stopped after the reproduction.
  • That clean-main run also reported existing line-limit errors in src/gateway/worker-environments/node-launch-adapter.test.ts, src/gateway/talk/relay/session-create.ts, and src/config/config-env-vars.ts; all are outside this PR. These are recorded as main failures, not passing checks. The required hosted CI gate remains the merge gate.
  • Full-batch autoreview completed in three passes. Ten accepted findings were repaired; the correction commit then received a clean P0–P2 review. The rejected finding and its source evidence are below.

Initial validation setup needed a corrected carrier-commit preflight and a renewed expired lease; those attempts did not run repository tests. The final focused run succeeded. Original shard coverage figures below were not rerun across current main and are explicitly historical.

Exact focused target selection
extensions/discord/src/send.webhook.chunk-limit.test.ts
extensions/discord/src/send.webhook.proxy.test.ts
extensions/qa-lab/src/providers/mock-openai/server.tool-routing.test.ts
src/agents/code-mode.agent-loop.test.ts
src/agents/code-mode.auto-results.test.ts
src/agents/code-mode.backpressure.test.ts
src/agents/code-mode.bridge.host-denial.test.ts
src/agents/code-mode.bridge.lifecycle.test.ts
src/agents/code-mode.bridge.test.ts
src/agents/code-mode.catalog-lifetime.test.ts
src/agents/code-mode.config.test.ts
src/agents/embedded-agent-runner/run.attempt-normalization.direct.test.ts
src/agents/embedded-agent-runner/run.compaction-runtime.test.ts
src/agents/embedded-agent-runner/run.harness-auth-failover.test.ts
src/agents/embedded-agent-runner/run.incomplete-turn.classification.test.ts
src/agents/embedded-agent-runner/run.overflow-compaction.loop.test.ts
src/agents/embedded-agent-runner/run.overflow-compaction.misc-owners.test.ts
src/agents/embedded-agent-runner/run.overflow-compaction.test.ts
src/agents/embedded-agent-runner/run.overflow-context-recovery.test.ts
src/agents/embedded-agent-runner/run.plugin-runtime-refresh.integration.test.ts
src/agents/embedded-agent-runner/run.prepared-harness-source-delivery.integration.test.ts
src/agents/embedded-agent-runner/run.session-permissions.test.ts
src/agents/embedded-agent-runner/run.session-prompt-state.test.ts
src/agents/embedded-agent-runner/run.terminal-timeout-delivery.integration.test.ts
src/agents/embedded-agent-runner/run.timeout-context-recovery.test.ts
src/agents/tools/cron-tool.flat-params.test.ts
src/agents/tools/cron-tool.management.test.ts
src/agents/tools/cron-tool.output-contract.test.ts
src/agents/tools/cron-tool.pacing.test.ts
src/agents/tools/cron-tool.schema.test.ts
src/agents/tools/cron-tool.test.ts
src/commands/status.agent-local.test.ts
src/commands/status.command-report-data.test.ts
src/commands/status.command-report.test.ts
src/commands/status.command-sections.test.ts
src/commands/status.daemon.test.ts
src/commands/status.format.test.ts
src/commands/status.link-channel.test.ts
src/commands/status.node-mode.test.ts
test/scripts/docker-build-helper.test.ts
ui/src/pages/chat/chat-send.test.ts
src/agents/embedded-agent-runner/run.owner-policy.test.ts
src/agents/embedded-agent-runner/run.shared-integration.test.ts
test/scripts/ci-proof-test-inventory.test.ts
test/scripts/ci-node-test-plan.test.ts
test/scripts/ci-changed-node-test-plan.test.ts
test/vitest-projects-config.test.ts
test/vitest-scoped-config.test.ts
test/scripts/test-projects.test.ts

After rebasing to f9358275abe0c8d76367f14c7b98b4bf6786bee6, all 12 QA routing tests and the complete changed gate for extensions/qa-lab/src/providers/mock-openai/server.tool-routing.test.ts passed on head 6934f12fc99ad262cb2cf2d3dd5a736df869e4c4, including extension-test types and type-aware lint with zero warnings/errors. Rebase proof, lease tbx_01m3n5th3gn743tpfqc6ffz71t; stopped. Range-diff verifies all other commit patches are unchanged; their prior proof is retained. Hosted CI validates the complete rebased head.

The hosted failures on the first rebased head were repaired: the three failed jobs traced to the stale Node-only routing entry/fixture and the abort fixture's type-aware lint error. The routing and inventory tests, Discord suite, actual CI scheduler under bun-compatible policy (11 compiler/result tests), and targeted type-aware lint all passed on Blacksmith repair proof. Lease tbx_01m3n8ymv50e4aq6hthm854jhg is stopped. Independent P0–P2 review of this CI correction is clean.

Review adjustments

Full-batch independent review identified ten actionable issues; the correction commit then received a clean P0–P2 follow-up review. Retain the original UI cases for cancellation during attachment hydration, passive unconfirmed history retirement, timer-driven connected send/history retries, and volatile retry alias routing. Retain initial workspace restrictions and clamped execution permission forwarding, mutation replay protection across host denials, same-route delivery deduplication across plugin refresh, successful replies racing a prompt timeout, and webhook deadlines before response headers. Contextually type the status health fixture to preserve its literal health-state type.

One finding was rejected with current-source evidence: candidate-redactor absence does not select a diagnostics fallback. scripts/upgrade-survivor-diagnostics.mjs unconditionally imports the trusted host src/logging/redact.ts and passes it to publishDiagnostics; candidate code never owns publication. The retained post-core result/exit test publishes without a candidate redactor and asserts secret removal, while the retained hostile-candidate test makes the candidate redactor throw if imported. The removed absent-candidate repetition is therefore redundant.

These adjustments retain more behavior coverage than the original shard patches. Historical shard metrics below remain labeled as original evidence; final replay metrics are separate.

Rebase metrics by shard before the final CI repair

Compared the landing base f9358275abe0c8d76367f14c7b98b4bf6786bee6 against the reviewed replay after rebase round 1 (head 6934f12fc99ad262cb2cf2d3dd5a736df869e4c4), including all applied review restorations. Scope is the union of each original shard commit’s changed paths. Missing current files count as zero lines. These are current-base source metrics, separate from the original in-shard coverage measurements.

Literal declarations count lines beginning with it or test followed by . or (; parameterized executions are not expanded. The declaration column includes test-support files. Source files were checked for changes during the read and remained stable.

Shard Test LOC: base → replay (net) Test-support LOC: base → replay (net) Inventory/tooling LOC: base → replay (net) Literal declarations: base → replay (net)
t0107 9,851 → 5,030 (-4,821) — — 223 → 100 (-123)
t0091 610 → 420 (-190) — — 12 → 10 (-2)
t0114 4,921 → 4,392 (-529) 4,286 → 3,756 (-530) — 171 → 131 (-40)
t0100 4,564 → 3,112 (-1,452) — — 81 → 55 (-26)
t0110 1,562 → 717 (-845) — — 48 → 26 (-22)
t0115 859 → 460 (-399) — — 20 → 8 (-12)
t0117 5,245 → 2,609 (-2,636) — — 205 → 98 (-107)
t0123 9,113 → 5,981 (-3,132) — — 195 → 97 (-98)
t0122 1,128 → 529 (-599) — — 28 → 17 (-11)
t0113 2,869 → 1,618 (-1,251) — 5,730 → 5,724 (-6) 87 → 44 (-43)
Classification Base LOC Replay LOC Net LOC
test 40,722 24,868 -15,854
support 4,286 3,756 -530
inventory/tooling 5,730 5,724 -6
Total 50,738 34,348 -16,390

Runtime production changes: none within these shard paths. Combined literal declarations: 1,070 → 586 (-484).

The replay retains main’s missing-Node-executable status regression and both new Messaging/message-tool guidance prefixes in the consolidated QA fixtures. The metrics include the applied review restorations; their validation and adjudication are reported separately.

The final CI repair adds one test-fixture line and makes zero-net-line runtime-routing/inventory updates outside the original shard file set. Final aggregate reduction is 16,389 lines, with unchanged runtime production code and unchanged declaration totals.

Original shard files and coverage evidence

Original in-shard evidence

The following metrics and coverage totals describe the original independently validated shard patches, before replay onto current main. Stable patch IDs match for all ten supplied commits and the original commits named in the shard reports. Test declaration counts count literal it/test declarations in changed test and support files; parameterized execution counts are separate. Coverage totals below reproduce the original report text verbatim. Metrics are source-based, not a claim that current-main coverage was rerun.

The replay preserves main's newly added missing-Node-executable status regression unchanged. Final replay validation and current-base LOC totals are reported separately.

Shard Executed tests Test LOC Literal test declarations
t0107 294 → 121 (−173) 9,851 → 4,917 (−4,934) 223 → 98 (−125)
t0091 19 → 13 (−6) 652 → 465 (−187) 12 → 10 (−2)
t0114 321 → 235 (−86) 5,304 → 4,674 (−630), support 4,286 → 3,756 (−530) 171 → 128 (−43), including support
t0100 173 → 88 (−85) 4,864 → 3,302 (−1,562) 81 → 54 (−27)
t0110 63 → 29 (−34) 1,695 → 845 (−850) 47 → 25 (−22)
t0115 33 → 9 (−24) 859 → 428 (−431) 20 → 7 (−13)
t0117 260 → 107 (−153) 5,245 → 2,609 (−2,636) 205 → 98 (−107)
t0123 347 → 150 (−197) 9,113 → 5,981 (−3,132) 195 → 97 (−98)
t0122 47 → 23 (−24) 1,128 → 506 (−622) 28 → 16 (−12)
t0113 158 → 84 (−74) 3,066 → 1,815 (−1,251) 87 → 44 (−43)

t0107 — chat send

File: ui/src/pages/chat/chat-send.test.ts.

Removes repeated refresh/presentation, settings/retry, commands/modes, outbox/reconnect, and terminal variants. Retains payload ownership, destructive-reset fences, durable-admission failures, and retry-identity regressions.

covered statements 10329 -> 10288 (-41); branches 7187 -> 7120 (-67); functions 1706 -> 1703 (-3)

t0091 — QA mock provider

Files under extensions/qa-lab/src/providers/mock-openai/: server.tool-routing.test.ts, server.tool-surface.test.ts (deleted).

Consolidates namespace probes, reaction variants, failed-command replays, and empty-terminal replays into routing coverage.

covered statements 1424 -> 1418 (-6); branches 1202 -> 1191 (-11); functions 223 -> 220 (-3)

t0114 — embedded runner

Files under src/agents/embedded-agent-runner/: run.before-agent-finalize.test-support.ts, run.before-agent-reply-cron.test-support.ts, run.codex-app-server-recovery.owner-test-support.ts, run.codex-app-server-recovery.test-support.ts, run.empty-error-retry.test-support.ts, run.fast-mode-auto.test-support.ts, run.harness-prompt-error.test-support.ts, run.midturn-precheck-retry.test-support.ts, run.overflow-compaction.loop.test.ts, run.overflow-compaction.misc-owners.test.ts, run.overflow-compaction.test.ts, run.overflow-context-recovery.test.ts, run.plugin-runtime-refresh.integration.test.ts, run.prepared-harness-source-delivery.integration.test.ts, run.recovery-cancellation.test-support.ts, run.retry-lifecycle.test-support.ts, run.session-permissions.test.ts, run.session-prompt-state.test.ts, sessions-yield.orchestration.test-support.ts, usage-reporting.test-support.ts.

Removes owner/shared duplicates and delivery, permission, compaction, prompt, and dispatch variants. Retains TTS provenance, live authority, prompt-byte, and deadline regressions.

covered statements 17094 -> 17065 (-29);
branches 13274 -> 13237 (-37);
functions 3116 -> 3112 (-4)

t0100 — code mode

Files under src/agents/: code-mode.action-output.test.ts (deleted), code-mode.agent-loop.test.ts, code-mode.auto-results.test.ts, code-mode.backpressure.test.ts, code-mode.bridge.host-denial.test.ts, code-mode.bridge.lifecycle.test.ts, code-mode.bridge.test.ts, code-mode.catalog-lifetime.test.ts, code-mode.config.test.ts, code-mode.console.test.ts (deleted).

Removes repeated bridge, queue, lifecycle, recovery, host, config, and output variants. Retains substantive persistence regressions and approval/voice security boundaries.

  • Coverage: statements 10,434 → 10,397 (−0.35%); branches 7,378 → 7,327 (−0.69%). Gate passed; no groups excluded.

t0110 — status

Files under src/commands/: status.agent-local.test.ts, status.command-report-data.test.ts, status.command-report.test.ts, status.command-sections.test.ts, status.daemon.real-summary.test.ts (deleted), status.daemon.test.ts, status.format.test.ts, status.gateway-connection.test.ts (deleted), status.link-channel.test.ts, status.node-mode.test.ts.

Consolidates report/section duplication, formatting/cache/profile variants, and agent/daemon/connection/link replays. Retains cold-import, metadata-load-count, read-only-hook, and credential-redaction regressions.

  • Coverage: statements 770 → 779 (+9); branches 608 → 612 (+4); functions 122 → 121 (−1). No excluded groups or per-file statement drops.

t0115 — timeout recovery

Files under src/agents/embedded-agent-runner/: run.terminal-timeout-delivery.integration.test.ts, run.terminal-timeout.test.ts (deleted), run.timeout-context-recovery.test.ts, run.timeout-recovery-delivery.test.ts (deleted).

Consolidates terminal-helper, eligibility, delivery, and recovery overlap. Retains cancellation accounting, durable/detached behavior, retry limits, abandonment cleanup, and exactly-once delivery.

covered statements 8349 -> 8346 (-3);
branches 5352 -> 5321 (-31);
functions 1346 -> 1346 (0)

t0117 — cron tool

Files under src/agents/tools/: cron-tool.flat-params.test.ts, cron-tool.management.test.ts, cron-tool.output-contract.test.ts, cron-tool.pacing.test.ts, cron-tool.schema.test.ts, cron-tool.test.ts.

Removes duplicate flows/inputs, wording/schema repetition, output replays, and shorthand/admin/pacing variants. Retains authority, cancellation, pagination, padded-key, and schema regressions.

  • Coverage: statements 3,280 → 3,275; branches 2,105 → 2,091; functions 542 → 540. Both gates pass; no excluded groups or file losing over five statements.

t0123 — Docker harness scripts

File: test/scripts/docker-build-helper.test.ts.

Removes redundant source inventories, wrapper matrices, and duplicate probes. Retains distinct signal, recovery, cleanup-ownership, release-boundary, and disclosure regressions. V8 totals cover the instrumented JavaScript; executed shell/process tests supply the shell behavior proof.

  • Coverage: statements 90 → 90; branches 69 → 69; functions 27 → 27. No drops or excluded groups.

t0122 — Discord webhook sending

Files under extensions/discord/src/: send.webhook-activity.test.ts (deleted), send.webhook.chunk-limit.test.ts, send.webhook.proxy.test.ts, send.webhook.timeout.test.ts (deleted).

Consolidates proxy/account/preview variants, formatting/mention/reply duplicates, and response/retry/cleanup replays. Retains bounded-body, timeout, retry, partial-delivery, receipt, preview-policy, and outbound-identity regressions.

covered statements 980 -> 977 (-3); branches 527 -> 527 (0); functions 175 -> 175 (0)

t0113 — incomplete turns and recovery

Files under src/agents/embedded-agent-runner/: run.attempt-normalization.direct.test.ts, run.compaction-runtime.test.ts, run.harness-auth-failover.test.ts, run.incomplete-turn.classification.test.ts, run.incomplete-turn.delivery-resolution.test.ts (deleted), run.incomplete-turn.error-recovery.test.ts (deleted), run.incomplete-turn.payload-resolution.test.ts (deleted). Test inventories: scripts/lib/ci-proof-test-inventory.mts, test/vitest/vitest.agents-paths.mjs.

Consolidates incomplete-turn, compaction, normalization, and auth overlap; removes stale inventory paths. Retains distinct authority, cancellation, replay, and auth regressions.

covered statements 9809 -> 9806 (-3); branches 6332 -> 6323 (-9); functions 1582 -> 1582 (0)

All original shard reports pass the ≤1% covered-statement/branch loss gate with no excluded groups. The reports explicitly retain useful cases when campaign reduction targets are unmet. Historical inherited changed-check failures are not evidence about the current replay; current validation is reported separately.

@clawsweeper

clawsweeper Bot commented Sep 28, 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: discord Channel integration: discord app: web-ui App: web-ui scripts Repository scripts commands Command implementations agents Agent runtime and tooling extensions: qa-lab size: XL labels Sep 28, 2026
@steipete
steipete enabled auto-merge (squash) September 28, 2026 22:58
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 9:01 PM ET / September 29, 2026, 01:01 UTC (Revision 4).

ClawSweeper review

What this changes

Consolidates and removes overlapping agent, web chat, Discord, QA Lab, status, cron, and Docker helper tests while updating CI test inventories and Node runtime selection.

Merge readiness

✅ Ready for maintainer review

Keep open: current main has not absorbed this cleanup. The prior Node test-routing concern is repaired in the pinned head, and this review found no remaining concrete patch defect.

Priority: P3
Reviewed head: 3bc3baee029613729067c0e35c38c35a6e66c05c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The consolidation has substantial focused validation and the previously identified routing defect is repaired, with normal exact-head CI still pending.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The reviewed change affects tests and CI routing, not shipped behavior; the repository-state maintainer classification exempts this PR from contributor real-behavior proof. The PR body reports focused test and scheduler observations for the moved Node-only case, which were not rerun here. 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: The reviewed change affects tests and CI routing, not shipped behavior; the repository-state maintainer classification exempts this PR from contributor real-behavior proof. The PR body reports focused test and scheduler observations for the moved Node-only case, which were not rerun here. No stored-data contract changes.
Evidence reviewed 7 items Pinned introduced change: The merge-base-to-head diff changes test and test-support files plus CI inventories and routing; it contains no runtime production-code change.
Previous finding repaired: The surviving Code Mode test still invokes the native TypeScript compiler helper. The current CI runtime list and protected-test inventory name that surviving file, and the runtime-selection assertion expects Node routing for it.
Retained Discord contracts: The consolidated webhook tests retain rate-limit handling, bounded error bodies, outbound activity, request deadlines, and retry-timer cleanup.
Findings None None.
Security None None.

How this fits together

These tests exercise OpenClaw behavior across agents, channels, commands, and the Control UI. CI inventories select protected tests and route suites to Node or Bun; their results feed the PR merge gate.

flowchart LR
  A[OpenClaw behavior] --> B[Behavior tests]
  B --> C[Protected test inventory]
  B --> D[CI runtime selection]
  D --> E[Node and Bun runners]
  C --> F[Merge gate]
  E --> F
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -16388, Other -1. Total -16389 across 69 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 67 4925 21313 -16388
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 2 3 -1
Total 69 4927 21316 -16389

Review metrics

Metric Value Why it matters
Native compiler routing 1 moved test retargeted The surviving compiler assertion is named in both CI inventories and remains selected for Node.

Technical review

Best possible solution:

Keep one primary test for each observable contract and preserve protected-test membership and Node-only routing when tests move.

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

Not applicable: this is test-suite cleanup rather than a reported runtime defect. The earlier CI selection problem has a source-checkable correction in the current head.

Is this the best way to solve the issue?

Yes: the branch keeps sampled boundary and regression coverage at surviving owners and updates the CI references for the moved compiler test.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is test-maintenance cleanup with no runtime production behavior change.
  • merge-risk: 🚨 automation: The PR changes protected-test inventory and CI runtime selection; the corrected references address the observed routing defect.
  • 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: The reviewed change affects tests and CI routing, not shipped behavior; the repository-state maintainer classification exempts this PR from contributor real-behavior proof. The PR body reports focused test and scheduler observations for the moved Node-only case, which were not rerun here. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: 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)
  • Vyctor H. Brzezowski: 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 (3 earlier review cycles)
  • reviewed 2026-09-28T23:01:32.422Z sha 295a152b17d1937f334b8fcac388593f29e7a46f :: blocked before merge. :: none
  • reviewed 2026-09-28T23:31:33.403Z sha 295a152b17d1937f334b8fcac388593f29e7a46f :: blocked before merge. :: none
  • reviewed 2026-09-29T00:15:27.647Z sha 6934f12 :: blocked before merge. :: [P2] Retarget the Node-only Code Mode test after moving it

@steipete
steipete disabled auto-merge September 28, 2026 23:08
Remove redundant Docker harness source inventories and repeated wrapper
matrices. Keep independently repaired shell/process behaviors, release
boundaries, cleanup ownership and private diagnostic publication checks.
No production or shared test-support changes.

Tests: 347 -> 150 (-197, 56.8%); both Testbox runs passed.
Test LOC: 9113 -> 5981 (-3132, 34.4%).
Vitest duration: 84.48s -> 61.17s on the same Blacksmith Testbox lease.
Coverage: statements 90 -> 90; branches 69 -> 69; functions 27 -> 27.
No per-file drops or excluded config groups.
Formatting, diff-check and plain oxlint pass. Changed-file check: passed on Blacksmith Testbox after replacing an expired
lease; all root tsgo shards, typed lint, dead-export and boundary checks pass.
The expired-lease attempt executed no checker payload.

The 50% test-count target is met. The LOC target is not: remaining fixtures
exercise distinct past regressions and security boundaries. The per-test
pass-3 retention exceptions below use R2 for demonstrated historical fixes
and R3 for security or destructive-ownership boundaries. Table descriptions
name retained distinct cases. Coordinator review owns acceptance of the LOC
shortfall.

isolates helper snippets from shell hooks at SHLVL=%s | R2 58dce76: inherited startup/logout hooks executed in fixture shells; rows SHLVL=0 and 1 cover top-level and nested shell invocation.
treats Docker registry auth 5xx failures as transient build failures | R2 f29248f: Docker OAuth registry 5xx responses were not recognized as retryable.
detects compiler processes killed by the OOM killer | R2 2bb6b87: compiler killed-signal diagnostics were omitted from OOM recognition.
retries Corepack connect timeouts without misreading Dockerfile comments as OOM | R2 2bb6b87: Corepack connect errors were missed while generic Killed comments falsely matched OOM.
routes standalone Docker smoke runs through the timeout-aware helper | R2 f1ceed9: cleanup/install smoke Docker runs bypassed the timeout owner and could hang.
runs the sandbox browser sidecar proof from the package-installed image | R2 2c393ec: static SDK import captured process-stable roots before fixture HOME/state/config initialization.
cleans all sidecar modes without touching another run on the same Gateway workspace | R2 2c393ec; R3: cleanup labels lacked per-run ownership and could delete another run's containers.
gives cleanup-smoke builds enough Node heap while preserving explicit callers | R2 e3bab80: cleanup builds lacked heap headroom; repair supplies a default while preserving caller heap settings.
rejects invalid cleanup-smoke log byte limits | R2 a7b52ec: malformed limits silently defaulted rather than failing before setup.
normalizes zero-padded cleanup-smoke log byte limits | R2 901f963: bounded-tail assertions retain the repair replacing unbounded cleanup failure logs; a7b52ec retained decimal normalization.
prints Docker MCP client logs through the bounded helper | R2 5d7e0b7: MCP runner success/failure paths printed entire client logs instead of bounded tails.
prints in-container Docker client logs through bounded helpers | R2 cdbf6d9: media and chat-tools scenarios independently bypassed bounded log output.
runs cleanup smoke on the native ARM platform instead of pulling an amd64 tag | R2 d3ab7e9: cleanup smoke hardcoded amd64 on ARM hosts.
lets Testbox fall back to building when a reused Docker image is missing | R2 5c591a4: missing/pull-failed images stopped Testbox and the live CLI runner skipped the fallback owner.
resolves source and compiled candidate test-state entrypoints | R2 88fc335: test-state invocation hardcoded a TypeScript path and failed for compiled frozen candidates.
runs current TypeScript and frozen JavaScript Docker harness entrypoints | R2 1fb7158: package scenarios selected incompatible source/compiled entrypoint runtimes.
rejects malformed Docker E2E resource limits before a suite starts | R2 0df60ad: malformed resource knobs were passed through Docker setup rather than rejected at the owner.
keeps Testbox image-build fallback before isolating live MCP code-mode runtime flags | R2 e84b719: OPENCLAW_TESTBOX was unset before image fallback consumed it.
wraps centralized Docker builds with the timeout helper | R2 6ef0cbb: centralized image builds invoked Docker without a timeout.
stops the tracked build command without retrying when interrupted | R2 d31f4e2: interrupted builds left tracked work running or entered retry handling; TERM and INT retain distinct exit semantics.
normalizes zero-padded centralized Docker build heartbeat intervals | R2 17795c6: raw 08 reached Bash arithmetic rather than normalized decimal.
normalizes zero-padded centralized Docker build retry counts | R2 37eea55: raw zero-padded retry counts reached Bash arithmetic.
rejects invalid centralized Docker build %s before invoking docker | R2 37eea55: rows retry count/2x and heartbeat interval/soon cover separate owners that silently defaulted instead of rejecting before Docker invocation.
fails centralized Docker builds fast when timeout is unavailable | R2 6ef0cbb: required-bound build entrypoints otherwise executed Docker unbounded.
keeps reused Docker image probes behind the timeout-aware helper | R2 55af31e: image inspection/pull probes bypassed command timeouts.
explains how to opt out when Docker rejects default resource limits | R2 ff9b291: unsupported cgroup limits lacked actionable diagnostics; bounded FIFO capture and cleanup preserve the repair.
rejects invalid Docker run pids limits before invoking docker | R2 6af1b97: malformed PIDs limits reached Docker rather than failing at admission.
removes functional Docker build package inputs after the build | R2 abc7b7b: generated tarball and BuildKit context directories leaked after image builds.
keeps caller-provided functional Docker build packages | R3: generated-input cleanup must not delete a caller-owned tarball.
cleans generated package mounts after harness Docker runs | R2 b377618; R3: generated mounted packages leaked; failure inspection precedes container cleanup and caller-owned packages survive.
propagates shared E2E command timeouts into package-backed containers | R2 d0cb7ba: host command timeout overrides did not cross the Docker environment boundary.
cleans the heartbeat command when the wrapper is terminated | R2 6bfd47a: terminating the logger wrapper left its active child running.
cleans harness containers when heartbeat-wrapped Docker runs are terminated | R2 6bfd47a: composed logger/harness interruption leaked owned containers and cid directories.
normalizes zero-padded Docker E2E stats heartbeat intervals | R2 2102166: stats-loop arithmetic interpreted zero-padded intervals incorrectly.
derives the browser CDP image from the shared functional image | R2 cdb2fa3: shared-image overrides reused an image lacking Chromium instead of building the required derived image.
fails fast on invalid browser CDP snapshot byte limits | R2 1fb11ab: runner ignored and failed to validate the byte-limit setting.
forwards browser CDP snapshot byte limits into the Docker runner | R2 1fb11ab: valid host byte-limit settings were not forwarded into the container.
uses Playwright Chromium for the browser CDP snapshot image | R2 fd2e4da: distro Chromium/manual startup was incompatible with the browser smoke's managed runtime path.
opens the browser CDP fixture before snapshotting | R2 fd2e4da: doctor ran before browser open and raced readiness.
fails Docker commands fast when timeout is unavailable | R2 3736d7b: missing timeout implementations silently executed commands without a bound.
preserves $helper status $commandStatus in $mode after exit $entryStatus | R2 ec66133: bare returns restored the EXIT trap status; rows docker_e2e_docker_cmd/normal, docker_e2e_docker_run_cmd/normal, docker_e2e_docker_cmd/no-diagnostics, docker_e2e_docker_cmd/node-watchdog each preserve status 43 after exit 0 across independent repaired returns; platform shell matrix retained.
uses a Node watchdog for Docker commands when timeout is unavailable | R2 10056c9: Node-capable hosts without GNU timeout could not run Docker; fallback preserves bounded execution, stdin and child status.
adds default Docker run resource limits without overriding explicit limits | R2 a372429: Docker harness containers lacked resource bounds; explicit caller constraints must remain authoritative.
escalates Docker watchdog children that ignore parent SIG${shellSignal} | R2 32f98d7: TERM/143 and HUP/129 rows cover escalation of signal-ignoring children and previously absent HUP forwarding.
uses gtimeout when timeout is unavailable | R2 3736d7b: gtimeout-capable hosts were treated as lacking a timeout implementation.
passes plugin lifecycle sampler timeout overrides into Docker | R2 71cb607: phase/grace timeout overrides did not cross the Docker boundary.
rejects invalid plugin lifecycle Docker %s overrides before package setup | R2 7207072: phase timeout/150ms and CPU ratio/0 rows cover separate integer and positive-decimal validation failures before package setup.
wraps direct Docker E2E npm installs with the shared timeout helper | R2 9777526: actual scenario npm installs bypassed phase timeouts.
keeps upgrade survivor mutable state off the host-mounted artifact tree | R2 9fef53c: runtime state/cache/temp paths incorrectly used host artifact mounts rather than container-local roots.
starts the upgrade survivor plugin registry before updates with scenario-owned config | R2 b729806 and e81d7e6: ClawHub setup followed restart-environment capture and synthetic plugin credentials were globally injected rather than scenario-scoped.
keeps upgrade survivor wrappers and the embedded payload valid bash | R2 33a5f37: nested single-quoted assertion code corrupted embedded shell payload syntax.
wraps package-backed scenario OpenClaw CLI calls with the shared timeout helper | R2 d0cb7ba: package CLI scenario calls could hang without command bounds.
preserves actionable, secret-safe typed onboarding failure diagnostics | R2 60aac74; R3: diagnostics exposed auth/config data and gateway tokens, while fd cleanup permanently redirected stderr.
propagates frozen typed-onboarding ERR traps through nested helpers | R2 2d25402: frozen runner lacked bash -E and suppressed nested failure diagnostics.
prints channel-add failures through the shared E2E logger | R2 f25f742; R3: channel-add raw-file diagnostics bypassed the shared redacting logger.
keeps append-only mock E2E state under per-run scratch roots | R2 dcf21ac: shared append-only request/state files contaminated subsequent runs.

kills timed Docker scenario runners after the grace period | R2 d5bf325: forced termination after the timeout grace prevents timed-out scenario processes from surviving.
propagates HTTP probe failures through command substitution | R2 56ffe5b: explicit return preserves probe failure because command substitution does not inherit errexit; success and failure exercise different outcomes of this caller.
records an interrupted upgrade survivor phase as failed | R2 9de3ca5: signal handling and completion accounting prevent interrupted success; separate summary output avoids corrupting the interrupted command artifact.
keeps multi-node update Docker artifacts isolated by default | R2 d5df1a1: per-run directories prevent separate multi-node runs from overwriting shared default artifacts.
reuses the shared bare image for multi-node update targeted runs | R2 68ead4d: production replaced the hardcoded image and corrected skip-build routing so a targeted run actually uses the requested shared image.
bounds upgrade survivor foreground OpenClaw CLI calls | R2 c965b3a: timeout wrappers at actual foreground CLI callers prevent hung upgrade checks; shared timeout-helper tests cannot protect missing caller wrappers.
starts the %s auth probe under the manager that owns its restart and stop | R2 1c33687: published and current rows cover separate preparation entry points; both formerly adopted foreground CLI processes whose respawn descendants escaped service restart and stop custody.
returns the gateway readiness failure when startup is called conditionally | R2 1c33687: run.sh:start_gateway must explicitly return a failed readiness status under conditional invocation; the current-install preparation table calls a different owner.
scopes candidate setup Doctor markers without creating legacy device identities | R2 30aa279 and f584661: Doctor-only migration markers preserve plugin convergence, and removing legacy identity seeding prevents replacement of the canonical device identity.
restores the canonical authored config after %s failure | R2 30aa279: doctor=41, readiness=42, service-env=43, and install=44 cover distinct failure stages whose original status and authored config must survive preparation.
prefers restore failure and retains the authored config snapshot | R2 30aa279: the preparation caller prioritizes restore failure over an earlier Doctor failure and retains the recovery snapshot; the sibling helper test does not cover caller precedence.
keeps upgrade survivor auto-auth success summary set -u safe | R2 0f67474: default startup_summary prevents nounset failure when auto-auth intentionally skips the start_seconds assignment.
stops promptly when the systemctl target is a zombie with spaces and parentheses in comm | R2 1ecd53f: validated proc-stat tail parsing replaces incorrect whitespace-field parsing for zombie process names.
waits for a killable systemctl target when proc stat is unreadable or malformed | R2 1ecd53f, adapted by 99e7d3e: unreadable and malformed proc-stat inputs cannot be treated as confirmed exit or release a still-killable process from stop custody.
records delegated post-core systemd callers only with the environment marker | R2 dfd4cc8: recognizes delegated post-core workers while preserving ordinary update attribution and rejecting missing or unreadable delegation markers.
retains the original post-core %s result separately from exit %i via %s | R3: public projection removes secret and unapproved result fields; error/0/update proves result versus process-exit independence, and warning/0/--post-core also protects delegated-worker recognition fixed by dfd4cc8.
leaves post-core capture unavailable for %s without changing the child outcome | R3: doctor and worker restrict eligible observation process/thread; missing-context and delegated-missing-context require the marker for both entry forms; wrong-file and outside-tmp enforce the named temporary result boundary; symlink and hardlink enforce file ownership; oversize enforces bounded private input; blocked-output rejects an unsafe observation destination.
scopes the passive preload to the original update invocation in %s | R3: run.sh and upgrade-survivor-docker.sh are distinct update callers; private instrumentation and observation roots stay scoped to the selected update and its child, without leaking into later CLI invocations.
requires an update-owned service replacement after consent recovery (%s) | R2 56ffe5b: pid-only rejects replacement without the updater restart request, request-only rejects a restart record without replacement, and replaced accepts both; stale earlier restart evidence cannot claim recovery success.
observes or explicitly omits persisted plugin identity without changing source artifacts (%s) | R3: sqlite and historical exercise separate persisted-index reader routes while publishing only selected identity metadata, excluding private config/package fields, avoiding plugin-code execution, and preserving source artifacts.
refuses unsafe plugin identity input (%s) | R3: index-symlink and index-hardlink protect persisted-index ownership; index-oversize and index-cap bound private index bytes and records; root-symlink rejects an escaped plugin root; doctor-symlink and doctor-hardlink protect selected Doctor-artifact ownership; doctor-oversize bounds private artifact reads.
retains a failed service child and only sanitized diagnostics (candidate redactor: %s) | R3: true supplies hostile installed candidate redactor code that must not execute; frozen host redaction, private-file exclusion, allowlisted projection, and secret removal protect publication.
retains supervisor bootstrap stderr without inventing a child exit in %s | R2 b85a049: update-restart-auth.sh previously discarded bootstrap stderr and reported fabricated zero child-exit values without an exit observation.
collects before cleanup without masking failure or breaking success in %s | R2 b85a049: run.sh and upgrade-survivor-docker.sh have separate exit handlers; capture precedes cleanup so shutdown cannot replace initial failure evidence, and capture failure cannot replace the original result; rows cover failure with capture, failure without capture, successful completion without capture, and incomplete zero exit.
publishes only on the host and preserves Docker outcomes (published baseline: %s) | R3: false and true cover current and published Docker routes; public destinations never enter candidate mounts, private/stale snapshots are excluded, and published summaries and optional logs are projected and redacted without reusing prior-run evidence.
stops supervised gateway restarts after the systemd burst limit | R2 fb0812c: systemd-like supervision bounds rapid crash restarts instead of allowing unbounded fixture restart behavior.
terminates supervised gateway descendants at the systemd stop timeout | R2 fb0812c: process-group drain replaces leader-only stopping; the graceful parent may exit while a term-ignoring descendant still requires termination.
drains the previous gateway process group before restarting | R2 fb0812c: the replacement starts only after the previous process group has settled, preventing descendant overlap across restart.
rejects invalid upgrade survivor Docker %s before Docker setup | R2 cc3d346 and 8c3185d: start budget=90s exercises malformed positive integer, probe timeout=soon exercises malformed nonnegative integer, and probe attempt timeout=0 exercises the positive-only zero rejection before Docker setup.
bounds upgrade survivor failure log diagnostics | R2 8cba5f7: bounded logger calls replace unbounded cat operations at actual failure callers; helper-level truncation tests cannot detect callers bypassing the bounded logger.

R2 a3d5e5b | preserves caller-owned file descriptors around harness runs | Bash 3-compatible stdin descriptor allocation must preserve an already-open caller descriptor.
R2 b377618 | cleans release package runner $label on $scenario [label=release-upgrade-user-journey, scenario=generated-success] | Generated package mounts previously leaked; exercise owned tarball cleanup through the real runner while retaining run evidence.
R3 | cleans release package runner $label on $scenario [label=release-user-journey, scenario=provided-run-failure] | Destructive cleanup must preserve a caller-provided, unmarked tarball even when the container fails.
R3 | cleans release package runner $label on $scenario [label=release-media-memory, scenario=marked-other-name] | A generated-package marker must not authorize deletion of a differently named caller artifact.
R2 113af2f | preserves failing heredoc output and status through Docker E2E heartbeat logging | Background heartbeat execution lost stdin before explicit descriptor forwarding; retain payload and failing command status.
R2 45d173a | copies the pnpm lockfile into the runtime image before normalizing its permissions | Runtime Docker stage attempted chmod before the lockfile was copied.
R2 1421c21 | verifies fs-safe through a pnpm-style linked package root | Linked pnpm package roots require resolving the physical package location before loading fs-safe.
R2 1421c21 | builds and cleans package-lane images without touching shared image tags | Package-install proof must build and retire its own bare/musl tags, preserving shared functional images.
R2 dfa1a51 | cleans the direct binding runner after %s [scenario=invalid summary] | An unfocused Vitest run must fail the wrapper instead of being accepted as the intended three-test smoke.
R2 6bfd47a | cleans the actual cron runner and its harness on %s [signal=SIGINT, status=130] | Interrupted harness cleanup must terminate the Docker child and retire container/log resources through the INT trap.
R2 6bfd47a | cleans the actual cron runner and its harness on %s [signal=SIGTERM, status=143] | Interrupted harness cleanup must terminate the Docker child and retire container/log resources through the TERM trap.
R2 6bfd47a | cleans the actual cron runner and its harness on %s [signal=SIGHUP, status=129] | Interrupted harness cleanup must terminate the Docker child and retire container/log resources through the HUP trap.
R2 ffb4f0d | stages the committed $layout bundle-MCP client through the real runner: $scenario [layout=June, scenario=success] | Preserve the shipped June client's import depth, committed bytes and ESM scope instead of executing dirty checkout decoys.
R3 | stages the committed $layout bundle-MCP client through the real runner: $scenario [layout=June, scenario=empty extraction] | Missing staged regular files must prevent selected-client Docker execution.
R3 | stages the committed $layout bundle-MCP client through the real runner: $scenario [layout=June, scenario=altered extraction] | Extracted client bytes must match the authorized selected commit before Docker execution.
R2 ffb4f0d | stages the committed $layout bundle-MCP client through the real runner: $scenario [layout=July, scenario=success] | Preserve the independently shipped July client's deeper import layout and selected-source module scope.
R3 | passes source-qualified overrides without leaking frozen control-plane identity | Containers receive resolved compatibility facts without selected/tooling authorization identities; boundary established by 07fe26e.
R2 fc2724d | copies the complete bun harness closure into the package-install lane | Protect the missing dependency closure that broke bun package proof after #129552.
R3 | proves gateway suspension across a same-container process restart | Capability output remains host-owned, container writes use the host UID, and unsupported suspension is omitted only through frozen-target authorization.
R2 91067e3 | runs root lifecycles from the dependency inputs copied by %s [file=Dockerfile] | Execute root lifecycle hooks from the root image's actual dependency-stage COPY closure; extends the missing-hook regression protection to its independent recipe.
R2 dbc08f6 | runs root lifecycles from the dependency inputs copied by %s [file=scripts/docker/cleanup-smoke/Dockerfile] | Missing prepare-git-hooks input broke cleanup-image dependency installation; execute lifecycle hooks using only copied inputs.
R2 cbf23a1 | selects one release-owned Windows helper mount | Frozen upgrade scenario imports require the selected release's helper, without a competing trusted-harness mount at the same destination.
R2 3009338 | keeps a stalled multi-node health request inside the probe deadline | A stalled fetch previously outlived the health probe deadline; prove abort and failure with accelerated clock progression.
R2 5ce9b61 | reports the installed doctor switch unit through the systemd manager | Exercise managed-container service inspection through the production systemd consumer and the real fixture manager protocol.
R2 83dce46 | distinguishes a missing named doctor switch unit from failed or unsupported inspection | Failed, unsupported or unreadable service inspection must not become authoritative absence during sealed-definition update handling.
R2 7444f28 | mounts the %s Doctor contract and canonical-path shims from the same checkout [targetMode=selected] | Selected-release scenario and canonical-path service shims must come from the same selected checkout.
R2 8d909ed | passes installer tag env to bash, not curl | Installer tag variables assigned to curl did not reach the installer shell.
R2 dfa1a51 | keeps the plugin binding command escape Docker smoke focused | An extra -- prevented Vitest filter arguments from reaching the runner; retain focused argv and summary enforcement.
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 28, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 28, 2026
@steipete
steipete force-pushed the tcr/land-d090-1790624002 branch from 295a152 to 6934f12 Compare September 29, 2026 00:06
@steipete
steipete enabled auto-merge (squash) September 29, 2026 00:08
@steipete
steipete disabled auto-merge September 29, 2026 00:15
@steipete
steipete enabled auto-merge (squash) September 29, 2026 00:56
@steipete
steipete merged commit 9114904 into main Sep 29, 2026
220 checks passed
@steipete
steipete deleted the tcr/land-d090-1790624002 branch September 29, 2026 01:07
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…w#160776)

* test(ui): deslop t0107 tests

* test(qa-lab): deslop t0091 tests

* test(agents): deslop t0114 tests

* test(code-mode): deslop t0100 tests

* test(status): deslop t0110 tests

* test(agents): deslop t0115 tests

* test(cron): deslop t0117 tests

* test(scripts): deslop t0123 tests

Remove redundant Docker harness source inventories and repeated wrapper
matrices. Keep independently repaired shell/process behaviors, release
boundaries, cleanup ownership and private diagnostic publication checks.
No production or shared test-support changes.

Tests: 347 -> 150 (-197, 56.8%); both Testbox runs passed.
Test LOC: 9113 -> 5981 (-3132, 34.4%).
Vitest duration: 84.48s -> 61.17s on the same Blacksmith Testbox lease.
Coverage: statements 90 -> 90; branches 69 -> 69; functions 27 -> 27.
No per-file drops or excluded config groups.
Formatting, diff-check and plain oxlint pass. Changed-file check: passed on Blacksmith Testbox after replacing an expired
lease; all root tsgo shards, typed lint, dead-export and boundary checks pass.
The expired-lease attempt executed no checker payload.

The 50% test-count target is met. The LOC target is not: remaining fixtures
exercise distinct past regressions and security boundaries. The per-test
pass-3 retention exceptions below use R2 for demonstrated historical fixes
and R3 for security or destructive-ownership boundaries. Table descriptions
name retained distinct cases. Coordinator review owns acceptance of the LOC
shortfall.

isolates helper snippets from shell hooks at SHLVL=%s | R2 be95227: inherited startup/logout hooks executed in fixture shells; rows SHLVL=0 and 1 cover top-level and nested shell invocation.
treats Docker registry auth 5xx failures as transient build failures | R2 fd144cb: Docker OAuth registry 5xx responses were not recognized as retryable.
detects compiler processes killed by the OOM killer | R2 1067969: compiler killed-signal diagnostics were omitted from OOM recognition.
retries Corepack connect timeouts without misreading Dockerfile comments as OOM | R2 1067969: Corepack connect errors were missed while generic Killed comments falsely matched OOM.
routes standalone Docker smoke runs through the timeout-aware helper | R2 e5393b3: cleanup/install smoke Docker runs bypassed the timeout owner and could hang.
runs the sandbox browser sidecar proof from the package-installed image | R2 006b5c7: static SDK import captured process-stable roots before fixture HOME/state/config initialization.
cleans all sidecar modes without touching another run on the same Gateway workspace | R2 006b5c7; R3: cleanup labels lacked per-run ownership and could delete another run's containers.
gives cleanup-smoke builds enough Node heap while preserving explicit callers | R2 2e731ed: cleanup builds lacked heap headroom; repair supplies a default while preserving caller heap settings.
rejects invalid cleanup-smoke log byte limits | R2 c8f5843: malformed limits silently defaulted rather than failing before setup.
normalizes zero-padded cleanup-smoke log byte limits | R2 a6b319d: bounded-tail assertions retain the repair replacing unbounded cleanup failure logs; c8f5843 retained decimal normalization.
prints Docker MCP client logs through the bounded helper | R2 22472eb: MCP runner success/failure paths printed entire client logs instead of bounded tails.
prints in-container Docker client logs through bounded helpers | R2 d2a4be2: media and chat-tools scenarios independently bypassed bounded log output.
runs cleanup smoke on the native ARM platform instead of pulling an amd64 tag | R2 1b871d9: cleanup smoke hardcoded amd64 on ARM hosts.
lets Testbox fall back to building when a reused Docker image is missing | R2 f815e6d: missing/pull-failed images stopped Testbox and the live CLI runner skipped the fallback owner.
resolves source and compiled candidate test-state entrypoints | R2 433b505: test-state invocation hardcoded a TypeScript path and failed for compiled frozen candidates.
runs current TypeScript and frozen JavaScript Docker harness entrypoints | R2 e368262: package scenarios selected incompatible source/compiled entrypoint runtimes.
rejects malformed Docker E2E resource limits before a suite starts | R2 f9ef5d3: malformed resource knobs were passed through Docker setup rather than rejected at the owner.
keeps Testbox image-build fallback before isolating live MCP code-mode runtime flags | R2 f8f38eb: OPENCLAW_TESTBOX was unset before image fallback consumed it.
wraps centralized Docker builds with the timeout helper | R2 fe218d9: centralized image builds invoked Docker without a timeout.
stops the tracked build command without retrying when interrupted | R2 cef3cb0: interrupted builds left tracked work running or entered retry handling; TERM and INT retain distinct exit semantics.
normalizes zero-padded centralized Docker build heartbeat intervals | R2 882b9fc: raw 08 reached Bash arithmetic rather than normalized decimal.
normalizes zero-padded centralized Docker build retry counts | R2 ca6dcb3: raw zero-padded retry counts reached Bash arithmetic.
rejects invalid centralized Docker build %s before invoking docker | R2 ca6dcb3: rows retry count/2x and heartbeat interval/soon cover separate owners that silently defaulted instead of rejecting before Docker invocation.
fails centralized Docker builds fast when timeout is unavailable | R2 fe218d9: required-bound build entrypoints otherwise executed Docker unbounded.
keeps reused Docker image probes behind the timeout-aware helper | R2 9cf1a71: image inspection/pull probes bypassed command timeouts.
explains how to opt out when Docker rejects default resource limits | R2 59ddee5: unsupported cgroup limits lacked actionable diagnostics; bounded FIFO capture and cleanup preserve the repair.
rejects invalid Docker run pids limits before invoking docker | R2 303b9b3: malformed PIDs limits reached Docker rather than failing at admission.
removes functional Docker build package inputs after the build | R2 22e2d58: generated tarball and BuildKit context directories leaked after image builds.
keeps caller-provided functional Docker build packages | R3: generated-input cleanup must not delete a caller-owned tarball.
cleans generated package mounts after harness Docker runs | R2 bb75d59; R3: generated mounted packages leaked; failure inspection precedes container cleanup and caller-owned packages survive.
propagates shared E2E command timeouts into package-backed containers | R2 7ecd1cb: host command timeout overrides did not cross the Docker environment boundary.
cleans the heartbeat command when the wrapper is terminated | R2 e11a529: terminating the logger wrapper left its active child running.
cleans harness containers when heartbeat-wrapped Docker runs are terminated | R2 e11a529: composed logger/harness interruption leaked owned containers and cid directories.
normalizes zero-padded Docker E2E stats heartbeat intervals | R2 01d38cb: stats-loop arithmetic interpreted zero-padded intervals incorrectly.
derives the browser CDP image from the shared functional image | R2 b1cba01: shared-image overrides reused an image lacking Chromium instead of building the required derived image.
fails fast on invalid browser CDP snapshot byte limits | R2 e1106f7: runner ignored and failed to validate the byte-limit setting.
forwards browser CDP snapshot byte limits into the Docker runner | R2 e1106f7: valid host byte-limit settings were not forwarded into the container.
uses Playwright Chromium for the browser CDP snapshot image | R2 6fa4d91: distro Chromium/manual startup was incompatible with the browser smoke's managed runtime path.
opens the browser CDP fixture before snapshotting | R2 6fa4d91: doctor ran before browser open and raced readiness.
fails Docker commands fast when timeout is unavailable | R2 a2ca34f: missing timeout implementations silently executed commands without a bound.
preserves $helper status $commandStatus in $mode after exit $entryStatus | R2 850da92: bare returns restored the EXIT trap status; rows docker_e2e_docker_cmd/normal, docker_e2e_docker_run_cmd/normal, docker_e2e_docker_cmd/no-diagnostics, docker_e2e_docker_cmd/node-watchdog each preserve status 43 after exit 0 across independent repaired returns; platform shell matrix retained.
uses a Node watchdog for Docker commands when timeout is unavailable | R2 91091d5: Node-capable hosts without GNU timeout could not run Docker; fallback preserves bounded execution, stdin and child status.
adds default Docker run resource limits without overriding explicit limits | R2 e72851f: Docker harness containers lacked resource bounds; explicit caller constraints must remain authoritative.
escalates Docker watchdog children that ignore parent SIG${shellSignal} | R2 5f4011f: TERM/143 and HUP/129 rows cover escalation of signal-ignoring children and previously absent HUP forwarding.
uses gtimeout when timeout is unavailable | R2 a2ca34f: gtimeout-capable hosts were treated as lacking a timeout implementation.
passes plugin lifecycle sampler timeout overrides into Docker | R2 cf3f5f7: phase/grace timeout overrides did not cross the Docker boundary.
rejects invalid plugin lifecycle Docker %s overrides before package setup | R2 1da4de5: phase timeout/150ms and CPU ratio/0 rows cover separate integer and positive-decimal validation failures before package setup.
wraps direct Docker E2E npm installs with the shared timeout helper | R2 0c1335b: actual scenario npm installs bypassed phase timeouts.
keeps upgrade survivor mutable state off the host-mounted artifact tree | R2 be5fea1: runtime state/cache/temp paths incorrectly used host artifact mounts rather than container-local roots.
starts the upgrade survivor plugin registry before updates with scenario-owned config | R2 a460db8 and 0312292: ClawHub setup followed restart-environment capture and synthetic plugin credentials were globally injected rather than scenario-scoped.
keeps upgrade survivor wrappers and the embedded payload valid bash | R2 831ad75: nested single-quoted assertion code corrupted embedded shell payload syntax.
wraps package-backed scenario OpenClaw CLI calls with the shared timeout helper | R2 7ecd1cb: package CLI scenario calls could hang without command bounds.
preserves actionable, secret-safe typed onboarding failure diagnostics | R2 8edb7a9; R3: diagnostics exposed auth/config data and gateway tokens, while fd cleanup permanently redirected stderr.
propagates frozen typed-onboarding ERR traps through nested helpers | R2 2aab846: frozen runner lacked bash -E and suppressed nested failure diagnostics.
prints channel-add failures through the shared E2E logger | R2 7aed5bd; R3: channel-add raw-file diagnostics bypassed the shared redacting logger.
keeps append-only mock E2E state under per-run scratch roots | R2 280d4ea: shared append-only request/state files contaminated subsequent runs.

kills timed Docker scenario runners after the grace period | R2 817d293: forced termination after the timeout grace prevents timed-out scenario processes from surviving.
propagates HTTP probe failures through command substitution | R2 c039fc6: explicit return preserves probe failure because command substitution does not inherit errexit; success and failure exercise different outcomes of this caller.
records an interrupted upgrade survivor phase as failed | R2 76e459a: signal handling and completion accounting prevent interrupted success; separate summary output avoids corrupting the interrupted command artifact.
keeps multi-node update Docker artifacts isolated by default | R2 f8b1bbf: per-run directories prevent separate multi-node runs from overwriting shared default artifacts.
reuses the shared bare image for multi-node update targeted runs | R2 829a10e: production replaced the hardcoded image and corrected skip-build routing so a targeted run actually uses the requested shared image.
bounds upgrade survivor foreground OpenClaw CLI calls | R2 9895c97: timeout wrappers at actual foreground CLI callers prevent hung upgrade checks; shared timeout-helper tests cannot protect missing caller wrappers.
starts the %s auth probe under the manager that owns its restart and stop | R2 0d0651c: published and current rows cover separate preparation entry points; both formerly adopted foreground CLI processes whose respawn descendants escaped service restart and stop custody.
returns the gateway readiness failure when startup is called conditionally | R2 0d0651c: run.sh:start_gateway must explicitly return a failed readiness status under conditional invocation; the current-install preparation table calls a different owner.
scopes candidate setup Doctor markers without creating legacy device identities | R2 80ec4ee and dc93ef2: Doctor-only migration markers preserve plugin convergence, and removing legacy identity seeding prevents replacement of the canonical device identity.
restores the canonical authored config after %s failure | R2 80ec4ee: doctor=41, readiness=42, service-env=43, and install=44 cover distinct failure stages whose original status and authored config must survive preparation.
prefers restore failure and retains the authored config snapshot | R2 80ec4ee: the preparation caller prioritizes restore failure over an earlier Doctor failure and retains the recovery snapshot; the sibling helper test does not cover caller precedence.
keeps upgrade survivor auto-auth success summary set -u safe | R2 c95c225: default startup_summary prevents nounset failure when auto-auth intentionally skips the start_seconds assignment.
stops promptly when the systemctl target is a zombie with spaces and parentheses in comm | R2 424a45b: validated proc-stat tail parsing replaces incorrect whitespace-field parsing for zombie process names.
waits for a killable systemctl target when proc stat is unreadable or malformed | R2 424a45b, adapted by 4c86e3c: unreadable and malformed proc-stat inputs cannot be treated as confirmed exit or release a still-killable process from stop custody.
records delegated post-core systemd callers only with the environment marker | R2 1ed2c4c: recognizes delegated post-core workers while preserving ordinary update attribution and rejecting missing or unreadable delegation markers.
retains the original post-core %s result separately from exit %i via %s | R3: public projection removes secret and unapproved result fields; error/0/update proves result versus process-exit independence, and warning/0/--post-core also protects delegated-worker recognition fixed by 1ed2c4c.
leaves post-core capture unavailable for %s without changing the child outcome | R3: doctor and worker restrict eligible observation process/thread; missing-context and delegated-missing-context require the marker for both entry forms; wrong-file and outside-tmp enforce the named temporary result boundary; symlink and hardlink enforce file ownership; oversize enforces bounded private input; blocked-output rejects an unsafe observation destination.
scopes the passive preload to the original update invocation in %s | R3: run.sh and upgrade-survivor-docker.sh are distinct update callers; private instrumentation and observation roots stay scoped to the selected update and its child, without leaking into later CLI invocations.
requires an update-owned service replacement after consent recovery (%s) | R2 c039fc6: pid-only rejects replacement without the updater restart request, request-only rejects a restart record without replacement, and replaced accepts both; stale earlier restart evidence cannot claim recovery success.
observes or explicitly omits persisted plugin identity without changing source artifacts (%s) | R3: sqlite and historical exercise separate persisted-index reader routes while publishing only selected identity metadata, excluding private config/package fields, avoiding plugin-code execution, and preserving source artifacts.
refuses unsafe plugin identity input (%s) | R3: index-symlink and index-hardlink protect persisted-index ownership; index-oversize and index-cap bound private index bytes and records; root-symlink rejects an escaped plugin root; doctor-symlink and doctor-hardlink protect selected Doctor-artifact ownership; doctor-oversize bounds private artifact reads.
retains a failed service child and only sanitized diagnostics (candidate redactor: %s) | R3: true supplies hostile installed candidate redactor code that must not execute; frozen host redaction, private-file exclusion, allowlisted projection, and secret removal protect publication.
retains supervisor bootstrap stderr without inventing a child exit in %s | R2 5e444d4: update-restart-auth.sh previously discarded bootstrap stderr and reported fabricated zero child-exit values without an exit observation.
collects before cleanup without masking failure or breaking success in %s | R2 5e444d4: run.sh and upgrade-survivor-docker.sh have separate exit handlers; capture precedes cleanup so shutdown cannot replace initial failure evidence, and capture failure cannot replace the original result; rows cover failure with capture, failure without capture, successful completion without capture, and incomplete zero exit.
publishes only on the host and preserves Docker outcomes (published baseline: %s) | R3: false and true cover current and published Docker routes; public destinations never enter candidate mounts, private/stale snapshots are excluded, and published summaries and optional logs are projected and redacted without reusing prior-run evidence.
stops supervised gateway restarts after the systemd burst limit | R2 bad341a: systemd-like supervision bounds rapid crash restarts instead of allowing unbounded fixture restart behavior.
terminates supervised gateway descendants at the systemd stop timeout | R2 bad341a: process-group drain replaces leader-only stopping; the graceful parent may exit while a term-ignoring descendant still requires termination.
drains the previous gateway process group before restarting | R2 bad341a: the replacement starts only after the previous process group has settled, preventing descendant overlap across restart.
rejects invalid upgrade survivor Docker %s before Docker setup | R2 76c6b09 and ca4d68c: start budget=90s exercises malformed positive integer, probe timeout=soon exercises malformed nonnegative integer, and probe attempt timeout=0 exercises the positive-only zero rejection before Docker setup.
bounds upgrade survivor failure log diagnostics | R2 df3eb35: bounded logger calls replace unbounded cat operations at actual failure callers; helper-level truncation tests cannot detect callers bypassing the bounded logger.

R2 328c6dc | preserves caller-owned file descriptors around harness runs | Bash 3-compatible stdin descriptor allocation must preserve an already-open caller descriptor.
R2 bb75d59 | cleans release package runner $label on $scenario [label=release-upgrade-user-journey, scenario=generated-success] | Generated package mounts previously leaked; exercise owned tarball cleanup through the real runner while retaining run evidence.
R3 | cleans release package runner $label on $scenario [label=release-user-journey, scenario=provided-run-failure] | Destructive cleanup must preserve a caller-provided, unmarked tarball even when the container fails.
R3 | cleans release package runner $label on $scenario [label=release-media-memory, scenario=marked-other-name] | A generated-package marker must not authorize deletion of a differently named caller artifact.
R2 06cbc38 | preserves failing heredoc output and status through Docker E2E heartbeat logging | Background heartbeat execution lost stdin before explicit descriptor forwarding; retain payload and failing command status.
R2 d58f768 | copies the pnpm lockfile into the runtime image before normalizing its permissions | Runtime Docker stage attempted chmod before the lockfile was copied.
R2 88b155f | verifies fs-safe through a pnpm-style linked package root | Linked pnpm package roots require resolving the physical package location before loading fs-safe.
R2 88b155f | builds and cleans package-lane images without touching shared image tags | Package-install proof must build and retire its own bare/musl tags, preserving shared functional images.
R2 ee0be2f | cleans the direct binding runner after %s [scenario=invalid summary] | An unfocused Vitest run must fail the wrapper instead of being accepted as the intended three-test smoke.
R2 e11a529 | cleans the actual cron runner and its harness on %s [signal=SIGINT, status=130] | Interrupted harness cleanup must terminate the Docker child and retire container/log resources through the INT trap.
R2 e11a529 | cleans the actual cron runner and its harness on %s [signal=SIGTERM, status=143] | Interrupted harness cleanup must terminate the Docker child and retire container/log resources through the TERM trap.
R2 e11a529 | cleans the actual cron runner and its harness on %s [signal=SIGHUP, status=129] | Interrupted harness cleanup must terminate the Docker child and retire container/log resources through the HUP trap.
R2 f292abc | stages the committed $layout bundle-MCP client through the real runner: $scenario [layout=June, scenario=success] | Preserve the shipped June client's import depth, committed bytes and ESM scope instead of executing dirty checkout decoys.
R3 | stages the committed $layout bundle-MCP client through the real runner: $scenario [layout=June, scenario=empty extraction] | Missing staged regular files must prevent selected-client Docker execution.
R3 | stages the committed $layout bundle-MCP client through the real runner: $scenario [layout=June, scenario=altered extraction] | Extracted client bytes must match the authorized selected commit before Docker execution.
R2 f292abc | stages the committed $layout bundle-MCP client through the real runner: $scenario [layout=July, scenario=success] | Preserve the independently shipped July client's deeper import layout and selected-source module scope.
R3 | passes source-qualified overrides without leaking frozen control-plane identity | Containers receive resolved compatibility facts without selected/tooling authorization identities; boundary established by afd959c.
R2 a9687fa | copies the complete bun harness closure into the package-install lane | Protect the missing dependency closure that broke bun package proof after openclaw#129552.
R3 | proves gateway suspension across a same-container process restart | Capability output remains host-owned, container writes use the host UID, and unsupported suspension is omitted only through frozen-target authorization.
R2 9293b5c | runs root lifecycles from the dependency inputs copied by %s [file=Dockerfile] | Execute root lifecycle hooks from the root image's actual dependency-stage COPY closure; extends the missing-hook regression protection to its independent recipe.
R2 2b932e9 | runs root lifecycles from the dependency inputs copied by %s [file=scripts/docker/cleanup-smoke/Dockerfile] | Missing prepare-git-hooks input broke cleanup-image dependency installation; execute lifecycle hooks using only copied inputs.
R2 7b2a800 | selects one release-owned Windows helper mount | Frozen upgrade scenario imports require the selected release's helper, without a competing trusted-harness mount at the same destination.
R2 c07db08 | keeps a stalled multi-node health request inside the probe deadline | A stalled fetch previously outlived the health probe deadline; prove abort and failure with accelerated clock progression.
R2 ce5ed2e | reports the installed doctor switch unit through the systemd manager | Exercise managed-container service inspection through the production systemd consumer and the real fixture manager protocol.
R2 6740753 | distinguishes a missing named doctor switch unit from failed or unsupported inspection | Failed, unsupported or unreadable service inspection must not become authoritative absence during sealed-definition update handling.
R2 f839619 | mounts the %s Doctor contract and canonical-path shims from the same checkout [targetMode=selected] | Selected-release scenario and canonical-path service shims must come from the same selected checkout.
R2 3ba4873 | passes installer tag env to bash, not curl | Installer tag variables assigned to curl did not reach the installer shell.
R2 ee0be2f | keeps the plugin binding command escape Docker smoke focused | An extra -- prevented Vitest filter arguments from reaching the runner; retain focused argv and summary enforcement.

* test(discord): deslop t0122 tests

* test(agents): deslop t0113 tests

* test: retain distinct safety and recovery coverage

* test: preserve native compiler runtime routing after consolidation
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: discord Channel integration: discord commands Command implementations extensions: qa-lab merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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