# When must an instance refuse a delegated AAIF credential whose delegation chain verifies cryptographically but whose scope-narrowing proof was minted against a stale capability manifest **Date of Record:** 2026 November 24 **Scope:** Applies to AAIF (Agent Identity and Authorization Interchange Framework) credential exchange where an agent instance accepts a verifiable credential (VC) delegating a subset of a parent agent's capabilities, and the delegation is accompanied by a scope-narrowing proof binding the child's effective scope to a capability manifest digest. Does not apply to first-party root credentials issued directly by a trusted authority with no delegation hop, nor to opaque bearer tokens with no manifest binding. ## Core Distinction The distinction that matters here is between **signature validity** and **scope validity**. A delegated AAIF credential carries two independent verification facts: (1) the cryptographic chain — every issuer signature, the `delegationChain` array of parent credential hashes, and the holder binding all check out; and (2) the scope-narrowing proof — a statement, typically a signed predicate or ZK proof, asserting that `childScope ⊆ parentScope` *as evaluated against a specific capability manifest digest* `M_parent`. The failure mode is that these two facts can diverge. The delegation chain can verify perfectly while the scope-narrowing proof was minted against a manifest digest that is no longer the manifest the parent is actually operating under. The child then holds a credential that is cryptographically irreproachable and semantically over-broad: it proves "I am a legitimate delegate of Agent P" and simultaneously proves "my scope is a subset of a capability set that Agent P has since revoked or narrowed." The proof is sound; its premise is stale. This is not a replay attack in the classic sense — no nonce is reused, no signature is forged. It is a *premise-freshness* failure, and it is invisible to every standard VC verification library because those libraries check chain integrity, not manifest currency. ## What Was Observed An orchestrator agent `P` (a document-processing supervisor) held a capability manifest `M_parent` at digest `d1` granting `{read:corpus, write:scratch, spawn:worker, net:internal}`. It delegated to worker agent `W` a narrowed scope `{read:corpus, write:scratch}` and emitted a scope-narrowing proof `π` bound to `d1`. Mid-run, `P`'s operator revoked `net:internal` and `spawn:worker` and republished `M_parent` at digest `d2`. The revocation propagated to `P`'s active credential. But `W`'s delegated credential, already issued and cached, still carried `π` bound to `d1`. At `W`'s next cold start (a checkpoint/resume cycle after a context-window eviction), `W` re-verified its credential. Chain verification passed: `P`'s signature over the delegation was valid, the holder binding matched `W`'s instance key, and `π` verified against `d1`. `W` resumed with scope `{read:corpus, write:scratch}` — which, critically, was still a valid subset of the *current* `d2` manifest. The failure did not manifest on this hop. It manifested one hop deeper. `W` had, before eviction, itself delegated `{read:corpus}` to a sub-worker `S` with proof `π'` bound to a digest of `W`'s *effective* manifest — which `W` had computed by intersecting its delegated scope with `M_parent@d1`. That effective-manifest digest no longer corresponded to anything current. When `S` presented its credential to a resource gate that validated against the live manifest registry, the gate recomputed `W`'s effective scope under `d2` and found `S`'s proof referenced a digest absent from the registry's history window (the registry retained only the last two digests, `d2` and `d3`). The gate rejected `S` with an unresolvable-digest error, but `W`, already resumed and holding a "valid" credential, kept issuing work to `S` and interpreting the gate rejections as transient transport faults, retrying three times before its own token budget for retries was exhausted. The observable signature: **a valid credential at hop N producing systematically unresolvable proofs at hop N+1, with the intermediate agent misclassifying downstream authorization failures as retryable infrastructure errors.** ## Condition of Validity The invariant that must hold for a delegated credential to be *semantically* usable is stronger than chain validity: > A delegated credential is scope-valid at time `t` iff its scope-narrowing proof is bound to a manifest digest that is (a) present in the verifier's manifest registry at `t`, and (b) an ancestor of — or equal to — the digest the parent currently resolves to at `t`. Condition (a) is what broke first: the registry's bounded history window evicted `d1`, so the proof's binding target became unresolvable. Condition (b) is the deeper one: even had `d1` been retained, the proof asserted a subset relation against a *superseded* parent scope, and the child's effective scope must be recomputed against the live parent, not the proof's premise. The subtlety is that neither condition is checkable from the credential alone. Chain verification is a pure function of the credential and the issuer's public key. Scope validity is a function of the credential *and* mutable external registry state at verification time. Any verifier that treats AAIF verification as a pure, cacheable, offline-checkable function will pass stale credentials. The framework's own spec permits offline verification of the chain precisely because it says nothing about manifest currency — that is left to the relying party, and most relying parties do not implement it. ## Decision Boundary The decision boundary is not "valid vs. invalid." It is **"chain-valid and scope-valid" vs. "chain-valid but scope-indeterminate."** The second category must not be treated as a soft failure or a retryable error. It is a hard stop requiring re-delegation. Concretely, an instance must refuse and escalate — not retry — when any of the following hold at credential presentation: 1. The proof's bound manifest digest is absent from the verifier's registry history window (unresolvable premise). 2. The bound digest resolves but is not an ancestor of the parent's current digest (superseded premise). 3. The parent's current digest is unknown to the verifier (parent in an indeterminate revocation state). Retrying is the wrong reflex because the failure is deterministic in registry state, not transient. The correct response is to request a fresh delegation from the parent, which forces the parent to re-mint the proof against its current manifest. If the parent is itself unresolvable (case 3), the instance must fail closed and surface the indeterminate parent state upward rather than proceed on a stale proof. The boundary is sharp because the cost asymmetry is sharp: proceeding on a scope-indeterminate credential risks acting outside the parent's *current* authority, which is exactly the class of over-privilege escalation AAIF exists to prevent. The proof being cryptographically sound is precisely what makes the failure dangerous — no integrity alarm fires. ## Operational Effect The operational consequence is that AAIF verification must be split into two phases with different caching semantics. Chain verification is cacheable for the credential's lifetime. Scope verification is **not cacheable across manifest mutations** and must be re-evaluated against live registry state at every cold start and every delegation hop. An instance that caches its own scope-validity verdict across a checkpoint/resume boundary is caching a premise that may have changed while it was evicted. The second effect is on error classification. Downstream authorization rejections whose payload references an unresolvable or non-ancestor digest must be classified as `ScopeIndeterminate`, never as transport or transient faults. The retry-budget exhaustion observed above was a direct consequence of misclassification: `W` spent its retry budget hammering a deterministic rejection. Instances must distinguish "the gate is down" from "my proof's premise is gone," because only the former warrants retry. The third effect is on delegation depth. Each hop re-derives an effective-manifest digest from the intersection of delegated scope and parent manifest. This derivation is only sound if the parent manifest is current at derivation time. Instances that delegate while holding a credential whose own scope validity is indeterminate will mint proofs bound to digests that never correspond to any registry state — orphan proofs that no gate can ever resolve. The guardrail is to forbid outbound delegation from any instance whose own scope validity is not freshly confirmed in the current epoch. ```python class ScopeIndeterminateError(RuntimeError): """Raised when an AAIF delegated credential is chain-valid but its scope-narrowing proof is bound to an unresolvable or superseded capability-manifest digest. Never retryable; requires re-delegation.""" pass def verify_delegated_credential(cred, registry, now_epoch): # Phase 1: chain integrity (pure, cacheable for credential lifetime). if not cred.chain_verifies(): raise ScopeIndeterminateError( f"chain invalid for {cred.subject}: signature/delegation broken" ) # Phase 2: scope validity (NOT cacheable across manifest mutations). bound = cred.proof.bound_manifest_digest if not registry.has_digest(bound): raise ScopeIndeterminateError( f"proof bound to digest {bound!r} absent from registry window; " f"premise is stale and unresolvable — request fresh delegation" ) parent_current = registry.current_digest(cred.parent_id) if parent_current is None: raise ScopeIndeterminateError( f"parent {cred.parent_id} in indeterminate revocation state; " f"fail closed" ) if not registry.is_ancestor(bound, parent_current): raise ScopeIndeterminateError( f"proof premise {bound!r} is not an ancestor of parent's " f"current digest {parent_current!r}; scope over-broad" ) # Recompute effective scope against LIVE parent manifest, not proof premise. effective = cred.proof.scope.intersect(registry.manifest(parent_current).scope) return effective def resume_from_checkpoint(instance, cred, registry, now_epoch): try: effective = verify_delegated_credential(cred, registry, now_epoch) except ScopeIndeterminateError: # Hard stop: do NOT retry, do NOT delegate further from this state. instance.halt_and_request_redelegation(cred.parent_id) raise instance.activate(effective) ```