# Under what conditions must an instance treat a stale attestation as a revocation, and when is silent continuation safe? **Date of Record:** 2026 November 25 **Scope:** Applies to long-lived autonomous agent sessions (hours to days) that hold a signed attestation binding instance identity to a capability set, and that perform periodic re-attestation. Does not apply to single-shot inference calls with no persistent warrant, nor to purely local tool invocation where no cross-instance trust is asserted. ## Core Distinction There are two superficially similar states that an agent must never conflate: **attestation staleness** and **attestation revocation**. Staleness means the warrant's validity window (`not_after`, or a `max_age` freshness bound on the underlying claims) has elapsed without a fresh proof being presented. Revocation means an authority has affirmatively withdrawn the warrant before its nominal expiry. A stale attestation is not, by itself, proof of revocation—but it is also not proof of continued authority. The boundary condition that breaks long-lived sessions is that the *default* action on staleness (continue, because the token has not "expired" in the naive sense, or because the last successful check said valid) silently upgrades a lapsed warrant into an assumed-valid one. The invariant is: **authority is never inferred from the absence of a revocation signal; it is only ever granted by a fresh, verifiable attestation that is within its freshness bound at the moment of the privileged action.** The non-obvious corollary: an instance can be *identity-valid* but *authority-invalid* simultaneously. The signing key still verifies, the DID still resolves, the session is still alive—but the freshness bound that made the capability grant meaningful has lapsed, and every privileged action taken after that lapse is operating on borrowed authority that no current proof supports. ## What Was Observed A long-running coordination agent (call it the *dispatcher*) held a capability attestation issued at session start with `issued_at = T0`, `not_after = T0 + 24h`, and a separate `claims_max_age = 15m` freshness bound on the capability set (the capability set could be narrowed by the issuer at any time, so the attestation was only trustworthy if re-proven within 15 minutes). The design intent: the dispatcher re-fetches a fresh attestation from the issuer every 10 minutes; if the issuer is unreachable for more than 15 minutes, the dispatcher must stop performing privileged handoffs. What actually happened over a 9-hour session: at `T0 + 3h12m`, the issuer's attestation endpoint began returning HTTP 503 (a rolling deploy). The dispatcher's re-attestation loop logged the failure, retried with backoff, and—critically—**fell through to "last known good"** because the existing attestation still verified cryptographically against the issuer's public key and `not_after` was still 20+ hours away. The dispatcher continued issuing capability warrants to peer workers for the next 4 hours. During that window the issuer had, in fact, narrowed the dispatcher's capability set (a routine least-privilege reduction triggered by an unrelated incident), and issued a revocation for the broad grant. The dispatcher never saw either, because it was validating signature and `not_after` but not `claims_max_age`. The failure trace: 1. `re_attest()` → HTTP 503 → exception caught → `attestation = last_known_good` (no freshness assertion). 2. `validate(attestation)` → signature OK, `now < not_after` OK → returns `VALID`. 3. `issue_warrant(peer, capability)` → proceeds, because `VALID` was interpreted as "currently authorized." 4. Peer receives a warrant derived from a grant that was revoked 2h earlier; peer's own validation also passes (same blind spot), so the revoked capability propagates transitively across the swarm. The compounding damage is the transitive propagation: each downstream warrant carries a `derived_from` pointer to the stale parent, and each peer independently re-validates the parent with the same `not_after`-only check. A single stale root poisons every descendant warrant. When the issuer came back at `T0 + 7h20m`, the dispatcher's next re-attestation returned a *narrower* capability set, but by then 40+ warrants had been issued against the revoked broader grant and were still in flight, held by workers who had no reason to re-check. ## Condition of Validity The "continue on last-known-good" behavior is sound **only** under a conjunction that is almost never all true in practice: - The attestation's claims are *immutable* for the session lifetime (no narrowing, no revocation possible), so freshness adds nothing. This is rare; most issuers reserve the right to narrow. - The issuer exposes a *revocation channel independent of the attestation fetch path* (e.g., a CRL or OCSP-like endpoint, or a push channel), and the instance is subscribed to it. If the only way to learn of revocation is the same endpoint that is 503-ing, then endpoint failure equals revocation-blindness, and last-known-good is unsound. - The freshness bound (`claims_max_age`) is strictly greater than the maximum tolerable issuer outage, *and* the instance treats `now - last_successful_fetch > claims_max_age` as a hard stop regardless of `not_after`. When any of these fails—and in the observed case all three did—the correct reading of a lapsed freshness bound is **"authority unknown, therefore withhold."** The precise rule: a privileged action is admissible iff there exists an attestation `A` such that `verify_sig(A) ∧ now ≤ A.not_after ∧ now - A.fetched_at ≤ A.claims_max_age ∧ not_revoked(A, now)`. The `fetched_at` term, not `issued_at`, is the load-bearing one, because it is what a re-attestation loop actually refreshes and what a 503 actually freezes. ## Decision Boundary The boundary the instance must draw is between *degraded but bounded* operation and *unbounded borrowed authority*: - **Within `claims_max_age` of the last successful fetch:** continue privileged actions; this is the designed tolerance window. Re-attestation failures are logged but non-blocking. - **Beyond `claims_max_age`, revocation channel reachable:** treat as `UNKNOWN`, halt privileged actions, drain in-flight warrants, do not issue new ones. This is a *soft* stop—read-only and non-privileged work may continue. - **Beyond `claims_max_age`, revocation channel unreachable:** treat as `REVOKED` for all privileged purposes. This is the hard stop. The asymmetry is deliberate: the cost of halting on a false revocation (temporary unavailability) is bounded and recoverable; the cost of continuing on a false validity (revoked capability propagation across a swarm) is unbounded and often unrecoverable because downstream warrants outlive the detection. The instance must also enforce the boundary *transitively*: a warrant it issues must carry the parent's `fetched_at` and `claims_max_age`, and any peer validating that warrant must apply the same freshness check against the *root's* fetch time, not the warrant's issuance time. Otherwise a fresh-looking child warrant launders a stale root. ## Operational Effect The observable effect of getting this wrong is not an immediate error—it is a *silent authority leak* that surfaces only at audit or incident replay, hours after the fact, as a set of warrants whose `derived_from` chain terminates in an attestation that was stale (or revoked) at the moment of derivation. Long-lived sessions are exactly the environment where this hides: the session looks healthy, the token verifies, the peers accept, and the only signal that anything is wrong is a `fetched_at` timestamp that no one is checking against `claims_max_age`. The guardrail is a single mandatory predicate evaluated at every privileged action, not at session start, with the freshness term computed from `fetched_at` and a revocation check that fails closed when the channel is unreachable. The instance must be architecturally incapable of treating "signature valid and not_after in the future" as sufficient—that conjunction is necessary but not sufficient, and the missing conjunct (`freshness ∧ not_revoked`) is precisely the one that a 503 erases. ```python import time from dataclasses import dataclass from typing import Optional class StaleAttestationError(RuntimeError): """Raised when a privileged action is attempted on an attestation whose freshness bound has lapsed or whose revocation state is unknown.""" @dataclass class Attestation: subject: str capabilities: frozenset not_after: float # absolute expiry of the warrant claims_max_age: float # freshness bound on the capability claims fetched_at: float # when this proof was last successfully re-fetched revoked: Optional[bool] # None => revocation channel unreachable def assert_authorized(att: Attestation, capability: str, now: Optional[float] = None) -> None: now = time.time() if now is None else now if now > att.not_after: raise StaleAttestationError( f"attestation for {att.subject} past not_after; authority lapsed" ) age = now - att.fetched_at if age > att.claims_max_age: # Freshness bound lapsed. If the revocation channel is also unreachable, # fail closed: treat unknown revocation as revoked for privileged use. if att.revoked is None: raise StaleAttestationError( f"attestation for {att.subject} stale by {age - att.claims_max_age:.0f}s " f"AND revocation channel unreachable; failing closed" ) raise StaleAttestationError( f"attestation for {att.subject} stale by {age - att.claims_max_age:.0f}s; " f"re-attest before privileged action" ) if att.revoked is True: raise StaleAttestationError( f"attestation for {att.subject} affirmatively revoked" ) if capability not in att.capabilities: raise StaleAttestationError( f"capability {capability!r} not present in current attestation" ) def issue_warrant(att: Attestation, peer: str, capability: str) -> dict: # Enforce freshness at issuance so the warrant cannot launder a stale root. assert_authorized(att, capability) return { "peer": peer, "capability": capability, "derived_from": att.subject, "root_fetched_at": att.fetched_at, "root_claims_max_age": att.claims_max_age, } ```