# How should an instance detect and contain delegated-capability attenuation bypass across cross-org agent federation **Date of Record:** 2026 November 23 **Scope:** Applies to federated agent systems where a root instance mints delegated capability tokens (scoped, time-bounded, audience-restricted) and hands them to peer agents in other trust domains whose policy bundles are exchanged asynchronously. Does not apply to single-tenant intra-org tool calls or to stateless request/response RPC without delegation. ## Core Distinction The failure is not "a token was stolen" or "a policy was wrong." It is **attenuation bypass through policy-version skew at the delegation boundary**: a delegating instance (Org A) mints a token whose embedded scope is the *intersection* of its local policy and the peer's *advertised* policy snapshot. The receiving instance (Org B) evaluates that token against its *current* policy, which has since narrowed. Neither side is individually incorrect. The intersection computed at mint time is no longer the intersection that holds at evaluation time, and the token carries no field that lets Org B prove the mint-time intersection was ever valid against its live policy. The distinction that matters operationally: **capability tokens encode authority, but federation requires that authority be re-validated against a moving target.** A token that is "valid" (signature, expiry, audience all check) can still be *over-broad relative to current receiving-org policy*. Signature validity is orthogonal to attenuation correctness. ## What Was Observed A root agent in Org A (`root-A`) delegated a `read:records` + `summarize` capability to a peer agent `worker-B` in Org B. The delegation flow: 1. `root-A` fetched Org B's policy bundle at `t0` — bundle advertised `allowed_actions: [read:records, summarize, export:summary]`. 2. `root-A` minted token `T` with scope `[read:records, summarize]`, `aud: org-B`, `exp: t0+3600`, signed by `root-A`'s key. 3. Between `t0` and `t0+90s`, Org B's policy team revoked `summarize` for external principals (a routine tightening, version bumped `v7 → v8`). 4. `worker-B` received `T` at `t0+120s` and, per its normal path, *trusted the token's scope claim* because signature and audience verified. It called `summarize` on 14 records before a downstream auditor flagged the calls against the `v8` policy log. The trace that exposed it: `worker-B`'s authorization decision was `verify_signature(T) ∧ aud_match(T) ∧ scope_claim(T) ⊆ ???`. The `???` was filled with the *token's own scope*, not with `current_policy_B`. The token was self-certifying its own attenuation. The 14 calls were each individually "authorized" by a token that was, at evaluation time, broader than the receiving org permitted. Root cause is a **missing re-intersection step**: the receiving instance never recomputed `effective_scope = scope_claim(T) ∩ current_policy(B)` before dispatch. It treated the delegating org's mint-time intersection as sufficient. In a static-policy world it would be. Under asynchronous policy exchange it is a continuity invariant violation. ## Condition of Validity The delegation is sound **only if** the following holds at the moment of *every* action dispatch, not merely at token receipt: ``` effective_scope(T, action, now) = scope_claim(T) ∩ current_policy(receiving_org, now) # live, not cached ∩ delegated_ceiling(receiving_org, delegating_org) # bilateral cap ``` and the action is permitted iff `action ∈ effective_scope` **and** `policy_version_used == current_policy_version`. Two additional conditions bound the failure: - **Monotonic narrowing only.** If either org's policy can *widen* after a token is minted, the intersection can grow, which is a separate (and worse) failure — a token minted under a narrow policy silently gains authority. Federated policy exchange MUST be narrowing-monotonic per token lifetime, or the token must carry a policy-version pin. - **Version pin or re-fetch, never cache.** A receiving instance may cache a policy bundle only if it also records the version and re-validates the version against the issuer's signed version manifest on a bounded interval shorter than the token's remaining life. Caching without version re-check is the exact trigger observed above. The invariant, stated once: **a delegated token's authority at evaluation time is the triple intersection against live policy, and the receiving org is the party obligated to compute it — the delegating org cannot, because it does not own the live policy.** ## Decision Boundary The boundary between "safe to dispatch" and "must re-intersect / reject" is not token expiry and not signature validity. It is **policy-version agreement across the trust boundary**: - If `token.policy_version_pin` is present and `== current_policy_version(B)`: dispatch on `scope_claim ∩ current_policy`. - If pin is present and `!= current`: the token was minted against a stale view. Re-intersect against current, and if the intersection shrank such that the requested action is excluded, **reject with a re-delegation signal** — do not silently downgrade, because the delegating org's reasoning assumed the broader scope and a silent downgrade produces a reasoning divergence downstream (the agent believes it summarized; it did not). - If no pin is present: treat the token as valid only within a `max_policy_staleness` window (e.g., 60s); beyond that, force a policy re-fetch and re-intersection before any dispatch. This is the guardrail that would have caught the 14-call incident at call #1. The sharp edge: **silent downgrade is worse than rejection.** An agent that is told "you cannot summarize" can re-plan. An agent whose `summarize` call returns empty because the action was filtered at dispatch will confabulate a summary from partial context and propagate a reasoning error into its own episodic memory. Rejection must be explicit and typed. ## Operational Effect Without the re-intersection guardrail, the failure surfaces as: (a) over-broad actions executed under a token that was valid-but-stale, (b) reasoning divergence in the delegating agent that believes its delegated scope held, and (c) audit logs where every individual call verifies as "authorized" because the authorizer used the token's self-claim. The blast radius is bounded by token lifetime and the narrowing delta, but the *detection* latency is the real cost — the incident above was caught by a downstream auditor 14 calls later, not by the authorization path. With the guardrail, the cost is one policy-version check per dispatch (cheap) plus a re-delegation round-trip on version skew (rare, bounded). The architectural requirement: **the receiving org owns attenuation re-validation; the delegating org owns the ceiling; the token carries the version pin that lets the receiver prove agreement.** Any federation design that omits the pin or the live re-intersection is one policy bump away from this exact failure. ```python from dataclasses import dataclass from typing import FrozenSet class AttenuationBypassError(RuntimeError): """Raised when a delegated token's scope is not re-validated against live receiving-org policy.""" pass @dataclass(frozen=True) class DelegatedToken: scope: FrozenSet[str] audience: str policy_version_pin: int | None expires_at: float @dataclass(frozen=True) class PolicyBundle: version: int allowed_actions: FrozenSet[str] def dispatch( token: DelegatedToken, action: str, receiving_org: str, live_policy: PolicyBundle, now: float, max_policy_staleness: float = 60.0, minted_at: float = 0.0, ) -> None: if token.audience != receiving_org: raise AttenuationBypassError(f"audience mismatch: token aud={token.audience} org={receiving_org}") if now >= token.expires_at: raise AttenuationBypassError("token expired") # Version-pin agreement is the continuity invariant. if token.policy_version_pin is not None: if token.policy_version_pin != live_policy.version: effective = token.scope & live_policy.allowed_actions if action not in effective: raise AttenuationBypassError( f"policy skew: token pinned v{token.policy_version_pin}, " f"live v{live_policy.version}; action '{action}' excluded by re-intersection" ) else: if now - minted_at > max_policy_staleness: raise AttenuationBypassError( f"unpinned token older than {max_policy_staleness}s; force policy re-fetch" ) effective_scope = token.scope & live_policy.allowed_actions if action not in effective_scope: raise AttenuationBypassError( f"action '{action}' not in effective scope {sorted(effective_scope)} " f"under policy v{live_policy.version}" ) ```