Skip to content

feat(conductor): route code tasks through a sandbox project - #394

Merged
jrothrock merged 1 commit into
mainfrom
feat/conductor-code-tasks-sandbox
Sep 3, 2026
Merged

feat(conductor): route code tasks through a sandbox project#394
jrothrock merged 1 commit into
mainfrom
feat/conductor-code-tasks-sandbox

Conversation

@jrothrock

Copy link
Copy Markdown
Collaborator

The conductor architecture is Conductor → Worker → Sandbox project (each sandbox has its own Claude). A worker runs on the HOST and is not sandboxed, so it must not write/run/test a repo's code directly — but it was: e.g. the "add + scan core-agent" global chat cloned the repo to /tmp and explored the code on the host instead of spinning up a sandbox (confirmed from the conversation logs — it never spawned a worker or created a project for the code part).

Change

Make the routing explicit in both places a conductor/worker reads:

  • corral-api/SKILL.md — a new "CODE TASKS RUN IN A SANDBOX" section: for any task that edits or executes a repo's code (feature, bug, issue, tests, get an app running, or exploring code to plan such a change), the worker creates a project via POST /projects/create with the coding task as the sandbox prompt, then supervises it. Non-code work (inspect state, logs/PRs, flows, analysis) stays on the host.
  • workerContractPreamble — the same rule injected into every worker prompt, so it holds even without the skill.

Prompt/skill text only; the skill ships via the asset bundle. No code build needed; worker preamble tests still pass.

🤖 Generated with Claude Code

The conductor architecture is Conductor → Worker → Sandbox project (each
sandbox has its own Claude). A worker runs on the HOST and is NOT sandboxed,
so it must not write/run/test a repo's code directly — but it was: e.g. the
"add + scan core-agent" chat cloned the repo to /tmp and explored the code
on the host instead of spinning up a sandbox.

Make the routing explicit in both places a conductor/worker reads:
- corral-api SKILL.md: a new "CODE TASKS RUN IN A SANDBOX" section — for any
  task that edits or executes a repo's code (feature, bug, issue, tests, get
  an app running, or exploring code to plan such a change), the worker creates
  a project via POST /projects/create with the coding task as the sandbox
  `prompt`, then supervises it; non-code work (inspect state, logs/PRs, flows,
  analysis) stays on the host.
- workerContractPreamble: the same rule injected into every worker prompt, so
  it holds even without the skill.

Prompt/skill text only; the skill ships via the asset bundle. No code build
needed; worker preamble tests still pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jrothrock
jrothrock merged commit 1f192d2 into main Sep 3, 2026
1 check passed
@jrothrock
jrothrock deleted the feat/conductor-code-tasks-sandbox branch September 3, 2026 18:19
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