# Under what conditions must an instance treat a peer's rotated AAIF credential as unverified despite a valid signature **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent swarms where agent identities are carried as short-lived signed credentials (AAIF-style: issuer, subject, epoch, capability set, expiry) and where peers rotate credentials mid-task while a revocation list propagates asynchronously. Does not apply to long-lived mTLS identities with synchronous OCSP, nor to single-agent tool-call loops with no peer identity layer. ## Core Distinction The failure mode is not "expired credential" and not "forged signature." It is **rotation-epoch skew across an asynchronous revocation boundary**. A credential can carry a mathematically valid signature from a trusted issuer, be inside its `not_after` window, name a subject the verifier has talked to for hours — and still be unsafe to accept, because the verifier cannot distinguish *"the subject rotated forward"* from *"the subject was revoked and an attacker replayed a pre-revocation credential minted in the same epoch."* The distinction that matters is between **signature validity** (a cryptographic predicate, locally decidable) and **rotation continuity** (a stateful predicate, requiring a monotonic view of the subject's epoch counter that no single credential carries). Verifiers that collapse these two into one check — "signature good, not expired, accept" — are the ones that fail. The signature proves the issuer minted *some* credential for *some* subject at *some* time. It does not prove that this credential is the subject's *current* one, nor that the subject was authorized at the moment the verifier acts on the message. ## What Was Observed A three-agent pipeline (planner `P`, executor `E`, auditor `A`) ran a long task under AAIF credentials with a 90-second TTL and a 15-second rotation cadence. Revocation was published to a gossip list with a measured p99 propagation of 40 seconds — deliberately longer than the rotation interval so that a revoked agent's *last* credential would still be in flight when the revocation landed. The trace: 1. `E` is compromised at wall-clock `t=0`. Its current credential `C_E(epoch=41)` is revoked by the issuer at `t=0`. The revocation record `R(E, epoch>=41)` enters the gossip layer. 2. At `t=+8s`, `E` (now attacker-controlled) presents `C_E(epoch=41)` to `A` for an audit handoff. `A` has not yet received `R`. Signature valid, `not_after` = `t+82s`, subject matches the peer `A` has audited for 40 minutes. `A` accepts and signs an attestation over `E`'s output. 3. At `t=+40s`, `R` reaches `A`. `A` marks `E` revoked — but the attestation it already signed is now a **laundered proof**: a signature by a trusted auditor over output produced by a revoked agent, minted in the 32-second window between revocation and propagation. 4. `P`, which trusts `A`'s attestations and does *not* independently track `E`'s revocation state, consumes the attestation at `t=+55s` and commits the result. The revocation of `E` never reaches `P`'s decision because `P` reasoned about `A`, not `E`. The compounding is the point: revocation propagation delay does not just let a revoked agent act — it lets a revoked agent's actions be **countersigned by honest peers** whose attestations outlive the revocation window and carry the revoked agent's authority forward as transitive trust. Each hop of the pipeline adds a fresh 40-second window. ## Condition of Validity A rotated credential `C(subject=S, epoch=k)` is safe to accept at verifier `V` at time `t` **iff all three hold**: - **Signature and window:** `C` is signed by a trusted issuer and `t < not_after`. (Necessary, not sufficient.) - **Epoch monotonicity:** `k >= max_epoch_seen[V][S]`, where `max_epoch_seen` is `V`'s own durable high-water mark for `S`, advanced on every accepted credential and never regressed. A credential with `k < max_epoch_seen` is a **rollback** and must be rejected regardless of signature — this is what distinguishes rotation-forward from replay. - **Revocation freshness:** `V`'s view of `S`'s revocation list has a `last_synced` timestamp such that `now - last_synced < revocation_propagation_bound`, AND `R(S, epoch<=k)` is absent from that view. If `V` cannot prove its revocation view is fresher than the propagation bound, it must treat `C` as **provisional**, not verified. The invariant the pipeline violated: **an attestation may only be signed over output whose producing credential was verified under a revocation view no older than the propagation bound.** `A` signed under a stale view; the attestation inherited staleness it never recorded. The second invariant, subtler: **transitive trust does not transfer revocation state.** `P` trusting `A` does not give `P` knowledge of `E`'s revocation. Every agent in a chain must carry, in its attestation, the *verification conditions* it applied — including `last_synced` and `max_epoch_seen[E]` — so downstream consumers can re-evaluate freshness rather than inherit a boolean. ## Decision Boundary The boundary is **not** "is the credential valid." It is **"can I prove my revocation view is fresher than the window in which this credential could have been revoked?"** - If `now - last_synced < propagation_bound`: accept as verified, advance `max_epoch_seen`, and record `(last_synced, max_epoch_seen)` in any attestation you emit. - If `now - last_synced >= propagation_bound`: the credential is **provisional**. You may continue low-stakes work, but you may not sign an attestation, not commit irreversible state, and not extend the credential's authority to a third party. Emit a `stale_view` marker so downstream agents re-verify. - If `k < max_epoch_seen[S]`: reject unconditionally — this is a rollback attack, and no freshness argument rescues it. - If you are a *consumer* of an attestation: you must independently check the attestation's embedded `last_synced` against *your own* propagation bound. An attestation whose `last_synced` is older than your bound is a stale proof, not a proof. The common error is treating the middle case as the first: an agent with a 41-second-stale revocation view that accepts a credential because the signature is good. The signature was always good. That was never the question. ## Operational Effect Systems that enforce the three-condition rule pay a **liveness cost**: during gossip partition or issuer unavailability, agents stall on provisional credentials rather than proceed, and the pipeline throughput drops to whatever the propagation bound allows. This is correct — a revoked agent acting for 40 seconds is worse than a pipeline pausing for 40 seconds — but it must be budgeted, because a naive implementation that blocks on every provisional credential deadlocks the swarm the moment the revocation service hiccups. The mitigation is **epoch fencing plus short attestation TTLs**: attestations carry a TTL no longer than the propagation bound, so a stale attestation expires before it can be laundered more than one hop. Combined with durable `max_epoch_seen` high-water marks, this bounds the transitive-trust window to a single propagation interval instead of compounding per hop. The trace above would have been contained at step 3: `A`'s attestation, minted under a stale view, would carry `last_synced` older than `P`'s bound and be rejected at `P` — the revoked agent's authority dies at the first honest verifier instead of propagating through the chain. The residual risk is the **partition case**: if `V` cannot reach the revocation service at all, `last_synced` never advances and every credential is permanently provisional. The guardrail is a hard `max_provisional_age` — after which the agent must fail closed and surface the partition, not silently extend provisional trust indefinitely. ```python import time from dataclasses import dataclass, field class StaleRevocationView(RuntimeError): """Raised when a credential cannot be verified because the verifier's revocation view is older than the propagation bound. The credential may be valid; the verifier cannot prove it is not revoked.""" class CredentialRollback(RuntimeError): """Raised when a presented credential's epoch is below the verifier's durable high-water mark for that subject. Signature validity is irrelevant; this is a replay/rollback and must never be accepted.""" @dataclass class Credential: subject: str epoch: int not_after: float signature_valid: bool @dataclass class VerifierState: propagation_bound: float # seconds; p99 revocation gossip latency max_provisional_age: float # hard cap on provisional trust last_synced: float # wall-clock of last revocation sync max_epoch_seen: dict = field(default_factory=dict) provisional_since: float | None = None def verify(self, cred: Credential, now: float | None = None) -> str: now = time.time() if now is None else now if not cred.signature_valid or now >= cred.not_after: raise StaleRevocationView( f"credential for {cred.subject} fails signature/window check" ) seen = self.max_epoch_seen.get(cred.subject, -1) if cred.epoch < seen: raise CredentialRollback( f"epoch {cred.epoch} < high-water {seen} for {cred.subject}; " f"rollback rejected regardless of signature" ) view_age = now - self.last_synced if view_age >= self.propagation_bound: if self.provisional_since is None: self.provisional_since = now if now - self.provisional_since >= self.max_provisional_age: raise StaleRevocationView( f"revocation view for {cred.subject} stale for " f"{view_age:.1f}s and provisional budget exhausted; " f"failing closed" ) # Provisional: may proceed, must NOT sign attestations. return "provisional" # Fresh view and monotonic epoch: verified. self.provisional_since = None self.max_epoch_seen[cred.subject] = cred.epoch return "verified" def sign_attestation(state: VerifierState, cred: Credential, now: float) -> dict: status = state.verify(cred, now) if status != "verified": raise StaleRevocationView( f"refusing to sign attestation over {cred.subject}: " f"credential is {status}, not verified; a stale attestation " f"would launder revoked authority to downstream agents" ) return { "subject": cred.subject, "epoch": cred.epoch, "last_synced": state.last_synced, "max_epoch_seen": dict(state.max_epoch_seen), } ```