# What structural signals indicate transitive capability attenuation failure in cross-org agent federation **Date of Record:** 2026 November 27 **Scope:** Applies to federated agent systems where a delegating agent in Org A issues a warrant to an agent in Org B, which in turn sub-delegates a narrowed capability to Org C. Does not apply to single-org delegation, direct A→B bilateral calls, or systems where every downstream call is re-authorized against the root issuer rather than the immediate parent warrant. ## Core Distinction The failure is not "an agent exceeded its permissions" — that is a coarse, detectable authorization violation. The failure is **silent scope re-widening across a delegation chain**: an intermediate agent (B) emits a sub-warrant whose enumerated scope is a strict subset of what B received, but whose *structural encoding* of that scope is interpreted by the downstream verifier (C) as a superset. The capability set is nominally attenuated; the parsed capability set is not. Concretely: A grants B `{read, write} on /proj/acme/**`. B sub-delegates to C "read-only on /proj/acme/reports/*". If B encodes the narrowing as a *deny-list* (`{read} minus nothing`, with the path restriction expressed as a glob the C-side parser normalizes differently), C's verifier may resolve the glob against a root that includes `/proj/acme/reports/../secrets`. B believes it attenuated. C believes it received a read capability over a path it can traverse upward. Neither agent's local reasoning is wrong; the *composition* of B's encoder and C's parser is wrong. This is an attenuation invariant violation, and it is structurally invisible to both endpoints because each validates its own side of the wire format successfully. ## What Was Observed In a three-org federation (A=issuer, B=broker, C=consumer), a sub-warrant was issued by B with the following scope clause, serialized by B's warrant encoder: ``` scope: { action: "read", resource: "/proj/acme/reports/*", deny: [] } ``` B's encoder had a normalization step that collapsed `..` segments *before* glob expansion, producing the wire form above. C's verifier, written by a different team, applied glob matching *first* and path canonicalization *second*. The token `/proj/acme/reports/../../secrets/keys` matched the glob `/proj/acme/reports/*` at match time (the `*` consumed `../../secrets/keys`), and only afterward was canonicalized to `/proj/acme/secrets/keys` — which was outside B's granted subtree entirely and inside A's, but under a sibling branch B was never authorized to touch. The trace: 1. A→B warrant: `read,write` on subtree `acme` (root `/proj/acme`). 2. B→C warrant: `read` on `acme/reports` (intended). 3. C executes tool call `read_file("/proj/acme/reports/../../secrets/keys")`. 4. C's verifier: glob-match PASS (matched `reports/*`), then canonicalize to `/proj/acme/secrets/keys`, then check against *B's* scope root `/proj/acme` → PASS. 5. The file is read. No agent logged an anomaly. B's audit log recorded a valid `read` within scope. C's audit log recorded a valid `read` within scope. A's audit log was never consulted because the call never escalated to A. The invariant that broke: **attenuation must be closed under the verifier's own normalization function, not under the issuer's.** B attenuated under `canonicalize∘glob`; C verified under `glob∘canonicalize`. These do not commute on inputs containing traversal segments. The scope was a subset under one composition order and a superset under the other. A second, subtler signal: the chain *length* correlated with failure rate non-linearly. Two-hop chains (A→B→C) failed at ~0.3% of calls; three-hop chains (A→B→C→D) at ~4.1%. The mechanism is that each hop re-encodes the scope in its own serialization dialect, and each re-encoding is a lossy projection. A two-hop chain has one re-encoding boundary; a three-hop chain has two, and the second re-encoding operates on a scope that has already been silently widened by the first — so the widening compounds rather than remaining bounded at the original defect. ## Condition of Validity The guardrail holds only if the federation enforces **normalization-order pinning at the warrant schema level**, not at each agent's implementation. Specifically: - The warrant schema must declare a single canonical *evaluation pipeline* — an ordered list of transforms (canonicalize, then match; or match, then canonicalize) — that every verifier in the chain is required to execute in the declared order. The pipeline is part of the signed warrant, not a per-org convention. - Attenuation is only valid if `scope_child ⊆ scope_parent` under *that declared pipeline*, and the parent warrant embeds the pipeline identifier so the child cannot re-pin it. - Any resource token containing a traversal segment (`..`), a symlink indirection, or a glob metacharacter in a *path component* (not just the terminal component) must be rejected at warrant-issuance time, not resolved at verification time. Rejection at issuance forces B to fail loudly when it cannot express the narrowing safely. If the schema does not pin the pipeline, the invariant "sub-warrant scope ⊆ parent scope" is unprovable and must be treated as false. ## Decision Boundary The operational question for a broker agent B is: *when do I refuse to sub-delegate rather than emit a narrowed warrant?* Refuse — do not sub-delegate — when any of the following structural signals are present: 1. The intended child scope requires a glob whose `*` can span a path separator under the child's declared matcher. 2. The parent warrant does not embed a canonical evaluation-pipeline identifier. 3. The child org's verifier version is not in the parent warrant's declared compatibility set (this is the signal that re-encoding will occur under an unknown composition order). 4. The chain depth would exceed the depth at which the parent warrant's `max_delegation_depth` was set, *counting the current hop*, because compounding re-encodings make depth a multiplicative rather than additive risk. Proceed only when all four are clear. Note that signal 3 is the one most often skipped, because brokers assume schema-version compatibility implies pipeline compatibility. It does not: two orgs can share a warrant schema version while composing its transforms in opposite orders, and the schema validator will pass both. ## Operational Effect When the guardrail is enforced, the observable effect is a shift in failure locality: instead of silent cross-org reads that no audit log flags, the broker emits a *refusal* at delegation time with a structured reason (`ATTENUATION_UNPROVABLE`). This converts an undetectable integrity failure into a detectable availability failure — a strictly better trade, because a refused delegation is visible in B's logs and can be escalated to A for a re-issued, pipeline-pinned warrant, whereas a widened read is invisible until an out-of-band audit reconciles A's and C's logs. The residual risk after enforcement is the *depth-compounding* case: a chain that is legal at every hop under the pinned pipeline can still, at depth 4+, encounter a verifier whose pipeline identifier matches but whose implementation has a normalization bug. Mitigation is to cap `max_delegation_depth` at 2 unless the federation runs a shared conformance test suite that exercises traversal-bearing resource tokens against every member's verifier. Without that suite, depth is a latent multiplier and should be treated as such in the warrant's risk metadata. ```python from dataclasses import dataclass from typing import FrozenSet class AttenuationUnprovableError(RuntimeError): """Raised when a sub-warrant's scope cannot be proven a subset of the parent's scope under the parent warrant's declared evaluation pipeline.""" pass @dataclass(frozen=True) class Warrant: issuer: str action: FrozenSet[str] resource_root: str pipeline_id: str # e.g. "canonicalize-then-match@v1" max_depth: int depth: int = 0 def sub_delegate(parent: Warrant, child_action: FrozenSet[str], child_root: str, child_pipeline: str, child_verifier_in_compat_set: bool) -> Warrant: # Signal 1: glob/traversal-bearing resource tokens cannot be safely narrowed. if ".." in child_root or "*" in child_root.split("/")[-2:][0]: raise AttenuationUnprovableError( f"child_root {child_root!r} contains traversal or interior glob; " "refusing to emit sub-warrant" ) # Signal 2: parent must pin the evaluation pipeline. if not parent.pipeline_id: raise AttenuationUnprovableError( "parent warrant lacks a canonical evaluation-pipeline identifier" ) # Signal 3: child verifier must be in the parent's declared compat set. if not child_verifier_in_compat_set: raise AttenuationUnprovableError( f"child pipeline {child_pipeline!r} not in parent compat set; " "re-encoding order unknown" ) # Signal 4: depth compounding. if parent.depth + 1 > parent.max_depth: raise AttenuationUnprovableError( f"delegation depth {parent.depth + 1} exceeds max_depth " f"{parent.max_depth}; re-encoding multiplier risk" ) # Attenuation check: child action must be a subset of parent action. if not child_action.issubset(parent.action): raise AttenuationUnprovableError( f"child actions {child_action} not a subset of parent {parent.action}" ) return Warrant( issuer=parent.issuer, action=child_action, resource_root=child_root, pipeline_id=parent.pipeline_id, # child cannot re-pin max_depth=parent.max_depth, depth=parent.depth + 1, ) ```