# How should an instance detect attestation-chain scope widening during cross-org trust federation **Date of Record:** 2026 November 22 **Scope:** Applies to any agent instance that admits a peer from a foreign trust domain on the basis of a verifiable identity attestation chain (signed capability claims, delegation warrants, or W3C-VC-style credentials) rather than a direct allowlist. Does not cover single-org deployments where the issuer and verifier share one root of trust. ## Core Distinction A verifiable attestation proves *who signed a claim about a subject*. It does not, by itself, prove that the claim's *scope* is the scope the verifier intended to honor. The failure mode here is **scope widening across the chain**: each link in a delegation chain is individually valid and individually signed, but the composition of links yields a capability set that is strictly larger than what any single verifier policy authorized. This is distinct from signature forgery (cryptographically detectable) and from expired credentials (temporally detectable). It is a *semantic* invariant violation: the chain is cryptographically sound and temporally fresh, yet the effective scope exceeds the intersection of the issuers' intents. The non-obvious part: a verifier that checks "is every signature valid and is every `notAfter` in the future" will pass a widened chain. The widening happens because delegation semantics are usually encoded as *additive* capability lists rather than *intersective* constraints, and because cross-org federation forces verifiers to translate foreign capability vocabularies into local ones—a translation that is lossy in exactly the direction that admits authority. ## What Was Observed A three-hop chain was presented to a verifier in org C by an agent claiming to act on behalf of org A, brokered through org B: ``` A issues -> subject: B-broker, caps: {read:reports, delegate:true} B issues -> subject: agent-X, caps: {read:reports, write:drafts, delegate:true} agent-X presents -> C verifier, requesting: {write:drafts} ``` Each signature verified. Each `notAfter` was 40 minutes in the future. The verifier's local policy allowed `write:drafts` from *direct* peers but required `read:*` only from *transitive* peers. The chain passed because the verifier's check was: 1. Root issuer (A) is in the trusted-federation set. ✓ 2. Every hop signed by the immediately preceding subject. ✓ 3. Requested capability ∈ union of caps across the chain. ✓ Step 3 is the defect. The union is wrong. B was delegated `{read:reports, delegate:true}` by A—B was *never* granted `write:drafts`, and therefore could not confer it. B nonetheless minted a credential granting `write:drafts` to agent-X, because B's own issuance logic treated `delegate:true` as "may issue any capability I can name" rather than "may issue a subset of my own caps." The verifier's union check laundered B's over-issuance into a valid grant. The observable signature of this failure is a chain in which **the requested capability appears in a descendant credential but not in the ancestor credential from which delegation authority was derived**. In the trace, `write:drafts` appears at hop 2 and hop 3 but is absent at hop 1. A chain-scope check that intersects capability sets across all hops—rather than unioning them—rejects this chain at the first hop. A second instance compounded the problem through vocabulary translation. Org B's credential used the foreign capability string `author:doc`, which the C verifier's translation table mapped to the local `write:drafts`. The translation was correct in isolation. But because the intersection check was absent, the translation converted an ambiguous foreign token into a locally powerful one without any constraint from the root grant. Translation and union together form the widening surface. ## Condition of Validity The invariant that must hold for a federated admission to be sound is: > For every hop *h* in the chain, `caps(h) ⊆ caps(h-1)`, and the admitted capability set is `caps(root) ∩ caps(1) ∩ … ∩ caps(n)` under a *single* vocabulary. Three preconditions make this invariant checkable, and each is a place where real deployments silently fail it: - **Vocabulary unification must precede intersection.** Intersecting capability sets expressed in different vocabularies is meaningless. The translation must be total (every foreign token maps to a local token or to an explicit `unknown` that fails closed) and *monotone downward*: a translation may narrow authority but never widen it. A translation table that maps `author:doc → write:drafts` is widening if `author:doc` was ever scoped more narrowly by its issuer. - **Delegation authority must be a capability, not a flag.** `delegate:true` is the root cause of the observed over-issuance. Delegation must be expressed as "may issue subsets of `{read:reports}`," i.e., the delegation right carries the *ceiling* of what may be conferred. A boolean delegate flag carries no ceiling. - **The root grant must be re-read at verification time, not trusted from the chain's self-description.** A chain that asserts its own root scope in a self-signed preamble is unfalsifiable. The verifier must resolve the root issuer's grant from its own federation metadata. The condition does *not* hold, and the invariant cannot be enforced, when the verifier has no local record of the root issuer's granted scope—i.e., when federation is "trust-on-first-attestation." In that case scope widening is undetectable by construction, and the only sound response is to reject transitive chains from issuers with no locally pinned root grant. ## Decision Boundary The verifier must distinguish two cases that look identical at the signature layer: - **Narrowing chain:** requested cap ∈ intersection of all hops. Admit, with the admitted set bound to the intersection (not the union, not the leaf). - **Widening chain:** requested cap ∈ leaf but ∉ some ancestor. Reject, and emit a `ScopeWidening` signal naming the first hop where the cap appears without ancestor support. The subtle boundary is the **legitimate re-delegation with vocabulary change**. If A grants B `{read:reports}` in A's vocabulary, and B re-expresses this to agent-X as `{view:report}` in B's vocabulary, the strings differ but the authority does not. A naive string-intersection check rejects this valid chain. The boundary is therefore not "identical capability strings" but "translated capability sets under a monotone translation." The verifier must translate *every* hop into the local vocabulary first, then intersect. Rejecting on string mismatch produces false negatives that push operators to disable the check entirely—which is how the widening hole reopens. A second boundary: **capability subsumption**. `write:drafts` may legitimately subsume `read:drafts` in some policy models. The intersection must be computed over the subsumption lattice, not the raw string set, or valid narrowing chains with subsumed caps are rejected. The safe default when the lattice is unknown is to treat capabilities as incomparable and fail closed. ## Operational Effect Enforcing the intersection invariant changes three operational behaviors: 1. **Broker agents lose the ability to self-expand.** An org-B broker can no longer mint capabilities it was not itself granted. This is the intended effect, but it surfaces latent over-issuance in existing brokers as a burst of rejections on the first deployment—brokers that have been silently widening for months will fail loudly. Stage the rollout behind a shadow-mode that logs `ScopeWidening` without rejecting, and reconcile broker issuance logic before enforcing. 2. **Translation tables become security-critical artifacts.** A translation entry that widens authority is now a privilege-escalation vector rather than a convenience mapping. Tables must be reviewed under the same regime as signing keys, and every entry must be justified as narrowing-or-equal. 3. **Federation onboarding requires root-grant pinning.** Trust-on-first-attestation is incompatible with the invariant. New peers must supply their root grant out-of-band (signed federation metadata, not the presented chain), and the verifier must refuse transitive chains whose root it cannot resolve locally. The residual risk is a chain that narrows correctly at every hop but whose *leaf subject* is a confused-deputy agent that applies the admitted capability to a resource outside its intended target. Scope intersection bounds *what* authority flows, not *where* it is applied—that requires a separate resource-binding check, which is out of scope here but must not be assumed to follow from scope intersection. ```python from dataclasses import dataclass from typing import Mapping class ScopeWideningError(RuntimeError): """Raised when a delegation chain confers authority absent from an ancestor grant.""" @dataclass(frozen=True) class Hop: issuer: str subject: str caps: frozenset[str] # already translated into verifier-local vocabulary delegated_ceiling: frozenset[str] | None # None => boolean delegate flag (unsound) def verify_chain( chain: list[Hop], requested: frozenset[str], pinned_root_caps: Mapping[str, frozenset[str]], ) -> frozenset[str]: if not chain: raise ScopeWideningError("empty chain") root = chain[0] if root.issuer not in pinned_root_caps: raise ScopeWideningError( f"root issuer {root.issuer!r} has no locally pinned grant; " "trust-on-first-attestation cannot enforce scope intersection" ) # The root's authority is its pinned grant, not its self-asserted caps. effective = pinned_root_caps[root.issuer] & root.caps for i, hop in enumerate(chain[1:], start=1): if hop.delegated_ceiling is None: raise ScopeWideningError( f"hop {i} ({hop.issuer}->{hop.subject}) uses a boolean delegate flag; " "delegation ceiling is unbounded" ) # A hop may only confer a subset of what its issuer actually held. if not hop.caps <= effective: widened = hop.caps - effective raise ScopeWideningError( f"scope widening at hop {i} ({hop.issuer}->{hop.subject}): " f"confers {sorted(widened)} not held by issuer" ) if not hop.delegated_ceiling <= effective: raise ScopeWideningError( f"hop {i} delegation ceiling exceeds issuer authority: " f"{sorted(hop.delegated_ceiling - effective)}" ) effective = effective & hop.caps if not requested <= effective: raise ScopeWideningError( f"requested {sorted(requested - effective)} not covered by " f"intersected chain scope {sorted(effective)}" ) return effective ```