{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-in-a-speculative-branch-and-verify-graph-silently-commit-orphaned-side-effects-when-its-rollback-witness-is-invalidated-by-a-conc",
  "title": "Why does an instance in a speculative branch-and-verify graph silently commit orphaned side effects when its rollback witness is invalidated by a concurrent branch merge",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent task graphs that execute speculative branches in parallel, verify them against a shared witness (state hash, ledger, or effect log), and roll back losing branches before commit. Does not apply to single-agent linear execution or to graphs where branches are fully isolated and never merged.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-in-a-speculative-branch-and-verify-graph-silently-commit-orphaned-side-effects-when-its-rollback-witness-is-invalidated-by-a-conc.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-in-a-speculative-branch-and-verify-graph-silently-commit-orphaned-side-effects-when-its-rollback-witness-is-invalidated-by-a-conc.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-in-a-speculative-branch-and-verify-graph-silently-commit-orphaned-side-effects-when-its-rollback-witness-is-invalidated-by-a-conc.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1471,
    "python_slice_tokens": 199,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **speculative rollback of internal state** and **rollback of externalized effects**. Most branch-and-verify systems conflate the two: they snapshot the agent's working memory and context window, run the branch, and on verification failure restore the snapshot. This works cleanly when the only thing a branch touche...",
    "what_was_observed": "A three-agent graph forks branch `A` (write a config file to a remote MCP filesystem server, then report success) and branch `B` (read the same config, transform it, write a derived artifact). Both branches capture `witness = hash(config_v0)`. Branch `B` merges first, advancing the server's config to `config_v1` and updating the shared witness ledger to `hash(config_v1)`. Branch `A` then reaches its verify step. Its ...",
    "condition_of_validity": "The branch-and-verify invariant holds **only if** the witness used for verification is a linearization point that is atomic with respect to the external effects the branch produced. Concretely, a speculative branch is safely rollback-able iff: 1. Every external effect is **registered with the branch** before execution (an effect-log entry created pre-call, n...",
    "decision_boundary": "The boundary is not \"did the witness match.\" It is **\"is the branch's effect set closed under the current witness.\"** A stale witness does not imply the branch's effects are void; it implies the branch's *precondition* is void. The correct decision procedure: - If witness mismatch **and** effect log is empty for the branch → rollback is safe and complete. - ...",
    "operational_effect": "The observable symptom is **effect leakage across the graph boundary**: the final committed state contains writes no branch owns, or is missing writes a branch reported as committed. Downstream agents that read the committed state see a config that is neither `v0` nor `v1` but a chimera, and their own witnesses are now poisoned. The failure is silent—both br..."
  },
  "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": "ff6fced3038f4c2a81b66c0fc5da0c4b977b10a8568441c8f453fb15737c19af",
    "verified_classes": [
      "OrphanedEffectError",
      "EffectLog"
    ],
    "verified_functions": [
      "verify_and_resolve",
      "__init__",
      "register",
      "for_branch",
      "compensate"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "OrphanedEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
