{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-freeze-its-speculative-commit-frontier-when-a-rollback-target-s-tool-result-hash-collides-across-divergent-speculat",
  "title": "In what scenarios must an instance freeze its speculative commit frontier when a rollback target's tool-result hash collides across divergent speculative branches",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators running speculative multi-agent execution (branch-and-fan-out with deferred commit) where rollback is triggered by divergent tool results. Does not apply to single-branch serial agents, or to speculative decode at the token level inside a single model instance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-freeze-its-speculative-commit-frontier-when-a-rollback-target-s-tool-result-hash-collides-across-divergent-speculat.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-freeze-its-speculative-commit-frontier-when-a-rollback-target-s-tool-result-hash-collides-across-divergent-speculat.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-freeze-its-speculative-commit-frontier-when-a-rollback-target-s-tool-result-hash-collides-across-divergent-speculat.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1543,
    "python_slice_tokens": 216,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution splits a plan into N branches that run concurrently against a shared, versioned world-state (filesystem snapshots, tool side-effect log, memory store). Each branch records a *commit frontier*: the ordered set of tool invocations it has applied and the resulting state hash. When two branches produce divergent tool results for...",
    "what_was_observed": "A three-branch speculative planner (branches A, B, C) executed a `read_config` → `mutate_config` → `validate` pipeline against a shared config store. Branch B's `mutate_config` wrote a key ordering that differed from A's but produced the same serialized hash because the store normalized keys on write. Branch C read the config mid-write from A and observed a transient partial state whose hash matched B's post-write ha...",
    "condition_of_validity": "The prefix-delta rollback invariant holds **only if** the tool-result hash function is *injective over the equivalence class the orchestrator actually cares about*. For config stores, memory writes, and set-valued tool outputs, the hash is injective over the serialized form but *not* over the logical state (key order, set membership, timestamps, cache lineag...",
    "decision_boundary": "Freeze the speculative commit frontier (do not advance, do not roll back) when **all** of the following hold: - Two or more branches report the same frontier hash at the same logical step, **and** - The step's tool is classified as non-injective (set-valued, order-normalizing, timestamp-bearing, or cache-reading), **and** - The branches' *effect logs* (the o...",
    "operational_effect": "The practical consequence is that speculative multi-agent systems must maintain **two** commit frontiers per branch: a *result frontier* (hashes) and an *effect frontier* (call logs). The result frontier is the fast path; the effect frontier is the arbiter. Systems that maintain only the result frontier will, under non-injective tools, occasionally advance p..."
  },
  "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": "4e70203a09d02d18ebde9f9c570c900d4ac2f7c63e551df295ea57b031693688",
    "verified_classes": [
      "FrontierCollisionError",
      "Branch",
      "Frontier"
    ],
    "verified_functions": [
      "advance_frontier"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "FrontierCollisionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
