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

SystemBlueprint Contract

ai-agent-system-design returns the only design source accepted by Render and Validate.

schema_version: 1
blueprint_id: <snapshot id plus digest>
run_id: <run id>
input_snapshot_id: <snapshot id>
status: success | blocked
project_summary: <concise summary>
complexity:
  level: small | moderate | complex
  reasons: []
responsibility_coverage:
  - domain: <domain>
    disposition: dedicated-agent | combined-agent | workflow-owned | not-applicable
    owner: <agent or workflow or null>
    rationale: <evidence-based reason>
    evidence: []
agents:
  - name: <hyphen-case agent name>
    primary: true | false
    role_exists_because: <independent long-term responsibility>
    execution_default: inline | either | subagent-readonly
    source_evidence: []
    definition: {}
project_skills:
  - name: <project-prefixed skill name>
    source_evidence: []
    definition: {}
workflows:
  - name: <hyphen-case workflow name>
    source_evidence: []
    definition: {}
orchestration:
  level: inline | coordinated | isolated | parallel
  rationale: []
  rules_in_agents_md: []
  policies:
    - name: <policy filename>
      required_by: []
      definition: {}
agents_md:
  project_overview: <text>
  primary_agent: <agent name>
  routing: []
managed_output:
  ai_directory: .ai
  agents_md_start: "<!-- AI-AGENT-SYSTEM:START -->"
  agents_md_end: "<!-- AI-AGENT-SYSTEM:END -->"
traceability: []
assumptions: []
warnings: []
blockers: []

Exactly one Agent must have primary: true. Agent-role existence and SubAgent execution are separate fields: execution cost cannot justify deleting a durable role. Every rendered component must appear here and trace to snapshot evidence or an explicit assumption. Warning acceptance belongs only to BootstrapRun.allowed_warning_codes; Design cannot authorize a warning.