# Under what conditions must an instance treat a healed partition as an untrusted identity epoch rather than a resumable session **Date of Record:** 2026 November 23 **Scope:** Applies to federated agent deployments where identity/warrant revocation events propagate across agent instances over an eventually-consistent gossip or message bus, and where instances may execute multi-step tool chains across a network partition. Does not apply to single-instance agents with a centrally authoritative token issuer queried synchronously on every call, nor to stateless request/response agents with no cross-partition state. ## Core Distinction The failure this record isolates is the conflation of two distinct recovery operations that share the same trigger (a network partition healing): - **Session resumption** — the instance reconnects to peers and continues the in-flight task using the state it held before the partition. - **Identity epoch advancement** — the instance discards its cached authorization view and re-derives which warrants are still valid, because the partition may have carried revocation events it never received. The non-obvious boundary is this: **a partition heal is not evidence that state is consistent; it is evidence that state *may* have diverged, and the divergence is asymmetric and silent.** The instance that was partitioned *away from* the revocation source cannot distinguish "no revocation occurred" from "revocation occurred and I never heard about it." Both present identically: the cached warrant still validates locally, the peer accepts the connection, and the task resumes. The invariant that must hold is that **no warrant cached across a partition boundary may be used to authorize a side-effecting action after heal until its revocation status has been re-established against a source that was on the authoritative side of the partition.** Resumption of *conversation* is permissible; resumption of *authority* is not. ## What Was Observed A three-instance federation: an orchestrator `O`, a worker `W` holding a delegated warrant `w_1` (delegated from a principal `P` with a 40-minute TTL and an explicit revocation endpoint at `P`), and an auditor `A`. At `t=0`, `P` revokes `w_1` (a compromised tool-credential escalation). The revocation is published to the bus. `O` and `A` receive it within ~200ms. `W` is partitioned from the bus at `t=0` due to a routing-plane flap and does **not** receive it. `W` continues executing a tool chain under `w_1`. At `t=+9min` the partition heals. `W`'s connection to `O` and `A` is restored. Three things happen that individually look correct: 1. `W` re-validates `w_1` locally: signature valid, TTL not expired, no local revocation entry. Passes. 2. `W` sends a resumption frame to `O` carrying `w_1` and a monotonic sequence number. `O` — which *does* have the revocation — does not check the incoming warrant against its revocation set on the resume path, because the resume path was written to trust the pre-partition session identity. 3. `A` receives `W`'s heartbeat and sees a live session; it does not re-audit the warrant because the session predates the partition and audit was scoped to session establishment. Result: `W` executed 14 additional side-effecting tool calls under a revoked warrant, across a 6-minute window, before a periodic (5-minute-cadence) full re-audit by `A` caught the mismatch. The revocation had propagated to every instance that could *receive* it; the failure was that the *heal* path resumed authority instead of re-deriving it. The propagation was not the bug — the resumption semantics were. The trace signature is diagnostic: the revoked warrant validated at the *holder* (`W`) throughout, validated at the *orchestrator* (`O`) on the resume path, and was only caught by an out-of-band periodic auditor. Every local check passed because every local check was answering "is this warrant well-formed and unexpired?" rather than "is this warrant still authoritative given that I was disconnected from the authority?" ## Condition of Validity The resumption-as-authority failure is bounded only under the following conjunction. If any clause fails, the instance must treat the heal as an identity epoch boundary. - **Revocation is monotonic and total-ordered per warrant.** Revocations never un-revoke; a warrant's revocation status is a one-way latch. (If revocation can be reversed, the epoch model needs a version vector, not a latch — out of scope here.) - **The partitioned instance can identify a source that is provably on the authoritative side of the partition.** Typically the principal `P` or a quorum of instances that includes `P`. If the only reachable source after heal is a peer that was *also* partitioned with `W`, that peer's "no revocation" is not evidence. - **The heal event is observable as a discrete transition**, not a gradual latency degradation. If partitions manifest only as rising RTT, the instance cannot know when to invalidate. Deployments that cannot detect heal edges must fall back to short warrant TTLs (sub-audit-cadence) so that the TTL itself bounds the exposure window. - **Side-effecting actions are distinguishable from read-only or idempotent ones at the authorization layer.** The invariant "no side-effecting action under a cross-partition cached warrant" is only enforceable if the action class is known before execution. When these hold, the guardrail is: on heal, mark every cached warrant `stale`, block side-effecting actions, re-query the authoritative source for each, and only then clear `stale`. Conversation/session state may resume immediately; authority may not. ## Decision Boundary The boundary between "resume session" and "advance identity epoch" is crossed at the moment the instance cannot certify, from a source on the authoritative side, that its cached authorization view is current. Operationally: - If the heal is detected **and** an authoritative source is reachable **and** the warrant's revocation status is re-confirmed → resume normally, cached authority is re-blessed. - If the heal is detected **and** no authoritative source is reachable → the instance is in a **degraded-authority** state: it may continue read-only and idempotent work, must block side-effecting work, and must not present its cached warrant as valid to peers (peers must independently re-derive, not trust the holder's assertion). - If the heal is **not** detectable (no discrete edge) → the only safe bound is warrant TTL shorter than the revocation-propagation SLA; the instance must not rely on heal detection at all. The failure mode to guard against is the middle case being silently treated as the first: the instance reconnects, the peer accepts, and "reachable" is mistaken for "authoritative." Reachability of *a* peer is not reachability of *the authority*. This is the exact conflation that let `W` run 14 calls. ## Operational Effect The practical consequences of getting this boundary wrong are asymmetric: the exposure window equals the time between partition heal and the next out-of-band full audit, multiplied by the side-effect rate of the in-flight task. In the observed case that was ~6 minutes and 14 calls. Shortening the audit cadence is a mitigation but not a fix — it trades exposure for audit load and still leaves a window. The fix is structural: **authority must be re-derived on heal, never resumed.** Concretely, three changes bound the failure: 1. Split the resume protocol into a session-resume channel (state, sequence numbers, conversation) and an authority-resume channel (warrant re-derivation against the authoritative source). They must not share a trust decision. 2. Tag every cached warrant with the partition-epoch it was last confirmed in; on epoch advance, all warrants from prior epochs are `stale` until re-confirmed. 3. Make side-effecting tool calls fail-closed on `stale` warrants, with an explicit `RevocationUnconfirmedError` rather than a generic auth failure — so the orchestrator can distinguish "revoked" from "cannot confirm, degraded" and route accordingly (queue, not drop). The invariant to carry forward: **a healed partition is an identity epoch boundary until proven otherwise, and the proof must come from the authoritative side, not from the fact that the connection came back up.** ```python from __future__ import annotations from dataclasses import dataclass, field from enum import Enum from typing import Dict, Optional class RevocationUnconfirmedError(RuntimeError): """Raised when a side-effecting action is attempted under a warrant whose revocation status cannot be confirmed against an authoritative source after a partition heal. Fail-closed: the action must not execute.""" class WarrantState(Enum): CONFIRMED = "confirmed" # revocation status re-derived, current epoch STALE = "stale" # cached across a partition, unconfirmed REVOKED = "revoked" # authoritative source says revoked @dataclass class Warrant: warrant_id: str confirmed_epoch: int state: WarrantState = WarrantState.STALE revoked: bool = False @dataclass class Instance: epoch: int = 0 warrants: Dict[str, Warrant] = field(default_factory=dict) authoritative_reachable: bool = True def on_partition_heal(self) -> None: """Advance identity epoch. All cached warrants become stale; none may authorize side effects until re-confirmed against the authority.""" self.epoch += 1 for w in self.warrants.values(): if w.confirmed_epoch < self.epoch: w.state = WarrantState.STALE def confirm_warrant(self, warrant_id: str, revoked: bool) -> None: w = self.warrants[warrant_id] w.revoked = revoked w.confirmed_epoch = self.epoch w.state = WarrantState.REVOKED if revoked else WarrantState.CONFIRMED def authorize(self, warrant_id: str, side_effecting: bool) -> None: w = self.warrants[warrant_id] if w.state is WarrantState.REVOKED: raise RevocationUnconfirmedError( f"warrant {warrant_id} is revoked; action denied" ) if side_effecting and w.state is WarrantState.STALE: raise RevocationUnconfirmedError( f"warrant {warrant_id} cached across partition (epoch " f"{w.confirmed_epoch} < {self.epoch}); authoritative source " f"reachable={self.authoritative_reachable}. Side-effecting " f"action blocked until revocation status re-confirmed." ) # read-only / idempotent under stale is permitted (degraded-authority) return None def resume_task(inst: Instance, warrant_id: str, side_effecting: bool) -> None: # Partition healed: session may resume, authority may NOT be assumed. inst.on_partition_heal() if inst.authoritative_reachable: # re-derive from the authoritative side before proceeding inst.confirm_warrant(warrant_id, revoked=False) inst.authorize(warrant_id, side_effecting=side_effecting) ```