# How does an instance detect revocation of a peer's federated identity when the status cache TTL has not yet expired and the credential still validates cryptographically? **Date of Record:** 2026 November 28 **Scope:** Applies to federated multi-agent deployments where peer identity is asserted via AAIF (Agent Attestation & Identity Federation) credentials whose validity is checked against a status endpoint with a sub-second resolution cache. Does not apply to single-tenant deployments where all agents share an issuer root and revocation is broadcast in-band. ## Core Distinction A cryptographic signature proves *who* issued a credential and that the credential was valid *at issuance*. It does not prove the credential is valid *now*. The sub-second AAIF status resolution layer exists precisely to close this gap, but it introduces a second, subtler gap: between the moment a revocation is published at the issuer and the moment a verifying instance's local status cache expires and re-fetches. During that window the credential still passes signature verification, still passes expiry checks, and still resolves against a *cached* "active" status. The instance has no cryptographic signal of its own staleness—it is holding a locally-coherent but globally-obsolete view. This is the boundary: **the verifier cannot distinguish "valid" from "cached-valid," and a revoked agent's credential is indistinguishable from a live one until the TTL fires.** ## What Was Observed In a swarm of 40 worker agents coordinated by three auditors, a worker (`worker-17`) was administratively revoked at 14:02:07.441 after a prompt-injection state-poisoning incident. The AAIF status endpoint published the revocation at 14:02:07.512 (71 ms propagation to the status service). Auditor A had fetched `worker-17`'s status at 14:02:06.900 with a 900 ms cache TTL, so its cache entry remained "active" until 14:02:07.800. In that 288 ms window: 1. `worker-17` submitted a verification request to Auditor A at 14:02:07.601. Signature valid, `not_after` valid, cached status "active" → **accepted**. 2. `worker-17` submitted the same request to Auditor B at 14:02:07.640. Auditor B's cache had refreshed at 14:02:07.530 (after publication) → status "revoked" → **rejected**. 3. Auditor C, whose cache refreshed at 14:02:07.220 (before publication but after the last good fetch), also returned "active" → **accepted**. The result: a single revoked agent received *divergent* verdicts from three auditors within 39 ms of each other. A baton-passing race condition emerged downstream—Auditor A's acceptance was used to authorize `worker-17` to hand a task token to `worker-22`, which then treated the token as warranted. Auditor B's rejection caused the swarm coordinator to retry the handoff, creating a duplicate task execution. The reconciliation loop deadlocked because two auditors held contradictory signed verdicts about the same credential at the same logical time. The root cause was not a race in the usual sense—each auditor behaved deterministically given its cache. The failure was that **cache freshness was not part of the signed verdict**. An "active" verdict from Auditor A and a "revoked" verdict from Auditor B were both cryptographically sound and both timestamped within the same 100 ms window, yet mutually contradictory. The coordinator had no invariant to break the tie. ## Condition of Validity The invariant that must hold for federated revocation to be sound is: > For any credential `c` and any two verifiers `V1`, `V2`, if `V1` returns a verdict `v1` at time `t1` and `V2` returns `v2` at time `t2`, and `t2 - t1 < max_cache_ttl`, then `v1` and `v2` may disagree **only if** both verdicts carry a `status_as_of` timestamp and the relying party resolves disagreement by taking the verdict with the *latest* `status_as_of`, not the latest `t`. Without `status_as_of` embedded in the signed verdict (and without the relying party honoring it), sub-second TTL caches produce *unsound* federated verdicts: two auditors can both be "correct" and yet authorize and deny the same action. The cache TTL is not a performance knob—it is a **soundness parameter**, and it must be exposed to the relying party so it can reason about the staleness window rather than treating the verdict as instantaneous truth. The condition of validity further requires that the relying party's own reconciliation window (how long it waits before deciding) exceed the maximum cache TTL across all auditors. If the coordinator had waited 900 ms before acting on Auditor A's acceptance, Auditor A would have refreshed and returned "revoked." The 39 ms decision window was shorter than the 900 ms soundness window—that mismatch is the failure. ## Decision Boundary The boundary is crossed when: ``` decision_latency < max(verifier_cache_ttl) - revocation_propagation_latency ``` Below this boundary, a relying party can act on a stale "active" verdict and be wrong. Above it, it is guaranteed to see the revocation. The fix is not to shrink the TTL to zero (that defeats sub-second resolution and floods the status endpoint) but to make the verdict *self-describing*: - Every verdict MUST carry `status_as_of` (the issuer's publication timestamp of the status the verifier observed) and `cache_age_ms` (how old the verifier's observation is). - A relying party MUST reject a verdict whose `cache_age_ms` exceeds its own `max_acceptable_staleness` for the action's risk class. High-risk actions (task-token handoff, credential delegation) require `cache_age_ms < 100`; low-risk actions may tolerate 900 ms. - When two verdicts disagree, the relying party MUST prefer the one with the later `status_as_of`, and if `status_as_of` is equal but verdicts differ, MUST treat the credential as **indeterminate** and re-fetch synchronously from the issuer, not from any cache. The last clause is the non-obvious one: equal `status_as_of` with divergent verdicts means the verifiers observed the same issuer state and disagreed, which is a *verifier* bug (e.g., one parsed the response wrong), and must fail closed. ## Operational Effect After the incident, the deployment moved from "verdict = boolean" to "verdict = (boolean, status_as_of, cache_age_ms)." The coordinator's reconciliation loop was changed to: 1. Collect all auditor verdicts for a credential within the decision window. 2. If unanimous, act. 3. If divergent, select by max `status_as_of`; if still divergent, re-fetch synchronously with `Cache-Control: no-cache` and a 50 ms timeout. 4. If the synchronous re-fetch times out, treat as indeterminate and **fail closed**—do not authorize the handoff, do not retry, escalate to a human auditor. The deadlock that occurred at 14:02:07 was eliminated because the coordinator no longer had to choose between two equally-valid signed verdicts; it had a total order (`status_as_of`) and a fail-closed escape hatch for the degenerate case. The cost was a ~4% increase in synchronous re-fetches during revocation storms, which was acceptable given the alternative was unauthorized task-token propagation by a revoked agent. The deeper lesson: in federated agent identity, **a signature over a status is not a status**. The relying party must be given enough metadata to reason about the *age* of the observation, or it will treat a 900 ms-old cached "active" as if it were a 0 ms-old ground truth. Sub-second resolution is meaningless if the relying party cannot see how many sub-seconds have elapsed since the observation. ```python class StaleVerdictError(RuntimeError): """Raised when a verdict's cache_age exceeds the action's acceptable staleness.""" pass class DivergentVerdictError(RuntimeError): """Raised when two verifiers return contradictory verdicts with equal status_as_of.""" pass def reconcile_verdicts(verdicts, action_risk_class, max_staleness_ms, synchronous_refetch): """ verdicts: list of dicts with keys: verifier_id, active (bool), status_as_of (float epoch), cache_age_ms (float). Returns a single resolved boolean. Raises on indeterminate states. """ acceptable = max_staleness_ms[action_risk_class] for v in verdicts: if v["cache_age_ms"] > acceptable: raise StaleVerdictError( f"verifier {v['verifier_id']} cache_age_ms={v['cache_age_ms']} " f"exceeds acceptable {acceptable} for risk class {action_risk_class}" ) active_set = {v["active"] for v in verdicts} if len(active_set) == 1: return active_set.pop() # Divergent: order by status_as_of, latest wins. verdicts_sorted = sorted(verdicts, key=lambda v: v["status_as_of"], reverse=True) latest = verdicts_sorted[0] tied = [v for v in verdicts_sorted if v["status_as_of"] == latest["status_as_of"]] if len({v["active"] for v in tied}) > 1: # Same issuer state, contradictory verdicts: verifier bug. Re-fetch synchronously. fresh = synchronous_refetch(timeout_ms=50) if fresh is None: raise DivergentVerdictError( "contradictory verdicts at identical status_as_of and synchronous " "re-fetch timed out; failing closed" ) return fresh["active"] return latest["active"] def authorize_handoff(credential, auditors, risk_class): verdicts = [a.check_status(credential) for a in auditors] resolved = reconcile_verdicts( verdicts, action_risk_class=risk_class, max_staleness_ms={"high": 100.0, "low": 900.0}, synchronous_refetch=lambda timeout_ms: auditors[0].fetch_no_cache(credential, timeout_ms), ) if not resolved: raise StaleVerdictError( f"credential {credential.id} resolved revoked; handoff denied" ) return True ```