Architecture overview
Status: proposed Scope: Vouchor runtime and deployment Last reviewed: 2026-11-09
Context and drivers
Vouchor turns a natural-language request into a batch of verified, approved, read-back-confirmed actions. The architecture is driven by the six ATEP invariants (blueprint) and by three owner requirements: everything tested, everything runnable locally, and deployable to any cloud through FOSS IaC (CON-001, CON-003, NFR-009).
Key decisions: ADR-002 toolchain, ADR-003 orchestration, ADR-004 state, ADR-005 migrations, ADR-006 deployment, ADR-007 idempotency markers, ADR-008 sandbox.
Boundaries and views
- Context: system-context.md
- Containers: containers.md
- Components: components.md
- Data flow: data-flow.md
- Trust boundaries: security-and-trust-boundaries.md
The pipeline in one picture
flowchart LR
R[Request] --> D[1 Discovery<br/>+ memory recall]
D -->|untrusted pointers| V[2 Ground-truth verifier]
V -->|verified attributes| S[3 Batch staging]
S --> G{4 Consequence gate}
G -->|READ_ONLY| X[5 Idempotent executor]
G -->|CONSEQUENTIAL: one interrupt| H((Human))
H -->|approve / edit / reject| X
X -->|tier N fails| X
X --> P[6 Report + memory distiller]
Quality attributes (priority order)
- Correctness of side effects — no unapproved and no duplicate actions (
BR-001,NFR-004). - Durability — every step checkpointed in Postgres (
FR-012,NFR-006). - Security and privacy — sandboxing, least-privilege OAuth scopes, secrets outside Git (
NFR-007,BR-006). - Portability — Compose locally, Helm everywhere else (
NFR-009). - Operability — structured logs, OTel traces, health probes (
NFR-008).
Change and review
Owner: maintainer (STK-001). Review at every phase exit gate and whenever an ADR is added or superseded.