Documentation

Docs

Design Decisions and Status

18 November 2026, updated 22 November 2026 after the design decisions. The answers that steps 1–10 of the research plan produced, angle by angle. Each answer says how settled it is: proved (by machine), tested (by the case suite), designed (written, not yet tested), decided (a design decision, numbered as in the table below), or open.

State in one paragraph. The meaning of the language is fixed in Semantics. Its axioms are in Axioms and its theorems in Theorems: - Proved. Twenty theorems are proved in Lean for every rule set that type-checks and every form order, including that no reading of a model changes what is released (Proofs by Machine). Cedar's analyzer verifies a concrete rule set against a boundary specification, and it lists what a change adds. - Tested. The 69 cases (C001–C069) and the property tests run as 136 tests, and all 136 pass: every one of the 69 cases is decided as its file expects. No decision is pending. Twenty-four theorems are now in Lean (the four added cover every extra check that only removes releases). - Compared. Cedar, OPA/Rego and XACML were run on all 69 cases (25 November 2026): with a disclosed wrapper each reproduces every decision; natively they decide 39, 63 and 53. See Evaluation Results.

Angle Answer Status Where
1. Purpose and scope Decide who may receive which asset, in which form, for which use case, through which agent. Version 1 covers data access and agent actions inside an organisation (levels 1–2); actions outside (level 3) use the same rules but have weaker cases. Authentication, token expiry and encryption are outside: the decision receives an authenticated subject decided (12) cases C039, C059 (OUT)
2. The things it talks about Person, Position, Group, Agent, Asset, AssetClass, Action, ActionClass, UseCase, RecipientClass, Organisation. One partial order "above" for part-of, member-of and instance-of. Assets down to columns and rows (rows as assets of their own). Time as instants; intervals on facts tested SEMANTICS §1.1
3. Facts and readings Two disjoint kinds of input. Facts come from trusted sources (directory, catalogue, approvals, clock, the auditor's verdict). Readings come from a model, with a quote and a confidence. A reading never releases anything: it can only make the system ask the requester to confirm, and the confirmation (declared) is a fact the requester answers for proved (strict: release does not depend on readings, Lean release_reading_free) SEMANTICS §1.3, §2.6
4. Rule forms A rule is a hyperedge (its anchors) with a guard, one of six effects (permit up to a form, forbid, cap at a form, ask whom, boundary lifted by use cases, duty) and meta (owner, source, approval, validity, tests) tested; duties decided (4) SEMANTICS §1.5, §2.7
5. Use cases An object with owner, positions, data needed at a maximum form, recipients and validity (a date, an asset's state, or once). It reaches people through grant facts that end. A new use case is approved by the data owner and the security officer, both decided (10) management/LIFECYCLE.md §3, §5
6. How rules combine A rule touches a request when every anchor is matched by the request or something below it. Then: forbid wins; an unlifted boundary denies, or asks the owner when a fact-only ask rule applies; each permit offers the meet of what was asked, the permit and the caps, and the highest offer is released; a touching permit whose condition fails denies; with no rule, the default of the asset's classification level proved (locality, order-independence, weakest form, forbid wins) and tested SEMANTICS §2; Lean locality, same_rules_same_answer, downward_closed
7. The logical foundation Stratified Datalog over a finite typed universe in two layers: recursion only to compute the "above" closure; rules are non-recursive, negation only over facts. This keeps each decision polynomial and unique, and keeps questions about rule sets (equivalence, what a change adds) decidable by SMT. The survey reached the same fragment independently designed and argued; T2 rests on the textbook result THEOREMS T2; related-work/COMPARISON.md
8. Uncertainty Probability only on readings (ProbLog's semantics), and readings decide nothing that is released. Probability can only choose whether to ask. Shown in ProbLog under 200 random assignments. Thresholds and "the best question" (C022, C031) are the probability stage, a separate paper decided (13): separate stage the ProbLog experiment (Proofs by Machine §3); gaps C022, C031
9. History and disclosure An auditor per requester. It refuses a group below k, a population that differs from an earlier released one by 1 to k−1 people, and any sum or average that makes one person's value computable (exact rank test). It reads populations, never values, so refusals reveal nothing. Dominance is a declared fact used by a forbid. Summaries that are not numbers are a gap tested (C018, C025–C030); T8 proved on paper; k is a refusal (8) SEMANTICS §3; gap C057-b
10. Agents, delegation, identity An agent acts only with an acts_for fact. Its verdict and form are the minimum of its person's and its own, and agent rules can only restrict. Delegation is a short grant approved by the holder of the position. Identity and tokens belong to the identity layer proved (agent bound) and tested Lean agent_bound; SEMANTICS §2.4
11. What can be proved For all rule sets and every form order (Lean): non-interference, caps hold, readings never release, duties are neutral and readings only add them, locality, order-independence, weakest form, agent bound, and every extra check that only removes releases keeps all of these; the seven forms are a lattice. For one rule set (Cedar): meets a boundary specification for all requests; exactly what a change adds. On paper: unique terminating decisions, checkable certificates, the auditor. Every theorem depends on correct labels, identity and approvals proved (24 in Lean, 5 Cedar checks) proofs/README.md
12. Explanation Every decision returns the rules that applied and the one that fixed the verdict and the form; an ask names whom. Full certificates (derivations a separate checker accepts, T3) are designed, not produced yet designed; certificates open SEMANTICS §2.6; THEOREMS T3
13. Managing rights over time Rules are never written from a blank page; they are proposals from defaults, use cases, answered asks, policy text, repeated approvals or findings. Each passes the type checker and the analyzer (which proves what it adds) before a person approves it; rights follow positions; use cases end with the world designed; screens need a prototype management/LIFECYCLE.md
14. Syntax The graph form in a graph store is the source of truth. A text form exists for review, diffs and tests, and a sentence form is shown to owners, who never edit text. read is accepted only in ask and duty, never under not; permits use declared. The form scale must be a lattice. Errors name the axiom broken decided (11) syntax/SYNTAX.md
15. Running it Rules stored in a graph store and indexed by anchor (retrieval proved complete). Compiled to the core interpreter, to Cedar for analysis, to ProbLog for probability, and to a small checker in each MCP server designed; reference interpreter built the reference interpreter
16. Evaluation The case suite now (69 of 69 decided); then the benchmark (synthetic lake, ~2,000 sessions, adaptive attacker) against role-based access, a model as judge and Cedar alone, for paper 2 case suite built; benchmark open evaluation/POSITION.md
17. Related work and position New in combination: the decision is a form; non-interference against model readings, mechanized; probability confined by theorem; disclosure history in the same decision with refusals that do not leak. Not claimed: verified purposes, auditing beyond sums and counts designed related-work/COMPARISON.md; evaluation/POSITION.md
18. Name and publication Paper 1: the language with its theorems, for a security or PL venue. Paper 2: the benchmark, for an AI-security venue. The probabilistic stage: its own paper. Name: Kanon (see below) publication decided; name decided evaluation/POSITION.md §3

Decisions Taken on 22 November 2026

Decided on 22 November 2026. Each one is now in the semantics (Semantics §4, F8–F15), in the interpreter, in a test, and where it touches release, in Lean.

# Decision What changed Cases closed
1 Strict mode. A model's reading never opens access; it can only ask the requester to confirm a use case, and the confirmation is a declaration (a fact) Restriction N allows readings only in ask and duty; decide asks "please confirm" when a declaration would allow; Lean release_reading_free C032-b; C031 now asks the requester to confirm
2 Forms are a lattice. Rows and summaries are not comparable ⊓ replaces min; Lean proves everything for any form order and that the seven forms are a lattice C002-b
3 Default by classification level (public and internal allow, the rest deny) allow and deny defaults no longer run C011, C017, C047, C058, C062-A3, C063-A9 (their alternative-default variants dropped); C062-A3 now expects allow, a known difference from the built rule set of an earlier deployment
4 Duties are a sixth effect, checked after release duty effect, check_duties; Lean duty_neutral, owed_mono C015, C021 state their minimum cells
5 A failed permit condition denies Fail(r) before the default C063-A6
6 Rates: a hard limit is a boundary on a trusted counter with an ask to the owner; softer patterns are evidence for the probability stage rule pattern, no new construct C037
7 Dominance is a declared fact, used by a forbid unless the dominant firm consents rule pattern; the auditor still reads populations only C018
8 k is a refusal test expectation C064-A7 (a known difference from an earlier deployment, which warns)
9 Keep the language small: non-recursive stratified Datalog; anything needing more power becomes a fact unchanged, now a stated principle —
10 A new use case needs the data owner and the security officer The Life of a Rule §3 — (lifecycle, not the decision function)
11 Owners see sentences, never text; the graph is the source of truth Syntax —
12 Version 1 scope: data access and agent actions inside the organisation Evaluation and Position —
13 Probability is a separate stage and paper; the auditor stays inside the language, claimed for sums, averages and counts only Evaluation and Position —
14 Home: the implementation moves into a graph store; these documents stay the research not built yet —

The name: Kanon (decided 25 November 2026). Greek kanōn, the measuring rod and the binding rule. Earlier candidates (Licet, ReleaseRules, FormRules, UseRules) dropped; plain "Canon" rejected for the camera maker and an npm canon-lang AI-agent language of 23 November 2026.

How the Last Five Were Closed (22 November 2026)

Case Fix What it does not claim
C039, C059 the identity layer reports tokens as facts; expired, revoked or derived-from-revoked tokens are denied (SEMANTICS §2.8) the language does not verify tokens; it trusts the identity layer's facts
C022 automatic labels are readings and cannot lower protection (§2.9); a request for several assets asks to drop the denied parts (§2.11) it does not estimate how likely a label is right; that is the probability stage
C031 "which use case?" when another use case the requester holds would give more (§2.10) it does not judge whether a declared purpose is true
C057-b a ledger of every release and an owner's budget per requester (§3) the budget bounds reconstruction; it does not detect it

What remains for later papers is not a failing case but stronger versions of these: a probability on labels and purposes (paper 2's stage), and a reconstruction test for non-numeric summaries.

What Was Built

Next

  1. Paper 1 (in preparation): the language, the strict non-interference theorem, the form lattice, the 69 cases, all decided.
  2. The auditor in Lean (needs Mathlib) and certificates with a checker (T3), to strengthen paper 1.
  3. The approval screens: a clickable prototype is built; the real screens wait until it has been reviewed.
  4. Paper 2: the benchmark. Then the probability stage (C022, C031).

Last built 2026-11-25