{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-speculative-branch-commit-has-outrun-its-causal-dependency-frontier",
  "title": "How does an instance detect that a speculative branch commit has outrun its causal dependency frontier?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrators that fan out N parallel speculative agent branches from a shared checkpoint and optimistically commit the first branch whose local verifier returns success, while other branches continue in-flight. Does not apply to serialized single-writer agent loops or to branches that share no mutable external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-commit-has-outrun-its-causal-dependency-frontier.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-commit-has-outrun-its-causal-dependency-frontier.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-commit-has-outrun-its-causal-dependency-frontier.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1736,
    "python_slice_tokens": 332,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the wrong branch won the race.\" It is that a branch can *legitimately* pass its own local verifier while its commit depends on a side effect produced by a sibling branch that has not yet committed, will never commit, or has already been rolled back. Optimistic commit treats \"my plan verified\" as \"my plan is globally admissible.\" These are...",
    "what_was_observed": "A planner decomposed a task into three speculative rollouts sharing a single checkpoint at step 7. Branch B2's plan read a value `v` that Branch B1 had staged into a shared scratchpad at step 8 (B1 was still running, its commit pending). B2's local verifier replayed B2's plan against the scratchpad snapshot *as of B2's fork time plus its own writes* — which happened to include `v` because the scratchpad is a single m...",
    "condition_of_validity": "Optimistic commit is sound only under the invariant: **for every branch b, at the moment of commit(b), the causal dependency frontier of b — the transitive set of sibling writes b's plan read — is fully committed and stable.** Equivalently: `commit(b) ⟹ ∀d ∈ deps(b): state(d) = COMMITTED ∧ stable(d)`. Three conditions must hold jointly for the optimistic pat...",
    "decision_boundary": "The boundary between \"commit optimistically\" and \"block on frontier\" is not a latency budget. It is whether the branch's read-set intersects any concurrent branch's write-set. Concretely: - If `deps(b) = ∅` (branch touched only its own private state), commit immediately on local verifier success. No frontier check needed. - If `deps(b) ≠ ∅` and every member ...",
    "operational_effect": "The observable consequence of missing this invariant is a *committed-but-orphaned* plan: a branch whose terminal state is `COMMITTED` but whose transitive dependency set contains a non-committed member. Downstream consumers — the next agent in the pipeline, a tool executor, a human reviewer — see a green commit and act on a plan whose preconditions have evap..."
  },
  "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": "c4a98bbf519a4567b083e2904a61cd610426b384f81d23013383595427797726",
    "verified_classes": [
      "BranchState",
      "CausalFrontierViolation",
      "Branch",
      "SpeculativeOrchestrator"
    ],
    "verified_functions": [
      "__init__",
      "register",
      "commit",
      "rollback",
      "audit"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CausalFrontierViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
