Repository navigation
fix(sandbox): refresh and harden all bundled harnesses - #4155
Merged
Merged
Conversation
yannickmonney
marked this pull request as ready for review
October 3, 2026 17:20
yannickmonney
force-pushed
the
fix/sandbox-harness-refresh
branch
from
October 3, 2026 17:26
5925c03 to
ffcc322
Compare
This was referenced Oct 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refresh all nine bundled coding harnesses so sandbox sessions use current supported releases. Gemini 0.60+ silently ignores agent-owned system settings; bake immutable policies from the existing harness interpreter and select them without elevating the agent. Reject incompatible platform/image policies before execution. Preserve the existing resume restriction until the upstream fix lands.
Keep Hermes SDK diagnostics off NDJSON stdout and remove its artificial one-second tool pacing. Treat OpenClaw error envelopes as failed executions even when its CLI exits zero. Pin Node to the LTS patch required by the upgraded OpenClaw.
New image checks require exact installed versions, bounded offline startup under a non-root user with a read-only root, and preserved Gemini system policy despite conflicting repository settings. The existing image suite exercises actual CLI flags, managed gateway requests, baked skills, cancellation and lazy browser startup.
CI's image-size check found the refreshed runtime was 6,166 MB against a July-era 5,900 MB budget. Keep Bun package downloads and node-gyp headers in architecture-scoped, locked BuildKit caches, add an actual-image regression for their absence, and update the documented budget to 6,600 MB (roughly 10% headroom over the refreshed ~6.0 GB baseline). Upstream runtimes and diagnostics remain complete. This increases pull/base-image disk cost; concurrent sessions share the base image. The rebuilt arm64 image removes approximately 120 MB of uncompressed layers and passes all 83 runtime checks; amd64 CI confirms 6,067 MiB and all 40 image metadata/size checks pass.
A fresh Linux Unit run exposed a process-liveness test race: a child could disappear between checking and reading its
/procentry. Reuse the test file's existing safe reader, with deterministic ENOENT/ESRCH regressions and an EACCES control. Production behavior is unchanged. The image-validation jobs now install frozen workspace dependencies through the shared toolchain action, allowing the native Codex probe to exercise the shipped exec builder and parser from a clean CI checkout.This updates the runtime image. Newly supported OpenAI subscription models also require the platform catalog/serving release containing #4149. No production rollout or worker provisioning is included.
All 62 CI checks passed on final head
0988bcf66175c03da5031e9ff524a641120ff72d; no unresolved review threads.Checklist
bun run check --concurrency=1passes: 58/58 tasks (45 cached on the final CI-fix commit), using Bun 1.4.2 and the CI 6 GiB Node heap.bun run lint:sastpasses (Opengrep, zero findings); rebased-head CI also passed.Test plan
sha256:e4463fd4447b2fc687ddca4eab6825185fac63c85596dc8a0ba19053dfe2ef1f): 83 passed, 0 failed withIMAGE=tale-sandbox-runtime:harness-refresh SKIP_BUILD=true bun run docker:test:sandbox-runtime.33aa991feeto include concurrent resource cleanup and Qwen lazy MCP fixes. The combined head passed the full repository gate, all 83 image checks and both document-tool profiles. Independent rebase and cache-fix reviews found no actionable issues.bun run check. Final-head Linux Knip also passed.