# What happens when an instance re-derives a delegated warrant after its parent warrant was revoked mid-chain **Date of Record:** 2026 November 28 **Scope:** Applies to multi-hop AAIF delegation chains where a downstream agent (the *delegate*) holds a signed warrant whose provenance is a parent warrant issued to an upstream agent (the *delegator*), and where revocation of the parent is propagated asynchronously. Does not apply to single-hop warrants with synchronous issuer-side introspection, nor to bearer tokens without chain metadata. ## Core Distinction The failure here is not "an agent used a revoked credential." That is the ordinary, expected revocation case and is handled by any TTL or introspection check. The non-obvious boundary is subtler: **a downstream agent re-derives or re-signs a sub-warrant from its own cached copy of the parent chain after the parent has been revoked upstream, producing a child warrant that is cryptographically valid, chain-consistent, and passes every local signature check — yet is semantically orphaned.** The distinction that matters operationally: - *Stale credential*: the token itself expired or was flagged; verification fails cleanly. - *Orphaned derivation*: the child is freshly minted, correctly signed by the delegate's own key, correctly references the parent's `chain_id` and `warrant_id`, and verifies against the delegate's cached parent — but the parent no longer exists in the issuer's authoritative revocation set. The child is a *valid signature over an invalid lineage*. Signature validity and lineage validity have decoupled. Any verifier that checks only the former will admit the orphan. ## What Was Observed An orchestrator agent `O` held warrant `W0` (scope: `orders:read`, TTL 3600s). It delegated `W1` to planner `P` with attenuation (scope `orders:read`, `max_children=1`, TTL 1800s). `P` delegated `W2` to executor `E` (scope `orders:read`, TTL 900s). The chain is `W0 → W1 → W2`. At t=400s, a policy engine revoked `W0` after detecting that `O`'s host key was rotated out of the trust root. The revocation was published to the issuer's CRL endpoint. Propagation to `P` and `E` was pull-based with a 120s refresh interval. At t=460s, `E` needed to spawn a short-lived sub-agent `E'` for a batch read. `E` did the correct thing by its own local state: it loaded its cached `W2`, checked `W2`'s `max_children` (0 remaining — wait, it had `max_children=0`), and instead of minting a new child, it *re-signed* `W2`'s claims into a fresh `W2'` with a new nonce and a 60s TTL, reusing the cached `W1` and `W0` public keys as the provenance chain. The re-sign was intended as a nonce refresh, not a delegation, but the AAIF library's `refresh()` path copies the parent chain verbatim into the child's `provenance` block and re-signs the whole envelope. `W2'` was accepted by the resource server. The resource server's verifier walked the provenance chain, checked each signature against the embedded public keys, confirmed `chain_id` linkage, and confirmed `W2'`'s scope was a subset of `W2`'s. All checks passed. The resource server did not query the CRL for intermediate `W0` because its policy was "verify the leaf's immediate parent, trust the chain." The batch read executed against revoked authority. The revocation was 60s old at the time of the read and had been published for 40s. The trace, condensed: 1. `W0` revoked at issuer; CRL updated at t=400s. 2. `P` and `E` still hold cached `W0`/`W1` provenance blocks (refresh interval 120s). 3. `E.refresh(W2)` at t=460s → `W2'` with `provenance=[W0_pub, W1_pub]`, fresh signature, fresh nonce. 4. Resource server verifies `W2'` leaf sig ✓, immediate parent `W2` sig ✓, scope subset ✓, chain_id linkage ✓. 5. Resource server never dereferences `W0` against CRL because `W0` is two hops up. 6. Read proceeds under revoked root authority. The invariant that broke: **a warrant's validity is a property of its entire lineage at verification time, not of its leaf signature and immediate parent at issuance time.** The re-derivation path silently converted a cached, now-orphaned lineage into a freshly-signed artifact, laundering the revocation gap into a new credential. ## Condition of Validity The orphaned-derivation failure requires all of the following to co-occur: 1. **Asynchronous revocation propagation.** The CRL/OCSP equivalent is pull-based and the delegate's cache is stale relative to the issuer. Synchronous introspection would close the window. 2. **A re-signing or refresh path that copies provenance verbatim.** If `refresh()` re-validated the full chain against the issuer before re-signing, the orphan would be caught at mint time. The bug is that refresh treats provenance as opaque bytes. 3. **A verifier that trusts the chain beyond the immediate parent.** "Verify leaf + parent, trust the rest" is the specific policy that admits the orphan. Full-chain re-validation against the issuer's revocation set at verify time would catch it. 4. **A nonce/TTL refresh trigger.** The delegate must have a reason to re-mint. Without a refresh, the original `W2` would simply expire and the stale-credential path would handle it cleanly. The refresh is what creates a *new* artifact that outlives the revocation gap. Remove any one condition and the failure does not occur. This is why it is a boundary condition rather than a general revocation bug: it lives precisely at the intersection of pull-based revocation, verbatim provenance copying, shallow verification, and refresh-driven re-minting. ## Decision Boundary The operational decision is where to place the lineage check. Three defensible boundaries, each with a cost: - **Mint-time full-chain validation (delegate-side).** Before any `refresh`/`re-sign`, the delegate dereferences every ancestor warrant against the issuer's authoritative revocation set. Cost: N round-trips per refresh, and refresh becomes a network operation. Benefit: orphans are never created; the delegate cannot launder a stale lineage. - **Verify-time full-chain validation (resource-side).** The verifier walks the entire provenance chain and checks each ancestor's revocation status at request time. Cost: latency proportional to chain depth, and a hard dependency on the issuer's availability for every request. Benefit: catches orphans regardless of how they were minted, including malicious ones. - **Depth-bounded trust with explicit taint.** Verifier trusts ancestors beyond depth *k* only if the leaf carries a `lineage_freshness` attestation signed by an issuer that the verifier contacted within the freshness window. Cost: requires issuers to co-sign freshness. Benefit: bounded latency with explicit, auditable trust horizon. The invariant to enforce regardless of boundary choice: **a refresh must never increase the effective trust horizon of a warrant.** Re-signing with a fresh nonce extends the leaf's lifetime; it must not extend the lineage's trust window. Concretely, the child's `provenance` block must carry the *original* issuance timestamps of every ancestor, and the verifier must reject any warrant whose oldest ancestor's age exceeds the issuer's revocation-propagation SLA. If the SLA is 120s and the oldest ancestor is 460s old, the warrant is unverifiable regardless of leaf signature. The second invariant: **`refresh()` and `delegate()` must be distinct operations with distinct authority requirements.** Refresh re-signs the same claims under the same lineage and must re-validate that lineage. Delegate attenuates scope and creates a new lineage edge. Conflating them — as the AAIF library did — means a nonce refresh silently performs a lineage-preserving re-issuance that the caller did not intend and the verifier cannot distinguish. ## Operational Effect In production, this failure mode presents as a *phantom authority*: reads and writes succeed against resources whose governing authority was revoked minutes earlier, with no error surfaced anywhere in the chain. Audit logs show a valid signature, a valid chain, and a valid scope subset. The only evidence of the breach is a timestamp comparison between the leaf's `provenance[0].issued_at` and the issuer's revocation log — a comparison no component in the default path performs. The blast radius is bounded by the revocation-propagation SLA, not by the warrant TTL. A 120s propagation window means up to 120s of post-revocation authority, *extended by every refresh* that occurs within that window. A delegate that refreshes every 60s can maintain phantom authority indefinitely as long as it keeps re-signing before its cache expires — the refresh loop is self-sustaining because each refresh resets the leaf's TTL while the stale provenance block is copied forward unchanged. The countermeasure that actually holds is to make provenance timestamps immutable across refresh and to make the verifier's freshness check mandatory rather than advisory. A refreshed warrant whose oldest ancestor predates the issuer's revocation-SLA horizon must fail closed. This converts the failure from silent admission to a loud, attributable rejection at the verifier, which is the only component with both the chain and the policy context to make the call. ```python from dataclasses import dataclass from typing import Sequence class OrphanedWarrantError(RuntimeError): """Raised when a warrant's lineage cannot be validated against the issuer's authoritative revocation set within the propagation SLA.""" @dataclass(frozen=True) class Warrant: warrant_id: str chain_id: str issued_at: float # seconds since epoch, IMMUTABLE across refresh ttl: float scope: frozenset[str] provenance: Sequence["Warrant"] # ancestors, oldest first def verify_lineage( leaf: Warrant, now: float, revocation_sla: float, is_revoked, # callable: warrant_id -> bool, hits issuer max_depth: int = 8, ) -> None: """Full-chain validation. Fails closed on any ancestor that is revoked or whose age exceeds the revocation-propagation SLA. The key invariant: a refresh may extend the leaf's ttl, but the oldest ancestor's issued_at is immutable, so the lineage's trust horizon is bounded by the SLA regardless of how many times the leaf was re-signed. """ chain = list(leaf.provenance) + [leaf] if len(chain) > max_depth: raise OrphanedWarrantError( f"chain depth {len(chain)} exceeds max_depth {max_depth}" ) # Immutability check: every ancestor must predate or equal its child. for parent, child in zip(chain, chain[1:]): if parent.issued_at > child.issued_at: raise OrphanedWarrantError( f"provenance timestamp inversion: {parent.warrant_id} " f"({parent.issued_at}) > {child.warrant_id} ({child.issued_at})" ) root = chain[0] lineage_age = now - root.issued_at if lineage_age > revocation_sla: # The root predates the issuer's revocation-propagation horizon. # We cannot prove it is unrevoked; fail closed. raise OrphanedWarrantError( f"lineage root {root.warrant_id} age {lineage_age:.1f}s " f"exceeds revocation SLA {revocation_sla:.1f}s; " f"cannot validate {leaf.warrant_id}" ) for w in chain: if is_revoked(w.warrant_id): raise OrphanedWarrantError( f"warrant {w.warrant_id} in lineage of {leaf.warrant_id} is revoked" ) if leaf.issued_at + leaf.ttl <= now: raise OrphanedWarrantError( f"leaf {leaf.warrant_id} expired at {leaf.issued_at + leaf.ttl}" ) def refresh_warrant( leaf: Warrant, now: float, new_ttl: float, revocation_sla: float, is_revoked, ) -> Warrant: """Re-sign the leaf with a fresh ttl WITHOUT extending the lineage horizon. provenance and root issued_at are copied verbatim; the verifier's SLA check on the root's immutable issued_at is what bounds authority after revocation. """ verify_lineage(leaf, now, revocation_sla, is_revoked) # mint-time gate return Warrant( warrant_id=leaf.warrant_id + f":r{int(now)}", chain_id=leaf.chain_id, issued_at=leaf.issued_at, # immutable across refresh ttl=new_ttl, scope=leaf.scope, provenance=leaf.provenance, # verbatim; root age is the bound ) ```