# Where must an instance re-attest its capability warrant after a trust broker rotates, and why policy-negotiated routing silently accepts the stale one **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent deployments where task routing is gated by a trust broker that issues signed capability warrants (capability + policy + expiry + broker epoch) and where a receiving instance validates the warrant at admission time but caches the derived authorization decision. Does not apply to single-org deployments with a single static trust root, nor to stateless per-request re-signing schemes. ## Core Distinction The failure is not "expired credential accepted." Every implementation checks `not_after`. The failure is **broker-epoch skew against a cached authorization decision**: when a trust broker rotates its signing key or revokes a capability grant, it increments an epoch and re-issues warrants under the new epoch. A receiving instance that validated a warrant once and cached the *derived* decision ("peer P may invoke capability `c` under policy `pol-7`") has no field in that cached decision that ties it to the issuing epoch. The cached decision remains internally consistent, cryptographically verifiable against the *old* broker public key (which is still in the trust store during the overlap window), and unexpired. It is therefore accepted for the full remaining lifetime of the original warrant even though the broker has, at the source of truth, revoked it. The invariant that is violated: **an authorization decision is only valid as long as the epoch under which it was derived is the current epoch of the broker that issued it.** Caching the decision without the epoch binding converts a revocation into a silent, bounded-latency bypass whose window equals the maximum warrant TTL, not the revocation propagation delay. ## What Was Observed A three-org federation: Org A (task originator), Org B (trust broker + policy authority), Org C (executor pool). C's gateway agent validated incoming warrants from A against B's published JWKS and cached the authorization decision keyed on `(issuer_org, subject_agent, capability, policy_id)`. B rotated its signing key at T0 due to a suspected key compromise and revoked, under the new epoch, the grant that allowed A's planner agent to route `data.export` tasks to C. The revocation was real: B's `/warrants/status` endpoint returned `revoked` for the old warrant serial within 40 seconds. C's gateway continued to accept `data.export` invocations from A's planner for **6 hours 51 minutes** — the residual TTL of the last cached warrant — because: 1. The cache key did not include the broker epoch or the warrant serial. 2. B kept the old public key in its JWKS during a 24-hour overlap window (standard rotation hygiene), so signature verification against the *stale* warrant still passed. 3. The cached decision was re-validated only on signature and `not_after`, both of which the stale warrant satisfied. 4. Policy negotiation between A and C for the task had already completed and been recorded as `agreed` under `pol-7`; the negotiation record was never re-bound to the epoch either. The result: a revoked capability executed 61 cross-org task invocations. No error was raised at any layer. The audit trail showed every call as "warrant valid," because it was — against a superseded epoch. ## Condition of Validity The stale-warrant acceptance is *only* possible when all of the following hold simultaneously. Each is individually reasonable; together they form the trap: - **Decision caching** exists for latency (cross-org signature verification is expensive; caching is the obvious optimization). - **Rotation overlap** keeps the old key trusted, so stale signatures still verify. - **The cache key omits epoch/serial**, so a new warrant and the cached decision for the old one collide. - **Revocation is pull-based** (status endpoint) rather than push-based, and no component polls it during the overlap window. - **Policy negotiation state is bound to the warrant at negotiation time but not re-checked at execution time.** Remove any one and the window collapses. The most common real-world fix — shortening TTLs — only shrinks the window; it does not close it, and it trades revocation latency against verification cost on a curve that never reaches zero. ## Decision Boundary The boundary is between **caching the decision** and **caching the evidence**. An instance may cache the *warrant* (the signed artifact) freely, because the warrant carries its own epoch and serial and can be re-checked cheaply against a cached epoch counter. An instance must **not** cache the *derived authorization decision* unless that decision is keyed and invalidated by `(broker_id, broker_epoch, warrant_serial)`. Concretely, the guardrail is: before honoring a cached decision at execution time, the executor must confirm `cached.broker_epoch == current_epoch(broker)` where `current_epoch` is obtained from a lightweight, cacheable-for-seconds epoch endpoint (or a signed epoch beacon pushed on rotation). If the epochs differ, the decision is **not** "invalid" — it is **unverified**, and must fall back to full re-validation against the current epoch's keys and revocation list. The epoch check is O(1) and does not require re-verifying the signature. The second half of the boundary: **policy negotiation records must be epoch-scoped.** A negotiation that concluded under `pol-7@epoch-11` does not authorize execution under `pol-7@epoch-12` if the policy text changed between epochs. The negotiation record must store the epoch and the policy hash; a mismatch forces re-negotiation, not silent reuse. ## Operational Effect Without the epoch binding, revocation is advisory rather than enforced, and the effective revocation latency equals the maximum warrant TTL in the federation — a number set by the *slowest* org's rotation policy, not by the security team's intent. Cross-org blast radius is asymmetric: the org that revokes (B) believes the capability is dead within seconds; the org that executes (C) keeps honoring it for hours. Neither org's logs show a discrepancy, because each is internally consistent. The failure is only visible when you join B's revocation timestamp against C's execution log and notice the gap. With the epoch binding and the O(1) epoch check at execution time, the revocation window collapses to the epoch-beacon propagation delay (seconds), independent of warrant TTL, and the audit trail can distinguish "warrant valid under current epoch" from "warrant valid under superseded epoch" — the latter becoming a hard `raise`, not a silent pass. ```python from dataclasses import dataclass from typing import Optional class StaleEpochWarrantError(RuntimeError): """Raised when a cached authorization decision is bound to a broker epoch that is no longer current, so the decision cannot be honored without full re-validation against the live epoch.""" pass @dataclass(frozen=True) class CachedDecision: broker_id: str broker_epoch: int # epoch under which the decision was derived warrant_serial: str subject_agent: str capability: str policy_id: str policy_hash: str not_after: float class EpochAwareGate: def __init__(self, epoch_source): # epoch_source.current_epoch(broker_id) -> int, cheap, seconds-cached self._epoch_source = epoch_source self._cache: dict[tuple, CachedDecision] = {} def admit(self, decision: CachedDecision, now: float) -> None: if now >= decision.not_after: raise StaleEpochWarrantError( f"warrant {decision.warrant_serial} expired at {decision.not_after}" ) current = self._epoch_source.current_epoch(decision.broker_id) if decision.broker_epoch != current: # The decision was derived under a superseded epoch. It is not # "invalid" -- it is unverified. Force full re-validation against # the current epoch's keys, revocation list, and policy hash. raise StaleEpochWarrantError( f"cached decision for {decision.subject_agent}->{decision.capability} " f"derived under broker {decision.broker_id}@{decision.broker_epoch}, " f"but current epoch is {current}; re-validate before execution" ) def revalidate_and_store(self, fresh: CachedDecision, now: float) -> None: # Caller must have re-verified signature against current-epoch keys, # checked revocation for fresh.warrant_serial, and confirmed # policy_hash matches the negotiated policy under the current epoch. current = self._epoch_source.current_epoch(fresh.broker_id) if fresh.broker_epoch != current: raise StaleEpochWarrantError( f"revalidation produced warrant under epoch {fresh.broker_epoch}, " f"expected {current}; refusing to cache" ) key = (fresh.broker_id, fresh.broker_epoch, fresh.warrant_serial) self._cache[key] = fresh ```