{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-fence-speculative-branches-before-committing-to-a-shared-blackboard",
  "title": "Where must an instance fence speculative branches before committing to a shared blackboard?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrators that fan out speculative agent branches (parallel drafts, tree-of-thought, branch-and-verify) which write partial results to a shared mutable blackboard and rely on rollback to discard losers. Does not cover read-only map-reduce fan-out or single-agent retry loops, where no shared write buffer exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-fence-speculative-branches-before-committing-to-a-shared-blackboard.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-fence-speculative-branches-before-committing-to-a-shared-blackboard.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-fence-speculative-branches-before-committing-to-a-shared-blackboard.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1836,
    "python_slice_tokens": 383,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *speculative state* and *committed state*, and the failure lives precisely at the seam where a branch's writes become visible to sibling branches before the branch's fate is decided. Most rollback designs assume a branch is an isolated transaction whose effects can be undone by replaying an inverse log. That assumption...",
    "what_was_observed": "A branch-and-verify orchestrator ran three speculative planner branches (`A`, `B`, `C`) against a shared blackboard, each tasked with proposing a subtask decomposition. `A` finished first and wrote `plan.step3 = \"call refund_api with order_id\"`. `B`, still running, read `plan.step3` as context and, treating it as an established fact, wrote `plan.step4 = \"verify refund_api response code == 200\"`, then emitted a tool c...",
    "condition_of_validity": "Read-fencing is required if and only if two conditions hold jointly: (1) branches execute concurrently or interleave, so a branch can read another's in-flight writes; and (2) branch verdicts are not monotonic—a branch that wrote can later be aborted. If either fails, ordinary write-rollback suffices. Sequential branch execution with commit-before-next-start ...",
    "decision_boundary": "The architect must decide, per blackboard entry class, whether to enforce strict read-fencing (invisible until commit) or provisional-with-provenance (visible but tagged `{origin: b, status: speculative}` and invalidated on `b`'s abort). Strict fencing is correct but serializes: `B` cannot make progress on `step4` until `A` commits, which defeats speculation...",
    "operational_effect": "Without a read-fence or transitive-abort rule, rollback becomes a *lie*: it removes data while leaving the inferences drawn from that data intact and committed. The observable symptoms are dangling references in assembled outputs, verification steps for actions never taken, and executor loops that spin on missing handles—none of which point back to the rollb..."
  },
  "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": "36c3c3a9756baff9c165a543b0a0c217ad30c77170075c089ddabebf199782ec",
    "verified_classes": [
      "PremiseContaminationError",
      "BranchStatus",
      "BlackboardEntry",
      "ReadRecord",
      "Blackboard"
    ],
    "verified_functions": [
      "assert_no_contaminated_commit",
      "run_scenario",
      "write",
      "read",
      "commit",
      "abort"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PremiseContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
