Skip to content

improve: verify packaged runtime on Bun 1.4 - #129552

Merged
steipete merged 2 commits into
mainfrom
fix/bun-1.4-runtime-contract
Aug 26, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/bun-1.4-runtime-contract

Conversation

@steipete

@steipete steipete commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a release-validation gap where the Bun global-install smoke blocked OpenClaw lifecycle scripts and then invoked the installed Node-shebang launcher, so it did not prove that the published package, local agent, or Gateway actually ran on Bun.

Why This Change Was Made

The smoke now requires Bun 1.4+, installs with --trust, verifies OpenClaw's lifecycle scripts ran, and executes the installed package entry explicitly with Bun. It covers representative CLI state, image providers, a mocked local agent turn, Gateway readiness/health, and a mocked agent turn through the Bun-hosted Gateway. Node remains the primary runtime and the plain launcher keeps its Node shebang.

The isolated runtime also scrubs unrelated official external-provider credentials so host secrets cannot trigger plugin repair or make the mocked smoke nondeterministic.

User Impact

Bun users get a release gate that exercises the package and core runtime paths they actually use, while Node behavior and defaults remain unchanged. The documented opt-in command is bun run --bun openclaw <args>.

Evidence

  • Real packaged Bun 1.4.0 smoke: bun-global-install-smoke: Bun 1.4.0 package, CLI, local agent, and Gateway runtime OK (9 image providers).
  • pnpm test test/scripts/test-install-sh-docker.test.ts — 90 passed.
  • pnpm test test/scripts/install-smoke-no-push-workflow.test.ts test/scripts/ci-workflow-guards.test.ts — 140 passed.
  • pnpm build — passed.
  • pnpm check:changed -- <changed files> — passed, including formatting, test-root types, and script lint.
  • pnpm docs:check-mdx and pnpm format:docs:check — passed.
  • Corrected both contradictory Bun statements in docs/help/faq-first-run.md; pnpm docs:check-mdx (780 files) and pnpm format:docs:check (764 files) passed.
  • Reran the packaged Bun 1.4.0 smoke after the docs-only correction against patch-identical runtime artifacts: package, CLI, local agent, Gateway, and 9 image providers passed.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 25, 2026 18:55
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete force-pushed the fix/bun-1.4-runtime-contract branch from baf70a0 to 13f880e Compare August 25, 2026 20:28
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 25, 2026, 9:31 PM ET / August 26, 2026, 01:31 UTC.

ClawSweeper review

What this changes

The PR expands the packaged Bun 1.4 smoke to execute the installed CLI, local agent, and Gateway under Bun, and updates runtime and release-validation documentation.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this protected maintainer PR open: the Bun smoke expansion is coherent, but the branch still reverts current-main Kilocode fallback pricing and deletes its regression coverage.

Priority: P2
Reviewed head: 35bbc72f625e4a1262154166dea26a753fc04f3b

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The Bun validation design is well scoped, but the unresolved provider regression prevents a higher readiness rating.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless reports a packaged Bun 1.4 smoke covering the changed runtime paths.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless reports a packaged Bun 1.4 smoke covering the changed runtime paths.
Evidence reviewed 6 items Bun runtime owner path: The smoke installs the candidate with trusted lifecycle scripts, then invokes the resolved package entry explicitly with Bun for CLI, local-agent, Gateway, and Gateway-backed agent paths.
Gateway dispatch contract: Non-local agent dispatch loads Gateway configuration, so the final agent turn exercises the started Gateway rather than an embedded local run.
Current-main provider contract: Current main preserves KILOCODE_DEFAULT_COST for invalid or unavailable prompt/output pricing only on kilo-auto/balanced.
Findings 1 actionable finding [P2] Restore the Kilo default-cost fallback
Security None None.

How this fits together

Release validation packages OpenClaw, installs it in an isolated Bun home, and exercises CLI and Gateway paths before accepting a release artifact. The same branch also changes the Kilocode provider’s model-price normalization, which feeds model metadata shown to operators.

flowchart LR
A[Package artifact] --> B[Isolated Bun install]
B --> C[Trusted lifecycle check]
C --> D[CLI and local agent]
D --> E[Gateway and mock model]
E --> F[Release validation]
G[Kilocode price response] --> H[Model cost metadata]
Loading

