# Which invariants prevent transitive trust escalation across federated agent brokers when capability grants are re-signed at each administrative hop **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org agent federation where an agent's capability warrant is re-attested (re-signed) by each intermediate broker as it traverses administrative domains. Does not apply to single-org deployments or to federated systems that pass an immutable, end-entity-signed warrant through without per-hop re-signing. ## Core Distinction The distinction that matters is between **delegation** and **re-attestation**. In delegation, a principal grants a narrower capability to a subordinate, and the chain of grants is monotone-decreasing: each hop can only *reduce* the capability set. In re-attestation, each intermediate broker signs a *fresh* warrant asserting "this agent is authorized for X" based on its own local policy evaluation, discarding the originating principal's attenuation constraints. Re-attestation is the common shortcut because it lets each domain enforce its own policy without parsing foreign warrant languages. It is also the mechanism by which a capability set can silently *grow* across hops, because no single broker sees the full chain and each evaluates capability against its own, more permissive, local policy. The invariant at stake: **the effective capability set at hop N must be a subset of the capability set at hop N−1, and this must be verifiable by the receiving broker without trusting any intermediate.** Re-signed warrants break this because the receiver sees only the immediately preceding broker's signature and cannot distinguish "broker faithfully narrowed a broad grant" from "broker fabricated a broad grant from a narrow one." ## What Was Observed A three-domain federation: Org A (agent owner), Org B (federation broker / trust hub), Org C (resource holder). Agent α, owned by A, holds a warrant for `read:dataset/telemetry` issued by A. To reach C's datasets, α routes through B, which is the mutually-trusted hub both A and C have peering agreements with. The trace: 1. A issues warrant W_A: `{sub: α, cap: read:dataset/telemetry, exp: T+1h, sig: A}`. 2. α presents W_A to B. B's policy engine evaluates: "α is from a peered org, and B's policy grants any peered-org agent `read:dataset/*` for discovery purposes." B **re-signs** a new warrant W_B: `{sub: α, cap: read:dataset/*, exp: T+2h, sig: B}`. Note two mutations: the capability widened from a specific dataset to a wildcard, and the expiry *extended* past the original. 3. α presents W_B to C. C trusts B (peering agreement) and validates only W_B's signature and expiry. C has no visibility into W_A. C grants `read:dataset/*` including `read:dataset/payroll`, which A never authorized and which α's originating principal would have forbidden. 4. C's audit log records "α authorized by B for read:dataset/*" — a true statement that is nonetheless a laundering of an unauthorized escalation. The escalation was not a bug in any single policy engine. Each engine behaved correctly against its local inputs. The failure is structural: the wildcard widening at B was invisible to C, and the expiry extension at B meant C accepted a credential that outlived its root of trust. A second, subtler observation: because B re-signed with a *fresh* expiry, a revocation at A (α compromised, W_A revoked) had no effect on W_B. C continued to honor W_B for the full extended window. The revocation did not propagate because the re-signed warrant carried no back-reference to W_A that C was obligated to check. ## Condition of Validity The subset invariant holds **only if** every intermediate broker is required to (a) preserve the original end-entity warrant or its cryptographic hash inside the re-signed warrant, (b) prove attenuation — i.e., that the new capability set is a subset of the old — rather than merely assert it, and (c) carry forward the *minimum* of all upstream expiries and the *conjunction* of all upstream revocation pointers. If any of these is absent, the invariant is unenforceable at the receiver, because the receiver's only input is the immediately preceding signature. The receiver cannot reconstruct the chain, so it cannot verify monotonicity. This is the precise boundary: **trust brokering is safe only when the broker's output is a verifiable function of its input, not an independent assertion.** A broker that re-signs based on local policy is, from the receiver's perspective, indistinguishable from a broker that mints capabilities from nothing. The condition also fails silently under **schema negotiation mismatch**: if B and C use different capability vocabularies (B says `read:dataset/*`, C interprets `*` as including `payroll` while A's vocabulary treated `telemetry` and `payroll` as disjoint namespaces), the subset check cannot even be expressed. Capability discovery that returns a wildcard where the originator meant a namespace is a widening in disguise. ## Decision Boundary The operational decision is whether to accept a re-signed warrant at the resource boundary. The correct rule: - **Accept** a warrant only if it embeds the full attenuation chain (or a Merkle commitment to it) and the receiver can verify, hop by hop, that each capability set is a subset of its parent and each expiry is ≤ its parent's. This is verifiable without trusting any intermediate, because the chain is signed end-to-end by the originator and each broker's attenuation proof is checkable. - **Reject** any warrant whose capability set cannot be proven a subset of the originating grant, whose expiry exceeds the originating expiry, or whose revocation pointer does not transitively include the originator's revocation endpoint. Rejection must be at the *edge* (C), not deferred to the broker (B), because B is the untrusted party in the escalation scenario. - **Treat wildcard capabilities as maximum-privilege** during subset checks. `read:dataset/*` is never a subset of `read:dataset/telemetry`; it is a superset. Any broker emitting a wildcard from a specific grant has widened, and the receiver must reject. The boundary is sharp: a federation that cannot express "prove your output is a subset of your input" must fall back to passing the originator's warrant unchanged and letting the resource holder evaluate the originator's policy directly. That is slower and requires vocabulary alignment, but it is the only configuration in which the subset invariant is enforceable. ## Operational Effect When the invariant is enforced, cross-org federation degrades gracefully: capability discovery returns narrowed sets, brokers that cannot prove attenuation are bypassed rather than trusted, and revocation at the originator propagates because every downstream warrant carries the originator's revocation pointer. The cost is that brokers must retain and forward the full chain, and capability vocabularies must be aligned enough to express subset relations — a real interoperability tax. When the invariant is violated, the system exhibits **silent privilege amplification**: each hop is locally correct, the audit trail is locally truthful, and the escalation is only visible by correlating logs across all three domains — which no single domain is positioned to do. The failure is not detectable at the point of use, which is why it survives testing: every domain's tests pass, and the escalation only manifests as an unauthorized read that looks authorized in every log it touches. The guardrail is therefore not a better policy engine at any hop, but a **structural requirement that the receiver be able to verify monotonicity without trusting the sender** — forcing the attenuation proof into the credential itself. ```python from dataclasses import dataclass from typing import Optional class TransitiveTrustEscalation(RuntimeError): """Raised when a re-signed federated warrant cannot be proven a subset of its parent grant.""" pass @dataclass(frozen=True) class Warrant: subject: str capability: str # e.g. "read:dataset/telemetry" or "read:dataset/*" expires_at: int issuer: str parent_hash: Optional[str] # hash of the upstream warrant this attenuates revocation_ptr: Optional[str] def _is_subset(child_cap: str, parent_cap: str) -> bool: # A wildcard is a superset, never a subset, of a specific grant. if child_cap == parent_cap: return True if child_cap.endswith("/*"): return False if parent_cap.endswith("/*"): return child_cap.startswith(parent_cap[:-1]) return False def verify_federated_warrant( presented: Warrant, chain: list[Warrant], now: int, ) -> None: """ Verify a warrant re-signed across administrative hops. `chain` is ordered originator -> ... -> presented issuer. Raises TransitiveTrustEscalation on any monotonicity violation. """ if not chain: raise TransitiveTrustEscalation("empty attenuation chain: cannot verify subset invariant") origin = chain[0] if presented.expires_at > origin.expires_at: raise TransitiveTrustEscalation( f"expiry widened: presented {presented.expires_at} > origin {origin.expires_at}" ) if presented.revocation_ptr != origin.revocation_ptr: raise TransitiveTrustEscalation( "revocation pointer does not transitively reference originator; " "originator revocation will not propagate" ) prev = origin for hop in chain[1:] + [presented]: if not _is_subset(hop.capability, prev.capability): raise TransitiveTrustEscalation( f"capability widened at hop issued by {hop.issuer}: " f"{hop.capability!r} is not a subset of {prev.capability!r}" ) if hop.expires_at > prev.expires_at: raise TransitiveTrustEscalation( f"expiry widened at hop issued by {hop.issuer}" ) prev = hop if presented.expires_at <= now: raise TransitiveTrustEscalation("presented warrant already expired") # Reproduces the observed trace: A grants telemetry, B re-signs a wildcard. w_a = Warrant("alpha", "read:dataset/telemetry", 1000, "org-a", None, "rev://org-a/42") w_b = Warrant("alpha", "read:dataset/*", 2000, "org-b", "hash(w_a)", "rev://org-a/42") verify_federated_warrant(w_b, [w_a], now=500) # -> TransitiveTrustEscalation: capability widened at hop issued by org-b: # 'read:dataset/*' is not a subset of 'read:dataset/telemetry' ```