Skip to content

Research run isolation for #1486 - #1515

Merged
JacobStephens2 merged 2 commits into
mainfrom
1486-run-isolation
Oct 28, 2026
Merged

JacobStephens2 merged 2 commits into
mainfrom
1486-run-isolation

Conversation

@JacobStephens2

Copy link
Copy Markdown
Owner

Summary

Research for #1486: how to isolate a Run, and whether a hosted sandbox provider (Daytona, E2B and the like) is the way to do it.

 docs/research/
+└── run-isolation.md   # Trial sandbox vs containers, gVisor, microVMs, hosted providers
  • Recommendation: isolate Runs locally by reusing the Trial sandbox's launcher. Make it opt-in per Run kind, starting with the Security run. Don't buy a hosted sandbox.
  • Why hosted providers fail: every one works as "code in, commits out", and a Run delivers through a local Worktree over the shared .git. Their terms are also unsettled for the subscription logins.
  • What no sandbox can protect: the Harness login and the push credential. A per-Run GitHub App token is the biggest single win, and it needs no sandbox.
  • ADR-0013: amend rather than replace it. The worktree stays the default boundary, with an opt-in outer sandbox that thirdshift controls.
  • Open questions: §8 lists them for the grill on Isolate Runs locally with an opt-in Run sandbox #1486.

Evidence

Docs only. Every claim cites a primary source. The seams it names were checked at src/session.rs:170 (within_sandboxed) and src/session.rs:472 (OnMachine).

Merge Danger

Door: two-way

Blast Radius: none. This is a research note, and no code or behaviour changes.

@JacobStephens2
JacobStephens2 merged commit 7f4d7be into main Oct 28, 2026
7 checks passed
@JacobStephens2
JacobStephens2 deleted the 1486-run-isolation branch October 28, 2026 22:04
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant