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

---
name: ai-agent-system-render

description: Internal render phase for ai-agent-system-bootstrap that materializes an accepted SystemBlueprint as AGENTS.generated.md and a complete .ai tree inside an authorized staging area. Use only with a bootstrap run, blueprint, and staging marker; never write directly to the target repository.

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.

Required suite material

Read:

Rendering

1. Verify inputs

Confirm 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.

2. Materialize output

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.

3. Return the result

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.

Guardrails

  • Keep AGENTS.generated.md limited to one managed block with current markers.
  • Keep project-local Skills valid Codex Skills with YAML frontmatter.
  • Use the unified execution modes and return contract defined by the schemas.
  • Stop on missing blueprint data; do not fill gaps from the old Agent Team or generic boilerplate.