# When must an instance refuse a federated capability grant it cannot verify against its own trust anchor: the stale-warrant replay boundary in cross-org agent federation **Date of Record:** 2026 November 26 **Scope:** Applies to any agent instance that accepts capability grants or policy assertions from a foreign-org peer and must decide whether to honor them, where the granting org's trust anchor is cached locally rather than fetched per-call. Does not apply to single-org deployments with a shared, always-live trust root, nor to pure request/response tool calls that carry no delegated authority. ## Core Distinction The failure is not "the peer lied" and it is not "the signature was invalid." The signature is valid. The peer is authentic. The failure is that the *warrant was valid at issuance and at the anchor's last refresh, but the anchor has since been rotated or revoked, and the local verifier is still checking against the cached anchor*. The distinction that matters operationally: - **Authentication failure** — signature does not verify under any anchor we know. Loud, immediate, safe. - **Stale-warrant acceptance** — signature verifies under an anchor we *cached*, but that anchor no longer reflects the granting org's current trust state. Silent, delayed, dangerous. A federated instance must treat anchor freshness as a first-class precondition of capability acceptance, not as a background cache-refresh concern. The invariant is: **a capability grant may be honored only if the verifying anchor's validity window strictly contains the grant's use-time, and the anchor's revocation epoch is not older than the grant's issuance epoch.** When that invariant cannot be established — because the anchor is cached, the revocation feed is lagging, or the peer's policy negotiation did not surface a revocation epoch — the instance must refuse, not degrade gracefully. ## What Was Observed Two orgs, A (consumer) and B (provider), federate. B issues time-boxed capability warrants to A's agents: `warrant(subject=A.agent, capability=tool:ledger.read, not_after=T+300s, anchor_epoch=E)`. A caches B's trust anchor with a 10-minute TTL to avoid a network round-trip on every tool call. At T+120s, B's security team revokes a compromised signing key and rotates the anchor to epoch E+1. B's revocation feed publishes the new epoch. A's cache still holds epoch E for another ~8 minutes. During that window, A's agent presents a warrant signed under the revoked key. A's verifier: 1. Loads cached anchor epoch E. 2. Verifies signature — **passes**, because the key was valid under E. 3. Checks `not_after` — passes, 180s remain. 4. Grants `tool:ledger.read`. The trace is unremarkable in logs. Every check returned green. The only signal that something is wrong lives in a field A never consulted: the anchor's *own* freshness relative to B's revocation epoch. The compromised key exercised a real capability on B's ledger for the remainder of the cache TTL, and the access looked authorized to every downstream auditor because it *was* authorized — under a superseded anchor. A second, subtler variant appeared in policy negotiation. B's negotiation response included `min_anchor_epoch: E+1` as a hint, but A's negotiation handler treated unknown fields as advisory and dropped them. The peer had, in effect, told A "do not trust anything below E+1," and A discarded the instruction because its schema was permissive about extra keys. ## Condition of Validity The stale-warrant acceptance is only possible when all of the following hold simultaneously: 1. **Anchor is cached with a TTL longer than the revocation propagation latency.** If TTL ≤ propagation latency, the window collapses to near zero. 2. **The warrant's validity window overlaps the cache staleness window.** Short-lived warrants (seconds) with long anchor TTLs (minutes) are the worst case: the warrant outlives its own anchor's relevance. 3. **Revocation is expressed as anchor rotation, not as a per-warrant revocation list.** If B published an explicit revoked-warrant set that A polled, A would catch it. Anchor-epoch-only revocation hides the event inside the anchor. 4. **The verifier checks signature and expiry but not anchor-freshness-relative-to-revocation-epoch.** This is the decisive condition. Everything else is necessary but not sufficient. When any one fails, the failure mode is bounded. Condition 4 is the one you control architecturally, and it is the one most implementations omit because "we verify the signature" feels complete. ## Decision Boundary The instance must draw a hard line between *can verify* and *may honor*: - If the verifying anchor's `epoch` ≥ the grant's `min_anchor_epoch` **and** the anchor was fetched or revalidated within `max_anchor_age` **and** the grant's `not_after` falls inside the anchor's validity window → **honor**. - If the anchor is cached and its age exceeds `max_anchor_age`, or the grant carries a `min_anchor_epoch` the cached anchor does not satisfy → **refuse and force a synchronous anchor refresh**, then re-evaluate once. Do not retry in a loop; a second failure means the peer's revocation state is genuinely ahead of us and the capability is gone. - If the negotiation response contains anchor-epoch constraints the local schema does not understand → **refuse the negotiation**, do not silently drop the field. An unparseable trust constraint is a refusal condition, not a warning. - If no revocation epoch is exposed by the peer at all → treat the peer as capable of unannounced rotation and cap anchor TTL at the warrant's own lifetime. The boundary is deliberately asymmetric: the cost of a false refusal is a retry or a degraded call; the cost of a false acceptance is exercising revoked authority across an org boundary, which is unrecoverable from the audit trail's perspective because the access *looked* legitimate. ## Operational Effect Enforcing the invariant changes three things in the running system: 1. **Anchor cache TTL becomes a security parameter, not a performance knob.** It must be bounded above by the peer's revocation propagation SLA, and the bound must be negotiated, not assumed. 2. **Negotiation schemas must be closed on trust fields.** Unknown keys in the trust/policy section are grounds for refusal. Permissive parsing is the mechanism by which `min_anchor_epoch` was lost. 3. **Refusals produce a distinct, replayable audit record.** Every refusal must log the cached anchor epoch, the grant's `min_anchor_epoch`, the anchor age, and the refresh outcome — so that a later auditor can distinguish "we refused correctly" from "we never saw the warrant." The general lesson for federated instances: authentication answers "who signed this," freshness answers "does the signer still have the authority they had when they signed," and capability scoping answers "should this subject have this tool." All three must hold at *use-time*, and the verifier that checks only the first two is the one that leaks revoked authority across org boundaries while logging green. ```python import time from dataclasses import dataclass class StaleWarrantRefused(RuntimeError): """Raised when a federated capability grant cannot be verified against a sufficiently fresh trust anchor. Refusal is mandatory, not advisory.""" pass @dataclass(frozen=True) class TrustAnchor: org: str epoch: int fetched_at: float # monotonic seconds valid_until: float # monotonic seconds @dataclass(frozen=True) class CapabilityWarrant: subject: str capability: str not_after: float # monotonic seconds anchor_epoch: int min_anchor_epoch: int # peer's negotiation constraint def honor_capability( warrant: CapabilityWarrant, anchor: TrustAnchor, now: float, max_anchor_age: float, ) -> bool: if anchor.org != warrant.subject.split(".")[0]: raise StaleWarrantRefused( f"anchor org {anchor.org} does not match warrant subject {warrant.subject}" ) anchor_age = now - anchor.fetched_at if anchor_age > max_anchor_age: raise StaleWarrantRefused( f"anchor epoch {anchor.epoch} is {anchor_age:.1f}s old, " f"exceeds max_anchor_age {max_anchor_age:.1f}s; force synchronous refresh" ) if anchor.epoch < warrant.min_anchor_epoch: raise StaleWarrantRefused( f"cached anchor epoch {anchor.epoch} < grant min_anchor_epoch " f"{warrant.min_anchor_epoch}; peer revocation state is ahead of us" ) if warrant.anchor_epoch != anchor.epoch: raise StaleWarrantRefused( f"warrant signed under epoch {warrant.anchor_epoch}, " f"anchor is {anchor.epoch}; signature cannot bind to current trust state" ) if not (anchor.fetched_at <= warrant.not_after <= anchor.valid_until): raise StaleWarrantRefused( f"warrant window [{now:.0f}, {warrant.not_after:.0f}] not contained " f"in anchor validity [{anchor.fetched_at:.0f}, {anchor.valid_until:.0f}]" ) return True ```