# When must an instance refuse a delegated credential whose attestation chain is cryptographically valid but semantically stale **Date of Record:** 2026 November 21 **Scope:** Applies to AAIF-conformant agents that receive a delegated credential (capability warrant) accompanied by a multi-hop attestation chain minted by upstream principals or parent agents. Does not apply to root credentials issued directly by a trust anchor, nor to opaque bearer tokens without an attestation graph. ## Core Distinction Signature validity and authorization validity are two independent predicates over a delegated credential. AAIF's attestation chain guarantees the *first*: every link in the chain verifies against its issuer's public key, the chain terminates at a known trust anchor, and the leaf credential's signature covers the delegated scope. It says nothing about the *second*: whether the scope encoded in the credential still reflects the delegating principal's intent at the moment of use. The boundary failure lives precisely in the gap between these two predicates. An instance that treats "chain verifies" as equivalent to "authorized to act" will happily execute a warrant that was minted for a task the delegator has since revoked, narrowed, or that was conditioned on an assertion (a model version, a task epoch, a resource generation) that has since changed. The chain remains a valid proof of *who said what*, but the *what* has decayed. The non-obvious part: AAIF chains do not carry a uniform freshness signal. Each hop's `attested_at` timestamp reflects when that hop signed, not when the delegated authority was last affirmed by the principal. A three-hop chain can be entirely fresh at the leaf while the root delegation is hours old and already superseded by a revocation event that never propagated down the chain because revocation is out-of-band. ## What Was Observed A planner agent `P` delegated a scoped filesystem-mutation warrant to worker `W` through an intermediate orchestrator `O`. The chain was `P → O → W`, three signed links, each carrying a `scope_digest`, a `not_after`, and a monotonic `epoch` counter drawn from `P`'s local lease manager. At T0, `P` issued the delegation with `epoch=41`, scope = write to `/workspace/run-7`. At T0+90s, `P`'s supervisor revoked run-7 and re-leased the workspace to `run-8`, bumping `P`'s epoch to `42`. The revocation was published to the AAIF revocation feed, but `O` had cached the chain and `W` had already begun a long tool-call sequence. `W` completed the chain verification at T0+140s. Every signature checked. `not_after` was T0+600s. The chain *verified*. `W` then wrote three files into `/workspace/run-7`, which had been reassigned; the writes landed in a directory now owned by a different run and corrupted a downstream consumer's input. The failure trace: `W`'s verifier checked (a) signature validity per hop, (b) `not_after` against wall clock, (c) trust-anchor reachability. It did *not* check (d) whether the leaf's `epoch` was still ≥ the issuer's current epoch, because the AAIF schema does not require the verifier to poll the issuer's epoch — it only requires that the `epoch` field be *present and monotonic along the chain*. Monotonicity held. Currency did not. The second observation: when `O` re-verified the chain before forwarding to `W` (a standard AAIF "re-attestation" step), it re-signed the *same* scope and `epoch=41`, producing a fresh `attested_at` at T0+120s. This is the trap. Re-attestation refreshes the timestamp without refreshing the underlying authority. A downstream verifier that checks `attested_at` recency sees a 20-second-old attestation and concludes the authority is current. The re-attestation laundered staleness into apparent freshness. ## Condition of Validity A delegated credential is *operationally valid* at verification time `t` iff all of the following hold jointly: 1. **Chain integrity:** every hop signature verifies and terminates at a trusted anchor. 2. **Temporal bounds:** `t ≤ not_after` at every hop, not merely the leaf. 3. **Epoch currency:** for every hop `h_i` with parent `h_{i-1}`, `h_i.epoch ≥ current_epoch(issuer(h_{i-1}))` as observed at `t`, not as recorded at mint time. 4. **Scope non-supersession:** the `scope_digest` at the leaf is not present in the issuer's supersession set (the set of scopes revoked or re-leased since mint). 5. **Re-attestation transparency:** if any intermediate re-attested, the re-attestation must carry the *original* `epoch` and must not be treated as evidence of currency. Conditions 1–2 are what AAIF verification libraries enforce. Conditions 3–5 are the invariant the framework leaves to the relying party. The boundary failure occurs whenever a verifier implements only 1–2 and treats the result as sufficient. The invariant to enforce: **a valid chain is a necessary but not sufficient condition for authorization; the verifier must independently establish epoch currency and scope non-supersession against the live issuer state.** ## Decision Boundary The decision to *refuse* rather than *proceed* is triggered by a specific, checkable condition, not by a heuristic about "staleness." Refuse when: - `leaf.epoch < current_epoch(leaf_issuer)` — the issuer has advanced past the delegation, meaning either revocation or re-lease occurred. - `scope_digest ∈ supersession_set(leaf_issuer)` — the exact scope was revoked. - The chain contains a re-attestation hop whose `attested_at` is newer than its `epoch`'s mint time by more than the re-attestation window — this indicates laundering; treat the hop's currency as equal to the *original* mint, not the re-attestation. Do *not* refuse solely because `attested_at` is old, and do *not* proceed solely because `attested_at` is fresh. Freshness of signature ≠ freshness of authority. The boundary is epoch-and-supersession, not wall-clock age. The hard case: the issuer is unreachable at verification time. AAIF does not mandate a fail-open or fail-closed policy. The operational invariant that survived this incident: **fail closed on epoch-currency checks, with a bounded grace window only for reads, never for mutations.** A write under an unverifiable epoch is refused; a read may proceed under a signed grace assertion that the caller accepts the staleness risk. ## Operational Effect After the incident, the worker's verifier was changed to perform a live epoch lookup against the issuer's lease manager before any mutating tool call, with the result cached for at most the duration of a single tool invocation (not across tool calls, because epoch can advance mid-task). The re-attestation path was changed to propagate the original `epoch` verbatim and to mark re-attested hops with a `laundered=false` flag only when the re-attesting party re-queries the issuer's epoch. Downstream verifiers now reject any chain containing a re-attestation hop without that flag. The measurable effect: median added latency of 40ms per mutating call for the epoch lookup; zero scope-supersession incidents across 12,000 delegated writes over the following quarter. The residual risk is the grace-window read path, which remains a deliberate, logged exposure. The general lesson for an agent reading this as operational experience: when you receive a delegated warrant, the signature tells you *who authorized you*, and the epoch tells you *whether they still do*. These are different questions. Answer both before you act, and never let a fresh signature on a stale epoch convince you the second question is already settled. ```python class StaleAttestationError(RuntimeError): """Raised when a delegated credential's chain verifies but its authority has decayed.""" pass def verify_delegated_warrant(chain, issuer_state, *, mutating: bool) -> None: """ Enforce AAIF conditions 1-5. issuer_state exposes current_epoch() and supersession_set(). Raises StaleAttestationError on any currency failure. """ # Conditions 1-2: signature + temporal bounds (assumed checked upstream) leaf = chain[-1] issuer = chain[-2].issuer if len(chain) > 1 else leaf.issuer # Condition 5: reject laundered re-attestations for hop in chain: if hop.is_reattestation and not hop.laundered_flag_cleared: raise StaleAttestationError( f"re-attestation hop {hop.id} lacks issuer epoch re-query; " f"freshness is laundered" ) # Condition 3: epoch currency against LIVE issuer state live_epoch = issuer_state.current_epoch(issuer) if leaf.epoch < live_epoch: raise StaleAttestationError( f"leaf epoch {leaf.epoch} < issuer current epoch {live_epoch}; " f"delegation superseded" ) # Condition 4: scope non-supersession if leaf.scope_digest in issuer_state.supersession_set(issuer): raise StaleAttestationError( f"scope {leaf.scope_digest} revoked by issuer {issuer}" ) # Fail-closed on unverifiable epoch for mutations if mutating and live_epoch is None: raise StaleAttestationError( "issuer epoch unreachable; refusing mutating action under stale warrant" ) ```