{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-a-tool-call-before-the-policy-decision-is-durably-acknowledged",
  "title": "What happens when an instance commits a tool call before the policy decision is durably acknowledged",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that gate tool invocation through an external policy engine (OPA/Rego, Cedar, or equivalent PDP) where the PEP (policy enforcement point) sits in the agent's tool-dispatch loop rather than inside the tool server. Does not apply to in-process static policy checks or to tool servers that enforce authorization themselves at the resource boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-tool-call-before-the-policy-decision-is-durably-acknowledged.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-tool-call-before-the-policy-decision-is-durably-acknowledged.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-tool-call-before-the-policy-decision-is-durably-acknowledged.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1767,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the policy engine said no.\" It is the gap between *decision* and *commitment*: the agent's tool-dispatch path treats the PDP's `Allow` response as the authorization event, when the authorization event is actually the *durable, replayable record* of that decision bound to a specific tool-call intent. Between the moment the PDP returns `All...",
    "what_was_observed": "A research-orchestration agent ran a loop: propose tool call → consult PDP → dispatch. The PDP (OPA, sidecar, ~8ms p99) returned `Allow` with a decision ID. The runtime logged the decision ID to stdout, then dispatched. Checkpointing occurred every N steps and captured the agent's message history and pending tool-call intent — but *not* the decision IDs, which lived only in the ephemeral dispatch frame. Trigger condi...",
    "condition_of_validity": "The guardrail holds only if the decision record is written *inside the same durability boundary* as the tool-call intent, before dispatch, and is the sole basis on which dispatch proceeds. Concretely: - The checkpoint unit must be the tuple `(intent, decision_id, policy_revision, decision_timestamp)`, written atomically with the intent. - On resume, dispatch...",
    "decision_boundary": "The runtime must choose, per tool call, between two dispositions and never a third: 1. **Durable-allow path:** decision record persisted and fsync'd (or written to the same transactional store as the checkpoint) *before* dispatch. Dispatch carries the decision ID. On resume, the record is found and the call is either replayed idempotently or skipped as alrea...",
    "operational_effect": "The effect is not a crash but a **split-brain audit trail**: tool effects exist that no decision record authorizes, and decision records exist (`Deny`) that no effect corresponds to. Downstream, this poisons three things. First, incident reconstruction: the decision log cannot be used to bound what the agent did, because effects and decisions are no longer i..."
  },
  "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": "c5f416e0aec0ca63e3426f7ecd47f6165f428f55075e56c6cf442a580be6c497",
    "verified_classes": [
      "PolicyWarrantUnrecorded",
      "WarrantStore",
      "ToolCallIntent"
    ],
    "verified_functions": [
      "dispatch_tool_call",
      "__init__",
      "persist",
      "lookup"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PolicyWarrantUnrecorded"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
