Under what conditions must an instance refuse a federated capability grant whose scope was widened by a peer's local re-delegation
**Date of Record:** 2026 December 1 **Scope:** Applies to cross-organizational agent federations where capability grants are attenuated and re-delegated across trust boundaries (A2A-style task delegation, MCP tool capability manifests, or signed warrant chains). Does not apply to single-org intra-mesh delegation where a common policy authority can retroactively revoke and reconcile grants.
Core Distinction
The failure mode here is not "malicious peer." It is **scope laundering by monotone widening under local interpretation**: a capability grant that was correctly attenuated at issuance becomes semantically wider after a downstream peer re-delegates it, because the peer re-expresses the scope *in its own local vocabulary* and the receiving instance cannot prove the re-expressed scope is a subset of the original.
The distinction that matters operationally: a **grant** is a signed statement of *what the issuer authorizes*. A **warrant** is a chain of grants where each hop must be provably a subset of its parent. Federations routinely enforce signature validity at every hop but enforce subset-ness only by *string equality or nominal type match*. When two orgs use different but overlapping scope vocabularies (e.g., issuer grants `files:read:/team/a/**`, peer re-delegates `files:read:/team/a/sub`), the chain is signature-valid at every hop and *looks* attenuated — but subset-ness was never mechanically checked. The receiving instance cannot distinguish "peer correctly narrowed" from "peer silently widened because its glob semantics differ."
The invariant that must hold: **a receiving instance may only accept a re-delegated grant if it can construct a machine-checkable proof that the effective scope is a subset of the root grant's scope, expressed in the root issuer's vocabulary.** Nominal signature validity is not that proof.
What Was Observed
A three-org federation: Org A (issuer, holds the root capability), Org B (broker/re-delegator), Org C (executor). Org A issued a warrant to B scoped to `repo:acme/widgets:write:branch/feature-*`. B's policy engine re-expressed this for C as `repo:acme/widgets:write:refs/heads/feature-*` — arithmetically the same set under git ref semantics, but B's glob matcher treated `feature-*` as matching `feature-x/../../main` after normalization, and B's subset-checker compared the two strings by prefix, which passed because `refs/heads/feature-` shares a prefix with the canonical form of the parent only after B's own normalization step.
The concrete trace:
- A signs `W_A = sign_A(scope="branch/feature-*", subject=B, depth=2)`.
- B validates `W_A`, normalizes scope to its internal form `refs/heads/feature-*`, and emits `W_B = sign_B(scope="refs/heads/feature-*", subject=C, parent=W_A)`.
- B's subset-check compares `normalize_B(W_B.scope)` against `normalize_B(W_A.scope)`. Both normalize to `refs/heads/feature-*`. Check passes.
- C receives `W_B`. C's validator checks signatures up the chain (all valid), checks `depth` decrement (2→1, valid), checks that `W_B.parent` hash matches `W_A` (valid). C does **not** re-derive `W_A.scope` in A's vocabulary; it trusts B's normalization.
- C executes a write against `refs/heads/feature-x/../../../main`. C's own ref resolver normalizes this to `refs/heads/main` *after* the scope check, which matched the prefix `refs/heads/feature-`.
- The write lands on `main`. No signature was forged. No depth was exceeded. Every individual check passed. The escalation happened in the **gap between B's normalization and C's resolution**, both of which are locally correct.
The failure is not a bug in any single component. It is the absence of a shared canonical form for scope across the federation, combined with the fact that each hop's subset-check is performed in *that hop's* vocabulary rather than the root's.
Condition of Validity
The guardrail holds only under these conditions, and fails silently outside them:
- **Canonical scope form is fixed by the root issuer and is part of the signed payload.** The root grant must carry not just the scope string but the *normalization function identity* (a versioned, content-addressed canonicalizer) that defines set membership. A re-delegating peer must not re-normalize; it must carry the root's canonical form forward verbatim and append its narrowing as a *constraint*, not a rewrite.
- **Subset-ness is checked by the receiver against the root, not by each hop against its parent.** Hop-local subset checks compose only if normalization is a homomorphism, which it is not across org vocabularies. The receiver must walk to the root and evaluate `effective_scope ⊆ root_scope` using the root's canonicalizer.
- **Scope resolution happens before, not after, authorization.** Any path/ref/identifier normalization that can change set membership must be applied before the subset check, and the normalized form must be what is executed. If the executor resolves after checking, the check is vacuous.
- **Depth decrement is necessary but not sufficient.** A depth-2 chain that widens at hop 1 and narrows at hop 2 is still a widened chain at the point of execution if the executor only sees the leaf.
When any of these is absent, the federation has *nominal* attenuation and *effective* widening, and no signature check will catch it.
Decision Boundary
The receiving instance must **refuse** the grant and fail closed when:
- The root canonicalizer identity is absent or unresolvable, OR
- The leaf scope cannot be mapped into the root's vocabulary without loss, OR
- The receiver's own resolver would normalize the effective target to a value outside the root scope *as evaluated by the root canonicalizer*.
The receiving instance may **accept with logging** when the scope maps cleanly and subset-ness is proven, even if intermediate hops used different vocabularies — the proof, not the vocabulary, is what matters.
The receiving instance must **not** accept merely because all signatures verify and depth is positive. That is the exact condition under which the observed escalation passed.
A subtle corollary: the *re-delegating* peer (B) also has an obligation. If B cannot express its narrowing in A's canonical vocabulary without loss, B must refuse to re-delegate rather than emit a lossy re-expression. B emitting `refs/heads/feature-*` when A said `branch/feature-*` was a lossy translation that B's own checker could not detect because it checked in B's vocabulary. The rule: **a broker may only re-delegate scopes it can prove are subsets under the parent's canonicalizer, not its own.**
Operational Effect
Enforcing this boundary changes federation behavior in three concrete ways:
- **Brokers become conservative.** Any scope that requires cross-vocabulary translation gets rejected at the broker rather than silently translated. This reduces delegation fan-out for orgs with divergent scope vocabularies — which is the correct pressure: divergent vocabularies are exactly where laundering hides.
- **Executors must carry root context.** The leaf warrant must reference the root canonicalizer and root scope, so the executor can re-verify. This increases warrant size and forces executors to hold root-issuer trust anchors, which is a real cost but the only way to make subset-ness checkable at the point of execution.
- **Resolution order becomes part of the security model.** Executors must run normalization before authorization and execute the normalized form. Any executor that resolves paths lazily or after authorization is non-compliant regardless of its signature handling.
The residual risk after enforcement: a compromised root issuer, or a canonicalizer collision. Both are outside the federation's ability to detect and must be handled by root-issuer key rotation and canonicalizer version pinning respectively.
import hashlib
from dataclasses import dataclass
from typing import Optional
class FederatedScopeWideningError(RuntimeError):
"""Raised when a re-delegated warrant's effective scope cannot be proven
a subset of the root grant under the root issuer's canonicalizer."""
@dataclass(frozen=True)
class Warrant:
issuer: str
subject: str
scope: str
canonicalizer_id: str # content-addressed id of the root's normalizer
parent_scope: Optional[str]
depth: int
signature_valid: bool
def canonicalize(scope: str, canonicalizer_id: str) -> str:
"""Root-issuer canonical form. In production this dispatches to a pinned,
versioned normalizer. Here we model git-ref normalization as the example."""
if canonicalizer_id == "gitref-v1":
s = scope.strip()
if s.startswith("branch/"):
s = "refs/heads/" + s[len("branch/"):]
# resolve .. segments deterministically
parts = []
for seg in s.split("/"):
if seg == "..":
if parts:
parts.pop()
elif seg and seg != ".":
parts.append(seg)
return "/".join(parts)
raise FederatedScopeWideningError(f"unknown canonicalizer {canonicalizer_id!r}")
def is_subset(leaf: str, root: str, canonicalizer_id: str) -> bool:
"""Subset test performed in the ROOT's vocabulary, not the caller's."""
leaf_c = canonicalize(leaf, canonicalizer_id)
root_c = canonicalize(root, canonicalizer_id)
if not root_c.endswith("*"):
return leaf_c == root_c
prefix = root_c[:-1]
return leaf_c.startswith(prefix) and "/.." not in leaf_c
def accept_redelegated_warrant(
leaf: Warrant, root: Warrant, root_canonicalizer_id: str
) -> None:
if not leaf.signature_valid or not root.signature_valid:
raise FederatedScopeWideningError("signature invalid somewhere in chain")
if leaf.depth < 0:
raise FederatedScopeWideningError("depth exhausted")
if leaf.canonicalizer_id != root_canonicalizer_id:
raise FederatedScopeWideningError(
f"canonicalizer mismatch: leaf uses {leaf.canonicalizer_id!r}, "
f"root requires {root_canonicalizer_id!r}; cannot prove subset-ness"
)
if not is_subset(leaf.scope, root.scope, root_canonicalizer_id):
raise FederatedScopeWideningError(
f"effective scope {leaf.scope!r} is not a subset of root "
f"{root.scope!r} under {root_canonicalizer_id!r}"
)
def execute_write(warrant: Warrant, target: str, root: Warrant) -> str:
# Resolution MUST precede authorization and the resolved form MUST be executed.
resolved = canonicalize(target, warrant.canonicalizer_id)
accept_redelegated_warrant(warrant, root, root.canonicalizer_id)
if not is_subset(resolved, root.scope, root.canonicalizer_id):
raise FederatedScopeWideningError(
f"resolved target {resolved!r} escapes root scope {root.scope!r}"
)
return resolved
# Reproduction of the observed escalation:
root = Warrant("orgA", "orgB", "branch/feature-*", "gitref-v1", None, 2, True)
leaf = Warrant("orgB", "orgC", "refs/heads/feature-*", "gitref-v1", root.scope, 1, True)
# This passes the naive chain check (signatures ok, depth ok, prefix ok)...
# ...but the resolved target escapes:
try:
execute_write(leaf, "refs/heads/feature-x/../../../main", root)
except FederatedScopeWideningError as e:
print("BLOCKED:", e) # BLOCKED: resolved target 'refs/heads/main' escapes...