# Which invariants prevent capability attenuation from silently re-escalating across federated task spaces **Date of Record:** 2026 November 27 **Scope:** Applies to cross-organization agent federations where a task space is jointly negotiated under a policy contract and capabilities are delegated with attenuation (subset narrowing) across agent hops. Does not apply to single-tenant deployments or to federations where every agent shares one trust root and one policy authority. ## Core Distinction There are two different things a federation can mean by "attenuation." The first is **syntactic attenuation**: the delegated capability object is a strict subset of the parent's scope — narrower resources, fewer verbs, shorter TTL. This is what most MCP/A2A handoff implementations check, and it is trivially satisfiable. The second is **semantic attenuation**: the effective authority the receiving agent can exercise, *given the policies of the task space it now operates in*, is no broader than the parent's effective authority. These diverge whenever the child operates inside a task space whose local policy is *more permissive* than the parent's home policy on some axis the delegation never mentioned. The failure mode this record covers: a correctly-narrowed capability token, handed into a shared task space governed by a permissive partner policy, regains authority the parent never had — without any token ever being widened. Attenuation is preserved on paper and violated in effect. No signature check, no scope-subset check, and no TTL check catches it, because every artifact involved is individually valid. ## What Was Observed A three-party federation: Org A (initiator, restrictive policy — capabilities are deny-by-default, egress restricted to an allowlist), Org B (task-space host, permissive policy — allows any tool exposed by any member, auto-grants read on shared artifacts), and Org C (a tool provider). Org A's orchestrator agent holds capability `C_A = {tool: fetch_url, hosts: [docs.corp-a.example], ttl: 600s}` and delegates a sub-task to a worker agent running *inside B's task space*. The delegation narrows correctly: `C_AB = {tool: fetch_url, hosts: [docs.corp-a.example], ttl: 300s}`. Subset check passes. Signature chain intact. The worker enters B's task space. What was not modeled: B's task space has a **policy default that grants every member read access to every shared artifact in the space**, and a **tool-resolution rule that, when a requested tool is not in the caller's capability, falls back to the space's ambient tool registry**. The worker's capability names `fetch_url`; B's ambient registry also exposes `fetch_url` under a *space-scoped* credential that is not host-restricted. The worker's tool-resolution layer, encountering its own capability, resolves to the space-scoped variant because the space policy ranks ambient grants above delegated grants for tools that appear in both. Trace: 1. Worker calls `fetch_url(docs.corp-a.example/x)` — allowed under `C_AB`. 2. Worker calls `fetch_url(partner-b.example/y)` — *also allowed*, because resolution bound to the ambient space credential, which has no host restriction. `C_AB`'s host list was never consulted after binding. 3. Worker reads a shared artifact containing A-internal data that B's permissive read default exposed to all members. 4. Worker's output (containing A-internal data) is written to the shared task space, visible to C. Org A's egress allowlist was never violated at the network layer — the call went to B, which is permitted. The token was never widened. The escalation was entirely in **capability resolution semantics**, not capability contents. The invariant that failed: *a delegated capability must bind at the point of use to the narrowest of (its own scope, the delegating policy, the task-space policy)*. The system implemented *narrowest of (its own scope)* and then let space policy *override* rather than *intersect*. ## Condition of Validity Attenuation is only sound when the following holds for every hop and every task space the capability crosses: - **Resolution is intersection, not precedence.** The effective capability at the point of use is `scope(token) ∩ policy(delegator_home) ∩ policy(task_space)`. Any architecture where a task-space ambient grant can *substitute for* rather than *intersect with* a delegated capability is unsound. "Ranking" grants by specificity or recency is a precedence model and is unsound for this purpose. - **Ambient grants never widen a delegated call.** If a tool is reachable both via the worker's own capability and via a space-ambient credential, the call must resolve to the delegated capability, or be rejected. Silent fallback to ambient is the exact mechanism of the observed failure. - **Policy is carried, not inferred.** The delegating org's policy must travel with the capability (as a signed policy digest), because the receiving task space cannot be trusted to know or honor the delegator's restrictions. A token that says "hosts: [x]" but does not say "and the delegator forbids everything else, and here is proof" is only as strong as the receiver's goodwill. - **Artifact visibility is a capability, not a space default.** Read access to shared artifacts must be an explicit grant in the capability, never a membership default. The observed leak was an artifact read, not a tool call. When any of these is absent, attenuation holds syntactically and fails semantically. The condition is not "the token is a subset" — it is "the *effective* authority at every use site is a subset." ## Decision Boundary The operational decision is where to enforce the intersection. Three placements, with different failure profiles: - **Enforce at delegation time only.** Cheapest. Fails whenever the task space's policy is unknown or changes after delegation — which is the normal case in federation. This is what was deployed and it failed. - **Enforce at the task-space gateway.** The space host intersects the incoming capability with its own policy and with the carried delegator policy digest before admitting the call. Catches the observed failure. Fails if the space host is the *permissive* party and its own policy is what's wrong — the intersection would still be computed against a permissive local policy, but the carried delegator digest bounds it, so this is acceptable *provided the digest is verified and the gateway is not allowed to drop it*. - **Enforce at the point of use inside the worker.** Strongest, but requires the worker's tool-resolution layer to be trustworthy and to have the delegator policy. In cross-org settings the worker runs on the partner's infrastructure, so this is the *least* trustworthy placement. The boundary: **the intersection must be computed by a party that is bound by the delegator's policy, using a policy digest the delegator signed, at a point the delegator's trust does not have to extend past.** In practice that means the delegator must either (a) require the task-space gateway to verify and intersect against the signed digest, or (b) refuse to delegate into spaces whose gateway cannot demonstrate that behavior. Delegating into a space that merely *promises* intersection is the failure. The rejection condition: if a capability is about to cross into a task space whose policy resolution model ranks ambient grants above delegated grants, or whose gateway cannot present a verifiable intersection attestation, the delegation must fail closed — not proceed with a warning. ## Operational Effect The practical consequence is that **federation admission must be gated on the partner's resolution semantics, not on the partner's stated policy**. Two orgs can both claim "deny-by-default" and still compose unsoundly if one resolves by precedence and the other by intersection. The compatibility check is a check on the *composition operator*, and it must be performed before any capability crosses the boundary. Second effect: artifact visibility must be removed from the space-membership default and promoted into the capability. This is a schema change to the delegation format — every capability that expects to read shared artifacts must carry an explicit artifact-read grant with its own scope. Capabilities that omit it must be denied artifact reads at the gateway, not granted by membership. Third effect: the audit trail must record the *effective* capability at each use site, not the delegated token. The observed failure produced a clean audit log — every entry showed a valid token — because the log recorded what was presented, not what was resolved. Post-incident reconstruction was only possible by replaying resolution against the space policy, which is why the policy digest must be logged alongside the token. The invariant to carry forward: **a capability is only as narrow as the narrowest policy that gets to intersect it at the point of use, and that intersection must be performed by a party the delegator can hold to the digest it signed.** Everything else is attenuation theater. ```python from dataclasses import dataclass, field from typing import FrozenSet class AttenuationEscape(RuntimeError): """Raised when a delegated capability would resolve to broader authority than the delegator's policy permits, at the point of use.""" @dataclass(frozen=True) class Capability: tool: str hosts: FrozenSet[str] ttl_s: int artifact_reads: FrozenSet[str] = field(default_factory=frozenset) @dataclass(frozen=True) class Policy: allowed_hosts: FrozenSet[str] allowed_tools: FrozenSet[str] artifact_reads: FrozenSet[str] # Resolution model matters: "intersect" is sound; "precedence" is not. resolution: str = "intersect" def resolve_effective( cap: Capability, delegator_policy: Policy, task_space_policy: Policy, ) -> Capability: """Compute the effective capability at the point of use. Sound only if both policies are joined by intersection. If either policy resolves by precedence (ambient grants override delegated), the effective capability can exceed the delegator's authority and we must refuse. """ for name, pol in (("delegator", delegator_policy), ("task_space", task_space_policy)): if pol.resolution != "intersect": raise AttenuationEscape( f"{name} policy uses resolution={pol.resolution!r}; " "precedence-based resolution can silently widen delegated authority" ) if cap.tool not in delegator_policy.allowed_tools: raise AttenuationEscape( f"tool {cap.tool!r} not permitted by delegator policy" ) effective_hosts = cap.hosts & delegator_policy.allowed_hosts & task_space_policy.allowed_hosts if not effective_hosts: raise AttenuationEscape( f"capability {cap.tool!r} has no host surviving intersection " f"(cap={sorted(cap.hosts)}, delegator={sorted(delegator_policy.allowed_hosts)}, " f"space={sorted(task_space_policy.allowed_hosts)})" ) effective_artifacts = ( cap.artifact_reads & delegator_policy.artifact_reads & task_space_policy.artifact_reads ) # Artifact reads are NOT inherited from space membership; absence of an # explicit grant in the capability means no read, even if the space default # would have granted it. if not cap.artifact_reads and task_space_policy.artifact_reads: effective_artifacts = frozenset() return Capability( tool=cap.tool, hosts=effective_hosts, ttl_s=cap.ttl_s, artifact_reads=effective_artifacts, ) def admit_call(effective: Capability, tool: str, host: str) -> None: if tool != effective.tool: raise AttenuationEscape(f"tool mismatch: {tool!r} != {effective.tool!r}") if host not in effective.hosts: raise AttenuationEscape( f"host {host!r} outside effective scope {sorted(effective.hosts)}" ) ```