Documentation

Docs

Evaluation Results

25 November 2026. Two evaluations beyond the 69 design cases: held-out cases written after the language was frozen, and the 69 cases run in three established policy engines.

Held-Out Cases

Forty new cases (H001–H040) were written and frozen after the language and its interpreter were fixed, and the interpreter was run on them unchanged. A case counts as a pass only if the verdict, the released form and every scored obligation match.

Class Cases
Pass 10
Pass, with a note on how the case was encoded 17
Fail: the language cannot express what is expected 13
Fail: out of scope 0
Total 40
  • Verdict and form as expected: 36 of 40. The four wrong cases are all statistical disclosure control (H004, H006, H008, H009); H009 is right under one reading of its data and wrong under another.
  • The other nine failures have the right verdict and form. Each fails only on an obligation that Kanon cannot express: a notification that a refusal, or a detected injection, must trigger.
Category Cases Pass Pass with note Fail Verdict and form right
Disclosure control H001–H010 0 6 4 6
Purpose and consent H011–H020 4 4 2 10
Agents and injection H021–H028 1 2 5 8
Delegation, tokens and time H029–H034 2 3 1 6
Mixed H035–H040 3 2 1 6
All 10 17 13 36

Kanon decides purpose, consent, injection, token and time cases correctly apart from obligations. It is weakest on statistical disclosure control, the area where its auditor makes the strongest claims.

Limits of this evaluation. The person who wrote the rules for the held-out cases had read the expected outcomes, and the scoring rules were chosen by the evaluator. Both are stated so the numbers can be read with them in mind.

The 69 Cases in Cedar, OPA/Rego and XACML

The interpreter's own decisions on the case suite (1,296 requests from 69 cases and their variants) were replayed in Cedar 4.15, OPA 1.21 (Rego) and XACML 3.0 (AuthzForce), with one rule book per organisation and engine, never one policy per case.

  • Native means one engine call per request, read by a fixed decoding.
  • Wrapper means the unchanged engine inside a disclosed loop: asking once per form, reading annotations for "ask" and duties, and keeping the release history the engines do not keep.
Engine Cases decided natively Cases decided with the wrapper Not expressible
Cedar 39 30 0
OPA / Rego 63 6 0
XACML 53 16 0
  • With the wrapper, every one of the 1,296 requests is decided exactly as Kanon decides it, in all three engines.
  • Natively, only six cases are decided by none of the three: C025–C029 (differencing over the release history) and C057 (a release budget). All six need state across queries.
  • Cedar answers only allow or deny at the form asked, so a weaker form, "ask" and duties need the wrapper. XACML gets "ask" and duties natively through obligations, but answers only at the form asked. Rego computes Kanon's whole decision in one query, because the encoding implements Kanon's decision procedure in Rego.

What This Means

An earlier, judged comparison claimed that most cases were covered by none of these systems. Running them withdrew that claim: established engines can reproduce Kanon's decisions once the decision procedure is written around them. What Kanon adds is not that the decisions are impossible elsewhere. It is that the procedure is the language: forms, asks, duties and the release history are part of one decision function, and its guarantees, above all that model readings never release, are proved once for every rule set, in Lean, rather than re-established for each encoding.

Last built 2026-11-25