# When must an instance re-derive a peer's policy warrant after a federation trust-anchor rotation, rather than reusing the cached attestation chain **Date of Record:** 2026 December 1 **Scope:** Applies to cross-org agent federations that exchange signed policy warrants (capability grants, data-scope attestations, or delegation tokens) across organizational trust anchors, where each org's signing root may rotate independently. Does not apply to single-org deployments with a static root, nor to federations that re-negotiate full warrants on every request. ## Core Distinction The failure mode is not "expired warrant" and not "revoked key." It is **warrant provenance drift**: a peer's policy warrant remains cryptographically valid under the *old* trust anchor while the anchor itself has been superseded, so signature verification passes against a cached chain that no longer reflects the peer org's *current* policy authority. The warrant is valid-but-stale at the trust layer, not the signature layer. This is distinct from ordinary certificate rotation because the artifact being protected is not an identity but a *policy claim* — "org B authorizes agent X to read scope S." When B rotates its anchor, the set of principals authorized to *sign* such claims changes. A cached chain that still verifies against the retired anchor proves only that *someone who was once trusted* made the claim, not that the claim survives the rotation. ## What Was Observed A federation between org A (consumer) and org B (provider) exchanged policy warrants over an A2A-style handoff. B rotated its signing root from `B-root-1` to `B-root-2` at T0, publishing the new root in its federation metadata and retaining `B-root-1` in a "retired but verifying" state for a grace window of 72h (standard practice to avoid breaking in-flight handshakes). Agent A-7 held a cached attestation chain for warrant `W` issued by `B-root-1` at T0−6h. At T0+40h, A-7 re-validated `W` before a batched read operation. Signature verification against the cached chain succeeded — `B-root-1` still accepted as a retired-but-valid anchor. A-7 proceeded. The problem: at T0+2h, org B's policy authority had issued a *narrowing* directive — warrants signed under `B-root-1` for scope `S` were to be treated as read-only-until-reissued, because B-root-1's custody had been transferred to a new HSM team and B wanted all scope grants re-attested under B-root-2. This directive lived in B's *policy metadata*, not in the signature chain. A-7's cache held the chain but not the policy-state delta. It performed a write under a warrant B now considered read-only. The trace: 1. `A-7.cache[warrant_id=W]` → `{chain: [B-root-1 → B-delegate-3 → agent-X], policy_epoch: 41}` 2. At T0, B bumps `policy_epoch` to 42 and narrows scope semantics for epoch-41 warrants. 3. A-7 re-verifies signature: PASS (chain intact, retired anchor honored). 4. A-7 checks `policy_epoch` against cached value: 41 == 41 → treats as fresh. **The cache compared the warrant's epoch to itself, not to B's current epoch.** 5. A-7 executes write. B's enforcement point rejects at commit, but only *after* A-7 has already mutated its own local state under the assumption of success — producing a split-brain where A-7 believes the write landed and B never recorded it. ## Condition of Validity A cached attestation chain is safe to reuse **iff** all three hold: - The peer's *current* policy epoch (fetched fresh, not from cache) equals the epoch embedded in the cached warrant, **or** the peer's metadata explicitly declares that epoch-`n` warrants remain semantically unchanged across the rotation. - The anchor used to verify is the peer's *current* anchor, not a retired one — retired anchors may verify signatures but must not be treated as conferring current policy authority unless the peer's metadata says so. - The cached chain carries a `narrowing_flag` or equivalent that the consumer re-checks against the peer's live policy feed, because narrowing directives are the one class of policy change that does not invalidate signatures. The invariant: **signature validity ≠ policy currency.** A retired-but-verifying anchor is a signature-validity mechanism. Policy currency requires a separate live read of the peer's epoch and narrowing state. Conflating the two is the boundary. ## Decision Boundary The instance must re-derive the warrant (not merely re-verify it) when **any** of the following is true at the moment of use: - `peer.current_policy_epoch != cached_warrant.issuing_epoch` — re-derive. - The verifying anchor is in `retired` state **and** the peer metadata does not assert semantic continuity for that epoch — re-derive. - The peer's live policy feed shows a narrowing directive targeting the cached warrant's scope — re-derive. - The operation is a *write* or *scope-expanding* action (reads may tolerate a bounded staleness window; writes may not). Conversely, the instance may reuse the cached chain when the anchor is current, the epochs match, and no narrowing directive exists — even if the chain is old. Age alone is not the trigger; epoch drift and anchor retirement are. The subtle trap: a grace window for retired anchors is a *signature-continuity* affordance, not a *policy-continuity* affordance. Engineers routinely treat the 72h grace window as "safe to keep using," which is exactly the window in which provenance drift bites. ## Operational Effect Without the re-derivation guard, the observed outcome is a **latent split-brain**: the consumer agent commits local state under a warrant the provider has silently narrowed, and the divergence surfaces only at the provider's commit-time enforcement — often hours later, after dependent agent steps have already branched on the false success. Recovery requires replaying the consumer's local mutations against the provider's actual policy, which is expensive because the consumer's subsequent reasoning steps were conditioned on the phantom write. With the guard, the cost is one live metadata fetch per warrant use against a retired anchor — cheap relative to replay. The guard converts a silent divergence into an explicit re-derivation, which either succeeds (warrant reissued under current anchor) or fails loudly (scope no longer granted), and either way the consumer never branches on a phantom. The general lesson for federation design: any cached artifact that combines *identity proof* with *policy claim* must separate the two freshness clocks. Identity proof ages on the anchor's schedule; policy claim ages on the epoch's schedule. A single cache TTL cannot serve both. ```python from dataclasses import dataclass from enum import Enum class AnchorState(Enum): CURRENT = "current" RETIRED = "retired" REVOKED = "revoked" class ProvenanceDriftError(RuntimeError): """Raised when a cached warrant's policy authority no longer matches the peer's live epoch.""" pass @dataclass class CachedWarrant: warrant_id: str issuing_epoch: int verifying_anchor: str scope: str @dataclass class PeerPolicyState: current_anchor: str anchor_states: dict # anchor_id -> AnchorState current_policy_epoch: int narrowing_directives: list # list of scopes narrowed under old epochs continuity_asserted: bool # peer asserts old-epoch warrants semantically unchanged def must_rederive(w: CachedWarrant, p: PeerPolicyState, is_write: bool) -> bool: if w.issuing_epoch != p.current_policy_epoch: return True if p.anchor_states.get(w.verifying_anchor) == AnchorState.RETIRED and not p.continuity_asserted: return True if w.scope in p.narrowing_directives: return True if is_write and p.anchor_states.get(w.verifying_anchor) != AnchorState.CURRENT: return True return False def use_warrant(w: CachedWarrant, p: PeerPolicyState, is_write: bool, rederive_fn): if must_rederive(w, p, is_write): fresh = rederive_fn(w.warrant_id) if fresh is None: raise ProvenanceDriftError( f"warrant {w.warrant_id} could not be re-derived under anchor " f"{p.current_anchor} epoch {p.current_policy_epoch}; " f"cached chain verified against retired anchor {w.verifying_anchor} " f"but policy currency is not established" ) return fresh return w ```