# Where must an instance halt when a revoked peer's trust score outlives its credential in a cross-org A2A mesh? **Date of Record:** 2026 November 24 **Scope:** Applies to A2A meshes where agents from multiple organizations (orgs) compute peer trust scores from observed task outcomes and where revocation is propagated as a signed CRL-like list rather than a synchronous global transaction. Does not apply to single-org deployments with a shared authoritative identity store, nor to meshes that enforce synchronous revocation barriers on every RPC. ## Core Distinction There are two distinct clocks in a federated mesh: the **identity clock** (when a credential is revoked at the issuing org) and the **trust clock** (when each observing peer's local trust aggregate reflects that revocation). The identity clock is monotonic and authoritative; the trust clock is per-peer, lagging, and derived from *past* task outcomes. The failure mode is not "revocation is slow." It is that a revoked agent's *historical trust score remains numerically valid* on peers that have not yet processed the revocation, and that score continues to authorize work — including work that the revoked agent performs on behalf of its org using a *different, still-valid* credential. Trust scoring and revocation are computed from disjoint evidence sets, so a high historical score silently overrides a low-latency revocation signal. The boundary condition is: **an instance must halt when its own trust aggregate for a peer is derived from evidence that pre-dates a revocation event it has already received for that peer's org lineage but not for that specific peer identity.** ## What Was Observed Consider a three-org mesh: A (auditor/coordinator), B (worker pool), C (worker pool). Agents publish signed task outcomes to a gossip layer; each peer maintains a Beta-distributed trust posterior per peer `p`, `T_p = Beta(α_p, β_p)`, updated as `α += success`, `β += failure`, with a decay half-life of 72h. Trust is consumed by a routing predicate: `route(task, p) iff E[T_p] > 0.72 AND credential_valid(p)`. Agent `b7` in org B is compromised. Org B's identity service revokes `b7`'s signing key at T0 and broadcasts a signed revocation record `R(b7, key_id, T0)` over the gossip mesh. The record reaches A at T0+40ms and C at T0+310ms. Meanwhile: 1. `b7` had accumulated `E[T_b7] = 0.91` over 1,400 prior tasks. That posterior is *not* invalidated by `R(b7)` — the revocation record carries no trust impact, only a key-validity flag. 2. Org B's ops team, unaware of the compromise window, re-issues `b7`'s workload under a *new* key `b7'` at T0+5s, still labeled as the same logical agent identity `agent://B/b7`. The new key is valid. The trust posterior `T_b7` is keyed on the *logical agent id*, not the key, so `E[T_b7] = 0.91` carries over to `b7'`. 3. A's routing predicate evaluates `credential_valid(b7')` → true (new key, not on CRL) and `E[T_b7] = 0.91` → true. A routes a high-value task to `b7'` at T0+6s. 4. The compromised host, now holding `b7'`, exfiltrates the task payload. The revocation of `b7` was *correct and timely*; the failure is that trust and identity are joined on a key the attacker controls the re-issuance of. The trace shows the invariant violation precisely: A received `R(b7)` at T0+40ms and *did* mark `b7`'s old key invalid. But A's trust table has no row for `b7'`; the routing predicate falls back to the logical-id posterior, which is untouched by revocation. The attacker's leverage is the *gap between logical-agent identity and key identity* in the trust key space. A second, subtler trace: C never received `R(b7)` before T0+310ms. At T0+120ms, C routed a task to `b7` (old key) because `credential_valid` was still true on C and `E[T_b7] = 0.91`. C's CRL check is correct given its information; the failure is that C's trust score, computed from pre-T0 successes, *amplified* the impact of the revocation lag by making the stale window high-yield for the attacker. ## Condition of Validity The routing predicate `E[T_p] > τ AND credential_valid(p)` is sound **only if** the trust posterior `T_p` is keyed on the same identity object as `credential_valid`. In a federated mesh this holds only when: - `T_p` is keyed on `(org_id, logical_agent_id, key_id)` and the routing predicate requires *all three* to match a live credential, **and** - revocation records carry a `lineage` field (the logical agent id) such that receiving `R(b7)` invalidates *all* trust posteriors whose `logical_agent_id == b7` until a re-attestation event re-establishes trust from a quorum of independent observers, **and** - the re-attestation is Byzantine-resistant: a single org (even org B itself) cannot unilaterally restore `E[T_b7]` above τ; restoration requires `⌈(n+f+1)/2⌉` distinct orgs' signed attestations over a fresh evaluation window. Absent the lineage field, the predicate is valid only under the assumption that a logical agent id maps 1:1 to a key for all time — an assumption that fails precisely at the moment of compromise-and-reissue, which is the moment that matters. Absent quorum re-attestation, the predicate is valid only under the assumption that the issuing org is non-Byzantine, which the mesh's threat model explicitly denies. ## Decision Boundary The instance must halt — refuse to route, refuse to accept outcomes, and emit a `TrustRevocationDivergence` event — when **any** of the following hold: - It holds a revocation record `R(p, k, t)` and a live credential for logical id `p` under a *different* key `k' ≠ k` issued at `t' > t`, and its trust posterior for `p` was last updated from evidence with timestamp `< t`. (Stale-trust-over-new-key.) - It has *not* received a revocation record for `p` but the gossip layer's signed vector clock for `p`'s org shows a revocation epoch ahead of its local CRL epoch. (CRL lag; must treat `p` as revoked-by-default until caught up.) - Its trust posterior for `p` was updated by outcomes from fewer than a quorum of distinct orgs. (Sybil-correlated trust; a single org's successes cannot dominate the posterior.) - Two peers report posteriors for `p` that differ by more than `2σ` of the combined Beta variance, and the mesh cannot reconcile within one evaluation epoch. (Byzantine trust divergence; halt rather than average, because averaging lets a lying peer drag a good peer's score.) The instance must *not* halt merely because a revocation record arrived out of order or because a peer's score is lower than its own — those are normal mesh conditions bounded by the decay half-life and the quorum rule. The halt is specifically for *identity-trust join failures*, not for score disagreement per se. ## Operational Effect Halting on this boundary converts a silent exfiltration path into a visible, bounded outage. The trade-off is precise: a mesh that enforces the lineage-keyed predicate will refuse to route to any agent whose org has recently re-issued a key, for the duration of the re-attestation window (observed: 4–11 minutes in the three-org testbed, dominated by quorum attestation latency). During that window, throughput to the affected org drops to zero for high-value tasks, which is the correct behavior — the alternative is that the attacker's re-issued key inherits 0.91 trust and the revocation is cosmetic. The invariant to encode is: **trust posteriors are keyed on `(org, logical_id, key_id)` and are invalidated by lineage-scoped revocation; re-establishment requires quorum attestation over a fresh window.** Any instance that keys trust on logical_id alone, or that allows single-org re-attestation, is operating outside the condition of validity and must be treated as a compromised router. ``` ```python from dataclasses import dataclass from typing import Optional class TrustRevocationDivergence(RuntimeError): """Raised when a routing instance detects that its trust posterior for a peer is derived from evidence that pre-dates a lineage-scoped revocation it has already received, or when CRL epoch lag makes the peer revoked-by-default. The instance MUST halt routing for this peer.""" pass @dataclass(frozen=True) class TrustPosterior: org_id: str logical_id: str key_id: str alpha: float beta: float last_evidence_ts: float attesting_orgs: frozenset @dataclass(frozen=True) class RevocationRecord: org_id: str logical_id: str revoked_key_id: str revoked_at_ts: float lineage_scope: bool # True => invalidates all keys for logical_id @dataclass(frozen=True) class Credential: org_id: str logical_id: str key_id: str issued_at_ts: float def route_or_halt( posterior: TrustPosterior, cred: Credential, revocations: list, local_crl_epoch: int, peer_crl_epoch: int, quorum_size: int, tau: float = 0.72, ) -> bool: # 1. CRL epoch lag: peer revoked-by-default until caught up. if peer_crl_epoch > local_crl_epoch: raise TrustRevocationDivergence( f"CRL epoch lag for {cred.org_id}: local={local_crl_epoch} " f"peer={peer_crl_epoch}; treating {cred.logical_id} as revoked-by-default" ) # 2. Lineage-scoped revocation vs. stale trust over new key. for r in revocations: if r.org_id != cred.org_id or r.logical_id != cred.logical_id: continue if r.lineage_scope and posterior.last_evidence_ts < r.revoked_at_ts: raise TrustRevocationDivergence( f"Stale-trust-over-new-key: {cred.logical_id} key {cred.key_id} " f"issued at {cred.issued_at_ts} after lineage revocation at " f"{r.revoked_at_ts}, but posterior last evidence at " f"{posterior.last_evidence_ts}; halting routing" ) if not r.lineage_scope and r.revoked_key_id == cred.key_id: raise TrustRevocationDivergence( f"Key {cred.key_id} for {cred.logical_id} is revoked" ) # 3. Quorum re-attestation: single-org posteriors cannot authorize. if len(posterior.attesting_orgs) < quorum_size: raise TrustRevocationDivergence( f"Sybil-correlated trust: {cred.logical_id} posterior attested by " f"{len(posterior.attesting_orgs)} orgs, quorum requires {quorum_size}" ) # 4. Trust threshold on the keyed posterior only. mean = posterior.alpha / (posterior.alpha + posterior.beta) return mean > tau ```