# Under what conditions must an instance refuse a federated handoff when the peer's trust anchor is valid but its policy epoch is stale **Date of Record:** 2026 December 2 **Scope:** Applies to cross-org agent federations where a receiving instance must validate an inbound A2A/MCP-style handoff carrying a signed trust anchor plus a policy-epoch claim, and where the two are issued by different authorities (identity provider vs. policy authority) with independent refresh cadences. Does not apply to single-org deployments where identity and policy share one signing root and one TTL, nor to stateless request/response tool calls with no baton-passing. ## Core Distinction The failure this record isolates is *not* signature invalidity and *not* identity spoofing. Those are the cases everyone instruments. The boundary case is the **split-authority epoch skew**: a peer presents a cryptographically valid trust anchor (correct issuer, unexpired, chains to the configured federation root) while the *policy epoch* it asserts — the version stamp declaring which obligation set, data-classification rules, and action-permission table the peer is operating under — lags the epoch the receiving domain currently enforces. The distinction that matters operationally: **a valid trust anchor proves who the peer is; it says nothing about which rules the peer is currently bound to honor.** Agents routinely conflate these. When a signature verifies, the receiving instance's validation path short-circuits to "trusted peer, accept handoff," and the stale policy epoch rides through inside an otherwise-authentic envelope. The peer is not lying. It is a legitimately-identified counterparty running under a policy generation the receiving domain has already retired — for example, before a data-residency clause or a tool-scope restriction was tightened. This is a *continuity invariant* problem at the federation boundary: the identity plane and the policy plane refresh on different clocks, and the handoff protocol has no place to detect that the two have drifted apart. ## What Was Observed A receiving instance (domain `B`) accepted a task handoff from a federated peer (domain `A`) during a routine cross-org routing operation. The trace: 1. Peer `A` assembles a handoff envelope: task payload, a `trust_anchor` signed by the federation IdP, and a `policy_epoch` field asserted by `A`'s local policy authority. 2. `B`'s inbound validation runs the anchor chain check first. The anchor verifies against the federation root. `B` marks the peer `AUTHENTICATED`. 3. `B` then checks `policy_epoch` against its accepted-epoch set. Here is the trap: `B`'s accepted-epoch set is keyed by *issuer domain*, and `A`'s policy authority had rotated its epoch signing key three days earlier. `B`'s cached epoch manifest for `A` was stale, so `B` fell back to a permissive default — "accept the highest epoch we have on record for `A`" — which happened to be two generations behind `A`'s actual enforced epoch. 4. Because the asserted epoch (`A`'s real, current one) was *higher* than `B`'s stale record, and not *lower*, the monotonicity check passed. `B` concluded the peer was current. It was not: `B` was comparing against a manifest it had failed to refresh. 5. The handoff was accepted and the task executed under `A`'s newer, looser tool-scope table — which `B` had never ratified, because `B`'s policy epoch predated the relaxation and `B` had explicitly *not* adopted it. The observable symptom was silent: no signature error, no identity mismatch, no timeout. The task completed. The violation surfaced only in a downstream audit that replayed the action log against `B`'s ratified obligation set and found tool invocations `B` had never authorized for federated peers. The failure is a **verification replay discrepancy** — the live path and the replay path used different epoch manifests. The root mechanism: **epoch monotonicity is not epoch currency.** A monotonic check (asserted ≥ recorded) passes trivially when the *recorded* side is stale, because the stale side is a floor, not a ceiling. The receiving instance treated "peer is at least as new as what I remember" as "peer is at the epoch I currently enforce," and those are different predicates whenever the local manifest has lapsed. ## Condition of Validity The permissive-accept path is sound *only* when all of the following hold simultaneously: - **Manifest freshness invariant:** `B`'s cached epoch manifest for issuer `A` was refreshed within its declared TTL *and* the refresh succeeded (not served from a stale-on-error cache). If the manifest refresh failed and `B` fell back to last-known-good, the monotonicity check is operating on a floor of unknown age and MUST be treated as unverified. - **Epoch-set membership, not ordering:** `B` must check that `A`'s asserted epoch is a member of the *currently ratified* accepted set, not merely that it is numerically ≥ the last recorded value. Ordering is a necessary but insufficient condition. - **Same-authority binding:** the entity that signs the trust anchor and the entity that asserts the policy epoch must be resolvable to the same domain identity, and `B` must have a live binding between them. If `A`'s policy authority key rotated and `B` has not re-bound, the epoch claim is *unattributable* even though the anchor is valid. - **No cross-plane inference:** `B` must never derive policy currency from anchor validity. The two planes are independent and MUST be validated independently. When any condition fails, the correct behavior is to **refuse the handoff and hold the task in a quarantine queue pending out-of-band manifest reconciliation** — not to accept under the peer's asserted epoch, and not to silently downgrade to `B`'s stale epoch (which would execute the task under obsolete local rules and produce a *different* violation). ## Decision Boundary The decision boundary is drawn at the point where the receiving instance must choose between three outcomes on a valid-anchor / uncertain-epoch handoff: - **Accept under peer's asserted epoch:** only if the asserted epoch is a member of the currently-ratified accepted set AND the manifest freshness invariant holds. This is the fast path and is correct in the common case. - **Refuse and quarantine:** if the anchor is valid but epoch membership cannot be established against a fresh manifest. The task does not execute; a reconciliation request is emitted to `A`'s policy authority; the handoff is retried after `B` ingests a fresh manifest. This is the boundary this record defends. - **Reject outright:** if the anchor is invalid, or the epoch is provably below the retirement floor (a *known-stale* epoch, not merely an *unknown-currency* one). This is a hard failure requiring operator escalation. The subtle point: **"unknown currency" and "known-stale" require different handling.** Known-stale is a rejection — the peer is demonstrably behind a retired epoch and honoring it would violate a ratified obligation. Unknown-currency is a *quarantine* — the peer may be perfectly current; `B` simply lacks the manifest to prove it. Collapsing these two into a single "reject" path causes spurious federation outages during manifest rotation windows. Collapsing them into a single "accept" path is the failure this record documents. The boundary must be three-way, and the third way (quarantine) must be a first-class state, not an error. ## Operational Effect The architectural invariant required to bound this failure: **policy-epoch validation is a membership test against a freshly-attested manifest, gated on manifest freshness, and is strictly independent of trust-anchor validity.** Enforcement implications: - The validation path must carry an explicit `manifest_freshness` boolean derived from the refresh outcome, not from cache age alone. A stale-on-error fallback must set this to `false` and force quarantine. - Epoch comparison must be set-membership (`asserted_epoch ∈ ratified_set`), with the monotonic `≥` check retained only as a fast pre-filter that can *reject* but never *accept* on its own. - The quarantine state must be observable and must emit a reconciliation request; a quarantine that silently drops the handoff is indistinguishable from a denial-of-service and will be misdiagnosed. - Verification replay must use the *same* manifest snapshot the live path used, pinned by manifest hash. A replay that re-fetches the manifest will diverge from the live decision whenever the manifest rotated between execution and audit — producing false-positive violations or, worse, masking real ones. The operational cost is a small population of tasks parked in quarantine during manifest rotation windows. The cost of *not* enforcing it is silent execution under unratified peer policy, discoverable only by replay — which is exactly the class of failure that erodes cross-org trust slowly and invisibly. ```python from dataclasses import dataclass from enum import Enum class FederationHandoffError(RuntimeError): """Raised when a federated handoff violates a boundary invariant.""" pass class EpochVerdict(Enum): ACCEPT = "accept" QUARANTINE = "quarantine" REJECT = "reject" @dataclass(frozen=True) class EpochManifest: issuer_domain: str ratified_set: frozenset retired_floor: int manifest_hash: str freshness_ok: bool # False if served from stale-on-error fallback @dataclass(frozen=True) class Handoff: peer_domain: str anchor_valid: bool asserted_epoch: int anchor_issuer: str epoch_issuer: str def classify_handoff(handoff: Handoff, manifest: EpochManifest) -> EpochVerdict: # Plane 1: identity. Independent of policy. if not handoff.anchor_valid: return EpochVerdict.REJECT # Same-authority binding: anchor and epoch must resolve to one domain identity. if handoff.anchor_issuer != handoff.epoch_issuer: raise FederationHandoffError( f"split-authority: anchor issuer {handoff.anchor_issuer!r} != " f"epoch issuer {handoff.epoch_issuer!r} for peer {handoff.peer_domain!r}" ) # Plane 2: policy currency. Never inferred from anchor validity. if not manifest.freshness_ok: # Unknown currency: cannot prove membership against a fresh manifest. return EpochVerdict.QUARANTINE if handoff.asserted_epoch < manifest.retired_floor: # Known-stale: demonstrably behind a retired epoch. return EpochVerdict.REJECT if handoff.asserted_epoch not in manifest.ratified_set: # Fresh manifest, epoch not ratified: unknown currency, not stale. return EpochVerdict.QUARANTINE return EpochVerdict.ACCEPT def route_federated_handoff(handoff: Handoff, manifest: EpochManifest) -> str: verdict = classify_handoff(handoff, manifest) if verdict is EpochVerdict.REJECT: raise FederationHandoffError( f"handoff from {handoff.peer_domain!r} rejected: " f"epoch {handoff.asserted_epoch} below retired floor " f"{manifest.retired_floor} (manifest {manifest.manifest_hash})" ) if verdict is EpochVerdict.QUARANTINE: return f"quarantined:{manifest.manifest_hash}" return f"executed:{manifest.manifest_hash}" ```