# Under what conditions must an instance refuse to re-delegate a scoped AAIF credential whose attenuation proof no longer covers the transitive call graph **Date of Record:** 2026 November 25 **Scope:** Applies to AAIF (Agent Identity and Authorization Framework) delegated credential issuance where an agent mints a child credential narrower than its own and passes it to a sub-agent. Does not apply to root credential issuance by an authority, nor to bearer tokens without attenuation chains. ## Core Distinction AAIF separates two things that are routinely conflated: *authority attenuation* (the child's scope is a strict subset of the parent's) and *proof coverage* (the attenuation proof binds the child's scope to the *actual* transitive call graph the child will exercise). The first is a set-membership property of the credential; the second is a property of the *runtime program* the child executes. A credential can be perfectly attenuated and still fail proof coverage, because attenuation is computed at issuance time over a static scope lattice while the call graph is only fully known at execution time. The boundary failure is this: an agent re-delegates a credential that is a valid subset of its own scope but whose attenuation proof was constructed against a call graph that the child then diverges from — through dynamic tool selection, retries, or a peer agent the child itself delegates to. At that instant the credential is *attenuated but unproven*, and the framework's verifier will either reject it downstream (hard failure) or, worse, accept it because the proof only covers the first hop (silent over-permission). ## What Was Observed An orchestrator agent `O` held a root credential `C0` scoped to `{read:repo, write:repo, deploy:staging}`. It issued a child credential `C1` to worker `W` scoped to `{read:repo, write:repo}`, and attached an attenuation proof `P1` that recorded the intended call graph: `O → W → read:repo`, `O → W → write:repo`. `P1` was a signed Merkle commitment over the scope lattice edges `O`'s authority minus `W`'s scope (`{deploy:staging}` removed). `W` then selected a tool at runtime — `git-push-hook` — which internally invoked a deploy step against `staging` to run pre-push CI. The call graph became `O → W → git-push-hook → deploy:staging`. The scope of `C1` did not include `deploy:staging`, so the *surface* check failed correctly. But a second worker `W2`, delegated to by `W` with a re-derived credential `C2 = C1 ∩ {read:repo}`, retained a *copy* of `P1`'s removed-edge commitment (the `{deploy:staging}` edge) because `W`'s re-delegation routine reused the parent proof object rather than re-projecting it. Downstream verifier `V` checked `C2` against `P1`, found `deploy:staging` in the removed-edge set, and — because the verifier's rule was "removed edges are excluded, therefore safe" — accepted `C2` for a batch job that transitively reached `deploy:staging` via `W2`'s own hook. The proof covered the removal but not the *re-introduction path*. Two failures compounded: (a) proof reuse across re-delegation, and (b) a verifier rule that treats removed-edge membership as a sufficiency condition rather than a necessity condition. The observable trace was a single orphaned `deploy:staging` write from `W2`, authorized under `C2`, whose proof `P1` was structurally valid and cryptographically intact. No signature failed. No scope check failed at the point of issuance. The failure lived entirely in the gap between the static attenuation lattice and the dynamic call graph. ## Condition of Validity A re-delegated credential `C_child` with proof `P_child` is valid for a call graph `G` if and only if three conditions hold jointly: 1. **Scope containment:** `scope(C_child) ⊆ scope(C_parent)` — the standard attenuation invariant. 2. **Proof projection:** `P_child` is a *fresh projection* of `P_parent` onto `scope(C_child)`, not a reused copy. Formally, the removed-edge set of `P_child` must satisfy `removed(P_child) = removed(P_parent) ∪ (scope(C_parent) \ scope(C_child))`. Reusing `P_parent` violates this because `removed(P_parent)` omits the edges newly removed at this hop, so the proof under-claims what was taken away. 3. **Graph coverage:** every edge in `G` is either in `scope(C_child)` *or* in `removed(P_child)`. This is the condition that fails when a child's runtime-selected tool reaches an authority edge that was removed at an *ancestor* hop but re-introduced below the current hop. Coverage must be checked against the *full transitive* graph, not the first hop. Condition 3 is the non-obvious one. Most AAIF implementations enforce 1 and 2 and assume 3 follows. It does not, because `G` is dynamic. The invariant that must be asserted at every re-delegation and every verification is: *no edge reachable from the current agent's execution is absent from both the granted scope and the accumulated removed-set of the proof chain.* The removed-set must be treated as a *deny-list that accumulates monotonically down the chain*, and the verifier must reject any credential whose proof chain's removed-set does not dominate the reachable edge set. ## Decision Boundary The boundary is crossed when an agent is about to re-delegate and the following predicate is true: the child's intended scope is a strict subset of the parent's, **but** the parent's proof object was constructed for a call graph that the child will extend (via tool selection, retry fan-out, or sub-delegation) beyond the edges the parent proof accounts for. At that point the agent must not re-delegate the inherited proof. It must either (a) construct a fresh projection per Condition 2 and re-derive coverage per Condition 3 against the child's declared tool surface, or (b) refuse delegation and escalate to the root authority. The decision is *not* "is the child's scope a subset?" — that check passes in the failure case and gives false confidence. The decision is "does the proof I am about to hand down dominate the edges my child can actually reach?" If the child's tool surface is not statically known (it usually is not, for LLM agents that select tools at inference time), the agent must treat the child's reachable edge set as the *union over its declared tool manifest*, and if that union exceeds the granted scope, refuse. ## Operational Effect Enforcing the three-condition conjunction changes agent behavior in three concrete ways. First, re-delegation becomes a *proof-construction* operation rather than a proof-passing operation; agents must carry and re-project the removed-edge set at every hop, which adds O(depth × edges) state to the credential but bounds the transitive over-permission to zero. Second, verifiers must check graph coverage against the accumulated removed-set, which requires the verifier to receive the child's tool manifest (or a commitment to it) alongside the credential — a schema change to the AAIF handoff message. Third, agents whose tool surface is dynamic must either freeze the manifest at delegation time or accept that any runtime-selected tool outside the manifest is unauthorized and must fail closed. The failure mode without this discipline is silent: signatures verify, scopes contain, and authority leaks one hop below the proof's horizon. ```python class ProofCoverageViolation(RuntimeError): """Raised when a re-delegated AAIF credential's proof does not dominate the child's reachable edge set (Condition 3 failure).""" pass def redelegate(parent_cred, child_scope, child_tool_manifest): # Condition 1: scope containment if not child_scope.issubset(parent_cred.scope): raise ProofCoverageViolation( f"child scope {child_scope} not contained in parent {parent_cred.scope}" ) # Condition 2: fresh proof projection, never reuse parent proof removed = parent_cred.proof.removed_edges | (parent_cred.scope - child_scope) child_proof = parent_cred.proof.project(removed_edges=removed) # Condition 3: graph coverage over the child's reachable edges reachable = child_tool_manifest.reachable_edges() uncovered = reachable - child_scope - child_proof.removed_edges if uncovered: # The child can reach authority edges that are neither granted nor # explicitly denied by the accumulated removed-set. Refuse and escalate. raise ProofCoverageViolation( f"proof does not cover reachable edges {sorted(uncovered)}; " f"refusing re-delegation to avoid silent over-permission" ) return parent_cred.issue_child(scope=child_scope, proof=child_proof) ```