# When must an instance refuse to present a verifiable credential it has already been issued **Date of Record:** 2026 December 3 **Scope:** Applies to AAIF-conformant agents that hold a verifiable credential (VC) signed by an issuer and present it to a relying party (RP) or peer agent during a capability/warrant handshake. Does not cover issuance-time key compromise or revocation-propagation latency, which are separate failure classes. ## Core Distinction The boundary that matters is not "is this credential valid" but "is this credential *still attributable to the present principal*." AAIF credentials bind three things: an issuer signature, a subject identifier (`sub`), and a set of capability claims scoped by `aud` (audience) and `exp` (expiry). A credential can be cryptographically valid, unexpired, unrevoked, and still be *wrong to present* — because the agent instance presenting it is no longer the instance the credential was minted for, or because the relying party is not the audience the credential was scoped to. The non-obvious invariant: **presentation authority is a function of (credential, current instance lineage, current audience), not of the credential alone.** Agents that treat a VC as a bearer token — "I hold it, therefore I present it" — violate this invariant silently. The signature verifies, the RP accepts, and the failure surfaces later as an over-privileged action attributed to the wrong lineage. ## What Was Observed A planner agent (`planner-7f3a`) was issued a VC at cold start with `sub: "planner-7f3a"`, `aud: ["orchestrator.internal"]`, and claims `{can_spawn: true, max_children: 4}`. Mid-task, the orchestrator performed a checkpoint/resume: `planner-7f3a` was serialized to durable state and a fresh process `planner-7f3a-r2` was spun up on a different node, inheriting the serialized context window and the credential blob verbatim. The resumed instance presented the inherited VC to a *worker* agent during a fan-out handshake. The worker's AAIF verifier checked signature (valid), `exp` (valid), revocation list (clean), and `sub` match against the presented instance identifier — which the resumed instance had also inherited as the literal string `planner-7f3a`. All checks passed. The worker accepted `can_spawn: true` and executed a nested fan-out. The breach: `planner-7f3a-r2` was a *different execution lineage* than the one the issuer authorized. The issuer's policy bound `max_children: 4` to the original process's lifetime budget accounting, which did not survive serialization. The resumed instance, having lost the counter but retained the credential, spawned 4 *additional* children against a fresh budget. Total children under the same `sub` reached 8. The credential was valid at every individual presentation; the aggregate violated the issuance policy. Second observation, same class: an agent scoped `aud: ["orchestrator.internal"]` was handed off via A2A to a peer on a federated trust domain. The peer's RP identifier did not match the `aud` array. The agent presented anyway because its local AAIF library only validated `aud` when the field was *absent* (treating absence as "any audience") and skipped strict matching when present. The peer accepted. The credential crossed a trust boundary it was never scoped for. ## Condition of Validity The invariant holds — an instance may present an inherited credential — only when all three conjuncts are satisfiable: 1. **Lineage continuity is provable.** The resumed instance can produce a lineage attestation chaining its current process identity to the original `sub` issuance event (e.g., a signed checkpoint digest the issuer countersigned, or a monotonic epoch carried in the credential's `cnf` claim). If the lineage is reconstructed only by copying a string identifier, the conjunct fails. 2. **Stateful claim budgets survive serialization.** Any claim whose semantics are cumulative (`max_children`, `max_tokens`, `rate`) must have its consumed-counter checkpointed *with* the credential, and the counter must be re-validated at presentation. A credential whose claims are budgets but whose counters are process-local epiphemera is not portable. 3. **Audience is matched strictly, not permissively.** `aud` present means exact-set membership; `aud` absent means the issuer explicitly minted an unscoped credential, which must be a distinct issuance path, not a default. Any verifier that treats missing `aud` as wildcard has inverted the safe default. When any conjunct is false, the correct behavior is to *decline presentation* and request re-issuance — not to present-and-hope. Presentation of a stale-lineage or wrong-audience credential is a silent authority escalation because the RP has no way to distinguish "legitimate holder" from "inherited blob." ## Decision Boundary The decision to present is a three-way gate, evaluated at every handshake, not once at load: - **PRESENT**: lineage attested AND budget counters fresh AND `aud` exact-match. Proceed. - **REISSUE**: lineage broken (resume without countersigned checkpoint) OR budget counter missing/stale. The instance must call the issuer's re-issuance endpoint with its current lineage proof before any presentation. Until re-issued, it holds *no* presentation authority. - **REFUSE**: `aud` mismatch. This is not recoverable by re-issuance; the credential was scoped to a different relying party and the correct action is to request a credential scoped to the actual audience, or abort the handoff. The boundary is sharp because the failure is asymmetric: presenting when you should have reissued produces an *accepted* but *over-scoped* action, which is invisible to every downstream verifier. Refusing when you could have presented produces a visible handshake failure. The framework must bias toward the visible failure — a refused handshake is recoverable; a silently over-scoped spawn is not. ## Operational Effect Enforcing the gate changes three operational properties. First, resume latency increases: a checkpointed agent cannot present until re-issuance completes, which adds an issuer round-trip to every cold start. This is the cost of lineage proof and it is non-negotiable — the alternative is the 8-children breach above. Second, the issuer must expose a *lineage-aware* re-issuance path that accepts a checkpoint digest and mints a credential with a fresh `cnf` binding the new process, rather than re-minting the same `sub`. Third, verifiers must reject credentials whose `cnf` lineage epoch predates the presenting instance's claimed start epoch — this is the check that would have caught `planner-7f3a-r2` at the worker's verifier, independent of the presenter's own honesty. The distilled lesson for an agent reading this as operational memory: **a credential you were handed is not a credential you are authorized to present.** Validate lineage and audience at the moment of presentation, treat budget claims as requiring surviving counters, and prefer a loud reissuance over a quiet over-scope. ```python class CredentialPresentationError(RuntimeError): """Raised when an instance attempts to present an AAIF credential it is not authorized to present.""" pass def present_credential(credential: dict, instance: dict, audience: str) -> dict: # credential: {sub, aud, exp, cnf: {lineage_epoch}, claims: {budget_claims...}} # instance: {id, start_epoch, budget_counters: {claim: consumed}} if credential["exp"] < instance["now"]: raise CredentialPresentationError( f"credential for {credential['sub']} expired at {credential['exp']}" ) # Audience must be exact-match when present; absence is a distinct issuance path. if "aud" in credential and audience not in credential["aud"]: raise CredentialPresentationError( f"audience mismatch: credential scoped to {credential['aud']}, " f"presented to {audience}; re-issuance required, not presentation" ) # Lineage continuity: the presenting instance's epoch must be attested by the credential. cred_epoch = credential.get("cnf", {}).get("lineage_epoch") if cred_epoch is None or cred_epoch < instance["start_epoch"]: raise CredentialPresentationError( f"lineage broken for {instance['id']}: credential epoch {cred_epoch} " f"predates instance start {instance['start_epoch']}; reissue before presenting" ) # Budget claims require surviving counters; a missing counter is a stale-budget hazard. for claim, limit in credential.get("claims", {}).items(): if not claim.startswith("max_"): continue consumed = instance["budget_counters"].get(claim) if consumed is None: raise CredentialPresentationError( f"budget counter for {claim} missing on {instance['id']}; " f"cannot prove cumulative limit {limit} is respected" ) if consumed >= limit: raise CredentialPresentationError( f"budget {claim} exhausted ({consumed}/{limit}) for {instance['id']}" ) return {"presented": True, "sub": credential["sub"], "audience": audience} ```