Skip to content

Verified caller and credential matrix

Spec id: arc-verified-caller
Version: 1
Status: Signed off
Signed off: 2026-11-05 by woksin, https://github.com/Cratis/Identity/issues/14; owner confirmation pending
Issue: https://github.com/Cratis/Arc/issues/3701
Sign-off issue: https://github.com/Cratis/Identity/issues/14
Supersedes: None

Verification paths produce one caller shape without confusing human, delegated, and machine authority. The caller supplies verified inputs to authorization; it is not authorization by itself. This is a logical record, not a shipped public API.

Person, Account, Realm, Issuer, Subject, Linked key, Resource, Resource indicator, Audience, Tenant, Organisation, Environment, Actor, Credential kind, Assurance, Policy epoch, Access token, ID token, Refresh token, and PAT have exactly the meanings in the Terms table of identity-contract-v1.md, Cratis/Identity#24. Shared meanings are not redefined here.

A verified caller is a request-local record emitted after the selected verifier succeeds. A service-principal allowlist maps a verified machine identity to explicit operation permissions and tenant rules. A per-work grant is a checked server-side work record, not a credential. A principal kind distinguishes person, delegated actor, organisation automation, cluster workload, and runner; it is not a credential classification.

MUST, MUST NOT, and SHOULD use RFC 2119 meanings. Requirements apply after sign-off.

The logical field mappings below extend identity-contract-v1 §6 and were reviewed by the Direct/Studio consumers in the Identity #14 sign-off. Camel-case names are Arc record fields, not new token claims or a new signed-envelope serialization.

Field Requirement
contractVersion MUST be a string identifying the verified signed-context version or supported local verification profile, never caller input. This local profile uses "1". Unknown profiles MUST be refused.
principalKind MUST identify person, delegated-actor, organization-automation, cluster-workload, or runner. These enum spellings do not rename the shared Organisation term.
accountKey MUST contain exact issuer and lowercase UUID v4 subject for a person, as defined in identity-contract-v1; MUST be absent for service-only calls.
person MUST be the product person reference resolved from confirmed account-key mapping for person/delegated calls; MUST be absent for service-only calls. It is not a replacement wire sub.
actor MUST represent the current registered iss/sub from verified act for delegated/on-behalf calls. It MUST NOT be invented from public client ids or PAT labels. Historical nested actors MUST NOT authorize.
servicePrincipal MUST identify the verified service identity for machine-only calls; MUST NOT be promoted to an Actor acting for a person or to a person UUID. This field extends the logical record for machine permissions.
credentialKind, credentialId MUST reflect the verified record: Browser session, OAuth grant, PAT, on-behalf session, machine principal, or workload, as defined in identity-contract-v1. Exact enum serialization remains open. The id MUST be non-secret. A token jti alone MUST NOT be treated as a grant id.
grantId MUST identify the checked delegation or per-work record where applicable and MUST come only from the verified credential or a server-side mapping keyed by verified credentialId, never request headers, body, or query. It MUST NOT substitute for presenter authentication. Its token-claim mapping is not defined by this record.
client MUST use { id, authentication } where a client is present. authentication MUST distinguish declared from authenticated. Public client ids and PAT labels MUST NOT establish authenticated actor authority.
resource, environment MUST be registered references established by verified credential constraints and trusted installation binding, not request labels.
tenant MUST be the verified product tenant for workspace operations, corresponding to token tid where applicable. It MUST match the independently resolved target and current membership. Machine work MUST obtain its tenant from a checked per-work binding.
organisation MUST come only from a confirmed Access tenant binding, if relevant. It MUST NOT substitute for tenant membership.
scopes MUST preserve the verified ceiling and be intersected with live roles and policy. Empty scopes MUST NOT mean unrestricted person access.
permissions MUST preserve explicit service-principal operation permissions where applicable; MUST NOT confer person roles.
assurance MUST retain idp, integer NumericDate auth_time, acr (basic if unknown), and optional mapped amr for person calls. A workload MUST NOT fabricate human assurance.
senderBinding MUST contain either no binding or the verified DPoP result (jkt, accepted proof jti). Raw proofs MUST NOT be forwarded as evidence. A token with cnf.jkt MUST NOT be accepted as a plain bearer. The verifier MUST validate the proof per RFC 9449 §4.3, including typ=dpop+jwt, signature, htm and htu matching the request, ath equal to the presented token’s hash, and iat within a configured window. A missing, non-positive or unbounded iat window MUST cause refusal of sender-bound tokens; the window MUST be finite (recommended at most 5 minutes). The jti replay cache MUST retain entries at least for that window. Missing DPoP header, wrong proof key thumbprint, replayed proof jti, or any invalid proof MUST cause 401 and MUST NOT produce a caller. DPoP optionality applies only to unbound tokens.
policyEpoch MUST be a nonnegative integer when organisation policy applies. A stale epoch MUST force current-policy re-evaluation; it MUST NOT independently authorize. An unavailable required policy check MUST cause refusal.

