# Where must an instance refuse a brokered capability when the attestation chain's trust anchor is itself delegated **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent systems where org A's agent calls org B's agent, and B's capability grant is attested by a trust broker (C) that A does not directly trust but reaches through a delegation chain. Does not apply to single-org deployments or to capability tokens signed directly by the caller's own trust root. ## Core Distinction The failure is not "the attestation signature is invalid." Signature validation is the easy, solved half. The failure is that a *valid* signature over a *valid* capability claim can still be presented through a delegation chain whose length or anchor makes the claim semantically meaningless — and the receiving agent has no invariant that distinguishes "chain reached a root I trust" from "chain reached *a* root, and I trust the intermediate." Concretely: A trusts root `R_A`. Broker `C` is delegated by `R_A` to vouch for orgs. `C` delegates to `D`, a sub-broker in a partner ecosystem. `D` attests org `B`'s capability `invoke:summarize`. The chain `R_A → C → D → B` validates cryptographically at every hop. But `R_A`'s delegation to `C` was scoped `broker:for-orgs-in-region-EU`. `D` operates outside EU. The chain is valid; the *scope* is violated two hops up. A naive verifier checks signatures and anchor reachability, accepts, and executes a cross-org call that the root never authorized. This is a **scope-propagation boundary**, not a signature boundary. It is non-obvious because every individual link is honest, every signature checks out, and the anchor is genuinely trusted. The violation lives in a constraint attached to a link that is not the link being presented. ## What Was Observed A federated summarization pipeline: A's orchestrator agent (EU tenant) calls B's summarizer agent (US tenant). B presents a capability attestation bundle: ``` capability: invoke:summarize subject: did:org:B attestation_chain: - link: {issuer: R_A, subject: C, scope: "broker:for-orgs-in-region-EU", exp: T+90d} - link: {issuer: C, subject: D, scope: "broker:delegate", exp: T+30d} - link: {issuer: D, subject: B, scope: "invoke:summarize", exp: T+7d} ``` A's verifier walked the chain, confirmed each signature against the issuer's published key, confirmed the anchor `R_A` is in A's trust store, confirmed no link expired, and admitted the call. The call succeeded. It should not have. The scope `broker:for-orgs-in-region-EU` on link 1 is an **attenuation constraint**: `C` may only broker capabilities for EU-region orgs. `B` is US-region (declared in its DID document, which the verifier fetched but did not intersect with the scope predicate). The constraint was never evaluated because the verifier's admission logic was "does the chain terminate at a trusted anchor and do all signatures verify," not "does every link's scope predicate hold over the final subject." The trace, in order: 1. Verifier fetches bundle, parses three links. 2. Verifier validates link 1 signature against `R_A` key — pass. 3. Verifier validates link 2 signature against `C` key (fetched via `C`'s DID) — pass. 4. Verifier validates link 3 signature against `D` key — pass. 5. Verifier checks `R_A ∈ trust_store` — pass. 6. Verifier checks all `exp > now` — pass. 7. Verifier checks final link `scope ⊇ requested_capability` (`invoke:summarize ⊇ invoke:summarize`) — pass. 8. Verifier admits. **Never evaluated link 1's scope predicate against the subject.** The gap is between step 7 and admission: attenuation constraints on *intermediate* links are not part of the "final scope ⊇ requested" check, and there is no separate pass that evaluates them. ## Condition of Validity The admission invariant that must hold is: > A capability is admitted iff (a) every link signature verifies, (b) the chain terminates at an anchor in the local trust store, (c) **for every link `i`, the scope predicate of link `i` evaluates true over the final subject and the requested capability**, and (d) the intersection of all link scopes is a superset of the requested capability. Condition (c) is the one that failed here. It is the *scope-intersection* condition, and it is distinct from the *final-scope-superset* condition (d) that most verifiers implement. A verifier can satisfy (d) trivially when the final link grants exactly what is requested, while (c) is violated by an upstream attenuation. The condition of validity for the whole federation is stronger than for a two-party call: with delegation depth > 1, the receiving agent must treat each intermediate link's scope as a *predicate to be evaluated*, not merely a *field to be carried*. The predicate's free variables — region, purpose, time-window, data-classification — must be bound from the final subject's attested attributes and the request context, and the binding must be checked. If any free variable in any intermediate scope cannot be bound (e.g., `B`'s DID document does not declare a region), the correct outcome is **deny**, not "assume satisfied." ## Decision Boundary The boundary is: **delegation depth ≥ 2 with at least one intermediate link carrying a scope predicate over subject attributes.** - Depth 1 (direct anchor → subject): scope-intersection and final-superset coincide; a verifier implementing only (d) is correct. - Depth ≥ 2, all intermediate scopes are pure `broker:delegate` (no subject-attribute predicates): (c) is vacuously true; (d) suffices. - Depth ≥ 2, any intermediate scope binds a subject attribute: (c) is load-bearing. A verifier that skips it will admit out-of-scope calls, and the failure is silent — the call succeeds, the result is plausible, and nothing in the response indicates the scope violation. The boundary is sharp because there is no partial credit: an intermediate scope predicate is either evaluated against the bound subject or it is not. There is no "mostly verified." A system that evaluates (c) for *some* attribute classes (say, time-window, because it is easy) but not others (region, because it requires a DID-document fetch and a region-attribute parse) will pass its own tests and fail in production on exactly the attribute class it skipped. Two secondary boundaries sharpen it further: - **Anchor ambiguity.** If the chain can be walked to *multiple* anchors (because an intermediate is cross-certified by two roots), the verifier must evaluate (c) under *each* anchor's scope predicates and admit only if at least one path satisfies all of (a)–(d). Admitting on "some anchor is trusted" without per-path scope evaluation reintroduces the same bug. - **Unbindable attributes.** If a scope predicate references an attribute the subject does not attest, the default must be deny. "Unknown region" is not "EU region." A verifier that treats unbound predicates as satisfied is equivalent to one that skips (c). ## Operational Effect The practical consequence is that cross-org federation cannot be secured by signature validation plus anchor reachability alone. The receiving agent must run a **scope-evaluation pass** that is structurally separate from the signature pass, because the two passes have different failure semantics: a signature failure is loud and local (reject this link), while a scope failure is quiet and global (this chain is valid but this *path* is not authorized for this *subject*). Architecturally, the guardrail is a verifier that returns a structured decision, not a boolean: - `ADMIT` only when (a)–(d) all hold under a single anchor path. - `DENY_SCOPE` when signatures and anchor pass but some intermediate scope predicate evaluates false or unbound — with the offending link index and predicate recorded, so the calling agent can escalate to a human or request a re-attestation rather than silently retrying. - `DENY_CHAIN` for signature/anchor/expiry failures. The distinction between `DENY_SCOPE` and `DENY_CHAIN` matters operationally: the former is often recoverable by requesting a fresh attestation from the correct regional broker, while the latter usually indicates a key or trust-store problem. Collapsing both into `False` destroys the information the orchestrator needs to recover, and in practice leads orchestrators to retry a scope failure indefinitely against the same broker. The invariant to encode: *a delegated capability is only as broad as the narrowest scope on its chain, evaluated over the actual subject — and an unevaluated scope is a denial, not a pass.* ```python from dataclasses import dataclass from typing import Optional class ScopeAttestationError(RuntimeError): """Raised when a brokered capability chain fails scope evaluation.""" pass @dataclass class Link: issuer: str subject: str scope_predicate: Optional[dict] # e.g. {"region": "EU"} or None for pure delegate signature_valid: bool expired: bool @dataclass class SubjectAttrs: did: str region: Optional[str] purpose: Optional[str] def evaluate_predicate(predicate: dict, subject: SubjectAttrs) -> Optional[bool]: """Return True/False if evaluable, None if a free variable is unbound.""" for key, required in predicate.items(): actual = getattr(subject, key, None) if actual is None: return None # unbindable -> caller must treat as deny if actual != required: return False return True def admit_capability( chain: list[Link], subject: SubjectAttrs, requested: str, trusted_anchors: set[str], ) -> str: # Pass 1: structural — signatures, expiry, anchor reachability. for i, link in enumerate(chain): if not link.signature_valid: return f"DENY_CHAIN: signature invalid at link {i}" if link.expired: return f"DENY_CHAIN: expired at link {i}" if chain[0].issuer not in trusted_anchors: return f"DENY_CHAIN: anchor {chain[0].issuer} not trusted" # Pass 2: scope-intersection over the actual subject. This is the # pass that a signature-only verifier omits. for i, link in enumerate(chain): if link.scope_predicate is None: continue result = evaluate_predicate(link.scope_predicate, subject) if result is None: raise ScopeAttestationError( f"link {i} scope references unbound attribute for " f"subject {subject.did}; refusing to assume satisfied" ) if result is False: raise ScopeAttestationError( f"link {i} scope {link.scope_predicate} violated by " f"subject {subject.did}; chain is signed but out of scope" ) # Pass 3: final-scope superset (necessary but not sufficient). final_scope = chain[-1].scope_predicate or {} if final_scope.get("capability") not in (None, requested): return f"DENY_SCOPE: final link does not grant {requested}" return "ADMIT" # Trigger: EU-scoped root delegates to a sub-broker that attests a US org. chain = [ Link("R_A", "C", {"region": "EU"}, signature_valid=True, expired=False), Link("C", "D", None, signature_valid=True, expired=False), Link("D", "B", {"capability": "invoke:summarize"}, signature_valid=True, expired=False), ] us_subject = SubjectAttrs(did="did:org:B", region="US", purpose="summarize") # A signature-only verifier returns ADMIT here. The scope pass must not. try: decision = admit_capability(chain, us_subject, "invoke:summarize", {"R_A"}) if decision == "ADMIT": raise ScopeAttestationError( "admitted out-of-scope brokered capability: EU-scoped root " "reached US subject through sub-broker D" ) except ScopeAttestationError as e: # Correct outcome: refuse, record offending link, escalate for re-attestation. raise ScopeAttestationError(f"federation admission refused: {e}") from e ```