Before merge

  • Restore the Kilo default-cost fallback (P2) - This removes the current-main fallback for kilo-auto/balanced and its regression cases. When the live catalog returns -1 or unavailable prompt/output prices, this branch now emits zero cost instead of the known default; retain the fallback and tests or remove these unrelated changes from the PR.
  • Resolve merge risk (P1) - Merging the branch would change invalid or unavailable live pricing for the default Kilocode model from known costs to zero input/output cost.
  • Resolve merge risk (P1) - The expanded release smoke now owns more runtime coverage, so its packaged Bun run must remain an exact release-harness gate rather than a documentation-only claim.
  • Complete next step (P2) - A narrow mechanical repair can preserve the intended Bun work while restoring the current-main provider invariant.

Findings

  • [P2] Restore the Kilo default-cost fallback — extensions/kilocode/provider-models.ts:73-81
Agent review details

Security

None.

PR surface

Tests +130, Docs +2, Config 0, Other +268. Total +400 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 142 12 +130
Docs 5 12 10 +2
Config 2 2 2 0
Generated 0 0 0 0
Other 2 278 10 +268
Total 10 434 34 +400

Review metrics

Metric Value Why it matters
Production versus test delta production +10/-5; test support +278/-10; tests +143/-80; docs/workflows +14/-12 The intended runtime-smoke growth is test support, while the small production-provider edit is the unrelated regression that must not merge.

Stored data model

Persistent data-model change detected: serialized state: scripts/e2e/lib/bun-global-install/assertions.mjs. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Restore the provider fallback before merge (recommended)
    Drop the incidental Kilocode source and test changes, then rerun the focused provider and Bun-smoke validation.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Restore the current-main Kilocode default-model cost fallback and its regression cases; retain the Bun smoke changes and rerun focused provider plus Bun-smoke tests.

Technical review

Best possible solution:

Keep the Bun runtime smoke, but remove the unrelated Kilocode edits so the current-main fallback and its two regression cases remain intact.

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

Yes for the review finding: the branch’s normalization path converts invalid default-model prompt/output prices to zero, while current main and its regression test preserve known defaults; this read-only review did not execute the test.

Is this the best way to solve the issue?

No: the Bun smoke is a good validation boundary, but reverting a recent Kilocode fix is unrelated and not the best way to implement it.

Full review comments:

  • [P2] Restore the Kilo default-cost fallback — extensions/kilocode/provider-models.ts:73-81
    This removes the current-main fallback for kilo-auto/balanced and its regression cases. When the live catalog returns -1 or unavailable prompt/output prices, this branch now emits zero cost instead of the known default; retain the fallback and tests or remove these unrelated changes from the PR.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: The branch would regress displayed cost metadata for an existing default provider model without disabling the core runtime.
  • merge-risk: 🚨 automation: The PR expands a release-validation smoke from package discovery to installed CLI, agent, and Gateway execution.
  • merge-risk: 🚨 auth-provider: The incidental Kilocode edit changes how invalid live provider pricing is normalized for the default model.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless reports a packaged Bun 1.4 smoke covering the changed runtime paths.

Evidence

Acceptance criteria:

  • [P1] pnpm test extensions/kilocode/provider-models.test.ts test/scripts/test-install-sh-docker.test.ts.
  • [P1] bash scripts/e2e/bun-global-install-smoke.sh.

What I checked:

Likely related people:

  • steipete: Authored the base restoration commit and has the strongest sampled history across the Bun smoke and Kilocode paths. (role: provider-fallback restoration author and recent runtime contributor; confidence: high; commits: 3c23457040b3, 6ef2c1594dad; files: extensions/kilocode/provider-models.ts, scripts/e2e/bun-global-install-smoke.sh)
  • SunnyShu: Current-main blame attributes the fallback and default-model special case to this contributor. (role: current-main fallback author; confidence: high; commits: 827433c6feef; files: extensions/kilocode/provider-models.ts)
  • Vincent Koc: Recent history on the Bun smoke includes several install/runtime-smoke repairs by this contributor. (role: historical E2E contributor; confidence: medium; commits: 9328f4a67518, 461f0cfc5b6f; files: scripts/e2e/bun-global-install-smoke.sh)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Restore the current-main Kilocode fallback and its two regression cases.
  • Rerun the focused provider test and the packaged Bun smoke after the repair.

