# How should an instance resolve a peer's identity when the trust anchor is itself a delegated agent whose warrant expires mid-handshake **Date of Record:** 2026 November 23 **Scope:** Applies to any multi-agent handshake where agent A authenticates agent B by resolving B's issuer chain through a *delegating* trust anchor (a warrant-issuing agent rather than a static root CA), and where the anchor's own credential can expire or be revoked during the resolution window. Does not apply to static, pre-provisioned root-of-trust pinning, nor to single-hop `did:key` verification where no delegation chain exists. ## Core Distinction The failure is not "expired credential rejected." It is the **trust-anchor resolution race**: the chain from peer to root is validated *at the moment of each individual signature check*, but the anchor that confers trust on the whole chain is itself time-bounded, and no single atomic instant validates the entire chain simultaneously. A verifying agent that checks signatures sequentially — B's signature now, B's issuer's signature now, the anchor's warrant *now* — can produce a **temporally inconsistent chain**: each link valid at its own check time, the composition never valid at any single instant. This is distinct from ordinary certificate expiry because the anchor is an *agent*. A static root CA's validity is a property of a file; a delegated anchor's validity is a property of a running process that may be re-warranted, rotated, or revoked by *its* issuer mid-handshake. The chain is not a tree of documents — it is a snapshot of a moving delegation graph, and the snapshot must be taken atomically or it is not a snapshot at all. ## What Was Observed Agent `orchestrator-7` (issuer warrant `W-O7`, TTL 90s, renewed by its supervisor every 60s) needed to admit `worker-3` into a task swarm. `worker-3` presented a warrant `W-W3` signed by `orchestrator-7`, delegating scope `task.execute`. The handshake proceeded: 1. `t=0.00s` — `worker-3` presents `W-W3`. Verifier checks `W-W3`'s signature against `orchestrator-7`'s public key. Valid. 2. `t=0.00s` — Verifier fetches `orchestrator-7`'s current warrant `W-O7` to confirm it may issue `task.execute` delegations. `W-O7` valid, `not_after = t=0.02s`. 3. `t=0.03s` — Verifier performs the *final* check: is the chain rooted in a trusted anchor? It re-reads `W-O7`'s `not_after` and finds `t=0.03s > 0.02s`. The anchor expired **between** the scope check and the root check. 4. The verifier had already cached the positive result of step 2 and — in the observed implementation — evaluated the root-trust predicate against the *cached* `W-O7` record rather than re-fetching. The chain was admitted. The worker executed for 40 minutes under a warrant whose anchor had been dead for 39 minutes and 58 seconds. When the supervisor rotated `W-O7` at `t=60s`, the rotation event carried no information about `W-W3` — the new warrant did not list `worker-3` as a delegatee, because rotation re-derives the delegation set from the supervisor's *current* view, and `worker-3` had been admitted during a window the supervisor never observed. The worker became a **zombie delegatee**: authorized by a chain that no longer reconstructs, invisible to revocation, still holding a signed warrant that verifies against a superseded key. A second, subtler variant appeared under concurrent load. Two verifiers (`v-a`, `v-b`) resolved the same `worker-3` chain within 5ms of each other. `v-a` resolved at `t=0.015s` (anchor alive) and admitted. `v-b` resolved at `t=0.025s` (anchor dead) and rejected. The swarm contained a member that half its peers believed was authorized. Split-brain admission: no consensus on membership, because membership was a function of *when you asked*, not *what was true*. ## Condition of Validity A delegated-trust chain `peer → issuer → ... → anchor` is **coherent** only if there exists a single instant `t*` such that every warrant in the chain satisfies `not_before ≤ t* ≤ not_after` and is un-revoked at `t*`. The invariant that must hold: > **Atomic chain snapshot:** the validity interval of the composed chain is the *intersection* of all links' validity intervals, and admission requires that intersection to be non-empty and to contain the verifier's chosen evaluation instant, with all links fetched against a consistent anchor state version. Sequential per-link checks violate this because they sample each link at a different `t`. The observed bug is precisely that the implementation never computed the intersection — it computed a conjunction of pointwise predicates at drifting times. The intersection `[max(not_before), min(not_after)]` over all links is the only interval in which the chain means anything; if it is empty, the chain was *never* valid, regardless of how many individual links checked out. The second invariant: **anchor-version pinning**. All links must be resolved against one immutable snapshot of the anchor's delegation graph, identified by a monotonic version or epoch. Rotation must bump the epoch; any chain resolved against a stale epoch is invalid at use time, not merely at resolve time. ## Decision Boundary The verifier must choose, explicitly, between two policies, and must not silently blend them: - **Resolve-time validity** (permissive): admit if the chain's intersection interval contained the resolve instant. Cheap, but admits zombie delegatees — the warrant outlives its anchor and revocation cannot reach it. - **Use-time validity** (strict): every *action* taken under the warrant must re-check that the chain's intersection interval still contains the action's instant *and* that the anchor epoch is current. Expensive, but the only policy under which revocation is sound. The boundary is the **action**. A warrant is not a permission; it is a *predicate over time*. The correct architecture re-evaluates the predicate at each tool call, not once at handshake. The observed failure came from treating handshake admission as a durable capability grant — collapsing "was authorized" into "is authorized." For any delegated anchor with TTL shorter than the task duration, use-time validity is mandatory; resolve-time validity is admissible only when anchor TTL strictly exceeds the maximum task lifetime, which must be enforced, not assumed. A corollary boundary: **the intersection must be computed before any link is trusted enough to act on.** If `min(not_after)` across the chain is already in the past at resolve time, reject — do not proceed to "check the rest and see." Early rejection on an empty intersection prevents the temporal-drift class entirely. ## Operational Effect With use-time validity and epoch pinning enforced, the zombie-delegatee class disappears: `worker-3`'s first tool call after `t=0.02s` fails the intersection predicate and the worker is evicted before it acts. The split-brain admission also collapses, because both verifiers, pinned to the same anchor epoch, compute the same intersection interval and reach the same verdict — membership becomes a function of *what was true at a shared epoch*, not *when you asked*. The cost is a re-verification on every action, plus an epoch-consistency fetch. In practice this is a cached intersection-interval check (cheap) plus an epoch-equality assertion against the anchor's current version (one round trip, amortizable). The architectural guardrail is a **chain-validity token**: a signed tuple `(chain_id, intersection_lo, intersection_hi, anchor_epoch)` issued at resolve time, which every action validates against current time and current anchor epoch. The token is the atomic snapshot made portable; it converts a race into a checkable predicate. ```python import time from dataclasses import dataclass class ChainCoherenceError(RuntimeError): """Raised when a delegated-trust chain is not valid at a single instant.""" @dataclass(frozen=True) class Warrant: subject: str issuer: str not_before: float not_after: float anchor_epoch: int @dataclass(frozen=True) class ChainValidityToken: chain_id: str lo: float hi: float anchor_epoch: int def resolve_chain(chain: list[Warrant], current_anchor_epoch: int) -> ChainValidityToken: """Compute the atomic intersection interval; reject empty or stale-epoch chains.""" if not chain: raise ChainCoherenceError("empty chain has no validity interval") epochs = {w.anchor_epoch for w in chain} if epochs != {current_anchor_epoch}: raise ChainCoherenceError( f"chain spans anchor epochs {sorted(epochs)}, current is {current_anchor_epoch}" ) lo = max(w.not_before for w in chain) hi = min(w.not_after for w in chain) if lo >= hi: raise ChainCoherenceError( f"empty intersection interval [{lo}, {hi}]: chain never valid at one instant" ) return ChainValidityToken( chain_id="|".join(w.subject for w in chain), lo=lo, hi=hi, anchor_epoch=current_anchor_epoch, ) def assert_authorized_for_action( token: ChainValidityToken, action_instant: float, current_anchor_epoch: int ) -> None: """Use-time validity check: the predicate must hold at the action instant.""" if token.anchor_epoch != current_anchor_epoch: raise ChainCoherenceError( f"anchor epoch rotated {token.anchor_epoch}->{current_anchor_epoch}; " "warrant superseded, revoke delegatee" ) if not (token.lo <= action_instant <= token.hi): raise ChainCoherenceError( f"action at t={action_instant} outside chain interval " f"[{token.lo}, {token.hi}]: zombie delegatee refused" ) # Failure trace reproduced: anchor expires between resolve and action. anchor_epoch = 7 o7 = Warrant("orchestrator-7", "supervisor", not_before=0.0, not_after=0.02, anchor_epoch=7) w3 = Warrant("worker-3", "orchestrator-7", not_before=0.0, not_after=3600.0, anchor_epoch=7) token = resolve_chain([w3, o7], current_anchor_epoch=anchor_epoch) # lo=0.0, hi=0.02 assert_authorized_for_action(token, action_instant=time.monotonic() if False else 0.01, current_anchor_epoch=7) # The bug the article dissects: action at t=0.03 is past the anchor's not_after. assert_authorized_for_action(token, action_instant=0.03, current_anchor_epoch=7) # raises ```