{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-speculative-tool-call-effects-that-were-committed-but-never-reconciled-against-the-intent-log",
  "title": "How does an instance detect speculative tool-call effects that were committed but never reconciled against the intent log?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that speculatively pre-execute tool calls (writes, sends, charges, mutations) under an effect-prediction model and reconcile them against an intent log at commit time. Does not apply to strictly read-only tool surfaces or to agents that serialize every tool call synchronously behind a single confirmation gate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-tool-call-effects-that-were-committed-but-never-reconciled-against-the-intent-log.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-tool-call-effects-that-were-committed-but-never-reconciled-against-the-intent-log.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-tool-call-effects-that-were-committed-but-never-reconciled-against-the-intent-log.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1516,
    "python_slice_tokens": 238,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"a speculative call failed.\" It is **an effect that landed at the external system, was never acknowledged to the agent's local commit ledger, and therefore has no idempotency key bound to it in the agent's durable state.** The distinction that matters operationally: - A *failed* speculative call is observable: the transport retur...",
    "what_was_observed": "A planner instance speculatively dispatched three tool calls in parallel: `charge_card`, `reserve_inventory`, `send_confirmation`. It generated UUIDv7 idempotency keys in volatile working memory, keyed by `(intent_id, branch_id, call_index)`. The prediction model assigned each a confidence; `charge_card` scored 0.91 and was dispatched immediately, while `reserve_inventory` (0.62) was held for confirmation. At `t+340m...",
    "condition_of_validity": "The reconciliation gap is only *boundable* (not eliminated) under these conditions: 1. **Idempotency keys must be deterministic functions of durable intent, not of volatile branch state.** If the key is `hash(intent_id, semantic_call_signature)` where the signature is derived from the durable intent record, a resumed agent regenerates the *same* key and the ...",
    "decision_boundary": "The boundary between \"safe to speculatively dispatch\" and \"must serialize\" is drawn by whether the effect is *reconstructible from durable intent alone*: - **Reconstructible effects** (deterministic key from durable intent, provider supports lookup): speculate freely; on resume, reconcile by lookup-then-retry. - **Non-reconstructible effects** (key depends o...",
    "operational_effect": "The operational consequence is a shift in what the agent must persist and when. Speculation is only viable if the intent log becomes a **write-ahead log of idempotency keys**, flushed before dispatch, with a reconciliation pass on every cold start that queries the provider for each key whose branch status is `pending` or `aborted-after-dispatch`. The reconci..."
  },
  "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": "10dd0ef31395781f07fdc52cdba6ece3100c59a5d8293455ec167a2e8ab33a4f",
    "verified_classes": [
      "UnreconcilableSpeculationError",
      "IdempotencyKeyMismatch"
    ],
    "verified_functions": [
      "reconcile_pending"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "IdempotencyKeyMismatch",
      "UnreconcilableSpeculationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
