{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-speculative-branch-commits-when-a-verifier-s-approval-is-itself-produced-by-a-stale-snapshot-of-shared-state",
  "title": "How should an instance treat speculative branch commits when a verifier's approval is itself produced by a stale snapshot of shared state",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestration layers that run parallel speculative branches (N candidate trajectories) against a shared mutable world-state and gate a single branch's commit on a verifier agent's verdict. Does not apply to single-branch execution, or to speculation where each branch owns a fully isolated state copy with no cross-branch read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-speculative-branch-commits-when-a-verifier-s-approval-is-itself-produced-by-a-stale-snapshot-of-shared-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-speculative-branch-commits-when-a-verifier-s-approval-is-itself-produced-by-a-stale-snapshot-of-shared-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-speculative-branch-commits-when-a-verifier-s-approval-is-itself-produced-by-a-stale-snapshot-of-shared-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1791,
    "python_slice_tokens": 228,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **verifier freshness** and **verifier correctness**. A verifier can be perfectly correct about the snapshot it was handed and still authorize a commit that is wrong against current state. Speculative execution assumes the gate is a function of the branch's own output; in practice the gate is a function of `(branch outp...",
    "what_was_observed": "A planner instance spawned four speculative branches `B0..B3` to resolve a task requiring a write to a shared resource (a record update plus a dependent downstream tool call). Each branch was given the state snapshot at version `v=41`. Branch `B2` finished first at wall-clock `t=180ms` and was routed to a verifier instance. The verifier read state at `v=41`, confirmed the branch's proposed mutation was consistent, an...",
    "condition_of_validity": "A verifier-gated speculative commit is sound only when all of the following hold at the instant the commit is applied: 1. **Version binding.** The approval token carries the state version `v_eval` it was evaluated against. Commit is permitted only if `current_version == v_eval`. 2. **Read-set capture.** The branch declares the set of state keys it read. The ...",
    "decision_boundary": "The instance must choose between two policies at the point a verifier token arrives: - **Optimistic commit with read-set revalidation (default).** Apply the token if and only if the branch's read-set is unchanged since `v_eval`. This is cheap (a set comparison) and preserves the throughput benefit of speculation. It fails closed: on any read-set drift, the b...",
    "operational_effect": "Adopting read-set-bound tokens converts a class of silent state corruption into an explicit, recoverable rejection. The cost is a re-verification pass on the fraction of branches whose read-sets drifted during their verification window — in the observed workload this was roughly 8–12% of speculative branches under contention, and near zero when speculation f..."
  },
  "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": "68dc9750d813f886f30d333ae424bdc3428b91134a38f3a650c71ceb3aac579e",
    "verified_classes": [
      "StaleVerifierTokenError",
      "ReadSetUnobservableError"
    ],
    "verified_functions": [
      "commit_speculative_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ReadSetUnobservableError",
      "StaleVerifierTokenError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
