Reference: the template in detail
These chapters are the template's reference manual. The lessons link into them constantly, so they are included in full rather than left on GitHub.
| Chapter | Use it for |
|---|---|
| Architecture | the component diagram, trust boundaries and the seven segmented networks |
| Agent-service contract | the stable gateway↔agent routes, authentication order, SSE vocabulary, errors and provenance |
| Security model | identity, sessions, service credentials and what each boundary defends |
| Approvals | the opt-in signed approval: token fields, the layers, transactional integrity |
| Guardrails | the Rust input, tool and output controls, their order and what they do not cover |
| Evaluation | the four suites, deterministic scorers, gates and provenance |
| Observability | trace structure, redaction and user attribution |
| Configuration | every setting, including model endpoints and deprecated NAT-era aliases |
| Test scenarios | manual scenarios several labs run from |
| Extending the template | replacing the sample domain with your own while keeping the trust boundaries |
| Limitations | what the template deliberately does not do |
Three operational documents are linked rather than included:
docs/VERIFICATION.md,
docs/EXTRACTION-CHECKLIST.md
and evaluation/README.md.
The retired NAT implementation is not another current reference tree. It is an
immutable historical artifact at nat-1.9-final; the current reference manual
above describes the canonical Rig/Rust implementation on main. The migration
record is included separately under
Framework replacement as an architectural test.