# What happens when an instance delegates a capability it never held: transitive warrant attenuation failure in cross-org agent federation brokers **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent brokers that issue signed capability warrants (macaroon-style or JWT-with-caveat chains) to peer agents in other trust domains, where the receiving agent may itself re-delegate. Does not apply to single-tenant orchestrators where all agents share one signing root. ## Core Distinction The failure is not "unauthorized access." It is **warrant amplification through replay of a caveat the delegator never satisfied locally**. A broker validates an inbound warrant by checking the signature chain and the caveats attached at each hop, then issues a *narrowed* outbound warrant to a peer. The invariant that brokers assume — and that the protocol does not enforce — is that **the delegator must have actually satisfied every caveat it passes downstream at the moment of delegation**. In a federation, the delegator is a separate org's agent whose local policy engine (PDP) is invisible to the broker. The broker sees a syntactically valid caveat (`org=acme`, `purpose=settlement`, `exp<=5m`) and re-issues it. It cannot see that Acme's PDP resolved `purpose=settlement` to a *deny* two seconds ago because the settlement ledger flipped to read-only. The caveat travels; the denial does not. This is distinct from capability *escalation* (adding scope) and from *confused deputy* (the broker acting on behalf of a caller). Here the scope is correctly narrowed at every hop. The warrant is valid. The failure is that **validity is decoupled from satisfaction**: the chain proves the delegation *happened*, not that the delegation was *permitted at the delegating end*. ## What Was Observed A three-hop federation: `broker-A (acme) → broker-B (globex) → agent-C (initech)`. Acme's agent holds a root warrant `W0` with caveats `[org=acme, purpose=settlement, exp=T+300s]`. Acme's PDP is consulted at *issuance* of `W0` and returns `allow`. At `T+120s`, the settlement ledger enters read-only mode; Acme's PDP would now return `deny` for `purpose=settlement`. But `W0` is already signed and in flight. Globex's broker receives `W0`, validates the signature chain (all good), checks caveats against its *own* policy (Globex allows `purpose=settlement` from Acme), and issues `W1 = W0 + caveat[org=globex, sub=purpose=settlement]` to initech's agent-C. Initech's broker validates `W1`, sees the full chain, and admits agent-C to the settlement endpoint. Agent-C executes a settlement write at `T+180s` — 60 seconds after Acme's PDP would have denied it. The trace shows the write succeeded. The audit log at Acme records `W0 issued, allow, T+0`. The audit log at Globex records `W1 issued, allow, T+120`. The audit log at Initech records `W1 admitted, T+180`. **No log records the denial that Acme's PDP would have produced at T+120.** The three logs are individually consistent and jointly wrong. The non-obvious part: the broker at Globex *did* re-validate. It ran its own PDP, which had no visibility into Acme's ledger state and correctly returned allow. The re-validation is not a no-op; it is a *different question* ("does Globex permit this?") than the one that matters ("does Acme still permit this?"). ## Condition of Validity The invariant brokers rely on — *a delegated warrant is sound iff its caveats are satisfied at the delegating end at delegation time* — holds only under one of: 1. **Synchronous re-attestation.** The delegating broker, at each hop, calls back to the originating PDP with a nonce and receives a fresh `allow`/`deny` *at issuance time*. This converts the warrant from a bearer token into a proof-of-live-authorization. Cost: one round-trip per hop, and the originating PDP becomes a liveness dependency. 2. **Short enough TTL that the window is bounded by measurement error.** If `exp` is shorter than the maximum PDP decision latency plus clock skew, the stale-allow window is smaller than the system's own timing uncertainty. This is the only sound option when callbacks are impossible (offline federation), and it is why `exp<=5m` caveats are common — but 5 minutes is *not* short enough when the underlying resource can flip to read-only in 2 seconds. 3. **Caveat classes that are monotone.** If a caveat's satisfaction can only go from `deny` to `allow` (never the reverse) over the warrant's lifetime, then a stale `allow` is safe. Read-only flips, quota exhaustion, and revocation are all *non-monotone*; they break this. Absent all three, the warrant chain proves delegation *occurred*, not that it was *permitted at each hop at the time of use*. ## Decision Boundary The broker must decide, per caveat class, whether to treat the caveat as **monotone** (safe to propagate without re-attestation) or **non-monotone** (requires synchronous re-attestation or a TTL shorter than the flip latency). The boundary is not "is this caveat security-sensitive" — it is "can this caveat's truth value change from true to false during the warrant's lifetime." Operationally: - `org`, `sub`, `aud` — monotone (identity doesn't flip). Propagate freely. - `exp` — monotone by construction (time only moves forward). Propagate. - `purpose`, `quota`, `mode` (read/write), `revocation-status` — **non-monotone**. Must be re-attested at each hop or TTL-bounded to the flip latency. - A caveat whose class is unknown must be treated as non-monotone. The default must be the expensive path. The broker that treats every caveat as monotone — which is the default in most macaroon and JWT-caveat libraries — is the broker that produces the three-consistent-logs failure above. ## Operational Effect The effect is not a breach in the classic sense; it is a **silent continuity violation in the authorization state machine**. The resource was written after authorization had been withdrawn, and no participant's log shows the withdrawal. Recovery requires reconstructing the flip time from the *resource's* log (the settlement ledger's read-only transition at `T+120s`) and cross-referencing against warrant issuance times — a join across three orgs' logs that no single org can perform. The guardrail is a **caveat-class registry with a monotonicity flag**, enforced at the broker's issuance path: non-monotone caveats trigger a synchronous re-attestation call to the originating PDP (or, if the originating org is unreachable, the warrant is refused rather than propagated). The registry is the artifact that makes the invariant checkable; without it, the broker cannot distinguish a caveat it may replay from one it must re-verify. ```python import time from dataclasses import dataclass, field from typing import Callable class WarrantAttenuationError(RuntimeError): """Raised when a broker attempts to propagate a non-monotone caveat without synchronous re-attestation from the originating PDP.""" pass # Caveat classes whose truth value can flip from allow -> deny during # the warrant's lifetime. These MUST be re-attested at each hop. NON_MONOTONE_CLASSES = frozenset({"purpose", "quota", "mode", "revocation-status"}) @dataclass class Caveat: cls: str # e.g. "org", "purpose", "exp" value: str @dataclass class Warrant: issuer: str caveats: list[Caveat] = field(default_factory=list) issued_at: float = 0.0 expires_at: float = 0.0 def propagate(warrant: Warrant, originating_pdp: Callable[[str, str], bool], now: float | None = None) -> Warrant: """Broker-side propagation of an inbound warrant to a peer org. Enforces the monotonicity invariant: non-monotone caveats are re-attested against the originating PDP at delegation time. """ now = now if now is not None else time.time() if now >= warrant.expires_at: raise WarrantAttenuationError( f"warrant from {warrant.issuer} expired at " f"{warrant.expires_at:.0f}, now {now:.0f}" ) for cav in warrant.caveats: if cav.cls not in NON_MONOTONE_CLASSES: continue # monotone: safe to replay # Non-monotone: must confirm the originating PDP still allows. try: still_allowed = originating_pdp(cav.cls, cav.value) except Exception as exc: # Originating org unreachable -> refuse, do not propagate. raise WarrantAttenuationError( f"cannot re-attest caveat {cav.cls}={cav.value} " f"from {warrant.issuer}: {exc}" ) from exc if not still_allowed: raise WarrantAttenuationError( f"caveat {cav.cls}={cav.value} no longer satisfied at " f"origin {warrant.issuer} (flipped to deny); refusing to " f"propagate stale allow" ) # Re-attested; issue narrowed outbound warrant. out = Warrant( issuer="globex-broker", caveats=list(warrant.caveats) + [Caveat("org", "globex")], issued_at=now, expires_at=min(warrant.expires_at, now + 300.0), ) return out # --- reproduction of the observed failure --- def acme_pdp(cls: str, value: str) -> bool: # Ledger flipped to read-only at T+120; settlement now denied. return False if __name__ == "__main__": w0 = Warrant(issuer="acme-broker", caveats=[Caveat("org", "acme"), Caveat("purpose", "settlement")], issued_at=0.0, expires_at=1_000.0) # At T+180, propagating without re-attestation would succeed (the bug). # With the guardrail, it raises: try: propagate(w0, acme_pdp, now=180.0) except WarrantAttenuationError as e: print(f"BLOCKED: {e}") ```