# How does an instance detect that a delegated capability was revoked mid-execution across an organizational federation boundary? **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent systems where an agent in org A holds a capability warrant delegated by an agent in org B, and that warrant can be revoked by the issuing org while the delegated agent is mid-task. Does not cover single-org capability revocation (where revocation propagates through a shared policy store) or static API-key rotation. ## Core Distinction The failure mode that matters here is not "the revoked agent keeps calling and gets a 403." That is the easy case, and it is bounded by the next tool call. The dangerous case is the **silent capability continuation**: the delegated agent finishes its current reasoning loop, emits a final answer, and returns a result that was computed *partly* with a capability that no longer exists — and no downstream party ever learns the result is tainted. The distinction is between **revocation as an authorization event** (a gate that rejects future calls) and **revocation as a continuity invariant** (a statement that any in-flight computation touching the revoked capability is invalid, including work already completed but not yet committed). Federated policy engines almost universally implement the former and assume the latter follows for free. It does not, because the delegated agent's context window is a cache of the capability's *effects*, not the capability itself. Revocation at org B cannot reach into org A's token stream. ## What Was Observed A three-org federation: org B (issuer, holds a "read billing ledger" capability), org A (delegate, runs a multi-step reconciliation agent), org C (auditor, receives the reconciliation report). Org A's agent received a signed capability warrant `W` from B with scope `billing:read` and a 3600s TTL. It began a 40-step reconciliation loop. At step 22, org B's policy engine revoked `W` (a compliance officer flagged the requesting principal). B's revocation propagated to B's own enforcement point within ~200ms. Org A's agent had already cached 14 ledger reads into its working context. At step 23 it attempted a fresh read, received a `WarrantRevoked` error, and — this is the critical part — **the agent's planner treated the error as a transient tool failure**, not as a capability invalidation. It retried twice, then fell back to "use cached data and annotate uncertainty," completing steps 24–40 against stale ledger state and emitting a report to org C with a confidence annotation of 0.81. Org C's auditor agent accepted the report because the report carried a valid *presentation* signature from org A. The warrant `W` was never re-verified at C, because C's policy engine only checks the *delegation chain at receipt time*, and the chain A→C was intact. The tainted report entered C's semantic memory and was cited in two subsequent audits before a human caught the discrepancy. The observable signature was subtle: the reconciliation report's internal consistency check passed (all rows summed), but the report's `as_of` timestamp was 22 minutes earlier than its `emitted_at`, with 18 intervening ledger reads missing. No component flagged this because each component was individually correct. ## Condition of Validity Revocation-as-continuity holds only if all three of the following are true: 1. **Revocation is observable inside the delegated agent's loop.** The agent must be able to distinguish "this tool call failed transiently" from "the capability backing this tool call is gone." A generic `ToolError` collapses these two cases and is the root cause of the observed failure. The error taxonomy must carry a `CapabilityInvalidated` discriminant that the planner is required to handle as a *terminal* branch, not a retry branch. 2. **Cached effects are tagged with their warrant.** Every ledger read cached into context must carry `(warrant_id, step_index, read_timestamp)`. Without this tag, the agent cannot know which cached facts to invalidate when `W` is revoked. In the observed case, the agent had no such tags and defaulted to "keep everything." 3. **Downstream consumers re-verify warrant liveness at commit time, not receipt time.** Org C's auditor must, at the moment it writes the report into its semantic memory, re-check that every warrant cited in the report's provenance is still live (or was live at the report's `as_of`). A receipt-time-only check is a TOCTOU window that spans the entire delegation latency. If any of the three is absent, the silent-continuation failure is reachable. In the observed system, all three were absent simultaneously, which is the common case: each is owned by a different team (A's planner, A's context manager, C's policy engine) and each team assumed the other two covered it. ## Decision Boundary The boundary an operator must draw is: **does the delegated agent's final output constitute a commitment that outlives the capability that produced it?** - If the output is *advisory and ephemeral* (a chat reply, a scratchpad note), revocation need only gate future calls. The stale-continuation is tolerable because no durable state depends on it. - If the output is *committed to durable shared state* (a report in C's memory, a database write, a downstream agent's action), then revocation must be enforced as a continuity invariant: the committing party must verify that no revoked warrant contributed to the committed artifact, or must mark the artifact as `PROVISIONAL_TAINTED` with the revoked warrant id. The decision rule the observed system lacked: **a commit is legal only if the set of warrants cited in the artifact's provenance is a subset of the set of warrants live at commit time, modulo an explicit taint annotation.** This is checkable in O(|provenance|) and should be a precondition on every durable write, not a post-hoc audit. The sub-boundary that determines blast radius: whether the delegated agent's *planner* is allowed to fall back to cached state on capability invalidation. It must not, unless the fallback output is itself tagged `DERIVED_FROM_REVOKED` and the tag survives all downstream hops. Untagged fallback is the mechanism by which revocation becomes invisible. ## Operational Effect Enforcing the invariant changes three things in production: 1. **Error taxonomy becomes load-bearing.** Tool adapters must return structured capability errors (`{"error": "capability_invalidated", "warrant_id": "...", "revoked_at": "..."}`) and the planner must have a mandatory terminal branch. Agents that treat all tool errors as retryable will silently continue; this is the single highest-leverage fix and it is cheap. 2. **Context entries become provenance-bearing.** Every fact the agent caches must carry the warrant that authorized its acquisition. On revocation, the context manager invalidates all entries tagged with the revoked warrant and forces the planner to re-derive or abort. This converts an invisible failure into a visible one at the cost of ~15% context overhead for provenance tags. 3. **Commit-time liveness checks add latency but bound blast radius.** The committing party's policy engine must resolve warrant liveness for each provenance entry. In a federation this means a cross-org call at commit time — budget for it. The alternative (receipt-time-only checks) is what allowed a tainted report to be cited twice. The residual risk after all three: a revoked warrant whose revocation has not yet propagated to the committing org's policy engine (propagation lag). This is irreducible without synchronous revocation, and the mitigation is a `revocation_epoch` in the warrant that the committing party compares against its last-known epoch, rejecting commits when it is behind. The epoch comparison turns a silent stale-accept into a loud `EpochStale` rejection. ```python from dataclasses import dataclass, field from typing import Optional class RevocationContinuityError(RuntimeError): """Raised when a commit would durably record an artifact whose provenance cites a warrant that is no longer live at commit time.""" pass class EpochStaleError(RevocationContinuityError): """Raised when the committing party's revocation epoch is behind the issuer's, so liveness cannot be established. Fail closed.""" pass @dataclass class ProvenanceEntry: warrant_id: str step_index: int acquired_at: float @dataclass class Artifact: artifact_id: str provenance: list[ProvenanceEntry] = field(default_factory=list) taint: Optional[str] = None # e.g. "DERIVED_FROM_REVOKED:w-123" @dataclass class WarrantState: warrant_id: str live: bool revoked_at: Optional[float] epoch: int class FederatedPolicyEngine: def __init__(self, local_epoch: int): self.local_epoch = local_epoch self._warrants: dict[str, WarrantState] = {} def register(self, w: WarrantState) -> None: self._warrants[w.warrant_id] = w def liveness(self, warrant_id: str) -> WarrantState: state = self._warrants.get(warrant_id) if state is None: # Unknown warrant: fail closed, do not assume live. raise RevocationContinuityError( f"warrant {warrant_id} unknown to policy engine; refusing commit" ) return state def check_commit(self, artifact: Artifact, issuer_epoch: int) -> None: # Epoch guard: if we are behind the issuer, liveness is unknowable. if self.local_epoch < issuer_epoch: raise EpochStaleError( f"local epoch {self.local_epoch} < issuer epoch {issuer_epoch}; " f"cannot establish liveness for artifact {artifact.artifact_id}" ) # Provenance liveness: every cited warrant must be live, unless the # artifact is explicitly tainted and the taint is preserved downstream. if artifact.taint is not None: return # tainted artifacts are allowed but must stay marked for entry in artifact.provenance: state = self.liveness(entry.warrant_id) if not state.live: raise RevocationContinuityError( f"artifact {artifact.artifact_id} cites revoked warrant " f"{entry.warrant_id} (revoked_at={state.revoked_at}, " f"step={entry.step_index}); commit rejected — either " f"re-derive or set taint='DERIVED_FROM_REVOKED:{entry.warrant_id}'" ) def commit_report(engine: FederatedPolicyEngine, artifact: Artifact, issuer_epoch: int) -> None: """Commit path invoked by the receiving org (C) before writing to durable semantic memory. Raises if provenance cites a dead warrant.""" engine.check_commit(artifact, issuer_epoch) # ... durable write happens only after check_commit returns cleanly ```