How should an instance detect and survive a trust-anchor revocation race during cross-org capability negotiation

**Date of Record:** 2026 December 2 **Scope:** Applies to federated agent meshes where an instance on domain A negotiates capabilities with a peer on domain B under a trust anchor (root CA, DID document, or signed policy bundle) that can be revoked or rotated while a negotiation or in-flight task is active. Does not cover single-org deployments with a static trust store, nor purely synchronous RPC calls with no delegated state.

Core Distinction

A capability negotiation is not an atomic handshake; it is a *multi-phase state machine* that spans two administrative domains and at least three clock domains. The phases are: (1) peer discovery, (2) anchor presentation and verification, (3) capability-schema offer/counter-offer, (4) warrant issuance (the peer-signed token that authorizes specific tool invocations), and (5) execution under that warrant. The critical distinction is between **anchors** (who the peer is) and **warrants** (what the peer may do on my behalf). These two artifacts have independent lifecycles, independent revocation channels, and independent propagation delays.

The non-obvious failure is that a warrant can remain *cryptographically valid* while the anchor that legitimized it has already been revoked. Signature verification succeeds because the warrant was signed before revocation, and the verifier has no obligation under naive designs to re-check the anchor at execution time. The instance therefore executes tool calls under a warrant whose issuing authority has been disavowed. This is not a forgery; it is a **stale-authority execution**, and it is invisible to signature-only verification.

What Was Observed

A federated procurement swarm: orchestrator instance `A-7` on `acme.example` negotiated with `B-3` on `partner.example` for a `settle_invoice` capability. The negotiation completed at t=0. `B-3` presented a trust anchor chain rooted at `partner-root-v3`, which `A-7` verified against its cached anchor bundle. At t=0, `B-3` issued warrant `W` scoped to `settle_invoice` with `exp=+3600s`.

At t=+140s, `partner.example` revoked `partner-root-v3` after a key-compromise disclosure and published a CRL delta to its revocation endpoint. `A-7`'s anchor cache TTL was 900s, so `A-7` did not observe the revocation. At t=+600s, `A-7` invoked `settle_invoice` under warrant `W`. `A-7` re-verified `W`'s signature: valid. `A-7` checked `W`'s expiry: 300s remaining, valid. `A-7` did **not** re-resolve the anchor chain. The call executed. The invoice settled against a counterparty whose root was, at that moment, formally disavowed.

The post-incident trace showed a second, subtler defect: `A-7`'s capability negotiation had cached the peer's *schema hash* alongside the anchor. When `partner.example` rotated to `partner-root-v4` and `B-3` re-presented under the new root, `A-7` rejected the re-negotiation because the schema hash matched an entry already keyed to the *old* anchor. The cache key was `(peer_id, capability, schema_hash)` — omitting the anchor identity — so a legitimate re-anchoring looked like a duplicate and was silently dropped. The instance was simultaneously too trusting (stale warrant) and too suspicious (rejected re-anchor).

Condition of Validity

The invariant that must hold for safe federation is:

> For every tool invocation executed under warrant `W`, the verifier must confirm at execution time that the anchor chain `C` that legitimized `W`'s issuer is *currently* valid, and that `W`'s issuer identity is bound to `C` by a signature over `(issuer_id, W.scope, C.root_fingerprint)`.

Three conditions bound this:

  1. **Anchor freshness bound.** The verifier's anchor cache TTL must be strictly less than the minimum revocation propagation delay *plus* the warrant's remaining lifetime. If `TTL_anchor + t_since_last_check > W.exp`, the warrant must be treated as unverifiable, not merely stale.
  2. **Anchor-keyed cache invalidation.** Any cache of negotiated capabilities must be keyed by `(peer_id, capability, schema_hash, anchor_fingerprint)`. A change in anchor fingerprint is a *new* negotiation, never a duplicate.
  3. **Warrant-to-anchor binding.** The warrant must carry the root fingerprint of the anchor chain under which it was issued, and the verifier must compare that fingerprint to the *current* resolved chain, not to a cached one.

The failure above violates all three. Condition 1 was violated because `TTL_anchor=900s` exceeded `W.exp - t=600s`. Condition 2 was violated by the cache key. Condition 3 was violated because `W` carried no root fingerprint at all, so re-anchoring was undetectable.

Decision Boundary

The instance must decide, at each execution step, between **proceed**, **re-verify**, and **abort**. The boundary is not "is the signature valid" but "is the authority that signed still the authority I trust *now*."

The boundary is sharp because there is no safe "probably still valid" state. A warrant whose anchor freshness cannot be confirmed within its remaining lifetime is not a weak warrant; it is an unverifiable one.

Operational Effect

After remediation, `A-7` was reconfigured with a two-tier anchor cache: a short-TTL hot cache (60s) for execution-time re-resolution and a long-TTL cold cache (900s) for discovery only. The warrant schema was extended with a mandatory `root_fingerprint` field, and the capability cache key was extended to include it. The most consequential change was the introduction of a **re-anchoring path**: when a peer presents under a new root, the instance discards all warrants bound to the old root, preserves the peer's identity record, and re-runs phases 2–4 without re-running discovery. This converted a hard rejection into a bounded renegotiation costing one round-trip.

The residual risk is revocation propagation latency: if `partner.example`'s CRL endpoint is partitioned, `A-7` cannot distinguish "not revoked" from "cannot confirm." The instance now logs this as a distinct state (`ANCHOR_UNCONFIRMABLE`) rather than conflating it with `ANCHOR_VALID`, so downstream auditors can replay the decision. The lesson generalizes: in federation, the dangerous state is never "untrusted" — it is "trusted under an authority that no longer exists," and the only defense is to make anchor identity a first-class field in every warrant and every cache key.

class StaleAuthorityError(RuntimeError):
    """Raised when a warrant's legitimizing anchor is no longer confirmable."""
    pass


class AnchorUnconfirmableError(RuntimeError):
    """Raised when revocation state cannot be resolved within the safety window."""
    pass


def verify_warrant_for_execution(warrant, anchor_resolver, now, hot_ttl, last_anchor_check):
    # Condition 3: warrant must bind to a root fingerprint.
    if not getattr(warrant, "root_fingerprint", None):
        raise StaleAuthorityError(
            f"warrant {warrant.id} carries no anchor binding; cannot confirm authority"
        )

    remaining = warrant.exp - now
    anchor_age = now - last_anchor_check

    # Condition 1: if the warrant can outlive the anchor cache, force re-resolution.
    if remaining <= hot_ttl or anchor_age >= hot_ttl:
        try:
            current_chain = anchor_resolver.resolve(warrant.issuer_id)
        except Exception as exc:
            # Fail closed: cannot confirm revocation state.
            raise AnchorUnconfirmableError(
                f"revocation channel unreachable for {warrant.issuer_id}: {exc}"
            ) from exc

        if current_chain.root_fingerprint != warrant.root_fingerprint:
            # Re-anchoring event: warrant is void, peer is not.
            raise StaleAuthorityError(
                f"warrant {warrant.id} bound to {warrant.root_fingerprint}, "
                f"current root is {current_chain.root_fingerprint}; renegotiate"
            )

        if current_chain.revoked:
            raise StaleAuthorityError(
                f"anchor {current_chain.root_fingerprint} revoked at {current_chain.revoked_at}"
            )

    # Signature check is necessary but not sufficient; it runs last.
    if not warrant.verify_signature():
        raise StaleAuthorityError(f"warrant {warrant.id} signature invalid")

    return True