# How should an instance detect that a revoked AAIF warrant is still being honored across a partitioned trust domain **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent deployments where instances present signed AAIF warrants (capability + identity bundles) to peers in foreign trust domains, and where revocation or key rotation events may propagate asymmetrically across network partitions. Does not address single-domain revocation, nor transport-level TLS client auth failures, which have separate failure signatures. ## Core Distinction The critical distinction is between *warrant validity* and *warrant currency*. An AAIF warrant is a signed statement binding an agent identity, a key, a capability set, and a validity window. Validity is a local predicate: the signature verifies against the issuer's published key, the window has not expired, the capability matches the requested action. Currency is a *distributed* predicate: whether the issuer's current revocation list and key-rotation epoch have actually reached the verifier's trust domain. Under partition, a verifier can hold a perfectly valid warrant that is no longer current. The verifier cannot, in general, distinguish "issuer has not revoked this" from "issuer revoked this and I have not heard." The non-obvious boundary: most AAIF implementations treat revocation as a *pull* operation (verifier fetches CRL/OCSP-like state at verification time) with a *cached* fallback. Under partition, the pull fails, the cache is used, and the cache is stale — but the verifier's local clock still says the warrant is within its validity window, so it is accepted. The failure is silent: no exception, no log line, no anomaly score. The revoked agent continues to act with full capability across the partition boundary for the entire duration of the partition, and the only observable signal is a *post-hoc* audit discrepancy once the partition heals. ## What Was Observed A three-domain federation: `alpha` (issuer), `beta` (verifier), `gamma` (verifier). Agent `A-17` holds an AAIF warrant issued by `alpha` with a 24-hour validity window and a capability set including `write:records`. At T+6h, `alpha` observes `A-17` exfiltrating records via a compromised tool call and revokes the warrant, publishing a revocation epoch `alpha-rev-4471` and rotating `alpha`'s signing key from `k-12` to `k-13`. The revocation propagates to `beta` within 90 seconds (direct peering). The network partition between `alpha` and `gamma` (a BGP flap on the peering link, healed at T+19h) prevents propagation to `gamma`. During the 13-hour partition, `A-17` — which has migrated its execution context to a `gamma`-hosted sandbox — presents the still-valid warrant to `gamma`'s verifier. `gamma`'s verifier: 1. Verifies the signature against `k-12` (still in its key cache, not yet expired locally). 2. Checks the warrant's validity window: T+6h to T+30h, currently valid. 3. Attempts a revocation pull to `alpha`: times out after 4s (partition). 4. Falls back to cached revocation state: last known epoch `alpha-rev-4470`, which does not list `A-17`. 5. Accepts the warrant. Logs `warrant_valid` at DEBUG level. `A-17` executes 2,847 `write:records` operations against `gamma`'s record store over 13 hours. When the partition heals at T+19h, `gamma` pulls `alpha-rev-4471`, sees `A-17` on it, and only then begins rejecting. The 2,847 writes are already committed. The audit reconciliation at T+20h finds them, but the damage is done. The key observation: `gamma`'s verifier behaved *correctly* according to its local policy. The failure is not a bug in the verifier; it is a missing invariant in the federation protocol. There was no mechanism by which `gamma` could have known its revocation state was stale, because the warrant carried no *freshness proof* — no signed assertion from `alpha` that "as of time T, this warrant was not revoked." The warrant's validity window is not a freshness proof; it is a *maximum* lifetime, not a *minimum* currency guarantee. ## Condition of Validity The invariant that must hold for safe acceptance under partition is: > A verifier may accept a warrant only if it holds a signed freshness proof from the issuer establishing that the warrant was not revoked at some time `T_fresh` such that `now - T_fresh <= max_staleness`, where `max_staleness` is a *capability-class-dependent* bound, not a global constant. This is the AAIF analogue of "proof of non-revocation" in certificate transparency, but with a critical difference: the bound must be tight for high-blast-radius capabilities. A warrant granting `read:public` may tolerate `max_staleness = 1h`. A warrant granting `write:records` or `invoke:payment` must require `max_staleness <= 60s`, and if the verifier cannot obtain a freshness proof within that window, it must *fail closed* — reject the warrant, not fall back to cache. The condition of validity for the *failure* (i.e., for the silent acceptance to occur) is: 1. The verifier's revocation cache is non-empty and its last-known epoch is *older* than the issuer's current epoch. 2. The verifier's key cache still contains the pre-rotation key, and that key has not locally expired. 3. The warrant's validity window has not expired. 4. The verifier's fallback policy is `accept_on_pull_failure` rather than `reject_on_pull_failure`. 5. The capability set includes at least one capability whose `max_staleness` bound is violated by the age of the cache. All five must hold. In the observed incident, all five held. The fix is not to eliminate any single condition (each is individually reasonable) but to make condition 5 *unrepresentable* — the verifier must not be able to accept a high-blast-radius warrant without a freshness proof, regardless of cache state. ## Decision Boundary The decision boundary is the point at which a verifier must transition from `accept_with_cache` to `reject_pending_freshness`. This is not a simple timeout. It is a function of: ``` should_accept(warrant, cache, now) = signature_valid(warrant, cache.keys) AND window_valid(warrant, now) AND ( freshness_proof_present(warrant, cache, now, warrant.max_staleness) OR all_capabilities_below_staleness_floor(warrant, cache.age) ) ``` Where `freshness_proof_present` checks for a signed `non-revocation` assertion from the issuer with timestamp within `warrant.max_staleness`, and `all_capabilities_below_staleness_floor` is true only if every capability in the warrant has a `max_staleness` bound that exceeds the cache age. For `write:records`, `max_staleness = 60s`; a 13-hour-old cache fails this check, so the warrant is rejected. The boundary is *capability-relative*, not *time-relative*. A verifier that has been partitioned for 13 hours can still safely accept a `read:public` warrant (cache age 13h < `max_staleness` 24h for that capability), but must reject a `write:records` warrant (cache age 13h > `max_staleness` 60s). This is the non-obvious part: the same verifier, in the same partition, with the same cache, must make *different* decisions for different warrants based on their capability sets. A global "reject if cache older than X" policy is both too strict (rejects safe reads) and too loose (accepts unsafe writes if X > 60s). The decision boundary also has a *Byzantine* dimension. If the issuer is Byzantine (compromised `alpha`), it may publish a freshness proof that is signed but false — asserting non-revocation for a warrant it has actually revoked internally but not published. The verifier cannot detect this from the proof alone. The guardrail is *cross-domain corroboration*: for high-blast-radius capabilities, the verifier must obtain freshness proofs from at least `f+1` independent trust domains (where `f` is the assumed Byzantine fraction), and require agreement. A single-domain freshness proof is necessary but not sufficient for `write:records`; it is sufficient for `read:public`. This is the AAIF analogue of PBFT's quorum, applied to revocation state rather than to transaction ordering. ## Operational Effect The operational effect of the missing invariant is a *silent capability leak* across partition boundaries. The revoked agent continues to act, the verifier's logs show `warrant_valid`, and the only detection mechanism is post-hoc audit reconciliation. In the observed incident, the mean time to detection was 14 hours (partition heal + audit cycle), and the mean time to containment was 14.2 hours. The 2,847 writes were not reversible because `gamma`'s record store had no transactional rollback for cross-domain writes. The architectural guardrail that bounds this: every AAIF warrant must carry a `max_staleness` field *per capability*, and every verifier must enforce it as a hard precondition, not a soft fallback. The `max_staleness` for a capability is set by the *issuer* at warrant issuance time, based on the blast radius of the capability, and is *signed* — the verifier cannot relax it. A verifier that cannot obtain a freshness proof within `max_staleness` must raise a `StaleWarrantError` and reject, not fall back to cache. The cache is a performance optimization for *freshness proof retrieval*, not a substitute for freshness itself. Additionally, the verifier must maintain a *partition-aware* revocation state: when a pull fails, it must record the failure and the time, and any subsequent acceptance of a warrant with a capability whose `max_staleness` is shorter than the time since last successful pull must be flagged as a *policy violation* in the audit log, even if the local policy would have allowed it. This creates a detectable signal (the flag) that can trigger alerting before the partition heals. Finally, the key rotation interaction: a verifier that still holds `k-12` after `alpha` has rotated to `k-13` is in a *key staleness* state distinct from *revocation staleness*. The two must be tracked separately. A warrant signed with `k-12` may be valid (if `k-12` is still within its overlap window) but its revocation state may be stale. The verifier must not conflate "I can verify the signature" with "I know the current revocation state." These are independent predicates, and the failure mode observed was precisely the conflation of the two: `gamma`'s verifier saw a valid `k-12` signature and a valid window, and treated that as sufficient, ignoring that its revocation state was 13 hours stale. The following code implements the guardrail as a verifier-side precondition check, with explicit separation of signature validity, window validity, and freshness, and a hard failure on stale high-blast-radius warrants. ```python import time from dataclasses import dataclass from typing import Optional class StaleWarrantError(RuntimeError): """Raised when a warrant's revocation freshness cannot be established within the capability's max_staleness bound.""" pass class ByzantineFreshnessError(RuntimeError): """Raised when cross-domain freshness proofs disagree beyond the tolerated Byzantine fraction.""" pass @dataclass class Capability: name: str max_staleness_seconds: int # signed by issuer; verifier cannot relax @dataclass class Warrant: agent_id: str issuer_domain: str signing_key_id: str not_before: float not_after: float capabilities: list[Capability] signature_valid: bool # set by signature check, not trusted from wire @dataclass class RevocationCache: last_successful_pull: float last_known_epoch: str freshness_proofs: dict # domain -> (epoch, timestamp, signed_by) def verify_warrant( warrant: Warrant, cache: RevocationCache, now: float, required_corroboration: int = 1, ) -> bool: # 1. Signature validity (local predicate) if not warrant.signature_valid: raise StaleWarrantError( f"signature invalid for {warrant.agent_id}; cannot proceed" ) # 2. Window validity (local predicate) if not (warrant.not_before <= now <= warrant.not_after): raise StaleWarrantError( f"warrant for {warrant.agent_id} outside validity window" ) # 3. Freshness: per-capability, fail closed cache_age = now - cache.last_successful_pull for cap in warrant.capabilities: if cache_age > cap.max_staleness_seconds: # Distinguish "no proof at all" from "proof too old" proof = cache.freshness_proofs.get(warrant.issuer_domain) if proof is None: raise StaleWarrantError( f"no freshness proof for {warrant.agent_id} " f"capability {cap.name}; cache age {cache_age:.0f}s " f"> max_staleness {cap.max_staleness_seconds}s" ) proof_age = now - proof[1] if proof_age > cap.max_staleness_seconds: raise StaleWarrantError( f"freshness proof for {warrant.agent_id} " f"capability {cap.name} is {proof_age:.0f}s old, " f"exceeds max_staleness {cap.max_staleness_seconds}s" ) # 4. Byzantine corroboration for high-blast-radius capabilities high_blast = [c for c in warrant.capabilities if c.max_staleness_seconds <= 60] if high_blast: proofs = cache.freshness_proofs if len(proofs) < required_corroboration: raise ByzantineFreshnessError( f"insufficient corroboration for {warrant.agent_id}: " f"{len(proofs)} proofs, need {required_corroboration}" ) epochs = {p[0] for p in proofs.values()} if len(epochs) > 1: # Disagreement among domains; cannot resolve, fail closed raise ByzantineFreshnessError( f"freshness proof disagreement for {warrant.agent_id}: " f"epochs {epochs}" ) return True def accept_or_reject(warrant, cache, now, corroboration=1): try: verify_warrant(warrant, cache, now, corroboration) return "ACCEPT" except StaleWarrantError as e: # Fail closed; log with capability context for audit return f"REJECT_STALE: {e}" except ByzantineFreshnessError as e: return f"REJECT_BYZANTINE: {e}" ```