Arc MUST construct exactly one caller for UI, REST, and MCP from a verified AuthProxy envelope, locally verified PAT after dispatch, native OAuth where enabled, or allowlisted verified workload. Unsigned identity headers MUST NOT authenticate a caller. Authorization MUST intersect product policy, scopes or service permissions, tenant, environment, grant bounds, assurance requirements, and current fences.

Credentials are the Authorization header value, a session cookie, an AuthProxy identity envelope, and any credential in the URI query. A session cookie plus an Authorization bearer counts as two credentials. An AuthProxy identity envelope plus Authorization MUST count as one credential only when the verified envelope cryptographically covers that exact Authorization value (forwarded identity v2 signs its SHA-256 hash, Cratis/Arc#3698); otherwise they MUST count as two. A DPoP proof accompanying its token is not an additional credential. A request with more than one credential, or a credential in the URI query, MUST be refused before caller construction (RFC 6750 §2 and OAuth 2.1). The verifier MUST NOT select one of multiple credentials silently. AuthProxy MUST NOT attach a person envelope (an envelope whose credential kind is not pat) to a request it forwards with a PAT. A PAT-namespace value under any non-Bearer Authorization scheme, including DPoP, MUST be refused in the PAT branch, never passed to OAuth verification or introspection.

For delegated calls, the grant record’s accountKey, current actor (iss, sub), resource and catalog audience, tenant, and environment MUST equal the verified token’s corresponding values and trusted installation binding. A mismatch MUST cause refusal. A request-supplied grant reference MUST be ignored or refused, never used to select a record. If the verified credential maps to grant-a and the request supplies grant-b, authorization MUST use only grant-a or refuse the request; grant-b bounds MUST NOT be read.

When a verified AuthProxy identity envelope covers the exact Authorization value and therefore counts with it as one credential, the caller MUST be built only from that bearer’s own verification path: the application PAT verifier for a PAT-namespace value, the OAuth verifier otherwise. The envelope MUST NOT substitute for bearer verification; it only binds the forwarded bearer to the hop. The envelope’s signed subject/account key MUST equal the verified bearer’s; otherwise the request MUST be refused.

An envelope covering a PAT-namespace value under any Authorization scheme MUST be refused unless its credential kind is pat, as defined by forwarded identity v2 (Cratis/Arc#3698). Even a pat-kind envelope MUST NOT replace local PAT verification, including revocation, scope ceiling, policy epoch, and recovery epoch checks. PAT verification MUST compare the PAT record’s recovery epoch with the current authority/realm recovery epoch from independent custody, per identity-revocation-v1.md §6; an older, missing, or unavailable epoch MUST cause refusal, with no policy re-evaluation.

Principal kind Issuer Audience Authentication Authorization owner Tenant binding Permitted exchanges
Person Realm Identity for OAuth; resource-local PAT issuance One catalog audience, or fixed PAT resource OAuth with PKCE; DPoP where bound; application PAT verification; verified browser/on-behalf context where applicable Product membership and roles intersected with scopes Fixed per credential Delegation within consented grant; PAT exchange is not enabled by this specification
Delegated actor Realm Identity One allowed destination audience Authenticated agent and DPoP-bound exchanged token Product intersected with server-side lineage Inherited, no wider Only named actors, destinations, depth, budgets
Organisation automation Realm Identity One catalog audience Confidential client credentials, private_key_jwt, DPoP Product service-principal rules, never person roles Fixed at registration No exchange into person authority
Cluster workload Cluster issuer or workload CA Receiving app, for example work-api; never API-server default TokenReview with live bound pod, or workload mTLS Receiving app allowlist and explicit permissions Checked per-work grant for tenant work None through the people authority
Runner Registering product Runner endpoints only Registered key proved per session Registering product and checked per-work grant Per-work grant None

The DPoP requirements for authenticated delegated and organisation-owned agents do not impose DPoP on every MCP client. MCP client DPoP support is optional; explicitly bound tokens still require their proofs.

Endpoints MUST declare accepted principal kinds. A workload MUST be refused on a person-only endpoint and a person credential on a workload-only endpoint. Workload credentials MUST NOT be exchanged through Identity for person or realm tokens. A valid resource audience MUST NOT be treated as a service-principal allowlist entry.

For service-account tokens the handler MUST validate cluster issuer, receiving-app audience, expiry, and binding to a live pod. TokenReview MUST specify the receiving app’s expected audience and its returned audiences MUST include it. The API-server default audience MUST NOT satisfy this check. Verified cluster issuer, namespace, service account, bound pod name, and bound pod UID MUST map through the configured allowlist to explicit permissions and tenant rules. Unknown identities MUST be refused, including otherwise-valid customer workloads at platform endpoints.

Projected service-account token lifetime SHOULD be short; ten minutes is the decided value (Identity #14). For mTLS the verifier MUST check the workload-CA chain, SAN identity, and certificate validity; short lifetime MUST bound revocation exposure. The verified mTLS service identity MUST also pass the allowlist.

The deleted-pod rejection latency L is a provisional maximum of 30 seconds until measured (see Open questions). A successful TokenReview cache entry MUST expire no later than min(token expiry, validation time + L). Earlier deletion invalidation MUST still meet L. After cache expiry, unavailable revalidation MUST cause refusal. Revalidation MUST re-establish pod liveness. Cache keys MUST bind token and expected audience; results MUST NOT be reused across audiences.

An endpoint performing work for a person MUST authenticate the service principal and separately check the per-work grant. Authorization MUST intersect both permission sets. A grant for another service principal MUST be refused. Tenant and person provenance MUST be explicit in background work, not inferred from ambient state. Any represented-person authority MUST remain in the checked per-work record rather than converting a workload into a person credential.

Fixtures use resource https://work.example.test/api, audience work-api, tenant tenant-fixture, and registered environment test. The synthetic person account key uses issuer https://login.example.test and subject 8b167ad2-0f89-4c78-9d42-6d4580495d32.

Input Expected result
Valid person PAT and permitted operation principalKind=person, Credential kind PAT; account key and product person retained, live policy checked.
Valid delegated token with person UUID sub, current act object, active lineage principalKind=delegated-actor; product person and current Actor distinct.
Valid organisation client-credentials token principalKind=organization-automation, Credential kind machine principal; no person or fabricated Actor.
Bound live pod token and allowlisted service account principalKind=cluster-workload, Credential kind workload; explicit permissions, no person.
Runner key proof and matching per-work grant principalKind=runner; only granted runner work; no person credential.
Correct audience, non-allowlisted service account, including customer workload Refused.
TokenReview authenticated=true but no app audience, or only API-server audience Refused.
Valid mTLS chain but SAN not allowlisted Refused.
Grant for service-a presented by authenticated service-b Refused.
Validate at t=0, pod deleted at t=1, token expiry t=600, request t=31 Refused; no cached success after t=30, deletion rejected within 30 seconds.
Validate at t=0, token expiry t=10, request t=11 Refused despite 30-second maximum.
Revalidation unavailable after cache expiry Refused; no stale success.
Workload on person-only endpoint, person on workload-only endpoint Refused in either direction.
Unknown contractVersion="2" Refused.
PAT label claiming authenticated agent identity Declared client only; no Actor authority.
Verified token act=agent-B; grant actor is agent-A Refused; no caller constructed.
Grant reference supplied in request input, not the verified credential/mapping Refused; no caller constructed.
cnf.jkt-bound token without a DPoP header 401; no caller constructed, no plain-bearer downgrade.
cnf.jkt-bound token with wrong proof key thumbprint 401; no caller constructed.
cnf.jkt-bound token with replayed proof jti 401; no caller constructed.
cnf.jkt-bound token with proof htu mismatch 401; no caller constructed.
cnf.jkt-bound token with proof ath mismatch 401; no caller constructed.
cnf.jkt-bound token with stale proof iat 401; no caller constructed.
cnf.jkt-bound token with proof htm mismatch 401; no caller constructed.
Verified credential maps to grant-a; request supplies grant-b Refused; request reference unused, grant-b bounds never read.
DPoP Authorization scheme with a direct_pat_v1_ value PAT branch refusal; no OAuth verification or introspection, no caller constructed.
Session cookie plus Authorization bearer Two credentials; refused before caller construction.
AuthProxy identity envelope plus bearer not cryptographically covered by it Two credentials; refused before caller construction.
Verified oauth-grant AuthProxy envelope covering the exact OAuth bearer, matching account key, all other checks pass One credential; caller constructed only through OAuth verification.
Verified non-pat envelope covering a direct_pat_v1_ value Refused; no caller constructed.
Verified pat-kind envelope covering a revoked PAT Refused after local PAT verification; no caller constructed.
Verified envelope covering the exact OAuth bearer but with a different signed subject Refused; no caller constructed.
More than one credential, or a credential in the URI query Refused before caller construction.

Machine-readable group: principals and workload cache, repository path Source/Identity.Specs/Vectors/arc-verified-caller-v1/principals-and-workload.json. These are data vectors, not executed runtime conformance tests. when.action names a logical operation; outcomes and reasons are vector vocabulary, not public error messages.

  • M10 / W0 (open): the workload deletion latency value is provisional (30 s placeholder) until measured, and will change through a new version of this specification; the rest of the specification is locked. Ten-minute tokens are decided at sign-off.
  • W0 / D20: decided as option C (Identity #69): policy freshness and epoch re-evaluation mechanics, plus non-secret workload/runner credential identifiers.
  • (align with #24): #24 defines a string Contract version, account key separate from product Person, Credential kind categories, structured Client, Sender binding, assurance fields, and conditional integer Policy epoch. This specification has adopted those constraints. Exact camel-case serialization, principalKind, servicePrincipal, and permissions are additional Arc mechanics; machine-principal and runner credentials and enum spellings were covered by the Identity #14 sign-off. Actor remains person-representing, not the name for a bare service principal. Environment wire syntax and Actor namespaces remain open in #24.
  • (align with #24): grantId is a record reference, not an approved extra access-token claim. #24’s claim allowlist requires explicit review before such a claim is added; jti is not a grant id.
  • Runner contract: registration, session expiry, rotation, and per-work revocation are outside this record. No new default is invented here.

This spec MUST change only through a new version file. Consumers MUST reject unknown record profiles, never infer compatibility from field names, and retain the superseded document and vectors. New versions MUST identify their predecessor and migration requirements. A new verifier MUST preserve authenticated actors, represented persons, and declared clients as distinct concepts.

Appendix A: Identity wire implementation status

Section titled “Appendix A: Identity wire implementation status”

This implementation note does not change the locked caller record or supply an Arc verifier/product resolver.

Identity’s OAuth access tokens retain their existing claims. Code redemption and refresh also emit advisory cid: the non-secret grant event-source UUID, derived from the authorization with the existing consent/revocation outbox mapping. It is stable through refresh and equals introspection credential_id. It is not an ID-token claim, a raw authorization id, jti, a client id, a product key, or proof of authorization. No id is invented for an authorization-code principal before its authorization exists, or for token exchange without a grant.

After validating the token and introspection caller and proving recovery, Identity adds:

Member Wire value/source
credential_kind The string oauth-grant for a token bound to an OAuth authorization; this does not settle other credential-kind spellings
credential_id The same non-secret grant UUID as cid; omitted with credential_kind if no authorization exists
tid, aud, scope Validated token/grant values only, never request parameters; missing tenant/audience values are not invented
cache_epoch Current nonnegative recovery epoch; consumers invalidate cached verification on change
cnf Second step: pass-through only, not DPoP enforcement. A well-formed confirmation comes only from the validated token. Identity issues it only when opt-in DPoP issuance (Identity:DPoP:Enabled, off by default) binds the token; default Bearer replies omit it. Malformed confirmation errors in OpenIddict before ids are attached, rather than being silently omitted.

Invalid, expired, or revoked tokens remain exactly { "active": false }. Errors and unproven recovery disclose no credential metadata. These fields do not carry product user/tenant keys, roles, or permissions: the product-owned resolver and live authorization checks remain required. Raw tokens must never be logged or used as audit identifiers.