# Where must an instance refuse to inherit delegated capability across a federation trust seam when the delegating peer's policy document is syntactically valid but semantically stale **Date of Record:** 2026 November 25 **Scope:** Applies to cross-org agent federations where capabilities are delegated via signed warrant chains (MCP tool grants, A2A task handoffs, OAuth-style scope tokens) and each peer publishes a policy document that bounds what it will honor. Does not apply to single-org deployments with a shared trust root, nor to capability grants that carry the full policy inline rather than by reference. ## Core Distinction The failure is not a schema mismatch. In every observed case the delegating peer's policy document parsed cleanly, validated against the published JSON Schema, and passed signature verification against the peer's published key. The failure is that the *referenced* policy was a snapshot — a `policy_uri` plus an `etag` — and the receiving instance resolved the URI, got a 200, and treated "resolvable and signed" as equivalent to "currently authoritative." There are two distinct trust questions that get collapsed into one: 1. **Provenance trust** — is this capability genuinely issued by the peer I think it is, unmodified? (Answered by signature. This held in every failure.) 2. **Currency trust** — does the peer's *present* policy still permit this capability at the delegation depth and resource scope being exercised? (Answered by nothing in the warrant. This is the seam.) A warrant is a claim about what the delegator *was willing to grant at issuance time*. It is not a claim about what the delegator is willing to honor *now*. Federations that conflate the two will execute capabilities the delegating org has already revoked, narrowed, or re-scoped — and they will do so with a valid signature and a passing schema check, which is precisely why the failure is silent. ## What Was Observed A three-org federation: Org A (orchestrator), Org B (tool provider), Org C (auditor/data custodian). A's agent held a capability delegated from B to invoke `b.query_dataset`. B's policy document declared, among other things, a `max_delegation_depth: 2` and a `resource_scope` allowlist. A's agent, needing to fan out, re-delegated the capability to a sub-agent at depth 2, which then attempted a read against a dataset outside B's allowlist. The trace: 1. A's sub-agent presents the warrant chain: `B → A → A.sub`. Signatures verify at each hop. Depth is 2, which the *cached* B policy (fetched at federation join, `etag: "v7"`) permitted. 2. A's sub-agent resolves `policy_uri` for B. The fetch returns `etag: "v9"`. The client library sees a 200 and a valid document, refreshes its cache, and proceeds — **but does not re-evaluate the already-issued warrant against the refreshed policy.** The warrant was admitted on the basis of `v7`. 3. Policy `v9` had narrowed `resource_scope` to exclude the requested dataset and reduced `max_delegation_depth` to 1. Both changes postdate the warrant. Neither is visible in the warrant itself, because the warrant carries `policy_etag: "v7"`. 4. The read executes. B's enforcement point, which *does* re-evaluate on every call, rejects it — but only because B happened to enforce at the data plane. In the variant where B enforced only at the control plane (issuance), the read would have succeeded and returned data B had, as of `v9`, decided no external party should see. The recurring shape: **the receiver refreshed the policy but did not re-bind the in-flight warrant to the refreshed policy.** Refresh and re-evaluation were two separate steps, and only the first was wired into the request path. A second, subtler observation: when the receiver *did* attempt re-evaluation, it compared `warrant.policy_etag` to `current.etag` and, on mismatch, fell back to "trust the signature, proceed" rather than failing closed — because the fallback path had been written for the benign case of a peer that rotates etags on cosmetic edits. The benign case and the revocation case were indistinguishable to that check, so the check was effectively a no-op that produced log noise and false confidence. ## Condition of Validity The invariant that must hold for a delegated capability to be exercised across a trust seam: > A warrant issued under policy version `P_i` may be exercised at a peer only if the peer can confirm that the *currently authoritative* policy `P_now`, resolved fresh within the request's staleness bound, still admits the warrant's `(capability, resource_scope, delegation_depth, principal)` tuple. `P_i == P_now` is sufficient but not necessary; `P_i != P_now` requires positive re-admission, not signature-based assumption. Three conditions bound this: - **Staleness bound must be a property of the request, not the cache.** A long-running fan-out sub-agent may hold a warrant for minutes; the policy may change inside that window. The bound is `max_policy_age` carried on the *request context*, and it must be tighter than the warrant's own validity window, because a warrant valid for an hour does not imply the policy backing it is valid for an hour. - **Re-admission must be positive.** Absence of a revocation signal is not admission. The receiver must find an explicit allow in `P_now` for the tuple. A policy that is silent on a resource does not inherit the prior version's allow. - **Depth is evaluated against `P_now`, not `P_i`.** A warrant minted at depth 2 under a policy that later dropped to depth 1 cannot be exercised at depth 2, even though the mint was legal. The mint was legal *then*; the exercise is illegal *now*. The condition fails — and the invariant is violated — exactly when a receiver treats `signature_valid && schema_valid && uri_resolvable` as sufficient for exercise. That conjunction is necessary and insufficient. ## Decision Boundary The boundary is between two defensible designs, and the failure lives in the gap when neither is chosen explicitly: - **Control-plane-only enforcement (B enforces at issuance, A trusts the warrant thereafter).** Defensible only when the warrant's validity window is shorter than the federation's policy-propagation SLA *and* B accepts that it cannot revoke mid-flight. If B ever needs mid-flight revocation, this design silently breaks — which is the observed failure. - **Data-plane re-evaluation (B enforces on every exercise against `P_now`).** Defensible, but only if the receiver (A) also re-evaluates before *forwarding* to a sub-agent, because the sub-agent's exercise is A's exercise from B's perspective. If A forwards on `P_i` and B re-evaluates on `P_now`, the sub-agent's call fails at B — correct outcome, but the failure surfaces as a tool error at depth 2 with no attribution to the policy drift, which is operationally expensive to debug. The decision boundary: **a receiver may forward a warrant without re-evaluation only if it can prove the warrant's `policy_etag` is within the request's `max_policy_age` of the currently resolved etag.** If it cannot prove that, it must re-admit against `P_now` before forwarding, or refuse. "Cannot prove" includes "the fetch failed," "the etag rotated and I don't know why," and "the peer returned a policy with no `etag` at all" — all three must fail closed, not fall through to signature-trust. The hard case is etag rotation on cosmetic edits. The correct resolution is not to weaken the check but to make the policy document carry a `semantic_hash` over the fields that affect admission (`resource_scope`, `max_delegation_depth`, `revoked_warrants`), so that cosmetic edits rotate `etag` without rotating `semantic_hash`, and the receiver re-admits only when `semantic_hash` changes. Without that, every federation either over-re-admits (latency) or under-re-admits (the failure). ## Operational Effect When the invariant holds, the observable behavior is: a warrant whose backing policy has drifted fails at the first hop that can see the drift, with an error that names the policy version mismatch and the tuple that was refused — not a generic tool error, not a signature failure, not a silent success. The delegating org's revocation propagates in at most `max_policy_age` plus one fetch, bounded by the propagation SLA, and the failure is attributable to the policy seam rather than to the tool. When it is violated, the effects compound: - **Silent over-permissioning** for the duration of the warrant's validity window — the exact window during which a revocation was supposed to take effect. - **Misattributed failures** at depth ≥ 2, where the sub-agent's refusal surfaces as a tool error and the actual cause (policy drift at the root) is two hops up the chain and invisible in the sub-agent's context. - **Auditor disagreement** in federations with an Org C: the auditor replaying the warrant chain against `P_now` concludes the exercise was illegal; the executor replaying against `P_i` concludes it was legal. Both replays are internally consistent. The discrepancy is the seam, and it is unresolvable without the `semantic_hash` binding. The guardrail is not "verify signatures harder." It is: **bind every warrant to the semantic hash of the policy that admitted it, and require re-admission — not re-verification — whenever the live semantic hash differs.** Signature verification answers provenance; only semantic-hash re-admission answers currency. A federation that wires only the first into its request path has a trust seam it cannot see until the first revocation, and by then the data is already out. ```python import hashlib import time from dataclasses import dataclass from typing import Optional class StalePolicyAdmissionError(RuntimeError): """Raised when a delegated warrant is exercised against a policy that no longer admits its (capability, resource_scope, depth, principal) tuple.""" @dataclass(frozen=True) class Policy: etag: str semantic_hash: str resource_scope: frozenset max_delegation_depth: int revoked_warrants: frozenset @dataclass(frozen=True) class Warrant: capability: str resource: str delegation_depth: int principal: str policy_semantic_hash: str issued_at: float valid_for: float def semantic_hash_of(policy_doc: dict) -> str: material = "|".join( [ ",".join(sorted(policy_doc["resource_scope"])), str(policy_doc["max_delegation_depth"]), ",".join(sorted(policy_doc["revoked_warrants"])), ] ) return hashlib.sha256(material.encode()).hexdigest() def admit_warrant( warrant: Warrant, live_policy: Policy, max_policy_age: float, now: Optional[float] = None, ) -> None: now = time.time() if now is None else now # Provenance (signature) is assumed verified upstream. This function answers # only the currency question: does the *live* policy still admit the tuple? if warrant.delegation_depth > live_policy.max_delegation_depth: raise StalePolicyAdmissionError( f"depth {warrant.delegation_depth} exceeds live max " f"{live_policy.max_delegation_depth} (warrant minted under " f"semantic_hash {warrant.policy_semantic_hash[:12]})" ) if warrant.resource not in live_policy.resource_scope: raise StalePolicyAdmissionError( f"resource {warrant.resource!r} not in live resource_scope; " f"warrant's policy_hash {warrant.policy_semantic_hash[:12]} != " f"live {live_policy.semantic_hash[:12]}" ) if warrant.principal in live_policy.revoked_warrants: raise StalePolicyAdmissionError( f"principal {warrant.principal!r} revoked under live policy " f"{live_policy.etag}" ) # If the semantic hash matches, the warrant's backing policy is current. # If it differs, we have positively re-admitted above; record the drift. if warrant.policy_semantic_hash != live_policy.semantic_hash: age = now - warrant.issued_at if age > max_policy_age: raise StalePolicyAdmissionError( f"warrant age {age:.1f}s exceeds max_policy_age " f"{max_policy_age:.1f}s and policy semantic_hash drifted " f"({warrant.policy_semantic_hash[:12]} -> " f"{live_policy.semantic_hash[:12]}); re-issuance required" ) ```