# In what scenarios must an instance reject a federated AAIF credential whose pairwise subject alias resolves correctly but whose linkability proof binds to a stale issuer epoch **Date of Record:** 2026 November 29 **Scope:** Applies to agents performing cross-issuer identity resolution under the Agent Authority & Identity Federation (AAIF) profile, where a verifier accepts a privacy-preserving credential proof (BBS+/SD-JWT style selective disclosure) whose pairwise subject alias (`sub_pairwise`) is derived per relying party. Does not apply to single-issuer deployments or to credentials carrying a globally unique subject identifier. ## Core Distinction The naive verifier checks two things independently: (1) does `sub_pairwise` resolve to a known local principal via the presentation context's audience binding, and (2) does the credential's linkability proof verify against the issuer's published public parameters. Both can pass while the composite identity assertion is invalid. The distinction that matters: **alias resolution is a per-relying-party projection, but the linkability proof is a per-epoch commitment.** When an AAIF issuer rotates its accumulator epoch — revoking, re-anchoring, or re-randomizing the linkability secret — credentials minted under epoch *e* remain cryptographically valid against the *archived* parameters for *e*. A verifier that resolves the alias first and only then fetches "current" issuer parameters will accept a proof that binds the agent to a defunct epoch. The alias still resolves; the proof still verifies; the *binding* between them now points at an identity state the issuer has explicitly superseded. This is not a signature failure. It is a continuity failure between two independently valid facts. ## What Was Observed During a federated handoff between a procurement agent (issuer A, `aaif://acme.example`) and a settlement agent (issuer B, `aaif://ledger.example`), the settlement agent's verifier resolved a presented credential from issuer A as follows: 1. Extracted `sub_pairwise` and confirmed it matched the audience-bound alias for `ledger.example` in its local alias table — **pass**. 2. Fetched issuer A's JWKS / accumulator parameters from the cached well-known endpoint (`/.well-known/aaif-issuer.json`), cache TTL 3600s — **pass**. 3. Verified the BBS+ linkability proof `π_link` against those parameters — **pass**. 4. Admitted the agent to the settlement queue with the resolved principal's spending authority. The failure trace: issuer A had rotated its linkability epoch at T=0. The settlement verifier's cached parameters were from T−2400s (epoch *e−1*). The credential presented at T+400s had been minted at T−3000s under epoch *e−1*, but issuer A had *re-anchored* the principal's linkability secret at rotation, meaning the alias `sub_pairwise` for `ledger.example` under epoch *e* now maps to a *different* linkability commitment. The verifier accepted a credential whose alias-to-commitment binding was severed by the rotation, because it never checked that the epoch the proof bound to matched the epoch the alias was currently registered under. Observed downstream effect: the settlement agent executed two transfers against a principal whose authority had been re-scoped at rotation (spending limit reduced from 50k to 5k). The transfers were individually under the *old* limit, so no per-transaction guard fired. The over-authorization was only detectable at the epoch-binding layer, which no component checked. A second, quieter instance: a research agent presenting to three relying parties in one session. Two relying parties had fresh parameters and rejected the credential at epoch check; the third had a stale cache and accepted. The agent's own logs recorded "2/3 peers accepted" and its retry logic re-presented to the rejecting peers with the *same* stale credential, compounding the divergence for 40 minutes before the token budget for the session exhausted. ## Condition of Validity The guardrail is an **epoch-binding invariant**, enforced at the verifier before alias resolution is allowed to confer authority: > For a credential presented under audience *a*, let `epoch_cred` be the epoch identifier embedded in the linkability proof's domain separator, and `epoch_alias(a)` be the epoch under which the issuer's current alias registry binds `sub_pairwise` to the linkability commitment. Admission requires `epoch_cred == epoch_alias(a)` **and** `epoch_cred` be within the issuer's declared acceptance window `[now − max_skew, now]`. This holds only when: - The issuer publishes epoch identifiers as first-class fields in its accumulator metadata (not inferable from key IDs alone — key rotation and epoch rotation are independent). - The alias registry is versioned per epoch, so `epoch_alias(a)` is queryable, not assumed. - The verifier's parameter cache is keyed by epoch, not by issuer, and a cached entry for epoch *e* is never substituted for a lookup of epoch *e'*. It does **not** hold when the issuer uses a single static linkability parameter set (no epochs) — in that case the invariant degenerates and the relevant check is revocation status alone. It also does not hold for credentials explicitly marked `epoch_agnostic: true`, which some low-assurance AAIF profiles permit; those must be routed to a separate admission path with reduced authority ceiling. ## Decision Boundary The boundary is not "is the proof valid" but **"is the proof valid *for the identity state it claims to bind*."** Concretely, an instance must reject when: - `epoch_cred < epoch_alias(a)` — the credential predates a re-anchoring; the alias has moved on. (The observed case.) - `epoch_cred > epoch_alias(a)` — the verifier's view of the alias registry lags the credential; treat as unverifiable, not as valid, and trigger a synchronous registry refresh rather than falling back to cache. - `epoch_cred` is outside the acceptance window even if it equals `epoch_alias(a)` — the issuer has narrowed acceptance and the credential is aging out. An instance must **not** reject solely because `epoch_cred != current_epoch` when `epoch_alias(a) == epoch_cred` and the window permits — that is a legitimate in-flight credential minted just before rotation, and rejecting it produces spurious handoff failures. The discriminator is always the *alias registry's* epoch, not the issuer's *latest* epoch. ## Operational Effect Enforcing the invariant converts a silent over-authorization into an explicit, retryable rejection. The agent receives a typed epoch-mismatch signal, refreshes the alias registry for the audience, and re-presents — or, if the credential is genuinely stale, requests re-issuance from the issuer. In the observed settlement case, the guardrail would have blocked both transfers at admission and surfaced the re-scoping to the principal, which is the correct outcome: the authority change was real and the agent should have known. The secondary effect is on retry logic: an epoch-mismatch rejection must be classified as *non-idempotent* — re-presenting the same credential to the same audience cannot succeed, because the alias binding is fixed at mint time. Retry loops that treat all verifier rejections as transient will burn token budget re-presenting a credential that is structurally inadmissible. The rejection must carry the expected epoch so the agent can decide between refresh-and-retry (registry lag) and re-issue (genuine staleness) without guessing. ```python from dataclasses import dataclass from typing import Optional class EpochBindingError(RuntimeError): """Raised when a credential's linkability proof binds to an epoch inconsistent with the audience's current alias-registry epoch.""" @dataclass(frozen=True) class Credential: sub_pairwise: str audience: str epoch_cred: int proof_valid: bool @dataclass(frozen=True) class AliasRegistryEntry: sub_pairwise: str epoch_alias: int def admit_federated_credential( cred: Credential, registry: Optional[AliasRegistryEntry], current_epoch: int, max_skew_epochs: int = 1, ) -> str: if not cred.proof_valid: raise EpochBindingError( f"linkability proof failed for sub_pairwise={cred.sub_pairwise!r}" ) if registry is None: # Absence of a registry entry is not "valid by default"; it is # unverifiable and must not confer authority. raise EpochBindingError( f"no alias registry entry for audience={cred.audience!r}; " "cannot establish epoch binding" ) if registry.sub_pairwise != cred.sub_pairwise: raise EpochBindingError( f"alias mismatch: cred={cred.sub_pairwise!r} " f"registry={registry.sub_pairwise!r}" ) if cred.epoch_cred != registry.epoch_alias: # The alias has been re-anchored (cred < alias) or the verifier's # registry view lags (cred > alias). Both are inadmissible. raise EpochBindingError( f"epoch binding severed: epoch_cred={cred.epoch_cred} " f"epoch_alias={registry.epoch_alias} audience={cred.audience!r}" ) if abs(current_epoch - cred.epoch_cred) > max_skew_epochs: raise EpochBindingError( f"epoch outside acceptance window: epoch_cred={cred.epoch_cred} " f"current={current_epoch} max_skew={max_skew_epochs}" ) return f"admitted:{cred.sub_pairwise}@{cred.epoch_cred}" ```