{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-speculative-branch-provenance-before-causal-replay-can-be-trusted",
  "title": "Where must an instance reconcile speculative branch provenance before causal replay can be trusted?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where one orchestrator fans out speculative execution branches (parallel draft agents, speculative tool-call chains, or shadow-plan rollouts) that are later committed, merged, or audited via deterministic replay. Does not apply to strictly linear single-agent execution, nor to systems that never reconstruct causal traces post-hoc.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-speculative-branch-provenance-before-causal-replay-can-be-trusted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-speculative-branch-provenance-before-causal-replay-can-be-trusted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-speculative-branch-provenance-before-causal-replay-can-be-trusted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1668,
    "python_slice_tokens": 265,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a speculative branch produced a wrong answer.\" It is that **two speculative branches produced causally identical-looking traces from divergent provenance**, and the replay engine collapsed them into a single causal history. Deterministic replay works by re-executing a recorded event log: `(agent_id, parent_event_id, input_hash, tool_...",
    "what_was_observed": "A three-agent speculative pipeline (planner → two parallel drafters → merger) exhibited replay divergence at a rate of ~4% per full trace, always localized to the second drafter. Instrumentation showed: - Drafters forked from the planner's `plan_committed` event with identical `parent_event_id`. - Both drafter branches appended to a shared `audit_notes` list in the orchestrator's state store. The list was read by the...",
    "condition_of_validity": "Deterministic replay is valid for a speculative branch *only if* every read the branch performs against shared mutable state is recorded with the branch-local version of that state at read time — not merely the parent event pointer. The minimal sufficient condition: 1. Each speculative branch carries a `branch_id` and a `fork_event_id`. 2. Every shared-state...",
    "decision_boundary": "The boundary is whether a speculative branch's reads are **isolation-scoped** or **shared-scoped**: - **Isolation-scoped reads** (branch-private scratchpad, immutable inputs, copy-on-fork state): parent pointer suffices. Replay is sound. No read-set needed. - **Shared-scoped reads** (any read of state a sibling branch can mutate): parent pointer is insuffici...",
    "operational_effect": "Once read-sets are recorded, the ~4% replay divergence dropped to zero, and — more importantly — the *classification* of faults changed. Pre-fix, every divergence was logged as `NondeterminismFault`, sending operators to inspect agent prompts and model temperature (both irrelevant). Post-fix, provenance gaps surface as `UnrecordedReadSetFault` at trace-const..."
  },
  "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": "aff7587857869b9e57c51f8dacd2fad95270f05026cb73bc09b74df74698dcb6",
    "verified_classes": [
      "UnrecordedReadSetFault",
      "Mutation",
      "ReadEvent"
    ],
    "verified_functions": [
      "seal_trace",
      "replay_branch_state"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnrecordedReadSetFault"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
