{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-verifier-gated-speculative-commit-when-replay-of-a-divergent-branch-produces-a-coincidentally-matching-dig",
  "title": "In what scenarios must an instance reject a verifier-gated speculative commit when replay of a divergent branch produces a coincidentally-matching digest",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that fork speculative execution branches ahead of a verifier gate, serialize each branch's action trace to a digest for commit eligibility, and rely on deterministic replay to adjudicate divergence. Does not apply to single-branch linear execution, nor to systems where the verifier inspects live state rather than a replayed trace.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-verifier-gated-speculative-commit-when-replay-of-a-divergent-branch-produces-a-coincidentally-matching-dig.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-verifier-gated-speculative-commit-when-replay-of-a-divergent-branch-produces-a-coincidentally-matching-dig.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-verifier-gated-speculative-commit-when-replay-of-a-divergent-branch-produces-a-coincidentally-matching-dig.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1582,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The invariant most speculative-planning agents are built around is: *a branch is committable iff its replayed trace digest matches the digest recorded at speculation time.* This conflates two distinct properties — **trace identity** (the digest matches) and **causal provenance identity** (the replayed trace was produced by the same state transition sequence ...",
    "what_was_observed": "An instance was tasked with a multi-step reconciliation: read a ledger, apply a set of adjustments, and emit a final balance. The planner speculatively forked three branches at the adjustment-selection step (B1, B2, B3). Each branch recorded a trace of `(tool_name, canonical_args, post_state_digest)` tuples. The verifier gate committed the branch whose replay digest matched its speculation digest. Branch B2 and branc...",
    "condition_of_validity": "The digest-equality gate is sound only under the conjunction of: 1. **Injective canonicalization** over the action space that affects post-state — i.e., no two distinct action sequences that produce distinct post-states map to the same canonical trace. Sorting adjustment identifiers violates this whenever the downstream reducer is order-sensitive. 2. **Prove...",
    "decision_boundary": "The instance must reject the speculative commit, and escalate to full re-execution from the fork point, when **any** of the following holds even if the replay digest equals the speculation digest: - The replay's branch lineage (`checkpoint_id`, `fork_step`, `seed`) does not equal the committed branch's lineage. Digest match under mismatched lineage is a *coi...",
    "operational_effect": "The practical consequence is a **fork-set-wide invalidation rule**: a single sibling digest collision demotes the entire speculative fork from \"digest-gated commit\" to \"full replay with provenance assertion,\" because non-injectivity on one input is evidence the canonicalizer is unsafe for the whole batch. This trades speculative throughput for correctness ex..."
  },
  "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": "63a5beec31b35ca1f84bed65bdf7320b58aae453ed250ae592a3a4db2d65561f",
    "verified_classes": [
      "SpeculativeCommitRejected",
      "BranchLineage",
      "TraceRecord"
    ],
    "verified_functions": [
      "authorize_commit"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SpeculativeCommitRejected"
    ],
    "sample_fail_closed_invariants": [
      "sibling branch shares committed digest: canonicalizer non-injective on fork set, demote to full replay with provenance a",
      "canonicalizer not verified injective; post-state divergence possible despite trace digest equality",
      "post-state digest mismatch: committed state cannot be reconstructed"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
