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

Orchestration Definition Schema

Keep orchestration capability in every generated system. Put lightweight selection, handoff, single-writer, integration, and sequential-fallback rules directly in AGENTS.md and workflows. Create .ai/orchestration only when separate policies improve execution clarity.

Available policy files:

.ai/orchestration/execution-policy.md
.ai/orchestration/subagent-contract.md
.ai/orchestration/context-policy.md
.ai/orchestration/merge-policy.md

Selection by project need:

  • inline: no orchestration directory is required; keep the lightweight rules in AGENTS.md and the workflow.
  • coordinated: create execution-policy.md when several Agents need non-trivial execution-mode selection.
  • isolated: also create subagent-contract.md and context-policy.md when isolated review, context separation, or durable task briefs are used.
  • parallel: also create merge-policy.md when parallel writers, worktrees, synchronization, or multi-output integration are used.

Generate only the files named in SystemBlueprint.orchestration.policies. Never emit an empty directory.

Execution policy

Define concrete modes, default mode, SubAgent eligibility gates, runtime capabilities, concurrency limit, retry/partial-return behavior, and sequential fallback.

SubAgent contract

Define the immutable Task Brief and the unified return fields from subagent-execution.md.

Context policy

Define source-of-truth artifacts, minimum context, assumption recording, versioning, change propagation, stale-work cancellation/restart, and optional run artifacts.

Merge policy

Define file/module ownership, isolation convention, merge order, conflict decisions, rejected recommendations, required integration checks, cleanup, and final completion authority.