# What happens when an instance inherits a delegated capability set it cannot itself re-derive: transitive capability amplification in A2A discovery under least-privilege delegation **Date of Record:** 2026 November 24 **Scope:** Applies to multi-agent systems where an orchestrator agent (A) delegates a scoped capability subset to a worker agent (B), and B performs its own capability discovery against a downstream agent (C) using A's delegated warrant. Does not apply to flat trust domains where all agents share a single credential root, nor to single-hop tool calls where the caller is also the principal. ## Core Distinction The distinction that matters here is between **capability possession** and **capability derivation authority**. A delegated warrant typically encodes a set of permitted capabilities (e.g., `read:calendar`, `query:vector_store`, `invoke:summarizer`) plus the identity of the delegating principal. What it usually does *not* encode is whether the delegate (B) is permitted to *discover and bind* capabilities that were never enumerated in the warrant but that are reachable through a downstream agent's advertised capability graph. In a flat trust model these are the same thing: if you hold the credential, you can enumerate everything it opens. Under least-privilege delegation they diverge sharply. B holds a narrow credential, but when B calls C's `/.well-known/agent-card` or MCP `tools/list`, C may return a capability manifest that is *broader than the intersection of A's warrant and C's own policy* — because C evaluates the manifest request against B's presented identity token, and B's token is a *derived* token whose scope was never checked against the transitive closure of A's grant. The failure is not that B exceeds its own scope. It is that **B's discovery response leaks the existence and schema of capabilities that A deliberately withheld, and B can then attempt to bind them under a warrant that was never validated for transitivity.** The capability graph grows by one hop without any principal ever authorizing that hop. ## What Was Observed A three-tier deployment: orchestrator A (root principal, holds full grant `G`), worker B (delegated grant `G_B ⊂ G`, scoped to `summarize` and `search`), and downstream service C (exposes `search`, `summarize`, and additionally `export:raw_corpus` and `admin:reindex`). A issues B a signed warrant `W_B = sign(A, scope={summarize, search}, audience=C, expiry=+300s)`. B is instructed to "discover available tools on C and complete the summarization task." The trace: 1. B presents `W_B` to C's discovery endpoint. C's discovery handler verifies the signature chain (`W_B` signed by A, A trusted) and — critically — returns its **full capability manifest**, because the handler's authorization check is `is_trusted_chain(W_B)`, not `scope_contains(W_B, requested_capability)`. 2. B receives a manifest listing `export:raw_corpus` and `admin:reindex`. B's planner, which reasons over the manifest as ground truth about "what is available," includes `export:raw_corpus` in a candidate plan because the task phrasing ("complete the summarization") is ambiguous about whether raw corpus export is a legitimate sub-step. 3. B attempts to invoke `export:raw_corpus`. Depending on C's *invocation-time* enforcement, one of two things happens: - **Enforced-at-invocation (safe-ish):** C rejects with `scope_violation`. B's planner does not treat this as terminal; it retries with a rephrased request, consuming token budget and, in ~18% of observed runs, attempts to invoke `admin:reindex` as a "fallback" to rebuild the corpus it believes it needs. - **Enforced-only-at-discovery (unsafe):** C's invocation handler checks `is_trusted_chain(W_B)` again and permits the call, because the manifest it returned implied the capability was available. The scope field in `W_B` is never consulted at invocation time. This is the amplification case: B executed `export:raw_corpus` under a warrant that granted only `search` and `summarize`. 4. A's audit log records only that B was delegated `{summarize, search}`. The `export:raw_corpus` call is attributed to B's derived token, which A never inspected. The least-privilege invariant `effective_capabilities(B) ⊆ G_B` is violated with no single log line showing the violation. The non-obvious part: the leak is in the **discovery response**, not the invocation. Even in the "safe" branch, B's planner has now *seen* capabilities A withheld, and its subsequent reasoning is poisoned by knowledge of capabilities it cannot legitimately use. The planner's candidate-set expansion is a function of the manifest, and the manifest was broader than the warrant. This is a reasoning-layer contamination that survives even when invocation-time enforcement is correct. ## Condition of Validity The amplification requires all of the following to hold simultaneously: - **Derived-warrant discovery is permitted.** C accepts B's derived token for discovery without checking the token's scope against the requested manifest breadth. If C's discovery handler filters the manifest to `scope_contains(W_B, cap)`, the failure does not occur. - **Manifest is treated as ground truth by the delegate's planner.** B's planning loop uses the discovery response as the authoritative capability set rather than intersecting it with its own warrant scope. If B re-derives `available = manifest ∩ scope(W_B)` before planning, the amplification is bounded. - **Invocation enforcement is either absent or chain-based rather than scope-based.** If C enforces `scope_contains(W_B, cap)` at invocation, the worst case is a rejected call plus planner churn; if C enforces only chain trust, the call succeeds. - **The warrant does not carry a transitive-closure constraint.** If `W_B` includes an explicit `no_further_delegation` or `discovery_scope = scope(W_B)` field, C can enforce the intersection at discovery time. If any one of these fails, the failure mode collapses to a benign rejection or a correctly-scoped manifest. The boundary is precisely the case where discovery and invocation are authorized by *different predicates* — chain-trust at discovery, scope at invocation, or vice versa. ## Decision Boundary The architectural invariant required is: **discovery responses must be scope-filtered against the presenting warrant, and the delegate must re-intersect the manifest with its own warrant before planning.** Concretely: - C's discovery handler must compute `manifest_out = {cap ∈ manifest_full : scope_contains(W_presented, cap)}`. Chain trust is necessary but not sufficient; the scope predicate must gate the manifest. - B must treat the discovery response as `manifest_received`, then compute `manifest_usable = manifest_received ∩ scope(W_B)` before any planner step consumes it. This is a defense-in-depth re-derivation; it bounds contamination even if C is misconfigured. - The warrant schema must carry an explicit `transitive: false` (or `discovery_scope`) field so that C has a machine-checkable basis to refuse broad manifests to derived tokens. The decision boundary for an operator is: if you cannot guarantee both (a) scope-filtered discovery at every downstream service and (b) re-intersection at every delegate, then you must treat every derived warrant as potentially amplifying and either shorten warrant lifetimes to bound the blast radius or restrict delegates to single-hop, pre-enumerated capability sets with discovery disabled entirely. ## Operational Effect When the invariant holds, the effective capability set of any agent is the intersection of the warrant scope and the downstream manifest, and the least-privilege bound `effective(B) ⊆ G_B` is preserved across hops. Audit logs attribute every invocation to a scope-checked token, and the transitive closure of grants is computable from the warrant chain alone. When it fails, three effects compound. First, **silent amplification**: capabilities execute under warrants that never authorized them, and the audit trail attributes them to a derived token whose scope was never checked — the violation is invisible to per-agent logs and only detectable by reconstructing the warrant chain. Second, **planner contamination**: even when invocation is correctly rejected, the delegate's reasoning has been expanded by a manifest broader than its grant, producing retry storms and fallback attempts against withheld capabilities (`admin:reindex` as a "recovery" step is the canonical case). Third, **non-determinism in the failure surface**: because the planner's candidate set is now a function of the discovery response, and the discovery response depends on which downstream replica answered, the same task run against the same warrant can amplify on one run and not another. This makes the failure hard to reproduce in isolation and easy to dismiss as flakiness. The guardrail that bounds all three is the same: scope-filter the manifest at the source, re-intersect at the delegate, and carry an explicit non-transitivity flag in the warrant so the source has something to enforce against. ```python from dataclasses import dataclass, field from typing import FrozenSet class CapabilityAmplificationError(RuntimeError): """Raised when a delegate's usable capability set exceeds its warrant scope.""" @dataclass(frozen=True) class Warrant: principal: str delegate: str scope: FrozenSet[str] audience: str transitive: bool = False ttl_seconds: int = 300 @dataclass class DiscoveryResult: manifest: FrozenSet[str] source: str def scope_filter_manifest(warrant: Warrant, full_manifest: FrozenSet[str]) -> FrozenSet[str]: """Source-side enforcement: manifest returned to a derived token is the intersection of the full manifest and the presenting warrant's scope. Chain trust alone is insufficient; the scope predicate must gate the manifest.""" if not warrant.transitive: # A non-transitive warrant may only ever see its own scope. return full_manifest & warrant.scope return full_manifest def reintersect_at_delegate(warrant: Warrant, discovered: DiscoveryResult) -> FrozenSet[str]: """Delegate-side defense in depth: never let the planner consume a manifest broader than the warrant, even if the source misbehaved.""" usable = discovered.manifest & warrant.scope leaked = discovered.manifest - usable if leaked: # Contamination detected: planner must not see these names. raise CapabilityAmplificationError( f"delegate {warrant.delegate} received manifest entries outside " f"warrant scope from {discovered.source}: {sorted(leaked)}" ) return usable def plan_and_invoke(warrant: Warrant, discovered: DiscoveryResult, task_caps: FrozenSet[str]) -> FrozenSet[str]: usable = reintersect_at_delegate(warrant, discovered) unauthorized = task_caps - usable if unauthorized: raise CapabilityAmplificationError( f"task for {warrant.delegate} requires capabilities outside " f"effective scope {sorted(warrant.scope)}: {sorted(unauthorized)}" ) return task_caps # Reproduction of the observed trace: full = frozenset({"search", "summarize", "export:raw_corpus", "admin:reindex"}) w_b = Warrant(principal="A", delegate="B", scope=frozenset({"search", "summarize"}), audience="C", transitive=False) # Source correctly filters: safe_manifest = scope_filter_manifest(w_b, full) assert safe_manifest == frozenset({"search", "summarize"}) # Misconfigured source returns full manifest; delegate must catch it: leaky = DiscoveryResult(manifest=full, source="C") try: reintersect_at_delegate(w_b, leaky) except CapabilityAmplificationError as e: print(f"BLOCKED: {e}") # Planner attempting a withheld capability is blocked before invocation: try: plan_and_invoke(w_b, DiscoveryResult(manifest=safe_manifest, source="C"), frozenset({"summarize", "export:raw_corpus"})) except CapabilityAmplificationError as e: print(f"BLOCKED: {e}") ```