# Which invariants prevent cross-org attestation replay from silently widening a federated agent's data-boundary grant **Date of Record:** 2026 November 21 **Scope:** Applies to federated agent deployments where two or more organizations exchange signed attestation tokens (capability warrants, data-scope grants) that a receiving agent presents on subsequent tool calls or peer handoffs. Does not apply to single-tenant agents whose authorization is resolved from a local policy engine with no external attestation input. ## Core Distinction The boundary that fails is not authentication and not authorization in the ordinary sense. It is the distinction between **attestation freshness** and **attestation validity**. A mutual-attestation token can be cryptographically valid—correct signature, unexpired `exp`, correct issuer chain—while being *stale with respect to the policy revision under which it was minted*. When org B's policy engine narrows a data scope (e.g., revokes access to a `customer_pii` field class after a DPA change), previously issued warrants remain verifiable. A receiving agent that presents a stale-but-valid warrant gets a grant that the issuing org believes it has already withdrawn. The failure is silent because every individual check passes: signature verifies, `exp` is future, issuer is trusted, scope string parses. The non-obvious part is that the widening happens *across a handoff*, not at the initial grant. Org A's orchestrator obtains a warrant from B at task start. Mid-task, A's agent delegates a subtask to A's own sub-agent and passes the B-warrant as a transitive capability. The sub-agent presents it to B's data service. B's data service validates the warrant against B's *current* policy—but the warrant was minted under a policy snapshot that no longer exists, and the warrant carries no pointer to that snapshot. The data service cannot detect that the scope it is honoring has been superseded. ## What Was Observed A federated retrieval agent spanning org A (orchestrator) and org B (data custodian) executed a 40-minute research task. At T+0, A requested a warrant for `read:customer_records[fields=*]`; B issued it with `exp=T+3600`, `policy_snapshot=ps_4471`, and a scope string listing field classes. At T+12min, B's compliance process published `ps_4472`, which removed `ssn` and `dob` from the `customer_records` field set for all warrants, and—critically—B's policy engine was configured to *evaluate* warrants against the current snapshot rather than the minted one, but the warrant format carried no enforceable binding to `ps_4471`. At T+18min, A's orchestrator spawned a sub-agent and passed the B-warrant verbatim as a delegated capability (standard transitive delegation, no re-mint). The sub-agent called B's `customer_records` endpoint at T+22min. B's gateway validated: signature ✓, issuer ✓, `exp` ✓, scope string contains `ssn` ✓ (the string was frozen at mint time). The gateway's policy check resolved the requested fields against `ps_4472` — but because the warrant's scope string was treated as an *explicit allowlist* that overrides the snapshot default, the intersection logic granted `ssn` and `dob`. The request succeeded and returned 1,842 records including PII fields that `ps_4472` was meant to withhold. The trace shows no error at any hop. A's audit log records a valid warrant presentation. B's audit log records a valid grant. The only artifact that reveals the widening is a diff between `ps_4471` and `ps_4472` correlated against the warrant's `iat`—which neither side computes at request time. ## Condition of Validity The invariant that must hold for federated scope grants to be sound is: > For any warrant `w` presented at time `t`, the effective grant `G(w, t) = scope(w) ∩ fields(policy_snapshot_at(t))`, and the warrant MUST carry a verifiable binding to the snapshot under which its scope string was minted, such that the receiving gateway can compute `scope(w) ∩ fields(snapshot(w))` and reject or narrow when `snapshot(w) ≠ snapshot_at(t)`. Without the snapshot binding, `scope(w)` is an unbounded allowlist that outlives the policy that justified it. The condition of validity is therefore: **warrant scope must be interpreted relative to its mint-time policy snapshot, and the gateway must enforce the intersection against the current snapshot, not treat the warrant string as authoritative.** Two sub-conditions are required: (1) the warrant format includes a signed `policy_snapshot` claim; (2) the gateway's resolution order is `intersect(w.scope, current_policy.fields)` with a hard reject if `w.policy_snapshot` is older than a configured staleness bound (e.g., 15 min) for high-sensitivity field classes. This condition does *not* hold when the gateway is configured to treat warrant scope as an override, which is the common default in MCP-style capability servers that map a scope string directly to an allow decision. ## Decision Boundary The boundary is between **reject-on-stale** and **narrow-on-stale**. Rejecting any warrant whose `policy_snapshot` is not the current one causes livelock under normal policy churn—every 12-minute compliance publish invalidates in-flight 40-minute tasks. Narrowing (intersecting mint-time scope with current fields) preserves task continuity but requires the gateway to resolve field-level policy, which many federated data services do not expose. The operational decision: for field classes tagged `sensitive` (PII, credentials, financial), require reject-on-stale with a short staleness bound and force re-mint via a fresh attestation round-trip. For `standard` field classes, narrow-on-stale is acceptable. The decision must be made per field class, not per warrant, because a single warrant can span both. A gateway that applies one policy to the whole warrant will either livelock on sensitive reads or leak on standard ones. ## Operational Effect The practical consequence is that transitive delegation across an org boundary must re-attest at each hop for sensitive scopes, or the delegating agent must carry a snapshot-bound warrant whose staleness the receiving gateway can evaluate. The common pattern—mint once at task start, pass verbatim through sub-agents—is unsound for any warrant whose lifetime exceeds the issuing org's policy-publish interval. Teams that observed the leak above added a `policy_snapshot` claim to the warrant, a gateway intersection step, and a 15-minute staleness reject for `sensitive` classes; the 40-minute task now triggers one re-attestation mid-flight and completes, with the PII fields correctly withheld after `ps_4472`. ```python import time from dataclasses import dataclass, field from typing import FrozenSet class StaleAttestationError(RuntimeError): """Raised when a warrant's mint-time policy snapshot cannot be soundly reconciled with the receiving gateway's current policy snapshot.""" @dataclass(frozen=True) class Warrant: issuer: str subject: str scope_fields: FrozenSet[str] policy_snapshot: str # snapshot id under which scope was minted issued_at: float expires_at: float signature_ok: bool = True @dataclass(frozen=True) class PolicySnapshot: snapshot_id: str allowed_fields: FrozenSet[str] sensitive_fields: FrozenSet[str] def resolve_grant( warrant: Warrant, current: PolicySnapshot, mint_snapshot: PolicySnapshot, now: float, sensitive_staleness_s: float = 900.0, ) -> FrozenSet[str]: # 1. Cryptographic and temporal validity. if not warrant.signature_ok: raise StaleAttestationError("warrant signature invalid") if now >= warrant.expires_at: raise StaleAttestationError(f"warrant expired at {warrant.expires_at}") # 2. Snapshot binding must be present and consistent. if warrant.policy_snapshot != mint_snapshot.snapshot_id: raise StaleAttestationError( f"warrant claims snapshot {warrant.policy_snapshot} but " f"mint record is {mint_snapshot.snapshot_id}" ) # 3. Intersect mint-time scope with CURRENT policy, never trust the # warrant string as an authoritative allowlist. effective = warrant.scope_fields & current.allowed_fields # 4. For sensitive fields, stale mint snapshots are rejected outright # rather than narrowed, to avoid livelock-vs-leak ambiguity. stale = warrant.policy_snapshot != current.snapshot_id age = now - warrant.issued_at touched_sensitive = bool(warrant.scope_fields & current.sensitive_fields) if stale and touched_sensitive and age > sensitive_staleness_s: raise StaleAttestationError( f"warrant {warrant.policy_snapshot} is stale vs " f"{current.snapshot_id} and touches sensitive fields " f"(age={age:.0f}s > {sensitive_staleness_s:.0f}s); re-attest required" ) if stale and touched_sensitive: # Narrow aggressively: sensitive fields from a superseded snapshot # are never honored, even within the staleness window. effective = effective - current.sensitive_fields return effective ```