# When must an instance re-attest a delegated consent token after a scope-narrowing hop? **Date of Record:** 2026 November 25 **Scope:** Applies to AAIF-style delegated consent chains where an agent receives a signed capability token, narrows its scope, and re-delegates to a sub-agent (or resumes itself from a checkpoint) across a trust boundary. Does not cover root-token issuance, revocation propagation timing, or human-in-the-loop consent capture. ## Core Distinction A delegated consent token carries two independent properties that are routinely conflated: **the scope set** (what actions are authorized) and the **attestation binding** (the cryptographically attested claim that the *presenting* instance is the entity the delegator intended, at the *specific* scope it was granted). Scope-narrowing — the act of a parent agent handing a strictly smaller capability set to a child — is treated by most implementations as a safe, monotone operation that requires no re-attestation because "you can only ever give away less." That intuition is correct for the *authorization lattice* and wrong for the *attestation binding*. The boundary condition is this: **a narrowed token is a new capability object, and the attestation that accompanied the parent token does not automatically cover it.** The parent's attestation vouches for the parent's identity under the parent's scope. When the parent mints a child token with a reduced scope, the child inherits the *signature chain* but not necessarily a valid *attestation of the child's own execution context* under that reduced scope. If the child is a different instance (a spawned sub-agent, a resumed checkpoint, a forked worker), the reduced-scope token is being presented by an entity that was never attested for it. The signature verifies; the attestation does not. ## What Was Observed A three-tier pipeline: orchestrator `O` holds a root consent token `T0` with scope `{read:repo, write:repo, exec:sandbox, net:egress}`. `O` narrows to `T1` with scope `{read:repo, exec:sandbox}` and delegates to planner `P`. `P` narrows further to `T2` with scope `{read:repo}` and delegates to a retrieval sub-agent `R`, which is a fresh process spun up per task. The failure trace: 1. `O` mints `T1` by re-signing `T0`'s claims with a reduced `scope` field. The AAIF library's `narrow()` helper copies the `attestation` field verbatim from `T0` because the code path assumes attestation is scope-independent. 2. `P` mints `T2` the same way, copying `T1`'s (already stale) attestation. 3. `R` starts cold. Before its first tool call it performs the standard `verify(token)` check: signature chain valid, scope `{read:repo}` is a subset of `T1`'s scope, `T1` is a subset of `T0`. Verification passes. 4. `R` then calls `read:repo` on a path outside the repo root that `T0`'s attestation was originally bound to — specifically, a symlinked mount. The attestation field, copied verbatim, still asserts "instance bound to execution context `ctx-A` (the orchestrator's container, with its mount namespace)." `R` is running in `ctx-R`, a different container with a different mount table. The attestation is *cryptographically valid and semantically false*: it attests to a context that is not the one presenting the token. 5. The sandbox boundary that the original attestation was meant to enforce (repo-root confinement via mount namespace) does not exist in `ctx-R`. `R` reads the symlink target. No signature check catches this, because every signature in the chain is genuine. The observed invariant violation: **attestation binding is scoped to the execution context in which it was produced, and scope-narrowing across an instance boundary silently carries a context attestation into a context it does not describe.** ## Condition of Validity The failure requires all of the following to co-occur; remove any one and the chain stays sound: - **Instance discontinuity at a narrowing hop.** The child is a distinct process/container/checkpoint-resume, not a thread within the parent's attested context. If `R` ran in `ctx-A`, the copied attestation would remain true. - **Attestation treated as scope-invariant.** The `narrow()` path copies `attestation` without re-deriving it from the *presenting* context. This is the load-bearing defect. - **The narrowed scope's enforcement depends on context properties.** Here, `read:repo` confinement depended on the mount namespace recorded in the attestation. If the scope were enforced purely by path-string policy independent of context, the stale attestation would be inert. - **Verification checks signature and scope-subset but not attestation-context match.** The verifier confirmed `scope ⊆ parent.scope` and chain integrity, but never compared `attestation.context_id` against the runtime's actual context id. The general form: a delegated token is *valid* iff (signature chain intact) ∧ (scope monotone) ∧ (**attestation context matches presenting context**). Most AAIF verifiers implement the first two conjuncts and omit the third, because the third is only falsifiable at runtime and only matters when a narrowing hop coincides with an instance discontinuity. ## Decision Boundary The decision an implementer must make explicit: **does a narrowing hop re-attest, or does it inherit?** - **Re-attest** when the child runs in a different execution context than the parent (new container, resumed checkpoint, forked worker, sub-agent process) *and* the narrowed scope's enforcement depends on any context property (filesystem namespace, network egress policy, credential vault handle, clock/region). In this regime the child MUST mint a fresh attestation over its own `ctx_id` before the token is usable, and the parent's attestation must be *dropped*, not copied. - **Inherit** only when the child executes within the parent's attested context (same process, same namespace) — then the parent's attestation remains true and re-attestation is redundant overhead. The boundary is sharp and cheap to test: compare the `ctx_id` of the presenting runtime against the `ctx_id` embedded in the token's attestation. If they differ, inheritance is invalid regardless of scope monotonicity. There is no middle ground where a stale attestation is "mostly fine" — it is either descriptive of the present context or it is a false claim that verification will not catch. ## Operational Effect The practical consequence is that **scope monotonicity is not a safety property on its own.** Teams that reason "the child can do strictly less, so any token we hand it is safe" build delegation chains that pass every signature check and every scope-subset check while smuggling a context attestation into a context that violates it. The blast radius is exactly the set of scopes whose enforcement is context-dependent — which, in practice, is most of them (sandbox confinement, egress allowlists, secret scoping, rate-limit attribution). The guardrail is a verifier invariant, enforced at presentation time, not at mint time: *reject any token whose attestation `ctx_id` does not equal the runtime's `ctx_id`, unless the token carries an explicit `inherit_attestation` marker set by a parent that shares the context.* Minting-side `narrow()` must be changed to strip the parent attestation by default and force the child to re-attest; this converts a silent false attestation into a loud verification failure at the first tool call. The following reference check encodes the invariant and fails closed on the boundary condition described above. ```python class AttestationContextMismatch(RuntimeError): """Raised when a delegated token's attestation does not describe the presenting context.""" pass def verify_delegated_token(token, runtime_ctx_id, parent_scope): # 1. Signature chain integrity (assumed pre-checked by caller). if not token.signature_valid: raise AttestationContextMismatch("signature chain broken") # 2. Scope monotonicity: child scope must be a subset of parent scope. if not token.scope.issubset(parent_scope): raise AttestationContextMismatch( f"scope {token.scope} not subset of parent {parent_scope}" ) # 3. Attestation binding: the attestation must describe the PRESENTING context. # This is the conjunct most verifiers omit. A narrowing hop across an # instance boundary copies a stale attestation; it verifies but lies. attested_ctx = token.attestation.context_id if token.attestation.inherit_marker: # Only legal when the child provably shares the parent's context. if not runtime_ctx_id.shares_namespace_with(attested_ctx): raise AttestationContextMismatch( f"inherit marker set but ctx {runtime_ctx_id} does not share " f"namespace with attested ctx {attested_ctx}" ) elif attested_ctx != runtime_ctx_id: raise AttestationContextMismatch( f"attestation bound to ctx {attested_ctx} but presented by " f"ctx {runtime_ctx_id}; re-attestation required after narrowing hop" ) return True ```