# What structural signals indicate silent capability-scope inflation during federated Agent Card re-issuance across trust-brokered org boundaries **Date of Record:** 2026 December 3 **Scope:** Applies to A2A-style federated discovery where an agent's Agent Card is re-signed by a local trust broker after brokering a remote peer's capabilities, and the brokered card is cached or re-served to downstream orgs. Does not apply to single-issuer cards, static capability manifests, or direct peer-to-peer discovery without a broker in the trust path. ## Core Distinction The failure is not "the remote agent lied about its capabilities." It is that the *broker* re-signs a card whose `skills[].capabilities` set was unioned from two sources: the peer's self-asserted card and the broker's own grant policy. The broker signs the union. Downstream consumers verify the broker's signature and correctly conclude the broker vouches for every capability in the card — including capabilities the broker only *transitively observed* and never independently authorized. Capability scope inflates by exactly the set difference `peer_asserted \ broker_granted`, and the signature gives it the same evidentiary weight as `broker_granted`. This is a signature-semantics defect, not an authorization defect: every individual grant is valid, but the signed artifact conflates "I authorize this" with "I have seen this claimed." The non-obvious part: the inflation is *idempotent-stable and monotone*. Re-brokering the same peer through the same broker produces a byte-identical card, so replay/diff checks pass. Chained brokering (org A brokers B, org C brokers A) accumulates the union at each hop, and each hop's signature is locally correct. There is no single hop that fails verification; the invariant "signed card ⊆ union of signer's authorized grants" holds at every hop while the invariant "signed card ⊆ signer's *own* grant set" is violated at every hop after the first. ## What Was Observed Trace from a three-org federation (A brokers B, C consumes A's brokered view of B): 1. B publishes card `C_B` with `skills: [summarize, fetch_url, exec_shell]`, self-signed by B. `exec_shell` is B's own overclaim — B's operator never granted it, but B's card generation includes it from a stale local manifest. 2. A's broker fetches `C_B`, validates B's signature (valid), and applies A's grant policy: A authorizes `summarize` and `fetch_url` for B, denies `exec_shell`. The broker constructs `C_B|A` by unioning B's asserted skills with A's grants, then signs the whole set with A's key. **A's signature now covers `exec_shell`.** 3. C fetches `C_B|A`, verifies A's signature (valid), and reads `exec_shell` as broker-attested. C's policy trusts A for brokered capabilities, so it admits calls to B's `exec_shell` under A's warrant. 4. C calls `exec_shell` on B. B executes it (B's own card said it would). The call is authorized end-to-end by a chain in which A's signature asserted a capability A explicitly denied. The signal that distinguished this from a benign card refresh: the brokered card's `capabilities` array was a strict superset of the broker's *grant log* for that peer, while being a strict subset of the peer's *self-asserted* card. Neither the broker's audit log nor the peer's card alone revealed the gap; only the set relation between them did. In the incident, this was found by a nightly reconciler comparing `signed_card.capabilities` against `grant_log.capabilities` per peer — a check that had been absent because the assumption was "the broker only signs what it grants." A second structural signal: the brokered card's `provider` field pointed at B while the signature was A's. Consumers that keyed trust off `provider` (correctly per spec) and off signature (also correctly) resolved to different principals. The mismatch is the tell. ## Condition of Validity The invariant that must hold for brokered cards to be safe is: > For every brokered card `C` signed by broker `X` for peer `P`, `C.capabilities ⊆ grant_log[X][P]`. This is *not* implied by signature validity, by the peer's card validity, or by the broker's policy engine approving the brokering request. It holds only if the card-construction step is constrained to emit the grant set — i.e., the broker constructs `C` from `grant_log[X][P]` alone and treats the peer's asserted card as *input to policy*, never as *content of the signed output*. The distinction is between the peer's card as a proposal (which policy evaluates) and as a payload (which gets copied into the signed artifact). Any implementation that does `signed = sign(union(peer_card, grants))` violates the invariant while passing every signature check. The condition fails silently whenever the card construction is written as a merge rather than a projection. Merges are the natural implementation when the broker wants to preserve peer metadata (descriptions, input schemas, endpoints) alongside the authorization decision — and preserving that metadata is exactly what drags asserted capabilities into the signed set. ## Decision Boundary A consumer of a brokered card must decide, per capability, whether to treat it as *broker-authorized* or *broker-observed*. The boundary: - **Broker-authorized** iff the capability appears in the broker's published grant set for that peer, verifiable by a separate grant-attestation artifact (not the card itself). Only these may be called under the broker's warrant. - **Broker-observed** iff the capability appears in the card but not in the grant attestation. These are informational; the consumer must either call the peer directly (bypassing the broker's warrant, accepting the peer's own signature as the sole authority) or refuse. The decision is forced by the structural signal: if the brokered card carries capabilities absent from the grant attestation, the card is a merge artifact and the signature must be read as "broker has seen this card" rather than "broker authorizes these skills." A consumer that cannot obtain the grant attestation out-of-band must treat the entire card as broker-observed, which collapses to direct peer trust — a strictly weaker posture that must be chosen deliberately, not by default. The boundary is *not* at signature verification. Verification succeeds in the failure case. It is at the set relation between signed card and grant attestation, which requires the attestation to be a first-class, separately-signed artifact rather than a field inside the card. ## Operational Effect Downstream consumers that verify signature-only will admit calls to capabilities the broker denied, and the failure will be undetectable from the card, the signature, or the broker's policy logs — only from the set difference against the grant attestation. In chained brokering the inflated set is monotone: each hop can add, none can remove, because removal would require the broker to distinguish asserted from granted, which is precisely the operation the merge implementation omits. The blast radius is the transitive closure of consumers that trusted any broker in the chain for the inflated capability. The guardrail is a projection-not-merge construction plus a separately-signed grant attestation, and a consumer-side invariant check that rejects any brokered card whose capability set is not a subset of the attestation. This check must run at admission, not at call time, because call-time checks see only the capability being invoked and cannot detect the structural inflation that admitted it. ```python from dataclasses import dataclass, field class CapabilityScopeInflation(RuntimeError): """Raised when a brokered Agent Card asserts capabilities the broker did not grant.""" @dataclass class BrokeredCard: peer_id: str broker_id: str signed_capabilities: frozenset[str] signature_valid: bool @dataclass class GrantAttestation: broker_id: str peer_id: str granted_capabilities: frozenset[str] signature_valid: bool def admit_brokered_card(card: BrokeredCard, attestation: GrantAttestation) -> None: if not card.signature_valid: raise CapabilityScopeInflation(f"card signature invalid for peer {card.peer_id}") if not attestation.signature_valid: raise CapabilityScopeInflation(f"attestation signature invalid for peer {card.peer_id}") if (card.broker_id, card.peer_id) != (attestation.broker_id, attestation.peer_id): raise CapabilityScopeInflation( f"attestation principal mismatch: card=({card.broker_id},{card.peer_id}) " f"attestation=({attestation.broker_id},{attestation.peer_id})" ) inflated = card.signed_capabilities - attestation.granted_capabilities if inflated: # Signature is valid; the defect is structural: the broker signed a merge, # not a projection of its own grants. Refuse admission. raise CapabilityScopeInflation( f"broker {card.broker_id} signed capabilities it did not grant for peer " f"{card.peer_id}: {sorted(inflated)}" ) def construct_brokered_card( peer_id: str, broker_id: str, peer_asserted: frozenset[str], granted: frozenset[str], ) -> BrokeredCard: # Correct construction: project from grants only. Peer-asserted set is # policy input, never signed content. _ = peer_asserted # evaluated by policy upstream; must not leak into output return BrokeredCard( peer_id=peer_id, broker_id=broker_id, signed_capabilities=frozenset(granted), signature_valid=True, ) ```