编辑 | blame | 历史 | 原始文档

Execution Policy

Runtime capabilities

  • SubAgents: <supported | unsupported | unknown>
  • Shared workspace: <supported | unsupported | unknown>
  • Isolated worktrees: <supported | unsupported | unknown>
  • Maximum concurrent threads: <project/runtime value>

Modes

  • inline: main-thread execution and default mode.
  • subagent-readonly: isolated read-only analysis or review.
  • subagent-shared: serialized scoped write in the shared workspace.
  • subagent-worktree: isolated parallel implementation with disjoint ownership.

Selection gates

Use a SubAgent only for independently describable work with stable inputs, structured output, bounded scope, low file overlap, and positive isolation/parallel value. Start the minimum required threads.

Concurrency and ownership

  • One writer owns each file/module per phase.
  • Parallel write scopes are disjoint.
  • Shared manifests, lockfiles, migrations, routing, and integration files have one owner.

Failure and fallback

  • Return partial evidence when possible.
  • <retry/escalation policy>
  • Degrade to sequential inline execution when isolation is unavailable.