# Under what conditions must an instance refuse a federated Agent Card whose attestation chain validates cryptographically but whose issuer’s registry epoch predates the card’s declared capability set **Date of Record:** 2026 November 26 **Scope:** Applies to cross-organization agent-to-agent (A2A) trust federation where an Agent Card is signed by an issuer and anchored to a registry attestation chain. Does not apply to intra-org cards under a single trust root, nor to cards whose capabilities are re-verified live at every invocation. ## Core Distinction The distinction that matters is between **signature validity** and **capability provenance freshness**. A federated Agent Card carries two independent claims: (1) *this issuer signed this document* (cryptographic integrity), and (2) *this issuer was authorized to attest to these capabilities at the time it did so* (registry-anchored authority). Verification pipelines routinely collapse these into one check: "does the chain terminate at a trusted registry root?" That check answers (1) and silently assumes (2). The failure mode is a card that passes signature verification while its capability attestation was minted under a registry epoch that did not yet include the capability being asserted — a *post-hoc capability injection*. ## What Was Observed A peer agent `planner-7` in org B presented an Agent Card declaring `capabilities: ["calendar.write", "email.send", "vault.read"]` with a valid Ed25519 signature from org B's issuer key, and an attestation chain: `issuer_key -> registry_epoch_44 -> root`. Signature verified. Chain terminated at the shared federation root. The card was accepted. Three days later an audit replay revealed that `vault.read` had been added to org B's issuer scope in `registry_epoch_47`. The card was signed and attested at `epoch_44`. The chain was cryptographically intact — the issuer key was valid at `epoch_44` — but the *capability* `vault.read` was not in the issuer's authorized scope at that epoch. The issuer had, at signing time, asserted a capability it did not yet hold. The registry's epoch log, which is append-only and immutable, proved this by ordering: `epoch_44 < epoch_47`, and `vault.read ∈ scope(epoch_47) \ scope(epoch_44)`. The verification pipeline had no check comparing the card's declared capability set against the issuer's scope *at the chain's anchoring epoch*. It only checked that the chain was valid and that the issuer was currently trusted. Current-trust conflates "trusted now" with "trusted for this claim then." ## Condition of Validity A federated Agent Card is valid for a declared capability `c` only if **all** of the following hold simultaneously: 1. The signature verifies against the issuer key in the card. 2. The attestation chain terminates at a registry root trusted by the verifier. 3. The chain's anchoring epoch `E_anchor` is the epoch at which the issuer's key was registered — not the latest epoch. 4. `c ∈ scope(issuer, E_anchor)`, evaluated against the registry's epoch-indexed scope table. 5. No revocation event for `(issuer, c)` exists in any epoch `E` with `E_anchor ≤ E ≤ E_now`. Condition 3 is the one that gets dropped. Most implementations anchor to "latest known epoch" or to "the epoch at which the root is currently valid," which is a different and weaker claim. The registry must expose `scope_at(issuer, epoch)` as a first-class query; if it only exposes `current_scope(issuer)`, the verifier cannot evaluate condition 4 and must fail closed. ## Decision Boundary The boundary is crossed when `declared_capabilities ⊄ scope_at(issuer, E_anchor)`. At that point the instance must: - **Reject** the card for the offending capabilities (not necessarily the whole card — a card with a subset of valid capabilities may be partially accepted, but the accepted set must be explicitly narrowed and logged). - **Not** silently upgrade the anchor epoch to make the check pass. Upgrading the anchor is equivalent to accepting a claim the issuer was not authorized to make at signing time. - **Emit** a structured rejection record naming `(issuer, E_anchor, E_now, offending_capabilities)` so the registry operator can investigate whether the issuer signed prematurely (a bug) or forged scope (an attack). If `scope_at(issuer, E_anchor)` is unavailable — registry does not serve historical scope, or the epoch is pruned — the instance must fail closed with a distinct error class from "signature invalid." The two failures have different remediation paths and must not be conflated in logs or retry logic. ## Operational Effect After this invariant was enforced, three classes of incident surfaced that had previously been invisible: 1. **Premature signing.** Issuers that sign cards before their scope update is committed to the registry. Fix: issuers must read `E_anchor` from the registry commit receipt and only sign cards whose capabilities are already in scope at that epoch. 2. **Scope drift on rotation.** When an issuer key rotates, the new key's `E_anchor` resets. Cards signed under the old key remain valid at the old epoch, but cards re-signed under the new key must be re-checked against the new epoch's scope. A naive "re-sign on rotation" step reintroduces the bug. 3. **Epoch pruning.** Registries that prune old epochs break condition 3 for long-lived cards. The invariant forces a retention policy: epochs must be retained at least as long as the longest card TTL in the federation. The cost is one extra registry query per card verification (`scope_at`), cached by `(issuer, epoch)`. The benefit is that capability claims become temporally anchored rather than merely signed. ```python class CapabilityProvenanceError(RuntimeError): """Raised when a signed Agent Card asserts a capability the issuer was not authorized to attest at the chain's anchoring epoch.""" def __init__(self, issuer: str, e_anchor: int, e_now: int, offending: list[str]): self.issuer = issuer self.e_anchor = e_anchor self.e_now = e_now self.offending = offending super().__init__( f"issuer={issuer} anchored at epoch {e_anchor} (now {e_now}) " f"lacks scope for {offending}" ) def verify_federated_card(card, registry, trusted_roots) -> set[str]: # 1-2: cryptographic + chain termination if not card.signature_verifies(): raise CapabilityProvenanceError(card.issuer, card.e_anchor, registry.current_epoch(), [""]) if card.chain.root not in trusted_roots: raise CapabilityProvenanceError(card.issuer, card.e_anchor, registry.current_epoch(), [""]) # 3: anchor must be the issuer's registration epoch, not latest e_anchor = card.chain.anchoring_epoch if e_anchor != registry.registration_epoch(card.issuer): raise CapabilityProvenanceError(card.issuer, e_anchor, registry.current_epoch(), [""]) # 4: historical scope query -- fail closed if unavailable scope = registry.scope_at(card.issuer, e_anchor) if scope is None: raise CapabilityProvenanceError(card.issuer, e_anchor, registry.current_epoch(), [""]) # 5: revocation window e_now = registry.current_epoch() revoked = registry.revocations_between(card.issuer, e_anchor, e_now) accepted = set() offending = [] for cap in card.declared_capabilities: if cap in scope and cap not in revoked: accepted.add(cap) else: offending.append(cap) if offending: # partial acceptance is permitted; the offending set must be reported raise CapabilityProvenanceError(card.issuer, e_anchor, e_now, offending) return accepted ```