Architecture
Thirteen laws. Twelve layers.
The hierarchy
Reality is not in the database.
Every claim the system makes sits on exactly one of twelve layers, and no subsystem may collapse two of them. An observation is not a claim. A claim is not a belief. A simulation is not a prediction. A decision is not an execution.
The separations are the product. Collapse observation into claim and you can no longer recall every conclusion that rested on a connector that was misconfigured for a month. Collapse decision into execution and there is no moment a person could have said no.
01
Reality
The territory. Never stored, never claimed. The system holds maps, and every honesty tag in the product is an admission of the gap between map and territory. No API returns Reality; nothing is verified because it is true, only because it was observed.
Nothing is stored at this layer, so there is nothing here to own or to forbid.
02
Observation
An act of measurement: which instrument, at what time, over what scope, at what fidelity. A connector read, a ledger step, a human attestation, a document ingest.
Ownsprovenance of measurement — source, timestamp, method, coverage.
May notinterpret itself. "The API returned terms: NET45" is an observation; "Acme offers favourable terms" is a claim.
03
Claim
An assertion by a named asserter, carrying claim_status, evidence kinds, an expiry and a half-life.
Ownswho asserted what, at what confidence ceiling, on what evidence.
May notexceed what its evidence supports (Principles 3 and 4).
04
Belief
A running posterior over many claims about one subject, keyed (org, subject_type, subject_id, predicate).
Ownsaggregate position, uncertainty, decay, contradiction state.
May notpresent as a fact. A belief without uncertainty is not a belief.
05
World Model
A coherent selected set of beliefs, plus structure — entities, relations, constraints, dynamics — assembled so it can be run forward.
Ownsscope, assumptions, coherence, and the belief set it stands on.
May notcontain mutually contradictory beliefs. Coherence is the entry requirement, and it is the entire reason this layer exists.
06
Simulation
The forward run of a model — many possible futures.
Ownsthe distribution, the model version, the seed that reproduces it.
May notbe wrong. A simulation is arithmetic over assumptions; only a prediction can be falsified.
07
Prediction
One committed, falsifiable statement selected from a simulation.
Ownsthe predicted quantity, the resolution criterion, the resolution date, and the simulation it came from.
May notbe written without saying what would falsify it, or be revised after the fact (Principle 21). Immutable once registered in our repository, and in the service we run once a pending migration is applied.
08
Decision
A governed choice among alternatives.
Ownsalternatives considered, assumptions relied on, supporting and conflicting beliefs, approvals, constraints, rollback strategy, audit lineage.
May notconsume raw observations. A decision consumes models and predictions — that is the coupling reduction the hierarchy buys.
09
Execution
The governed write into a system of record.
Ownsthe real-world act, its ledger proof, its reversibility.
May notoccur without approval (Principle 8).
10
Outcome
What actually happened after an execution. The only falsifier in the system.
Ownsobserved result, its observer, when it was observed.
May notbe inferred. An outcome nobody observed is a prediction.
11
Calibration
Scoring predictions against outcomes.
Ownsproper scoring rules, reliability, sharpness, drift.
May notupdate a belief. It produces findings; a system that tunes its beliefs to improve its own score is optimising a metric, not tracking reality.
12
Belief Update
Revising a posterior on observed evidence.
Ownsthe revision, and the cause that justified it.
May nottake a model's word for it. Evidence only.
The laws
What may never change about it.
Each law carries the question it was written to settle. A proposal that cannot answer them is not built, whoever asked for it.
Some of these laws state a permanence property. Where one does, the sentence carries the condition under which it holds today. The laws are the rules our code is written under; the register is what says whether a given rule has arrived in the service we run, and the two are not the same question.
Law 1
The epistemic hierarchy is the architecture
Twelve layers. No subsystem may collapse two of them, and no layer may reach past its neighbour. Every capability is a layer over these primitives, never a parallel stack.
The testif a proposed subsystem cannot be placed on exactly one layer, it is a parallel system and the answer is no.
Law 2
Confidence cannot emerge from abstraction
Principle 14
Derived intelligence may never carry a higher confidence than the weakest evidence from which it was derived. Summarising, clustering, abstracting and re-phrasing are lossy with respect to certainty: they may lose confidence and may never create it.
The only legitimate way to gain status is a human, through the approval gate.
Law 3
Code computes the score; a model never grades itself
Principle 5
Confidence, severity, calibration and quality scalars are computed by deterministic code from structured inputs. A model may propose findings. It may never emit the number that judges its own output.
Law 4
Simulations explore; predictions commit
Principle 22
A simulation produces a distribution and cannot be wrong — it is arithmetic over assumptions. A prediction is one committed statement that can be wrong, and that is its entire purpose.
Only predictions may be scored. Only scored predictions may improve organizational knowledge.
Law 5
You cannot move the goalposts
Principle 21
A prediction is falsifiable only if its resolution criterion and resolution date were fixed before the outcome was knowable. Enforced by the absence of a column to move: predictions are append-only, resolution is a separate record, and an outcome may never predate its prediction, which holds in our repository and in the service we run once a pending migration is applied.
Law 6
Honest and useful, not merely honest
Principle 23
Calibration is a hygiene property, not a quality one. A forecaster that always predicts the base rate is perfectly calibrated and useless.
Calibration is therefore never reported alone — always with sharpness and capture rate. The objective is maximise sharpness subject to calibration.
Law 7
Measurement never steers itself
Calibration reports; it does not self-tune. A system that adjusts its beliefs to improve its own score is optimising a metric rather than tracking reality, and it will chase noise forever.
Outcomes update beliefs directly, as evidence. Model recalibration is a governed change and goes through the approval gate.
Law 8
Every real write passes a human
Principles 7, 8
No autonomous write to a system of record. Propose → approve → execute, with separation of duties. The registry is the gate: an agent may only request from a locked, reviewed set.
Law 9
Tenancy is the database's job
Principle 10
Isolation is enforced by RLS on the table, not by a WHERE clause someone remembered to write. Org scope derives from current_org_id(), never from a caller-supplied parameter. SECURITY DEFINER requires written justification.
Two P0 cross-tenant leaks have already been caused by violating this.
Law 10
Anything that indicts a party may not be edited by that party
Principle 17
Ledger, audit log, claim journal, belief revisions, predictions, outcomes: all append-only, which holds in our repository and in the service we run once a pending migration is applied. A record that can be rewritten is not a record.
Law 11
One rule, two enforcement points, one test that they agree
Principle 9
A rule that lives only in the application is a rule an attacker skips by not using the application. Load-bearing rules are enforced in TypeScript and in Postgres, seeded from one source, with a drift test.
Law 12
Absence is stated, never implied
Principle 6
When the system does not know something, it says so in the same place it would have said the answer. "Not yet measurable" is a real answer. A zero that means "unmeasured" reads as "perfect", and that is a lie the architecture must not tell.
Law 13
Delete last
Principle 19
A replacement must be proven in production before the thing it replaces is removed. Deletions are their own change, never a side effect of an addition.
Negative space
What this page will not tell you.
Our repository also holds an invariant register — every property that must never break, each naming the test or constraint that enforces it — an index of every architecture decision with the files it governs, and a layer-by-layer account of what is not finished.
None of it is on this page, and the omission is deliberate. Read together, those documents are a map of where each control lives. We already withhold the production column of our claims register for the same reason: a control statement beside the word no tells a reader which control to go looking for. A published invariant register, diffed against a probe of the running service, says the same thing less directly.
The build step that compiles this page refuses to publish a repository path, an environment variable, a migration number, a table name or an invariant id. It fails rather than removing them quietly, because a page that silently drops half a sentence is how a control map ships one line at a time.
Under an NDA, in a technical review, we go through all of it.
- Published here
- 13 laws, 12 layers
- The category argument. No file, flag or table named.
- Published at /claims
- Each control statement, and its status in our repository
- The production column follows our next production verification.
- Under NDA
- The invariant register, the decision index, the open findings
- Shared in a technical review, with the evidence.
The register
Every control statement we make, with its status.
The architecture says what may never break. The claims register says, claim by claim, whether it currently holds in our repository — including the ones that do not.