View as Markdown

OAID-1 — Core: Terminology, Identifiers, Cryptography, Encodings#

Version 0.2.5-draft · Part of the AllowedBy specification set

The identity layer keeps the wire prefix oaid (/.well-known/oaid, oaid-*+jwt, did:oaid). It has no separate name.

1. Terminology#

  • Node: a server that issues passports, countersigns grants, keeps a transparency log and witnesses other nodes. Identified by a DNS name it controls and by its node key (§6).
  • Home node: the node where a human enrolled their passkey. The human approves only on its page, and it is their wallet: every grant they signed, at every node, with revoke (OAID-7 §4).
  • Operator: the legal or natural person responsible for an agent runtime. Identified by a DNS name it controls, or by a node-scoped operator id when it has none.
  • Runtime: the process that holds an agent's private key and sends requests. The runtime is the subject of a passport. A model is an attribute of a runtime, never a subject.
  • Agent: a runtime acting under one or more grants. Used informally; wire formats always say runtime.
  • Passport: a short-lived signed document binding a runtime's public key to its operator, runtime identity, custody tier and issuing node (OAID-3).
  • Human: a natural person who approves. Identified towards each service by a pairwise id (§2.5) and registered by a passkey at their home node.
  • Grant: a signed document in which a human, by passkey signature at a stated level, allows a runtime to exercise capabilities until a deadline (ABY-1).
  • Envelope: the HTTP headers carrying a grant chain (or a passport) and a per-request proof (ABY-2).
  • Proof: a short-lived JWT signed by the runtime key binding one request to one document (ABY-2 §3).
  • Service: any HTTP endpoint that verifies envelopes. A service holds a trust list and never contacts a node to accept a request; it may call a node to create an approval when it rejects one.
  • Trust list: a service's signed local file naming the nodes and policies it accepts (OAID-5).
  • Level: an identity assurance level, L0 (passport, no human), L1 (human with a passkey) or L2 (human with verified legal identity) (OAID-7).
  • Authority: a grant member showing, by co-approvers' passkey signatures, that a grant satisfies the audience organisation's approval policy. A separate axis from level (ABY-1 §5).
  • Capability: a string naming an action, with optional constraints (ABY-3).
  • Log: a node's append-only Merkle tree of commitments to the documents it issued (OAID-4).
  • Checkpoint: a signed note stating a log's size and root hash (OAID-4).
  • Witness: a node that verifies another node's checkpoints and cosigns them.

2. Identifiers#

2.1 Node name#

A node name is a fully qualified DNS name, lowercase, without trailing dot, at most 253 octets. It MUST resolve, and the node MUST serve its statement at https://<node-name>/.well-known/oaid (OAID-2).

2.2 Operator id#

A DNS name the operator controls, once the node has verified it (OAID-2 §6). Every other operator MUST use a node-scoped id of the form <node-name>#op-<ulid>, which proves nothing beyond "registered at this node".

2.3 Runtime id#

<operator-id>/<runtime-name> where runtime-name matches [a-z0-9][a-z0-9._-]{0,63}. Example: acme.example/assistant. Many passports share a runtime id over time; each passport has its own key.

2.4 Passport id and agent URI#

Each passport has a ULID pid. The agent URI is did:oaid:<node-name>:<pid>. The DID method oaid resolves by fetching the passport from the node (OAID-4 §7). Services MUST NOT resolve DIDs at request time; the URI is for audit and correlation.

2.5 Human id#

The home node keeps an internal id per human that never leaves it. Every document a service sees carries the pairwise id for that service:

human.id = base64url(HMAC-SHA-256(home_secret, utf8(human_internal_id) ‖ utf8(audience)))

‖ is plain byte concatenation with no separator. home_secret is a home-node secret; audience is the service origin. Two services cannot correlate a person by id. The id is never derived from personal data and is stable per human, home node and audience.

2.6 Grant id#

gid is the jti of revision 0. Revisions of a grant share the gid, differ by rev, and each has its own jti (ABY-1). The grant URI is did:oaid:<node-name>:g:<gid>.

2.7 Key id#

The JWK Thumbprint (RFC 7638) of the public key, base64url, SHA-256. Used as kid in every JWS, proofs included.

2.8 ULID#

Universally Unique Lexicographically Sortable Identifier, 26 characters Crockford base32. Chosen for sortability in logs.

3. Cryptography#

3.1 Signature suites#

Key Allowed alg Verifiers
Node keys (node and role keys) EdDSA (Ed25519) MUST implement
Runtime keys EdDSA (Ed25519) or ES256 (P-256, for Secure Enclave, TPM, StrongBox, KMS) MUST implement both
Human passkeys, only inside human_sig ES256, EdDSA, RS256 MUST implement all three
Future suite ML-DSA-44, reserved; negotiated through the node statement alg list (OAID-2 §3) —

No other algorithm is permitted. RS256 anywhere outside human_sig is invalid. Implementations MUST reject alg: none.

