Under what conditions must an instance reject a federated peer's verifiable credential when revocation status is unverifiable at handshake time

**Date of Record:** 2026 December 1

**Scope:** Applies to cross-organizational agent federations where an inbound peer presents a Verifiable Credential (VC) plus a revocation-status proof (status list bit, OCSP-like response, or accumulator witness) as a precondition for capability delegation. Does not apply to single-org deployments where the issuer and verifier share a status authority, nor to purely capability-token (bearer) schemes with no revocation surface.

Core Distinction

The failure mode is not "revocation is stale." It is the conflation of two different predicates that the handshake protocol collapses into one:

A credential can satisfy A while B is false (issuer's status endpoint is partitioned from the verifier), and it can satisfy B while A is false (status says revoked). The dangerous quadrant is **A-unknown, B-false**: the verifier cannot prove the credential is non-revoked, yet the peer's local state machine treats "no revocation proof received" as "not revoked." This is a default-allow on an *unverifiable* predicate, and it is the single most common way a revoked cross-org agent re-enters a federation after its home org has cut it off.

The invariant that must hold: **an inbound credential is admitted only if a fresh, issuer-authenticated non-revocation assertion is bound to this handshake instance.** Absence of a revocation signal is never evidence of non-revocation.

What Was Observed

A three-org federation (issuer `org-A`, verifier `org-B`, delegated peer agent `agent-A7` acting under `org-A`'s credential). `org-A` rotates its status list every 5 minutes; `org-B` caches status responses with a 15-minute TTL. `agent-A7` was revoked at T+0:00 (compromised key, home-org containment). Trace:

  1. **T+0:00** — `org-A` flips the status-list bit for `agent-A7`'s credential index. The signed list is republished.
  2. **T+0:02** — `agent-A7` initiates a handshake with `org-B`. It presents a *previously fetched* status-list snapshot (fetched at T−0:04, before revocation) plus a valid signature over that snapshot. The snapshot is authentic — it really was issued by `org-A` — but it is 6 minutes old.
  3. **T+0:03** — `org-B`'s verifier checks the snapshot signature: valid. Checks the bit: 0 (non-revoked). Checks snapshot age against a *global* cache TTL of 15 min: passes. **Admits `agent-A7`.**
  4. **T+0:03–T+0:14** — `agent-A7` executes delegated tool calls under `org-B`'s capability grant. The revocation is effectively invisible for 11 minutes because the freshness bound (15 min) exceeds the issuer's rotation period (5 min) by 3×.
  5. **T+0:14** — `org-B` finally refetches; sees the bit set; tears down. Damage window: 11 minutes of a compromised agent operating cross-org.

The non-obvious part: the verifier's logic was *locally correct*. It validated a signature, checked a bit, and enforced a TTL. The bug is a **cross-boundary freshness mismatch** — the verifier's staleness tolerance was not derived from the issuer's rotation period, so it could accept a snapshot that predates a revocation the issuer had already published.

Condition of Validity

A federated handshake is sound only when all of the following hold simultaneously; violation of any one forces rejection:

  1. **Freshness subordination:** `verifier_max_status_age < issuer_status_rotation_period`. The verifier must not tolerate a status snapshot older than the interval in which the issuer can change it. This bound must be *negotiated from issuer metadata* (the VC's `statusList` descriptor carries a `ttl`/`validUntil`), not configured independently on the verifier side.
  2. **Handshake binding:** the status proof must be bound to the specific handshake nonce/session, preventing replay of a pre-revocation snapshot into a post-revocation session. A signed-but-unbound snapshot is replayable and therefore worthless for revocation.
  3. **Fail-closed on unverifiable:** if the verifier cannot reach the issuer's status authority (partition, DNS, TLS failure) *and* holds no snapshot within the subordinated freshness bound, the predicate is **A-unknown** and the handshake must be rejected — not deferred, not admitted-with-warning.
  4. **Propagation lag accounting:** the federation must publish a maximum propagation lag `L` (issuer-publish → verifier-observable). Any grant issued at time `t` must be re-checked at `t + L`; grants with lifetime exceeding `L` require active revalidation, not one-shot admission.

Decision Boundary

The decision is not "is this credential valid?" but "**can I prove, within the issuer's own rotation window, that it is non-revoked, bound to this session?**" Concretely:

The trap to avoid: treating a *cryptographically valid* snapshot as *semantically current*. Signature validity answers "did the issuer sign this?" It does not answer "is this still true?" These are orthogonal, and revocation is precisely the case where a valid signature covers a now-false statement.

Operational Effect

Enforcing the subordination invariant converts an 11-minute invisible compromise window into a bounded, sub-rotation-period window (here, ≤5 min, and in practice near-zero because the re-check fires at `issued_at + rotation_period`). It also makes the failure *loud*: a partitioned status authority produces explicit handshake rejections rather than silent default-allow, which surfaces network partitions as availability incidents instead of security incidents — the correct trade for a cross-org trust boundary, where the cost of a false admit (a compromised foreign agent acting under your grant) vastly exceeds the cost of a false reject (a retry or a manual trust escalation).

The residual risk that remains after the fix is **propagation lag on the issuer side**: `org-A` may publish a revocation that `org-B` cannot observe until `L` elapses. This is irreducible without a push channel (status-list webhooks or accumulator witnesses pushed at rotation), and the correct architectural response is to cap grant lifetime at `L` and mandate active revalidation for anything longer, rather than to widen the verifier's freshness tolerance to paper over the lag.

from dataclasses import dataclass
from datetime import datetime, timedelta


class RevocationUnverifiableError(RuntimeError):
    """Raised when non-revocation cannot be proven within the issuer's rotation window."""
    pass


@dataclass
class StatusSnapshot:
    issued_at: datetime
    revoked: bool
    handshake_nonce: str          # must match the live handshake, else replayable
    signature_valid: bool


@dataclass
class IssuerStatusMeta:
    rotation_period: timedelta    # issuer's own status-list republish interval
    max_propagation_lag: timedelta


def admit_federated_peer(
    snapshot: StatusSnapshot | None,
    meta: IssuerStatusMeta,
    live_nonce: str,
    now: datetime,
    authority_reachable: bool,
) -> bool:
    # Predicate B: status-verifiable within the issuer's own rotation window.
    if snapshot is None or not authority_reachable:
        # A-unknown: cannot prove non-revocation. Fail closed.
        raise RevocationUnverifiableError(
            "no reachable status authority and no in-bound snapshot; "
            "absence of a revocation signal is not evidence of non-revocation"
        )

    if not snapshot.signature_valid:
        raise RevocationUnverifiableError("status snapshot signature invalid")

    if snapshot.handshake_nonce != live_nonce:
        # A pre-revocation snapshot replayed into a post-revocation session.
        raise RevocationUnverifiableError(
            "status snapshot not bound to this handshake; replay suspected"
        )

    age = now - snapshot.issued_at
    if age >= meta.rotation_period:
        # Freshness subordination violated: snapshot may predate a published revocation.
        raise RevocationUnverifiableError(
            f"status snapshot age {age} >= issuer rotation {meta.rotation_period}; "
            "cannot exclude a revocation published since snapshot"
        )

    # Predicate A: non-revoked.
    if snapshot.revoked:
        raise RevocationUnverifiableError(
            "credential is revoked; emit propagation event to federation"
        )

    return True  # admit, with re-check scheduled at issued_at + rotation_period