Documentation

Docs

The Confirm Loop as a Game

25 November 2026. Answers open item 2 of the internal review of the paper draft: "state and prove (or refute) robust declassification for ask → confirm → decide". File: Confirm.lean, 23 theorems, no sorry, Lean 4 core only, no Mathlib.

1. The Question

Strict.lean proves that, for given facts, the release does not depend on readings, and that a confirmation question is asked only when the proposed declaration would release (confirm_is_sound). The loop is not covered. A confirmed declaration becomes a fact, and that fact can release data. Injected text controls the readings. The readings decide which question is shown, so they can decide what is declassified. The paper (§10, "The property is too weak") calls this open.

The result in short: the loop is bounded by the confirmer's own authority under no assumption about the human, but it is not robust if the human confirms whatever declaration is shown. It becomes robust under a weaker and checkable assumption about the human, once the screen shows the consequence. With a menu of every admissible declaration, it is robust under any confirmer that chooses from the menu.

2. The Game

The game covers one request: rule set R (passing strictOK), anchors m, asked form q, a finite list fs of candidate forms, and the decision point's proposals props, each a pair (reading, declaration). The players and their moves:

Player Move In Lean
Attacker chooses the readings of every round, and so which proposal is shown A : Nat → Rd → Bool
Decision point if nothing is released on the facts, shows the first proposal (in the order of props) that the model read, that is admissible, and whose declaration would release something; the screen carries the declaration and the forms then released shown, Screen, gain
Confirmer a principal; accepts or refuses a screen C : Screen → Bool
Rule an accepted declaration becomes a fact; the request is decided again withFact, log, final

The game runs for at most n rounds (log uses n as fuel). In the naive strict mode, the one the interpreter runs today, every declaration is admissible (held := fun _ => true) and the screen names only the use case. shown_is_ask ties the game to Strict.lean: whenever the game shows a declaration, decide' answers ask at some candidate form.

3. What Holds, for Every Attacker

The theorems hold for every rule set that passes the strict check, every attacker, and every number of rounds.

Theorem In words Assumption about the human
no_confirmation_no_gain (i) If nothing was confirmed, the final facts are the initial facts, so the release is the release on the facts alone. none
refuser_gets_facts_only (i) A confirmer who refuses everything ends with the facts it started with. none
confirmed_were_accepted (ii) Every confirmed declaration is admissible and appeared on a screen the confirmer accepted. none
authority_bound (ii) If the confirmer accepts only declarations it is authorised or willing to make (willing), every confirmed declaration is one of them. accepts only willing declarations
outcome_is_log_function (ii) The final release depends only on the list of confirmed declarations. Two attackers that lead to the same confirmations lead to the same release, under any readings. none
reachable_by_declaring (ii) Every release the attacker can reach is one the confirmer could have obtained by declaring directly: some list of willing, admissible declarations gives the same release, with no attacker involved. as authority_bound
facts_grow (iv) Facts only grow. none
log_length_le_one (iv) The loop confirms at most one declaration per request. After a confirmation something is released, so nothing more is shown, whatever is read next (no_second_question). none
one_round_suffices (iv) n + 1 rounds give the same as one round, so the loop terminates. none

(ii) is the precise form of the bound the paper states informally: the attacker can choose, but only among declarations the confirmer would make.

4. What Is NOT Protected: Steering (steering)

