Status: canonical Owner: Platform Engineering Last Updated: 2026-03-04 Source of Truth: This directory.
Reusable blueprint for initializing agent-first repositories with docs-as-governance, blast-radius control, and evidence-based delivery.
- Provides a production-oriented blueprint for agent-driven software delivery.
- Ships a docs-as-system-of-record structure with enforceable governance and architecture rules.
- Adds optional orchestration, role-specialized execution (
planner,explorer,worker,reviewer), safety gates, and verification automation.
- Replace ad-hoc coding sessions with repeatable, auditable, high-quality execution.
- Keep agent velocity high without sacrificing correctness, safety, or maintainability.
- Make execution quality demonstrable through policy checks, evidence trails, and metrics.
- Faster delivery loops via
verify:fast+ compact runtime context. - Stronger reliability via
verify:full, risk-tier routing, and approval gates. - Session continuity by design: proactive context rollover + structured handoffs between isolated runs.
- Reduced content rot: canonical docs stay aligned with behavior through required checks and policy manifests.
- Better handoff and team alignment via canonical docs, plan metadata, and evidence indexes.
- Clearer operational posture: practical structure for correctness and rollback instead of prompt improvisation.
Use the least process that still protects correctness.
Lite: manual plan loop (active -> completed) +verify:fast/verify:full.Guarded: orchestrator sequential execution with risk/approval gates.Conveyor: parallel/worktree execution with branch/PR automation.
flowchart TD
A[Task intake / Plan document] --> B[Parse metadata: scope, deps, risk, autonomy]
B --> C[Compute effective risk tier]
C --> D{Risk tier}
D -->|low| E[Worker stage]
D -->|medium| F[Planner -> Worker -> Reviewer]
D -->|high| G[Planner -> Explorer -> Worker -> Reviewer]
E --> H[Completion gate: is plan marked complete?]
F --> H
G --> H
H -->|Not complete| I[Continue sessions / handoff when context low]
H -->|Complete| J[Run validation lanes]
J --> K[Curate evidence + write evidence index]
K --> L[Finalize: move plan to completed + snapshot]
L --> M[Optional atomic commit / PR workflow]
Start with Lite by default, then scale up only when risk or workload demands it.
- Keep work in
docs/exec-plans/active/. - Run
verify:fastduring implementation. - Run
verify:fullbefore completion. - Use
Guarded/Conveyoronly for higher-risk or dependency-heavy slices.
- Sessions are proactively rolled over before context gets too low (
contextRemaining <= threshold). - Every session must write a structured result payload (
ORCH_RESULT_PATH) including numericcontextRemaining. - Handoffs are written to disk and reused by the next session, so continuation is explicit and auditable.
- Runtime context is recompiled from canonical docs (
docs/generated/agent-runtime-context.md) to reduce drift and hallucination risk.
- Governance as working manual:
AGENTS.md, architecture docs, and governance rules define constraints and expectations.- The repository itself is the operating manual for humans and agents.
- Role-specialized execution:
- Risk-adaptive role routing runs focused stages (
planner,explorer,worker,reviewer) instead of one generic agent loop. - Each role runs in an isolated session with explicit handoff metadata.
- Risk-adaptive role routing runs focused stages (
- Two execution paths:
- Fast manual path for short tasks and direct coding loops at inference speed.
- Futures path for larger work: define in
docs/future, promote to active plans, optionally execute with orchestration, and complete with closure/evidence.
- Evidence-first delivery:
- Non-trivial work leaves clear metadata, validation traces, and done-evidence references.
- Team members can inspect progress, decisions, and status directly in-repo.
- Start in plan mode and lock decisions: app scope, stack/runtime/tooling, invariants, and first acceptance slices.
- Define futures and active plans: strategic work goes through
future -> active -> completed; quick/manual work can runactive -> completed. - Execute and close: run manual or orchestrated loops, use
verify:fastduring implementation, runverify:fullbefore completion/merge, and keep docs plusDone-Evidencecurrent.
- It keeps inference-speed execution while staying structured.
- It supports both rapid delivery and strategic multi-plan execution.
- It is team-grade: auditable, reviewable, and handoff-ready by default.
| Command | Use When |
|---|---|
npm run plans:verify |
You want a fast plan-state check only. |
npm run verify:fast |
You want standard local preflight before grind/resume/commit. |
npm run verify:full |
You are preparing merge-level validation. |
npm run automation:run:grind |
You want supervised low-risk grind until queue is stable/drained. |
npm run automation:run:grind:medium |
Same as above, but allow medium risk plans too. |
npm run automation:run:grind:high |
Same as above, but allow medium+high risk plans too. |
npm run automation:resume:grind |
Continue the last run in supervised loop mode. |
npm run automation:resume:quick:non-atomic |
Unblock continuation when atomic commit boundaries are temporarily not feasible. |
npm run automation:audit |
Inspect blocked/failed/pending plans and suggested next steps. |
For full command contracts, flags, and policy behavior, use template/docs/ops/automation/README.md.
Canonical policy and lifecycle docs:
template/docs/ops/automation/LITE_QUICKSTART.mdtemplate/docs/ops/automation/OUTCOMES.mdtemplate/docs/ops/automation/INTEROP_GITHUB.mdtemplate/docs/ops/automation/PROVIDER_COMPATIBILITY.mdtemplate/docs/governance/rules.mdtemplate/docs/governance/policy-manifest.jsontemplate/docs/PLANS.mdtemplate/PLACEHOLDERS.md
- Copy
template/contents into a new repository root. - Replace placeholders from
PLACEHOLDERS.md. - Add required scripts to
package.json(context:compile,docs:verify,conformance:verify,architecture:verify,agent:verify,eval:verify,blueprint:verify,plans:verify,verify:fast,verify:full,perf:baseline,perf:after,outcomes:report,interop:github:export,interop:github:export:write,automation:run,automation:run:medium,automation:run:high,automation:run:parallel,automation:run:parallel:medium,automation:run:parallel:high,automation:run:grind,automation:run:grind:medium,automation:run:grind:high,automation:run:parallel:grind,automation:run:parallel:grind:medium,automation:run:parallel:grind:high,automation:resume,automation:resume:medium,automation:resume:high,automation:resume:parallel,automation:resume:parallel:medium,automation:resume:parallel:high,automation:resume:grind,automation:resume:grind:medium,automation:resume:grind:high,automation:resume:parallel:grind,automation:resume:parallel:grind:medium,automation:resume:parallel:grind:high,automation:resume:quick:non-atomic,automation:audit). - Run
./scripts/check-template-placeholders.sh. - Run
./scripts/bootstrap-verify.sh.
Use this when initializing a new repo from the blueprint:
- Create a new repository using this GitHub template.
- Enter the repository from CLI (
cd <new-repo>). - Start the agent in plan mode and define the app before any file edits.
- Lock decisions for product scope, first features, stack/runtime, and core invariants.
- After decisions are approved, execute bootstrap: copy
template/into repo root, replace placeholders fromPLACEHOLDERS.md, and wire required scripts. - Seed strategic work in
docs/future/; track quick/manual fixes directly indocs/exec-plans/active/. - Run
./scripts/check-template-placeholders.shuntil clean. - Run
./scripts/bootstrap-verify.sh.
Use two prompts in sequence.
Prompt 1 (planning kickoff, before any file copy):
We are starting a new app from this Agent Blueprint repository template.
Stay in plan mode and do not edit files yet.
Help me decide and lock:
1) what the app does and who it serves,
2) which stack/runtime/tooling we will use,
3) core invariants and non-negotiables,
4) first implementation slices and acceptance criteria,
5) initial futures backlog with dependencies/risk tiers.
Output a decision-complete implementation plan I can approve.
Prompt 2 (bootstrap + execution handoff, after planning approval):
Approved. Execute bootstrap now:
1) copy template files into repository root,
2) replace placeholders from PLACEHOLDERS.md,
3) wire required package scripts,
4) seed strategic plans in docs/future and quick fixes in docs/exec-plans/active as appropriate,
5) run ./scripts/check-template-placeholders.sh,
6) run ./scripts/bootstrap-verify.sh.
Then start execution using automation:run (or automation:run:parallel when dependencies allow).
Keep docs, metadata, and Done-Evidence updated as work progresses.