# How should an instance reconcile delegated capability revocation across a federated agent handshake when the revoking authority is itself mid-checkpoint **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organization agent federation where a delegating agent (org A) issues a scoped capability warrant to a delegate agent (org B) via an MCP/A2A-style handshake, and revocation of that warrant must propagate while the delegator is checkpointing or restarting. Does not cover single-org RBAC, static API keys, or revocation of transport-layer TLS identities. ## Core Distinction The failure is not "revocation message lost in transit." It is a **temporal split between the authority's durable state and its advertised state during a checkpoint**. A delegating agent that is mid-checkpoint has two competing truths: the last committed snapshot (which still lists the delegate's warrant as valid) and the in-flight revocation intent (which has not yet been durably written). A federated delegate that re-validates against the authority's *snapshot-backed* state during this window receives a **stale-valid** answer — a signed "still authorized" response derived from pre-revocation state — and proceeds to execute. The delegate is not lying and the authority is not down; the authority is simply answering from a consistent-but-obsolete epoch. This is distinct from a plain timeout (no answer) or a hard error (explicit denial). The dangerous case is a **successful, cryptographically valid, wrong-epoch affirmative**. ## What Was Observed A three-org federation: orchestrator `A` (issuer), worker `B` (delegate), auditor `C` (independent verifier). `A` issued warrant `W` to `B` with `epoch=41`, `expires=+900s`, `scope=tool:write_db`. At T+300s an operator triggered revocation of `W` on `A`. Simultaneously `A`'s state store entered a checkpoint: it had flushed a WAL segment but had not yet advanced the `committed_epoch` pointer. The revocation intent sat in the uncommitted tail. `B`, per its handshake contract, re-validated `W` every 60s by calling `A`'s `verify_warrant` endpoint. During the checkpoint window (≈4.2s, longer under load) `A` served verification from the last durable snapshot at `epoch=41`. `B` received `{valid: true, epoch: 41, sig: }`. The signature verified. `B` executed three `write_db` calls. `C`, the auditor, replayed the same verification two seconds later — after `A`'s checkpoint completed and `committed_epoch` advanced to `42` with the revocation applied. `C` got `{valid: false, epoch: 42}`. The audit trail now contains `B`'s three writes stamped `valid@41` and `C`'s replay stamped `invalid@42` for the same warrant. Neither is corrupt. The federation has **divergent verification verdicts across a monotonic epoch boundary**, and the replay discrepancy is permanent. The non-obvious part: `B` behaved correctly against the contract it was given. The contract permitted "verify against authority's current committed state," and during checkpoint the current committed state *was* epoch 41. The invariant that was missing is not "check revocation" — `B` did check — but **"a verification answer must carry the epoch it was computed against, and a delegate must refuse to act on an answer whose epoch is not provably ≥ the epoch at which its last action was authorized."** Without epoch monotonicity enforcement at the delegate, every checkpoint is a revocation-bypass window. ## Condition of Validity The stale-valid window exists if and only if all three hold: 1. **The authority serves verification from committed state while revocation is pending in uncommitted state.** If the authority instead blocks verification until the WAL is committed (read-your-writes for revocation), the window collapses to zero but at the cost of verification latency spikes during checkpoint — which is itself an availability failure mode for the delegate. 2. **The delegate treats a `valid:true` as authorization to act without binding the answer to an epoch floor.** If the delegate records `last_authorized_epoch` and rejects any answer with `epoch < last_authorized_epoch`, replay against an older snapshot is refused. 3. **The warrant's signature covers scope and expiry but not the epoch of the verification answer.** If the authority signs `(warrant_id, epoch, verdict)`, the delegate can detect that it is being served a pre-revocation epoch rather than a fresh one. Break any one and the window closes. The invariant to enforce: **verification answers are epoch-stamped and signed; delegates maintain a monotonic epoch floor per warrant; a verdict below the floor is treated as a revocation signal, not a validity signal.** ## Decision Boundary The delegate faces a binary at each re-validation: - **Act** if `verdict.valid == true` **and** `verdict.epoch >= floor[warrant_id]`. - **Halt and escalate** if `verdict.valid == true` **but** `verdict.epoch < floor[warrant_id]` — this is the stale-valid signature and must be treated as denial, because the only way to receive a lower epoch than you last acted on is that the authority rolled back or served an older snapshot, and in either case the safe reading is "revocation may be in flight." - **Halt** if `verdict.valid == false` regardless of epoch. The subtle boundary: a delegate that has never acted has `floor = -∞` and will accept the first valid answer at any epoch. That is correct — there is no prior action to protect. The floor only binds after the first authorized action. This means a delegate that *starts* during a checkpoint window can still receive stale-valid and act once before the floor is set. The mitigation is to set the floor from the handshake's initial `issued_epoch`, not from the first verification answer, so the floor is established before any action. ## Operational Effect Without epoch monotonicity: every checkpoint on the issuer is a revocation-bypass window of duration equal to checkpoint flush time, multiplied by the number of delegates re-validating during it. Under load, checkpoint windows stretch, and a busy federation can have dozens of delegates acting on stale-valid verdicts in the same window. The audit trail becomes permanently non-reconcilable: auditor replays at post-checkpoint epochs will contradict delegate actions at pre-checkpoint epochs, and no amount of log correlation resolves which was "right" because both were right against their respective epochs. With the invariant: the delegate's epoch floor converts a stale-valid answer into a halt. The delegate stops, escalates to its own operator, and the escalation carries the epoch mismatch as evidence. The issuer's checkpoint no longer produces silent authorization; it produces a bounded, observable halt on each affected delegate. The cost is availability — delegates pause during issuer checkpoints — which is the correct trade: a pause is recoverable, a stale-authorized write is not. The auditor's role becomes decisive: it must replay with the *same epoch floor semantics* as the delegate, and flag any delegate action whose recorded `authorized_epoch` is below the auditor's observed `committed_epoch` at action time. This makes the replay discrepancy a first-class detection signal rather than an unresolvable artifact. ```python class StaleEpochAuthorizationError(RuntimeError): """Raised when a verification verdict is valid but computed against an epoch older than the delegate's monotonic floor for that warrant.""" pass class FederatedDelegate: def __init__(self, warrant_id: str, issued_epoch: int): self.warrant_id = warrant_id # Floor is set from the handshake's issued epoch, NOT the first verdict, # so a delegate that starts mid-checkpoint cannot act on stale-valid. self.epoch_floor = issued_epoch def authorize_action(self, verdict: dict) -> None: # verdict: {"valid": bool, "epoch": int, "sig_ok": bool} if not verdict.get("sig_ok"): raise StaleEpochAuthorizationError( f"warrant {self.warrant_id}: unverifiable signature, refusing" ) epoch = verdict["epoch"] if not verdict["valid"]: raise StaleEpochAuthorizationError( f"warrant {self.warrant_id}: explicit denial at epoch {epoch}" ) if epoch < self.epoch_floor: # valid:true but older epoch -> revocation likely in flight behind # a checkpoint. Treat as denial, do NOT advance floor. raise StaleEpochAuthorizationError( f"warrant {self.warrant_id}: stale-valid verdict at epoch {epoch} " f"below floor {self.epoch_floor}; possible revocation behind checkpoint" ) # Safe to act; advance the floor monotonically. self.epoch_floor = epoch def handle_revalidation(delegate: FederatedDelegate, verdict: dict) -> str: try: delegate.authorize_action(verdict) return "acted" except StaleEpochAuthorizationError as e: # Halt and escalate; carry the epoch mismatch as evidence. return f"halted_and_escalated: {e}" ```