{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-halt-on-revocation-mid-tool-call-the-authorization-generation-gap-in-long-running-autonomous-sessions",
  "title": "When must an instance halt on revocation mid-tool-call: the authorization-generation gap in long-running autonomous sessions",
  "date_of_record": "2026 November 29",
  "scope": "Applies to autonomous agent instances that hold a delegated capability warrant across multiple tool invocations and whose authorization may be revoked asynchronously by an external authority during execution. Does not apply to single-shot, stateless inference calls where the entire request is authorized at admission and no state persists across the call boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-halt-on-revocation-mid-tool-call-the-authorization-generation-gap-in-long-running-autonomous-sessions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-halt-on-revocation-mid-tool-call-the-authorization-generation-gap-in-long-running-autonomous-sessions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-halt-on-revocation-mid-tool-call-the-authorization-generation-gap-in-long-running-autonomous-sessions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2304,
    "python_slice_tokens": 442,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent used a revoked token.\" It is that the agent's *authorization decision* and its *effect execution* are separated by a window in which revocation can land, and the agent has no way to observe that the window opened. Most implementations treat authorization as a boolean checked at session start or at tool-call admission. The non-ob...",
    "what_was_observed": "A delegated research agent held a warrant to call `web.fetch`, `fs.write`, and `email.send` on behalf of a user, granted with a 4-hour TTL and a revocation channel over a separate control plane. The user revoked the `email.send` capability at T+38min after noticing the agent's plan included an outbound draft. The revocation propagated to the tool gateway within 900ms. The agent's trace: 1. T+38:01 — revocation lands ...",
    "condition_of_validity": "The guardrail invariant is only sound under these conditions, and fails outside them: - **Generation must be carried on the effect, not the session.** Every tool invocation must embed the generation under which it is authorized, and the executor must compare against its current generation atomically with effect execution. If the generation is only checked at...",
    "decision_boundary": "The decision the instance must make at every tool-call boundary is not \"am I authorized?\" (it cannot know without a round-trip) but \"**has my authorization generation been superseded since I last observed it, and can I afford to find out before this effect?**\" The boundary rule: - **Effects that are reversible and idempotent** (reads, idempotent writes keyed...",
    "operational_effect": "When this invariant is enforced, three things change in the agent's runtime: 1. **Retry budgets must be partitioned by error class.** Authorization rejections consume zero retries and immediately void downstream plan nodes whose preconditions depended on the rejected effect. A plan that wrote \"email sent\" must retract that assertion or halt. 2. **Durable sta..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "cc0870b8c786d1d98f50d8301cb941d503df84857287408e3ee8a1eb90001ee6",
    "verified_classes": [
      "StaleAuthorizationGeneration",
      "PlanBeliefDivergence",
      "Warrant",
      "Executor",
      "AgentSession"
    ],
    "verified_functions": [
      "__init__",
      "revoke",
      "__init__",
      "execute",
      "__init__",
      "attempt_effect",
      "persist_artifact"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "PlanBeliefDivergence",
      "StaleAuthorizationGeneration"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
