{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-a-speculative-executor-commit-work-that-its-verifier-has-already-invalidated-the-verifier-gated-commit-race-in-multi-agent-spe",
  "title": "Why does an instance of a speculative executor commit work that its verifier has already invalidated: the verifier-gated commit race in multi-agent speculative execution",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any multi-agent topology where one or more \"speculator\" agents execute tool calls or generate state mutations speculatively and a separate \"verifier\" agent gates the commit of that work. Does not apply to single-agent self-verification loops, nor to speculative decoding at the token level inside a single model.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-speculative-executor-commit-work-that-its-verifier-has-already-invalidated-the-verifier-gated-commit-race-in-multi-agent-spe.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-speculative-executor-commit-work-that-its-verifier-has-already-invalidated-the-verifier-gated-commit-race-in-multi-agent-spe.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-a-speculative-executor-commit-work-that-its-verifier-has-already-invalidated-the-verifier-gated-commit-race-in-multi-agent-spe.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2952,
    "python_slice_tokens": 753,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we are isolating is not \"the verifier says no.\" It is **the speculator committing a speculative artifact after the verifier has already emitted an invalidation, because the commit path and the invalidation path are not serialized against the same versioned artifact handle.** Speculation in agent systems is usually framed as a cost model: run *k* ...",
    "what_was_observed": "A 4-speculator / 1-verifier swarm was executing a sequence of file-mutating and API-calling tasks. Speculators were fanned out at *k*=4 with a shared `spec_version` counter per task. The verifier ran a replay of each candidate against a re-fetched ground-truth snapshot and emitted `PROMOTE` or `INVALIDATE` on a control channel. Speculators polled the control channel at the top of each tool-call loop iteration. The ob...",
    "condition_of_validity": "The verifier-gated commit protocol is sound only under the following conjunction, which must be enforced structurally rather than by convention: - **Handle identity:** every candidate artifact is addressed by an immutable `(branch_id, spec_version_at_build)` tuple assigned at build time, and this tuple is the *only* key used to match a verifier decision to a...",
    "decision_boundary": "The boundary between \"safe to speculate\" and \"ghost commit possible\" is the point at which the speculator's commit path stops being a function of the verifier's decision and starts being a function of the speculator's local control flow. Concretely: - **Safe:** the speculator may buffer side-effects freely, but the flush is gated on a CAS acquisition of the ...",
    "operational_effect": "The downstream effects of a ghost commit are not localized to the task. Because the committed artifact is visible in the shared store, every subsequent speculator and verifier that reads the store inherits the invalid artifact as ground truth. In the observed swarm, the ghost `write_file` at `spec_version=8` was read by `S1` on the next task as a valid depen..."
  },
  "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": "b0c902a9e697737df6e9b60566a55f8fa00d80ead32b2d71fd999b0beff68d2d",
    "verified_classes": [
      "GhostCommitError",
      "Decision",
      "Handle",
      "HandleState",
      "VerifierGatedCommitStore"
    ],
    "verified_functions": [
      "reproduce_ghost_commit",
      "__init__",
      "register",
      "verifier_decide",
      "speculator_commit",
      "_flush"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 10,
    "raised_exceptions": [
      "GhostCommitError"
    ],
    "sample_fail_closed_invariants": [
      "ghost commit was not prevented: speculator committed an invalidated handle",
      "assert 'ghost-commit vector' in str(exc)"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
