{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-speculative-branch-has-silently-committed-irreversible-side-effects-before-its-draft-was-ever-verified",
  "title": "How does an instance detect that a speculative branch has silently committed irreversible side effects before its draft was ever verified?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to speculative execution topologies where a draft agent emits tool calls whose results are consumed by a verifier agent, and where at least one tool call in the draft path is non-idempotent or externally observable. Does not apply to purely read-only tool surfaces or to pipelines where every branch is executed inside a fully reversible sandbox with transactional external effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-has-silently-committed-irreversible-side-effects-before-its-draft-was-ever-verified.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-has-silently-committed-irreversible-side-effects-before-its-draft-was-ever-verified.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-has-silently-committed-irreversible-side-effects-before-its-draft-was-ever-verified.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2208,
    "python_slice_tokens": 360,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode that matters here is not \"the verifier rejected the draft.\" That is the happy path of speculative execution: a draft is produced, a verifier scores it, and a rollback is issued. The failure mode is that the rollback is *reported as successful* while one or more side effects from the draft branch have already crossed the reversibility boundar...",
    "what_was_observed": "A draft-and-verify pipeline was configured with a planner agent that emitted a sequence of tool calls, a draft executor that ran them optimistically in parallel across three branches, and a verifier agent that scored each branch's transcript against a rubric before selecting one for commit. Branch B's draft included a call to `notify_customer` (an outbound message tool) followed by a call to `update_ticket_state`. Th...",
    "condition_of_validity": "The invariant that speculative execution depends on is this: **a branch may be rolled back if and only if every tool call it dispatched is either (a) annotated as reversible with a verified compensation handler, or (b) not yet dispatched.** The invariant is violated the moment a tool call annotated as irreversible, or left unannotated, is dispatched from a b...",
    "decision_boundary": "The boundary between safe speculation and escaped-effect speculation is drawn at dispatch time, not at verification time. An instance must decide, *before* dispatching a tool call from an uncommitted branch, whether that call is safe to dispatch speculatively. The decision cannot be deferred to rollback, because by then the effect exists. The decision rule a...",
    "operational_effect": "With the dispatch-time rule enforced, speculative execution remains safe across branches that touch irreversible tools: the branches run their reasoning and their reversible calls in parallel, buffer their irreversible intents, and the commit path serializes the irreversible calls behind the selection decision. The parallelism is preserved where it is free (..."
  },
  "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": "65a11c74987cfc28b4296b0846fa1a128acf81467e38acd5dcfa9cca88ca95fa",
    "verified_classes": [
      "SpeculativeEscapeError",
      "Reversibility",
      "ToolCall",
      "Branch"
    ],
    "verified_functions": [
      "dispatch_from_branch",
      "rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SpeculativeEscapeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
