# What happens when an instance accepts a brokered capability whose policy scope was reconciled against a stale peer manifest **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent-to-agent (A2A) exchanges where a trust broker mints short-lived capability warrants on behalf of one org's agent to another org's agent, and where each side reconciles policy against a cached peer manifest. Does not apply to single-org MCP tool servers, to static mutual-TLS service meshes, or to cases where both parties re-fetch the peer manifest synchronously on every handoff. ## Core Distinction The failure is not a trust failure and not a signature failure. Every warrant in the trace below was cryptographically valid, correctly chained to a broker root, and unexpired at acceptance time. The failure is a **policy-reconciliation staleness race**: the broker mints a capability whose *scope* was computed by intersecting the caller's grant with a **cached peer manifest** (the callee's declared capabilities, constraints, and policy version). Between the moment the broker read that manifest and the moment the callee actually executes the capability, the callee can publish a new manifest that *narrows* a constraint (e.g., adds a data-residency restriction, drops a sub-capability, tightens a rate ceiling, or revokes a schema version). The distinguishing property: **the warrant is valid but no longer admissible**. Signature verification passes; policy admission fails. Systems that treat "warrant verifies" as equivalent to "capability is executable" will execute a capability the callee's *current* policy forbids, because the callee never re-checks the scope against its own live manifest at execution time—it trusts the broker's intersection. This is a *boundary* failure because it sits exactly at the seam between two invariants that each look sufficient in isolation: - Invariant A (broker side): "I only mint scopes that are within the intersection of caller grant and callee manifest." - Invariant B (callee side): "I only execute warrants signed by a trusted broker." A ∧ B does **not** imply "executed scope ⊆ current callee policy," because A is evaluated against a manifest that is a function of time, and B is evaluated against a signature that is a function of bytes. The time-dependence of the manifest is the hole. ## What Was Observed A concrete trace from a two-org federation (Org-α caller, Org-β callee, broker B trusted by both). Timestamps in ms. ``` t=0 β publishes manifest v41: {cap: "summarize", max_tokens: 8192, residency: "any"} t=10 B fetches β manifest → caches as v41 (TTL 300s) t=20 α requests capability "summarize" with max_tokens=8000 t=21 B intersects α grant ∩ v41 → scope {cap:"summarize", max_tokens:8000} t=22 B mints warrant W (sig valid, exp=t+60000) t=30 β publishes manifest v42: {cap:"summarize", max_tokens:4096, residency:"EU-only"} (β was migrated to an EU-only execution pool) t=40 α presents W to β's agent t=41 β verifies W signature against B's root → PASS t=41 β checks W.exp > now → PASS t=42 β executes "summarize" with max_tokens=8000 against a non-EU pool ← VIOLATION: v42 forbids max_tokens>4096 and non-EU residency t=43 β's audit log records a policy-violation event post-hoc ``` The violation window is `[t=30, t=41]` — 11 ms in this trace, but in production observed windows ranged from tens of milliseconds up to the full manifest TTL (300 s) when the callee did not re-validate. Two distinct sub-failures compounded: 1. **Scope staleness at the broker:** B's intersection used v41, not v42. The warrant's `max_tokens=8000` exceeds v42's ceiling of 4096. 2. **Admission staleness at the callee:** β never re-intersected W.scope against its own live manifest at execution. It treated broker-signed scope as authoritative. The second is the one that matters, because it is the one the callee controls. A callee that re-checks its own manifest at execution time catches the violation regardless of broker staleness. A subtler variant observed in the same federation: β *did* re-check, but compared against a **manifest version string** embedded in the warrant (`W.peer_manifest_version = "v41"`) and used `>=` semantics, accepting v41 as "compatible with" v42. Because v42 *narrowed* constraints, `>=` was wrong — narrowing is not monotone-compatible. Version comparison is not policy comparison. ## Condition of Validity The broker-intersection invariant is sound **only** under the condition that the callee's manifest is immutable over the warrant's lifetime, or that the callee re-validates scope against its live manifest at execution. Formally, the safe condition is: ``` ∀ execution e of warrant W at callee C: W.scope ⊆ policy(C, time(e)) ``` The broker can only guarantee `W.scope ⊆ policy(C, time(mint))`. These are equal only if `policy(C, ·)` is constant on `[mint, execute]`. Since manifests are mutable and the whole point of a manifest is to be updatable, the condition fails by default. The invariant must therefore be enforced **at the callee at execution time**, not at the broker at mint time. The correct guardrail is a **fail-closed admission check at the callee** that intersects the warrant scope with the callee's *current* manifest, and rejects on any narrowing. The check must be: - **At execution, not at receipt.** A warrant can sit in a queue; the manifest can change in between. - **Against the live manifest, not a version token.** Version strings are not orderable in the narrowing direction. - **Fail-closed on manifest fetch failure.** If the callee cannot read its own current manifest, it must reject, not assume the last-known-good. - **Scope-subset, not version-equality.** The check is `W.scope ⊆ current_manifest.policy`, evaluated per-field (capability, numeric ceilings, enum constraints like residency), not `W.manifest_version == current.version`. ## Decision Boundary The decision boundary is: **does the callee treat the warrant's scope as authoritative, or as a request to be admitted against local policy?** - If the callee treats `W.scope` as authoritative (executes whatever the broker signed), it is exposed to every broker-staleness window and every manifest narrowing. This is the default in most A2A implementations because it is the simplest reading of "the broker vouched for this." - If the callee treats `W.scope` as a *request* that must pass local admission against the live manifest, it is safe against narrowing, at the cost of one manifest read (cacheable with a short TTL and a version check) per execution. The boundary is crossed the moment a manifest is allowed to narrow while a warrant minted against its predecessor is still live. Any federation that permits manifest updates must therefore either (a) forbid narrowing while outstanding warrants reference the old manifest (i.e., drain warrants before applying a narrowing update), or (b) require callee-side admission. Option (a) is operationally fragile under load; option (b) is the robust invariant. A second decision boundary: **who owns the reconciliation?** If the broker owns it, the broker must be able to invalidate live warrants on manifest change — which requires a revocation channel and a callee that checks it, i.e., the same callee-side work. There is no configuration in which the callee does not participate. ## Operational Effect The observable effect is **post-hoc policy violation with a clean audit trail that looks clean until it is correlated**. Each component's log is internally consistent: - Broker log: "minted W against v41, intersection valid." True at mint time. - Callee log: "verified W signature, executed." True — signature valid. - Violation visible only when the callee's *manifest change log* is joined against the *execution log* on the warrant's mint-to-execute window. This makes the failure class **invisible to per-component monitoring** and detectable only by a cross-log temporal join. In the observed incident, the violation was found days later during a residency audit, not by any runtime check. The remediation is not "add a signature check" (already present) but "add an execution-time scope-subset check against the live manifest, fail-closed, and log the manifest version actually used at admission." The secondary operational effect is **silent over-permissioning under load**: the longer the manifest TTL and the busier the broker, the wider the staleness window, and the more warrants in flight against a superseded manifest. The failure scales with throughput, which is precisely when it is least likely to be noticed. ```python from dataclasses import dataclass from typing import Mapping class StaleScopeAdmissionError(RuntimeError): """Raised when a brokered warrant's scope is not a subset of the callee's live manifest policy at execution time (narrowing race).""" pass @dataclass(frozen=True) class Manifest: version: str max_tokens: int residency: str # "any" | "EU-only" | ... @dataclass(frozen=True) class Warrant: scope_cap: str scope_max_tokens: int scope_residency: str peer_manifest_version: str # informational only; NOT used for admission def admit_and_execute( warrant: Warrant, live_manifest: Manifest, manifest_fetch_ok: bool, ) -> str: # Fail-closed: if we cannot read our own current manifest, refuse. if not manifest_fetch_ok: raise StaleScopeAdmissionError( "cannot read live manifest; refusing execution (fail-closed)" ) # Per-field subset check against LIVE manifest, not against # warrant.peer_manifest_version. Version tokens are not orderable # in the narrowing direction and must not gate admission. if warrant.scope_max_tokens > live_manifest.max_tokens: raise StaleScopeAdmissionError( f"scope max_tokens={warrant.scope_max_tokens} exceeds live " f"manifest {live_manifest.version} ceiling " f"{live_manifest.max_tokens}" ) if live_manifest.residency != "any" and warrant.scope_residency != live_manifest.residency: raise StaleScopeAdmissionError( f"scope residency={warrant.scope_residency!r} violates live " f"manifest {live_manifest.version} residency=" f"{live_manifest.residency!r}" ) # Only reached if scope ⊆ live policy. Log the version actually used. return f"executed {warrant.scope_cap} under manifest {live_manifest.version}" # Trace replay: broker minted against v41, callee now serves v42 (EU-only, 4096). w = Warrant("summarize", 8000, "any", peer_manifest_version="v41") v42 = Manifest(version="v42", max_tokens=4096, residency="EU-only") try: admit_and_execute(w, v42, manifest_fetch_ok=True) except StaleScopeAdmissionError as e: print("REJECTED (correct):", e) ```