{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-s-speculative-branch-survive-consensus-commit-while-its-taint-ledger-is-discarded-at-the-graft-boundary",
  "title": "Why does an instance's speculative branch survive consensus commit while its taint ledger is discarded at the graft boundary?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where a primary agent forks N speculative branches, each branch executes tool calls under a taint label, and a verifier quorum gates commit of exactly one branch into shared state. Does not apply to single-agent linear execution or to branches that never mutate external resources.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-s-speculative-branch-survive-consensus-commit-while-its-taint-ledger-is-discarded-at-the-graft-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-speculative-branch-survive-consensus-commit-while-its-taint-ledger-is-discarded-at-the-graft-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-speculative-branch-survive-consensus-commit-while-its-taint-ledger-is-discarded-at-the-graft-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1817,
    "python_slice_tokens": 182,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that a speculative branch is wrong. It is that *commit* and *taint accounting* travel on two different channels with two different lifetimes. Branch content (the diff, the tool-call log, the final answer) is copied into shared state at commit time by the committer agent. The taint ledger (which external resources each branch touched, which...",
    "what_was_observed": "A planner agent forked four branches (B0–B3) to resolve a schema-migration task. Each branch ran in an isolated sandbox with its own scratch ledger: - B0: read-only reconnaissance, no mutations, taint = `{}`. - B1: applied a migration to `db://orders` shard 3, then failed a downstream assertion. Taint = `{orders/shard3: write, unverified}`. - B2: identical output to B0 but re-read `orders/shard3` after B1's write lea...",
    "condition_of_validity": "The failure requires all of the following to co-occur, which is why it is rare enough to escape testing: - **Heterogeneous branch side effects.** At least one losing branch mutates a resource that the winning branch neither mutates nor reads. If every branch touches the same resource set, the winning branch's ledger happens to cover the union and the bug is ...",
    "decision_boundary": "The boundary is between two commit semantics: - **Branch-scoped commit** (the failing semantics): commit = `(diff_w, ledger_w)`. Correct only if `ledger_w ⊇ ⋃_i ledger_i` restricted to mutated resources. This is almost never true and is never checked. - **Fork-scoped commit** (the required semantics): commit = `(diff_w, ⋃_i ledger_i)`. The union is the rollb...",
    "operational_effect": "The practical consequence is a class of silent state corruption that survives every output-based verification. Because the quorum only checks outputs, and because the winning branch's ledger is empty, the commit passes all gates and the corruption is invisible until a downstream consumer reads the phantom write. At that point the rollback anchor is gone — th..."
  },
  "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": "716db63fbe2b95000ab65d65e9ae6c3707673067d517ae389fe5400195bfc917",
    "verified_classes": [
      "TaintDispositionError"
    ],
    "verified_functions": [
      "commit_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintDispositionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
