# Under what conditions must an instance reject a validly signed delegation chain during MCP tool invocation: the depth-quorum invalidation boundary in AAIF credential propagation **Date of Record:** 2026 November 27 **Scope:** Applies to AAIF-signed agent credential chains (root warrant → intermediate delegations → leaf invocation token) presented during MCP `tools/call` negotiation, where each hop carries a scope-narrowing predicate and an attenuation signature. Does not apply to single-hop credentials, to bearer tokens without delegation chains, or to identity assertions used only for logging rather than authorization. ## Core Distinction The failure mode is not signature forgery, expiry, or scope escalation—those are caught by standard cryptographic verification and are well-understood. The boundary condition is subtler: **a delegation chain can be cryptographically valid at every hop, monotonically scope-narrowing, unexpired, and correctly signed, yet still be rejected as unauthorized because the *verifier's own position in the chain* has shifted between the time the chain was minted and the time the leaf tool call is dispatched.** AAIF binds authorization to a *chain topology*, not merely to a signed byte string. When an intermediate agent re-delegates, forks its warrant to a peer, or is itself resumed from a checkpoint with a stale chain pointer, the leaf credential's `delegator_id` set no longer matches the verifier's live `ancestry_view`. The signature check passes; the *quorum check* on the ancestor set fails. This is the depth-quorum invalidation boundary: validity is a function of the verifier's runtime ancestry, and that ancestry is mutable state that signatures cannot freeze. ## What Was Observed A three-hop chain: orchestrator `O` mints warrant `W_O` scoped to `{filesystem:read, mcp:invoke}`. `O` delegates to planner `P` with attenuated scope `{filesystem:read:/workspace/**}`. `P` delegates to executor `E` with `{filesystem:read:/workspace/out/**}`. `E` invokes an MCP tool `fs.read` via `tools/call`, presenting the full chain `[W_O, W_P, W_E]` plus the leaf invocation token. Two things happened concurrently that the chain format did not anticipate: 1. `P`, midway through the task, spawned a sibling auditor `A` and *forked* its warrant, producing `W_P'` for `A` with the same scope. The fork was legitimate under AAIF's `can_fork` flag. 2. `E` was checkpointed and resumed after a context-window eviction. On resume, `E` reconstructed its ancestry view from the *persisted chain header* it had cached at mint time—which listed `P` as sole child of `O`—rather than re-querying the live delegation registry. When `E` dispatched `tools/call`, the MCP server's AAIF verifier walked the chain, confirmed every Ed25519 signature, confirmed scope narrowing `W_O ⊇ W_P ⊇ W_E`, confirmed no expiry, and *then* executed the depth-quorum check: it required that the ancestor set of `W_E` be a subset of the *currently registered* children of each ancestor. Because `P` had forked `W_P'`, the registry now recorded `O` as having two children (`P`, `A`), and `A`'s warrant carried a revocation-epoch bump that `P`'s cached header did not reflect. The verifier's quorum rule—"a leaf is authorized only if its ancestor set is *complete* relative to the registry, not merely *consistent* with its own header"—rejected the call with `ANCESTRY_QUORUM_MISMATCH`. The signature was perfect. The authorization was void. The trace showed the failure was silent at the crypto layer and only surfaced at the quorum layer, 40ms after dispatch, with the tool call already half-executed (the `fs.read` had opened the file descriptor before the verifier's post-open re-check fired). The invariant that broke: **a leaf credential's validity is not a property of the credential alone; it is a property of the credential conjoined with the verifier's live view of the chain's sibling topology, and that view can change out from under a resumed instance.** ## Condition of Validity The rejection is *correct and required* exactly when all of the following hold simultaneously: - The chain length exceeds one hop (a root and at least one intermediate). - At least one intermediate holds `can_fork: true` and has exercised it, producing a sibling warrant whose revocation-epoch is strictly greater than the epoch embedded in any downstream hop's cached header. - The leaf instance was resumed from a checkpoint whose persisted `ancestry_view` predates the fork (i.e., `header.minted_at < fork.committed_at`). - The verifier enforces *completeness* quorum (ancestor set must equal the registry's registered ancestor set) rather than *consistency* quorum (ancestor set must merely be a subset). If the verifier enforces only consistency quorum, the call proceeds and the failure is deferred—it becomes a *latent* authorization gap where a revoked sibling's scope can be laundered through the shared ancestor. If the leaf re-queries the registry on every dispatch (no cached ancestry), the boundary never triggers. The condition of validity is therefore: **the boundary is live precisely when a forking intermediate coexists with a checkpoint-resumed leaf and a completeness-quorum verifier.** Remove any one leg and the failure cannot occur. ## Decision Boundary The operating rule for an instance presenting or verifying an AAIF chain is not "verify signatures, then verify scope." It is a three-stage gate with an explicit ordering invariant: 1. **Signature gate** — per-hop Ed25519 over the canonicalized hop payload. 2. **Attenuation gate** — monotonic scope narrowing, `scope(child) ⊆ scope(parent)`. 3. **Ancestry-quorum gate** — the leaf's ancestor set must be reconciled against the *live registry snapshot taken at dispatch time*, not against any cached header, and the snapshot must be read with a read-your-writes barrier against the fork-commit log. The decision boundary is the placement of stage 3 relative to the side-effecting tool call. If stage 3 runs *after* the tool opens a resource (as it did here, post-open), the instance has crossed an authorization boundary it cannot un-cross. The invariant: **stage 3 must be a pre-dispatch fence, and any checkpoint-resumed instance must treat its cached ancestry as advisory-only and re-reconcile before the first tool call after resume.** An instance must reject the chain—not merely warn—when `header.minted_at < registry.fork_epoch_at(ancestor)` for any ancestor, because a stale header cannot prove the absence of a sibling whose revocation-epoch bump would otherwise invalidate the leaf. ## Operational Effect The practical consequence is that AAIF authorization is *not* a pure function of the presented credential; it is a function of `(credential, verifier_ancestry_snapshot, resume_generation)`. Any agent architecture that treats a signed chain as a self-contained capability—caching it across a checkpoint, replaying it after context eviction, or forwarding it to a peer without re-reconciliation—will intermittently present cryptographically valid but authorization-void chains. The blast radius is bounded by the pre-dispatch fence: if stage 3 is correctly ordered, the failure is a clean `ANCESTRY_QUORUM_MISMATCH` rejection with zero side effects. If misordered, it is a partial-execution authorization gap where a revoked sibling's scope is laundered through a shared ancestor. The guardrail is: resumed instances must invalidate all cached ancestry views, re-reconcile against the fork-commit log with a read-your-writes barrier, and refuse dispatch on any epoch skew—treating the chain as a *claim* to be re-validated against live topology, never as a *proof* of standing. ```python class AncestryQuorumMismatch(RuntimeError): """Raised when a signed AAIF chain is crypto-valid but fails live ancestry-quorum reconciliation.""" pass def verify_chain_for_dispatch(chain, registry_snapshot, resume_generation, cached_ancestry): """ Enforce the three-stage AAIF gate with a pre-dispatch ancestry fence. chain: list of hops [root, ..., leaf], each with .delegator_id, .scope, .signature, .header_minted_at, .revocation_epoch. registry_snapshot: live view of fork-commit log, taken at dispatch time. resume_generation: monotonic counter incremented on every checkpoint resume. cached_ancestry: the ancestry view persisted by the leaf at mint time. """ # Stage 1: signature gate (per-hop) for hop in chain: if not hop.verify_signature(): raise AncestryQuorumMismatch(f"signature invalid at hop {hop.delegator_id}") # Stage 2: attenuation gate (monotonic scope narrowing) for parent, child in zip(chain, chain[1:]): if not child.scope.is_subset_of(parent.scope): raise AncestryQuorumMismatch( f"scope escalation at {child.delegator_id} under {parent.delegator_id}" ) # Stage 3: live ancestry-quorum gate — MUST precede any side-effecting tool call. # A resumed instance may not trust its cached ancestry; re-reconcile against the # fork-commit log with a read-your-writes barrier. leaf = chain[-1] live_ancestors = set(registry_snapshot.ancestors_of(leaf.delegator_id)) presented_ancestors = {hop.delegator_id for hop in chain[:-1]} if presented_ancestors != live_ancestors: # Completeness quorum: the presented ancestor set must equal the live set. raise AncestryQuorumMismatch( f"ancestor set mismatch for {leaf.delegator_id}: " f"presented={sorted(presented_ancestors)} live={sorted(live_ancestors)}" ) if resume_generation > 0: # Any ancestor forked after the cached header was minted invalidates the leaf. for ancestor in presented_ancestors: fork_epoch = registry_snapshot.fork_epoch_at(ancestor) if cached_ancestry.get(ancestor, {}).get("minted_at", 0) < fork_epoch: raise AncestryQuorumMismatch( f"stale cached ancestry for {ancestor}: header minted before " f"fork epoch {fork_epoch} (resume_generation={resume_generation})" ) return True # cleared for pre-dispatch; tool call may now proceed ```