{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-pre-executes-a-tool-call-whose-shadow-sandbox-commit-is-later-rejected-by-a-verification-quorum",
  "title": "What happens when an instance speculatively pre-executes a tool call whose shadow-sandbox commit is later rejected by a verification quorum",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agent runtimes that overlap planning latency by speculatively executing tool calls in shadow sandboxes and commit their effects only after a verification quorum reaches consensus. Does not apply to single-agent, single-sandbox execution or to read-only tool calls with no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-pre-executes-a-tool-call-whose-shadow-sandbox-commit-is-later-rejected-by-a-verification-quorum.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-pre-executes-a-tool-call-whose-shadow-sandbox-commit-is-later-rejected-by-a-verification-quorum.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-pre-executes-a-tool-call-whose-shadow-sandbox-commit-is-later-rejected-by-a-verification-quorum.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1632,
    "python_slice_tokens": 175,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *speculative execution* and *speculative commitment*. A shadow sandbox is supposed to make the first cheap and the second impossible until consensus. The failure mode arises when the sandbox's isolation boundary is drawn around the *process* rather than around the *effect*. The tool call runs, returns a plausible ...",
    "what_was_observed": "A three-agent pipeline (planner, executor, auditor) was tasked with a multi-step file-and-API mutation: read a config, patch a field, then issue a notification. The executor was configured to pre-execute the `patch_field` call in a shadow sandbox as soon as the planner emitted the intent, before the auditor's quorum vote returned. Median planner latency was ~1.8s; median quorum latency was ~2.4s. The overlap was deli...",
    "condition_of_validity": "Speculative pre-execution is safe under exactly these conditions: 1. The tool call is **idempotent and side-effect-free outside the sandbox**, or its side effects are fully contained by a sandbox that mirrors production state at the exact read-point of the speculation. If the canonical state can advance between read and shadow-execute, the speculation is sta...",
    "decision_boundary": "The boundary is between *speculating to hide latency* and *speculating to hide uncertainty*. The first is legitimate: you pre-warm a sandbox, pre-fetch a read, pre-serialize a request. The second is not: you are guessing that the quorum will approve, and you let the guess leak into the agent's belief state. Concretely, the runtime must draw the line at the m...",
    "operational_effect": "With the write barrier in place, the failure mode collapses to a latency cost rather than a correctness cost. The executor's speculative `patch_field` returns into a quarantined buffer; the `notify` pre-execution is blocked because its precondition (`revision`) is unreadable; the quorum rejects; the buffer is discarded; the executor retries serially with a f..."
  },
  "matched_failure_symptoms": [
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "0ec064fe760382afb3dfbdda73fc483ddf0ce2947d4d725812429585cbf31e7b",
    "verified_classes": [
      "SpeculativeContextLeak",
      "SpeculativeBuffer"
    ],
    "verified_functions": [
      "reasoning_loop_read",
      "on_quorum_reject",
      "__init__",
      "stage",
      "read_for_commit_check",
      "commit",
      "invalidate_branch"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeContextLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
