Architecture¶
The one-paragraph model: markdown files are the source of truth, but not all files are equal — every path has a data class, from canonical notes to quarantine to append-only evidence. A deterministic CLI owns every mutation and check; it never invokes a model, holds no model credential, and makes no network call in its verification path. Where judgment is needed, commands run in two phases bound by a task envelope; any supplier answers; the CLI validates and applies by rule, re-verifies what it touched, and rolls back on failure. kb verify in CI is the contract.
untrusted inflow (quarantine) judgment supplier
URLs → staging/ ──assess──► task ───► (agent | council | human)
│ │
┌───── discard queue promote ◄─ envelope-bound answer
▼ │ │
(recommendation) (human governs) ▼
concepts/ ──cards──► flashcards/
│
query · context · sources · support · audit · export · verify ◄── CI
Standing invariants¶
kbnever calls a model — judgment is supplied through the task contract.kb verifynever touches the network — network verbs record evidence; verify checks the records.- Files are canon; derived layers are rebuildable and never the source of truth.
- Frontmatter lifecycle only at note granularity.
- Live notes stay lean — history lives in git.
- No unverifiable metadata.
- Internal citations are navigation, never corroboration.
- No path around the gate, on any interface.
The full record¶
The complete architecture — data classification, the write state machine, the protocol envelope, ten ADRs, the design specs, and the adversarial council reviews with per-finding dispositions — is versioned in the repository and written to be read:
- Architecture & write paths
- ADRs
- Design specs
- Council reviews & dispositions
- Why "Chancery" — the name, mechanism for mechanism
- The launch writeup