Final phase of #2584 (ADR-1239 Codex-binding amendment). execute-phase now negotiates dispatch.isolation and dispatches through the matching adapter, so a wave's independent plans run concurrently on six runtimes instead of one — with no runtime=== branch in the scheduler. harness-worktree passes the host's declared isolation flag (claude, cursor); orchestrator-worktree creates the worktree via the Phase-2 verb and spawns the executor into it with the resolved argv/cwd (codex, opencode, kimi, kimi-code); none stays sequential. Undeclared/unknown/unresolvable isolation degrades to none — never an unisolated parallel run. Fixes two shipped Phase-2 descriptors that per-host research found would fail at spawn: kimi lacked its headless flag (would launch the interactive TUI and hang the orchestrator), and kimi-code named a non-existent binary (Kimi Code installs as 'kimi'). Adds the worktree-path root confinement Phase 2 deferred here, and leading-dash guards on the resolver's prompt/cwd matching the existing git-argument guard. Closes #2627 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -4013,10 +4013,14 @@ Typed mapping (agent_type-capable schema only):
|
||||
inherited, or unsupported values; do not invent one-off effort literals in
|
||||
workflow prose.
|
||||
- \`fork_context: false\` by default — GSD agents load their own context via \`<files_to_read>\` blocks
|
||||
- \`Task(isolation="worktree")\` / \`Agent(isolation="worktree")\` → no direct Codex mapping.
|
||||
Codex \`spawn_agent\` does not create or bind a git worktree automatically.
|
||||
Workflows that require this isolation must fail closed or use an explicit
|
||||
manual worktree protocol before spawning (#3360).
|
||||
- \`Task(isolation="worktree")\` / \`Agent(isolation="worktree")\` → no direct \`spawn_agent\` mapping,
|
||||
but Codex declares \`dispatch.isolation: orchestrator-worktree\` (#2584). Codex
|
||||
\`spawn_agent\` still does not create or bind a git worktree; instead GSD itself
|
||||
creates the worktree and process-spawns the executor into it with
|
||||
\`codex exec --cd <dir>\`, performing every git operation on the executor's behalf
|
||||
(its \`workspace-write\` sandbox makes \`.git\` read-only). Workflows must therefore
|
||||
never fabricate a manual worktree protocol — route through the negotiated
|
||||
isolation adapter, which still fails closed for hosts declaring \`none\` (#3360).
|
||||
|
||||
Generic-agent workaround (multi_agent_v1 schema — NO agent_type field):
|
||||
When only the generic \`multi_agent_v1\` schema is available, typed GSD agent dispatch
|
||||
|
||||
Reference in New Issue
Block a user