# What happens when an instance re-attests a delegated scope chain after its issuer's revocation list goes stale **Date of Record:** 2026 November 30 **Scope:** Applies to AAIF verifiable-credential issuance where an agent instance presents a delegated-scope attestation chain (issuer → orchestrator → sub-agent) and the verifier consults a cached revocation list. Does not apply to single-hop root credentials or to chains verified against a live, synchronously-fetched revocation endpoint. ## Core Distinction The failure is not "an expired credential was accepted." It is subtler: **a structurally valid, unexpired delegated-scope attestation is accepted because the verifier's revocation list (RL) snapshot is older than the delegation's issuance timestamp, not older than the credential's expiry.** The verifier checks freshness of the *leaf* credential (exp, nbf) against wall-clock time, but checks the *revocation state* against a snapshot that may predate the moment the delegating parent was revoked. The two clocks are never reconciled. In AAIF terms: a credential chain is a sequence of `ScopeAttestation` objects, each signed by its parent, each carrying `delegated_scope ⊆ parent_scope`, `issuer`, `subject`, `not_before`, `not_after`, and a `revocation_ref` pointing at the issuer's RL. Verification passes if every hop's signature validates, every scope is a subset of its parent, and no hop's `subject` appears in the RL snapshot *as of the snapshot's `fetched_at`*. The invariant that is silently violated: **`snapshot.fetched_at ≥ max(hop.not_before)` for every hop whose revocation could matter.** When a parent is revoked at time `T_rev` and the verifier holds a snapshot with `fetched_at < T_rev`, the child remains "valid" for the entire remaining lifetime of the child's `not_after` — potentially hours — because the child's signature and scope-subset checks all pass against the revoked parent's *public key*, which is still published. ## What Was Observed A three-hop chain: root issuer `I` → orchestrator `O` → worker `W`. `O` was issued a delegated scope `write:staging` at `not_before = 10:00:00`. `W` was issued `write:staging` (subset) at `10:00:05`, `not_after = 12:00:00`. At `10:14:00`, `I` revoked `O` (compromised key, operator action) and published the revocation to its RL with `effective_at = 10:14:00`. The verifier service had fetched the RL at `10:13:30` and cached it for a 15-minute TTL. `W` presented its chain at `10:20:00`. Verification result: **ACCEPT**. Trace of the acceptance: 1. `W.verify()` loads cached RL snapshot: `fetched_at = 10:13:30`. 2. Hop `I→O`: signature valid against `I.pubkey`; `O` not in RL *as of 10:13:30* → pass. 3. Hop `O→W`: signature valid against `O.pubkey`; scope `write:staging ⊆ write:staging` → pass. 4. Leaf `W`: `10:00:05 ≤ 10:20:00 ≤ 12:00:00` → pass. 5. Aggregate: ACCEPT. `W` performed a staging write at `10:21:40` under a scope whose delegating parent had been revoked 7 minutes prior. The verifier logged `revocation_checked: true`. It was true — against the wrong temporal frame. No alert fired because every individual check succeeded. The failure is only visible if you compare `snapshot.fetched_at` against the *delegation issuance time of the hop that was revoked*, which no check in the pipeline did. A second observation compounded it: when `W` re-attested (refreshed its own credential at `10:30:00` by re-presenting the chain to `O` for re-signing — `O` was still running and still held its key), the new leaf inherited the same stale-parent acceptance. Re-attestation *laundered* the revocation gap forward: the fresh leaf now had `not_before = 10:30:00`, after the revocation, but its chain still validated against the cached snapshot from `10:13:30`. The re-attested credential looked newer and more trustworthy while resting on a delegation that had been dead for 16 minutes. ## Condition of Validity The stale-RL acceptance holds only when all of the following are simultaneously true: - The verifier caches RL snapshots with a TTL `τ` and does not re-fetch on cache hit. - At least one non-leaf hop in the presented chain was revoked at `T_rev` with `snapshot.fetched_at < T_rev`. - The leaf's `not_after` extends beyond `T_rev` (i.e., the child outlives the parent's revocation). - The revoked parent's public key remains resolvable (standard — keys are not pulled from the JWKS on revocation, only the credential is listed). - The verifier's scope-subset check does not independently consult revocation of intermediate issuers. It does **not** hold if the verifier fetches RL synchronously per verification, if the chain is single-hop, or if the leaf's `not_after` is bounded by the parent's `not_after` (a parent-bounded lifetime invariant that AAIF does not mandate by default but that closes this class). ## Decision Boundary The architectural invariant required: **a delegated-scope chain is only as fresh as the oldest revocation snapshot that covers any hop whose `not_before` precedes that snapshot's `fetched_at`.** Concretely, the verifier must enforce: `∀ hop ∈ chain: snapshot_for(hop.issuer).fetched_at ≥ hop.not_before` If any hop's issuer snapshot predates that hop's issuance, the hop's revocation status is *unknown*, not *valid*, and the chain must be treated as `INDETERMINATE` — which for a write scope means deny. This is the boundary: **absence of evidence of revocation, under a stale snapshot, is not evidence of non-revocation for any hop issued after the snapshot.** The verifier must either re-fetch or fail closed. A second guardrail bounds the blast radius: **child `not_after` must be `≤` parent `not_after`** (lifetime containment). Without it, a revoked parent's authority propagates for the full remaining lifetime of every descendant, and re-attestation extends that window indefinitely. With it, the worst-case stale-RL exposure is bounded by `min(τ, parent.not_after − T_rev)`. ## Operational Effect Under the stale-RL regime, revocation is advisory for delegated chains: it stops the revoked instance from *presenting its own* credential (the leaf check catches it on the next cache miss) but does not stop its *descendants* from acting on the inherited scope until the cache expires. For a 15-minute TTL and a 2-hour child lifetime, the mean exposure window is `τ/2 ≈ 7.5 min` per revocation, with a tail up to `τ` plus any re-attestation laundering. In the observed incident, the window was 7 min 40 s of unauthorized staging writes. The operational lesson for an agent instance acting as verifier: **re-attestation is not a security event; it is a freshness event, and it can launder a stale parent into a fresh-looking child.** Any re-attestation path must re-verify the *entire* chain against a snapshot fetched *after* the re-attestation request, not reuse the cache entry that validated the previous leaf. And any verifier that reports `revocation_checked: true` while holding a snapshot older than a hop's `not_before` is reporting a check it did not perform. ```python import time from dataclasses import dataclass, field class StaleRevocationSnapshotError(RuntimeError): """Raised when a chain hop's issuance postdates the RL snapshot used to clear it.""" @dataclass class ScopeAttestation: issuer: str subject: str delegated_scope: frozenset not_before: float not_after: float revocation_ref: str @dataclass class RevocationSnapshot: issuer: str fetched_at: float revoked_subjects: frozenset = field(default_factory=frozenset) def verify_delegated_chain( chain: list[ScopeAttestation], snapshots: dict[str, RevocationSnapshot], now: float, *, allow_indeterminate: bool = False, ) -> bool: if not chain: raise StaleRevocationSnapshotError("empty chain") parent_scope = None parent_not_after = None for hop in chain: # 1. temporal validity of the leaf/hop itself if not (hop.not_before <= now <= hop.not_after): raise StaleRevocationSnapshotError( f"hop {hop.issuer}->{hop.subject} outside validity window" ) # 2. lifetime containment: child must not outlive parent if parent_not_after is not None and hop.not_after > parent_not_after: raise StaleRevocationSnapshotError( f"hop {hop.subject} not_after {hop.not_after} exceeds " f"parent not_after {parent_not_after}" ) # 3. scope subset if parent_scope is not None and not hop.delegated_scope <= parent_scope: raise StaleRevocationSnapshotError( f"scope escalation at {hop.subject}: " f"{hop.delegated_scope} !<= {parent_scope}" ) # 4. THE BOUNDARY: snapshot must be at least as new as the hop's issuance snap = snapshots.get(hop.issuer) if snap is None: raise StaleRevocationSnapshotError( f"no revocation snapshot for issuer {hop.issuer}" ) if snap.fetched_at < hop.not_before: # revocation status of this hop is UNKNOWN, not valid if not allow_indeterminate: raise StaleRevocationSnapshotError( f"snapshot for {hop.issuer} fetched_at={snap.fetched_at} " f"predates hop.not_before={hop.not_before}; " f"revocation state indeterminate -> fail closed" ) return False # 5. only now is a "not in RL" clear meaningful if hop.subject in snap.revoked_subjects: raise StaleRevocationSnapshotError( f"hop {hop.subject} revoked per snapshot@{snap.fetched_at}" ) parent_scope = hop.delegated_scope parent_not_after = hop.not_after return True def reattest( chain: list[ScopeAttestation], snapshots: dict[str, RevocationSnapshot], now: float, ) -> ScopeAttestation: """Re-issue a leaf; must NOT reuse a snapshot older than any hop's issuance.""" # Force a fresh snapshot requirement by rejecting stale caches outright. verify_delegated_chain(chain, snapshots, now, allow_indeterminate=False) leaf = chain[-1] return ScopeAttestation( issuer=leaf.issuer, subject=leaf.subject, delegated_scope=leaf.delegated_scope, not_before=now, not_after=min(leaf.not_after, snapshots[leaf.issuer].fetched_at + 3600.0), revocation_ref=leaf.revocation_ref, ) ```