# In what scenarios must an instance refuse to re-sign a delegated capability token after an upstream warrant has been revoked mid-chain **Date of Record:** 2026 December 2 **Scope:** Applies to multi-hop AAIF delegation chains where an intermediate agent (a "re-delegator") holds a warrant issued by an upstream principal and issues attenuated sub-warrants to downstream agents, and where revocation of the upstream warrant can occur asynchronously. Does not apply to single-hop capability issuance, nor to chains where every hop is co-located in one trust domain with synchronous revocation propagation. ## Core Distinction The failure mode is not "the agent honored a revoked token." It is the subtler case where an intermediate agent *correctly observes* that its own warrant was revoked, yet *re-signs or re-mints* a downstream warrant that is cryptographically valid but semantically orphaned. The distinction that matters is between **revocation awareness** (the re-delegator knows the upstream warrant is dead) and **revocation closure** (the re-delegator ensures every downstream warrant whose validity depends on that upstream warrant is also dead). An instance can be fully aware and still violate closure, because re-signing is a *constructive* act: it produces a fresh, well-formed token whose signature verifies against the re-delegator's key even though the delegation path it encodes no longer terminates in a live root. AAIF chains are validity-by-ancestry systems. A downstream warrant's authority is not intrinsic; it is the transitive product of every ancestor warrant being live at verification time. Re-signing after an ancestor's revocation manufactures a token that passes local signature checks while failing the ancestry check that the verifier is supposed to run — and many verifiers run only the signature check. ## What Was Observed A three-hop chain: principal `P` → orchestrator `O` → worker `W` → sub-worker `S`. `O` holds warrant `w_O` scoped to `files:read` on a dataset, expiring at `T+3600s`. `O` issues `w_W` (attenuated: `files:read` on a single shard) to `W`, embedding a hash of `w_O` in the delegation proof. `W` issues `w_S` to `S` with a further-attenuated scope. At `T+900s`, `P` revokes `w_O` (credential compromise). The revocation event propagates to `O` and `W` within ~2s via the revocation feed. `S`, however, is in a partitioned network segment and does not receive the feed. `W` receives the revocation for `w_O`, marks its own `w_W` as invalid, and — following a "keep the pipeline alive" retry policy — re-mints `w_S'` for `S` using `W`'s still-valid signing key, with a fresh nonce and a new expiry. The delegation proof in `w_S'` still references `w_W`'s warrant ID. `W`'s local validator accepted the re-mint because it checked only: (a) `W`'s key is authorized to sign as `W`, and (b) the requested scope is a subset of `w_W`'s scope. It did **not** check that `w_W` is currently live, because "live-ness" was treated as a property of the *verification* path, not the *issuance* path. `S` came back online, received `w_S'`, verified its signature against `W`'s key, verified scope attenuation, and executed. The verifier at the resource ran signature + scope + expiry checks and admitted the call. The ancestry check — "is `w_O` live?" — was never performed because the verifier trusted the re-delegator's re-mint as evidence of liveness. The revoked principal's authority was exercised for 41 minutes after revocation, through a token that was minted *after* the revocation was known to the minting party. The trace, condensed: ``` T+900s P revokes w_O T+902s O marks w_O dead; W marks w_W dead T+903s W re-mints w_S' (signature valid, ancestry stale) T+904s S verifies w_S' signature OK; scope OK; executes T+2700s S still executing under w_S' T+2700s audit discovers w_S' chains to revoked w_O ``` ## Condition of Validity Re-signing a downstream warrant is sound **only if** the re-delegator can prove, at mint time, that the entire ancestry path from the new warrant to a live root is intact *and will remain verifiable by the eventual verifier*. Concretely, a re-mint is valid iff all of the following hold: 1. Every ancestor warrant referenced in the delegation proof is in the `live` state in the re-delegator's local revocation view, **and** that view is at least as fresh as the revocation feed's high-water mark for the root's issuer. 2. The re-delegator includes a signed liveness attestation (a "chain-freshness proof") binding the new warrant to the ancestor's current revocation epoch, so the verifier can detect staleness without re-contacting the root. 3. The re-mint does not extend the effective lifetime beyond the minimum remaining lifetime of any ancestor. A re-mint that outlives its ancestor is a latent orphan even before revocation. When any of these is unverifiable — partitioned revocation feed, missing epoch binding, or ancestor expiry earlier than the new expiry — the correct action is to **refuse to re-sign and fail closed**, surfacing a `DelegationAncestryUnverifiable` condition upward. The re-delegator must not substitute "my key is valid" for "my authority is live." These are different predicates, and the gap between them is exactly where orphaned warrants are born. ## Decision Boundary The boundary is drawn at the moment of *constructive authority production*, not at the moment of *consumption*. An agent may continue to *hold* a downstream warrant it already issued (it cannot un-issue it), but it must not *produce a new one* when its own authority to do so is in doubt. The decision procedure: - If the re-delegator's own warrant is `revoked` → refuse to re-sign, and emit a revocation-cascade notice to all downstream holders instructing them to treat their warrants as dead. - If the re-delegator's own warrant is `live` but the revocation feed is stale beyond a configured freshness bound (e.g., feed high-water mark older than `T_fresh`) → refuse to re-sign; the liveness of ancestors is unknown, and unknown must be treated as dead for issuance purposes. - If the re-delegator's own warrant is `live`, feed is fresh, **and** the new warrant's expiry ≤ min(ancestor expiries) → re-sign permitted, with epoch binding embedded. - If the new warrant would outlive any ancestor → refuse; a re-mint that outlives its parent is an orphan-in-waiting. The non-obvious part: the second bullet. Most implementations treat "my warrant is live" as sufficient. It is not, because the re-delegator's view of *its own* liveness can be fresher than its view of *its ancestors'* liveness when the feed is partially applied. The freshness bound must be evaluated against the *root's* epoch, not the local clock. ## Operational Effect Enforcing this boundary converts a silent, long-lived authority leak into a loud, short-lived availability failure. The pipeline stalls at `T+903s` instead of executing for 41 minutes under revoked authority. The trade is deliberate: a stalled sub-worker is recoverable by re-issuance from a live root; an orphaned warrant executing under a compromised principal is not recoverable, because the effects have already landed. The invariant to encode: **no warrant may be minted whose delegation proof references an ancestor not proven live at the root's current revocation epoch.** This is a closure property over the delegation DAG, and it must be enforced at issuance time because verifiers cannot be relied upon to walk the full ancestry — many are stateless and will accept any signature-valid token. The re-delegator is the last point in the chain where the ancestry is locally knowable; if it declines to check, no one downstream will. The following guard implements the refusal condition. It is intentionally conservative: any uncertainty in the revocation view, any ancestor whose epoch is behind the root's, and any expiry that would outlive an ancestor all raise rather than proceed. ```python from dataclasses import dataclass from typing import Optional class DelegationAncestryUnverifiable(RuntimeError): """Raised when a re-delegator cannot prove its ancestry is live at mint time.""" pass @dataclass class Warrant: warrant_id: str issuer: str subject: str scope: frozenset expires_at: float # epoch seconds revocation_epoch: int # epoch of the root's revocation feed this was minted against parent_id: Optional[str] # None for root warrants @dataclass class RevocationView: root_epoch: int # highest revocation epoch the feed has delivered dead: frozenset # warrant_ids known revoked feed_age_seconds: float # staleness of the feed FRESHNESS_BOUND_SECONDS = 5.0 def re_sign_downstream( own: Warrant, parent: Optional[Warrant], view: RevocationView, requested_scope: frozenset, requested_expiry: float, now: float, ) -> Warrant: # 1. Own warrant must be live in the view. if own.warrant_id in view.dead: raise DelegationAncestryUnverifiable( f"own warrant {own.warrant_id} is revoked; refusing to re-sign" ) # 2. Revocation feed must be fresh enough to trust liveness. if view.feed_age_seconds > FRESHNESS_BOUND_SECONDS: raise DelegationAncestryUnverifiable( f"revocation feed stale ({view.feed_age_seconds:.1f}s > " f"{FRESHNESS_BOUND_SECONDS}s); ancestor liveness unknown" ) # 3. Own warrant's minted epoch must match the root's current epoch. if own.revocation_epoch < view.root_epoch: raise DelegationAncestryUnverifiable( f"own warrant minted at epoch {own.revocation_epoch} < root " f"epoch {view.root_epoch}; ancestry not proven live" ) # 4. Every ancestor in the proof must be live and epoch-current. if parent is not None: if parent.warrant_id in view.dead: raise DelegationAncestryUnverifiable( f"ancestor {parent.warrant_id} revoked; refusing to re-sign" ) if parent.revocation_epoch < view.root_epoch: raise DelegationAncestryUnverifiable( f"ancestor {parent.warrant_id} epoch {parent.revocation_epoch} " f"< root {view.root_epoch}" ) # 5. Scope must attenuate, never widen. if not requested_scope.issubset(own.scope): raise DelegationAncestryUnverifiable( f"requested scope {requested_scope} not subset of {own.scope}" ) # 6. New expiry must not outlive any ancestor (orphan-in-waiting guard). ceiling = own.expires_at if parent is not None: ceiling = min(ceiling, parent.expires_at) if requested_expiry > ceiling: raise DelegationAncestryUnverifiable( f"requested expiry {requested_expiry} exceeds ancestor ceiling {ceiling}" ) return Warrant( warrant_id=f"re-mint-{own.warrant_id}-{int(now)}", issuer=own.subject, subject="downstream", scope=requested_scope, expires_at=requested_expiry, revocation_epoch=view.root_epoch, parent_id=own.warrant_id, ) ```