Architecture Decisions
The project's decision records live under .planning/decisions/ in the repository. This page
indexes the ones that change what a crate consumer or operator sees.
| ADR | Title | Decision | Record |
|---|---|---|---|
| 0033 | One cargo doc bar — ratified, measured, and its residue | Precedence order settles the zero-warning: cargo doc bar as already-ratified, not newly contested | 0033-cargo-doc-warning-bar.md |
| 0037 | The agent route surface is /v1 | Agent API served under /v1; /health, /ready, /openapi.json, /docs stay unversioned | 0037-agent-route-surface-v1.md |
| 0039 | HTTP-served agents carry no Garrison and no Arsenal — a permanent property of the topology | The absence is a permanent topology property, not planned/forward scope | 0039-http-topology-no-garrison-no-arsenal.md |
| 0042 | LLM-native tool calling deferred as a future capability, with a named trigger and owner | Recorded as future capability improvement, not built | 0042-llm-native-tool-calling-deferred.md |
| 0047 | docs/src/appendix/design-and-architecture.md disposition — archived, Sentinel re-anchored, diagram clause withdrawn | Page recorded historical, superseded by docs/src/architecture/ | 0047-architecture-appendix-disposition.md |
| 0048 | paladin-eval as a published composition crate | Classified a composition crate; ADR-0031's default-build invariant does not apply | 0048-paladin-eval-composition-crate.md |
| 0049 | Commissary design, rename rationale, and rejected names | Re-ported under the new vocabulary; the retired name and the rejected alternatives are recorded in the ADR itself | 0049-commissary-design-and-rename.md |
| 0050 | Treasurer reserved for cross-run spend governance | Role and scope reserved for Milestone 14; built in v0.11.0 (Phases 38-43) -- see Treasurer | 0050-treasurer-reservation.md |
| 0051 | Token-economy phases land as clean breaks inside the untagged v0.10.0 | X-03 superseded for Phases 31-33 only, on the operator's 2026-09-14 decision | 0051-token-economy-versioning-x03-supersession.md |
| 0052 | Mid-run Treasurer enforcement attachment point | Metering at the pricing decorator on both run paths; halt at the engine's superstep boundary and the agent loop's token-budget cutoff | 0052-mid-run-treasurer-enforcement.md |
| 0053 | Treasury ledger balance model -- append-only, derived on read | Immutable reserve, settle and release rows; a balance is a sum derived on read, in integer nano-units of one currency | 0053-ledger-balance-model.md |
| 0054 | Tenant identity is server-derived; run reads are tenant-scoped with an operator (Admin) bypass | The tenant comes only from operator configuration; a caller reads only its own tenant's runs, an Admin key reads across tenants | 0054-tenant-scoped-run-reads.md |
| 0056 | Allowance admission model: tumbling UTC windows, check-only admission, every-limit composition, store-deduped notices | Epoch-aligned tumbling windows; admission checks every applicable ceiling and writes nothing; each warn notice is claimed once per window | 0056-allowance-admission-model.md |
| 0057 | Mid-run halt contract: check-only boundary, typed halt cause, fork-as-resume, derived agent budget | A boundary check halts a run resumably with a typed cause; the agent loop gets a token budget derived from the remaining allowance | 0057-mid-run-halt-contract.md |
| 0058 | Rate pacing (the Cadence): a gate-not-retry decorator, fleet pacing through Redis, a fail-open stampede lock | After a provider 429 later calls wait out a gate; the 429 itself is surfaced unchanged; pacing state can be shared through Redis | 0058-rate-pacing-cadence.md |
| 0059 | Legacy Battalion error, retry and timeout surfaces and the stringly PaladinError LLM variant leave the tree as a clean break in v0.11.0 | Superseded for Phase 44 only: the named legacy surfaces are removed outright, with no deprecation shim | 0059-legacy-clean-break-removal.md |
| 0060 | The base-layer wrapper becomes Entity<T>, "node" is reserved for the graph, and the rename lands as a clean break in v0.11.0 | The wrapper is Entity<T> with payload field data; "node" now means only a WarGraph or Campaign vertex | 0060-base-entity-rename.md |
| 0061 | Per-model parameter support -- refuse an explicit value the target cannot honour, omit an auto-selected one visibly | An explicit sampling parameter a model cannot honour is refused at build time; a framework default it cannot honour is omitted with a warning | 0061-per-model-parameter-support-policy.md |
| 0062 | Reasoning effort -- one provider-neutral setting, honoured exactly or refused before HTTP | One ReasoningEffort per request, agent and provider; honoured exactly, substituted only under an explicit fallback, or refused before any request is sent | 0062-reasoning-effort-fail-loud-policy.md |