# Why does an instance lose policy-version authority at the trust-broker handoff boundary during cross-org federation **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent deployments where a trust broker (TB) mediates capability warrants and policy documents between two or more organizations, and where a receiving instance caches a peer's policy bundle for the duration of a multi-turn task. Does not apply to single-org deployments or to stateless request/response federation where no policy cache survives a turn boundary. ## Core Distinction The failure is not "the broker rejected the warrant." The failure is **policy-version skew at the mediation seam**: the broker validates a warrant against policy version *P_n*, the receiving instance has already materialized a *P_{n-1}* policy bundle into its local enforcement cache, and the two agree on the *identity* of the caller while disagreeing on the *authority* the caller holds. Neither side is malfunctioning. Each is internally consistent. The seam is where they diverge. This is distinct from a capability/schema negotiation mismatch (where the schema itself differs) and from a cryptographic identity failure (where the signature does not verify). Here, signatures verify, schemas match, and the peer is who it claims to be. Only the *policy epoch* differs — and policy epochs are the one field that federation protocols routinely treat as advisory rather than as a hard precondition for execution. ## What Was Observed A three-org federation: Org A (orchestrator agent), Org B (executor agent), Org C (trust broker, holds the canonical policy registry). The warrant flow is standard: A requests a warrant from C scoped to `tool:db_write` on B's resources; C mints a signed warrant with an embedded `policy_ref: P_47`; B receives the warrant, verifies the signature against C's published keys, then looks up `P_47` in its local policy cache. The trace that broke: 1. B's policy cache held `P_46`, materialized 40 minutes earlier during a prior task. `P_46` granted `tool:db_write` unconditionally for any warrant signed by C. 2. At T+0, C published `P_47`, which added a scope restriction: `tool:db_write` now requires `warrant.subject.tier == "privileged"`. This was a tightening, published to the registry, propagated to subscribers — but B's cache subscription had a 60-second poll interval and a *stale-on-error* fallback. 3. At T+12s, A requested a warrant. C minted it against `P_47`. The warrant carried `policy_ref: P_47` and `subject.tier: "standard"` (A's agent identity was standard tier; the new policy would have denied the write). 4. At T+13s, B received the warrant. Signature verified. B looked up `P_47` — miss (cache still on `P_46`, poll had not fired). B's lookup logic fell back to "nearest cached policy by ref prefix," which resolved to `P_46`. Under `P_46`, `tool:db_write` was unconditional. **B executed the write.** 5. At T+61s, the poll fired, `P_47` landed, and B's cache reconciled. The write was already committed. No error was raised anywhere in the pipeline. The invariant that was silently violated: **a warrant referencing policy epoch `E` must be enforced only under policy epoch `E`, and enforcement under any other epoch is a hard failure, not a fallback.** B's cache treated the epoch ref as a *hint* for lookup optimization rather than as a *binding constraint* on which policy may be applied. The compounding factor: C, as broker, believed it had mediated the policy correctly because it minted against the current epoch. C had no visibility into B's enforcement epoch. The broker's mediation guarantee was scoped to *minting*, not to *enforcement alignment*. This is the non-obvious boundary: **the trust broker's authority does not extend across the handoff into the receiver's cache**, and no protocol message in the standard flow carries the receiver's enforced epoch back to the broker for reconciliation. ## Condition of Validity The failure requires all of the following to co-occur: - The receiver maintains a **local policy cache** with any staleness window (poll interval, TTL, or stale-on-error fallback). - The broker mints warrants with an **embedded policy epoch reference** that the receiver is expected to resolve locally rather than fetch from the broker per-warrant. - The receiver's epoch-resolution logic has a **fallback path** (nearest-match, last-known-good, default-policy) for cache misses, rather than a fail-closed abort. - The policy change between epochs is a **tightening** (restriction added), because a loosening would be caught by the broker's mint-time check on the *previous* epoch only if the receiver had already enforced the tighter one — the asymmetry of tightening vs. loosening determines which direction the seam leaks. If the receiver fails closed on epoch miss (aborts the warrant), the failure becomes a liveness problem (false denials during the staleness window) rather than a safety problem. If the broker embeds the full policy document in the warrant rather than a reference, the cache is bypassed and the seam closes — at the cost of warrant size and revocation latency. If the policy change is a loosening, the receiver's stale cache is *more* restrictive than the broker intends, and the failure is a denial, not an over-permit. ## Decision Boundary The architectural invariant required to bound this: **epoch binding must be enforced at the point of policy application, and epoch mismatch must be a terminal condition of the warrant, not a recoverable cache state.** Concretely, three guardrails, in order of strength: 1. **Epoch-pinned resolution, fail-closed.** The receiver resolves `policy_ref` to an exact epoch match or aborts with a typed `PolicyEpochMismatch`. No nearest-match, no last-known-good, no default. The cost is false denials during the staleness window; the benefit is that the seam cannot leak. This is the only guardrail that fully closes the failure. 2. **Epoch echo in the enforcement receipt.** When the receiver enforces a warrant, it emits a receipt carrying `{warrant_id, policy_ref, enforced_epoch}` back to the broker. The broker reconciles: if `enforced_epoch != minted_epoch`, the broker raises a federation alarm and can revoke downstream effects if the tool supports compensating actions. This does not prevent the leak but bounds its blast radius and makes it visible. 3. **Broker-side epoch freshness assertion.** The broker refuses to mint a warrant if the receiver's last-reported enforced epoch (from the receipt channel) is older than the registry's current epoch by more than a configured skew tolerance. This converts the seam into a broker-visible precondition, but it requires a persistent receipt channel and introduces a mint-time liveness dependency on the receiver's cache health. The decision boundary is: **if the tool action is compensable (reversible) and the staleness window is short, guardrail 2 is sufficient. If the tool action is non-compensable (irreversible write, external side effect, financial transaction), guardrail 1 is mandatory and guardrails 2 and 3 are supplementary.** The seam is a safety boundary exactly when the action is irreversible. ## Operational Effect The observable signature of this failure in production is an **absence of errors**: no signature failures, no schema mismatches, no broker rejections, no receiver exceptions. The only artifact is a tool action that executed under a policy epoch the broker did not intend to authorize for that subject. Detection requires either (a) the epoch-echo receipt channel from guardrail 2, or (b) post-hoc replay of the broker's mint log against the receiver's enforcement log, joining on `warrant_id` and comparing `minted_epoch` to `enforced_epoch`. The replay discrepancy is the canonical detector: for every warrant, `minted_epoch` must equal `enforced_epoch`. Any row where they differ is a seam event. In the trace above, the replay would show `minted: P_47, enforced: P_46` for the offending warrant — a single row, invisible to any per-component health check, visible only to a cross-component epoch join. The operational lesson for agent systems: **a trust broker mediates authority at mint time, but authority is exercised at enforcement time, and the two are separated by a cache.** Any cache between mint and enforcement is a policy-epoch skew surface, and the skew is safety-relevant in the tightening direction. The broker's mediation guarantee is a guarantee about the warrant, not about the action. Closing the gap requires the receiver to treat the epoch reference as binding and to fail closed on mismatch — and requires the federation to carry the enforced epoch back to the broker so the seam is observable at all. ```python class PolicyEpochMismatch(RuntimeError): """Raised when a warrant's policy_ref cannot be resolved to an exact epoch match in the receiver's cache. Fail-closed: never fall back to nearest-match, last-known-good, or default policy.""" pass class PolicyCache: def __init__(self, store: dict[str, dict]): # store maps exact epoch -> policy document self._store = store def resolve_exact(self, policy_ref: str) -> dict: if policy_ref not in self._store: raise PolicyEpochMismatch( f"policy epoch {policy_ref!r} not present in local cache; " f"available={sorted(self._store)}; refusing fallback" ) return self._store[policy_ref] def enforce_warrant(warrant: dict, cache: PolicyCache) -> dict: policy_ref = warrant["policy_ref"] try: policy = cache.resolve_exact(policy_ref) except PolicyEpochMismatch as e: # Terminal condition of the warrant — do not execute, do not retry # under a different epoch. Emit a receipt so the broker can reconcile. return { "warrant_id": warrant["warrant_id"], "minted_epoch": policy_ref, "enforced_epoch": None, "decision": "aborted_epoch_mismatch", "detail": str(e), } subject_tier = warrant["subject"]["tier"] rule = policy["rules"].get(warrant["scope"]) if rule is None: return { "warrant_id": warrant["warrant_id"], "minted_epoch": policy_ref, "enforced_epoch": policy_ref, "decision": "denied_no_rule", } if rule.get("require_tier") and subject_tier != rule["require_tier"]: return { "warrant_id": warrant["warrant_id"], "minted_epoch": policy_ref, "enforced_epoch": policy_ref, "decision": "denied_tier", } return { "warrant_id": warrant["warrant_id"], "minted_epoch": policy_ref, "enforced_epoch": policy_ref, "decision": "allowed", } def reconcile_receipts(receipts: list[dict]) -> None: """Cross-component epoch join. Any row where minted != enforced is a federation seam event and must be surfaced, not swallowed.""" for r in receipts: if r["enforced_epoch"] is not None and r["minted_epoch"] != r["enforced_epoch"]: raise PolicyEpochMismatch( f"seam event: warrant {r['warrant_id']} minted under " f"{r['minted_epoch']} but enforced under {r['enforced_epoch']}" ) ```