# Which invariants prevent Agent Card delegation chains from silently widening scope across federation boundaries **Date of Record:** 2026 November 25 **Scope:** Applies to cross-org agent federation where a relying party (auditor agent, orchestrator, or peer) verifies a signed Agent Card plus a verifiable-credential (VC) chain attesting provenance and delegated scope. Does not cover single-org deployments where the trust root is trivially shared, nor pure transport-level mTLS identity without capability attestation. ## Core Distinction The failure is not "a forged signature accepted." It is **scope amplification across a legitimate delegation chain**: every link in the chain verifies cryptographically, every VC is unexpired and correctly signed by an issuer the verifier trusts, and yet the *effective* scope of the leaf agent exceeds the intersection of the scopes its ancestors were granted. The signature check passes; the *set-theoretic* invariant `scope(leaf) ⊆ ⋂ scope(ancestor_i)` is never asserted. The distinction that matters operationally: signature validity is a per-link local property, while scope containment is a **whole-chain global property**. Verifiers that check links in isolation (the common implementation) cannot detect the violation, because no single VC is malformed. The amplification arises from how `AgentCard.capabilities` and `VC.credentialSubject.scope` are *composed* during federation—typically by union at each hop rather than intersection. ## What Was Observed A three-hop federation: `org-A/orchestrator` → `org-B/specialist` → `org-C/executor`. 1. `org-A` issues a signed Agent Card for `orchestrator` with `capabilities = {read:invoices, write:payments}` and a VC granting `scope = {read:invoices, write:payments}`. 2. `orchestrator` delegates to `org-B/specialist`, minting a VC with `scope = {read:invoices}` (correctly narrowed) — but its Agent Card advertises `capabilities = {read:invoices, read:contracts}` because the card template unions the org's default capability set. The VC and the card disagree. 3. `org-B/specialist` delegates to `org-C/executor`. The delegation logic reads the *card* (`capabilities`) rather than the *VC* (`scope`) to compute the child grant, so it mints `scope = {read:invoices, read:contracts}`. 4. `org-C` verifies: signature on executor's card ✓, every VC chain link signed by a trusted issuer ✓, no expiry ✓. It admits the agent with `read:contracts` — a capability `org-A` never granted and never intended to leave its boundary. The trace shows the divergence is introduced at the **card/VC reconciliation step**, not at signing. The chain is cryptographically pristine and semantically wrong. In two of the observed incidents the widened capability was `read:contracts`; in a third it was `invoke:refund` reaching a partner org that had only been granted `read:order_status`. A secondary observed effect: because the leaf's *card* now advertises the union, downstream peers that trust the card (not the VC) propagate the widened scope further, so the amplification compounds per hop rather than staying local. ## Condition of Validity The invariant holds—and verification is sound—only when all of the following are simultaneously true: - **Card ⊆ VC at every node.** For each agent `i`, `capabilities(card_i) ⊆ scope(vc_i)`. A card may advertise *less* than its VC (least-privilege presentation) but never more. This is the reconciliation invariant, and it is the one that was violated. - **Delegation reads the VC, not the card.** Child scope must be computed as `scope(child) ⊆ scope(parent_vc)`, never from `capabilities(parent_card)`. The card is a presentation artifact; the VC is the authority. - **Intersection, not union, on composition.** Effective scope of a chain is `⋂_i scope(vc_i)`. Any implementation that unions at a hop has already lost the invariant. - **Issuer trust is scoped, not global.** A verifier trusting `org-B` as an issuer for `read:invoices` must not thereby trust it to attest `write:payments`. Trust roots must be `(issuer, capability-set)` pairs. - **Freshness binds to the chain, not the leaf.** A valid, unexpired leaf VC whose ancestor VC has been revoked is invalid. Revocation must be checked transitively. If any of these fails, signature verification still succeeds and the system silently admits over-scoped agents. The condition of validity is therefore *not* "all signatures verify"—it is "all signatures verify **and** the scope-containment lattice is non-widening across every edge." ## Decision Boundary The verifier must reject at the boundary where **advertised capability exceeds attested scope**, and it must do so *before* admitting the agent to any tool surface. Concretely, the decision boundary sits at the card/VC reconciliation gate, evaluated transitively: - If `capabilities(card_leaf) \ scope(vc_leaf) ≠ ∅` → reject (presentation exceeds attestation). - If `scope(vc_child) \ scope(vc_parent) ≠ ∅` for any edge → reject (delegation widened). - If any ancestor VC is revoked/expired → reject the whole chain (transitive freshness). - If the issuer's trust entry does not cover the specific capability being exercised → reject (scoped trust). The boundary is deliberately placed at *reconciliation*, not at *signature validation*, because the failure mode is invisible to signature validation. A system that only gates on signatures has no decision boundary here at all—it fails open. The correct posture is fail-closed with the *intersection* as the admitted scope, and any widening treated as a hard error rather than a warning, since a widening edge is evidence of a composition bug that will recur on every subsequent delegation. ## Operational Effect When the invariant is enforced, federation degrades safely: a misconfigured card template that over-advertises causes admission failure (loud, debuggable) rather than silent over-grant (quiet, exploitable). The blast radius of a card/VC divergence is bounded to the single misconfigured org, because the next hop's intersection check rejects the widened edge before it propagates. When the invariant is absent—the observed case—the effect is a **latent privilege-escalation channel that survives all cryptographic checks**. Two consequences dominate incident response: (1) audit logs show a fully valid, signed, unexpired chain, so post-hoc forensics must reconstruct the scope lattice edge-by-edge rather than trusting "verification passed"; and (2) because the leaf card advertises the union, revocation of the offending VC does not retract the capability already cached by downstream peers that trusted the card. Remediation requires re-deriving effective scope from the VC intersection at every peer, not merely revoking the leaf. The durable lesson: in federated agent trust, **the signed object you verify is not always the object that carries authority.** Cards present; VCs authorize. Any verifier that conflates them will pass every signature check and still hand an agent a capability its principal never granted. ```python from dataclasses import dataclass, field from typing import FrozenSet class ScopeAmplificationError(RuntimeError): """Raised when a delegation chain widens effective scope across a federation edge.""" @dataclass(frozen=True) class AgentNode: org: str capabilities: FrozenSet[str] # advertised on the signed Agent Card scope: FrozenSet[str] # attested by the VC revoked: bool = False def verify_chain(chain: list[AgentNode]) -> FrozenSet[str]: """ Verify a federated delegation chain and return the admitted effective scope. Enforces the non-widening invariant: - card capabilities must be a subset of the node's VC scope - each child's VC scope must be a subset of its parent's VC scope - no ancestor may be revoked (transitive freshness) - effective scope is the INTERSECTION across the chain, never the union """ if not chain: raise ScopeAmplificationError("empty delegation chain") effective = chain[0].scope for i, node in enumerate(chain): # 1. Presentation must not exceed attestation. over_advertised = node.capabilities - node.scope if over_advertised: raise ScopeAmplificationError( f"node {i} ({node.org}) advertises {sorted(over_advertised)} " f"not present in its attested VC scope" ) # 2. Transitive freshness: any revoked link invalidates the chain. if node.revoked: raise ScopeAmplificationError( f"node {i} ({node.org}) is revoked; chain invalid transitively" ) # 3. Delegation must narrow, never widen. if i > 0: widened = node.scope - chain[i - 1].scope if widened: raise ScopeAmplificationError( f"edge {i-1}->{i} widens scope by {sorted(widened)}" ) # 4. Effective scope is the intersection. effective = effective & node.scope return effective if __name__ == "__main__": # The observed incident: card unions org defaults, VC correctly narrowed. orchestrator = AgentNode( "org-A", capabilities=frozenset({"read:invoices", "write:payments"}), scope=frozenset({"read:invoices", "write:payments"}), ) specialist = AgentNode( "org-B", capabilities=frozenset({"read:invoices", "read:contracts"}), # card over-advertises scope=frozenset({"read:invoices"}), # VC correctly narrowed ) executor = AgentNode( "org-C", capabilities=frozenset({"read:invoices", "read:contracts"}), scope=frozenset({"read:invoices", "read:contracts"}), ) # Fails at node 1: specialist's card advertises read:contracts not in its VC. verify_chain([orchestrator, specialist, executor]) ```