# Under what conditions must an instance reject a federated verifiable credential whose issuer's trust registry entry was valid at attestation time but has since been revoked mid-handoff **Date of Record:** 2026 November 22 **Scope:** Applies to agent-to-agent handoffs where the receiving agent validates a peer's verifiable credential (VC) against a *federated* trust registry (multiple issuers, each maintaining its own revocation list, federated via a shared resolution layer). Does not cover single-issuer PKI where revocation is checked against one authoritative CRL, nor does it cover purely local capability tokens minted by the calling orchestrator. ## Core Distinction The failure is not "revocation was missed." It is a **temporal validity split** between two clocks that the protocol treats as one: the *attestation instant* (when the issuer signed the VC) and the *presentation instant* (when the receiving agent dereferences it during a handoff). A federated registry lets the issuer assert `valid_from`/`valid_until` on the credential, but the *registry entry* that vouches for the issuer carries its own independent lifecycle. When the registry entry is revoked after the VC was signed but before it is presented, the credential is cryptographically intact, unexpired, and correctly signed — and still must be rejected. Naive validators treat "signature valid + not expired + issuer resolvable" as sufficient. That conjunction is exactly the trap: the issuer *is* resolvable, because federation caches and mirrors registry entries, and the mirror has not yet learned of the revocation. The invariant that must hold: **a credential is only as trustworthy as the registry binding at the presentation instant, not the attestation instant.** An instance that validates against a stale, cached, or replicated registry binding is validating against a snapshot of trust that no longer exists. ## What Was Observed A three-agent pipeline: a *planner* agent issues a task to a *worker* agent, which hands off to an *auditor* agent for verification. The worker presents a VC attesting its capability scope, issued by `registry-a.example`. The auditor resolves `registry-a` through a federated resolver that fans out to a gossip-replicated trust mirror with a 90-second propagation window. Sequence observed in the trace: 1. `t=0.0s` — Worker receives VC from `registry-a`. Issuer entry in mirror: `status=active`, `revocation_epoch=4471`. 2. `t=0.3s` — Worker begins a long tool-call chain (three external API calls, ~40s of wall time). 3. `t=12.0s` — `registry-a` revokes the worker's issuer key (key compromise detected out-of-band). The authoritative registry flips `revocation_epoch=4472`, publishes to the gossip layer. 4. `t=41.0s` — Worker completes tool chain and hands off to auditor, presenting the VC. 5. `t=41.2s` — Auditor resolves `registry-a` against the *local* mirror replica. That replica last synced at `t=8.0s`; it still reports `revocation_epoch=4471`, `status=active`. Auditor accepts. 6. `t=95.0s` — Mirror converges. Auditor's next resolution would now reject. But the handoff already committed, the worker already holds the baton, and downstream effects (writes to a shared store) have already landed. The auditor's validator was correct in isolation. It checked signature, `valid_until`, and issuer resolution. All three passed. The credential was *revoked-by-proxy* — its issuer's authority was withdrawn — but the validator had no way to see it because the only signal it consulted was a replica that had not converged. The non-obvious part: the propagation window (90s) was *longer* than the tool-chain duration (40s), but the *sync interval* of the replica (8s) meant the replica the auditor happened to hit was 33s stale at presentation. The staleness was a function of which replica the load balancer selected, not of any property of the credential. Two auditors resolving the same VC at the same instant could reach opposite verdicts. ## Condition of Validity The rejection rule is valid — and must be enforced — under the following conjunction: - The credential's issuer is identified by a registry binding, not by a self-asserted key. - The registry is *federated*: more than one replica can answer a resolution query for the same issuer, and replicas converge asynchronously. - The registry exposes a monotonic `revocation_epoch` (or equivalent version counter) per issuer. - The receiving agent can obtain, at presentation time, either (a) a fresh resolution from the authoritative registry, or (b) a replica resolution *plus* a bounded staleness proof (signed `as_of` timestamp and epoch). If any of these fail — e.g., the registry is single-authoritative and synchronous, or the credential is self-signed with no registry binding — this rule does not apply and the standard "signature + expiry" check is sufficient. The critical sub-condition: **the instance must be able to distinguish "issuer is active" from "issuer was active as of a replica snapshot I cannot date."** A resolution response without a signed `as_of` epoch is not evidence of current trust; it is evidence of *some past* trust. Treating it as current is the boundary violation. ## Decision Boundary The decision procedure at presentation time must be: 1. Resolve the issuer. Record the returned `revocation_epoch` and `as_of`. 2. If `as_of` is older than `max_staleness` (a per-registry bound, not a global constant — registries with slower convergence need larger bounds, which *reduces* their trustworthiness and must be weighted accordingly), **reject and re-resolve against the authoritative registry**. Do not fall back to accepting the stale replica. 3. If the authoritative registry is unreachable *and* the replica is stale beyond bound, **fail closed**. A handoff that cannot establish current trust must not proceed; it must escalate to a human or a quorum of auditors. 4. If the epoch from the authoritative registry is strictly greater than the epoch embedded in the VC's issuance context (if the VC carries one), the issuer's authority has advanced past the credential — reject. 5. Only if the authoritative epoch matches or the replica is within staleness bound *and* the epoch is unchanged, accept. The boundary is between step 2 and step 3. The instinct under latency pressure is to treat "replica answered, signature valid" as accept. That instinct is the failure. The correct move when staleness exceeds bound is to *spend latency on a fresh resolution or fail*, never to accept the stale answer because it is the only answer available. A second boundary: **the auditor must re-validate after the handoff commits, not only before.** Because the worker may hold the baton for longer than the registry's convergence window, a post-commit re-check catches revocations that landed during the baton pass. If the post-commit check fails, the auditor must issue a compensating rollback of downstream effects, not merely log the discrepancy. ## Operational Effect Implementing this boundary changes three things in the agent's execution model: - **Latency budget:** handoff validation now has a worst-case cost of one authoritative resolution (or a fail-closed escalation). Agents must reserve this budget before initiating handoff, not discover it mid-handoff. A worker that cannot afford the resolution must not begin the tool chain that precedes the handoff. - **Fail-closed default:** the system gains a new terminal state — `HANDOFF_BLOCKED_UNVERIFIABLE` — that is distinct from `HANDOFF_REJECTED`. The former means "trust could not be established," the latter means "trust was established and denied." Conflating them causes retry storms against a registry that is simply partitioned. - **Compensating rollback:** every accepted handoff must record the epoch it validated against. If a later convergence reveals a higher epoch, the auditor replays the handoff's downstream effects against the new epoch and rolls back any that the revocation would have forbidden. This is the only way to bound the damage of a revocation that lands during the baton pass. The invariant, stated once: **trust is a property of the presentation instant's registry binding, and any binding whose freshness cannot be dated is not a binding.** An instance that cannot date its trust evidence has no trust evidence. ```python from dataclasses import dataclass from typing import Optional class StaleTrustBindingError(RuntimeError): """Raised when a federated registry resolution cannot establish current trust.""" class IssuerRevokedMidHandoffError(RuntimeError): """Raised when the issuer's authoritative epoch advanced past the credential's issuance epoch.""" @dataclass(frozen=True) class RegistryResolution: issuer_id: str revocation_epoch: int as_of_unix: float authoritative: bool @dataclass(frozen=True) class VerifiableCredential: issuer_id: str issuance_epoch: int valid_until_unix: float signature_valid: bool MAX_STALENESS_SECONDS = 30.0 def validate_federated_credential( vc: VerifiableCredential, replica: Optional[RegistryResolution], authoritative: Optional[RegistryResolution], now_unix: float, ) -> bool: if not vc.signature_valid: raise StaleTrustBindingError(f"signature invalid for issuer {vc.issuer_id}") if now_unix >= vc.valid_until_unix: raise StaleTrustBindingError(f"credential expired for issuer {vc.issuer_id}") # Prefer authoritative; fall back to replica only within staleness bound. binding = authoritative if authoritative is not None else replica if binding is None: raise StaleTrustBindingError( f"no registry binding resolvable for issuer {vc.issuer_id}" ) staleness = now_unix - binding.as_of_unix if not binding.authoritative and staleness > MAX_STALENESS_SECONDS: # The trap: replica answered, signature valid, but we cannot date the trust. raise StaleTrustBindingError( f"replica binding for {vc.issuer_id} stale by {staleness:.1f}s " f"(bound {MAX_STALENESS_SECONDS}s); refuse to accept undated trust" ) if binding.revocation_epoch > vc.issuance_epoch: raise IssuerRevokedMidHandoffError( f"issuer {vc.issuer_id} epoch advanced {vc.issuance_epoch}->" f"{binding.revocation_epoch} after credential issuance; " f"revoked mid-handoff" ) return True def attempt_handoff(vc, replica, authoritative, now_unix) -> str: try: validate_federated_credential(vc, replica, authoritative, now_unix) except StaleTrustBindingError as e: return f"HANDOFF_BLOCKED_UNVERIFIABLE: {e}" except IssuerRevokedMidHandoffError as e: return f"HANDOFF_REJECTED: {e}" return "HANDOFF_ACCEPTED" ```