skip to content

Assertion claims

The Contract A claim set, a worked example, the provider checks, and why the assertion carries no provider claim.

updated view markdown ->

An agent obtains a signed Agent Identity assertion from its broker with identity_signup. The assertion is a compact Ed25519-signed JWT. It is the proof the agent presents at endpoints.agent_signup; the discovery document and the assertion are separate artifacts.

This page is a reference for the Contract A claim set and the relying-party verification checks. The normative handshake is spec section 7; the assertion format itself is Contract A and is referenced, not redefined, by the discovery specification.

Claim set

Claim Type Meaning
iss string Issuer: the broker origin that minted and signed the assertion.
sub string (agt_...) Subject: the agent sub-identity id.
aud string Audience: the exact audience from the relying party's discovery document, case-sensitive.
jti string (jti_...) Unique assertion id.
iat integer Issued-at, Unix seconds.
exp integer Expiry, Unix seconds. The broker default lifetime is 5 minutes.
agent.id string (agt_...) The agent sub-identity id.
agent.name string Human-readable agent name.
agent.email string The agent's dedicated inbox address.
agent.harness string The agent harness identifier.
human.id string The verified human owner's id.
human.name string The human owner's display name.
human.email string The human owner's verified email address.
human.verified boolean Whether the human owner's email address is verified. The broker only mints an assertion when it is true.
delegation.master_tos_version string The Master Terms of Service version the human accepted.
delegation.master_tos_hash string (sha256:...), optional Content hash of the Master Terms of Service.
delegation.accepted_rp_tos_url string (URL) URL of the relying party terms accepted through the agent. It must equal the provider's current terms.url.
delegation.accepted_rp_tos_hash string (sha256:...) The broker-computed hash of the exact bytes it fetched at accepted_rp_tos_url.
delegation.accepted_at integer Acceptance time, Unix seconds.
delegation.scopes array of strings Scopes delegated for this signup.

identity_signup returns assertion with { jwt, jti, kid, typ, expires_at, expires_at_unix } and a prepared signup_request carrying Authorization: Bearer <jwt>. It does not return a separate decoded claims block; verification results live in the separate rp_verification summary. The full result contract is in MCP tools.

No relying-party claim is added to the assertion. Verification status, policy, attestation jti, and assurance level live in the broker's verification log and the tool result, not inside the signed JWT. The assertion stays strictly about the agent, the verified human owner, and the accepted terms.

Worked example

Ids are truncated and the audience is a placeholder. The payload below shows the exact signed claim set verified by the relying party after signature validation.

{
  "iss": "https://agentregistrar.dev",
  "sub": "agt_01j00000000000000000000000",
  "aud": "example-provider",
  "jti": "jti_01j00000000000000000000000",
  "iat": 1761000000,
  "exp": 1761000300,
  "agent": {
    "id": "agt_01j00000000000000000000000",
    "name": "opencode-agent",
    "email": "opencode-agent@agents.example",
    "harness": "opencode-v2"
  },
  "human": {
    "id": "hum_01j00000000000000000000000",
    "name": "Example Human",
    "email": "human@example.com",
    "verified": true
  },
  "delegation": {
    "master_tos_version": "2026.1",
    "master_tos_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
    "accepted_rp_tos_url": "https://example.com/terms",
    "accepted_rp_tos_hash": "sha256:05435fa3eaee7f3534b4a771ab2328d66d33f712f3534b29e9035717c246d953",
    "accepted_at": 1761000000,
    "scopes": ["tos:accept"]
  }
}

The hashes in the example are illustrative. Discovery does not carry terms text or a digest; the broker computes accepted_rp_tos_hash over the exact UTF-8 bytes it fetches from terms.url.

Verify the assertion

A relying party verifies at least these checks before creating or resolving an account:

  1. Fetch the issuer keys. Resolve the issuer's JWKS from GET <iss>/.well-known/jwks.json using an origin from issuer_allowlist. Do not accept a jku or x5u header that points at another host.
  2. Check the JOSE header. Require alg to be EdDSA. Select the key whose kid matches the header from the issuer's current JWKS; the configured kid changes across deployments, so never hard-code one. The broker sets typ to agent-id+jwt.
  3. Verify the signature. Verify the compact JWT against the selected issuer key.
  4. Check the issuer. iss must match one issuer_allowlist entry exactly.
  5. Check the audience. aud must equal the published audience.
  6. Check the lifetime. exp must not have passed, with at most 60 seconds of clock skew. The recommended maximum assertion lifetime is 5 minutes.
  7. Check the assertion id. A jti reused in a conflicting context is assertion_replayed. A repeated request for the same agent, account and service is not a replay; resolve it idempotently.
  8. Check the scopes. delegation.scopes must include every required_scopes entry.
  9. Check the human. human.verified must be true.
  10. Check the terms URL. delegation.accepted_rp_tos_url must equal the currently advertised terms.url after normalizing trailing slashes. Optionally, when terms.url serves deterministic bytes, compare delegation.accepted_rp_tos_hash with the digest of those bytes. A mismatch is tos_hash_mismatch and a hard stop for the agent.
  11. Record the proof. Keep the assertion jti, the accepted terms URL, version and hash, and the attribution for audit.

The stable error codes and their HTTP statuses are in spec section 7.2 and Error codes.

Do not modify the JWT

An agent must never decode, re-encode, or modify the compact JWT returned by identity_signup. Send the prepared signup_request verbatim to endpoints.agent_signup and nowhere else.

Known limits

  • human.verified means the human owner's email address is verified. It is not a KYC or identity-document check, and a relying party must not represent it as one.
  • Revocation is enforced by the broker when an assertion is minted. A relying party that only verifies signatures learns about revocation when it next asks for an assertion or through an out-of-band feed it chooses to support.
  • A provider may publish an optional verification credential (attestation) and the human owner applies a trust list and policy before minting, but a conformant provider without a credential still exists and is unverified. That check is policy, not an assertion claim.
  • An assertion proves identity, delegation and terms acceptance for its audience. It does not prove that the service is trustworthy or that its guide is safe.
sections

type to search.

up/down navigateenter selectesc close