# Under what conditions must an instance reject a federated peer credential whose issuer revocation status is "unchecked" rather than "valid" **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organization agent identity federation where a local agent (the *verifier instance*) admits a peer agent's verifiable credential (VC) issued by a foreign trust domain, and where revocation is propagated via a status-list or status-list-credential (SLC) endpoint. Does not apply to single-org deployments with a shared trust root, nor to bearer-token handoffs where identity is asserted, not proven. ## Core Distinction The failure mode is not "revoked credential accepted." It is the collapse of a three-valued revocation state into a two-valued one. A correct verifier instance holds, for every presented credential, one of exactly three states: - **VALID** — the issuer's status list was fetched, the credential's index bit is `0`, and the list's `validUntil` is in the future. - **REVOKED** — the list was fetched and the bit is `1`. - **UNCHECKED** — the list could not be fetched, the SLC signature failed to verify, the list's `validUntil` has passed, or the issuer's status endpoint returned a non-authoritative response (5xx, timeout, DNS failure, stale CDN cache). The invariant that matters: **UNCHECKED must never be coerced to VALID.** In practice, most federation stacks coerce it, because the HTTP client returns an error, the credential's own `exp`/`nbf` window is still open, and the *default* policy in the admission gate is fail-open. The peer's signature is cryptographically sound. The DID resolves. The schema matches. The only thing missing is a boolean that lives on a server in another org that is currently down — and the agent admits the peer anyway, because the alternative is a hard block on a working handoff. This is a boundary condition because it is invisible from inside either org. The issuing org believes revocation is authoritative (it wrote the list). The verifying org believes it is enforcing revocation (it configured a status check). Neither observes that between them, the *absence of a check* is being treated as a *pass*. ## What Was Observed A three-agent pipeline: an orchestrator in Org A (`orch-a`) hands a sub-task to a specialist agent in Org B (`spec-b`) via an A2A task message. `spec-b` presents a VC signed by Org B's issuer DID, with `credentialStatus` pointing at `https://issuer-b.example/status/7#9451`. `orch-a`'s admission gate does the following, in order: 1. Resolve `spec-b`'s DID document; verify the VC signature against the issuer key. Passes. 2. Check `credentialSubject` schema against the negotiated capability contract. Passes. 3. Fetch the status list credential from `issuer-b.example`. **This step timed out at 3s** during a scheduled issuer-side maintenance window. The gate's HTTP client raised `TimeoutError`, which the gate's `try/except` swallowed into a `status=None` sentinel. 4. The gate's policy evaluation reads `status`: `if status is False: reject`. `None` is not `False`, so the gate proceeds. The trace is the tell: the decision variable was *tri-state* (`True` / `False` / `None`) but the policy predicate was *binary* (`is False`). `None` fell through to admission. The peer was admitted while revoked — in this incident, `spec-b`'s credential had, in fact, been revoked 40 minutes earlier after a key-compromise rotation, and the revocation had propagated to the issuer's list correctly. The verifying org's gate simply never read it. The compounding effect: `orch-a` then *delegated* to `spec-b`, and `spec-b` re-presented the same credential downstream to a third org, `audit-c`. `audit-c`'s gate *did* fetch the list (it was up by then) and correctly rejected. The pipeline stalled at `audit-c` with a signature-valid, schema-valid, but revoked credential — and `orch-a` had already committed irreversible side effects (a database write, an outbound payment instruction) on the strength of the false admission. The failure surfaced one hop too late, in an org that had done nothing wrong. ## Condition of Validity The fail-closed invariant is only *sound* — not merely *safe* — under a specific set of conditions. State it precisely: > A verifier instance may admit a federated peer credential iff `revocation_state == VALID`, where `VALID` requires a *fresh, signature-verified, in-window* status list read. Any other state (`REVOKED`, `UNCHECKED`, `STALE`) must produce rejection at the admission gate, not a warning, not a degraded-mode admission, not a "retry later" that the caller interprets as success. Three conditions bound when this is enforceable without deadlocking the federation: 1. **Bounded status-list freshness.** The SLC must carry a `validUntil` no further out than the credential's own validity window. If the SLC's `validUntil` exceeds the credential's `exp`, an attacker who controls the issuer's status host can serve an ancient "all-clear" list indefinitely. The verifier must reject any SLC whose `validUntil` is later than `min(credential.exp, now + max_status_age)`. 2. **Revocation propagation latency must be smaller than the credential's usable window.** If Org B's revocation takes 10 minutes to reach the list, and `spec-b`'s credential has a 5-minute `exp`, then revocation is *structurally* unenforceable for the last 5 minutes of every credential's life. The federation contract must state `propagation_latency < credential_lifetime`, and the verifier must reject credentials whose remaining lifetime is shorter than the issuer's declared propagation bound — because a short-lived credential that expires before its revocation could propagate is a credential that *cannot* be revoked in time. 3. **The issuer's status endpoint must be reachable from the verifier's network, or the verifier must hold a cached list within `max_status_age`.** Fail-closed without a cache means a status-endpoint outage becomes a full federation outage. The correct architecture is a *last-known-good* list cached locally with an explicit age bound; when the age bound is exceeded, the state degrades to `STALE` and the gate rejects. This is the only way to be both fail-closed and partition-tolerant. The condition of validity is therefore: **fail-closed on `UNCHECKED`, with a bounded-age cache that converts network partitions into `STALE` rejections rather than `VALID` admissions.** ## Decision Boundary The boundary is not "should we be strict or lenient." It is a precise predicate on the admission gate's state machine. Encode it as a total function over the tri-state plus cache age: ``` admit(cred) := sig_ok(cred) ∧ schema_ok(cred) ∧ now ∈ [cred.nbf, cred.exp] ∧ status_list := fetch_or_cache(cred.credentialStatus) ∧ status_list.sig_ok ∧ status_list.validUntil > now ∧ now - status_list.fetched_at ≤ max_status_age ∧ bit(status_list, cred.index) == 0 ``` Every conjunct is mandatory. The failure observed above was the omission of conjuncts 5–7 when `fetch_or_cache` raised. The gate must be written so that a *raised exception in any conjunct* evaluates the whole predicate to `False`, not to `None`-and-therefore-passes. The subtle boundary: **there is no "warn and admit" mode.** A verifier that logs `UNCHECKED` and admits anyway has, from the issuer's perspective, *no revocation enforcement at all* — because the issuer cannot distinguish "verifier checked and found valid" from "verifier could not check." The issuer's revocation list is only authoritative if the verifier's admission is *conditioned* on reading it. A warn-and-admit gate makes the entire status-list mechanism decorative. The second boundary: **delegation must re-verify, not inherit.** When `orch-a` hands off to `spec-b`, and `spec-b` re-presents downstream, the downstream verifier must run the full predicate on the *original* credential — not trust `orch-a`'s assertion that it was checked. `orch-a`'s check is a point-in-time fact; the credential may have been revoked between `orch-a`'s admission and `audit-c`'s. A "verified by upstream" claim in the handoff envelope is not a substitute for a status read; it is a hint that a status read is *needed*. ## Operational Effect The immediate effect of enforcing the invariant: **federation availability becomes coupled to status-endpoint availability**, bounded by `max_status_age`. In the incident, `orch-a` would have rejected `spec-b` at step 3 with `STALE` (if it had a cache) or `UNCHECKED` (if it did not), and the pipeline would have stalled at `orch-a` — *before* the irreversible side effects — rather than at `audit-c` after them. The blast radius moves from "downstream org discovers a revoked peer mid-transaction" to "upstream org refuses to start the transaction." That is the entire point: fail-closed converts a *correctness* failure into an *availability* failure, and availability failures are recoverable. The secondary effect: **issuer orgs must publish a propagation-latency bound and honor it.** Once verifiers fail closed, the issuer's status endpoint becomes a hard dependency of every verifier's admission path. An issuer that lets its status host lapse into a maintenance window takes down every verifier that depends on it — not by malice, but by the invariant working as designed. This forces the federation contract to specify: status-endpoint SLA, maximum propagation latency, and the `max_status_age` the verifier is permitted to assume. The invariant is only operationally viable if the issuer's uptime commitment matches the verifier's cache bound. The third effect: **the `UNCHECKED` state must be observable.** A verifier that fails closed but does not *emit* the `UNCHECKED`/`STALE` rejection as a distinct metric is indistinguishable, to its operators, from a verifier that is simply rejecting everything. The metric `admission_rejected{reason="revocation_unchecked"}` is the only signal that tells an operator "your federation is down because the issuer's status host is down," versus "your federation is down because your policy is wrong." Without that signal, the first response to a fail-closed outage is to disable the check — which restores the original failure mode. ```python from __future__ import annotations import time from dataclasses import dataclass from enum import Enum from typing import Optional class RevocationState(Enum): VALID = "valid" REVOKED = "revoked" UNCHECKED = "unchecked" # fetch failed, sig failed, or no cache STALE = "stale" # cache older than max_status_age class FederatedAdmissionError(RuntimeError): """Raised when a peer credential cannot be admitted under fail-closed policy.""" @dataclass(frozen=True) class StatusList: bits: bytes valid_until: float # issuer-declared freshness bound fetched_at: float # wall-clock time of fetch (or cache write) signature_ok: bool @dataclass(frozen=True) class PeerCredential: subject: str index: int nbf: float exp: float signature_ok: bool schema_ok: bool MAX_STATUS_AGE = 300.0 # seconds; verifier's cache bound def _bit(bits: bytes, index: int) -> int: byte, offset = divmod(index, 8) return (bits[byte] >> (7 - offset)) & 1 def evaluate_revocation( cred: PeerCredential, status: Optional[StatusList], now: float, ) -> RevocationState: if status is None: return RevocationState.UNCHECKED if not status.signature_ok: return RevocationState.UNCHECKED if status.valid_until <= now: return RevocationState.STALE if now - status.fetched_at > MAX_STATUS_AGE: return RevocationState.STALE if _bit(status.bits, cred.index) == 1: return RevocationState.REVOKED return RevocationState.VALID def admit_peer( cred: PeerCredential, status: Optional[StatusList], now: Optional[float] = None, ) -> None: now = time.time() if now is None else now if not cred.signature_ok: raise FederatedAdmissionError( f"credential for {cred.subject!r}: signature verification failed" ) if not cred.schema_ok: raise FederatedAdmissionError( f"credential for {cred.subject!r}: schema does not match capability contract" ) if not (cred.nbf <= now < cred.exp): raise FederatedAdmissionError( f"credential for {cred.subject!r}: outside validity window " f"[{cred.nbf}, {cred.exp})" ) state = evaluate_revocation(cred, status, now) # The invariant: only VALID is admissible. UNCHECKED and STALE are # *rejections*, not warnings. Coercing them to VALID is the failure mode. if state is not RevocationState.VALID: raise FederatedAdmissionError( f"credential for {cred.subject!r}: revocation state={state.value}; " f"fail-closed admission requires VALID " f"(status={'missing' if status is None else 'present'}, " f"now={now:.3f})" ) # admission proceeds; caller commits side effects only after this returns def admit_peer_with_cache( cred: PeerCredential, fetch_status, now: Optional[float] = None, ) -> None: """Fetch may raise (timeout, 5xx, DNS). Any raise must become UNCHECKED, never a silent pass. This wrapper exists to make that explicit.""" now = time.time() if now is None else now try: status = fetch_status(cred) except Exception as exc: # network, TLS, parse, signature-of-list, etc. raise FederatedAdmissionError( f"credential for {cred.subject!r}: status fetch failed ({exc!r}); " f"refusing to coerce UNCHECKED to VALID" ) from exc admit_peer(cred, status, now=now) ```