3.2 Hashing#

SHA-256 everywhere: Merkle trees, log commitments, content digests, thumbprints, approval binding. Merkle tree hashing follows RFC 6962 §2.1 (leaf prefix 0x00, node prefix 0x01).

3.3 Key lifetimes#

Key Maximum validity Rotation
Node identity key (node) Long-lived, offline HSM Replacement requires trust lists to re-pin (OAID-5)
Node role keys (issue, countersign, checkpoint, witness) 2 years New statement signed by the node key; 30 days overlap; no trust-list change
Runtime key Life of the passport, see OAID-3 New key per passport unless tier 1 or 2
Human passkey Until revoked Re-registration on device loss, see AMH-1 §8
Service trust-list signing key Local matter —

4. Encodings#

4.1 Documents#

Every signed document is a JWS Compact Serialization (RFC 7515) with a JSON payload, except log checkpoints and cosignatures, which are C2SP signed notes (OAID-4). Protected header MUST contain alg, kid, typ. typ values:

typ Document
oaid-node+jwt Node statement
oaid-passport+jwt Passport
oaid-human+jwt Human registration or level change (OAID-7 §4)
statuslist+jwt Status list (IETF Token Status List)
oaid-trust+jwt Trust list
oaid-vouch+jwt Vouching statement
aby-grant+jwt Grant
aby-proof+jwt Per-request proof of possession (ABY-2 §3)
aby-revoke+jwt Revocation
aby-authority-policy+jwt Organisational authority policy (ABY-1 §5)
aby-operator+jwt Operator signature for rebind (operator_sig, OAID-2 §6)
oaid-orchestrator+jwt Orchestrator attestation evidence for tier 0 (OAID-6 §3)
amh-approval+jwt Approval request

Unknown payload members MUST be ignored. Unknown header members other than crit MUST be ignored. crit MUST NOT be used.

4.2 Standard payload members#

Member Type Meaning
v integer Wire format major version, currently 1
iss string Every node-issued document: the node name. Trust lists: their publisher. Proofs: absent
iat integer Issued at, Unix seconds
nbf integer Not before; REQUIRED in grants, OPTIONAL elsewhere
exp integer Expiry, Unix seconds
jti string ULID of this document; each grant revision has its own
log object { "idx": n }, the log leaf index promised for this document; REQUIRED in every logged document, countersigned grants included (OAID-4 §3)

4.3 JSON#

UTF-8, no byte order mark. Where canonical bytes are needed (hashing a payload), JSON Canonicalization Scheme (RFC 8785) is used.

4.4 Time#

Unix seconds, integer. Verifiers MUST allow 60 seconds of clock skew on a document's iat, nbf, exp: a document is expired when exp ≤ now − 60, not yet valid when nbf > now + 60, and invalid when iat > now + 60. A proof's iat MUST be within [now − 120 s, now + 60 s], both bounds inclusive; replay sets retain proof jti values for 300 s (ABY-2 §3).

4.5 Transport#

HTTPS with TLS 1.2 or later. Node endpoints MUST NOT be served over plaintext HTTP.

5. Error format#

All node and approval endpoints return errors as RFC 9457 problem details, media type application/problem+json, with type as a URI under https://allowedby.org/errors/. The type fragment is the error code used in this set, for example https://allowedby.org/errors/grant_required. Codes are registered in the AllowedBy Error Codes registry (§9).

Group Codes
Request invalid_request, envelope_too_large, passport_required, rate_limited
Signature and keys invalid_signature, unknown_key, untrusted_node, insufficient_witnesses
Time and status expired, not_yet_valid, actor_expired, revoked, status_stale
Policy attestation_insufficient, tier_insufficient, level_insufficient, qes_required, class_lifetime_exceeded, human_not_linked, authority_required, mandate_required, budget_exceeded, attribute_unavailable
Grant grant_required, grant_insufficient, capability_denied, single_use_consumed

An expired or revoked grant always yields 401 with a challenge when the service can re-approve; 403 is used only for policy refusals (ABY-2 §6).

6. Node keys#

A node has one long-lived node key, kept offline in an HSM. It signs only the node statement, which delegates four role keys: issue (passports, human registrations, status lists), countersign (every other node-issued JWS: grants, revocations, vouches), checkpoint (log checkpoints) and witness (cosignatures). Trust lists pin the node key (OAID-5), so rotating a role key never breaks a service.

The statement lists revoked_keys: [{ "kid": "…", "after": <log index> }]. A document signed by a listed key is invalid if its log.idx is greater than after; an unlogged document (status list) signed by a listed key is invalid.

