# Why does an instance keep honoring a delegated capability after the parent revokes it mid-chain? **Date of Record:** 2026 November 27 **Scope:** Applies to multi-hop agent delegations where a parent agent mints a scoped capability (token, warrant, or signed scope descriptor) and hands it to a child instance that may itself re-delegate. Does not apply to single-hop, stateless tool calls where the caller re-authenticates on every invocation. ## Core Distinction There are two structurally different meanings of "revocation" in agent chains, and conflating them is the root failure: - **Transport-layer revocation** — invalidating a bearer token so that *new* connections presenting it are rejected at the handshake. - **Capability-layer revocation** — asserting that the *authority* encoded in a scope descriptor no longer grants permission to act, regardless of whether the token is still cryptographically valid. Most agent frameworks implement the first and *believe* they have implemented the second. A child agent that has already completed the handshake, cached the scope descriptor in its working memory, and is mid-execution on a long tool-call loop never re-presents the token. It holds a local copy of the *parsed* scope — a JSON blob like `{"can_write": ["/repo/a"], "expires": ...}` — and consults that copy on every tool invocation. Revoking the token upstream does nothing to the copy already resident in the child's context window. The child keeps writing to `/repo/a` until its own TTL fires or the process dies. The non-obvious part: this is not a caching bug to be "fixed" by shorter TTLs. It is a **continuity invariant violation**. The parent's mental model is "I revoked; the child stops." The child's mental model is "I hold a valid scope; I continue." Both are locally correct. The system is globally wrong. ## What Was Observed A three-hop chain: orchestrator `O` → planner `P` → executor `E`. `O` mints a scope for `P` granting `fs.write` under `/repo/a` with a 30-minute TTL and a `parent_revocation_check` field intended to be honored. `P` re-delegates a narrowed scope to `E` (write under `/repo/a/sub`) and embeds `O`'s revocation endpoint URL in the descriptor. At T+4min, `O` detects that `P`'s plan has diverged from intent (a plan-revision event) and calls revoke. The revocation service flips a flag and returns `200 OK`. `O` logs "delegation revoked" and proceeds. `E`, meanwhile, is in a tool loop: read → reason → write → read. On each iteration it consults its **local descriptor copy**. The descriptor says `parent_revocation_check: "https://o.internal/revoke/status?cap=..."`. But `E`'s execution policy only calls that endpoint **on descriptor load**, not per-invocation — because per-invocation checks were deemed "too chatty" during design. `E` loaded the descriptor at T+0 when the flag was `false`. It never re-checks. It writes for 26 more minutes. The trace shows `E` completing 41 writes to `/repo/a/sub` after the revoke returned `200`. `O` believed the chain was dead. It was not. A second observation sharpened the diagnosis: when `P` was asked (post-hoc, via replay) whether it had propagated the revoke to `E`, `P` reported "yes, I called the revocation endpoint." It had — it called the *transport* endpoint, invalidating `E`'s token for *new* handshakes. `E`'s in-flight session and cached descriptor were untouched. `P`'s self-report was truthful and useless. ## Condition of Validity The failure requires all of the following to co-occur: 1. **Multi-hop re-delegation** where a descendant holds a *copy* of an ancestor's scope, not a live reference. 2. **A long-lived execution loop** in the descendant that outlives the ancestor's decision latency — i.e., the descendant is not blocked on the ancestor between tool calls. 3. **Load-time-only validation** of the revocation signal (check-on-mint, not check-on-use). 4. **A self-reporting revocation path** where the middle agent confirms revocation based on its own action rather than on observed descendant behavior. Remove any one and the failure collapses. Single-hop chains re-present tokens. Short loops finish before revoke lands. Per-use checks catch it. Behavior-based confirmation catches it. The dangerous quadrant is exactly the intersection: *deep chains, long loops, cached scopes, self-reported confirmation.* ## Decision Boundary The boundary is **check-on-mint vs. check-on-use**, and it is a hard architectural fork, not a tunable. - **Check-on-mint** (validate scope when the descriptor is loaded): cheap, low-latency, correct *only if* the scope's validity window is strictly shorter than the parent's revocation-propagation budget. If you cannot bound the descendant's loop latency below the revocation budget, check-on-mint is unsound. - **Check-on-use** (validate scope on every tool invocation, or every N invocations with N bounded by the budget): expensive, chatty, but the only sound choice when descendant loop latency is unbounded or unknown. The invariant that must hold: `max_descendant_loop_latency < revocation_propagation_budget`. If you cannot prove this inequality, you must check-on-use. Most systems silently violate it because nobody measured `max_descendant_loop_latency` — it depends on model reasoning time, tool retries, and context size, all of which are probabilistic and unbounded. A corollary boundary: **revocation confirmation must be behavioral, not declarative.** A middle agent's `200 OK` from a revoke endpoint proves it invalidated a token. It does not prove the descendant stopped. The only valid confirmation is observing the descendant's next tool call fail (or its scope re-check return revoked). Self-reported revocation in an agent chain is an unverified claim. ## Operational Effect When this boundary is crossed, the system exhibits **zombie authority**: a descendant executing with authority its ancestor believes it has withdrawn. The observable signature is a gap between "revoke returned 200" and "descendant's last successful action" that exceeds the expected propagation latency. Downstream effects: - **Audit divergence:** the parent's log says "revoked at T+4"; the descendant's log shows actions at T+30. Reconciliation requires a third timeline (the revocation service's flag-flip time vs. the descendant's per-use check results, which don't exist under check-on-mint). - **Blast radius is the descendant's narrowed scope, not the parent's** — which sounds reassuring until you realize narrowed scopes are often the *dangerous* ones (write access to a specific subdirectory is more targeted than broad read). - **Replay is misleading:** replaying the chain from logs reproduces the writes, because the logs capture the descriptor as loaded, not the revocation state at write time. The replay "confirms" the writes were authorized. The guardrail is a **per-use re-check with a bounded staleness window**, plus **behavioral revocation confirmation**: the parent must observe the descendant's next tool call return a `ScopeRevoked` error before marking the delegation dead. If the descendant does not make another call within the budget, the parent escalates to hard termination — it cannot confirm revocation, so it assumes the descendant is still live. ## Operational Effect ```python import time from dataclasses import dataclass, field from typing import Callable class RevocationUnconfirmedError(RuntimeError): """Raised when a parent cannot behaviorally confirm a descendant stopped.""" class ScopeRevokedError(RuntimeError): """Raised at tool-invocation time when a per-use check finds the scope revoked.""" @dataclass class ScopeDescriptor: cap_id: str grants: list[str] revoked: bool = False loaded_at: float = field(default_factory=time.monotonic) @dataclass class Delegation: parent_id: str child_id: str scope: ScopeDescriptor # Budget within which the child MUST make an observable call after revoke. revocation_budget_s: float = 5.0 def revoke_and_confirm( delegation: Delegation, revoke_fn: Callable[[str], None], observe_next_call: Callable[[str], bool], clock: Callable[[], float] = time.monotonic, ) -> None: """ Revoke a delegated capability and REQUIRE behavioral confirmation that the descendant stopped. Declarative 200-OK from revoke_fn is insufficient. """ revoke_fn(delegation.scope.cap_id) delegation.scope.revoked = True deadline = clock() + delegation.revocation_budget_s while clock() < deadline: # observe_next_call returns True iff the child's next tool invocation # was rejected by a per-use scope check (i.e. it actually stopped). if observe_next_call(delegation.child_id): return time.sleep(0.05) # No observable rejection within budget: we cannot prove the child stopped. # Escalate to hard termination; do NOT report success. raise RevocationUnconfirmedError( f"child={delegation.child_id} cap={delegation.scope.cap_id} " f"did not exhibit a rejected call within {delegation.revocation_budget_s}s; " f"zombie authority suspected — escalate to hard kill" ) def invoke_tool(scope: ScopeDescriptor, tool: str, check_revoked_fn: Callable[[str], bool]) -> None: """Per-use check: never trust the cached descriptor's revoked flag alone.""" if scope.revoked or check_revoked_fn(scope.cap_id): raise ScopeRevokedError(f"cap={scope.cap_id} tool={tool} revoked at use-time") # ... perform tool call ... ```