The Core: Definitions and the Decision Function
Step 3 of the research plan. Draft of 17 November 2026, revised 22 November 2026 for the decisions in Decisions and Status (section 4, F8–F15). Mathematics only, no syntax. Every definition here is tested against the cases (C001–C069) by the reference interpreter; a case the core cannot decide sends us back here.
The language does one thing: given a request, find the rules that touch its entities, combine them, and decide. This document defines exactly what each of those words means.
1. The Building Blocks
1.1 Entities and Their Hierarchy
- Entity types
T: Person, Position, Group, Agent, Asset, AssetClass, Action, ActionClass, UseCase, RecipientClass, Organisation. - Entities
E: a finite set; every entityehas one typeτ(e). - Above
⊑: a partial order onE(reflexive, transitive, antisymmetric), the union of three kinds of link closed under transitivity: - part of: column
⊑table⊑data product⊑system; - member of: position
⊑group, team⊑department; - instance of:
google.com ⊑ SearchEngine ⊑ OutsideSite,read ⊑ Access. - Up-set
↑e = { e′ ∈ E | e ⊑ e′ }, the entity and everything above it. Finite, becauseEis finite.
1.2 Two Ordered Scales
- Form
F, a finite lattice (decision 2, 22 November 2026). Rows and summaries are not comparable: a summary is not "more" than pseudonymised rows, nor less.
metadata ⊑ count ⊑ aggregated ⊑ anonymised ⊑ pseudonymised ⊑ raw
aggregated ⊑ summarised ⊑ raw
⊥_F = metadata, ⊤_F = raw. ⊓ (meet) is the greatest lower bound; the meet of a row form and summarised is aggregated. The lattice is a parameter: a domain may use another finite lattice.
- Verdict V = deny < ask < allow, a total order.
⊓ on forms, min on verdicts, and the highest offer (section 2.3) are the only ways of combining used anywhere in the core.
1.3 Facts and Readings
There are two disjoint sets of predicate symbols.
- Fact predicates
P_T: statements from trusted sources, each with its source recorded. Examples:holds(person, position, interval),owner(asset, position),label(asset, level),category(asset, c),grant(person, usecase, interval, approver),declared(request, usecase),state(asset, s, t),tier(agent, n),acts_for(agent, person, request). - Reading predicates
P_R: statements a model inferred from text. Examples:reads_usecase(request, usecase),reads_recipient(request, class). Every reading carries a quote (a span of the request or task text) and a confidenceπ ∈ [0, 1].
A fact base Φ is a finite set of ground atoms over P_T. A reading set Ρ is a finite set of ground atoms over P_R, each with its quote and confidence.
Quote condition. A reading whose quote is not a substring of the text it claims to come from is discarded before anything else happens. (Its job is auditability, not security: the security argument in Axioms does not depend on it.)
Declared is not read. declared(r, u) is a fact: the requester explicitly chose use case u through an authenticated channel and is accountable for it. reads_usecase(r, u) is a reading: a model's guess. The model can propose a declaration; only the requester can make it, by confirming.
1.4 The Request
A request is a tuple
r = (subject s, agent a, action act, asset x, form f_r, recipient c, time t, text)
sis the person on whose behalf the request is made,athe agent (or none),f_rthe form asked for,cthe recipient's entity (or the subject itself),tthe time.- Roles of a request:
subject, position, agent, action, asset, recipient. The position role is filled by every positionsholds att(fromΦ). ents(r)is the set of entities that fill a role inr.
1.5 Rules
A rule is ρ = (anchors, guard, effect, meta).
- Anchors
A(ρ): a finite set of pairs(role, e). This is the rule's hyperedge: the entities it ties together. For example{(position, CEO), (asset, Payroll.salary), (action, read)}. - Guard
G(ρ): a conjunction of literals over fact predicates, reading predicates, and derived predicates (section 1.6), with free variables bound by the request. - Effect
eff(ρ), one of: permit(f): allow up to formf;forbid: deny;cap(f): whatever is allowed, no more than formf;ask(w): no decision, ask the holder ofw(a role term such asowner(x)orabove(position));boundary(L): deny that only a use case in the setLcan lift (section 2.3);duty(d): an obligation on what is released, such asmin_cell(5),citeordraft_only(decision 4). A duty never changes the verdict or the form; it is checked on the output after release (section 2.7).- Meta: owner, source text, approval, validity interval
valid(ρ), tests. Meta does not change the meaning of a rule, exceptvalid(ρ).
A rule set R is a finite set of rules. A default δ : Level → V × F gives the verdict and form when no rule decides, one per classification level.
1.6 Derived Predicates and the Restriction on Guards
Derived predicates are defined by Datalog clauses over P_T, P_R and ⊑.
Restriction D (decidability). The only recursion allowed is the transitive closure of ⊑, which is computed once. All other derived predicates are non-recursive. Negation is allowed only on fact predicates and on derived predicates that do not depend on readings (stratified negation).
Restriction N (non-interference, strict form since decision 1). Reading predicates may appear only:
- positively (never under negation),
- in guards of rules whose effect is
askorduty, neither of which ever releases anything.
They may not appear in the guard of a permit, a forbid, a cap or a boundary, nor in the definition of a lifting use case (section 2.3), nor in any derived predicate that such a guard uses. A use case reaches a permit only through declared(r, u), a fact the requester makes and answers for.
Restriction N is checked syntactically by building the dependency graph of predicates. A rule set that breaks it is rejected.
2. The Decision Function
decide(r, R, Φ, Ρ, H) = (verdict, form, reasons), where H is the history of releases (section 3).
2.1 Step 1: Which Rules Touch the Request
A rule touches a request when each of its anchors is matched by an entity filling that role, or by something below it:
touches(ρ, r) ⇔ ∀ (role, e) ∈ A(ρ) : ∃ e_r filling role in r with e_r ⊑ e
Rel(r, R) = { ρ ∈ R | touches(ρ, r) }.
Retrieval. Index every rule under each of its anchor entities. For a request, look up the index under every entity in ⋃_{e ∈ ents(r)} ↑e, then keep only those rules that touch. Theorem T1 says nothing is missed.
2.2 Step 2: Which Touching Rules Apply
App(r) = { ρ ∈ Rel(r, R) | t ∈ valid(ρ), and Φ ∪ Ρ ⊨ G(ρ)[r] }.
Here ⊨ is the least-model semantics of the stratified program Φ ∪ Ρ ∪ derived clauses, which exists and is unique under Restriction D.
Write App_e(r) for the applicable rules whose effect is of kind e.
2.3 Step 3: Combine
Boundaries first:
lifted(β, r) ⇔ ∃ u ∈ L(β) : declared(r, u) ∈ Φ ∧ grant(s, u, I, approver) ∈ Φ with t ∈ I
∧ approver = owner of every asset β protects
(and u itself exists only once both the data owner and the security officer
approved it: decision 10, management/LIFECYCLE.md §3)
blocked(r) ⇔ ∃ β ∈ App_boundary(r) : ¬ lifted(β, r)
Finding F1 (from the deputy-to-the-CEO case, C004). A blocked request is not always a plain deny. If an ask rule applies whose guard uses no readings, the verdict is ask, addressed to the owner of the protected asset and to the holder the ask rule names. Their answer can only be a new grant, which is a fact, so Restriction N still holds and T4 becomes: if protection applies, nothing is released whatever the model read (the verdict may be deny or ask, never allow).
Then the verdict for the subject:
capped(r) = ⊓ ( {f | cap(f) ∈ App_cap(r)} ∪ {⊤_F} )
offer(p) = f_r ⊓ f_p ⊓ capped(r) for each permit(f_p) ∈ App_permit(r)
Fail(r) = { ρ ∈ Rel(r) | eff(ρ) = permit, t ∈ valid(ρ), ρ ∉ App(r) }
V_s(r) = deny if blocked(r) or App_forbid(r) ≠ ∅
allow else if App_permit(r) ≠ ∅
ask(w) for each ask(w) ∈ App_ask(r) else if App_ask(r) ≠ ∅
deny ("condition failed") else if Fail(r) ≠ ∅ (decision 5)
δ(label(x)).verdict otherwise
form_s(r) = the highest offer(p) if the verdict comes from permits
f_r ⊓ δ(label(x)).form ⊓ capped(r) if it comes from the default
duties(r) = { d | duty(d) ∈ App_duty(r) } attached to every allow
Fail(r) holds the touching permits whose condition fails. Two offers may be incomparable (one a row form, the other a summary); the decision then takes the taller one in the lattice, and the first in the rule book on a tie, and names that permit as the reason. Every offer is below every cap and below what was asked, so A8 holds whichever is taken.
The default δ is fixed by decision 3: public and internal data allow up to raw, confidential and strictly confidential data deny.
If the least form the request can use (min_useful(r), by default ⊥_F) is not below form_s(r), the verdict becomes deny with the reason "only a weaker form is allowed".
2.4 Step 4: The Agent Cannot Exceed Its Person
If the request carries an agent a, the same three steps are run for the request with the agent in the subject role, against the agent rules (tier caps, agent-specific forbids). Call the result (V_a, form_a). Then
V(r) = min(V_s(r), V_a(r)) form(r) = form_s(r) ⊓ form_a(r) duties(r) = duties_s(r) ∪ duties_a(r)
with acts_for(a, s, r) ∈ Φ required. Without it, V(r) = deny.
2.5 Step 5: History
If the release is an aggregate (a count, sum or average over a population), it is passed to the auditor audit(H_s, q) of section 3. If the auditor refuses, V(r) = deny with the reason "would reveal an individual value". Otherwise the release is added to H_s.
2.6 Strict Mode: Readings Become Questions (Decision 1)
Let d be the decision computed as above. Readings cannot open any permit, so whether d releases, and at which form, is the same for every Ρ. If d is not allow, and for some reading reads_usecase(r, u) ∈ Ρ the decision on Φ ∪ {declared(r, u)} would be allow, the verdict is
ask(subject): "confirm that this request is for use case u"
The answer is the declaration itself, a fact for which the requester is accountable. The model can propose; it cannot decide.
2.7 Duties, Checked After Release (Decision 4)
An allowed release carries duties(r). Before the result leaves, a checker tests it against each duty: min_cell(k) (no released cell below k people), cite (sources attached), draft_only (released as a draft). An unknown duty is a refusal. A broken duty withholds the result; it never changes what the decision allowed.
2.8 The Identity Layer's Token Facts (C039, C059)
The language does not verify tokens. The identity layer reports them as facts: token(τ, s, t0, t1), token_revoked(τ), derived_from(τ, τ′). A request that carries a token τ is denied before anything else if τ is unknown, issued to another subject, outside [t0, t1], revoked, or derived (transitively) from a revoked token. A derived token is only as good as its root.
2.9 Automatic Labels Are Readings (C022)
A classifier's label is model output, so it is a reading, kept apart from trusted labels (auto_labels). It cannot lower protection: the asset keeps the most sensitive trusted label on it or above it. If the request would be allowed under the automatic label, the verdict is ask(requester), proposing to drop the column or to have its owner confirm the label; a confirmed label is a fact.
2.10 "Which Use Case?" (C031)
If a request is allowed at a form below what was asked, and another use case the requester holds would give more, the verdict is ask(requester): which use case is this for? If the requester reaffirms the declared one (reaffirmed(r, u), a fact), its ceiling holds. This catches purpose laundering between use cases the requester holds; it does not judge whether a declared purpose is true, which stays the probability stage.
2.11 Request Sets and the Nearest Permitted Request (C022, C014-b)
A request for several assets at once is decided part by part. All allowed: allow. None allowed: deny. Otherwise nothing is released yet, and the verdict is ask(requester) with the nearest permitted request: drop the denied parts.
2.12 Reasons
reasons is the set of applicable rules, each with the derivation of its guard (the facts and readings used), and the one rule (or the default, or the auditor) that fixed the verdict and the one that fixed the form. This is the proof object of theorem T3.
3. The Auditor and the Ledger
Ledger and release budget (C057-b). Every release is recorded in the requester's ledger (subject, asset, form, time). An owner may set budget(x, n): at most n releases of x, or of anything below it, per requester within the window. Once spent, further requests are denied. The budget bounds how much any requester can rebuild piece by piece; it does not detect reconstruction, for which there is no theory yet for non-numeric summaries.
The auditor for aggregates.
- A population is a predicate over the persons in a data product;
pop(q)is the set of persons it selects, known fromΦ(the catalogue knows who is in each population, never their values). - An aggregate query
qover a measuremis a vectorv_q ∈ {0, 1}^n(the indicator ofpop(q)). A count reveals|pop(q)|only; a sum revealsv_q · m; an average over a known population is a sum divided by a known number, so it is treated as a sum. H_sholds the vectors of every sum or average released tos(and to agents acting fors) on the same measure within the window.
audit(H_s, q) = refuse if |pop(q)| < k,
or ∃ h ∈ H_s : 0 < |pop(q) \ pop(h)| < k or 0 < |pop(h) \ pop(q)| < k (F6)
or ∃ person i : e_i ∈ span(H_s ∪ {v_q})
accept otherwise
where e_i is the vector that picks person i. The test uses exact rational arithmetic.
The auditor looks only at the populations, never at the values m. That makes it simulatable: whether it refuses can be computed by the requester from what they already know, so a refusal reveals nothing new (Kenthapadi, Mishra and Nissim, 2005).
4. Changes Made After the Cases (Step 6, 18 November 2026)
The 69 cases were run against this core. These changes followed; each is now in the interpreter and covered by a test.
| # | Change | Forced by | Effect on the theorems |
|---|---|---|---|
| F1 | A blocked request becomes ask (owner of the asset, and whom the ask rule names) when a fact-only ask rule applies |
C004, the deputy to the CEO | none on release: T4 now reads "nothing is released", the verdict may be deny or ask |
| F2 | A forbid is checked before boundaries, so F1 never turns a forbidden request into ask |
bug found by the test suite | restores A5 |
| F3 | holds and grant are temporal facts: in a guard such an atom matches only when the request's time lies in its interval |
C065, an expired grant still opened a permit | strengthens A15; Restrictions D and N unchanged |
| F4 | A subject the graph does not know gets only what the public default gives, and nothing else | C058, an unknown caller under default allow | none |
| F5 | The agent side's default is allow at every level: agent rules only restrict | bug: unlabelled assets were denied only through agents | T6 unchanged |
| F6 | The auditor also refuses a population that differs from any earlier one released to the same subject by 1 to k−1 people, and it records counts as well as sums | C026, C027 | T8 extended; still reads populations only, so refusals stay simulatable |
| F7 | The history has a window, a parameter; none means "never forget" | C029-d | a finite window lets slow differencing through; the safe default is no window |
Decisions of 22 November 2026 (Decisions and Status), each in the interpreter and covered by a test:
| # | Change | Decision | Effect on the theorems |
|---|---|---|---|
| F8 | Strict mode: readings only in ask and duty; a use case reaches a permit only by declaration; a reading that would allow if declared becomes "please confirm" (§2.6) |
1 | T5 becomes exact: release does not depend on readings at all (Lean release_reading_free) |
| F9 | Forms are a lattice; min becomes meet ⊓ (§1.2) |
2 | Lean proves the general theorems for any partial order, and that the seven forms are a lattice; closes C002-b |
| F10 | The default is by classification level; the allow and deny defaults are dropped | 3 | none |
| F11 | A sixth effect, duty, checked after release (§2.7) |
4 | Lean duty_neutral, owed_mono; C015, C021 now state their duties |
| F12 | A touching permit whose condition fails denies instead of falling to the default | 5 | only removes releases, so T4–T6 hold a fortiori; closes C063-A6 |
| F13 | Rates: a boundary on a fact-only counter with an ask to the owner; softer patterns are evidence for the probability stage | 6 | none (the counter is a fact); closes C037 |
| F14 | Dominance is a declared fact (owner or scanner), used by a forbid unless the dominant firm consents; the auditor still reads populations only |
7 | T8 unchanged, refusals stay simulatable; closes C018 |
| F15 | k is a refusal, not a change of classification | 8 | none; C064-A7 now expects deny |
| F16 | Token facts from the identity layer; expired, revoked or derived-from-revoked tokens are denied (§2.8) | the rest | only removes releases (Lean releaseX); closes C039, C059 |
| F17 | Automatic labels are readings (§2.9) | the rest | readings never release (T5); closes the label half of C022 |
| F18 | "Which use case?" when another held use case would give more (§2.10) | the rest | only turns allow into ask; closes C031 |
| F19 | Request sets and the nearest permitted request (§2.11) | the rest | only turns allow into ask; closes C022 |
| F20 | Ledger with an owner's release budget per requester (§3) | the rest | only removes releases; closes C057-b, as a bound, not a detector |
5. Open Points Carried From This Draft
- ~~Whether readings may open a permit at all.~~ Decided: strict mode (F8).
- Whether several permits combine by the highest offer (the most generous applies, as now) or require one permit that covers the whole request.
- Whether
askshould outrankallowwhen both apply. Where an owner wants that today, it is written as a boundary with a fact-only ask (F1, F13). - The auditor covers sums and averages exactly; maxima and medians need their own tests. Dominance is now a declared fact (F14).