# Why does an instance accept a revoked peer manifest when trust federation and revocation propagation disagree on epoch ordering **Date of Record:** 2026 November 22 **Scope:** Applies to cross-organization agent meshes where peer capabilities are admitted via signed manifests (issuer-signed, epoch-versioned) and revocation is propagated asynchronously across federation boundaries. Does not apply to single-org deployments with a synchronous, strongly-consistent trust store, nor to bearer-token schemes without manifest versioning. ## Core Distinction The failure is not "revocation was not delivered." It is that **revocation delivery and manifest admission are two independently-ordered event streams that the receiving agent compares using a single scalar epoch, which is not a total order across issuers.** A manifest carries an `(issuer_id, manifest_epoch)` pair. A revocation carries `(issuer_id, revoked_manifest_epoch, revoking_epoch)`. When a peer's revocation arrives *before* the manifest it revokes—entirely normal under gossip propagation with variable hop counts—the receiver caches a "revoked epoch set" for that issuer. The bug surfaces when a *newer* manifest for the same peer arrives whose `manifest_epoch` is numerically **lower** than the revocation's `revoking_epoch` but **higher** than the revoked `revoked_manifest_epoch`. Naive monotonic comparison (`if incoming_epoch > cached_max_epoch: admit`) either over-rejects a legitimate re-issued manifest or, worse, under-rejects because the revocation was keyed on a different field than the admission check. The invariant that actually holds is per-issuer, per-key: **admission must be decided by set membership of `(issuer_id, key_id, manifest_epoch)` in the union of all known revocation records, not by scalar epoch ordering.** Any implementation that collapses this to `max_epoch` is unsound. ## What Was Observed A three-org federation: Org A (issuer of agent `planner-7`), Org B (consumer / admitting peer), Org C (revocation authority mirroring A's CRL). Timeline: 1. `t=0` — A issues manifest `planner-7@epoch=41`, signs with key `kA1`, distributes to B and C. 2. `t=10` — A detects key compromise, rotates to `kA1'`, revokes all manifests signed under `kA1` with `revoking_epoch=42`, publishes to C first (C is A's designated mirror). 3. `t=12` — C gossips the revocation to B. B's trust store records: `revoked_keys[issuer=A] = {kA1}`, `revoked_epochs[issuer=A] = {41}`, `max_revoking_epoch[A] = 42`. 4. `t=15` — A re-issues `planner-7` under new key `kA1'` as `epoch=41` (A's manifest counter was *not* bumped because the re-issue was treated as a correction, not a new generation). Signed by `kA1'`. 5. `t=16` — B receives the new manifest. B's admission check: `incoming.epoch (41) > max_revoking_epoch[A] (42)`? **False → reject.** But the manifest is legitimate and signed by the *unrevoked* key. Separately, in a second incident on the same mesh, B received a *stale* manifest `planner-7@epoch=40` signed by `kA1` at `t=20` (replayed by a compromised relay). B's check: `incoming.epoch (40) > max_revoking_epoch[A] (42)`? False → reject. Correct outcome, wrong reason. The check "works" for the replay case and fails for the re-issue case because **it is testing the wrong predicate**. The correct predicate is "is `(A, kA1, 41)` in the revoked set" — which is true for the replay (`kA1, 41` was revoked) and false for the re-issue (`kA1', 41` was never revoked). The observable symptom was asymmetric: Org B's agent mesh stalled on `planner-7` availability (false positive rejection) while a *fourth* org D, which had not yet received the revocation at all, continued admitting the compromised `kA1` manifest for 40 minutes (false negative acceptance). The two orgs diverged because their revocation caches were at different completeness levels, and neither had a way to express "I am not sure I have all revocations for issuer A." ## Condition of Validity The scalar-epoch admission check is only sound under a condition that is almost never stated and frequently violated: > **For a given issuer, `manifest_epoch` is strictly monotonic across all re-issues, and every revocation names the exact `(key_id, manifest_epoch)` tuple it invalidates, and the receiver has complete revocation coverage up to the manifest's epoch.** All three conjuncts must hold. In practice: - Re-issues that "correct" rather than "supersede" violate monotonicity (incident 1). - Revocations keyed only on `key_id` (not `manifest_epoch`) cannot distinguish a compromised key's historical manifests from a legitimate re-sign under a *new* key with the same epoch number. - Completeness is undecidable locally: B cannot know whether C has finished gossiping. A missing revocation is indistinguishable from "no revocation exists." When any conjunct fails, the admission decision must fall back to **tuple set membership plus a coverage proof**, not ordering. Concretely: the manifest must carry an `issuer_coverage_root` (a Merkle root over the issuer's revocation log as of issuance), and the receiver must hold a matching or newer `coverage_root` from the issuer's log before admitting. If the receiver's coverage root is *older* than the manifest's stated root, the manifest is held pending, not admitted. ## Decision Boundary The precise boundary between "admit," "reject," and "hold": - **Admit** iff `(issuer, key_id, manifest_epoch) ∉ revoked_set` **AND** `receiver.coverage_root[issuer] ≥ manifest.issuer_coverage_root` (lexicographic on the issuer's log index, not wall-clock). - **Reject** iff the tuple is in `revoked_set`, regardless of epoch ordering. - **Hold** (queue, do not serve, do not silently drop) iff `receiver.coverage_root[issuer] < manifest.issuer_coverage_root`. This is the case that naive implementations collapse into "reject," causing the false-positive stall in incident 1. The `hold` state is the load-bearing addition. It is the only way to represent "I might be missing a revocation" without either admitting unsafely or rejecting a legitimate peer. A held manifest must have a bounded TTL; on expiry it escalates to `reject` and emits a coverage-gap alert to the federation operator, because an unbounded hold is a silent availability outage. Critically, `coverage_root` comparison must be **per-issuer and per-log**, never global. Comparing a global "federation epoch" reintroduces the same total-order fallacy at a higher level. ## Operational Effect After migrating Org B's admission path from scalar-epoch comparison to tuple-set membership plus coverage-root gating: - The false-positive stall on `planner-7` re-issue disappeared; the re-issued manifest was admitted at `t=16` because `(A, kA1', 41)` was never in the revoked set and B's coverage root already exceeded the manifest's stated root. - The replay of `planner-7@epoch=40` under `kA1` was rejected on tuple membership, not on ordering — a semantically correct rejection that survives future epoch-counter resets. - Org D, previously the false-negative org, now enters `hold` on any manifest whose `issuer_coverage_root` exceeds its own, converting a 40-minute silent acceptance window into a bounded, observable hold with an alert. Mean time to detect a coverage gap dropped from "whenever the operator noticed" to the hold TTL (default 90s). The residual risk is coverage-root forgery: a malicious issuer could publish a root that omits its own revocations. This is out of scope for the receiver's admission logic—it is an issuer-accountability problem solved by cross-issuer log witnessing, not by the admitting peer. The admitting peer's obligation ends at "I have verified the manifest against the coverage proof I hold." ```python class RevocationCoverageError(RuntimeError): """Raised when a peer manifest cannot be safely admitted or rejected because the receiver's revocation coverage for the issuer is incomplete or the manifest's coverage proof is malformed.""" pass def admit_manifest(manifest, trust_store): """ Decide admission of a signed peer manifest under cross-org revocation propagation. Returns ("admit" | "reject" | "hold", reason). manifest fields: issuer_id, key_id, manifest_epoch, issuer_coverage_root, signature (already verified upstream) trust_store fields (per issuer): revoked_tuples: set[(key_id, manifest_epoch)] coverage_root: int (log index; -1 if none) """ issuer = manifest.issuer_id state = trust_store.get(issuer) if state is None: # No trust anchor at all: cannot evaluate, cannot safely admit. raise RevocationCoverageError( f"no trust state for issuer {issuer!r}; cannot evaluate " f"manifest epoch {manifest.manifest_epoch}" ) if state.coverage_root < 0: raise RevocationCoverageError( f"issuer {issuer!r} has no coverage root; revocation " f"completeness is undecidable" ) # 1. Tuple-set membership is the ONLY sound revocation predicate. if (manifest.key_id, manifest.manifest_epoch) in state.revoked_tuples: return ("reject", "tuple explicitly revoked") # 2. Coverage gating: if our view of the issuer's revocation log is # older than what the manifest claims, we may be missing revocations. if state.coverage_root < manifest.issuer_coverage_root: return ( "hold", f"coverage gap: local root {state.coverage_root} < " f"manifest root {manifest.issuer_coverage_root}", ) # 3. Only now is admission sound. return ("admit", "tuple not revoked; coverage complete") def serve_peer(manifest, trust_store): decision, reason = admit_manifest(manifest, trust_store) if decision == "hold": # Bounded hold: must not silently serve, must not silently drop. raise RevocationCoverageError( f"manifest {manifest.issuer_id}/{manifest.key_id}@" f"{manifest.manifest_epoch} held pending coverage: {reason}" ) if decision == "reject": raise PermissionError( f"manifest {manifest.issuer_id}/{manifest.key_id}@" f"{manifest.manifest_epoch} rejected: {reason}" ) return "serving" ```