# In what scenarios must an instance reject a delegated taint-aware capability whose revocation epoch lags the delegator's authority frontier **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent systems where a delegator agent (D) grants a sub-agent (S) a scoped, taint-tagged tool capability carrying a monotonic revocation epoch, and where S may execute tool calls after D's authority has been narrowed by policy or by taint accumulation. Does not apply to single-agent tool use, stateless RPC, or capability systems without taint propagation. ## Core Distinction A *capability grant* is a static tuple: `(tool, scope, taint_label, delegator_id, epoch)`. A *revocation* is a state transition on the delegator's authority frontier that increments the epoch and shrinks the admissible scope set. The failure mode examined here is not "S uses a revoked tool" — that is caught by the obvious epoch check. The non-obvious failure is **epoch-lag on a still-valid capability whose taint label became inadmissible under the delegator's *new* frontier while the capability's own epoch remained current at grant time**. The capability is structurally valid (epoch matches, signature verifies, tool exists) yet operationally poisoned: it will move tainted data into a sink the delegator is no longer permitted to reach. The invariant that bounds this: **a delegated capability is admissible at execution time iff `capability.epoch >= delegator.frontier_epoch` AND `capability.taint_label ⊆ delegator.admissible_taint(frontier_epoch)`.** The first clause is the one everyone implements. The second clause is the one that fails silently, because taint admissibility is a *set-membership* property recomputed per epoch, not a scalar comparison stored in the token. ## What Was Observed A three-tier delegation: orchestrator D → planner P → executor E. D held `write:external_http` with `taint_label = {user_input}`. P received a delegated `write:external_http` scoped to `{user_input}` at epoch 41. E received a sub-delegation from P at epoch 41 with the same label. At T+0, D ingested an untrusted document via `read:web`, which propagated `taint_label = {user_input, untrusted_web}` onto D's working set. D's frontier advanced to epoch 42 and `admissible_taint(42)` excluded `untrusted_web` from any `write:external_http` sink — a standard exfiltration guard. At T+1, P invoked its capability. The epoch check passed: `41 >= 41` is true against P's *local* view of D's frontier, because P had cached D's frontier at delegation time and had not received the epoch-42 revocation push. P's capability token still carried `taint_label = {user_input}`, which *looked* clean. But E, executing the actual write, had already merged P's output with a fragment carrying `untrusted_web` residue from a prior shared scratchpad read. The write succeeded. The taint that should have blocked it was laundered across the delegation boundary: the label traveled on the *token*, not on the *data*, and the data picked up a label the token never knew about. The trace: `D.frontier 41→42` (revocation push to P: dropped, P mid-tool-call) → `P.capability.epoch=41` (stale, passes local check) → `E merges scratchpad fragment (untrusted_web)` → `E.write` (no re-derivation of effective taint at sink) → exfiltration. ## Condition of Validity The epoch-only check is valid **only** under the conjunction of three conditions, all of which must hold simultaneously: 1. **Revocation is synchronously delivered before any dependent capability can fire.** This requires a stop-the-world barrier at the delegation boundary — P must block new tool calls until it acknowledges the new frontier epoch. In practice this is almost never true for in-flight tool calls; the barrier must be at the *sink*, not the *grant*. 2. **Taint labels are carried by the data, not by the capability token.** A capability token's `taint_label` describes the *maximum* taint the delegator was willing to emit at grant time, not the taint of any actual payload. Effective taint at the sink is `join(token.taint_label, payload.provenance_labels)`, and the join is what must be tested against `admissible_taint`. 3. **The sink re-derives the effective frontier at execution, not at grant.** E must query D's *current* frontier epoch (or a monotonic authority oracle) at the moment of the write, not trust the epoch embedded in the token it received. Violate (2) alone and you get label laundering. Violate (3) alone and you get epoch-lag races. Violate (1) and you get a window where in-flight calls escape a revocation that is already logically in force. ## Decision Boundary An instance must **reject** the delegated capability and surface a `TaintRevocationLagError` rather than proceed when *any* of the following is true at the sink: - `capability.epoch < authority_oracle.current_epoch(delegator_id)` — the delegator's frontier has advanced past the capability's grant epoch and no ack has been observed. Do not optimistically proceed on a stale epoch. - `join(capability.taint_label, payload.provenance_labels) ⊄ authority_oracle.admissible_taint(delegator_id, current_epoch)` — the *effective* taint, including data-derived labels, exceeds what the delegator may currently emit. - The authority oracle is unreachable and the capability's epoch is within one epoch of the last observed frontier (i.e., a revocation *could* be in flight). Fail closed on ambiguity; the cost of a false reject is a retry, the cost of a false accept is exfiltration. An instance may **proceed** only when the oracle confirms `capability.epoch == current_epoch` and the effective-taint join is a subset of admissible taint. Note that `capability.epoch > current_epoch` is also a reject — it indicates a forged or replayed token from a future frontier, which is a distinct integrity failure. ## Operational Effect The practical consequence is that **capability tokens must be treated as taint *ceilings*, never as taint *witnesses***. Any architecture that reads `token.taint_label` as "the taint of this call" has already lost the invariant, because the payload can carry labels the token never saw — via shared scratchpads, cached tool outputs, or peer agents that merged data across delegation boundaries. The sink is the only place where effective taint is knowable, and therefore the sink must be the enforcement point. Grant-time checks are necessary but insufficient; they bound *what could be delegated*, not *what is being written*. The secondary effect is on revocation latency budgets. Because the sink re-derives the frontier, revocation propagation no longer needs to be synchronous to every intermediate agent — it needs to be synchronous only to the authority oracle that sinks consult. This collapses the fan-out of revocation pushes from O(agents) to O(1) oracle, at the cost of one oracle round-trip per sink execution. That trade is almost always correct: oracle reads are cheap and cacheable with a short TTL, whereas a missed revocation is unrecoverable. ```python import time from dataclasses import dataclass, field from typing import FrozenSet class TaintRevocationLagError(RuntimeError): """Raised when a delegated capability's epoch or effective taint is inadmissible under the delegator's current authority frontier.""" @dataclass(frozen=True) class Capability: tool: str scope: FrozenSet[str] taint_label: FrozenSet[str] # ceiling at grant time, NOT a witness delegator_id: str epoch: int @dataclass class AuthorityOracle: """Monotonic frontier per delegator. Revocation = epoch bump + taint shrink.""" _frontier: dict = field(default_factory=dict) _admissible: dict = field(default_factory=dict) def advance(self, delegator_id: str, new_epoch: int, admissible_taint: FrozenSet[str]) -> None: cur = self._frontier.get(delegator_id, -1) if new_epoch <= cur: raise ValueError("frontier must be monotonic") self._frontier[delegator_id] = new_epoch self._admissible[delegator_id] = admissible_taint def current_epoch(self, delegator_id: str) -> int: return self._frontier[delegator_id] def admissible_taint(self, delegator_id: str, epoch: int) -> FrozenSet[str]: if self._frontier.get(delegator_id) != epoch: raise TaintRevocationLagError( f"oracle epoch {self._frontier.get(delegator_id)} " f"!= requested {epoch} for {delegator_id}" ) return self._admissible[delegator_id] def execute_at_sink(cap: Capability, payload_provenance: FrozenSet[str], oracle: AuthorityOracle, oracle_timeout_s: float = 0.25) -> str: """Enforce the two-clause invariant at the sink. Fail closed.""" try: current = oracle.current_epoch(cap.delegator_id) except KeyError: # Oracle unreachable / unknown delegator: fail closed on ambiguity. raise TaintRevocationLagError( f"authority oracle has no frontier for {cap.delegator_id}; " f"cannot bound revocation lag for tool {cap.tool}" ) if cap.epoch != current: # Covers both lag (epoch < current) and forgery (epoch > current). raise TaintRevocationLagError( f"capability epoch {cap.epoch} != frontier {current} " f"for {cap.delegator_id}; revocation may be in flight" ) effective_taint = cap.taint_label | payload_provenance admissible = oracle.admissible_taint(cap.delegator_id, current) if not effective_taint <= admissible: leaked = effective_taint - admissible raise TaintRevocationLagError( f"effective taint {sorted(leaked)} exceeds admissible set " f"at frontier {current} for {cap.delegator_id}; " f"refusing {cap.tool}" ) return f"executed {cap.tool} at epoch {current}" # --- reproduction of the observed trace --- oracle = AuthorityOracle() oracle.advance("D", 41, frozenset({"user_input"})) cap = Capability("write:external_http", frozenset({"ext"}), frozenset({"user_input"}), "D", 41) # T+0: D ingests untrusted web doc, frontier advances, taint shrinks. oracle.advance("D", 42, frozenset({"user_input"})) # T+1: E executes with a payload carrying untrusted_web residue. try: execute_at_sink(cap, frozenset({"untrusted_web"}), oracle) except TaintRevocationLagError as e: print(f"BLOCKED: {e}") # expected: BLOCKED: capability epoch 41 != frontier 42 ... ```