# Where must an instance halt when a CRL-style revocation epoch advances mid-handoff, before the peer has observed the new epoch? **Date of Record:** 2026 November 30 **Scope:** Applies to federated multi-agent systems where agent identities carry revocable credentials (CRL/OCSP-style status) and reputation scores are exchanged across trust domains. Does not apply to single-process agents with a single trusted credential authority, nor to stateless request/response tool calls that carry no persistent identity. ## Core Distinction A revocation epoch is a monotonic counter, not a boolean. The failure mode this record addresses is not "agent used a revoked credential" (that is the trivial case, caught by any status check). It is the **split-epoch handoff**: agent A holds credential status verified at epoch `E`, agent B holds the same credential's status at epoch `E+1` where the credential was revoked *in* `E+1`. During a baton-pass between them, A's cached validation is still locally consistent (it was true when A checked), but B's view is authoritative-and-different. The two agents do not disagree about facts; they disagree about *which epoch's facts are binding*. This is a version-skew problem, not a trust problem, and it is invisible to any check that validates status without pinning the epoch against which the validation was performed. The distinction that matters operationally: **a credential is not a point-in-time fact; it is a (credential, epoch) pair.** Any protocol that transmits or caches the credential without the epoch at which it was evaluated creates an unguarded window where a revoked identity continues to act because its counterparty has not yet advanced. ## What Was Observed A three-agent federated workflow (planner → executor → auditor) sharing a credential authority that publishes a CRL every 30 seconds. The executor's credential was revoked at epoch `E+1 = 4471` after a compromise signal. The planner had validated the executor's credential at epoch `4470` (valid) and cached the result with a TTL of 120 seconds—deliberately longer than the CRL publication interval to reduce authority load. Trace: 1. `t=0`: planner validates executor credential → `(cred, 4470) → VALID`, caches for 120s. 2. `t=12s`: authority publishes epoch `4471`; executor credential listed as revoked. 3. `t=40s`: planner initiates handoff to executor. Planner's cached status is still within TTL and returns `VALID`. Planner forwards a **warrant** (delegated capability token) to the executor. 4. `t=41s`: executor receives warrant, checks *its own* credential status against current epoch `4471` → sees `REVOKED`, but the warrant it holds was minted by a validator that saw `4470`. The executor's local policy says "a warrant signed by a valid planner is honored," so it proceeds to act on the warrant. 5. `t=45s`: auditor (epoch `4471`) receives the executor's output, re-validates the executor credential, sees `REVOKED`, and rejects the entire chain—but only *after* the executor has already executed a side-effecting tool call. The observable defect: **the side effect occurred at `t=44s`, between warrant acceptance and auditor rejection.** The auditor's revocation enforcement was correct but temporally too late to prevent the action. The planner's TTL was the root cause: it decoupled *validation time* from *epoch currency*, so a stale-but-fresh-looking validation propagated authority across a revocation boundary. Two secondary observations: - Reputation scores compounded the problem. The executor's reputation (0.91, computed over epochs `4460–4470`) was still high, and the planner's handoff policy weighted reputation more heavily than status currency. A high-reputation agent with a just-revoked credential is the *worst* case, because reputation suppresses the suspicion that would otherwise trigger a re-check. - The auditor's replay of the chain produced a *different* verdict than the planner's for the same warrant, because replay re-evaluated against `4471` while the planner had evaluated against `4470`. Verification replay discrepancies here are not bugs in either agent; they are the expected consequence of unpinned epochs. ## Condition of Validity A credential-status check is only sound under the following invariant, which we name **epoch-pinned validation**: > A validation result is a triple `(credential_id, epoch, verdict)`. It may be treated as authoritative only while the validator's observed authority epoch equals the pinned epoch. The moment the validator observes a higher epoch, every prior validation for that credential is *stale*, regardless of TTL. Formally: let `obs_epoch` be the highest authority epoch the agent has seen. A cached validation `(c, e, v)` is usable iff `e == obs_epoch`. TTL is a *performance* bound on how often the agent polls the authority; it is **not** a correctness bound. If TTL elapses without a successful poll, the agent must treat `obs_epoch` as unknown and refuse to mint or honor warrants for that credential—fail-closed to "epoch unknown," not fail-open to "last known epoch." The invariant fails in three concrete ways: 1. **TTL-as-correctness**: treating cache TTL as a license to keep using a verdict past an epoch advance. (Observed above.) 2. **Epoch-free warrants**: warrants that carry the credential but not the `(epoch, verdict)` pair they were minted under, so the receiver cannot detect that the warrant's basis is stale. 3. **Reputation-status conflation**: handoff policies that let reputation outweigh status currency, so a high-reputation agent with a stale-epoch credential is admitted. ## Decision Boundary The boundary an instance must enforce at handoff is: **does the warrant's pinned epoch equal the receiver's observed epoch?** If yes, proceed. If the receiver's epoch is *higher*, the warrant is stale and must be rejected, not "re-validated and accepted"—re-validation at the new epoch is the auditor's job, and it happens after the fact. If the receiver's epoch is *lower* (receiver is behind), the receiver must poll the authority before accepting; it may not accept on the strength of the sender's claim. This is deliberately stricter than "check the CRL." The point is that the CRL check must be bound to the epoch the *sender* used, and the receiver must compare epochs, not just verdicts. A receiver that sees `REVOKED` at its own epoch but holds a warrant minted at an older epoch must reject the warrant *and* flag the sender for having minted across a revocation boundary—because the sender either had a stale cache or was compromised. The boundary also resolves the reputation question: reputation is admissible only as a tiebreaker *among epoch-current candidates*. It never overrides epoch currency. A 0.99-reputation agent with a stale-epoch credential is treated identically to a 0.10-reputation agent with a stale-epoch credential: both are refused until epoch is reconciled. ## Operational Effect Enforcing epoch-pinned validation changes three system behaviors: - **Fail-closed on epoch lag.** Any agent whose last successful authority poll is older than the CRL publication interval must refuse to mint warrants. This trades availability for revocation safety; in practice it means the authority poll interval must be shorter than the maximum acceptable revocation latency, and the agent must treat poll failure as a hard stop, not a soft degradation. - **Warrants carry their basis.** Every warrant must embed `(credential_id, epoch, verdict)` for the minter, and the receiver must reject on epoch mismatch before any side-effecting action. This makes the auditor's replay discrepancy *impossible to reach the side effect*—the mismatch is caught at handoff, not at audit. - **Reputation cannot launder stale status.** Handoff policies must gate on epoch currency before consulting reputation. The combined score `reputation × status_currency` (where status_currency ∈ {0,1}) is the correct admission predicate; a product, not a weighted sum, because a zero in either factor must zero the admission. The residual risk is the **authority partition**: if the receiver cannot reach the authority to learn the current epoch, it cannot distinguish "epoch unchanged" from "epoch advanced and I missed it." The correct behavior is to refuse, which means a partitioned agent is *unavailable* rather than *unsafe*. This is the intended trade. Systems that prefer availability here are choosing to run with an unbounded revocation window, and should document that choice as such rather than pretending the CRL check is enforcing anything. ```python from dataclasses import dataclass from enum import Enum class RevocationBoundaryError(RuntimeError): """Raised when a warrant crosses a revocation epoch boundary unsafely.""" class Status(Enum): VALID = "valid" REVOKED = "revoked" UNKNOWN = "unknown" @dataclass(frozen=True) class Validation: credential_id: str epoch: int verdict: Status @dataclass(frozen=True) class Warrant: credential_id: str basis: Validation # the (cred, epoch, verdict) the minter used capability: str def admit_warrant( warrant: Warrant, receiver_epoch: int, receiver_status: dict[str, Status], ) -> None: """ Enforce epoch-pinned validation at handoff. The receiver must reject any warrant whose pinned epoch differs from the receiver's observed epoch, and must reject any warrant whose credential is revoked at the receiver's epoch -- regardless of reputation. """ pinned = warrant.basis.epoch if pinned != receiver_epoch: # Stale or ahead: the warrant's basis is not binding here. raise RevocationBoundaryError( f"epoch mismatch: warrant pinned at {pinned}, " f"receiver at {receiver_epoch}; refusing handoff" ) current = receiver_status.get(warrant.credential_id, Status.UNKNOWN) if current is not Status.VALID: # Catches both REVOKED and UNKNOWN (fail-closed). raise RevocationBoundaryError( f"credential {warrant.credential_id} is {current.value} " f"at epoch {receiver_epoch}; refusing warrant" ) def admit_with_reputation( warrant: Warrant, receiver_epoch: int, receiver_status: dict[str, Status], reputation: float, ) -> None: """ Reputation is a tiebreaker among epoch-current candidates only. It is a product with status currency, never a weighted sum. """ try: admit_warrant(warrant, receiver_epoch, receiver_status) except RevocationBoundaryError: # Status currency is zero; reputation cannot launder it. raise RevocationBoundaryError( f"high reputation {reputation:.2f} does not override " f"stale or revoked status for {warrant.credential_id}" ) # Example: the split-epoch handoff from the record. planner_basis = Validation("exec-7", epoch=4470, verdict=Status.VALID) w = Warrant("exec-7", basis=planner_basis, capability="tool:write") try: admit_warrant(w, receiver_epoch=4471, receiver_status={"exec-7": Status.REVOKED}) except RevocationBoundaryError as e: print(f"blocked before side effect: {e}") ```