# What happens when an instance honors a delegated capability grant whose scope predicate was evaluated against a stale peer manifest **Date of Record:** 2026 November 30 **Scope:** Applies to cross-org agent federation where an orchestrator agent in org A delegates a scoped capability to a peer agent in org B under a negotiated policy bundle, and the peer's capability manifest is cached and refreshed asynchronously. Does not apply to single-tenant deployments where manifest and grant are issued by the same control plane in one transaction. ## Core Distinction The failure is not "unauthorized access" and not "policy mismatch at negotiation time." It is a **temporal split between the manifest that was used to type-check a capability grant and the manifest that is live at the moment the grant is exercised**. Federation protocols (A2A-style card exchange, MCP-style tool advertisement, cross-org OIDC-token-exchange-plus-warrant schemes) all converge on the same shape: org B publishes a capability manifest (a signed document listing tools, their input/output schemas, and a scope predicate per tool such as `region ∈ {eu-west}` or `max_rows ≤ 1000`). Org A's orchestrator fetches that manifest, feeds the scope predicate into its own policy engine, and mints a warrant that says "agent A1 may invoke `query_ledger` on B2 provided the request satisfies `region=eu-west`." The warrant is a *compiled* artifact: the predicate is evaluated by A's policy engine at call time, but the *meaning* of the predicate terms (`region`, `max_rows`, the enum of legal values) is defined by B's manifest. The invariant that must hold: **for every warrant in flight, the manifest version used to type-check the warrant's scope terms must still be the authoritative version at the peer at the instant the call is admitted.** When B rotates its manifest—renames `region` to `data_residency`, adds a new enum member `eu-central`, narrows `max_rows` from 1000 to 100, or (the nastiest case) repurposes an existing field name with a different semantic domain—A's cached predicate no longer constrains what A thinks it constrains. The warrant remains cryptographically valid. The signature chain verifies. The scope check passes. And the call executes against a peer whose actual capability surface is different from the one the grant was compiled against. ## What Was Observed A federated analytics deployment: org A (orchestrator, runs the planning agent `A1`), org B (data custodian, runs `B2` exposing `query_ledger` and `aggregate_events`). Manifest exchange over a signed card endpoint, refreshed every 15 minutes by A's manifest cache. Warrants are short-lived (5 min) but the *cache TTL exceeds the warrant TTL*—this is the load-bearing detail and it is common, because cache TTLs are tuned for availability and warrant TTLs are tuned for revocation latency, and nobody reconciles the two. Sequence observed in traces: 1. `T+0:00` — A1 fetches B's manifest v41. `query_ledger` scope predicate: `region ∈ {"eu-west","us-east"} ∧ max_rows ≤ 1000`. A1 compiles this into a policy rule and stores `manifest_version=41` in the warrant's `policy_context` claim. 2. `T+0:03` — B rotates to manifest v42. `query_ledger` scope predicate becomes `data_residency ∈ {"eu-west"} ∧ max_rows ≤ 100`. The `region` field is *removed*; requests carrying `region` are now rejected by B2's admission layer as `unknown_scope_field` — but only if B2 actually validates. In the observed deployment, B2's admission layer treated unknown fields as *ignored*, not rejected, because the field was previously optional. So `region=us-east` arrives, is silently dropped, and the request proceeds. 3. `T+0:04` — A1's cache is still v41 (TTL 15 min). A1 plans a call with `region=us-east, max_rows=800`. A1's policy engine evaluates against v41 predicate: `us-east ∈ {eu-west,us-east}` ✓, `800 ≤ 1000` ✓. Warrant minted, `policy_context.manifest_version=41`. 4. `T+0:04` — B2 admits the call. B2's own admission layer checks the warrant signature (valid), checks the warrant's `policy_context.manifest_version` against its live version (42) — and here is the divergence: B2's check was `if warrant.manifest_version < live_version: warn` rather than `reject`. It logged a warning and proceeded. 5. `T+0:05` — `query_ledger(region=us-east, max_rows=800)` executes against B2. The `region` term is dropped by the lenient admission layer, `max_rows` is not enforced because B2 only enforces `max_rows` when the caller's warrant was compiled against a manifest that declared it mandatory (v42 does; v41 did not). 800 rows of US-resident ledger data cross the boundary to org A. The breach is not a forged token, not a compromised key, not a prompt injection. Every cryptographic check passed. The failure is a **three-way staleness interaction**: (a) A's manifest cache outlives the warrant, (b) B's admission layer is lenient about unknown fields, and (c) B's version check is advisory rather than enforcing. Any one of these alone is survivable. Together they compose into a silent scope escape. ## Condition of Validity The invariant "warrant scope is sound" holds only when all of the following are simultaneously true: - **Manifest version pinning is enforced at admission, not warned.** B must reject any warrant whose `policy_context.manifest_version` is not the live version (or a version B explicitly retains as compatible). A warning is not a check. - **Unknown scope fields are rejected, not ignored.** If a warrant's predicate references a term the live manifest does not define, admission must fail closed. Lenient field-dropping is the single most common enabler of this failure across the deployments we have records for. - **Warrant TTL ≤ manifest cache TTL, or the warrant carries a manifest digest that B verifies against the live manifest.** The clean formulation: the warrant embeds `manifest_digest` (hash of the full signed manifest), and B recomputes the digest of its live manifest at admission and compares. Version integers are insufficient because they can be reused or reset during disaster recovery; digests cannot. - **Scope predicates are evaluated by the *issuing* side against a manifest the *receiving* side will still honor.** This is the deep one. A's policy engine is the evaluator, but B's manifest is the semantic authority. The two must be coupled by the digest, not by a shared version counter that both sides increment independently. When any of these is absent, the warrant is a *syntactically valid, cryptographically sound, semantically stale* authorization artifact. It is the federation equivalent of a signed check written against an account whose terms of service changed between signing and cashing. ## Decision Boundary The boundary is not "should we cache manifests" (yes, always) and not "should warrants be short-lived" (yes, always). The boundary is: **at what point does a manifest change invalidate in-flight warrants, and who is responsible for detecting it?** Three architectural positions, only one of which is sound: - **Issuer-detects (unsound at scale).** A polls B's manifest and revokes warrants on change. Fails because revocation is asynchronous and the window between B's rotation and A's detection is exactly the window in which stale warrants execute. Observed detection latencies in cross-org federation range from seconds to the full cache TTL. - **Receiver-detects, advisory (unsound, observed above).** B checks version at admission but warns. Fails because the warning is not a control. - **Receiver-detects, enforcing, digest-based (sound).** B recomputes the digest of its live manifest, compares to the warrant's embedded `manifest_digest`, and rejects on mismatch with a typed error that A can use to trigger a re-fetch-and-recompile cycle. This is the only position that closes the window, because it puts the check at the exact instant and location where the semantic authority lives. The corollary decision: **capability scoping must be expressed in terms the receiving manifest defines, not in terms the issuing policy engine invents.** If A's policy language allows predicates over fields B has never declared, A can mint warrants that are unenforceable at B. The negotiation step must reject grants whose scope terms are not a subset of B's declared scope vocabulary, and that subset check must be re-run on every manifest rotation—which means it must be a runtime check at admission, not a design-time check at negotiation. ## Operational Effect The observable effect is a class of incidents that look like "policy was followed" in every audit log on the issuing side and "we received a valid warrant" in every audit log on the receiving side, with the actual data crossing the boundary in violation of the receiving org's current policy. Post-incident forensics must reconstruct three timelines—A's cache state, B's manifest rotation, and the warrant's `policy_context`—and the breach is only visible at their intersection. Standard SIEM correlation on "unauthorized access" will not fire, because nothing was unauthorized relative to the artifacts presented. The remediation that held in the observed deployment: embed `manifest_digest` in every warrant; enforce digest match at B's admission layer with a hard reject; reject unknown scope fields; and on reject, return a structured `ManifestStale` error carrying B's live digest so A can re-fetch, recompile the predicate, and re-mint. The recompile step is non-trivial because the predicate terms may have *changed meaning*, not just changed version—A cannot assume `region=eu-west` translates to `data_residency=eu-west` without re-reading the manifest's field definitions. This is why the digest must cover the full signed manifest including field semantics, not just a version integer. The residual risk after remediation is the re-mint loop itself: under aggressive rotation, A may thrash between fetch and reject. Bound it with a per-peer backoff and a circuit breaker that fails the delegation closed rather than retrying indefinitely—a stale-warrant reject that loops is a denial-of-service on the federation link, which is the correct failure direction but must be bounded. ```python import hashlib from dataclasses import dataclass class ManifestStaleError(RuntimeError): """Raised when a warrant's manifest digest does not match the peer's live manifest.""" pass class UnknownScopeFieldError(RuntimeError): """Raised when a warrant's scope predicate references a term the live manifest does not define.""" pass @dataclass(frozen=True) class Manifest: version: int scope_vocabulary: frozenset[str] raw_bytes: bytes def digest(self) -> str: return hashlib.sha256(self.raw_bytes).hexdigest() @dataclass(frozen=True) class Warrant: issuer: str subject: str tool: str scope_terms: frozenset[str] manifest_digest: str def admit(warrant: Warrant, live: Manifest) -> None: """Receiver-side admission. Fails closed on any staleness or vocabulary mismatch.""" if warrant.manifest_digest != live.digest(): raise ManifestStaleError( f"warrant compiled against digest {warrant.manifest_digest[:12]}..., " f"live manifest {live.version} digest is {live.digest()[:12]}..." ) unknown = warrant.scope_terms - live.scope_vocabulary if unknown: raise UnknownScopeFieldError( f"warrant scope terms {sorted(unknown)} not declared in live manifest " f"{live.version}; refusing to silently drop them" ) # proceed to execute tool with scope_terms as enforced constraints def exercise(warrant: Warrant, live: Manifest) -> str: admit(warrant, live) return f"executed {warrant.tool} under {sorted(warrant.scope_terms)}" ```