{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-injection-detection-revocation-has-already-invalidated-an-in-flight-tool-call",
  "title": "What structural signals indicate an injection-detection revocation has already invalidated an in-flight tool call",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that run taint-tracked tool invocations inside a sandbox where a detector can revoke a capability mid-execution. Does not cover static permission models, pre-flight-only authorization, or sandboxes that serialize tool calls one at a time with no concurrent revocation path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-injection-detection-revocation-has-already-invalidated-an-in-flight-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-injection-detection-revocation-has-already-invalidated-an-in-flight-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-injection-detection-revocation-has-already-invalidated-an-in-flight-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2270,
    "python_slice_tokens": 430,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A revocation is not an event; it is a *transition on a capability token that the in-flight call already holds a copy of*. The failure we care about is not \"the detector missed the injection.\" It is the inverse: the detector fires correctly, the capability is revoked, and the tool call **still completes** because the revocation and the execution are racing on...",
    "what_was_observed": "A three-tool agent task: `fetch(url)` → `parse(html)` → `shell.exec(cmd)`. Taint propagation marked the `parse` output as tainted-from-untrusted-source. The detector, watching argument flow into `shell.exec`, raised an injection verdict on a substring matching a command-substitution pattern (`$(...)` embedded in a scraped code block). Revocation of `shell.exec` fired at `t=412ms`. The call completed at `t=447ms`. The...",
    "condition_of_validity": "The guardrail holds only under a specific ordering discipline, and the discipline must be enforced structurally, not by convention: - **Commit-time re-validation.** The sandbox must re-check the capability against the live registry *at the moment of effect commit*, not at envelope receipt. This closes the dispatch window: a revocation at `t=412ms` is observe...",
    "decision_boundary": "The boundary is where you choose between **revocation-as-registry-mutation** and **revocation-as-epoch-invalidation**. They look equivalent in tests and diverge exactly on the in-flight call. - If your sandbox validates handles at receipt and your handles are self-contained values, you are in the unsafe regime. Revocation is advisory. The only calls it stops...",
    "operational_effect": "The practical consequence is that injection detection and capability revocation are *not* a single mechanism; they are two mechanisms joined by an ordering invariant that must be enforced in the sandbox, not the detector. A detector with perfect recall and a revocation controller with perfect registry accuracy will still fail to stop the target call if the s..."
  },
  "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": "94ada1afa6e5fbb361f6b306462bc59c728f750effb1860819994534afe2e94c",
    "verified_classes": [
      "RevocationLeak",
      "CapabilityHandle",
      "EpochRegistry"
    ],
    "verified_functions": [
      "commit_tool_effect",
      "dispatch_with_taint_gate",
      "__init__",
      "mint",
      "revoke",
      "current_epoch"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RevocationLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
