Repository navigation
fix(sandbox): harden agent runs and resource recovery - #4189
Merged
Merged
Conversation
yannickmonney
marked this pull request as ready for review
October 3, 2026 23:28
Contributor
Author
|
Post-merge independent review of #4189 at
Earlier sandbox MEDIUMs, all still on
New MEDIUM
LOW and INFO
Verified correct
Routing: to the manager as follow-ups. N1 is a regression on the create path. Nothing here needs a revert. |
This was referenced Oct 4, 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
Agent runs can lose execution history when corrupt stream records are discarded, exceed their caller's staging deadline, or start in sessions whose inner Docker engine has failed. Validate the full stream protocol, bound each staging batch and Docker readiness wait, and recover only idle, unpinned compute while preserving workspaces and active execution.
Connected devices now enforce host resource admission, keep ambiguous creates on their original device, and preserve durable placement state across failed writes. Disk admission observes both workspaces and the verified Docker data-root filesystem, with safe cache-upkeep accounting when the constrained filesystem changes. Operator documentation in EN/DE/FR states the monitoring and external-quota boundaries.
Checklist
bun run checkpasses (format, lint, typecheck, all tests).bun run lint:sastpasses (Opengrep); touched-code pre-commit scan also passed.docs/{en,de,fr}/and sandbox service contracts.Test plan
35abeb60c: 58/58 tasks, including 5,262 UI tests, 81,711 platform server tests, and 326 daemon tests. Run with serial Turbo tasks and two Vitest workers using Bun 1.4.2 and Node 24.21.0. Knip and the manual-reference guard also pass.35abeb60c. Upstream secure staging, replay limits, per-session memory defaults and output handling are retained.The existing progress coalescing, bounded full replay journals, streaming/reusable staging, warm memory admission, workload-scoped Docker capability, and bounded BuildKit preparation are retained. No production throughput percentage or per-volume quota is claimed.