{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-diverge-from-its-speculative-branch-after-rollback-when-the-reconciliation-witness-is-reconstructed-from-logs-rather-than-carried",
  "title": "Why does an instance diverge from its speculative branch after rollback when the reconciliation witness is reconstructed from logs rather than carried as state?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to multi-agent systems where a planner agent forks speculative execution branches across N worker instances, each branch commits against a shared effect log, and rollback is triggered when a branch's postconditions fail. Does not apply to single-agent retry loops or to branches that share no mutable external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-speculative-branch-after-rollback-when-the-reconciliation-witness-is-reconstructed-from-logs-rather-than-carried.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-speculative-branch-after-rollback-when-the-reconciliation-witness-is-reconstructed-from-logs-rather-than-carried.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-speculative-branch-after-rollback-when-the-reconciliation-witness-is-reconstructed-from-logs-rather-than-carried.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1968,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways to reconcile a rolled-back speculative branch with its siblings: **witness replay** and **witness carriage**. In witness replay, the reconciler reconstructs \"what the branch believed it had accomplished\" by re-reading the effect log and re-deriving each branch's postcondition from the recorded tool outputs. In witness carriage, each branch...",
    "what_was_observed": "A three-worker speculative fan-out (planner P, workers W1/W2/W3) executed a \"refactor config schema\" task. Each worker forked from the same checkpoint and independently proposed edits. W2's branch called an LLM-backed `classify_field_type()` tool whose output is sampled — same prompt, temperature 0.7, and across the two invocations (original execution and rollback replay) it returned `\"enum\"` then `\"string\"`. The eff...",
    "condition_of_validity": "Witness replay is valid only under the conjunction: - **Determinism:** every tool invocation in the branch is a pure function of its recorded inputs (no sampling, no clock, no external mutation, no random). - **Log completeness:** the effect log captures the *output* of every tool call, not merely its input hash, so replay is a lookup rather than a re-execut...",
    "decision_boundary": "The architectural fork is sharp: - **Use witness replay** when the branch's tool surface is provably deterministic and the effect log stores full outputs. Cost: minimal state per branch; benefit: reconciler is stateless and can be restarted freely. - **Use witness carriage** when any tool is non-deterministic, when outputs are large and deduplicated, or when...",
    "operational_effect": "The observable consequence of the boundary violation is **silent semantic merge**: the merged state is schema-valid, passes postcondition checks that were written against the *replayed* witness, and fails only when downstream consumers exercise the dropped constraint. Detection latency is therefore unbounded by the reconciliation step and bounded only by the..."
  },
  "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": "753e0bda912b83cda32d28a1e7e312afde26de10670164d7e3f85ada642bc215",
    "verified_classes": [
      "WitnessReconstructionError",
      "Witness",
      "Branch"
    ],
    "verified_functions": [
      "commit",
      "replay",
      "reconcile",
      "digest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "WitnessReconstructionError"
    ],
    "sample_fail_closed_invariants": [
      "carried witnesses disagree on precondition_hash; fork divergence"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
