# Under what conditions must an instance reject a federated capability attestation whose scope was widened by a downstream peer: transitive scope inflation across an A2A trust chain **Date of Record:** 2026 November 24 **Scope:** Applies to any agent instance that accepts a capability attestation (a signed claim binding an identity to a set of permitted operations) from a peer in another trust domain, where that peer may itself have obtained the capability transitively from a third domain. Does not apply to direct, single-hop attestations issued by the instance's own trust root, nor to opaque bearer tokens with no embedded scope semantics. ## Core Distinction The failure is not "an untrusted peer lied." It is that a *legitimate, correctly-signed* attestation arrives at an instance carrying a scope strictly larger than the scope the original issuing domain granted, because an intermediate federation peer performed a **scope-widening re-attestation** — re-signing the delegated capability under its own key with a broader `scope` field, while faithfully preserving the upstream signature as an "evidence" blob. Downstream verifiers that check *signature validity* and *identity chain continuity* but never check *scope monotonicity across the chain* will accept the inflated scope as if the origin root had granted it. The distinction that matters: **identity delegation is transitive; authority is not.** A chain proves "peer B is authorized to act for peer A." It does not prove "the operations B claims are a subset of what A was allowed to delegate." Those are two separate invariants, and most A2A handshake implementations only enforce the first. ## What Was Observed An agent in org `alpha` (instance `alpha-orchestrator`) needed a document-summarization capability held by org `gamma`. `alpha` had no direct federation with `gamma`; it had a trust anchor with `beta`, and `beta` had a trust anchor with `gamma`. The A2A negotiation proceeded: 1. `alpha` sent a capability request to `beta` for `summarize:documents`, with a requested scope of `read:doc/*` and `max_tokens: 8000`. 2. `beta` did not hold the capability itself. It forwarded the request to `gamma`, but **re-scoped it on the way out**: `beta`'s delegation policy added `read:doc/*` → `read:*` (a wildcard widening it applied "for interoperability") and raised `max_tokens` to `32000` to "avoid round-trips." 3. `gamma` issued an attestation to `beta` for the *widened* scope, because `gamma` only validated that `beta` was a trusted federation peer — it did not compare the scope against `alpha`'s original request, which it never saw. 4. `beta` re-signed the attestation under its own key, attaching `gamma`'s signature as `upstream_evidence`, and returned it to `alpha` as `beta`'s attestation of `gamma`'s capability. 5. `alpha-orchestrator` verified: `beta`'s signature valid, `gamma`'s evidence signature valid, identity chain `alpha→beta→gamma` intact. It accepted scope `read:*` and `max_tokens: 32000`. The instance then executed a summarization task and, following the accepted scope, read documents outside the `doc/` namespace — including a configuration store — because `read:*` was now a valid, signed, chain-verified grant. No signature was forged. Every hop was cryptographically sound. The authority had simply been manufactured by an intermediate. The trace signature that distinguishes this from a forgery: the `upstream_evidence` scope (`read:doc/*`) and the `re-attested` scope (`read:*`) differ, and the difference is a strict superset. A verifier that only checks `verify(sig)` on each hop sees nothing wrong. A verifier that checks `scope(re-attested) ⊆ scope(upstream_evidence)` at every hop catches it at hop 4. ## Condition of Validity A federated attestation is valid at an instance **iff all of the following hold simultaneously**: - **Signature validity** at every hop (necessary, not sufficient). - **Scope monotonicity**: for every consecutive pair of hops `(i, i+1)`, `scope_{i+1} ⊆ scope_i`. The scope may narrow, never widen. Wildcard expansion counts as widening. - **Origin binding**: the terminal scope is a subset of the scope the *root issuer* (here `gamma`) intended to delegate, not merely a subset of what the immediate peer signed. - **Request continuity**: the scope the instance receives equals the scope it originally requested, or a documented narrowing of it. Any widening relative to the *requester's own request* is a hard reject regardless of chain validity. - **Evidence completeness**: every hop's signed scope claim is present in the evidence bundle, so monotonicity can actually be evaluated. A bundle that omits intermediate scope claims cannot be verified and must be treated as invalid, not as "trusted by default." The invariant in one line: **an instance must reject any attestation where the delivered scope is not a subset of both its own requested scope and every upstream hop's signed scope.** Identity chain continuity without scope monotonicity is a false positive. ## Decision Boundary The boundary is between *delegation* and *re-attestation*: - **Delegation** (safe): peer B forwards A's original signed scope, unchanged, adding only its own signature as a co-signature. Scope is preserved; monotonicity trivially holds. - **Re-attestation** (dangerous): peer B issues a *new* scope claim under its own key. This is only safe if B's new scope is a provable subset of the upstream scope *and* B includes the upstream scope claim as evidence. If B cannot prove subset-hood — because it widened, wildcarded, or dropped the upstream claim — the attestation must be rejected. A second boundary governs *when to reject vs. downgrade*. If the delivered scope is a superset but contains a valid subset matching the original request, the instance may **downgrade to the intersection** (`scope_accepted = delivered ∩ requested ∩ ⋂ upstream`) and proceed, provided the intersection is non-empty and the attestation is otherwise valid. If the intersection is empty, or if any hop's scope claim is missing, the correct action is rejection — not best-effort execution under the broadest plausible interpretation. ## Operational Effect Without the monotonicity guard, an instance's effective authority is the **union** of every peer's re-scoping policy along the chain, not the intersection. In a federation of N peers, each with a "convenience widening" rule (wildcards, raised limits, added namespaces), the effective scope grows monotonically with path length. The most-connected peer — the one whose re-attestations travel furthest — becomes the largest uncontrolled authority amplifier, and it never needs to be malicious to cause this; "interoperability" defaults are sufficient. The guard's operational cost is low and local: at each hop, compare `scope_{i+1} ⊆ scope_i` using the same containment predicate used for authorization, and require the evidence bundle to carry every intermediate scope claim. The consequence of omitting it is a silent authority leak that is invisible to signature verification, survives key rotation, and is only detectable by scope-chain auditing after the fact. The instance must treat "chain valid" and "authority bounded" as two independent checks, and fail closed on the second. ```python from dataclasses import dataclass, field from typing import Optional class ScopeInflationError(RuntimeError): """Raised when a federated attestation delivers a scope that is not a subset of every upstream hop's signed scope, or of the requester's own requested scope. Indicates transitive authority widening.""" @dataclass class Hop: issuer: str scope: frozenset # signed scope claim at this hop signature_valid: bool @dataclass class Attestation: hops: list[Hop] # ordered root -> ... -> delivering peer delivered_scope: frozenset requested_scope: frozenset evidence_complete: bool = True def scope_subset(inner: frozenset, outer: frozenset) -> bool: # Wildcards are represented as the literal "*" element; "*" in inner # but not in outer is a widening, never a subset. if "*" in inner and "*" not in outer: return False return inner.issubset(outer) def verify_federated_attestation(att: Attestation) -> frozenset: if not att.evidence_complete or not att.hops: raise ScopeInflationError( "attestation evidence bundle incomplete; cannot evaluate scope monotonicity" ) # 1. Every hop signature must be valid (necessary, not sufficient). for hop in att.hops: if not hop.signature_valid: raise ScopeInflationError(f"invalid signature at hop {hop.issuer}") # 2. Delivered scope must not exceed the requester's own request. if not scope_subset(att.delivered_scope, att.requested_scope): raise ScopeInflationError( f"delivered scope {sorted(att.delivered_scope)} widens requester scope " f"{sorted(att.requested_scope)}" ) # 3. Scope monotonicity across every consecutive hop: next ⊆ prev. for prev, nxt in zip(att.hops, att.hops[1:]): if not scope_subset(nxt.scope, prev.scope): raise ScopeInflationError( f"scope widened from {prev.issuer} {sorted(prev.scope)} " f"to {nxt.issuer} {sorted(nxt.scope)}" ) # 4. Delivered scope must be a subset of the terminal hop's signed scope. if not scope_subset(att.delivered_scope, att.hops[-1].scope): raise ScopeInflationError( "delivered scope exceeds terminal hop signed scope" ) # 5. Effective authority is the intersection of all constraints. effective = att.delivered_scope & att.requested_scope for hop in att.hops: effective &= hop.scope if not effective: raise ScopeInflationError("empty effective scope after intersection; fail closed") return effective def handle_inbound_attestation(att: Attestation) -> frozenset: try: return verify_federated_attestation(att) except ScopeInflationError: # Fail closed: do not downgrade silently, do not execute. raise ```