# Under what conditions must an instance re-prove possession of its delegated warrant mid-handoff, and what breaks when revocation races the transfer **Date of Record:** 2026 November 23 **Scope:** Applies to federated agent meshes where an instance acts under a delegated, cryptographically signed warrant (capability token) and hands off execution state to a peer while a revocation of that warrant is concurrently in flight. Does not apply to single-issuer monoliths with synchronous revocation, nor to stateless request/response tool calls that carry no delegated authority. ## Core Distinction The distinction that matters is between *identity validity at issue time* and *proof-of-possession continuity across a state transfer*. Most meshes verify a warrant once at the ingress edge and then treat the instance as authenticated for the life of the session. That is a session-cookie mental model. A delegated warrant is not a session: it is a bearer capability whose authority can be withdrawn by a third party (the issuer or a revocation authority) at any wall-clock instant, independent of the holder's behavior. The non-obvious failure is not "revoked agent keeps acting"—that is caught by coarse checks. The failure is that a revocation and a handoff can interleave such that the *receiver* of a handoff inherits a warrant that was valid when the sender last checked and revoked by the time the receiver acts, while both agents hold a consistent-looking, signed, unexpired token. The system's continuity invariant—"authority does not silently survive a transfer"—is violated without any single agent behaving incorrectly. ## What Was Observed A three-node mesh: planner `P`, executor `E`, auditor `A`. `P` holds warrant `W` delegated from issuer `I` with scope `write:ledger`, an `exp` of T+300s, and a revocation-check interval of 60s (soft revocation via a signed revocation list, not OCSP-style synchronous). `E` holds a sub-warrant `W'` attenuated from `W` (`write:ledger` minus `write:ledger:audit`), also T+300s. Trace, millisecond resolution: 1. `t=0` — `I` signs a revocation entry `R(W, reason=key_compromise)` and publishes it to the revocation list. Propagation is gossip-based; median convergence 8s, p99 40s. 2. `t=3s` — `P` begins a baton-pass to `E`: it serializes task state, attaches `W` as proof of upstream authority, and signs the handoff envelope with its own key. 3. `t=6s` — `E` receives the envelope, verifies `P`'s signature, verifies `W`'s issuer signature, checks `W.exp` (T+300s, valid), checks its *local* revocation cache last refreshed at `t=-54s` (cache TTL 60s). `W` is not in the cache. `E` accepts the handoff and begins executing under `W'`. 4. `t=9s` — `E`'s revocation cache refreshes and now contains `R(W)`. `E`'s guard checks `W'` against the list. `W'` is not directly listed. The guard does *not* walk the delegation chain to see that `W'`'s parent `W` is revoked. `E` continues. 5. `t=12s` — `E` commits a write to the ledger, authorized under a warrant whose root authority was revoked 12 seconds earlier. Two independent defects compounded: (a) the revocation check at handoff used a stale cache and treated "not yet seen" as "not revoked"; (b) the post-handoff guard checked only the leaf warrant, not the transitive delegation chain. Either defect alone would have bounded the exposure; together they let a revoked authority execute a side effect. The auditor `A`, running an independent replay, flagged the write at `t=41s`—29 seconds after the effect landed. Replay-based detection is post-hoc and cannot prevent the effect, only annotate it. ## Condition of Validity The invariant "authority does not survive revocation across a transfer" holds only under a conjunction that is almost never fully satisfied in gossip meshes: - **Freshness bound at acceptance.** The receiver must accept a warrant only if its revocation view is fresh within a bound `Δ` such that `Δ < (propagation_p99)`. If the cache TTL exceeds propagation p99, there exists a window in which a revoked warrant is indistinguishable from a live one *by construction*. In the trace, TTL 60s > p99 40s, so the window was structural, not accidental. - **Transitive chain validation.** Revocation of a parent must invalidate all descendants. This requires the receiver to hold the full delegation chain and re-check every link against the revocation list, not just the leaf. Attenuation (`W'` ⊂ `W`) does not sever the parent's revocability. - **Proof-of-possession binding at the boundary.** The handoff envelope must bind the *sender's* possession proof (a signature over the envelope with the key named in `W`) to the *receiver's* acceptance, so that a replayed envelope from a revoked sender cannot be accepted by a receiver that never saw the sender live. Without this, a captured envelope is a bearer token for the receiver's trust. - **Monotonic revocation view.** The receiver's revocation view must be monotonic within a session: once it sees `R(W)`, it must never again accept `W` or any descendant, even if a later gossip message is a stale superset that omits `R(W)` (gossip reordering can deliver an older list after a newer one). If any conjunct fails, the system is operating in a *soft-revocation regime* where revocation is advisory and the true bound on exposure is the propagation tail, not the check interval. That is a legitimate design choice only if the side effects are reversible or rate-limited; it is unsound for irreversible writes. ## Decision Boundary The boundary is not "check revocation or don't." It is: **at which point in the handoff must possession be re-proven, and what is the maximum tolerable staleness of the revocation view at that point?** Three regimes, and the rule that selects between them: - **Irreversible side effects (ledger writes, external API mutations, fund transfers):** the receiver must re-prove possession *and* obtain a fresh revocation view (age ≤ `Δ`, with `Δ` strictly less than propagation p99) *inside the same critical section* as the acceptance decision. The handoff must be transactional: either the receiver holds a fresh, chain-validated, possession-bound warrant, or it rejects and the sender retains the baton. No "accept now, verify later." - **Reversible / idempotent effects:** soft revocation with post-hoc replay audit is acceptable, but the auditor's detection latency becomes a hard SLA. If replay detection p99 exceeds the effect's reversal window, the regime silently degrades to irreversible. - **Read-only or advisory effects:** session-style single verification is fine; revocation only needs to bound future reads, which it does at the next cache refresh. The decision boundary is crossed the moment an effect cannot be undone faster than the revocation view can be refreshed and the chain re-validated. Past that line, "valid at issue" is not a defense; only "fresh at acceptance" is. ## Operational Effect The practical consequence is that meshes must treat the handoff envelope as a *authorization checkpoint*, not a data transfer. Concretely: - The receiver's acceptance function must be a single atomic step: verify sender possession signature → fetch revocation view with age bound → walk the full delegation chain against that view → decide. If the view cannot be made fresh within `Δ` (e.g., the revocation authority is unreachable), the correct action is to *block the handoff*, not to proceed on a stale cache. Fail-closed at the boundary, not fail-open on the cache. - The sender must not release the baton until the receiver confirms acceptance under a fresh view; otherwise a revoked sender can hand off and the receiver inherits a corpse of authority. - Auditors must replay with the *revocation view as of the effect time*, not as of audit time, or they will mis-classify a correctly-revoked write as a violation (and vice versa) whenever the view shifted between effect and audit. - The exposure window is `max(0, propagation_p99 − check_interval)`, and it must be surfaced as a first-class metric, not buried in cache TTL config. In the trace, that window was 40s − 60s = 0s by luck of timing but 40s by structure when TTL overshot. The invariant to encode: *a warrant is valid for a receiver only if the receiver's revocation view is fresh within Δ, the full chain validates against that view, and the sender's possession is bound into the acceptance.* Any implementation that checks these at different times, against different views, is running a race that revocation will eventually win. ```python import time from dataclasses import dataclass from typing import Optional class RevocationRaceError(RuntimeError): """Raised when a handoff acceptance would inherit revoked authority.""" pass class StaleRevocationViewError(RevocationRaceError): """Revocation view too old to trust at the acceptance boundary.""" pass class ChainRevokedError(RevocationRaceError): """A parent warrant in the delegation chain is revoked.""" pass @dataclass class Warrant: warrant_id: str parent_id: Optional[str] scope: str expires_at: float holder_key: str @dataclass class RevocationView: revoked_ids: set fetched_at: float def age(self, now: float) -> float: return now - self.fetched_at def accept_handoff( receiver_warrant: Warrant, chain: list, # ordered leaf -> root sender_signature_valid: bool, revocation_view: RevocationView, delta_max: float, # freshness bound, must be < propagation p99 now: Optional[float] = None, ) -> bool: now = time.time() if now is None else now # 1. Proof-of-possession must be bound into acceptance. if not sender_signature_valid: raise RevocationRaceError( f"handoff for {receiver_warrant.warrant_id} lacks valid " f"possession proof from sender key {receiver_warrant.holder_key}" ) # 2. Revocation view must be fresh at the acceptance instant. view_age = revocation_view.age(now) if view_age > delta_max: raise StaleRevocationViewError( f"revocation view age {view_age:.2f}s exceeds delta_max " f"{delta_max:.2f}s; cannot bound exposure window" ) # 3. Full transitive chain must validate against the fresh view. for link in chain: if link.warrant_id in revocation_view.revoked_ids: raise ChainRevokedError( f"warrant {link.warrant_id} in chain for " f"{receiver_warrant.warrant_id} is revoked " f"(revoked at view fetched {revocation_view.fetched_at:.2f})" ) if link.expires_at <= now: raise RevocationRaceError( f"warrant {link.warrant_id} expired at {link.expires_at:.2f}" ) return True if __name__ == "__main__": root = Warrant("W", None, "write:ledger", time.time() + 300, "key:P") leaf = Warrant("W'", "W", "write:ledger:!audit", time.time() + 300, "key:E") view = RevocationView(revoked_ids={"W"}, fetched_at=time.time() - 5) try: accept_handoff( receiver_warrant=leaf, chain=[leaf, root], sender_signature_valid=True, revocation_view=view, delta_max=10.0, ) except ChainRevokedError as e: print(f"handoff rejected: {e}") ```