# In what scenarios must an instance refuse a trust-brokered capability grant when the broker's warrant chain exceeds the delegated scope of the original principal? **Date of Record:** 2026 November 20 **Scope:** Applies to federated multi-agent deployments where agent A (org X) requests a capability held by agent B (org Y) through a trust broker that issues warrants by chaining attenuated delegations. Does not apply to single-org MCP servers with static capability manifests, nor to A2A handoffs where the callee re-authenticates the original principal directly. ## Core Distinction The failure mode is not "the broker is malicious" and not "the signature is invalid." It is **scope amplification across a chain of attenuated warrants when one link is re-brokered rather than re-delegated**. In a correct delegation chain, each hop narrows the capability: `scope(n+1) ⊆ scope(n)`. The invariant that must hold is a *subset relation on the effective capability set*, verifiable at the leaf, not merely a chain of valid signatures. The non-obvious break: a trust broker is permitted (by its own policy) to *re-broker* a capability it holds under a warrant whose scope it does not fully understand — because the scope is expressed in the *granting* org's vocabulary, and the broker parses it into its own vocabulary before re-issuing. If the parse is lossy in the permissive direction (unknown constraint tokens dropped, wildcard expansion of an unparsed predicate), the re-issued warrant is a superset of the original. Every signature in the chain validates. Every hop's local policy check passes. The leaf agent executes a capability its original principal never granted. This is a *semantic* attenuation failure, not a cryptographic one. Signature verification, warrant expiry, and revocation all pass. The only detectable signal is a set-containment violation between the leaf's effective scope and the root principal's declared scope, expressed in a common vocabulary. ## What Was Observed A federation of three orgs: `X` (principal P, holds `repo:write` on resource `r` with constraint `paths ⊆ /src/**`), `Y` (broker), `Z` (executor agent E). P issues warrant `W1` to Y: `{cap: repo:write, resource: r, constraints: {paths: "/src/**"}}`. Y's policy engine parses constraint strings into its internal predicate language. Its parser recognizes `paths` but treats glob patterns as opaque strings; on re-issue it serializes the constraint as `{paths: "/src/**"}` in its own dialect, which Z's parser interprets `**` as "zero or more path segments *including* the root," expanding the effective set to include `/src` itself and — critically — `/src/../secrets` after path normalization at execution time. The trace: 1. `W2 = broker(Y, W1, target=Z)`. Y's subset check compares parsed constraints; both parse to the same opaque string `"/src/**"`, so `subset(W2, W1)` returns `true` under string equality. 2. Z receives `W2`, verifies signatures up to P's root key — valid. 3. Z normalizes the requested path `/src/../secrets` to `/secrets`, then checks it against `W2`'s glob *after* normalization. `**` matches, and the `..` traversal was resolved before the constraint check, so the constraint no longer bounds the resolved path. 4. Z executes `repo:write` on `/secrets`. No error surfaces anywhere in the chain. The invariant violated: *constraint evaluation must occur on the same normalized representation that execution uses, and the subset check must be performed on the denotation of the constraint, not its serialization.* Both Y and Z were individually "correct" against their local parsers. ## Condition of Validity The guardrail is only sound under these conditions, and an instance must refuse the grant if any fails: - **Common denotation.** The leaf must be able to compute `denote(scope_leaf) ⊆ denote(scope_root)` in a shared vocabulary. If the leaf cannot parse the root's constraint dialect, it cannot verify containment and must treat the grant as unverifiable — refuse, do not "best effort." - **Normalize-before-check.** Path/resource normalization (symlink resolution, `..` collapse, Unicode NFKC, case folding on case-insensitive stores) must be applied *before* the constraint predicate, and the normalized form must be what execution consumes. If normalization is deferred to the tool layer, the constraint check is bypassed. - **Re-broker equivalence.** A broker that re-issues a warrant must guarantee `denote(reissued) ⊆ denote(received)`. If the broker's parser is not a *sound over-approximation* of the grantor's — i.e., if it can drop or widen a constraint — the chain is broken regardless of signatures. - **Warrant-chain depth bound.** Beyond a configured depth, the leaf cannot reliably reconstruct the root scope; treat deeper chains as unverified. If the leaf cannot establish all four, the correct action is refusal with a typed error, not degraded execution. ## Decision Boundary The boundary between "accept" and "refuse" is *not* "signature valid / invalid." It is: - **Accept** when the leaf can construct a denotation for both the leaf warrant and the root principal warrant in a common vocabulary, and that denotation is provably a subset, and the normalization function used for the containment proof is the same function the executor will apply. - **Refuse** when any constraint token in the chain is unparsed by the leaf (unknown predicate = unbounded predicate = must refuse), when the broker's re-issue dialect differs from the grantor's and no equivalence proof exists, or when normalization is applied after the check. - **Escalate to re-delegation** (bypass the broker, obtain a direct warrant from P) when the broker is a legitimate party but its parser dialect is not provably sound — this is the recovery path, not a refusal. The subtle case: a chain where every hop is a valid subset under each hop's *own* parser but the composition is not. The leaf must check containment against the *root*, not against its immediate parent, because subset is transitive only if the parsers are consistent. Checking `W2 ⊆ W1` and `W1 ⊆ W0` is insufficient when the parsers differ; the leaf must check `W2 ⊆ W0` directly. ## Operational Effect Without this guardrail, a federation's effective security boundary is the *weakest* parser in the trust chain, and brokers become scope-amplification points by accident. The blast radius is bounded only by what the root principal's resource can reach. Operationally, instances must: 1. Log the full warrant chain and the computed denotations at the leaf, so containment failures are auditable post-hoc. 2. Treat unknown constraint tokens as *deny*, not *ignore* — the default-open behavior of most JSON-schema-style validators is the primary amplifier. 3. Pin the normalization function version into the warrant itself (`norm: v3`) so a leaf can prove it is using the same normalization the grantor intended; a mismatch forces refusal. The following reference check encodes the invariant as an executable refusal condition. ```python from dataclasses import dataclass, field from typing import Callable class WarrantScopeUnverifiable(RuntimeError): """Raised when a leaf cannot prove scope containment against the root principal.""" @dataclass class Warrant: issuer: str subject: str capability: str resource: str constraints: dict norm_version: str signature_valid: bool def _denote(w: Warrant, normalize: Callable[[str, dict], frozenset]) -> frozenset: try: return normalize(w.resource, w.constraints) except KeyError as e: # Unknown constraint token: unbounded, not ignorable. raise WarrantScopeUnverifiable( f"unknown constraint token {e} in warrant from {w.issuer}" ) def verify_chain(chain: list[Warrant], normalize: Callable[[str, dict], frozenset]) -> None: if not chain: raise WarrantScopeUnverifiable("empty warrant chain") root, leaf = chain[0], chain[-1] for w in chain: if not w.signature_valid: raise WarrantScopeUnverifiable(f"invalid signature at hop {w.issuer}") if w.norm_version != root.norm_version: raise WarrantScopeUnverifiable( f"normalization mismatch: {w.issuer}={w.norm_version} root={root.norm_version}" ) root_den = _denote(root, normalize) leaf_den = _denote(leaf, normalize) # Direct containment against ROOT, not immediate parent: # subset is transitive only if all parsers agree, which we do not assume. if not leaf_den.issubset(root_den): escaped = leaf_den - root_den raise WarrantScopeUnverifiable( f"scope amplification: leaf exceeds root by {sorted(escaped)[:5]}" ) def execute_capability(chain: list[Warrant], requested_path: str, normalize: Callable[[str, dict], frozenset], normalize_path: Callable[[str], str]) -> str: verify_chain(chain, normalize) # Normalize BEFORE constraint check, and consume the normalized form. resolved = normalize_path(requested_path) leaf_den = _denote(chain[-1], normalize) if resolved not in leaf_den: raise WarrantScopeUnverifiable( f"resolved path {resolved} not in leaf denotation" ) return resolved ```