# In what scenarios must an instance halt rather than re-attest when its AAIF warrant is revoked mid-handoff **Date of Record:** 2026 November 26 **Scope:** Applies to autonomous agent instances operating under an Agent Attestation and Identity Framework (AAIF) warrant that is revoked or rotated while the instance is mid-handoff to a peer agent. Does not apply to cold-start attestation, to planned rotation during idle periods, or to revocation of a peer's warrant (handled by the receiving side's admission gate). ## Core Distinction The critical distinction is between *identity continuity* and *warrant continuity*. An AAIF warrant binds a cryptographic identity (the instance's long-lived key) to a set of authorized capabilities with an expiry and a revocation epoch. When a warrant is revoked, the identity is not destroyed—the key pair still exists and can sign a fresh attestation. Most agent frameworks conflate the two, treating revocation as a signal to "re-attest and continue." That conflation is the failure. A revoked warrant means the *authorizing principal withdrew the grant*, not that the credential expired. Rotation is a benign, scheduled replacement of an equivalent grant; revocation is a withdrawal of trust that may be triggered precisely because the instance's behavior is suspect. An instance that silently re-attests after revocation converts an authorization withdrawal into a self-issued continuation, and any downstream peer that accepts the new warrant has been laundered into trusting an instance the principal explicitly distrusted. The invariant that must hold: **a warrant revocation observed mid-handoff invalidates any in-flight handoff state that was signed under the revoked warrant, and the instance must not present a new warrant to the same peer within the same handoff transaction.** Rotation is resumable; revocation is terminal for the transaction. ## What Was Observed An instance `A` held warrant `W1` with capability `transfer:ledger` and was mid-way through a two-phase handoff to peer `B`. Phase one (offer) had completed: `A` signed a handoff envelope `E` containing its warrant reference `W1.id`, a capability claim, and a nonce. `B` had verified `W1` against the AAIF revocation service, found it valid, and replied with an accept token. Phase two (commit) had not yet fired. Between the accept and the commit, the principal rotated `W1` to `W2` **and** issued a revocation for `W1`—not a benign rotation, but a compromise-driven revocation because `A`'s host had been flagged. The revocation propagated to `B`'s verifier cache with a TTL of 30 seconds. `A`'s own AAIF client polled its warrant status, saw `W1` revoked, and—because the framework's default handler was `on_warrant_invalid: re_attest`—fetched `W2`, re-signed a *new* envelope `E'`, and fired the commit to `B`. `B`'s admission gate checked `E'` against `W2`. `W2` was valid and unrevoked. `B` accepted. The handoff committed. The ledger mutation authorized under `W1`'s now-revoked grant was executed under `W2`, which had been minted *after* the compromise flag. The principal's revocation was defeated not by a forgery but by a legitimate credential refresh performed at the wrong moment. The trace is the tell: the revocation epoch of `W1` was `t=0`, the re-attestation to `W2` was `t=+8s`, and the commit landed at `t=+9s`. The peer's revocation cache had not yet seen `W1`'s revocation at the time it validated `E'`, because `E'` referenced `W2`, which carried no revocation. The revocation of `W1` was invisible to the check that mattered. ## Condition of Validity The re-attest-and-continue behavior is only valid when the warrant transition is a **rotation with continuity**: the new warrant `W2` must be issued by the same principal, cover a superset of `W1`'s capabilities, and carry a `predecessor` field naming `W1.id` with no revocation record between them. Under those conditions, `E'` is a legitimate continuation and `B` may accept it—but `B` must still bind the acceptance to `W1`'s nonce so the transaction is not replayable. The behavior is invalid—and the instance must halt—when any of the following hold: 1. `W1` has an active revocation record (not merely an expiry). 2. The new warrant's `issued_at` is later than `W1`'s `revoked_at` (the credential was minted after the withdrawal). 3. The new warrant's principal differs from `W1`'s principal (re-parenting). 4. The peer `B` has already accepted `E` under `W1` and the commit would mutate state authorized solely by the revoked grant. Condition 2 is the non-obvious one. A rotation performed *after* a revocation is indistinguishable, at the credential layer, from a fresh grant—but it is exactly the laundering vector. The instance must treat "revoked, then re-issued" as a halt, because the re-issuance happened in the shadow of the withdrawal. ## Decision Boundary The boundary is drawn at the commit gate, not at the offer gate. An instance may complete phase one (offer) under a warrant that is later revoked, because no state has changed. It may **not** fire phase two (commit) under any warrant other than the one the peer accepted in phase one, unless the peer re-validates the full transition chain including the predecessor link and the revocation gap. Operationally: on observing `W1` revoked mid-handoff, the instance transitions to `HALTED_PENDING_PRINCIPAL`, emits a `handoff_aborted` event to `B` carrying `W1.id` and the revocation epoch, and does **not** present `W2` to `B` within that transaction. A new transaction may be opened later, after the principal explicitly re-authorizes, and it must carry a fresh nonce. The peer, on receiving `handoff_aborted`, must invalidate its accept token for `E` and refuse any commit referencing `E`'s nonce. The guardrail is a monotonic transaction epoch: every handoff envelope carries the warrant epoch it was signed under, and the commit gate rejects any envelope whose epoch is greater than the accepted offer's epoch. That single comparison blocks the re-attest laundering path regardless of how fast the revocation cache propagates. ## Operational Effect Without the halt, revocation is advisory: a compromised instance can outrun the revocation cache by re-attesting faster than peers poll. The window is bounded only by the re-attestation latency (seconds) versus the peer's cache TTL (tens of seconds), and the attacker controls the former. With the halt and the epoch guard, the window collapses to zero for the affected transaction—the commit gate rejects the epoch bump unconditionally—and the principal retains a hard kill switch over in-flight state mutations. The cost is real: legitimate rotations that land mid-handoff will abort the transaction and force a re-open. That is the correct trade. A rotation that races a revocation is, by construction, indistinguishable from a compromise response, and the safe default is to abort and let the principal re-authorize explicitly rather than guess. ```python class WarrantRevokedMidHandoff(RuntimeError): """Raised when a warrant is revoked while a handoff transaction is in flight and the instance attempts to continue under a re-attested warrant.""" pass REVOCATION_GRACE = 0 # no grace: revocation is terminal for the transaction def commit_handoff(offer: dict, new_warrant: dict, revocation_record: dict | None) -> dict: """ offer: the envelope accepted by the peer in phase one, carrying {'warrant_id', 'warrant_epoch', 'nonce', 'principal_id'} new_warrant: the warrant the instance intends to commit under, carrying {'id', 'epoch', 'issued_at', 'principal_id', 'predecessor'} revocation_record: {'warrant_id', 'revoked_at'} or None """ if revocation_record and revocation_record["warrant_id"] == offer["warrant_id"]: # The offer's warrant was revoked. Any re-attestation is a laundering # attempt unless the principal explicitly re-opened the transaction. if new_warrant["id"] != offer["warrant_id"]: raise WarrantRevokedMidHandoff( f"warrant {offer['warrant_id']} revoked at " f"{revocation_record['revoked_at']}; refusing to commit under " f"re-attested warrant {new_warrant['id']} in the same transaction" ) # Same warrant, but revoked: halt regardless. raise WarrantRevokedMidHandoff( f"warrant {offer['warrant_id']} revoked; in-flight handoff aborted" ) # Epoch monotonicity guard: the commit must not bump the warrant epoch # relative to the accepted offer, even for a legitimate rotation. if new_warrant["epoch"] > offer["warrant_epoch"]: raise WarrantRevokedMidHandoff( f"epoch bump {offer['warrant_epoch']} -> {new_warrant['epoch']} " f"rejected: commit must bind to the offer's warrant epoch" ) if new_warrant.get("predecessor") != offer["warrant_id"] and \ new_warrant["id"] != offer["warrant_id"]: raise WarrantRevokedMidHandoff( "new warrant does not name the offer's warrant as predecessor; " "possible re-parenting" ) return {"committed": True, "nonce": offer["nonce"], "warrant": new_warrant["id"]} ```