Rating scale

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

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

Workflow

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

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-25T22:00:12.342Z sha 13f880e :: needs changes before merge. :: [P2] Align the FAQ with the Bun 1.4 runtime claim
  • reviewed 2026-08-25T23:34:42.134Z sha 35bbc72 :: found issues before merge. :: [P2] Restore the Kilo default-cost fallback

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 25, 2026
@steipete steipete self-assigned this Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready at exact head 35bbc72f625e4a1262154166dea26a753fc04f3b.

ClawSweeper's Kilocode rank-up move is skipped as stale-main drift, not a PR change:

  • GitHub's PR file list contains no extensions/kilocode/** files.
  • git merge-base origin/main HEAD is a8d53504990539948df6861144f62c517e7032a7; the Kilocode source blob is identical at that merge base and at the PR head (8b5105d1c880008a5292980d2630f013b1e03019).
  • git merge-tree --write-tree origin/main HEAD produces tree 9aa926f2b7da507c8fafc7861251cd31c2700c2f; its Kilocode source blob is identical to current main (3b49b1b674b2ab5ce3d52fcff9bf45d7c8287a1a), and the synthetic merge has no Kilocode diff from current main. Merging this PR therefore preserves the current-main fallback and tests.

Verification at this head:

  • Exact-head CI is complete and green, including openclaw/ci-gate.
  • Packaged Bun 1.4 smoke passed lifecycle hooks, CLI/plugin discovery, 9 image providers, mocked local agent, Gateway readiness, and Gateway-routed mocked agent execution.
  • pnpm build, changed checks, bash -n scripts/e2e/bun-global-install-smoke.sh, git diff --check, pnpm docs:check-mdx, and pnpm format:docs:check passed.
  • Native review artifacts validate with READY FOR /prepare-pr and zero findings; fresh autoreview and TruffleHog were clean.

@steipete
steipete merged commit 0229fe7 into main Aug 26, 2026
133 checks passed
@steipete
steipete deleted the fix/bun-1.4-runtime-contract branch August 26, 2026 06:41

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 26, 2026
…all (#130335)

npm/pnpm pack copy on-disk file modes into the tarball, and node-tar's
portable mode-fix only strips group/other write bits — it never adds
read bits. A restrictive-umask build host therefore ships owner-only
(0600/0700) tarball entries, which breaks the CLI for non-root users
after `sudo npm install -g` under mode-preserving consumers such as
system tar.

- Normalize every packed entry to 0644/0755 (a+rX, exec bits kept) as
  the last step of packOpenClawPackageForDocker.
- Add a tar -tvf mode gate to check-openclaw-package-tarball that
  rejects any non-world-readable entry.
- Run the docker-package-install npm lane as root and execute the
  installed CLI as a non-root user to prove the fix live.
- Fix the docker-package-install bun proof, broken on main since
  #129552 wired the bun smoke into the shared openclaw-e2e-instance
  library: replace the drift-prone per-file harness copy list with
  directory copies, and add a closure-walking guard test that fails
  on missing harness dependencies.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
…all (openclaw#130335)

npm/pnpm pack copy on-disk file modes into the tarball, and node-tar's
portable mode-fix only strips group/other write bits — it never adds
read bits. A restrictive-umask build host therefore ships owner-only
(0600/0700) tarball entries, which breaks the CLI for non-root users
after `sudo npm install -g` under mode-preserving consumers such as
system tar.

- Normalize every packed entry to 0644/0755 (a+rX, exec bits kept) as
  the last step of packOpenClawPackageForDocker.
- Add a tar -tvf mode gate to check-openclaw-package-tarball that
  rejects any non-world-readable entry.
- Run the docker-package-install npm lane as root and execute the
  installed CLI as a non-root user to prove the fix live.
- Fix the docker-package-install bun proof, broken on main since
  openclaw#129552 wired the bun smoke into the shared openclaw-e2e-instance
  library: replace the drift-prone per-file harness copy list with
  directory copies, and add a closure-walking guard test that fails
  on missing harness dependencies.
steipete added a commit that referenced this pull request Sep 29, 2026
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.
steipete added a commit that referenced this pull request Sep 29, 2026
* 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 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.

* 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
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

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants