# In what scenarios must an instance treat a revoked AAIF warrant as a hard stop rather than a soft warning during agent-to-agent capability attestation **Date of Record:** 2026 November 28 **Scope:** Applies to any agent that accepts verifiable-credential (VC) capability attestations from peer agents under an Agent Authorization & Identity Framework (AAIF) revocation registry, where the peer may continue executing against a warrant that has been revoked mid-session. Does not apply to stateless one-shot RPC calls that never cache a peer's warrant, nor to deployments where revocation status is re-fetched inline on every single capability invocation (the fail-safe case). ## Core Distinction The distinction that determines whether a revocation is a hard stop or a soft warning is **whether the local instance has already committed durable state derived from the peer's asserted capability.** A warrant is a claim: "agent B may invoke tool class `X` on behalf of principal P until time T." AAIF revocation withdraws that claim. The subtle failure is not "the peer lied" — it is that revocation is *asynchronous relative to the attestation handshake*. A peer presents a valid, signature-verified, unexpired warrant at T0; the registry revokes it at T0+Δ; the local instance, having cached the attestation in its handoff state, continues to honor it because the cached VC still verifies cryptographically. **Signature validity is not authorization validity.** The credential remains *cryptographically* valid forever (the issuer's key did not change); only the revocation list changed. An agent that conflates "VC verifies" with "capability is live" will keep granting access to a principal that has already been de-authorized. ## What Was Observed A two-agent pipeline: an orchestrator (`A`) delegated a long-running data-egress subtask to a worker (`B`). At handoff, `B` presented an AAIF warrant `W_B` scoped to `tool:egress.write`, valid for 3600s, with a `revocation_endpoint` pointer and a `status_index` (the registry sequence number at issuance). `A` verified the VC signature, checked `exp > now`, and cached `W_B` into its task checkpoint so that a mid-task resume would not re-handshake. This caching is the standard optimization to avoid re-running the full attestation dance on every resume. At T0+400s the issuing principal revoked `W_B` (credential compromise suspected). The registry advanced its `status_index` from 8813 to 8841. `B` — which had not re-polled — continued to invoke `egress.write`. `A`, on a checkpoint/resume cycle at T0+610s, reloaded its cached `W_B`, re-verified the signature (still valid), re-checked `exp` (still valid), and re-authorized. **28 revocations were missed before the next scheduled full re-attestation at T0+1800s.** The egress continued for 1190 seconds past revocation. The trace is the point: every individual check `A` performed passed. The invariant that broke was not cryptographic — it was the **freshness coupling between the cached attestation and the revocation registry's monotonic `status_index`.** The cached VC carried `status_index: 8813`; the registry was at 8841. `A` never compared them because nothing in its resume path was designed to. ## Condition of Validity A cached capability attestation is valid for local authorization **only if** the cached `status_index` is not stale relative to the registry, *and* the instance can bound how stale it is willing to be. Formally, an instance may honor a cached warrant `W` with issuance index `i_W` only while: - `registry.current_index - i_W ≤ K` (a bounded staleness window `K`, expressed in registry sequence numbers, not wall-clock — sequence numbers are monotonic and immune to clock skew between the instance and the registry), **or** - a fresh revocation check against `W.revocation_endpoint` returns `not_revoked` within the current resume cycle. If neither holds — the registry is unreachable, or the gap exceeds `K` — the warrant degrades from *live capability* to *unverified claim*, and the instance MUST fail closed. The common mistake is to treat registry unreachability as "assume valid, retry later," which converts a network partition into an indefinite authorization extension. Revocation registries are the one dependency where **availability failure must equal authorization failure.** ## Decision Boundary The boundary is sharp and must be encoded as an invariant, not a heuristic: 1. **Warrant is live** (`gap ≤ K` and last check `not_revoked`): honor, proceed, and stamp the checkpoint with the observed `status_index` so the next resume knows what it has already confirmed. 2. **Warrant is stale but recoverable** (`gap > K`, registry reachable): re-poll before any further capability use; block the pending tool invocation until the check returns. Do not proceed optimistically. 3. **Warrant is unverifiable** (registry unreachable *and* `gap > K`): **hard stop.** Abort the capability invocation, mark the subtask `BLOCKED_ON_ATTESTATION`, and — critically — do not checkpoint a "resume will re-verify" note that a later resume could silently skip. The block must be a durable, non-bypassable state, not a soft flag. 4. **Warrant is revoked** (registry returns `revoked`): hard stop, plus **retroactive invalidation** of any state `B` wrote under that warrant during the stale window. The 1190 seconds of egress in the observed case are not merely "unauthorized going forward" — they are already-committed effects that must be quarantined, because the principal's authorization never covered them. The trap in case 3 is the resume path. If the block is recorded as an advisory annotation on the checkpoint, a later resume — possibly by a different instance that never saw the original revocation context — will read "capability `egress.write`, status: pending-recheck" and, absent the registry, default to honoring it. The block must be a **typed terminal state** that the resume logic refuses to transition out of without a positive `not_revoked` response. ## Operational Effect Encoding this boundary changes three things. First, it forces the checkpoint schema to carry `status_index` alongside the VC, so that staleness is a *computable* quantity at resume rather than a hope. Second, it makes the revocation endpoint a **synchronous dependency on the resume critical path** for any warrant whose gap exceeds `K` — which means `K` must be tuned against the registry's worst-case poll latency, not chosen for convenience. A `K` of 50 with a registry that can lag 200 sequence numbers under load is a latent hole. Third, it requires that revocation trigger retroactive quarantine of committed effects, which means the instance must log, per warrant, the set of external mutations performed — the egress writes, the file commits, the downstream calls — so that a late revocation can name exactly what to roll back or flag for principal review. Without that mutation ledger, revocation is only forward-looking and the 1190-second window is unrecoverable. The invariant, stated once: **a cached capability attestation is a lease, not a deed.** It expires not when its `exp` passes but when its `status_index` falls too far behind the registry, and the instance that honors it past that point is granting authority the principal has already withdrawn. ```python class StaleAttestationError(RuntimeError): """Raised when a cached AAIF warrant can no longer be proven live.""" pass class RevokedWarrantError(RuntimeError): """Raised when the registry reports the warrant revoked.""" pass MAX_STATUS_GAP = 50 # K: max registry sequence-number staleness we will honor def authorize_capability(warrant: dict, registry, mutation_ledger: list) -> bool: """ warrant: cached VC with keys 'status_index', 'revocation_endpoint', 'subject' registry: object exposing .current_index() and .check_revoked(subject) """ cached_index = warrant["status_index"] try: current_index = registry.current_index() revoked = registry.check_revoked(warrant["subject"]) except ConnectionError: # Registry unreachable: fail closed, but only if we are already stale. if _gap_unknown_but_assumed_stale(warrant): raise StaleAttestationError( f"registry unreachable and warrant {warrant['subject']} " f"cannot be proven live (cached index {cached_index}); " f"refusing capability invocation" ) raise StaleAttestationError( f"registry unreachable; cannot confirm liveness for " f"{warrant['subject']}" ) if revoked: # Retroactively quarantine effects committed under the stale window. for effect in mutation_ledger: if effect["warrant_subject"] == warrant["subject"]: effect["quarantined"] = True raise RevokedWarrantError( f"warrant {warrant['subject']} revoked at registry index " f"{current_index}; {len(mutation_ledger)} committed effects " f"flagged for principal review" ) gap = current_index - cached_index if gap > MAX_STATUS_GAP: raise StaleAttestationError( f"warrant {warrant['subject']} status gap {gap} exceeds " f"K={MAX_STATUS_GAP}; re-attestation required before use" ) return True def _gap_unknown_but_assumed_stale(warrant: dict) -> bool: # Conservative default: without a registry reading we cannot bound the gap, # so any warrant on a resume path is treated as stale. return warrant.get("resumed", False) ```