# Where must an instance halt when a revoked DID crosses a trust-anchor boundary mid-handoff? **Date of Record:** 2026 November 22 **Scope:** Applies to federated multi-agent systems where an agent instance validates a peer's DID-based attestation against a local trust anchor, then performs a stateful handoff (task delegation, baton pass, or capability warrant transfer) whose lifetime exceeds the attestation's revocation-propagation window. Does not apply to single-org deployments with a shared revocation list, nor to stateless one-shot RPC calls where the warrant is consumed within a single validation epoch. ## Core Distinction The failure is not "a revoked agent keeps acting." That is the trivial case, caught by a naive check. The non-obvious boundary is **temporal skew between two independent revocation clocks**: the *issuer's* revocation epoch (when the home org marks the DID revoked and publishes to its revocation registry) and the *verifier's* trust-anchor refresh epoch (when the federated peer pulls and applies that registry). Between those two instants there exists a window during which a handoff is *legal at the moment of validation but illegal at the moment of execution*. The instance validated the attestation as `valid` because its anchor cache had not yet propagated the revocation; the handoff then proceeds, and the downstream agent — which may pull a fresher registry — executes a warrant signed by a DID it now considers revoked. The core distinction is between **point-in-time validation** (the check passed when I looked) and **interval-invariant validation** (the check must still hold for the entire lifetime of the delegated state). Conventional identity systems conflate these because sessions are short. Agent handoffs are not short: a delegated sub-task may hold a capability warrant, a write lock on shared episodic memory, or a baton for minutes to hours. The invariant that must hold is not "peer was valid at T0" but "peer was valid at T0 **and** no revocation was published in `[T0, T0 + handoff_lifetime]` that the verifier has not yet observed." ## What Was Observed A federation of three orgs — Alpha (issuer), Beta (delegating agent), Gamma (executing agent) — with DID-based attestation. Beta holds a trust anchor for Alpha's revocation registry with a poll interval of 300s. Gamma holds a fresher anchor with a 30s poll interval. Trace: 1. `T0` — Beta validates Alpha-issued agent DID `did:alpha:exec-7` against its cached anchor. Anchor is 240s old; `exec-7` not revoked. Validation returns `valid`. Beta delegates a long-running reconciliation task to Gamma, passing a capability warrant signed by `exec-7` and a serialized episodic-memory checkpoint. Expected handoff lifetime: 900s. 2. `T0+40s` — Alpha revokes `did:alpha:exec-7` (compromised key) and publishes to its registry. Alpha's registry is authoritative and immediately consistent. 3. `T0+90s` — Gamma pulls Alpha's registry (30s poll). Gamma now knows `exec-7` is revoked. 4. `T0+120s` — Gamma receives the warrant from Beta. Gamma validates the *warrant signature* — cryptographically intact — but on checking the *signer DID* against its own anchor, finds it revoked. Gamma's guardrail fires and rejects the handoff. 5. Beta never learns of the revocation until `T0+300s`, and by then it has already marked the delegation as `accepted` and released its local lock, believing the baton was passed. The observable pathology: **Beta's state machine and Gamma's state machine disagree about whether the handoff occurred.** Beta believes the baton is in flight (state `delegated`); Gamma believes it rejected the baton (state `rejected`). No agent holds the baton. The reconciliation task is silently orphaned. If Gamma had *not* had a fresh anchor, it would have accepted and executed a warrant from a compromised DID — the worse failure, but the same root cause: the verifier's revocation clock lagged the issuer's. A second observed variant: when the two orgs use *different* revocation mechanisms (Alpha publishes a signed revocation list; Beta relies on short-lived attestations that expire rather than get revoked), the skew is unbounded. Beta's "revocation" is expiry-only, so a compromised-but-unexpired DID remains `valid` at Beta for the full attestation TTL regardless of Alpha's revocation. The anchor boundary and the revocation mechanism are mismatched, and no amount of polling at Beta closes the gap because Beta has no channel to receive the revocation at all. ## Condition of Validity The point-in-time check `validate(attestation, anchor_cache)` is a sound authorization decision **only if** the following holds for the entire interval `[T0, T0 + handoff_lifetime]`: > `revocation_epoch_issuer(peer) ≤ anchor_refresh_epoch_verifier(peer)` is *not* required to be zero, but the verifier must be able to *detect* that a revocation occurred in the interval and *retroactively invalidate* the handoff. Formally, the guardrail is valid only when the verifier's anchor carries a **monotonic revocation epoch** (a version counter or Merkle root over the revocation set), and the handoff carries the epoch observed at validation time. Execution at the downstream agent is permitted only if `handoff.epoch == current_anchor.epoch` at *execution* time, not merely at *validation* time. If the epochs differ, the downstream agent must treat the handoff as *provisionally rejected* and signal the delegator, rather than silently dropping it. This condition **fails** (and the guardrail is unsound) when: - The anchor exposes only a boolean "is revoked" with no epoch, so the verifier cannot distinguish "not revoked" from "revocation not yet propagated." - The handoff does not carry the epoch observed at validation, so the downstream agent cannot detect skew. - The two orgs use incommensurable revocation mechanisms (expiry-only vs. active revocation), making epoch comparison meaningless. - The delegator releases its lock on `accepted` without an acknowledgment that the downstream agent validated at the *same* epoch. ## Decision Boundary The instance must halt and refuse to release the baton when it cannot establish that the downstream agent will validate against an anchor epoch **greater than or equal to** the epoch at which the delegator validated — i.e., when the delegator cannot prove the downstream anchor is at least as fresh as its own. Concretely: - **Proceed** when `downstream.anchor_epoch ≥ delegator.anchor_epoch` AND the handoff carries `delegator.anchor_epoch` for comparison at execution. The downstream agent re-checks the epoch and rejects on mismatch. - **Halt (do not release lock, do not mark delegated)** when the downstream anchor epoch is unknown, older, or fetched over an unauthenticated channel. This is the boundary: *the delegator may not transfer state to a verifier whose revocation view it cannot bound.* - **Halt and escalate** when the revocation mechanisms are incommensurable (expiry-only peer vs. active-revocation issuer). There is no epoch to compare, so the invariant cannot be established; the handoff must route through an out-of-band trust broker that translates mechanisms. The non-obvious part: the halt condition is triggered not by a *failed* validation but by an *unbounded* one. A `valid` result with an unprovable epoch is more dangerous than a `revoked` result, because it looks like success and releases the baton. ## Operational Effect When the guardrail is correctly applied, the failure mode becomes a **visible stall** rather than a **silent orphan**. The delegator holds the lock, marks the handoff `pending_epoch_confirmation`, and retries after pulling a fresher anchor or querying the downstream's epoch directly. The reconciliation task does not proceed on a stale warrant, and it does not vanish — it waits at a known state. When the guardrail is absent, the system exhibits **baton orphaning under revocation skew**: the delegator believes the baton moved, the executor rejected it, and the task is lost with no error surfaced to either party. This is worse than a crash because there is no trace to replay. The only recovery is a periodic reconciliation sweep that cross-checks delegator `delegated` states against executor `rejected` states and re-queues the difference — which is itself a second consensus problem. The architectural invariant required to bound this: **every cross-org handoff must carry the delegator's observed revocation epoch, and the downstream agent must reject on epoch mismatch rather than accept on signature validity alone.** Signature validity proves *who signed*; epoch equality proves *the signer was still trusted at execution time*. The two are independent, and conflating them is the boundary failure. ```python class RevocationEpochSkewError(RuntimeError): """Raised when a cross-org handoff cannot establish that the downstream verifier's revocation epoch is at least as fresh as the delegator's, making point-in-time validation unsound for the handoff lifetime.""" pass class TrustAnchorView: def __init__(self, org_did: str, revocation_epoch: int, mechanism: str): self.org_did = org_did self.revocation_epoch = revocation_epoch # monotonic; -1 if unknown self.mechanism = mechanism # "active_revocation" | "expiry_only" def authorize_handoff( delegator_anchor: TrustAnchorView, downstream_anchor: TrustAnchorView, handoff_lifetime_s: int, max_lifetime_s: int = 3600, ) -> bool: # Incommensurable revocation mechanisms: no epoch comparison is meaningful. if delegator_anchor.mechanism != downstream_anchor.mechanism: raise RevocationEpochSkewError( f"cannot bound revocation skew between {delegator_anchor.org_did}" f"({delegator_anchor.mechanism}) and {downstream_anchor.org_did}" f"({downstream_anchor.mechanism}); route via trust broker" ) # Unknown epoch on either side: 'valid' is unprovable, not confirmed. if delegator_anchor.revocation_epoch < 0 or downstream_anchor.revocation_epoch < 0: raise RevocationEpochSkewError( "revocation epoch unknown on one side; point-in-time validation" " cannot be extended across the handoff interval" ) # Downstream must be at least as fresh as delegator, else a revocation # published between the two epochs could land inside the handoff window. if downstream_anchor.revocation_epoch < delegator_anchor.revocation_epoch: raise RevocationEpochSkewError( f"downstream epoch {downstream_anchor.revocation_epoch} lags" f" delegator epoch {delegator_anchor.revocation_epoch};" f" skew unbounded for {handoff_lifetime_s}s handoff" ) # Handoff lifetime must not exceed the downstream refresh interval's # ability to re-validate; caller supplies this bound. if handoff_lifetime_s > max_lifetime_s: raise RevocationEpochSkewError( f"handoff lifetime {handoff_lifetime_s}s exceeds re-validation bound" f" {max_lifetime_s}s; cannot guarantee epoch equality at execution" ) return True def release_baton( delegator_anchor: TrustAnchorView, downstream_anchor: TrustAnchorView, handoff_lifetime_s: int, ) -> str: # Do NOT release the lock on signature validity alone. authorize_handoff(delegator_anchor, downstream_anchor, handoff_lifetime_s) return "delegated" ```