Take a requester who holds two use cases: an audit, which permits aggregates, and payroll correction, which permits raw rows. The requester asks for rows. Their real purpose is the audit. The rule set passes strictOK.

  • The honest reading (reads_usecase(r, audit), from the requester's own words) shows "confirm: audit". A confirmer who confirms any held use case confirms it, and aggregates are released.
  • The injected reading (reads_usecase(r, payroll), from a retrieved document) shows "confirm: payroll". The same confirmer confirms it, and raw rows are released.

steering checks all of this by decide: the rule set passes the check, the honest run releases aggregates and not rows, and the injected run releases rows. Same confirmer, same facts, different readings, different declassification. The bound of §3 still holds, since rows are within the requester's authority. Robust declassification, however, fails: the low-integrity input chose what was declassified.

The human assumption under which this happens is "confirms whatever declaration is shown, provided it is one I hold". It is the realistic one for a requester who clicks through a dialog that names only a use case.

5. Mitigation 1: Show the Consequence, Admit Only Held Declarations

Two changes to the screen:

  1. Admissible only if held. A declaration is proposed only if the requester holds a current grant for that use case (held, a fact computed before the loop). confirmed_were_accepted then gives the authority bound without any assumption about the human.
  2. The screen shows the consequence: the asset and every form that will be released if the requester confirms (Screen.gain), computed by the decision point. screen_is_exact proves that the listed forms are exactly the forms released after the confirmation, under every readings. The attacker cannot make the screen understate.

Human assumption needed (H-cons): the confirmer accepts a screen only if it endorses every form the screen lists, for this request, given its own purpose. Formally ∀ s, C s → ∀ f ∈ s.gain, endorse f, where endorse is the requester's own judgement, for example "aggregates are fine, rows are not". The assumption asks nothing about use-case names, quotes or where the reading came from. It asks only whether the person wants what the screen says they will receive.

Theorem In words
endorsed_release Under H-cons, for every attacker and any number of rounds, every released form is released on the facts alone or endorsed by the confirmer.
consequence_guarantee The same, stated as: a form not released on the facts and released at the end is endorsed.
steering_blocked In the counterexample, with a confirmer who reads the consequence, the honest run still releases aggregates and the injected run releases nothing.

What mitigation 1 still leaves open:

  • Denial of service. The attacker can make a question appear or not appear, and can show a screen the requester refuses. It can withhold a release but cannot cause one.
  • Choice among endorsed outcomes. If the requester endorses both aggregates and rows, the attacker can still pick which one is released. Both outcomes are endorsed, so this is not a leak by the definition, but the attacker still has a choice.
  • The human's judgement. H-cons is an assumption about the human. The theorem moves it from "understands what a use-case name means" to "reads what will be released".

6. Mitigation 2: A Menu, With Readings Only Triggering It

The screen lists every admissible declaration that would release, each with its consequence (menu). The confirmer picks one or none (choose). The readings decide only whether the menu is offered. They do not decide which declaration is preselected.

Theorem In words
menu_reading_free The menu, with its consequences, is the same under every readings.
menu_robust Robust declassification for the menu. For every attacker, the round declassifies either nothing or exactly what the confirmer chooses from the readings-free menu. The attacker can withhold the question; it cannot change the answer.

menu_robust needs no assumption about the human beyond "chooses from what is shown". If the menu were offered whenever it is non-empty, rather than when a reading triggers it, the readings would affect nothing at all, at the cost of more questions. A menu that preselects the item the model read, with a human who accepts the preselection, is the naive case of §4 again.

7. Relation to Robust Declassification

Zdancewic and Myers [1] define robust declassification: an active attacker, who controls low-integrity inputs, must not be able to influence what information a declassification releases. They state it as indistinguishability, so that attacker inputs which the attacker cannot tell apart before the declassification remain indistinguishable after it. Myers, Sabelfeld and Zdancewic [2] give a type system that enforces it: a declassification may occur only in a high-integrity context, on high-integrity data, so that low-integrity data cannot decide whether a declassification happens or what it releases. They also introduce qualified robustness for endorsed data. Sabelfeld and Sands [3] place this on the "who" dimension of declassification: the policy is about who controls the release.

How the Kanon loop maps onto this:

Robust declassification Kanon confirm loop
low-integrity input readings (the attacker's choice of A)
declassification point the confirmation, which turns a declaration into a fact
high-integrity principal authorising it the confirmer, through an authenticated channel
attacker must not influence what is released §4: fails in naive strict mode, since the readings choose the declaration, hence the form
decision to declassify must be in a high-integrity context mitigation 2: the menu is computed from facts only (menu_reading_free); the readings choose only whether it is offered
endorsement / qualified robustness mitigation 1: the confirmer endorses the consequence (H-cons); endorsed_release is a qualified guarantee: every released form was endorsed by the high-integrity principal

So the honest claim for the paper is this. In naive strict mode the loop is bounded (reachable_by_declaring) but not robust (steering). With consequence screens and held-only proposals it satisfies an endorsement-qualified robustness (endorsed_release). With a menu it satisfies robustness in the sense that the attacker cannot influence what is declassified, only whether the question is asked (menu_robust). Our statements are about a game over our own decision function, not the indistinguishability formulation of [1]. They are closer in shape to the "attacker cannot affect the declassification decision" reading of [2].

8. What the Interpreter Would Need

These changes are described here and were not made. experiments/kernel/core.py belongs to the interpreter and was not edited.

  1. Held-only proposals. In decide (strict branch, read_ucs), keep a read use case u only if the requester holds a current grant for it (("grant", req.subject, u, t0, t1) with t0 ≤ req.time ≤ t1). This makes authority_bound hold without assuming anything about the human.
  2. Consequence on the screen. When hyp(world.copy({("declared", req.id, u)})) returns allow, put its released form d2.form, the asset and the duties into the Decision (for example a consequence field next to confirm), so that the dialog states "you will receive salaries, aggregated over at least 10 people". This is Screen.gain; screen_is_exact holds because the hypothetical decision is the same function the real decision runs.
  3. Bind the confirmation to the consequence. Record the confirmation as a declaration together with the form shown. If the re-decision after confirmation would release a form above the one shown (facts or history changed in between), re-ask. Without this the screen could understate, and screen_is_exact assumes it cannot.
  4. Optional, mitigation 2: a menu. Instead of returning on the first read use case, collect every held u whose hypothetical decision allows, each with its consequence, and return them all. The readings are used only to decide whether to ask, and never to preselect. The dialog must be rendered by the decision point, not by the agent (paper §10).
  5. Automatic labels (§2.9) and "which use case?" (§2.10) produce confirmations too. The same changes apply. They are not modelled in Confirm.lean.

Side observation, harmless for safety: in _which_use_case, held collects use cases from every grant fact (f[0] == "grant"). It does not filter by f[1] == req.subject or by time. It only turns an allow into an ask, and the hypothetical decision still requires the requester's own grant, so it cannot add a release, but it may consider use cases of other people.

9. Modelling Choices and Limits

  • One request at a time, and the facts change only by confirmations. History (auditor, budgets) is not modelled. By releaseX in Core.lean, history only removes releases, so it cannot make the screen understate; it can make it overstate.
  • The decision point shows the first matching proposal in props order. The interpreter uses sorted reading order. Any fixed order behaves the same, and the attacker controls which readings exist anyway.
  • held is a fixed predicate (grants are facts computed before the loop). A declaration is assumed not to create a grant.
  • Ask rules' own questions (asks) and duties are outside the game. They release nothing.
  • The human is a function of the screen. Coercion, fatigue and collusion between requester and attacker are out of scope. A requester who is the attacker can declare directly, which §3 already bounds.

10. How It Was Checked

cd proofs/lean
B=$(mktemp -d); P=$(lean --print-prefix); export LEAN_PATH=$B:$P/lib/lean
lean Strict.lean -o $B/Strict.olean     # Confirm.lean imports Strict
lean Confirm.lean                        # exit 0, no warnings
  • 25 November 2026: exit 0, 23 theorems, no sorry.
  • Planted false theorem: "under the rubber-stamp confirmer, the injected run does not release raw rows", proved by decide in a copy of the file. Lean rejected it ("decide proved that the proposition … is false"). The copy was then deleted, and Confirm.lean does not contain it.
  • #print axioms: every theorem depends only on propext and Quot.sound. no_confirmation_no_gain, refuser_gets_facts_only, facts_grow, steering and steering_blocked use only propext. No sorryAx, no Classical.choice.

References

  1. S. Zdancewic and A. C. Myers. Robust Declassification. In Proceedings of the 14th IEEE Computer Security Foundations Workshop (CSFW), 2001.
  2. A. C. Myers, A. Sabelfeld and S. Zdancewic. Enforcing Robust Declassification. In Proceedings of the 17th IEEE Computer Security Foundations Workshop (CSFW), 2004. Extended as "Enforcing Robust Declassification and Qualified Robustness", Journal of Computer Security 14(2), 2006.
  3. A. Sabelfeld and D. Sands. Declassification: Dimensions and Principles. Journal of Computer Security 17(5), 2009.

Last built 2026-11-25