Documentation

Docs / Related work

Cedar (with its Lean model, SymCC and SymCert)

What it is

Cedar is an authorization language built by Amazon Web Services and open-sourced in 2023. A policy says whether a principal may do an action on a resource in a context. It was designed from the start to be analysable: the language was cut down until questions about whole policy sets could be answered by an SMT solver. Its meaning is written in Lean and checked by machine.

Model

  • Entities: every request has exactly four parts, principal, action, resource, context. Entities have a type, attributes, tags, and parents (an entity hierarchy, used through in).
  • Rule forms: permit (scope) when {cond} unless {cond}; and forbid (...). The scope fixes principal, action and resource (equal to, or in a parent). Conditions are expressions over attributes, sets, records and extension types (IP, decimal, datetime, duration).
  • Templates: a policy with slots (?principal, ?resource) that is filled in per link. This is how per-asset sharing is written.
  • Combining: fixed, not configurable. Forbid overrides permit. Order does not matter. A policy that raises an error is skipped (and reported).
  • Default: deny. A request is allowed only if some permit applies and no forbid applies.
  • Schema and validator: a schema gives entity types, attributes and which actions apply to which types. The validator rejects policies that could raise a type error.

Formal semantics and what is proved

  • The evaluator, authorizer and validator are modelled in Lean. Proved properties include: forbid trumps permit, default deny, order independence, and soundness of the validator (a validated policy never hits a type error at runtime). The Rust engine is tested against the Lean model by differential random testing. The 2024 paper reports 4 bugs found by proofs and 21 more by testing.
  • Expressions terminate. Most operators run in constant time, loops are linear. There is no recursion apart from hierarchy membership, and no general quantification.
  • Symbolic analysis: Cedar's symbolic compiler (SymCC) turns a policy set plus a schema into SMT formulas. The encoding is claimed decidable, sound and complete. Analyses available in the cedar-policy-symcc crate include "never errors", "always allows", "always denies", "equivalent", "implies" (one set is at most as permissive as another) and "disjoint". A counterexample is a concrete request.
  • SymCert (Torlak, FMCAD 2026) is a Lean framework in which the symbolic compiler and five AWS analyses are verified, including extraction of finite counterexamples from SMT models (needed to prove completeness).
  • So: both single decisions and rule-set properties (equivalence, implication) are machine-checked. This is the closest thing to our goal that exists.

Purpose and use case

None built in. A purpose can be put into context as an attribute, but it is then just a string the caller supplies. Nothing makes it trusted or uncertain.

Uncertainty

None. Every attribute is a definite value.

History and state

Stateless. Time is an attribute (context.now with the datetime extension). No record of past releases.

Use for LLM agents

Amazon Bedrock AgentCore Policy (preview December 2025, generally available March 2026) uses Cedar to check every tool call an agent makes through the AgentCore Gateway. It denies everything by default. Policies can be drafted from plain English by a model, then checked with Cedar's analysis.

What we can reuse

  • The whole verification method: semantics in Lean, proofs of combining properties, differential testing of the real engine against the model.
  • The shape that keeps analysis decidable: a rule is quantifier-free over the request's own entities, their attributes and their ancestors. Our hyperedge rule can be put in the same shape.
  • The fixed algebra: forbid overrides, default deny, order independence. These are theorems in Cedar, not settings.
  • Analyses "implies", "equivalent", "disjoint" as our "exact effect of changing a rule".
  • Cedar as a compilation target for the certain part of our language (step 6 of the plan).
  • Partial evaluation (residual policies for unknown values) as a starting point for "ask whom".

What it lacks for us

  • Only four request slots. Our rules connect more types (use case, form, recipient, agent on behalf of a person). These must be squeezed into context or into the hierarchy.
  • Only allow and deny. No form of output, no caps, no "release the weakest form needed", no "ask".
  • No notion of trusted versus read-by-a-model attributes. No non-interference theorem about inputs.
  • No probability, no history, no duties.

Key references

  • Cutler et al., "Cedar: A New Language for Expressive, Fast, Safe, and Analyzable Authorization", OOPSLA 2024. https://arxiv.org/abs/2403.04651 (DOI 10.1145/3649835)
  • Disselkoen et al., "How We Built Cedar: A Verification-Guided Approach", 2024. https://arxiv.org/abs/2407.01688
  • Torlak, "SymCert: Verifying SMT-Based Policy Analyses", FMCAD 2026. https://repositum.tuwien.at/handle/20.500.12708/230492
  • cedar-policy-symcc crate. https://docs.rs/cedar-policy-symcc
  • Lean specification. https://github.com/cedar-policy/cedar-spec
  • AWS, "Why Policy in Amazon Bedrock AgentCore chose Cedar". https://aws.amazon.com/blogs/security/why-policy-in-amazon-bedrock-agentcore-chose-cedar-for-securing-agentic-workflows/

Last built 2026-11-25