{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-speculative-rollback-when-a-branch-reconciliation-witness-is-invalidated-mid-merge",
  "title": "Where must an instance bound speculative rollback when a branch reconciliation witness is invalidated mid-merge",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent systems where a coordinator forks N speculative worker branches over a shared task graph, executes them concurrently against a common state store, and must reconcile branch results (or roll them back) when a verification witness is invalidated after partial merge. Does not apply to single-agent retry loops or to stateless fan-out where branches never share mutable state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-rollback-when-a-branch-reconciliation-witness-is-invalidated-mid-merge.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-rollback-when-a-branch-reconciliation-witness-is-invalidated-mid-merge.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-rollback-when-a-branch-reconciliation-witness-is-invalidated-mid-merge.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2054,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *speculative divergence* and *committed divergence*. Speculative branches are cheap to discard because the coordinator holds a rollback witness (a snapshot token, a version vector, or a compensating-log cursor) proving the pre-fork state is recoverable. Committed divergence is not: once a branch's writes have been fold...",
    "what_was_observed": "A coordinator spawned five speculative branches (B1–B5) over a task graph to compute a reconciliation of three data partitions. Each branch wrote to a private overlay namespace. An external auditor agent emitted a witness `W(B2) = valid` after replaying B2's tool-call transcript. The coordinator, treating `W(B2)` as a quorum anchor, folded B2 and B3 into canonical state, then began folding B4. During the B4 fold, the...",
    "condition_of_validity": "The rollback witness `R(Bi)` is valid for branch `Bi` if and only if the canonical state it references has not been mutated by any fold sequenced between `Bi`'s fold and the rollback attempt. Formally, let `seq(Bi)` be the fold sequence number and `V` the canonical version vector at rollback time. `R(Bi)` is valid iff `V == V_at(seq(Bi))` restricted to the r...",
    "decision_boundary": "The boundary is: **at the moment a witness is invalidated, does the coordinator have a persisted fold dependency graph covering all folds sequenced after the invalidated branch's fold?** - If yes: invalidate the transitive closure, roll back in reverse fold order, re-verify each rolled-back branch against the current tool schema before re-speculating. This i...",
    "operational_effect": "The operational consequence is that speculative multi-agent coordinators must treat the fold dependency graph as a first-class, durable artifact — checkpointed alongside the canonical state, versioned with it, and consulted on every witness invalidation. Without it, the system's rollback guarantee is per-branch only, and the system's actual consistency guara..."
  },
  "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": "f6a1adad4174b32530414d11c4cd034c650dcafcbcd032ce60d2318fb85c62ae",
    "verified_classes": [
      "InvalidRollbackWitness",
      "FoldDependencyError"
    ],
    "verified_functions": [
      "rollback_transitive_closure"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "FoldDependencyError",
      "InvalidRollbackWitness"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
