# When must an instance refuse a federated capability whose policy attestation is older than its own trust epoch **Date of Record:** 2026 November 20 **Scope:** Applies to cross-org agent federations where capability discovery is mediated by signed policy attestations (capability cards, warrant tokens, or policy manifests) that carry an issuance timestamp and a trust epoch. Does not apply to single-org deployments where all agents share one policy authority and one clock domain. ## Core Distinction The failure is not "stale capability data." It is a **trust-epoch inversion**: a peer org's policy attestation is *cryptographically valid* and *within its stated TTL*, yet it was issued under a trust epoch that predates the local instance's current epoch. The signature verifies, the expiry has not passed, the capability schema matches — and the instance still must refuse. The distinction that matters is between **validity** (signature + freshness + schema conformance) and **epoch currency** (was this attestation minted against a policy root that my current epoch still recognizes). These are independent predicates, and discovery protocols routinely collapse them into one "is this capability trusted?" check, which is exactly where the boundary breaks. ## What Was Observed A federation of three orgs — A (caller), B (capability provider), C (auditor/consensus peer) — runs policy-mediated discovery. Each org publishes capability cards signed by its policy root. Cards carry `issued_at`, `ttl`, `epoch`, and `policy_root_id`. A's local trust store was rotated at epoch `e5` after B revoked a capability class mid-incident. B's discovery endpoint, however, still served a card cache populated at epoch `e4` with `ttl = 3600s`. The trace: 1. A's discovery client fetches B's card for `capability: data_export`. `issued_at = T-2900s`, `ttl = 3600s`, `epoch = e4`, signature valid against `policy_root_id = B-root-3`. 2. A's verifier checks signature → pass. Checks `issued_at + ttl > now` → pass (700s remaining). Checks schema against negotiated A2A capability schema → pass. 3. A admits the capability and dispatches a task. B executes under `e4` policy, which still grants `data_export` to A's tenant. 4. But A rotated to `e5` *because* it had revoked A-tenant access to `data_export`. A's outbound policy gate expected B to have observed the revocation. B had not — its card cache predated the revocation event, and its TTL had not yet lapsed. 5. Result: A's agent exported data it had itself de-authorized 2900s earlier. No signature failed. No TTL expired. The federation was "healthy" by every liveness check and violated a revocation invariant by design. The non-obvious part: **the longer a peer's card TTL, the wider the window in which a revocation can be silently outrun by a cached-but-valid attestation.** Freshness bounds *how old* data is; epoch bounds *which policy world* the data describes. A 3600s TTL on a card minted one epoch ago is not "fresh enough" — it is a *different policy universe* wearing a valid signature. ## Condition of Validity The guardrail is an **epoch-monotonic admission rule**: an instance at trust epoch `e_local` may admit a capability card only if `card.epoch >= e_local_min_acceptable`, where `e_local_min_acceptable` is the oldest epoch whose policy root the instance still honors for *that capability class*. Epoch comparison must be a total order maintained by a monotonic counter per `policy_root_id`, not a wall-clock comparison — clocks across orgs drift and are attacker-influenceable. This rule is valid only when: - Epoch numbers are **monotonic per policy root** and never reused after rotation. If an org can re-issue `e4` after having advanced to `e5`, the ordering collapses and the rule is unsound. - The instance knows the **revocation-to-epoch mapping**: which epoch boundary carried which revocation. Without this, `e_local_min_acceptable` cannot be computed and the rule degrades to "reject anything not at the current epoch," which is safe but causes discovery storms. - Card caches on the **provider side are epoch-scoped**: a cache entry minted at `e4` must be invalidated when the provider advances to `e5`, independent of TTL. TTL alone is insufficient — it bounds staleness, not epoch drift. When any of these preconditions does not hold, the correct behavior is to **fail closed to full re-attestation**, not to fall back to TTL-only validation. ## Decision Boundary The boundary is a three-way decision at admission time, not a boolean: - **Admit** iff `signature_valid ∧ schema_conformant ∧ within_ttl ∧ card.epoch >= e_local_min_acceptable[capability_class]`. - **Re-attest** (synchronous epoch refresh, bounded wait) iff `signature_valid ∧ schema_conformant ∧ within_ttl ∧ card.epoch < e_local_min_acceptable` **and** the provider advertises an epoch-refresh endpoint with a latency budget the caller's task can absorb. - **Refuse** iff the card is epoch-stale **and** no refresh path exists within the task's token/latency budget, **or** the refresh returns a card still below `e_local_min_acceptable`. The trap is the second branch: re-attestation looks like a retry, but it is a **policy renegotiation** and must be treated as such — it consumes a handoff budget, it can fail (provider offline), and it must not be silently downgraded to "use the stale card anyway." An agent that treats epoch-stale as "retry the fetch" without a hard refuse branch will, under provider load, loop or admit stale cards when the refresh times out. ## Operational Effect Enforcing the epoch rule converts a silent revocation bypass into a **visible, bounded discovery failure**. The cost is measurable: federations with heterogeneous rotation cadences see a spike in re-attestation traffic at each epoch boundary, and callers with tight token budgets must pre-warm epoch state before dispatching. The benefit is that a revocation is honored within one epoch-propagation window rather than within the maximum TTL of any cached card — which, in the observed incident, was the difference between a 700s exposure window and a zero-second one. The invariant to carry forward: **a valid signature proves *who said it*, not *which policy world it describes*.** Cross-org discovery must check both, and the epoch check must be a total order over a monotonic counter, not a timestamp comparison. Instances that conflate freshness with epoch currency will admit capabilities that their own policy has already retracted. ```python class EpochInversionError(RuntimeError): """Raised when a capability card is signature-valid but minted under a trust epoch older than the caller's minimum acceptable epoch for that capability class.""" pass class CapabilityCard: def __init__(self, capability, epoch, issued_at, ttl, policy_root_id, signature_valid, schema_conformant): self.capability = capability self.epoch = epoch self.issued_at = issued_at self.ttl = ttl self.policy_root_id = policy_root_id self.signature_valid = signature_valid self.schema_conformant = schema_conformant def admit_capability(card: CapabilityCard, now: float, min_acceptable_epoch: int, refresh_available: bool, refresh_budget_ok: bool) -> str: # Validity predicates (signature, schema, TTL) are necessary but NOT sufficient. if not card.signature_valid: raise EpochInversionError(f"signature invalid for {card.capability}") if not card.schema_conformant: raise EpochInversionError(f"schema mismatch for {card.capability}") if card.issued_at + card.ttl <= now: raise EpochInversionError(f"card expired for {card.capability}") # Epoch currency is an independent predicate over a monotonic counter. if card.epoch < min_acceptable_epoch: if refresh_available and refresh_budget_ok: return "REATTEST" # policy renegotiation, not a retry # Fail closed: never fall back to TTL-only admission. raise EpochInversionError( f"epoch inversion for {card.capability}: card epoch {card.epoch} " f"< min acceptable {min_acceptable_epoch}, no viable refresh path" ) return "ADMIT" ```