- Organisation identity
- A registered, active organisation that has explicitly trusted the identity issuer. An inactive organisation, or an issuer it never trusted or has revoked, is refused. Starts at authentication.py:68.
- Agent or service identity
- The token’s subject, resolved to exactly one registered, active agent or principal for that organisation and issuer. ACN accepts identities an upstream authenticated; it issues no credentials. Starts at authentication.py:72.
- Delegated authority
- A mandate naming one human sponsor and one agent, issued only when the authenticated caller is that sponsor. A child mandate may only narrow its parent. Starts at mandates.py:47.
- Mandate constraints
- Permissions, limits in any dimension with a unit, thresholds above which a person decides, allowed resources or counterparties, a validity window and a maximum number of uses. A constraint set the build cannot parse denies. Starts at policy.py:38.
- Authentication
- A bearer token verified against the issuer’s published keys, RS256 or ES256, with issuer, audience, expiry, issued-at and subject all required. Starts at authentication.py:26.
- Authorization
- Three checks that are not policy: the token’s role permits the route, the mandate belongs to the token’s organisation, and the token’s agent is the mandate’s agent. Starts at clearance.py:99.
- Policy evaluation
- The action against the mandate: agent and mandate active, inside the validity window, uses remaining, permission granted, every quantity under its ceiling, the resource in scope, every ancestor still active, and room left after what is already reserved. Starts at clearance.py:122.
- Approval
- On the action path, an outcome: REQUIRE_APPROVAL, with nothing consumed. On the order path, a recorded act by an active human who is neither the mandate’s sponsor nor the decision’s proposer, bound to one signed decision. Starts at clearing.py:101.
- Enforcement
- What ACN itself holds: the mandate row is locked, a use is consumed and the quantities reserved in the same transaction as the decision. On the action path, whether the action then happens is the caller’s to enforce. Starts at clearance.py:423.
- Verified authorised instruction
- On the action path, a signed CLEAR with a five-minute expiry. On the order path, a settlement instruction signed before delivery, committed before delivery, and verified again before it is sent. Starts at clearance.py:373.
- Audit and evidence
- One hash-chained audit row and one outbox event per decision, committed in the same transaction as the state they describe. Every decision is itself a signed record, including a denial. Starts at clearance.py:181.