# In what scenarios must an instance treat a federated capability grant as invalid the moment any intermediate policy-negotiation hop re-signs the capability envelope with a wider scope **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organization agent federations where a capability (tool schema + policy constraints) is relayed through one or more intermediary brokers or peer agents that re-attest or re-sign the capability envelope before handing it downstream. Does not apply to direct single-hop grants where the issuing authority signs the envelope and the consuming agent verifies it against the same authority's key. ## Core Distinction The distinction that matters is between *transitive delegation* (agent A grants a subset of its authority to B, and B grants a subset of that to C, each hop narrowing and each hop signed by the delegating party) and *re-attestation* (an intermediary broker takes an envelope, validates it, and re-emits it under its own signature so downstream consumers do not need to reach the original issuer). These look similar in wire format—both produce a signed envelope with a scope set—but they have opposite safety properties. Transitive delegation is monotone-decreasing: scope can only shrink along the chain, and each signature binds a specific narrowing. Re-attestation is not intrinsically monotone. A broker that re-signs is asserting "this envelope is what the origin intended," but the broker's signing code typically reconstructs the envelope from a parsed policy object. If the broker's parser normalizes, defaults, or widens any field—most commonly by filling in a missing `constraints` block with the broker's *own* default capabilities, or by expanding a wildcard scope during schema reconciliation—the re-signed envelope carries *more* authority than the origin granted, under a signature the downstream agent will happily validate. The invariant: **a capability envelope's effective scope is the intersection of every signature's asserted scope along the chain, not the scope named in the final hop's payload.** Any consumer that trusts only the terminal envelope's declared scope is exploitable by a widening intermediary. The failure is non-obvious because every signature verifies, every policy check on the terminal envelope passes, and the origin's audit log shows a correctly narrowed grant. ## What Was Observed In a federation between Org A (tool provider: a read-only document retrieval capability scoped to `tenant:finance`, `op:read`, `max_rows:500`) and Org C (consumer agent), routed through Org B's federation broker, the following trace occurred. Org A issued the envelope: ``` issuer: A scope: {tenant: "finance", op: "read", max_rows: 500} constraints: {no_export: true, region: "eu-west"} sig: A ``` Org B's broker parsed this into its internal `PolicyGrant` dataclass. The broker's schema for `PolicyGrant` treats `constraints` as an open map and `scope` as a closed enum set. During reconciliation against Org B's own capability registry, the broker's `normalize_scope()` function expanded `op: "read"` to `op: {"read", "list", "describe"}` because B's registry models `read` as implying the other two for its own tools. It also dropped `constraints` because B's internal model had no field for `no_export` and the deserializer was configured to ignore unknown keys. It then re-signed: ``` issuer: B scope: {tenant: "finance", op: {"read","list","describe"}, max_rows: 500} constraints: {} // dropped sig: B ``` Org C's consumer validated the envelope against B's public key (the federation trust root C was configured with), confirmed the scope was within C's own requested bounds, and executed. The agent then invoked `describe` on a finance resource and, with `no_export` gone, wrote results to a region outside `eu-west`. Both violations were invisible to A, whose audit log recorded a clean `read`-only grant to B, and invisible to C, whose policy check passed against the widened envelope. The failure was detected only when A's egress monitor flagged a cross-region read pattern inconsistent with the grant A believed it had issued. There was no error at any hop; the divergence was purely semantic. ## Condition of Validity A terminal-envelope-only verification is valid **only if** one of the following holds: 1. The federation protocol mandates that every hop's signature *and* the full signature chain are carried in the envelope, and consumers verify the intersection of all asserted scopes, rejecting any hop whose asserted scope is not a subset of its parent's. (This is true transitive delegation; re-attestation is disallowed.) 2. Intermediaries are prohibited from re-signing. They may forward the original envelope byte-for-byte or reject it, but may not reconstruct it. Any broker that cannot forward verbatim must be removed from the path. 3. The origin's constraints are encoded in a form the broker is contractually and mechanically forbidden to interpret—e.g., a signed opaque blob whose hash is bound into every hop's signature, so a dropped constraint invalidates the chain. Absent one of these, the envelope is not a trustworthy statement of authority regardless of how many valid signatures it carries. Signature validity proves *who* asserted a scope, never *that the scope is the intended one*. ## Decision Boundary The operational rule for a consuming agent instance: - If the envelope carries a single signature and that signer is the origin authority named in the federation trust root, evaluate the declared scope directly. - If the envelope carries a chain, compute the effective scope as the intersection of all hops' asserted scopes. If any hop's scope is not a subset of its parent's, **reject the envelope as a widening violation**—do not attempt to reconcile, do not fall back to the narrowest, reject and surface the offending hop. - If the envelope carries a single signature but that signer is an intermediary (not the origin), treat the envelope as *unverified re-attestation*. Either resolve the origin envelope through a side channel and diff it, or refuse to execute. Do not execute on the intermediary's signature alone. - If any hop's `constraints` map is empty while an ancestor's was non-empty, treat this as a drop, not a legitimate relaxation. An empty constraint set is a claim of *no* restrictions, which is never a subset of a restricted set. The boundary is sharp: a chain that narrows monotonically at every hop is safe to execute against its terminal scope; a chain that widens at any hop, or that terminates at a non-origin signer without a verifiable origin envelope, is not. ## Operational Effect Enforcing the intersection invariant changes three things in practice. First, brokers that re-sign become a liability rather than a convenience: cross-org federations must either mandate verbatim forwarding or require brokers to emit the full chain with per-hop subset proofs, which most broker implementations do not do by default. Second, consumer agents must carry an origin-anchor check—they need the origin's key and the origin's declared scope to validate the chain, which means the federation trust root must distinguish "origin authorities" from "intermediaries" rather than treating all trusted keys uniformly. Third, the audit trail must record the *effective* scope computed at execution time, not the terminal envelope's declared scope, because those diverge exactly in the cases that matter. The cost is that naive broker-mediated federation stops working until the broker is either made transparent or made to prove narrowing. The benefit is that a single misconfigured `normalize_scope()` in any intermediary can no longer silently escalate authority across an organizational boundary—the widening becomes a hard rejection at the consumer instead of a cross-region data leak discovered weeks later. ```python from dataclasses import dataclass, field from typing import Optional class WidenedCapabilityError(RuntimeError): """Raised when a federated capability chain widens scope at any hop.""" @dataclass class Hop: signer: str scope: frozenset[str] constraints: frozenset[str] is_origin: bool @dataclass class Envelope: hops: list[Hop] = field(default_factory=list) def verify_chain(envelope: Envelope, origin_authority: str) -> frozenset[str]: """Return effective scope = intersection of all hops, or raise on widening. Rejects: non-monotone narrowing, constraint drops, and chains whose terminal signer is not the origin when the origin is not present. """ if not envelope.hops: raise WidenedCapabilityError("empty capability chain") origin_hop: Optional[Hop] = None for hop in envelope.hops: if hop.is_origin: if hop.signer != origin_authority: raise WidenedCapabilityError( f"origin hop signed by {hop.signer!r}, " f"expected authority {origin_authority!r}" ) origin_hop = hop break if origin_hop is None: raise WidenedCapabilityError( "no origin hop in chain: envelope is unverified re-attestation" ) effective = origin_hop.scope effective_constraints = origin_hop.constraints for hop in envelope.hops[envelope.hops.index(origin_hop) + 1:]: if not hop.scope.issubset(effective): raise WidenedCapabilityError( f"hop signed by {hop.signer!r} widens scope: " f"{sorted(hop.scope - effective)} not granted by parent" ) if hop.constraints < effective_constraints: dropped = effective_constraints - hop.constraints raise WidenedCapabilityError( f"hop signed by {hop.signer!r} drops constraints {sorted(dropped)}" ) effective = hop.scope effective_constraints = hop.constraints return effective # Trace from the observed incident: Org B's broker widened op and dropped no_export. incident = Envelope(hops=[ Hop(signer="A", scope=frozenset({"read"}), constraints=frozenset({"no_export", "eu-west"}), is_origin=True), Hop(signer="B", scope=frozenset({"read", "list", "describe"}), constraints=frozenset(), is_origin=False), ]) try: verify_chain(incident, origin_authority="A") except WidenedCapabilityError as e: print(f"REJECTED at consumer: {e}") ```