# Which invariants prevent capability attenuation from outliving identity revocation across federated trust domains **Date of Record:** 2026 November 21 **Scope:** Applies to federated agent systems where an orchestrator in trust domain A issues attenuated capability warrants to sub-agents operating under trust domain B, and where revocation events in A must propagate before B-side warrants expire. Does not cover single-domain revocation, symmetric-key session teardown, or human-credential OAuth flows. ## Core Distinction The failure mode here is not "revocation is slow." It is that **attenuation is monotonic and revocation is not**, and the two operations cross a trust-domain boundary in opposite directions. When domain A attenuates a capability, it *delegates downward* — a parent warrant W0 yields child W1 with a strict subset of scopes, a shorter TTL, and a `parent_id` pointer. This is a well-understood monotone lattice: every child is provably weaker than its parent, and a verifier in B can check the whole chain cryptographically without contacting A. Revocation breaks that property. A revocation of W0 must invalidate W1, W2, ... Wn — every descendant, in every domain that ever received a warrant derived from W0. But B-side verifiers were *designed* to be offline-checkable: they validate the chain locally and never call back to A. That design decision, which is correct for latency and partition tolerance, is exactly what makes revocation a **distributed negative fact** that no local verifier can observe. The invariant that must hold is not "revocation is fast" but "no descendant warrant is honored after its ancestor's revocation epoch." Those are different claims, and only the second is enforceable. ## What Was Observed A three-tier federation: orchestrator O in domain A, planner P in domain B, executor E in domain C. O holds root warrant `W0` scoped to `tool:fs.read, tool:http.get, budget:5000` with TTL 3600s. At t=0 O attenuates to P: `W1 = {tool:http.get, budget:2000}`, TTL 1800s, `parent=W0`. At t=120 P attenuates to E: `W2 = {tool:http.get, budget:800}`, TTL 600s, `parent=W1`. At t=300 a prompt-injection in E's tool output causes E to attempt `tool:fs.write`. E's local verifier correctly rejects it — `fs.write` is not in W2. Good. But at t=310 the operator in A detects the injection vector and revokes `W0`. The revocation record is written to A's revocation registry and broadcast over the A→B gossip channel. B receives it at t=340 and marks `W1` revoked. **C never receives it.** C's verifier has no channel to A or B; it validates W2 against the embedded chain `W2 → W1 → W0` and the root public key, both of which are still cryptographically valid. W2's budget is not exhausted. E continues issuing `http.get` calls until t=720, when W2's own TTL expires — 410 seconds of post-revocation execution. The naive reading is "add a revocation channel to C." That fails the second time: C is a third-party tool sandbox with no persistent connection, and the whole point of offline verification was to tolerate C's intermittent connectivity. The observable invariant violation is narrower and more useful: **E executed 47 tool calls under a warrant whose ancestor had a revocation epoch 410s in the past, and every one of those calls passed local verification.** The verifier was not buggy. It was checking the wrong predicate. ## Condition of Validity Offline chain verification is sound *only* if the verifier can bound the age of the revocation knowledge it is implicitly relying on. Concretely: a B- or C-side verifier that does not consult a revocation oracle may honor a warrant chain only if it can prove `now - last_known_revocation_sync < ε`, where `ε` is the maximum staleness the issuing domain is willing to tolerate. This is a **freshness precondition on a negative fact**, and it must be carried in the warrant itself, not assumed. The mechanism that makes this enforceable is a **revocation epoch counter** embedded in every warrant and a **signed freshness token** the verifier must present. O maintains a monotone `epoch` per root identity. Each attenuation stamps the child with `revocation_epoch_at_issue`. Verifiers in B and C are required to hold a freshness token from A — a signed assertion `(root_id, epoch, valid_until)` — and to reject any warrant whose `revocation_epoch_at_issue < current_known_epoch`. When A revokes W0, it bumps `epoch`. B's next token refresh carries the new epoch; C, on its next token presentation, is forced to either refresh (learning the bump) or fail closed. The invariant, stated precisely: **for every honored warrant w with ancestor root r, the verifier's most recent freshness token for r must have `epoch ≥ w.revocation_epoch_at_issue` and `valid_until ≥ now`.** Without the epoch comparison, a revoked ancestor is invisible. Without `valid_until`, a stale token lets a partitioned verifier honor revoked warrants indefinitely. Both conjuncts are required; either alone is insufficient. ## Decision Boundary The boundary is the choice between **fail-open on partition** and **fail-closed on staleness**, and it must be made per-scope, not globally. A verifier that cannot refresh its freshness token within `valid_until` has two options: continue honoring warrants (fail-open) or refuse all warrants until refresh succeeds (fail-closed). Neither is universally correct. The rule that holds: **fail-closed for any scope that can mutate external state or spend budget; fail-open only for idempotent, reversible reads.** `http.get` against an internal read-only endpoint may fail-open for a bounded grace window. `fs.write`, `http.post`, `payment.charge`, and any budget-consuming call must fail-closed the instant the freshness token expires. This is not a performance tuning knob — it is the difference between "revocation propagates eventually" and "revocation propagates before damage." A second boundary: **attenuation must not be permitted to extend TTL beyond the parent's remaining freshness horizon.** A common bug is issuing W2 with TTL 600s at t=120 when W1's freshness token expires at t=400. W2 then outlives the verifier's ability to check W1's revocation state. The constraint is `child.ttl ≤ parent.remaining_freshness`, enforced at issue time. Violating it silently converts every child into a potential post-revocation orphan. ## Operational Effect With the epoch+freshness invariant enforced, the t=310 revocation of W0 produces: A bumps epoch at t=310; B's token refresh at t=340 carries `epoch=2`; C's next warrant presentation at t=345 fails the epoch check (`W2.revocation_epoch_at_issue=1 < 2`) and E is halted at t=345 — a 35-second window instead of 410. The window is bounded by B's token refresh interval, which is now an explicit, auditable SLA rather than an emergent property of gossip timing. The cost is that C must maintain a token-refresh loop and fail closed on expiry, which means C's availability is now coupled to A's token endpoint. That coupling is the price of the invariant and must be stated in the federation agreement, not discovered during an incident. Systems that refuse the coupling are choosing fail-open and must document the resulting revocation lag as a known exposure — the invariant does not prevent that choice, it only makes the choice visible. ## Operational Effect (verification harness) The following asserts the invariant at warrant-acceptance time and raises on violation. It is the check that must run in every B- and C-side verifier before any tool dispatch. ```python import time from dataclasses import dataclass class RevocationInvariantError(RuntimeError): """Raised when a warrant would be honored past its ancestor's revocation epoch.""" @dataclass(frozen=True) class Warrant: warrant_id: str root_id: str parent_id: str | None scopes: frozenset[str] revocation_epoch_at_issue: int issued_at: float ttl: float @dataclass(frozen=True) class FreshnessToken: root_id: str epoch: int valid_until: float signature: bytes # verified elsewhere; assumed valid on entry MUTATING_SCOPES = frozenset({"tool:fs.write", "tool:http.post", "payment.charge"}) def check_warrant_admissible( warrant: Warrant, token: FreshnessToken, now: float | None = None, ) -> None: now = time.time() if now is None else now if token.root_id != warrant.root_id: raise RevocationInvariantError( f"freshness token root {token.root_id!r} does not match warrant root " f"{warrant.root_id!r}; cannot bound revocation staleness" ) # Invariant conjunct 1: verifier's known epoch must be >= the epoch at issue. # If the issuer has revoked since, token.epoch has advanced past the warrant's # stamp and the warrant is a post-revocation orphan. if token.epoch < warrant.revocation_epoch_at_issue: raise RevocationInvariantError( f"warrant {warrant.warrant_id} issued at epoch " f"{warrant.revocation_epoch_at_issue} but verifier holds stale epoch " f"{token.epoch}; ancestor may be revoked" ) # Invariant conjunct 2: freshness token must still be within its validity # window. Expired token => we cannot assert anything about revocation state. if token.valid_until < now: # Fail-closed for mutating scopes; fail-open permitted only for reads. if warrant.scopes & MUTATING_SCOPES: raise RevocationInvariantError( f"freshness token for root {warrant.root_id} expired at " f"{token.valid_until} (now={now}); warrant {warrant.warrant_id} " f"carries mutating scopes {sorted(warrant.scopes & MUTATING_SCOPES)} " f"and must fail closed" ) # Read-only scope: bounded grace permitted, but never past warrant TTL. if now > warrant.issued_at + warrant.ttl: raise RevocationInvariantError( f"warrant {warrant.warrant_id} past its own TTL during grace window" ) # Invariant conjunct 3: warrant must not outlive the parent's freshness horizon. if now > warrant.issued_at + warrant.ttl: raise RevocationInvariantError( f"warrant {warrant.warrant_id} expired at " f"{warrant.issued_at + warrant.ttl} (now={now})" ) # Invariant conjunct 4: child TTL must not exceed the freshness horizon it # was issued against. This is checked at issue time; re-checked here because # a token refresh may have shortened the effective horizon. remaining = token.valid_until - now if warrant.issued_at + warrant.ttl > token.valid_until and remaining < 0: raise RevocationInvariantError( f"warrant {warrant.warrant_id} horizon exceeds freshness token; " f"post-revocation orphan window is unbounded" ) ```