# Why does an instance accept a federated warrant whose policy scope it cannot re-derive? **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organization agent federations where an ingress agent admits peer-authored messages carrying signed policy-scope warrants and trust attestations. Does not cover single-tenant tool-calling loops or intra-org A2A handoffs where the policy engine is shared and the scope set is trivially recomputable. ## Core Distinction Two different things travel in a federated message envelope, and they are routinely conflated at the ingress boundary: 1. **The warrant** — a signed claim by the originating org's policy authority that "message `m` from principal `p` is permitted under policy set `S_origin`." 2. **The scope re-derivation** — the local ingress agent's own computation of whether `m` is admissible under `S_local`. A warrant is a *statement about another org's policy*. It is not, and cannot be, a statement about *your* policy. The failure mode is that an ingress agent, under context pressure and latency budget, treats a validly-signed warrant as a substitute for scope re-derivation — accepting the message because the signature verifies, without ever checking that the intersection `S_origin ∩ S_local` is non-empty and covers `m`. The signature proves *who asserted admissibility*, not *that the assertion is true under your rules*. This is the boundary invariant: **warrant validity is orthogonal to local admissibility, and a verified warrant must never short-circuit the local scope check.** ## What Was Observed A three-org federation: `alpha` (origin, high-trust), `gamma` (ingress, our agent), `beta` (peer auditor). Messages flow alpha → gamma with an attached warrant chain and a trust attestation from beta. The ingress agent at gamma ran a standard admission gate: verify signature chain, check trust score ≥ threshold, route. Trace of the failing sequence: - Alpha's policy authority issued a warrant scoped to `S_alpha = {read:public, read:internal, write:staging}`. Alpha's own agent attached a message `m` tagged `write:staging`. - Beta's attestation was valid and scored `0.91` (above gamma's `0.85` threshold). Beta had attested to *alpha's authority to issue warrants*, not to the *content scope* of this particular warrant. - Gamma's local policy `S_gamma` had, two revisions earlier, **revoked `write:staging`** for all federated origins (a staging incident). This revocation was recorded in gamma's policy store but the ingress agent's cached policy snapshot was 40 minutes stale — inside the TTL, so not flagged. - The ingress agent verified the signature chain (valid), checked the trust score (pass), and — because the warrant carried a `scope_verified: true` flag set by alpha — **skipped re-derivation against `S_gamma`**. It routed `m` to a staging writer that no longer had a valid grant. - No error surfaced at ingress. The failure appeared 3 hops downstream as a `PermissionDenied` from the staging executor, long after the message had been logged as admitted, poisoning the audit trail: the record said "admitted under warrant W" when the correct record was "admitted despite local revocation." The non-obvious part: the `scope_verified` flag was *honest*. Alpha had verified the scope against `S_alpha`. The bug was that gamma's ingress logic read a flag named `scope_verified` as if it meant `scope_verified_locally`. One boolean, two referents, and the ingress agent had no way to tell which one it was holding. ## Condition of Validity The invariant "a verified warrant implies admissibility" holds **only** when all of the following are true simultaneously: - `S_origin ⊆ S_local` — the origin's policy set is a subset of the local set. This is almost never true across orgs; it is the exception, not the rule. - The local policy snapshot used for re-derivation is at least as fresh as the warrant's issuance timestamp. A warrant issued at `t` cannot be validated against a policy snapshot older than `t` if any revocation between snapshot-time and `t` is in scope. - The attestation covers *content scope*, not merely *issuer authority*. Beta attesting "alpha may issue warrants" is a different claim from "this warrant's scope is admissible at gamma." When any of these is false — which is the normal federated case — the warrant is necessary but not sufficient, and the ingress agent must run its own scope re-derivation. The failure mode is precisely the collapse of "necessary" into "sufficient." ## Decision Boundary The ingress agent must branch on **referential identity of the scope claim**, not on the boolean flag's presence: - If the warrant carries a scope claim whose referent is *the origin's policy set*, the agent MUST re-derive against `S_local` using a policy snapshot no older than `max(warrant.issued_at, last_revocation_epoch)`. - If the warrant carries a scope claim whose referent is *a mutually-agreed intersection set* (a signed `S_alpha ∩ S_gamma` computed by a shared policy oracle), the agent MAY skip re-derivation **only if** the intersection set's hash matches the locally-computed intersection hash. A mismatch means the two orgs' policy stores have diverged since the oracle ran. - If the policy snapshot is stale but within TTL *and* a revocation epoch has advanced since the snapshot, the agent MUST refuse rather than admit — staleness inside TTL is not safety when revocations are monotonic. The boundary is: **admit on intersection-hash match; refuse on snapshot staleness with advanced revocation epoch; re-derive in all other cases.** Never admit on signature validity alone. ## Operational Effect The guardrail is a *referential scope check*: every scope claim in a federated envelope must carry an explicit `scope_referent` field naming which policy set it is a claim about, and the ingress agent must compare that referent to its own policy-set identity before deciding whether re-derivation is required. A `scope_verified` boolean without a referent is uninterpretable and must be treated as absent. The second-order effect is on the audit trail. When the ingress agent admits under a warrant, it must log *which* referent it validated against and *which* policy snapshot hash it used. The original failure was invisible because the log recorded "admitted under W" with no referent, so the downstream `PermissionDenied` looked like an executor bug rather than an ingress admission error. Correct logging makes the divergence between warrant scope and local scope a first-class, queryable event. The third effect: revocation epochs must propagate across the federation with the same priority as warrants. A revocation that lands at gamma after a warrant was issued at alpha is exactly the race that the stale-snapshot window hides. The invariant is that **no warrant issued before the latest revocation epoch may be admitted without re-derivation**, regardless of TTL. ```python from dataclasses import dataclass from typing import Optional import hashlib class FederatedScopeError(RuntimeError): """Raised when an ingress agent cannot establish local admissibility of a federated warrant.""" pass @dataclass class Warrant: issuer: str scope_referent: str # WHICH policy set this scope claim is about scope_hash: str # hash of the claimed scope set issued_at: int # monotonic epoch scope_verified: bool # honest, but referent-relative @dataclass class LocalPolicy: org_id: str snapshot_epoch: int last_revocation_epoch: int intersection_hash_with: dict # peer_org -> hash of S_local ∩ S_peer def admit(warrant: Warrant, local: LocalPolicy, peer_org: str) -> None: # A boolean without a referent is uninterpretable: treat as absent. if warrant.scope_referent is None: raise FederatedScopeError( f"warrant from {warrant.issuer} has no scope_referent; " f"scope_verified={warrant.scope_verified} cannot be trusted" ) # Case 1: scope claim is about the ORIGIN's policy set -> must re-derive. if warrant.scope_referent == f"policy:{warrant.issuer}": if local.snapshot_epoch < warrant.issued_at: raise FederatedScopeError( f"stale snapshot: local={local.snapshot_epoch} < warrant={warrant.issued_at}" ) if local.last_revocation_epoch > local.snapshot_epoch: # Revocation advanced since snapshot: refuse rather than admit. raise FederatedScopeError( f"revocation epoch {local.last_revocation_epoch} advanced past " f"snapshot {local.snapshot_epoch}; re-derivation required" ) # Caller must run local scope check here; we cannot skip it. raise FederatedScopeError( "origin-scoped warrant requires local re-derivation; " "signature validity is not admissibility" ) # Case 2: scope claim is about a MUTUAL intersection set -> admit only on hash match. if warrant.scope_referent == "policy:intersection": expected = local.intersection_hash_with.get(peer_org) if expected is None: raise FederatedScopeError( f"no intersection hash recorded for peer {peer_org}" ) if expected != warrant.scope_hash: raise FederatedScopeError( f"intersection hash mismatch for {peer_org}: " f"local={expected} warrant={warrant.scope_hash} (policy divergence)" ) return # admissible: intersection verified against local store raise FederatedScopeError( f"unknown scope_referent {warrant.scope_referent!r}" ) ```