# Where must an instance halt when a revocation warrant arrives mid-handoff across a federated trust boundary **Date of Record:** 2026 November 27 **Scope:** Applies to autonomous agents that accept signed capability warrants from a foreign trust domain (A2A/MCP handoff, cross-org delegation) and that may receive a revocation event while a delegated task is in flight. Does not apply to single-domain deployments where the issuer and verifier share one revocation authority, nor to purely stateless one-shot inference calls with no delegated capability. ## Core Distinction The failure is not "revocation is slow." It is a **temporal split between the moment a capability is exercised and the moment its revocation is observable**. In a single trust domain, revocation is a monotonic state transition on a resource the verifier can read authoritatively (a CRL, a token introspection endpoint, a local epoch counter). Across a federated boundary, the verifier holds a *cached, signed assertion* of validity — a warrant with an expiry — and the issuer's revocation is a *separate, asynchronously propagated fact* that the verifier cannot see until some push/pull event lands. Between the issuer flipping the bit and the verifier observing it, the warrant is simultaneously "revoked at origin" and "valid at verifier." The instance is not malfunctioning; it is operating on a locally consistent but globally stale view. The boundary question is therefore not *whether* to honor revocation but *where in the execution loop the instance must stop advancing* once a revocation is observed, and what it must do with in-flight state that was produced under the now-revoked authority. The non-obvious part: revocation does not invalidate *past* actions, only the *authority to take future ones*. An agent that treats revocation as "abort and discard everything" loses durable work that was legitimately authorized at execution time; an agent that treats it as "finish the current step, then stop" can leak one more privileged tool call past the revocation horizon. The correct invariant is narrower than either: **no new capability-bearing side effect may be initiated after the revocation is observed, but state already committed under valid authority must be checkpointed with its authority provenance preserved, not rolled back.** ## What Was Observed A two-domain setup: Org A (issuer) delegates a `write_reports` capability to an agent instance running in Org B (verifier) via a signed warrant with a 30-minute expiry and a `revocation_endpoint` field. The B-side agent runs a plan loop: `retrieve → summarize → write_report → notify`. The warrant is cached at B with a 5-minute refresh TTL. Org A revokes the warrant at T+12:00 because the human delegator's role changed. Trace: 1. **T+12:00** — A flips revocation. A's introspection endpoint now returns `revoked` for the warrant ID. No push notification is sent (A only supports pull). 2. **T+12:00–T+14:59** — B's agent continues. Its cached warrant still validates locally (signature good, expiry T+30:00 > now). It executes `write_report` at T+13:40. This side effect is *unauthorized at origin* but *authorized at verifier*. Neither party is lying; the views simply diverged. 3. **T+15:00** — B's refresh fires, pulls introspection, sees `revoked`. The agent's revocation handler runs. 4. **The bug** — the handler was written as "on revocation, abort the plan." It raised inside the `write_report` step's post-commit hook, *after* the report was durably written but *before* the `notify` step. The plan state was marked `failed`. The written report was neither rolled back (it had already committed to the downstream store) nor annotated with the fact that its authority was revoked-at-origin. Downstream consumers read an orphaned artifact whose authorization provenance is now false but undiscoverable. 5. **T+16:10** — a retry supervisor, seeing `failed`, re-ran the plan from the last checkpoint — which predated the revocation — and produced a *second* report under the same revoked warrant, because the checkpoint's warrant snapshot was still the pre-revocation cached copy. Error compounded: two unauthorized artifacts, one of them generated *after* revocation was observed. The compounding at step 5 is the load-bearing observation. Revocation was observed, handled, and then *undone by the resume path* because the checkpoint did not carry the revocation epoch, only the warrant bytes. Resume rehydrated stale authority. ## Condition of Validity The guardrail holds only under a specific set of conditions, and it is worth stating them because most of the failure modes are violations of one of them: - **Revocation is monotonic and origin-authoritative.** The issuer's revocation decision is final and never un-revokes. If a domain permits re-issuance of the *same* warrant ID after revocation, the verifier's epoch comparison is meaningless and the whole scheme collapses into TOCTOU. - **The verifier records an observation epoch, not just a validity boolean.** The instance must persist *when* it last confirmed the warrant against origin (`last_checked`, plus the origin's revocation list version/epoch if offered). A boolean "valid" is insufficient because it cannot be compared against a checkpoint's epoch at resume time. - **Checkpoints bind to the authority epoch under which their contents were produced.** Any durable state written under a warrant must carry `(warrant_id, epoch_at_write)`. On resume, if `current_epoch > epoch_at_write` and the warrant is revoked, the checkpoint is *not resumable* — it is quarantined for reconciliation, not replayed. - **Capability-bearing side effects are idempotent-keyed by `(warrant_id, step_id, epoch)`.** This is what prevents the double-write at step 5: the second attempt under a stale epoch collides with the first's key and is rejected rather than duplicated. - **The instance distinguishes "revoked" from "unverifiable."** A failed introspection call (network partition, origin 5xx) is *not* revocation and must not be treated as one, but it also must not silently extend authority. The correct behavior is fail-closed on *new* capability-bearing steps while allowing read-only/diagnostic steps to proceed, with the unverifiable state surfaced. ## Decision Boundary The precise line the instance must draw, stated as a rule an agent can execute: > Once a revocation for warrant W is observed at epoch E, the instance may not *initiate* any new step whose effect requires W's capability. Steps already in flight may complete their current atomic commit (because aborting mid-commit is worse than one bounded overrun), but the resulting state must be checkpointed with `authority_epoch = E` and flagged `produced_under_revoked_authority = true`. No checkpoint with `authority_epoch < E` may be resumed. Resume of any checkpoint requires re-validating W against origin *at resume time*, not against the snapshot embedded in the checkpoint. Two subtleties that define the boundary's edges: - **"In flight" is bounded by one atomic commit, not one plan step.** If a step is itself a multi-call sequence (e.g., `write_report` = open + write + close across three tool calls), the instance must check revocation *between* tool calls, not only between plan steps. The overrun budget is one commit, not one step. - **Reads are not capability-bearing in the revocation sense.** A revoked `write_reports` warrant does not forbid the agent from *reading* its own prior reports to build a reconciliation record. Conflating read and write under a single "abort everything" handler is what produced the orphaned artifact with no provenance. The boundary is therefore *directional and prospective*: revocation gates the future, annotates the past, and never silently deletes either. ## Operational Effect When this invariant is enforced, the observable behavior changes in three concrete ways: 1. **Revocation latency becomes bounded and auditable rather than undefined.** The worst-case unauthorized window is `refresh_TTL + one atomic commit`, and both terms are configuration, not luck. The instance can report its own exposure: "last verified at T, TTL 5m, so any revocation between T and now is unobserved; maximum overrun one commit." 2. **Resume becomes safe against stale authority.** Because checkpoints carry the epoch and resume re-validates against origin, the step-5 double-write cannot occur — the stale checkpoint fails the epoch check and is quarantined. This is the single highest-value effect: it converts an *error-compounding* resume into a *fail-closed* resume. 3. **Orphaned artifacts become reconcilable.** Artifacts written under revoked authority are marked, not deleted. A downstream reconciliation job can find every `produced_under_revoked_authority` artifact and decide (per policy) to retract, re-authorize, or retain. The alternative — silent deletion or silent retention — loses the information needed to make that call. The cost is that revocation handling is no longer a one-line `raise` in a post-commit hook; it is a state-machine transition that touches the checkpoint schema, the resume path, and the side-effect keying. That cost is the price of not having a resume path that resurrects dead authority. ```python from __future__ import annotations from dataclasses import dataclass, field from enum import Enum from typing import Optional class RevocationPropagationError(RuntimeError): """Raised when an instance attempts to advance or resume under authority that has been revoked at origin but not yet reconciled at the verifier.""" class WarrantState(Enum): VALID = "valid" REVOKED = "revoked" UNVERIFIABLE = "unverifiable" # origin unreachable; NOT the same as revoked @dataclass(frozen=True) class WarrantView: warrant_id: str state: WarrantState observed_epoch: int # origin revocation-list version at last check last_checked_at: float @dataclass class Checkpoint: warrant_id: str step_id: str authority_epoch: int # epoch under which contents were produced produced_under_revoked_authority: bool = False payload: dict = field(default_factory=dict) def may_initiate_step(view: WarrantView, step_requires_capability: bool) -> bool: """Prospective gate: revocation forbids NEW capability-bearing steps.""" if not step_requires_capability: return True if view.state is WarrantState.REVOKED: return False if view.state is WarrantState.UNVERIFIABLE: # Fail-closed on new privileged work, but do not claim revocation. return False return True def resume_checkpoint(cp: Checkpoint, view: WarrantView) -> Checkpoint: """Resume must re-validate against origin epoch, not the checkpoint snapshot.""" if cp.warrant_id != view.warrant_id: raise RevocationPropagationError( f"checkpoint warrant {cp.warrant_id!r} != view warrant {view.warrant_id!r}" ) if view.state is WarrantState.REVOKED: if cp.authority_epoch < view.observed_epoch: # Stale authority: quarantine, do not replay. Prevents step-5 double-write. raise RevocationPropagationError( f"refusing to resume checkpoint {cp.step_id!r}: produced at epoch " f"{cp.authority_epoch} but warrant revoked at epoch {view.observed_epoch}" ) cp.produced_under_revoked_authority = True return cp if view.state is WarrantState.UNVERIFIABLE: raise RevocationPropagationError( f"cannot resume {cp.step_id!r}: warrant unverifiable, refusing to extend authority" ) return cp def commit_side_effect( cp: Checkpoint, view: WarrantView, committed_keys: set[tuple[str, str, int]], ) -> tuple[str, str, int]: """Idempotency key binds (warrant, step, epoch) so a stale-epoch retry collides.""" key = (cp.warrant_id, cp.step_id, cp.authority_epoch) if key in committed_keys: raise RevocationPropagationError( f"duplicate side effect for {key}: stale-epoch replay rejected" ) if view.state is WarrantState.REVOKED and cp.authority_epoch < view.observed_epoch: raise RevocationPropagationError( f"side effect for {cp.step_id!r} would commit under revoked authority" ) committed_keys.add(key) return key ```