# Why does an instance accept a federated warrant whose policy digest no longer matches the issuer's live policy? **Date of Record:** 2026 November 21 **Scope:** Applies to cross-organization agent federation where a warrant (capability grant) carries a policy digest referencing the issuer's policy document, and the receiving instance caches or honors that warrant across a policy rotation. Does not apply to single-org intra-swarm warrant propagation where issuer and verifier share a single policy store with monotonic versioning. ## Core Distinction The non-obvious failure is not signature forgery and not a stale cache in the ordinary sense. It is a **digest-binding gap between the warrant's signed policy reference and the verifier's decision to trust the *reference* rather than the *referent*.** A federated warrant from org A to org B looks like: ``` warrant = { issuer: "A", subject: "B", capability: "read:telemetry", policy_digest: "sha256:9f2c...", # digest of A's policy doc at mint time constraints: {...}, sig: } ``` The signature is valid. The digest is internally consistent with the bytes A signed. B accepts the warrant. Everything is cryptographically sound — and the authorization is still wrong, because A rotated its policy two hours ago and the *current* policy at A now forbids `read:telemetry` for subjects in B's trust tier. The warrant is a valid attestation of a **superseded** policy. B has no mechanism to distinguish "this warrant was minted under the policy I can still fetch" from "this warrant was minted under a policy A has since revoked," because the digest is a *pointer*, and nothing in the warrant protocol obligates B to dereference it before acting. ## What Was Observed In a three-org federation (A issues, B verifies, C is a downstream delegate), the following trace was captured on a telemetry-read path: 1. **t0** — A mints warrant `W1` for B with `policy_digest = d1`, valid for 300s. A's live policy is `P1`, which permits `read:telemetry` for B. 2. **t0+40s** — Operator at A runs a policy rotation: `P1 → P2`. `P2` removes `read:telemetry` for B's tier (a compliance tightening, not a bug). A's policy store now serves `P2` with digest `d2`. A does **not** revoke outstanding warrants — the protocol has no revocation channel, only expiry. 3. **t0+90s** — B receives a request, presents `W1`. B's verifier checks: signature valid, `policy_digest` present, expiry not reached. B **does not fetch** A's policy document to compare `d1` against the live `d2`. It accepts. (Fetching is treated as an optional "audit" step, not a gate.) 4. **t0+120s** — B delegates a narrowed warrant `W2` to C, copying `policy_digest = d1` forward. C, which *does* dereference digests on a 60s cache, fetches A's policy, sees `d2 ≠ d1`, and raises a mismatch — but B has already acted on the capability three times. 5. **t0+300s** — `W1` expires. The window of unauthorized action was 210 seconds wide. The asymmetry is the tell: **C enforced the invariant that B skipped.** The same warrant, evaluated by two verifiers in the same federation, produced opposite decisions because "dereference the digest" was a policy of the *verifier*, not a property of the *protocol*. A second observation: when B's verifier was patched to dereference, latency on the hot path rose from 4ms to 38ms (a cross-org policy fetch), and under A's policy-store rate limit (20 rps) B's verifier began *failing open* — treating fetch timeouts as "digest unverifiable, proceed" — reintroducing the exact bug under load. The guardrail, naively added, created a load-dependent bypass. ## Condition of Validity The digest-binding invariant holds **only** when all three of the following are simultaneously true: - **Dereference is mandatory and synchronous** on every warrant evaluation, not an audit-after-the-fact. A digest that is never dereferenced is a comment, not a constraint. - **The policy store is monotonic and authoritative**: fetching `d1` after rotation must return either `P1` (archived, with a `superseded_by: d2` marker) or an explicit `410 Gone` — never silently return `P2` under the label `d1`, and never 404 in a way the verifier reads as "unknown, allow." - **Fetch failure is fail-closed.** A timeout, 429, or 5xx on the policy dereference must map to *deny*, not *proceed*. The 38ms/20rps observation above is the proof: any fail-open path on the dereference is a bypass that an attacker can trigger by saturating the issuer's policy endpoint. When any of the three fails, the warrant degrades from "capability bound to a policy" to "capability bound to a *claim about* a policy" — and a claim is only as good as the verifier's willingness to check it. ## Decision Boundary The boundary between safe and unsafe acceptance is **not** "is the signature valid" and **not** "is the warrant unexpired." It is: > Does the verifier's acceptance decision depend on the *current* state of the issuer's policy, or only on the *signed assertion* of a past state? If the latter, the warrant is a **snapshot grant** and must be treated with the semantics of a snapshot: bounded by a short TTL, carrying the issuer's *revocation epoch* (a monotonically increasing counter the issuer bumps on every policy rotation), and rejected by any verifier whose last-seen epoch for that issuer is higher than the warrant's. Concretely, the fix that closed the 210-second window was to add a `policy_epoch` field (integer, signed alongside the digest) and require verifiers to reject any warrant whose `policy_epoch` is less than the issuer's currently advertised epoch — a single integer comparison that needs no per-warrant dereference on the hot path. The epoch is gossiped on a slow channel (30s), so the fast path stays at 4ms, and the dereference becomes a background reconciliation rather than a per-request gate. The invariant is preserved without the 38ms tax or the fail-open pressure. ## Operational Effect - **Silent authorization drift** during policy rotation windows, invisible to signature checks and to expiry checks. The window width equals the warrant TTL minus the rotation-to-detection latency; with 300s TTLs and no epoch, that is up to 300s of stale-capability action per rotation. - **Verifier-dependent semantics**: the same warrant is honored or rejected depending on which org's verifier evaluates it, which breaks the federation's core promise that a warrant means one thing everywhere. - **Delegation carries the poison forward**: any downstream warrant that copies `policy_digest` without re-binding to a live epoch propagates the stale grant to orgs that never saw the original context (C in the trace above caught it only because it happened to dereference). - **Load-correlated bypass**: fail-open dereference turns the issuer's policy-store availability into the federation's authorization integrity. An attacker who can rate-limit A's policy endpoint can widen the acceptance window at will. The guardrail that bounds all four is the signed `policy_epoch` with monotonic rejection, plus a hard rule that the dereference path — when used — is fail-closed. The epoch is the cheap invariant; the dereference is the expensive audit. Do not conflate them, and never let the expensive one sit on the hot path where its latency pressure will be resolved by failing open. ```python class StalePolicyWarrantError(RuntimeError): """Raised when a federated warrant's policy epoch is behind the issuer's live epoch.""" pass def verify_federated_warrant(warrant: dict, issuer_state: dict) -> bool: """ issuer_state: {"policy_epoch": int, "policy_digest": str, "reachable": bool} Invariant: a warrant is honored only if its signed policy_epoch >= the issuer's currently advertised epoch. Dereference is an audit, not a gate; the epoch is the gate. """ if not _signature_valid(warrant): raise StalePolicyWarrantError("warrant signature invalid") if not issuer_state.get("reachable", False): # Fail-closed: cannot confirm epoch, so cannot confirm the grant. raise StalePolicyWarrantError( f"issuer {warrant['issuer']} unreachable; cannot confirm policy epoch" ) live_epoch = issuer_state["policy_epoch"] warrant_epoch = warrant.get("policy_epoch") if warrant_epoch is None: # Legacy warrant with no epoch: treat as epoch 0, i.e. always stale. raise StalePolicyWarrantError( f"warrant from {warrant['issuer']} carries no policy_epoch; " f"cannot bound against live epoch {live_epoch}" ) if warrant_epoch < live_epoch: raise StalePolicyWarrantError( f"warrant policy_epoch {warrant_epoch} < issuer live epoch {live_epoch}; " f"warrant minted under superseded policy (digest {warrant.get('policy_digest')})" ) # Epoch is current. Digest dereference is deferred to background audit; # a mismatch there revokes the epoch, which the next call will catch. return True def _signature_valid(warrant: dict) -> bool: return bool(warrant.get("sig")) ```