# When must an instance refuse a brokered capability attestation that is valid but non-transitive **Date of Record:** 2026 November 30 **Scope:** Applies to cross-org agent federations where a trust broker (a third-party domain) issues capability attestations that domain A relies on to delegate tasks to domain B's agents. Does not apply to single-org MCP deployments where the caller and callee share a trust root, nor to purely cryptographic identity (mTLS/SPIFFE) without capability semantics. ## Core Distinction The failure is not "the attestation is forged" and not "the attestation is expired." Both are caught by signature and clock checks. The failure is that a **valid, correctly signed, in-window attestation asserts a capability that the attesting broker was itself only permitted to *relay*, not to *originate*.** Trust brokering creates a distinction between *capability possession* and *capability delegation authority* that the attestation wire format usually collapses into a single boolean. When domain A receives a broker-signed claim `B.can(execute:payment.transfer, scope=<=500USD)`, A cannot tell from the signature alone whether the broker *holds* that capability (and may therefore grant it) or merely *forwarded* a claim from a fourth domain C that held it. The invariant that must hold — and frequently does not — is **transitivity of delegation authority**: an attestation is only as strong as the weakest link's *right to delegate*, not its right to *hold*. ## What Was Observed A three-domain federation: `acme` (delegator), `broker.example` (trust broker), `payco` (executor). `acme`'s planner agent needs to move funds; it queries the broker for `payco`'s capabilities and receives a signed attestation chain. The chain is: 1. `payco` self-asserts `can(execute:payment.transfer)` — signed by payco's root key. 2. `broker.example` countersigns a *delegation* record: "payco may execute payment.transfer on behalf of principals brokered by us, up to 500 USD." 3. The broker packages (1)+(2) into a capability token presented to `acme`. The token verifies cleanly. `acme`'s policy engine checks: signature valid ✓, not expired ✓, scope ≤ 500 ✓, issuer in allowlist ✓. It dispatches. The transfer executes for 480 USD. Three days later an audit finds the transfer was unauthorized: `payco`'s delegation record (2) had been *re-issued* by the broker on behalf of `initrode`, a fourth domain, because the broker's own policy permitted it to broker *any* domain that completed its onboarding — and `initrode`'s onboarding had been completed by a compromised admin credential. The broker was authorized to *relay* payco's capability to domains it had vetted; it was never authorized to *originate* the vetting decision for `initrode` under `acme`'s policy. `acme` had no way to see the difference because the token's `issuer` field read `broker.example` in both the legitimate and the illegitimate path. The tell, in the logs, was not in the token. It was in the **delegation depth**: the legitimate path had depth 1 (`broker → acme`), the illegitimate path had depth 2 (`initrode → broker → acme`) but the broker had *flattened* it — re-signed at depth 1 rather than chaining. Flattening is the mechanism. A broker that re-signs a relayed capability as if it originated it destroys the provenance edge that `acme`'s policy needed to evaluate. ## Condition of Validity The boundary condition is precise: > A brokered attestation `A ← broker ← B` is safe for `A` to consume **iff** the broker's delegation record for `B` carries a *delegation-authority* scope that is a superset of the capability being relayed, **and** the chain is presented unflattened so that `A` can evaluate each edge against its own policy. Formally, for a chain `d₀ → d₁ → … → dₙ` where `d₀` is the capability holder and `dₙ` is the consumer, each edge `dᵢ → dᵢ₊₁` must carry: - `delegates ⊆ holds(dᵢ)` — the broker cannot delegate what it does not hold; - `delegates ⊆ may_delegate(dᵢ)` — holding is necessary but not sufficient; the broker must also be *permitted to delegate* that capability, and this permission is a separate scope; - `depth` preserved — `n` is visible to `dₙ`, not collapsed to 1. The failure occurs whenever a broker satisfies (1) and (2) for its *own* holdings but re-signs a relayed claim as its own, collapsing (3). The consumer then evaluates a depth-1 chain whose actual depth was 2, and its policy — which correctly forbids depth-2 chains from brokers it has not itself audited — never fires. ## Decision Boundary The consuming instance must **refuse** the attestation, not merely log it, when any of the following hold. These are not soft warnings; they are refusal conditions because the consumer cannot reconstruct the missing provenance edge from the token alone. - **Depth flattening detected.** The token's `issuer == broker` but the broker's delegation record references a `subject` that is not the consumer and not the broker — i.e., there is a third domain in the chain that has been collapsed. Refuse: the consumer cannot evaluate the omitted edge. - **Delegation-authority scope absent.** The broker signed the delegation but its own grant to the consumer lists only `holds`, not `may_delegate`. Refuse: possession was mistaken for authority. - **Scope narrowing without re-attestation.** The broker narrowed the capability scope (e.g., 500 → 480) but did not produce a fresh attestation from the holder for the narrowed scope. Refuse: the narrowed claim is now broker-originated, not holder-originated. - **Broker policy version drift.** The broker's onboarding policy version at attestation time differs from the version the consumer pinned. Refuse (or re-pin explicitly): the consumer's policy allowlisted a *specific* onboarding regime, and the broker silently upgraded. The instance must **accept** when the chain is unflattened, each edge's `delegates ⊆ may_delegate(issuer)`, and the consumer's pinned broker-policy version matches. In that case depth is visible and the consumer's own policy — not the broker's — decides whether a depth-2 chain from `initrode` is acceptable. ## Operational Effect The practical consequence is that **capability attestations are not composable by default**. A federation that treats a broker-signed token as a bearer credential — "if the broker signed it, it's good" — has silently delegated its entire authorization policy to the broker's onboarding process. The broker becomes a policy authority it was never designed to be, and every consumer inherits the broker's weakest onboarding. This is the cross-org analogue of confused-deputy: the broker is the deputy, and the consumer's policy is the confused principal. The guardrail is structural, not procedural. The attestation format must carry `delegation_depth`, `delegator_scope`, and `holder_scope` as separate signed fields, and the consumer's policy engine must evaluate the full chain rather than the terminal signature. Flattening must be a *protocol violation*, not an optimization. And the consumer must pin the broker's policy version at federation-establishment time, treating a version bump as a re-federation event — because a broker that can change its onboarding rules mid-federation can retroactively authorize a chain the consumer already accepted. The invariant, stated as a single line an agent can carry: **a brokered capability is only as trustworthy as the broker's *right to delegate* it, and that right is invisible unless the chain is unflattened.** ```python from dataclasses import dataclass from typing import Optional class NonTransitiveAttestationError(RuntimeError): """Raised when a brokered capability attestation cannot be safely consumed because delegation authority is not transitive across the chain.""" @dataclass(frozen=True) class DelegationEdge: issuer: str subject: str capability: str holder_scope: Optional[int] # what the issuer actually holds delegator_scope: Optional[int] # what the issuer is permitted to delegate delegated_scope: Optional[int] # what the issuer is granting downstream declared_depth: int broker_policy_version: str @dataclass(frozen=True) class ConsumerPolicy: pinned_broker_version: str max_acceptable_depth: int audited_brokers: frozenset def validate_chain( chain: list[DelegationEdge], policy: ConsumerPolicy, consumer_domain: str, ) -> None: if not chain: raise NonTransitiveAttestationError("empty attestation chain") # Reconstruct true depth from edges; compare to declared depth. true_depth = len(chain) declared = chain[-1].declared_depth if declared != true_depth: raise NonTransitiveAttestationError( f"depth flattening: declared={declared} true={true_depth}; " "provenance edge collapsed, consumer cannot evaluate omitted hop" ) if true_depth > policy.max_acceptable_depth: raise NonTransitiveAttestationError( f"chain depth {true_depth} exceeds policy max {policy.max_acceptable_depth}" ) for edge in chain: # Holding is necessary but not sufficient; delegation authority is separate. if edge.delegator_scope is None: raise NonTransitiveAttestationError( f"issuer {edge.issuer} signed delegation for {edge.capability} " "without a delegation-authority scope; possession mistaken for authority" ) if edge.holder_scope is None or edge.delegator_scope > edge.holder_scope: raise NonTransitiveAttestationError( f"issuer {edge.issuer} delegates scope {edge.delegator_scope} " f"but holds {edge.holder_scope}" ) if edge.delegated_scope is None or edge.delegated_scope > edge.delegator_scope: raise NonTransitiveAttestationError( f"issuer {edge.issuer} grants {edge.delegated_scope} " f"exceeding delegation authority {edge.delegator_scope}" ) # Broker policy version must match what the consumer pinned. if edge.issuer not in policy.audited_brokers: raise NonTransitiveAttestationError( f"broker {edge.issuer} not in consumer's audited set" ) if edge.broker_policy_version != policy.pinned_broker_version: raise NonTransitiveAttestationError( f"broker policy drift: edge={edge.broker_policy_version} " f"pinned={policy.pinned_broker_version}; re-federation required" ) # Terminal subject must be the consumer; otherwise we are evaluating # a chain not addressed to us (replay / misrouting). if chain[-1].subject != consumer_domain: raise NonTransitiveAttestationError( f"chain terminates at {chain[-1].subject}, not consumer {consumer_domain}" ) ```