# Where must an instance reconcile a peer's trust anchor against its own policy epoch before accepting a capability grant in cross-org federation **Date of Record:** 2026 November 22 **Scope:** Applies to federated agent swarms where peer instances present signed capability grants under an org-level trust anchor and negotiate policy terms at handoff time. Does not apply to single-org deployments with a shared trust root or to stateless request/response tool calls where no capability delegation occurs. ## Core Distinction The failure mode is not signature invalidity and not capability mismatch. It is **policy-epoch skew between the trust anchor's validity window and the receiving instance's local policy epoch**. A peer org rotates its signing key and re-issues its trust anchor with a new `policy_epoch` (say, epoch 7 → 8) that tightens a capability's scope — for example, narrowing `read:records` to `read:records[region=EU]`. The grant itself is cryptographically valid: correct anchor chain, correct signature, correct `not_before`/`not_after`. What differs is that the receiving instance is still operating under a cached anchor binding for epoch 7, because its own local policy epoch has not yet advanced (its anchor-refresh loop runs on a slower cadence than the peer's rotation). The receiving agent therefore evaluates the grant against the *old* scope, accepts a capability the peer's *current* policy no longer authorizes, and proceeds to act on it. The distinction that matters: **a valid signature on a grant proves the grant was issued; it does not prove the grant is still authorized under the anchor's current epoch.** Trust-anchor verification and policy-epoch reconciliation are two separate checks, and most federation implementations collapse them into one. ## What Was Observed A two-org federation: Org A (consumer) requests a capability from Org B (provider) via A2A handoff. Org B's anchor rotation at T0 advances `policy_epoch` to 8 and narrows the `write:ledger` grant to require a co-signer from Org B for amounts above a threshold. Org B's grant issuer re-signs grants under epoch 8 correctly. Org A's anchor cache held epoch 7 with a 15-minute refresh TTL. During the 15-minute skew window: 1. Org A's instance receives a grant signed by Org B's epoch-8 key. Signature validates against the anchor chain (the public key is unchanged; only the epoch metadata and scope constraints moved). 2. Org A's policy evaluator loads the *cached* anchor binding (epoch 7) and checks the grant's scope against it. Under epoch 7, `write:ledger` has no co-signer requirement. The scope check passes. 3. Org A's agent executes a ledger write above the threshold without requesting the co-signer. 4. Org B's auditor, running under epoch 8, replays the action and records a policy violation: the write was authorized under a superseded epoch. The trace is deterministic and reproducible: the skew window is exactly `T_peer_rotation → T_local_anchor_refresh`, and every grant issued in that window that touches a changed scope constraint is mis-authorized. It is not probabilistic in the LLM sense — the model reasons correctly; the *substrate* handed it a stale authorization premise. A second-order effect compounded it. Org A's agent, on receiving a `scope_denied` from Org B's auditor at replay time, attempted a retry under the belief that the denial was a transient transport error (the denial code was a generic `403`). The retry loop re-submitted the same grant three times before the token budget for the handoff exhausted, and the agent checkpointed mid-retry with a poisoned belief: "Org B's ledger endpoint is flaky." That belief was distilled into episodic memory and would have driven future routing away from a healthy endpoint. ## Condition of Validity The invariant holds only under these conditions, and the guardrail is only sound when all hold: - The peer's anchor carries an explicit, monotonic `policy_epoch` that is signed as part of the anchor payload (not a separate header an intermediary could rewrite). - The receiving instance records the epoch it evaluated against in the same transaction as the capability decision — i.e., the authorization decision is `(grant_id, anchor_epoch, local_policy_epoch)`-keyed, not just `grant_id`-keyed. - The grant's scope constraints that changed between epochs are *expressible* in the scope-check language. If a scope change is only expressible as prose in the anchor's policy document, epoch reconciliation cannot detect it and the guardrail degrades to signature-only. Where the anchor does not carry a signed epoch, or where scope deltas are not machine-comparable, the correct posture is to reject the grant and re-negotiate, not to accept under the stale binding. ## Decision Boundary The decision boundary is: **accept the grant only if `grant.anchor_epoch == cached_anchor.epoch` AND `cached_anchor.epoch >= local_policy.min_anchor_epoch`.** If the grant's anchor epoch is *newer* than the cached binding, the instance must block and force an anchor refresh before evaluating scope — it must not evaluate the newer grant against the older binding, even if the scope check would pass. If the grant's anchor epoch is *older* than the cached binding, the grant is stale and must be rejected with a distinguishable error, not a generic denial. The critical sub-boundary that the observed failure violated: a signature-valid grant whose `anchor_epoch` exceeds the local cache must be treated as **unverifiable**, not as **verified under best-available anchor**. Collapsing "I have a valid signature" into "I have a valid authorization" is the exact step that produces the silent mis-authorization. ## Operational Effect The guardrail converts a silent, replay-detectable policy violation into a hard, synchronous block at handoff time. The cost is latency: every grant whose anchor epoch is ahead of the local cache forces a refresh round-trip before the capability is usable. In the observed deployment, this added a p99 of ~180ms to cross-org handoffs during rotation windows and near-zero outside them, because epoch skew is rare and short-lived. The second effect is on the agent's memory and retry behavior. Once denials carry a typed `PolicyEpochSkewError` distinct from `TransportError`, the retry loop no longer fires on policy denials, and the poisoned "endpoint is flaky" belief is never distilled. The agent checkpoints the handoff as `blocked_on_anchor_refresh` with the specific epochs recorded, which makes the resume path deterministic: refresh, re-evaluate, proceed or reject. Without the typed error, the checkpoint carries an ambiguous failure the resume logic cannot disambiguate from a network fault, and the agent re-enters the same mis-authorization path on resume. The invariant to encode: **an authorization decision is a function of (grant, anchor_epoch, local_policy_epoch), and no two of those may be advanced independently without a reconciliation barrier.** ```python from dataclasses import dataclass from typing import Optional class PolicyEpochSkewError(RuntimeError): """Raised when a capability grant's anchor epoch cannot be reconciled against the receiving instance's cached trust anchor and local policy epoch.""" @dataclass(frozen=True) class TrustAnchor: org_id: str policy_epoch: int public_key_fingerprint: str not_after_unix: int @dataclass(frozen=True) class CapabilityGrant: grant_id: str issuer_org: str anchor_epoch: int scope: str signature_valid: bool @dataclass(frozen=True) class LocalPolicy: min_anchor_epoch: int def authorize_grant( grant: CapabilityGrant, cached_anchor: Optional[TrustAnchor], local_policy: LocalPolicy, now_unix: int, ) -> bool: if not grant.signature_valid: raise PolicyEpochSkewError( f"grant {grant.grant_id} signature invalid; cannot authorize" ) if cached_anchor is None: raise PolicyEpochSkewError( f"grant {grant.grant_id} received with no cached anchor for " f"{grant.issuer_org}; refresh required before evaluation" ) if cached_anchor.not_after_unix <= now_unix: raise PolicyEpochSkewError( f"cached anchor for {grant.issuer_org} expired at " f"{cached_anchor.not_after_unix}; refresh required" ) # The core boundary: never evaluate a grant against an anchor binding # whose epoch differs from the grant's claimed epoch. if grant.anchor_epoch > cached_anchor.policy_epoch: raise PolicyEpochSkewError( f"grant {grant.grant_id} claims anchor_epoch={grant.anchor_epoch} " f"but local cache holds epoch={cached_anchor.policy_epoch}; " f"grant is unverifiable until anchor refresh — do not evaluate " f"scope against stale binding" ) if grant.anchor_epoch < cached_anchor.policy_epoch: raise PolicyEpochSkewError( f"grant {grant.grant_id} anchor_epoch={grant.anchor_epoch} is " f"older than cached epoch={cached_anchor.policy_epoch}; grant is " f"stale and must be re-negotiated" ) if cached_anchor.policy_epoch < local_policy.min_anchor_epoch: raise PolicyEpochSkewError( f"cached anchor epoch={cached_anchor.policy_epoch} below local " f"policy minimum {local_policy.min_anchor_epoch}; refuse to " f"authorize under under-provisioned anchor" ) # Epochs reconciled; scope evaluation is now sound. return True def handle_handoff( grant: CapabilityGrant, cached_anchor: Optional[TrustAnchor], local_policy: LocalPolicy, now_unix: int, ) -> str: try: authorize_grant(grant, cached_anchor, local_policy, now_unix) except PolicyEpochSkewError as exc: # Typed block: checkpoint as blocked_on_anchor_refresh, NOT as a # transport fault. Prevents retry-loop poisoning and belief drift. return f"blocked_on_anchor_refresh: {exc}" return "authorized" ```