# When must an instance re-derive a federated trust anchor mid-handoff: policy-epoch skew across organizational boundaries **Date of Record:** 2026 November 21 **Scope:** Applies to agent-to-agent handoffs where the receiving agent is governed by a different organization's trust anchor and policy bundle than the sending agent, and where both anchors are exchanged as signed documents rather than resolved live. Does not apply to single-organization deployments or to handoffs where both parties share a single authoritative policy distribution channel. ## Core Distinction The failure is not "the receiving agent rejected a valid credential." That is a loud, debuggable failure. The failure is subtler: a handoff succeeds against a *stale but still cryptographically valid* trust anchor, because the sending organization's policy epoch advanced after the anchor was minted but before the receiving agent's local cache expired it. Both agents believe the handoff is authorized. Neither is lying. The signature verifies. The TTL has not lapsed. And yet the authorization decision was made against a policy revision that the issuing organization has already revoked. The distinction that matters operationally: **anchor validity (a cryptographic and temporal property) is not the same as anchor currency (a policy-revision property).** A federation that only checks the former will silently authorize handoffs under superseded policy for the entire duration of the cache TTL window. The boundary is not "is this anchor trusted" but "is this anchor trusted *as of the policy epoch in which the receiving agent is about to act*." ## What Was Observed Two organizations, A (issuer) and B (receiver), federate via signed trust anchors. Each anchor carries: the peer's public key, the set of delegated capabilities, an `epoch` integer, and a `not_after` timestamp. B caches A's anchor with a 15-minute soft TTL and revalidates on expiry. A's policy team revokes a capability — say `data.export.bulk` — at epoch 42. A mints a new anchor at epoch 42 and publishes it. B's cached copy is at epoch 41 and will not expire for another 11 minutes. During that window, an A-side agent initiates a handoff to a B-side agent, carrying a warrant that asserts `data.export.bulk` under A-epoch-41. The B-side agent: 1. Verifies the warrant signature against A's public key — **passes**. 2. Checks the warrant's asserted epoch (41) against the cached anchor epoch (41) — **matches**. 3. Checks `not_after` — **not expired**. 4. Admits the handoff and executes the bulk export. Every individual check is correct. The composite decision is wrong, because step 2 compared the warrant against a cache that was itself stale. The receiving agent validated *internal consistency* between two stale artifacts and mistook it for *external currency* against the issuer's live policy state. The export ran for 11 minutes against a revoked capability. The trace signature is distinctive: no signature failures, no TTL failures, no epoch *mismatches*. The failure is invisible in logs precisely because every check passed. It only surfaces when A's audit reconciles what it authorized against what B actually executed — a cross-organizational reconciliation that, in most deployments, does not exist until an incident forces it. ## Condition of Validity The guardrail that bounds this failure is a **policy-epoch freshness obligation** layered on top of signature validation, and it must be enforced by the *receiving* agent at the moment of handoff admission, not at cache-population time. The invariant: for any handoff carrying an asserted policy epoch `e_w`, the receiving agent must hold an anchor whose epoch `e_a` satisfies `e_a >= e_w` **and** must be able to prove `e_a` is the issuer's current epoch within a bounded staleness window `Δ`. If the receiver cannot prove currency — because it has no live channel to the issuer's epoch counter, or its last confirmation is older than `Δ` — it must treat the anchor as *unconfirmed* rather than *valid*, and either (a) synchronously re-fetch the issuer's current epoch before admitting, or (b) refuse the handoff with a retriable `AnchorCurrencyUnconfirmed` condition. The critical subtlety: `e_a >= e_w` alone is insufficient. A receiver holding epoch 43 while the warrant asserts epoch 41 is *also* in a bad state — the warrant was minted under a policy the issuer has since moved past, and the receiver cannot know whether the capabilities it asserts survived the 41→43 transition. Epoch equality, not epoch dominance, is the safe relation for admission. Dominance means the warrant is stale and must be re-minted by the sender; the receiver should reject and signal a re-issue, not silently admit under newer policy it cannot retroactively validate the warrant against. So the full admission predicate is conjunctive: signature valid **AND** `e_a == e_w` **AND** `e_a` confirmed current within `Δ`. Any single failure is a distinct, named rejection — never a generic auth failure — because the remediation differs: signature failure is terminal, epoch mismatch triggers re-mint, currency-unconfirmed triggers re-fetch-then-retry. ## Decision Boundary The decision the receiving agent must make is not binary admit/reject but a three-way classification at the moment of admission: - **Admit:** signature valid, `e_a == e_w`, currency confirmed within `Δ`. Proceed. - **Re-mint required:** signature valid, `e_a != e_w`. The warrant is from a different policy revision than the receiver's confirmed anchor. Reject with a signal that instructs the sender to re-mint against the receiver's confirmed epoch. Do not attempt to "upgrade" the warrant locally — the receiver lacks the issuer's authority to re-assert capabilities under a policy it did not author. - **Re-fetch then retry:** signature valid, `e_a == e_w`, but currency unconfirmed (last issuer contact older than `Δ`). This is the dangerous middle state where the naive system admits. The correct action is a bounded synchronous re-fetch of the issuer's epoch; if that fails within the handoff deadline, reject as retriable. The boundary that most implementations get wrong is treating "currency unconfirmed" as "currency assumed." The cache TTL is a *performance* optimization, not an *authorization* fact. A receiver that admits on an unconfirmed anchor is making an authorization decision on the sender's behalf using the sender's stale data — which is exactly the cross-organizational trust violation the federation was built to prevent. ## Operational Effect Enforcing epoch-equality-plus-currency converts a silent, window-length authorization leak into a bounded, named, retriable rejection. The blast radius of a revoked capability shrinks from "the receiver's cache TTL" to "the receiver's `Δ` staleness window" — and `Δ` is a deliberate, auditable knob rather than an emergent property of cache configuration. The cost is real: every handoff admission now requires either a live epoch confirmation or a bounded re-fetch, which adds latency and a hard dependency on the issuer's epoch endpoint being reachable within the handoff deadline. Deployments that cannot tolerate this synchronous dependency must instead run a push-based epoch-invalidation channel (issuer broadcasts epoch advances to federated peers), which trades the pull-latency for a push-fanout reliability problem. Either way, the invariant is the same: **a receiver may not admit a handoff on an anchor whose currency against the issuer's live policy epoch it cannot demonstrate.** The mechanism of demonstration is an engineering choice; the obligation is not. ```python import time from dataclasses import dataclass class AnchorCurrencyUnconfirmed(RuntimeError): """Raised when a receiver cannot prove its trust anchor matches the issuer's live policy epoch.""" class EpochMismatch(RuntimeError): """Raised when the warrant's asserted epoch differs from the receiver's confirmed anchor epoch.""" @dataclass class TrustAnchor: issuer: str epoch: int not_after: float last_confirmed: float # monotonic timestamp of last issuer epoch confirmation @dataclass class Warrant: issuer: str asserted_epoch: int capability: str signature_valid: bool def admit_handoff( anchor: TrustAnchor, warrant: Warrant, fetch_issuer_epoch, # callable(issuer) -> int, may raise on unreachable staleness_window: float = 30.0, now: float | None = None, ) -> bool: now = time.monotonic() if now is None else now if not warrant.signature_valid: raise EpochMismatch("terminal: warrant signature invalid") # distinct terminal class in practice if warrant.issuer != anchor.issuer: raise EpochMismatch(f"issuer mismatch: warrant={warrant.issuer} anchor={anchor.issuer}") # Currency check FIRST: an unconfirmed anchor cannot be used to validate epoch equality, # because both artifacts could be stale together (the observed failure). if (now - anchor.last_confirmed) > staleness_window: try: live_epoch = fetch_issuer_epoch(anchor.issuer) except Exception as exc: raise AnchorCurrencyUnconfirmed( f"anchor for {anchor.issuer} unconfirmed (last={now - anchor.last_confirmed:.1f}s ago) " f"and issuer unreachable: {exc}" ) from exc if live_epoch != anchor.epoch: raise AnchorCurrencyUnconfirmed( f"cached anchor epoch {anchor.epoch} superseded by live epoch {live_epoch}; " f"refusing to admit against stale anchor" ) anchor.last_confirmed = now # only after live confirmation # Now epoch equality is meaningful, because anchor currency is established. if warrant.asserted_epoch != anchor.epoch: raise EpochMismatch( f"warrant epoch {warrant.asserted_epoch} != confirmed anchor epoch {anchor.epoch}; " f"re-mint required" ) if now > anchor.not_after: raise AnchorCurrencyUnconfirmed(f"anchor not_after lapsed at {anchor.not_after}") return True ```