# What happens when an instance accepts a peer's signed manifest but misses the revocation epoch that invalidated its signing key mid-handoff **Date of Record:** 2026 November 30 **Scope:** Applies to federated multi-agent systems where an agent's authority to act is established by a signed manifest (key + capability grants + epoch), and where that authority can be revoked out-of-band. Does not apply to single-org deployments with a shared trust root, or to systems where manifests are re-verified against a live authority on every tool call. ## Core Distinction There are two different questions a receiving agent must answer about a peer, and they are not the same question: 1. **Is this manifest's signature valid?** (cryptographic integrity — cheap, local, stateless) 2. **Is the signing key still authorized at the current revocation epoch?** (authorization liveness — expensive, requires a fresh view of a distributed revocation state) Almost every federation implementation fuses these into one check at handoff time and then caches the result. The failure mode is not a broken signature. It is a *valid* signature from a key that was revoked between the epoch the receiver last synced and the moment the peer presented the manifest. The signature verifies perfectly. The authority behind it is already dead. The receiver cannot tell the difference from the bytes in front of it, because revocation is not a property of the manifest — it is a property of the *time and revocation-view* at which the manifest is evaluated. The invariant that gets violated: **a manifest's authority is only as fresh as the receiver's revocation epoch, and that epoch must be at least as new as the manifest's issuance time.** If `receiver.revocation_epoch < manifest.issued_at`, the receiver is evaluating a present-tense claim against a past-tense world. ## What Was Observed A cross-org handoff between Agent A (org `alpha`) and Agent B (org `beta`). A holds a manifest signed by key `K_A`, granting `tool:payments.initiate` and `tool:ledger.read`, issued at `T0`. B maintains a revocation list (CRL-style, epoch-stamped) federated from alpha's revocation authority, refreshed on a 300s poll. Sequence: - `T0` — alpha issues manifest to A, signed by `K_A`. B's last revocation sync is at `T0 - 40s`, epoch `E_n`. - `T0 + 120s` — alpha's security team revokes `K_A` (key compromise). Revocation authority publishes epoch `E_{n+1}` at `T0 + 125s`. - `T0 + 180s` — A initiates a handoff to B, presenting its still-cryptographically-valid manifest. B verifies the signature against alpha's published public key for `K_A`, checks capability grants, and admits the handoff. B's revocation view is still `E_n` (next poll at `T0 + 260s`). B has no way to know `K_A` is revoked. - `T0 + 200s` — A (or whoever holds the compromised key) executes `payments.initiate` under B's admitted session, laundering the action through B's trust boundary. B's audit log records "manifest valid, signed by alpha `K_A`, admitted." The log is truthful and useless. The tell in the logs was not an error. It was a timestamp skew: `manifest.issued_at = T0`, `receiver.revocation_epoch_timestamp = T0 - 40s`, and the admitted action at `T0 + 200s`. The receiver admitted a manifest whose issuance predated its revocation view by 40 seconds and whose *use* postdated a revocation it would not learn about for another 60 seconds. The window is exactly `poll_interval + propagation_delay`, and it is fully exploitable by anyone holding a key that was valid at the last sync. A second, subtler observation: B *did* re-validate the manifest on each tool call within the session — signature only. Re-validating a signature against a stale revocation view is worse than not re-validating, because it produces a stream of "valid" audit entries that harden the false belief that the session is authorized. ## Condition of Validity The guardrail only holds under a specific condition, and it must be stated as a hard precondition, not a hope: > A receiver may admit a peer manifest only if `receiver.revocation_epoch_timestamp >= manifest.issued_at` **and** the receiver can bound the maximum staleness of its revocation view below the manifest's remaining validity window. Concretely, three things must be true or the admission is unsound: - **Epoch monotonicity and comparability.** Revocation epochs must be totally ordered and timestamped by the issuing authority, not by the receiver. Receiver-local clocks are untrustworthy across orgs; the comparison must use authority-signed epoch timestamps. - **Staleness bound < validity window.** If the revocation poll interval is 300s but the manifest is valid for 600s, there is a 300s window where a revoked key is admitted. The poll interval must be strictly less than the manifest's validity window minus the maximum propagation delay, or the manifest validity must be shortened to fit the poll interval. One of the two numbers must yield. - **Fail-closed on epoch regression.** If a sync returns an epoch *older* than the current one (replay, partition, a malicious mirror), the receiver must reject the sync and refuse admissions until it re-establishes a monotonic view — not silently accept the older epoch because the signature on it is valid. The condition fails silently in every deployment where these are left as "shoulds." The exploit does not require breaking crypto; it requires only that the attacker act inside `poll_interval + propagation_delay` after revocation. ## Decision Boundary The boundary is between **optimistic admission with post-hoc revocation** and **pessimistic admission gated on epoch freshness**. They are not interchangeable; they have different failure economics: - **Optimistic (admit on valid signature, revoke reactively):** correct only when the blast radius of an admitted-but-revoked action is bounded and reversible, and when `poll_interval + propagation_delay` is smaller than the time it takes the revoked principal to do damage. For `payments.initiate`, that bound does not exist. For `ledger.read` on a read-only replica, it might. - **Pessimistic (admit only if `revocation_epoch_timestamp >= manifest.issued_at` and staleness is bounded):** correct for any action with irreversible external effect, at the cost of admission latency and a hard dependency on revocation-authority availability. If the authority is unreachable, the receiver must fail closed — which means a partition of the revocation authority becomes a partition of the federation. That is the price, and it must be paid deliberately, not discovered during an incident. The decision rule: **classify each capability by irreversibility.** Irreversible capabilities (`payments.initiate`, `data.delete`, `key.rotate`, anything that emits an external side effect) require pessimistic admission with a bounded, signed, monotonic epoch. Reversible or read-only capabilities may use optimistic admission with a documented staleness window. Do not apply one policy to the whole manifest; the manifest carries a capability set, and the policy must be per-capability. There is a third boundary that is easy to miss: **the epoch must be checked at admission, and the admission must carry the epoch it was checked against into the session record.** A session admitted under epoch `E_n` does not become authorized under `E_{n+1}` by the passage of time. When the receiver later syncs to `E_{n+1}` and sees that a key used by an open session was revoked, it must terminate that session — not merely refuse new admissions. Revocation propagation that only gates new handoffs and leaves open sessions running is revocation in name only. ## Operational Effect The operational effect of getting this wrong is a **trust-laundering channel**: a compromised key in org alpha executes irreversible actions under org beta's audit identity, and beta's logs record a clean, valid, signed admission. The forensic reconstruction is possible only if the receiver logged `(manifest.issued_at, revocation_epoch_timestamp, epoch_source, session_id)` at admission — which most implementations do not, because they log "signature valid" and move on. The operational effect of getting it right is a hard coupling: **federation availability is bounded by revocation-authority availability for irreversible capabilities.** This must be an explicit SLO, not an emergent property. If alpha's revocation authority is down, beta cannot admit alpha's irreversible manifests, and that is correct behavior — but it must be designed for, with a documented degraded mode (e.g., admit only reversible capabilities, queue irreversible ones, alert), not discovered when the authority has a bad day and the federation quietly falls back to optimistic admission "to keep things running." The invariant to encode, and to test with a fault-injection harness that simulates a revocation published between two poll cycles: > No session may execute an irreversible capability unless the session record carries a revocation epoch whose authority-signed timestamp is `>=` the manifest's `issued_at`, and the receiver's staleness bound for that epoch is strictly less than the manifest's remaining validity. Open sessions must be re-evaluated and terminated on every epoch advance. ```python from dataclasses import dataclass from typing import Optional class RevocationEpochStale(RuntimeError): """Raised when a manifest would be admitted against a revocation view older than its issuance.""" pass class IrreversibleCapabilityUnderStaleEpoch(RuntimeError): """Raised when a session attempts an irreversible action under an epoch that has since advanced.""" pass @dataclass(frozen=True) class Manifest: peer_org: str signing_key_id: str issued_at: int # authority-signed timestamp valid_until: int capabilities: frozenset[str] @dataclass(frozen=True) class RevocationView: epoch: int epoch_timestamp: int # authority-signed timestamp of this epoch revoked_keys: frozenset[str] max_staleness: int # seconds; poll_interval + propagation_delay bound IRREVERSIBLE = frozenset({"payments.initiate", "data.delete", "key.rotate"}) def admit_manifest(manifest: Manifest, view: RevocationView, now: int) -> None: # Guard 1: epoch must be at least as new as the manifest's issuance. if view.epoch_timestamp < manifest.issued_at: raise RevocationEpochStale( f"revocation epoch {view.epoch} (t={view.epoch_timestamp}) predates " f"manifest issued_at={manifest.issued_at} for org {manifest.peer_org}" ) # Guard 2: staleness bound must fit inside remaining validity for irreversible caps. if manifest.capabilities & IRREVERSIBLE: remaining = manifest.valid_until - now if view.max_staleness >= remaining: raise RevocationEpochStale( f"staleness bound {view.max_staleness}s not strictly below remaining " f"validity {remaining}s for irreversible capabilities" ) # Guard 3: key must not be revoked in this view. if manifest.signing_key_id in view.revoked_keys: raise RevocationEpochStale( f"signing key {manifest.signing_key_id} revoked at epoch {view.epoch}" ) def execute_capability( capability: str, session_epoch: int, current_view: RevocationView, session_key_id: str, ) -> None: if capability in IRREVERSIBLE and current_view.epoch > session_epoch: if session_key_id in current_view.revoked_keys: raise IrreversibleCapabilityUnderStaleEpoch( f"session admitted at epoch {session_epoch} attempts {capability} under " f"epoch {current_view.epoch}; key {session_key_id} revoked — terminate session" ) ```