Capstone Architecture Template
Save this as: /capstone/capstone-architecture.md. Freeze at end of Lesson 10.2.
Use it again: at the top of every build session in Lessons 10.3–10.4. Amendments go below Section 6 and at the end of the document, dated and signed.
Charter → architecture is disciplined.
No new claims without a charter predecessor; no charter claim without an architectural consequence. The charter is the what and who; this architecture is the how.
Header
/capstone/capstone-charter.md frozen on the date above.
/capstone/security-posture.md last dated on the date above.
Section 1 — Components, in detail
One sub-block per component in the charter. Each answers the same six fields.
Shape (tick one):
☐ scheduled/automated ☐ coding/build ☐ research-or-inbox ☐ custom skill/plugin
Trigger (what starts this component):
Inputs (what it reads, from where):
Outputs (what it writes, to where):
Model and routing (cloud / local; which data class goes where):
Failure mode (most likely failure and what happens then):
Shape (tick one):
☐ scheduled/automated ☐ coding/build ☐ research-or-inbox ☐ custom skill/plugin
Trigger:
Inputs:
Outputs:
Model and routing:
Failure mode:
Shape (tick one):
☐ scheduled/automated ☐ coding/build ☐ research-or-inbox ☐ custom skill/plugin
Trigger:
Inputs:
Outputs:
Model and routing:
Failure mode:
Section 2 — System diagram
Paste or sketch diagram here. Include: three component boxes, shared-state arrows with format labels, trust-boundary dashed outline, kill-switch scope.
e.g., system-diagram.png, .svg, or .mmd.
Section 3 — Shared state
Without shared state, the components are three unrelated scripts. With it, they are a system.
Shared-state schema (one row per field):
| Field | Written by | Read by | Data class | Notes |
|---|---|---|---|---|
| run_id | Component 1 | Components 2, 3 | public | ISO timestamp, used as filename |
Section 4 — Kill switch
If you cannot name it in one sentence, the system is not safe to operate.
Kill switch description (one sentence):
What it halts (components, schedules, in-flight work):
Target time-to-halt (committed):
How I’ll test it (in Lesson 10.4):
Section 5 — Cost, budget, and measured spend
| Metric | Pre-flight estimate (L10.2) | Measured (end of L10.4 window) |
|---|---|---|
| Cloud model spend (USD) | ||
| API spend (non-LLM) | ||
| Electricity / local compute | ||
| Projected monthly total |
If the measured value exceeds the budget, name what you will change (reduce schedule, move a component to local, tighten prompt, remove a component):
Section 6 — Posture fit and amendments
For each posture element, confirm the capstone lives inside it. Tick the box if clean; write detail if not.
If any answer in 6.1 is “no,” write the amendment here, then re-date the posture document. Narrowing amendments do not need reviewer sign-off; enlarging amendments do.
Posture re-date: /capstone/security-posture.md re-dated to .
Amendments to this architecture
Made during the build (Lessons 10.3–10.4) when reality collides with the design. Narrowing amendments do not require reviewer sign-off; enlargement amendments do.
This template accompanies Lesson 10.2 of AI Architect Academy. The six sections, the shared-state contract, and the kill switch are concept. Specific components and tool choices are recipe.