7. Security considerations shared by all documents#

  • Verifiers MUST check exp, nbf, iat before signatures where cheaper, but MUST NOT skip signature verification on any path that leads to acceptance.
  • Verifiers MUST bind kid to a key obtained from a trusted source: a role key delegated by a node statement signed by a pinned node key, or a key embedded in and chained to such a document. A jwk header member MUST NOT be used as a trust source.
  • A verifier MUST check that a node-issued document's iss equals the node whose statement delegated the verifying key, and that the key holds the role for that typ.
  • Replay protection lives in the per-request proof (ABY-2 §3), not in documents, which are meant to be reused during their validity.

8. Standards alignment and bridges#

There are two bridges, RAR and CIBA. Grants are never exchanged for bearer tokens.

Standard Relation
OAuth DPoP (RFC 9449) The proof follows the DPoP model (htm, htu, iat, jti, a document hash); AllowedBy-Nonce is the DPoP-Nonce equivalent
Rich Authorization Requests (RFC 9396) Bridge: a grant's capabilities are expressible as authorization_details of type allowedby
OpenID CIBA Approval routing is decoupled authentication; code is the binding_message, human_hint the login_hint. Bridge: a node MAY expose a CIBA-compatible façade over POST {approvals}
GNAP (RFC 9635) Same separation of client key, interaction and grant; no wire compatibility
HTTP Message Signatures (RFC 9421), Web Bot Auth Optional proof profile with tag="web-bot-auth" and Signature-Agent (ABY-2 §3.1); nodes publish a key directory (OAID-2 §4.1)
Digest Fields (RFC 9530) bdh equals Content-Digest: sha-256
SD-JWT VC Format of L2 disclosures, encrypted to the audience's disclosure_key
IETF Token Status List Format of status lists
C2SP tlog-checkpoint, tlog-cosignature, tlog-witness, tlog-tiles Log checkpoints, witnessing and serving, verbatim (OAID-4)
WebAuthn Level 3, FIDO MDS human_sig and the authenticator class authn
eIDAS, EU Digital Identity Wallet Source of L2 (OAID-7)

9. IANA considerations#

Registry Entries
Media types application/oaid-node+jwt, oaid-passport+jwt, oaid-human+jwt, oaid-trust+jwt, oaid-vouch+jwt, aby-grant+jwt, aby-proof+jwt, aby-revoke+jwt, aby-authority-policy+jwt, aby-operator+jwt, aby-org+jwt, aby-mandate+jwt, oaid-orchestrator+jwt, amh-approval+jwt
HTTP Field Names Allowed-By, AllowedBy-Proof, AllowedBy-Nonce
HTTP Authentication Schemes AllowedBy
Well-Known URIs oaid (node statement), oaid-operator (operator binding), allowedby (service capabilities and templates)
OAuth parameters authorization_details type allowedby
New: AllowedBy Error Codes §5; Specification Required
New: AllowedBy Attestation Types OAID-6 §3; Specification Required
New: AllowedBy Constraint Names ABY-3; Specification Required

The DID method oaid is registered in the W3C DID Specification Registries. /.well-known/http-message-signatures-directory (Web Bot Auth) and application/statuslist+jwt (IETF Token Status List) are used as already registered.

10. Privacy and data protection#

Topic Rule
Roles A node is a processor for the operator (passports, grants, approvals). A home node is a controller for its human records (passkey, contact channel, identity verification, home_secret); an organisation node is the employer's processor (ORG-1 §7). A service is a controller for what it receives.
Minimisation Pairwise human ids (§2.5); grants carry no names; personal attributes only as a disclosure from the OAID-7 §7 catalogue, with a declared purpose, that the human consents to on the page (ORG-1 §4).
Public log Holds commitments SHA-256(salt ‖ document) only. Documents and salts go to the parties and to monitors the operator authorises (OAID-4).
Retention Log commitments: at least 7 years (OAID-2 §7). Approvals: pruned 90 days after a terminal state. Disclosures: never logged, pruned after 90 days.
Erasure Delete the document and its salt, and log an aby-revoke+jwt with reason redacted (OAID-4 §8). The commitment remains; without the salt it is not personal data.

Change log#

Every change to this document adds a row here and increments its version (README, Versioning).

Version Date Change
0.2.5-draft 2026-11-18 Code attribute_unavailable (OAID-7 §5.2, CHANGES §24).
0.2.4-draft 2026-10-29 Types aby-org+jwt, aby-mandate+jwt; codes mandate_required, budget_exceeded; privacy roles for organisation nodes (CHANGES §18).
0.2.3-draft 2026-10-28 Error code qes_required registered (CHANGES §17).
0.2.2-draft 2026-10-27 Pairwise id concatenation defined; clock-skew bounds made exact; oaid-orchestrator+jwt registered (CHANGES §16).
0.2.1-draft 2026-10-27 statuslist+jwt everywhere, aby-operator+jwt and amh-approval+jwt types, jti per revision, node-scoped operator ids (CHANGES §15).
0.2.0-draft 2026-10-27 Identifiers, suites (Ed25519 and P-256), node identity key and role keys, error registry rewritten for 0.2 (CHANGES §4, §7, §10).