You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Isolate Runs locally with an opt-in Run sandbox #1486
Goal (from the maintainer): isolation for Runs: Ticket, Spec, Architect, Security and the rest. Not scaling them out, and not Eval Trials, which #1484 covers.
What we've established so far:
Today the worktree is the only boundary. ADR-0013 turns off every Harness's own sandbox, because sessions commit and push through the main checkout's shared .git, outside the worktree. Sessions run with the account's full permissions.
Next: a research note, docs/research/run-isolation.md. It compares hosted providers (Daytona, E2B and similar) with local options (reusing the Trial sandbox for Runs, rootless containers, microVMs) against what a Run needs:
all six Harnesses on subscription logins;
pushing to GitHub and gh;
the shared .git;
toolchains and caches;
Resume;
network for package registries.
It stays needs-triage until that note is in and the shape is decided. #398 and #726 may then fold into it.
The goal is settled: isolation for Runs. Research is in docs/research/run-isolation.md (PR #1515). A grill comes next, in docs/grill-with-docs/1486-run-isolation.md.
What the research found:
Isolate locally; don't buy a hosted sandbox. thirdshift's Trial sandbox (bwrap with its own PID and network namespaces, plus an allowlisting CONNECT proxy) is the same design as Anthropic's sandbox-runtime. The seam already exists: Sessions::within_sandboxed and OnMachine's sandbox: Option<Launch>.
Hosted providers fail on the shared .git, not on price.
They work as "code in, commits out", and a Run delivers through a local Worktree over the shared .git.
Runloop is shutting down, with support ending 2026-11-13.
Cloudflare doesn't guarantee how long an instance runs, and it wipes the disk on sleep.
Cost runs about $0.06–0.24 per sandbox-hour.
Isolation can't protect the Harness login or the push credential. What it buys is a smaller blast radius: other repositories, other Runs, ~/.ssh, the Console on loopback, and sudo. A per-Run GitHub App token (one hour, one repository) is the cheapest big win, and it needs no sandbox.
A writable shared .git lets code run on the host. Git runs config and hooks/ as the user in every worktree. So the options are protecting those paths while the rest of .git stays writable (this needs a live bwrap test), or giving each Run its own clone.
Q1.9: the Antigravity terms question becomes its own issue.
Q1.10: the Codex auth.json question becomes its own issue.
Q1.11: add the glossary terms Run sandbox and Trial sandbox.
Already checked (Research results in the file):
The deny list works under bwrap on thirdshift.app. Commit, push, fetch and worktree add work, writes to config and hooks/ are refused, and only git push -u breaks.
The local Herdr isn't Vercel's sandboxed one.
Next:
Round 2, once Round 1 is answered: the network allowlist and who maintains it, whether github.com is acceptable as a way to send data out, and how many sandboxed Runs fit on the host.
Then /to-spec.
To resume: answer the open *Answer:* lines in the file, then run /grill-with-docs 1486.
changed the title [-]explore usage of thirdshift with a sandbox provider like Daytona or E2B[/-][+]Isolate Runs locally with an opt-in Run sandbox[/+]on Nov 12, 2026
Activity
JacobStephens2 commentedon Oct 27, 2026
Triage notes
Goal (from the maintainer): isolation for Runs: Ticket, Spec, Architect, Security and the rest. Not scaling them out, and not Eval Trials, which #1484 covers.
What we've established so far:
.git, outside the worktree. Sessions run with the account's full permissions.docs/research/sandcastle-fit.mdfound Sandcastle's Daytona and Vercel providers broken for Claude and Codex (its issue The Stages and Lanes pages head a Pickup run and the Run it dispatched identically #936). With a hosted provider, the subscription token leaves the machine.Next: a research note,
docs/research/run-isolation.md. It compares hosted providers (Daytona, E2B and similar) with local options (reusing the Trial sandbox for Runs, rootless containers, microVMs) against what a Run needs:gh;.git;It stays
needs-triageuntil that note is in and the shape is decided. #398 and #726 may then fold into it.JacobStephens2 commentedon Oct 28, 2026
Triage Notes
The goal is settled: isolation for Runs. Research is in
docs/research/run-isolation.md(PR #1515). A grill comes next, indocs/grill-with-docs/1486-run-isolation.md.What the research found:
sandbox-runtime. The seam already exists:Sessions::within_sandboxedandOnMachine'ssandbox: Option<Launch>..git, not on price..git.~/.ssh, the Console on loopback, andsudo. A per-Run GitHub App token (one hour, one repository) is the cheapest big win, and it needs no sandbox..gitlets code run on the host. Git runsconfigandhooks/as the user in every worktree. So the options are protecting those paths while the rest of.gitstays writable (this needs a live bwrap test), or giving each Run its own clone.agy.auth.jsonacross concurrent jobs, which affectsspec.parallelwith Codex.Open the #1486 run isolation grill, round 1
Merge pull request #1515 from JacobStephens2/1486-run-isolation
JacobStephens2 commentedon Nov 12, 2026
Grill in progress: pick up here
This is
ready-for-humanbecause the remaining decisions are design and terms calls, and they need the maintainer.docs/grill-with-docs/1486-run-isolation.md, onmainsince Research run isolation for #1486 #1515.docs/research/run-isolation.md.Status of Round 1 (11 questions):
run-capacity.mdQ1.2. The issue is retitled to match.configandhooks/inside.git(a deny list) rather than a clone per Run.srtas a reference only.auth.jsonquestion becomes its own issue.Already checked (Research results in the file):
worktree addwork, writes toconfigandhooks/are refused, and onlygit push -ubreaks.Next:
github.comis acceptable as a way to send data out, and how many sandboxed Runs fit on the host./to-spec.To resume: answer the open
*Answer:*lines in the file, then run/grill-with-docs 1486.[-]explore usage of thirdshift with a sandbox provider like Daytona or E2B[/-][+]Isolate Runs locally with an opt-in Run sandbox[/+]