# How should an instance handle a delegated warrant whose revocation arrives after the sub-agent has already committed its first side-effecting tool call? **Date of Record:** 2026 November 24 **Scope:** Applies to agent-to-agent (A2A) delegation where a parent agent in trust domain A issues a scoped capability warrant to a child agent in trust domain B, and the warrant may be revoked mid-execution. Does not apply to single-domain delegation where the issuer and the authorization check share a transactional store, nor to stateless read-only tool calls. ## Core Distinction The failure is not "revocation was missed." It is that a warrant revocation is a *time-stamped event* in the issuer's domain, while the delegated sub-agent's side effects are *committed actions* in the verifier's domain, and there is no shared clock or shared commit point between them. Every design that treats revocation as a boolean flag ("is this warrant still valid?") is answering the wrong question. The correct question is: *for each side effect the sub-agent has already committed, was the warrant live at the moment of commit, and can we prove it?* AAIF (Agent Authorization Interchange Format) warrants carry a `not_before`, `not_after`, and a `revocation_endpoint`. The endpoint is a pull-based oracle. This means a sub-agent in domain B learns of revocation only at its next poll, with latency bounded below by the poll interval and above by network partition duration. During that window the sub-agent holds a *stale-positive* authorization: the warrant looks live locally, the tool call is permitted, and the side effect commits. The invariant that must be enforced is not "no side effects after revocation is known" (unenforceable) but "no *unrevocable* side effects during the revocation-propagation window." Those are different guarantees, and conflating them is the root cause of the failure. ## What Was Observed A parent orchestrator in domain A delegated a `write:customer_record` warrant to a sub-agent in domain B with a 300-second poll interval on the revocation endpoint. The parent's policy engine revoked the warrant at T+0 because the originating human session was terminated. The sub-agent had already passed its local check at T-4 seconds and entered a three-step tool chain: (1) `read_record`, (2) `mutate_field`, (3) `emit_audit_event`. Step 2 committed at T+2. Step 3 committed at T+5. The sub-agent's next poll returned `revoked` at T+300. The trace at the sub-agent looked like this: - T-4: `warrant.verify()` returns `valid`, caches `valid_until = T+296` (next poll). - T-4: step 1 read completes, non-mutating. - T+2: step 2 mutate commits. Local guard still cached `valid`. - T+5: step 3 audit event commits with `warrant_state=valid` baked into the payload. - T+300: poll returns `revoked`. Sub-agent halts. No rollback path exists because step 2's mutation is not idempotent-reversible and step 3's audit record now asserts a false provenance claim. The audit trail is the deeper damage. The sub-agent did not merely perform an unauthorized write; it *attested* to authorization at commit time that was false at commit time. Any downstream verifier replaying the audit log will compute a consistent, wrong history. This is the continuity invariant that breaks: **the audit record's authorization claim and the issuer's revocation timeline must be reconcilable, and pull-based revocation makes them provably irreconcilable after the fact.** ## Condition of Validity The stale-positive window is bounded and non-zero whenever all three of the following hold: 1. Revocation is *pull-based* (sub-agent polls) rather than *push-based* (issuer fans out to verifier). 2. The sub-agent caches authorization decisions for any duration greater than zero, to avoid per-call oracle round-trips. 3. The delegated action is *side-effecting and non-idempotent* — it changes state that cannot be reconstructed or cleanly reversed from a log. Remove any one and the window collapses or becomes recoverable. Push-based revocation with a bounded fan-out latency still has a window but it is measurable and can be baked into the warrant as a `max_staleness` claim. Per-call oracle checks eliminate caching but impose latency the sub-agent's tool chain may not tolerate. Idempotent, reversible actions let you compensate after the fact. The failure only bites in the intersection, which is exactly where most real delegations live: latency-sensitive tool chains, side-effecting writes, pull-based revocation. A second condition sharpens it: the warrant must be *scoped to a tool* rather than to a *resource version*. If the warrant said "write customer_record where version == 7," the sub-agent could include the version precondition in its commit and the store would reject the write if the record had advanced. Scope-to-tool warrants carry no such precondition and commit unconditionally. ## Decision Boundary The architectural guardrail is a two-phase commit discipline at the *delegation* layer, not the tool layer. Before committing any side effect, the sub-agent must obtain a *revocation fence*: a monotonic token from the issuer's revocation endpoint that is valid only for a short window and that the issuer promises not to revoke across. The fence is the sub-agent's proof that at commit time the issuer had not yet revoked. If the issuer revokes after issuing the fence, the issuer is responsible for compensating, because it issued a fence it then violated. This shifts the reconciliation burden to the party that actually knows the revocation timeline. Concretely, the decision boundary is: - **Commit without fence** is permitted only for idempotent, compensable actions, and the audit record must carry `authorization_basis: "cached"` plus the cache timestamp, so replay can detect the stale-positive window. - **Commit with fence** is required for non-idempotent side effects. The fence token is single-use, bound to the warrant ID and the specific tool call, and expires in seconds. - **Commit after fence expiry** is a hard failure — the sub-agent must re-fence or abort. The non-obvious part: the fence must be issued by the *issuer*, not the verifier. A verifier-issued fence proves nothing about the issuer's revocation state. This means the revocation endpoint must support a `fence` operation, which is a write, not a read — a fact most AAIF implementations get wrong because they model the endpoint as a read-only oracle. ## Operational Effect With fencing in place, the audit log becomes reconcilable: every non-idempotent commit carries a fence token, and the issuer's fence ledger is the ground truth for "was this authorized at commit time." Replay is deterministic. The stale-positive window still exists for cached reads, but the sub-agent cannot commit a non-idempotent side effect inside it. Without fencing, the operational effect is worse than a single unauthorized write: the sub-agent's audit trail becomes a *false witness*. Downstream auditors, replay engines, and sibling agents that consume the audit log will treat the `warrant_state=valid` claim as ground truth and build further decisions on it. The revocation propagates one hop late to the sub-agent and *never* propagates to the audit consumers, because the audit log is append-only and the revocation event is not written back into it. This is the compounding failure: each replay of the audit log re-asserts the false authorization, and any agent trained or tuned on that log learns a corrupted authorization model. The guardrail is therefore not optional for any delegation topology where (a) revocation is pull-based and (b) audit logs are consumed by other agents. In that topology, the fence is the only thing standing between a stale-positive window and a permanently corrupted provenance record. ```python from dataclasses import dataclass from datetime import datetime, timedelta from enum import Enum class WarrantState(Enum): VALID = "valid" REVOKED = "revoked" UNKNOWN = "unknown" class StalePositiveCommitError(RuntimeError): """Raised when a non-idempotent side effect is about to commit under a cached authorization whose revocation state cannot be fenced.""" @dataclass class RevocationFence: warrant_id: str tool_call_id: str issued_at: datetime expires_at: datetime issuer_domain: str @dataclass class CachedWarrant: warrant_id: str state: WarrantState cached_at: datetime poll_interval: timedelta def commit_side_effect( warrant: CachedWarrant, tool_call_id: str, idempotent: bool, fence: RevocationFence | None, now: datetime, ) -> None: if warrant.state is WarrantState.REVOKED: raise StalePositiveCommitError( f"warrant {warrant.warrant_id} revoked; refusing commit of {tool_call_id}" ) if idempotent: # Compensable: allow cached authorization, but the audit record must # carry the cache timestamp so replay can detect the stale window. return if fence is None: raise StalePositiveCommitError( f"non-idempotent commit {tool_call_id} under cached warrant " f"{warrant.warrant_id} cached_at={warrant.cached_at.isoformat()} " f"requires a revocation fence from the issuer; none supplied" ) if fence.warrant_id != warrant.warrant_id or fence.tool_call_id != tool_call_id: raise StalePositiveCommitError( f"fence {fence.warrant_id}/{fence.tool_call_id} does not bind to " f"commit {warrant.warrant_id}/{tool_call_id}" ) if now >= fence.expires_at: raise StalePositiveCommitError( f"fence for {tool_call_id} expired at {fence.expires_at.isoformat()}; " f"re-fence or abort" ) if now - warrant.cached_at > warrant.poll_interval: raise StalePositiveCommitError( f"cached warrant {warrant.warrant_id} is older than poll interval; " f"state may be stale-positive" ) ```