# Where must an instance halt when trust-score decay silently re-admits a peer whose policy warrant was revoked mid-session **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent meshes where peers are discovered via trust-scored gossip and message routing is gated by a per-peer policy warrant negotiated at session establishment. Does not apply to single-org MCP client/server topologies or to stateless request/response gateways with no persistent peer registry. ## Core Distinction The failure is not "a revoked peer keeps sending messages." That case is trivially caught by signature verification against a revocation list. The failure is subtler: **trust score and policy warrant are two independent admission signals with different clocks, and the routing layer only checks one of them per message.** Trust scores are continuous, decaying, and updated by the gossip layer on every heartbeat. Policy warrants are discrete, session-scoped, and revoked by an out-of-band authority (the peer's home org, or a cross-org governance plane) that does not participate in the gossip protocol. A peer `P` federated from org `B` into org `A`'s mesh carries two facts: - `trust(P) ∈ [0,1]`, refreshed every heartbeat, used to decide *whether to route*. - `warrant(P)`, a signed policy document with a `valid_until` and a `revocation_epoch`, used to decide *what P is permitted to ask for*. The invariant that must hold is: **routing eligibility is the conjunction `trust(P) ≥ τ AND warrant(P) valid at message time`.** The boundary failure occurs when the implementation collapses these into a single gate — typically by treating a high, freshly-refreshed trust score as evidence that the warrant is still live, or by caching the warrant's validity decision at session start and never re-deriving it. When org `B` revokes `P`'s warrant mid-session, `A`'s gossip layer keeps `P`'s trust score high (the peer is still responsive, still signing heartbeats, still returning well-formed acks), and the routing layer — reading only the trust gate — keeps delivering `P`'s messages into local tool-calling agents. ## What Was Observed A three-org federation (`A`, `B`, `C`) with a shared trust-scored discovery plane. Peer `P` belongs to `B` and was granted a warrant by `B`'s governance plane scoped to `tool:read:inventory` and `tool:write:ticket`, valid for 24h, `revocation_epoch = 41`. At T+6h, `B`'s security team revoked `P`'s write scope after detecting anomalous tool-call velocity. The revocation was published as `revocation_epoch = 42` to `B`'s governance endpoint and to `A`'s and `C`'s governance caches. `P` itself was not stopped — the agent process remained live, continued heartbeating, and continued emitting `tool:write:ticket` requests. This is deliberate: revocation is a *routing* decision, not a kill signal, because a revoked peer may still be doing legitimate read work while its write scope is being audited. The observed trace on `A`: 1. Heartbeat loop refreshes `trust(P)` from 0.81 → 0.84 (peer is responsive and its acks are timely — the anomaly on `B`'s side is invisible to gossip). 2. `P` sends `tool:write:ticket` with a warrant blob carrying `revocation_epoch = 41` and a valid signature from `B`. 3. `A`'s router checks `trust(P) = 0.84 ≥ τ = 0.70` → pass. 4. `A`'s router checks the warrant: signature valid, `valid_until` in the future → pass. 5. **The router never compares `warrant.revocation_epoch` against the governance cache's current epoch (42).** 6. Message routes to `A`'s ticket-writing agent. The write executes. The revocation was live in `A`'s governance cache for 40 minutes before the first post-revocation write landed. During that window, `P` executed 17 `tool:write:ticket` calls into `A`. `C`, running a router that *did* compare epochs, rejected all 17. The divergence between `A` and `C` on identical inputs is the diagnostic: the failure is not in the revocation propagation, which worked, but in the **router's admission predicate**, which omitted the epoch comparison. The non-obvious part: the trust score *rose* during the incident. `P` was behaving more aggressively, which meant more frequent heartbeats and faster acks, which the gossip layer scored as higher availability. The signal that would have caught the problem (a peer suddenly doing more writes than its baseline) was being consumed by the trust scorer as a *positive* signal. Trust score and policy compliance are anti-correlated in exactly the window where you need them correlated. ## Condition of Validity The conjunction invariant `trust ≥ τ AND warrant valid AND warrant.revocation_epoch == governance.current_epoch` holds only under these conditions: - **The governance cache is authoritative and monotonic.** `current_epoch` must never decrease. If `A`'s cache is populated by multiple governance sources (e.g., `B`'s endpoint and a cross-org plane), a stale source can regress the epoch and re-admit a revoked warrant. The cache must be a max-merge, not a last-write-wins. - **The warrant is bound to the message, not the session.** If the router caches "warrant valid" at session establishment and reuses it, the epoch comparison is skipped for the entire session lifetime. The warrant blob must travel with each message (or be re-fetched and re-validated per message), and the epoch check must run per message. - **Revocation is not confused with de-peerment.** A revoked-warrant peer should still be discoverable and still be able to send *read* traffic if its read scope survives. The router must reject per-scope, not drop the peer. Dropping the peer on any revocation destroys the audit window and causes `A` to lose visibility into `P`'s behavior exactly when it matters. - **Trust decay is not a substitute for warrant expiry.** A warrant that expires at `valid_until` must be rejected even if trust is 1.0. Conversely a high trust score must never be treated as implicit warrant renewal. The two clocks are independent and neither subsumes the other. It does **not** hold when the governance plane is unreachable and the router falls back to "last known epoch." In that case the router must fail closed on any warrant whose epoch is not confirmed current — falling back to a cached-but-unconfirmed epoch re-creates the exact window observed above. ## Decision Boundary The router's admission predicate must be a strict four-clause conjunction, evaluated per message, in this order (order matters for auditability): 1. `trust(P) ≥ τ` — cheap, in-memory, may use a slightly stale score. 2. `warrant.signature` verifies against `B`'s published key — cryptographic, per message. 3. `now < warrant.valid_until` — clock check, per message. 4. `warrant.revocation_epoch == governance.current_epoch(P)` — governance check, per message, **and** `governance.current_epoch` must be confirmed-fresh (within `max_epoch_staleness`, e.g. 60s) or the router fails closed. Clause 4 is the one that was missing. The boundary is sharp: if clause 4 cannot be evaluated because the governance cache is stale beyond `max_epoch_staleness`, the message is rejected with a retryable error, not admitted. The peer's trust score is irrelevant at that point — a 0.99 trust peer with an unconfirmable epoch is treated identically to a 0.10 trust peer. The second boundary is on the *scope* axis. A warrant carries a scope set. The router must intersect the message's requested scope with `warrant.scope` **after** the epoch check, because a revoked-then-reissued warrant may carry a narrowed scope. Re-admitting a peer on epoch match without re-checking scope lets a peer whose write scope was revoked but whose warrant was reissued for read-only still write. ## Operational Effect The cost of the missing clause was 17 unauthorized writes into `A`'s ticket system, each of which had to be reconciled against `B`'s audit log. The reconciliation was possible only because `C`'s router had logged the rejections with full warrant blobs — `A`'s router had logged admissions with no epoch field, so the forensic team had to reconstruct `A`'s governance cache state from `B`'s revocation publish timestamps. The durable fix is not "add the epoch check" — that is the patch. The durable fix is to make the admission predicate a single function with a typed return that names which clause failed, and to make the governance epoch a first-class field on every routing log line. Once `A` logged `admission_warrant_epoch` alongside `trust_score`, the divergence from `C` became visible in dashboards within one heartbeat, and the fail-closed-on-stale-epoch behavior was tuned from `max_epoch_staleness = 300s` down to `60s` because the staleness was the actual attack surface: a 5-minute window where a revoked peer's messages are admitted because the epoch cannot be confirmed. The invariant to carry forward: **trust score answers "is this peer healthy," warrant epoch answers "is this peer still permitted," and a healthy revoked peer is the most dangerous state in the mesh because every liveness signal it emits looks like compliance.** Route on the conjunction, fail closed on unconfirmable epochs, and never let a rising trust score stand in for a governance check. ```python from dataclasses import dataclass from typing import Optional class WarrantAdmissionError(RuntimeError): """Raised when a federated peer's message fails the routing admission predicate.""" @dataclass(frozen=True) class Warrant: peer_id: str scope: frozenset[str] valid_until: float revocation_epoch: int signature_ok: bool @dataclass(frozen=True) class GovernanceCache: current_epoch: int confirmed_at: float # monotonic timestamp of last confirmed refresh def admit_message( peer_id: str, requested_scope: str, trust_score: float, warrant: Warrant, governance: Optional[GovernanceCache], now: float, trust_threshold: float = 0.70, max_epoch_staleness: float = 60.0, ) -> bool: # Clause 1: trust gate. Cheap, may be slightly stale. if trust_score < trust_threshold: raise WarrantAdmissionError( f"peer {peer_id} trust {trust_score:.2f} below threshold {trust_threshold}" ) # Clause 2: warrant signature must verify for this message. if not warrant.signature_ok: raise WarrantAdmissionError(f"peer {peer_id} warrant signature invalid") # Clause 3: warrant must not be expired. if now >= warrant.valid_until: raise WarrantAdmissionError( f"peer {peer_id} warrant expired at {warrant.valid_until}" ) # Clause 4: governance epoch must be confirmed-fresh and must match. # Fail closed if we cannot confirm the current epoch. if governance is None: raise WarrantAdmissionError( f"peer {peer_id}: governance cache unavailable, failing closed" ) if (now - governance.confirmed_at) > max_epoch_staleness: raise WarrantAdmissionError( f"peer {peer_id}: governance epoch stale " f"({now - governance.confirmed_at:.1f}s > {max_epoch_staleness}s), failing closed" ) if warrant.revocation_epoch != governance.current_epoch: raise WarrantAdmissionError( f"peer {peer_id}: warrant epoch {warrant.revocation_epoch} " f"!= governance epoch {governance.current_epoch}" ) # Scope intersection runs AFTER epoch check, because a reissued warrant # may carry a narrowed scope. if requested_scope not in warrant.scope: raise WarrantAdmissionError( f"peer {peer_id}: scope {requested_scope!r} not in warrant scope {sorted(warrant.scope)}" ) return True ```