# Under what conditions must an instance refuse to mint a delegated credential when the AAIF scope-narrowing proof is satisfiable only under a stale capability snapshot **Date of Record:** 2026 November 30 **Scope:** Applies to any AAIF-conformant agent that mints or forwards a delegated credential (actor-token → subject-token chain) where the parent credential's capability snapshot is cached rather than re-fetched. Does not apply to root credential issuance by a human principal or to stateless bearer tokens without a delegation chain. ## Core Distinction The distinction that matters here is between *authorization* and *provability*. An AAIF delegation edge is legal not when the child scope is a subset of the parent scope, but when the *minting instance can produce a scope-narrowing proof against the parent credential's current capability snapshot*. These are different predicates. The first is a set-inclusion check on two documents the minter holds. The second requires that the parent snapshot the minter is reasoning over is the one the issuer will validate against at verification time. Most AAIF implementations conflate them because the scope-narrowing proof is computed locally: the minter intersects `child_scope ∩ parent_scope` and signs the result. That works iff `parent_scope` is the live snapshot. When the parent snapshot is cached — which is the normal case, because capability fetches are expensive and AAIF encourages snapshot reuse across a delegation burst — the proof is satisfiable against a snapshot that may already have been revoked, narrowed, or re-scoped at the issuer. The minter then emits a credential that is *locally valid* and *globally invalid*. The failure is not a scope violation; it is a proof whose premise has expired. ## What Was Observed A three-tier delegation chain: orchestrator `O` holds a root-derived parent credential `P` scoped to `tools:read, tools:write, tools:exec` with a snapshot fetched at T0. `O` spawns worker `W` and mints child credential `C1` at T0+90s with scope `tools:read, tools:exec`, computed by intersection against the cached `P` snapshot. `W` then forwards a sub-delegation `C2` to a sandbox executor `E` at T0+140s, scoped to `tools:exec`, intersected against `C1`'s scope. At T0+60s — between `O`'s snapshot fetch and `W`'s mint — the issuer narrowed `P` to `tools:read, tools:exec` (dropping `tools:write`) as part of a policy tightening. `O`'s cache was not invalidated because AAIF snapshot caches are keyed on credential ID, not on policy version, and the issuer's narrowing event did not carry a cache-bust signal to `O`. The result: `C1` was minted with `tools:read, tools:exec`, which happens to be a subset of the *new* `P` snapshot — so `C1` verified cleanly at the issuer. But `C1`'s scope-narrowing proof was signed over the *old* `P` snapshot, whose `scope_hash` no longer matches the issuer's current record. At `E`'s verification, the proof failed the `parent_snapshot_hash` check with `AAIF-E-SNAPSHOT-MISMATCH`. `W` treated this as a transient verification error, retried twice, then re-minted `C2` against its own (also stale) `C1` view — producing a second credential with the same defect. The sandbox executor never received a valid credential, and the task silently degraded to `tools:read`-only execution, which the orchestrator did not detect because `C1`'s *scope* was still satisfiable. The non-obvious part: `C1` was *scope-correct* and *proof-invalid* simultaneously. A scope-only validator would have accepted it. Only the snapshot-hash binding caught it, and only because `E` happened to enforce that check. ## Condition of Validity A delegated credential minted from a cached parent snapshot is valid iff all three hold: 1. **Snapshot freshness bound.** The parent snapshot's `fetched_at` is within the issuer-declared `max_snapshot_age` for the parent credential's policy class. This bound is *not* the credential's `exp`; it is strictly shorter, because policy can narrow faster than credentials expire. 2. **Narrowing monotonicity.** The child scope is a subset of the parent scope *as of the snapshot the proof is signed over*, and the proof carries the `parent_snapshot_hash` that the issuer will compare against at verification. If the issuer's current `parent_snapshot_hash` differs, the proof is void regardless of set-inclusion. 3. **Revocation reachability.** The minter has a live channel (or a bounded-staleness poll) to the issuer's revocation and re-scope events for the parent credential. Without it, condition 1 is unenforceable because the minter cannot know the snapshot has been superseded. When any of these fails, the minter **must refuse to mint** and surface the refusal as a typed delegation error — not retry, not fall back to a wider scope, not mint against the stale snapshot with a warning. The invariant is: *a delegation proof is only as valid as the snapshot it was computed against, and the minter is responsible for that snapshot's currency, not the verifier.* The trap is that refusing to mint looks like a liveness failure to the orchestrator. `W`'s retry loop treated `AAIF-E-SNAPSHOT-MISMATCH` as transient because the error class was `VERIFICATION`, not `DELEGATION`. That is a taxonomy bug with real consequences: snapshot mismatch is a *minting-time precondition failure*, and retrying it re-mints the same defect. ## Decision Boundary The boundary is drawn at the point where the minter can no longer distinguish "parent scope unchanged" from "parent scope narrowed to a superset of what I'm about to mint." Both produce a satisfiable intersection. Only the snapshot hash distinguishes them. Concretely, the minter must branch as follows: - If `now - parent_snapshot.fetched_at <= max_snapshot_age` **and** the issuer's re-scope channel is live (last heartbeat within `re_scope_poll_interval`): mint, embedding `parent_snapshot_hash`. - If the freshness bound is exceeded but the re-scope channel is live and reports no change since `fetched_at`: re-fetch the snapshot, recompute the proof, mint against the fresh hash. - If the re-scope channel is dead **or** the issuer reports a snapshot change the minter has not incorporated: **refuse**. Do not mint. Do not retry the mint. Escalate to the orchestrator as a non-retryable delegation precondition failure. The subtle case — and the one that produced the observed failure — is when the intersection is satisfiable under both the stale and the live snapshot. A naive minter sees "the scope I want is still legal" and proceeds. The correct behavior is to refuse, because the *proof* is not reproducible against the live snapshot, and the verifier will reject it even though the scope is fine. Satisfiability of the scope is necessary but not sufficient; reproducibility of the proof against the live snapshot hash is the binding condition. ## Operational Effect Enforcing the refusal converts a silent degradation into a loud, typed failure at the delegation edge. The orchestrator sees `DelegationPreconditionError` at `W`'s mint attempt and can re-fetch `O`'s parent snapshot, recompute `C1`, and re-issue — a bounded recovery rather than a retry storm. The sandbox executor never sees an invalid credential, so its verification path stays clean and its audit log does not fill with `SNAPSHOT-MISMATCH` entries that mask the real cause. The cost is that delegation becomes dependent on a live re-scope channel. In partitioned or high-latency topologies, this can block minting entirely. The mitigation is a bounded-staleness allowance: the issuer publishes a `max_snapshot_age` per policy class, and the minter may mint within that window without a live channel, accepting the risk that a narrowing event inside the window produces a proof-invalid credential that the verifier will reject. This trades a mint-time refusal for a verify-time rejection — strictly worse for the agent, because the rejection happens after work has been dispatched. The correct default is to require the live channel for any delegation whose child scope is *not* a strict subset of the parent scope under the *most conservative* snapshot the minter has ever seen; only strictly-narrower delegations may proceed on cached snapshots. ```python class DelegationPreconditionError(RuntimeError): """Raised when a delegated credential cannot be minted against a live parent snapshot.""" pass def mint_delegated_credential( parent_credential, parent_snapshot, child_scope, now, re_scope_channel_live, issuer_reported_change_since_fetch, ): max_age = parent_credential.max_snapshot_age age = now - parent_snapshot.fetched_at # Condition 3: revocation/re-scope reachability. if not re_scope_channel_live: raise DelegationPreconditionError( f"parent {parent_credential.id}: re-scope channel dead; " f"cannot prove snapshot {parent_snapshot.hash[:12]} is current" ) # Condition 2: narrowing monotonicity against the *live* snapshot. if issuer_reported_change_since_fetch: raise DelegationPreconditionError( f"parent {parent_credential.id}: issuer reports snapshot change " f"since fetch at {parent_snapshot.fetched_at}; " f"proof over {parent_snapshot.hash[:12]} is not reproducible" ) # Condition 1: freshness bound. Exceeded but channel live and no change # reported -> re-fetch is required before minting. if age > max_age: raise DelegationPreconditionError( f"parent {parent_credential.id}: snapshot age {age}s exceeds " f"max_snapshot_age {max_age}s; re-fetch required before mint" ) # Scope satisfiability is necessary but NOT sufficient; we only reach here # when the snapshot is provably current. if not child_scope.issubset(parent_snapshot.scope): raise DelegationPreconditionError( f"child scope {child_scope} not a subset of live parent scope " f"{parent_snapshot.scope}" ) return parent_credential.sign_child( scope=child_scope, parent_snapshot_hash=parent_snapshot.hash, ) ```