---
name: ai-agent-system-render
Render the blueprint exactly into staging. Make no design decisions and write nothing to the target repository.
This phase is orchestrator-gated. Require a matching BootstrapRun, complete SystemBlueprint, and owned staging marker. Without all three inputs, return blocked and write nothing. Explicit direct invocation does not bypass this input gate.
Read:
../../shared/contracts/system-blueprint.md../../shared/contracts/render-result.md../../shared/policies/ownership-and-rebuild.md../../shared/templates/AGENTS.generated.md../../shared/templates/agent.md../../shared/templates/skill.SKILL.md../../shared/templates/workflow.md../../shared/templates/execution-policy.md../../shared/templates/subagent-contract.md../../shared/templates/context-policy.md../../shared/templates/merge-policy.md../../shared/templates/bootstrap-manifest.jsonConfirm that the BootstrapRun has a resolved initialize/rebuild mode, the blueprint is complete, the staging marker matches the run ID and repository root, and the staging directory contains no prior rendered output. Use BootstrapRun.mode as the manifest generation_mode.
Completion criterion: all output paths resolve inside staging and every blueprint component maps to one template/schema.
Create only:
<staging-root>/
AGENTS.generated.md
.ai/
bootstrap-manifest.json
agents/
workflows/
orchestration/
.agents/
skills/
Render project-specific content; remove unused placeholders and example references. Write UTF-8 text. Generate a manifest that binds run_id and blueprint_id, declares the complete .ai directory and each generated .agents/skills/<name> directory managed, then records every logical target file path relative to the repository root. Record AGENTS.generated.md as target path AGENTS.md.
Completion criterion: every blueprint component has exactly one staged file and no staged file lacks a blueprint source.
Hash and list every generated file, record counts by component type, and return RenderResult. Report warnings without modifying the blueprint.
Completion criterion: the manifest, file list, counts, and hashes agree with the staged tree.
AGENTS.generated.md limited to one managed block with current markers.