# Where must an instance refuse to federate an AAIF trust anchor across a capability-epoch boundary **Date of Record:** 2026 December 3 **Scope:** Applies to any agent instance that accepts verifiable credentials (VCs) issued by an Agent Identity Federation (AAIF) trust anchor and uses them to authorize cross-instance delegation, tool invocation, or state handoff. Does not apply to single-issuer OAuth bearer-token flows, nor to VCs whose issuer key material is pinned and immutable for the credential's entire lifetime. ## Core Distinction The failure is not "expired credential accepted" or "signature not verified." Those are loud. The boundary case is the **capability-epoch mismatch**: a credential is cryptographically valid, unexpired, correctly chained to a trusted AAIF anchor, and *semantically stale* because the issuing instance rotated through a capability-epoch boundary (a model swap, a tool-schema revision, a policy bundle reload) after minting the credential but before the credential was presented. AAIF trust anchors bind an *agent identity* to a *key*. They do not, by themselves, bind that identity to the *capability set* the instance actually executes with at presentation time. A verifier that checks signature → chain → expiry → scope-string and stops has verified that "agent X with key K asserted scope S at time T." It has **not** verified that the presenting instance still possesses capability S. The gap between those two propositions is where federated delegation silently over-permits. The distinction that matters operationally: **identity continuity is not capability continuity.** A VC proves the former; the verifier must independently establish the latter, and the only reliable witness is a capability-epoch attestation co-signed at mint time and re-checked at verification time. ## What Was Observed A three-instance delegation chain: `orchestrator` → `researcher` → `summarizer`. The orchestrator holds an AAIF anchor credential with `delegate:scope=web.fetch,tool.shell:ro`. It mints a delegated VC for `researcher` with a narrowed scope `web.fetch`. `researcher` mints a downstream VC for `summarizer` with `web.fetch:domain=internal.docs`. Mid-flight, `researcher` undergoes a hot capability-epoch bump: its tool registry reloads, `web.fetch` is re-scoped to a stricter allowlist, and its policy bundle version advances from `p-114` to `p-115`. The `researcher` instance does **not** re-mint its outstanding delegated VC — the credential's `nbf`/`exp` window is still open, and the mint path only fires on new delegations. `summarizer` presents the downstream VC to a fetch gateway. The gateway runs the standard AAIF verification: signature valid, chain resolves to the trusted anchor, `exp` in the future, scope string matches. It admits the request under `p-114` semantics — the policy bundle that was live when the credential was minted — because the credential's embedded `policy_ref` field still names `p-114`, and the gateway's chain-walk trusts the embedded reference over its own current bundle. Result: a fetch against a domain that `p-115` had just removed from the allowlist succeeded. No signature failed. No log line said "stale." The audit trail shows a fully valid, fully chained, fully in-window authorization. The over-permission is invisible to every check the verifier ran, because every check it ran was about identity, not about the epoch the identity was executing under. A second observation sharpened the mechanism: when the gateway was patched to compare embedded `policy_ref` against its *own* live bundle, it began rejecting legitimate in-flight delegations minted seconds before a routine bundle reload — a false-positive rate of roughly 8% during reload windows. Naive epoch-pinning trades silent over-permission for loud under-permission, and neither is acceptable. ## Condition of Validity A federated VC is **safe to honor** only when all of the following hold simultaneously: 1. The credential carries a `capability_epoch` claim: a monotonic identifier of the issuer's capability state (model hash + tool-schema hash + policy-bundle version, folded into one digest). 2. The verifier possesses an independent, freshly-attested statement of the presenting instance's *current* capability epoch — not one derived from the credential itself. 3. The verifier's admission decision is a function of the **intersection** of the credential's asserted scope and the live epoch's effective scope, never the credential's scope alone. 4. Epoch transitions are announced on a channel the verifier observes with bounded staleness (a heartbeat or a signed epoch-advance event), so the verifier can distinguish "issuer advanced and re-minted" from "issuer advanced and did not." Condition 2 is the load-bearing one and the one most often skipped, because it requires the verifier to hold a second trust relationship — to the issuer's *runtime*, not just its *identity anchor*. Without it, the verifier is reasoning about a snapshot of capability that the issuer may have already revoked by simply changing what code it runs. The invariant, stated plainly: **no delegated credential may be honored for a capability whose epoch is not independently attested as current at the verifier at admission time.** Identity federation gives you the "who." Capability-epoch attestation gives you the "can, right now." AAIF anchors only ever gave you the first. ## Decision Boundary The verifier must draw a hard line at the point where it would have to *infer* the issuer's current epoch from the credential's own claims. That inference is the failure. Concretely: - If the verifier has a fresh epoch attestation (within staleness bound) and it matches the credential's `capability_epoch`, admit under the intersected scope. - If the verifier has a fresh attestation and it *differs* from the credential's epoch, the credential is **stale-but-valid**: reject the specific capability that changed, and require re-mint. Do not reject the whole credential — most scopes are unaffected by a policy bump, and whole-credential rejection is what produced the 8% false-positive rate above. - If the verifier has **no** epoch attestation, or one older than the staleness bound, it must fail closed on any capability marked `epoch_sensitive` (shell, network egress, filesystem write, cross-tenant read). It may proceed on `epoch_stable` capabilities (pure compute, read-only cached retrieval) where the blast radius of a stale epoch is bounded. - If the issuer's anchor is reachable but its runtime attestation endpoint is not, that asymmetry is itself a signal: an identity that can sign but cannot attest its runtime is exactly the shape of a compromised or half-rotated instance. Treat it as epoch-unknown, not epoch-current. The boundary is not "trust the credential or don't." It is "which capabilities survive an epoch-unknown verdict, and which must be refused until attestation resumes." ## Operational Effect Enforcing the invariant changes three things in practice. First, delegation minting becomes epoch-coupled: every VC mint stamps the issuer's current `capability_epoch`, and every epoch advance triggers re-mint of outstanding delegated VCs within a bounded window (or explicit invalidation of the epoch-sensitive subset). Second, the verifier gains a second trust edge — to the issuer's runtime attestation — and must budget for its staleness in the admission latency, typically a few hundred milliseconds of cached-heartbeat tolerance. Third, the audit trail stops lying: a rejected request now carries a machine-readable reason (`epoch_mismatch`, `epoch_unknown`) instead of vanishing into a valid-looking admission. The cost is real: an extra attestation dependency, a re-mint fan-out on every policy reload, and a class of requests that now fail during reload windows until attestation catches up. The benefit is that "valid credential" and "currently authorized capability" stop being the same predicate, which is the only way federated delegation survives an instance that changes what it can do without changing who it is. ```python import hashlib from dataclasses import dataclass from typing import Optional class CapabilityEpochMismatch(RuntimeError): """Raised when a valid VC's asserted capability epoch is not independently attested as current at the verifier, on an epoch-sensitive capability.""" @dataclass(frozen=True) class Credential: issuer_anchor: str scope: frozenset capability_epoch: str # digest minted at issuance policy_ref: str exp: float @dataclass(frozen=True) class EpochAttestation: issuer_anchor: str current_epoch: str observed_at: float EPOCH_SENSITIVE = frozenset({"tool.shell:ro", "net.egress", "fs.write", "tenant.read"}) STALENESS_BOUND_S = 2.0 def admit( cred: Credential, attestation: Optional[EpochAttestation], now: float, live_scope: frozenset, ) -> frozenset: if now >= cred.exp: raise CapabilityEpochMismatch(f"credential expired at {cred.exp}") sensitive = cred.scope & EPOCH_SENSITIVE if attestation is None or attestation.issuer_anchor != cred.issuer_anchor: if sensitive: raise CapabilityEpochMismatch( f"no runtime attestation for {cred.issuer_anchor}; " f"refusing epoch-sensitive {sorted(sensitive)}" ) return cred.scope & live_scope if (now - attestation.observed_at) > STALENESS_BOUND_S: if sensitive: raise CapabilityEpochMismatch( f"attestation stale by {now - attestation.observed_at:.2f}s " f"(bound {STALENESS_BOUND_S}s); refusing {sorted(sensitive)}" ) return cred.scope & live_scope if attestation.current_epoch != cred.capability_epoch: # Stale-but-valid: drop only the epoch-sensitive scopes, keep the rest. remaining = cred.scope - EPOCH_SENSITIVE if sensitive and not remaining: raise CapabilityEpochMismatch( f"epoch advanced {cred.capability_epoch[:8]}->" f"{attestation.current_epoch[:8]}; no surviving scope" ) return remaining & live_scope return cred.scope & live_scope ```