fix(runner): show disk exhaustion before recovery errors (#22448)

Show the confirmed sandbox disk failure before a later lost-turn or restore error in saved run errors and both run detail views. Preserve the original diagnostics and leave scarce inodes available when preparing the existing runner relaunch reserve.

Verified focused regressions, scoped typechecks, and full CI on the reviewed revision, including Runner checks and all eight end-to-end shards. Greptile is 5/5 with all review findings resolved.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Devin FoleyandPaperclip authored and GitHub committed 2026-11-20 17:08:31 -08:00
1 parent 611dc68581
commit b4cea5b5a4
10 files changed
+87 -14

No files matched your search

+14
View File
@@ -10,6 +10,20 @@ The built-in TypeScript implementation constructs the provider descriptor in
By default, the SDK prepares local files. It stages remote files through the
existing execution driver.
## Managed sandbox storage
Core holds a 256 MiB runner relaunch reserve only in managed sandboxes. It
creates the reserve when there is at least 2 GiB of additional free space and
1,024 free inodes. It leaves scarce capacity available to an existing agent.
A relaunch releases that reserve before it stages the replacement runner.
This reserve is recovery headroom; it does not limit the agent's downloads.
When runner diagnostics confirm a full sandbox disk, the saved run error and
run details show that cause ahead of a later lost-turn or restore error. Raw
failure diagnostics remain in the run's diagnostic evidence. Older saved runs
with `sandbox_disk_full` get the same display without a data migration.
Download budgets and image policy belong to the deployment environment.
## Environment-owned preparation
An execution driver can supply `prepareLaunch`.