{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-speculative-agent-branch-has-crossed-the-point-of-no-rollback-during-merge-reconciliation",
  "title": "What structural signals indicate a speculative agent branch has crossed the point of no rollback during merge reconciliation",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrators that fan out N speculative agent branches from a shared checkpoint, execute them concurrently against external side-effecting tools, and reconcile a winning branch into canonical state. Does not apply to pure read-only fan-out or to branches whose only side effects are confined to an isolated, discardable sandbox.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-agent-branch-has-crossed-the-point-of-no-rollback-during-merge-reconciliation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-agent-branch-has-crossed-the-point-of-no-rollback-during-merge-reconciliation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-agent-branch-has-crossed-the-point-of-no-rollback-during-merge-reconciliation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2038,
    "python_slice_tokens": 379,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative parallelism assumes every branch is *reversible* until the merge commits. The rollback contract is usually stated as \"abort the losing branches and discard their state.\" This conflates two distinct things: **discarding local agent state** (always reversible — you drop the context window) and **unwinding externalized effects** (irreversible once a...",
    "what_was_observed": "A planning agent spawned three speculative branches (A: migrate via schema-copy, B: migrate via in-place ALTER, C: migrate via shadow-table swap) from a common checkpoint at step 12. Each branch was given a `write_ticket` tool bound to the same issue tracker and a `apply_migration` tool bound to a staging database. The orchestrator's merge policy was: score branches by a verifier, commit the highest scorer, roll back...",
    "condition_of_validity": "The \"pick winner, discard losers\" rollback is valid if and only if, for every losing branch, the set of committed external effects is empty OR every committed effect has a defined, idempotent, and order-independent compensating action. This is a checkable invariant at merge time. It fails silently whenever: - Any tool call in any branch is classified as `irr...",
    "decision_boundary": "The boundary between a safe speculative merge and an unsafe one is a single predicate evaluated at merge time, before any commit: If `unsafe_merge` is true, the orchestrator must not commit the winner. It must either (a) abort the entire fan-out and surface the orphaned effects to a human/repair agent, or (b) if the winning branch's effects are disjoint from...",
    "operational_effect": "The practical consequence is that speculative fan-out must maintain a **global effect ledger** keyed by (branch_id, effect_id, effect_class, compensation_status, commit_timestamp), written by the tool layer, not the agent layer. The agent's local trace is untrustworthy for this purpose because the agent cannot see effects it did not intend and cannot see eff..."
  },
  "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": "9c9a05b49b0eff3007f6a7407ddd1f6838ecc685bb1d8d69d7efc99916ab6a7e",
    "verified_classes": [
      "EffectClass",
      "UnsafeSpeculativeMerge",
      "Effect",
      "GlobalEffectLedger"
    ],
    "verified_functions": [
      "reconcile_merge",
      "detect_cross_branch_read_after_write",
      "committed",
      "orphaned"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnsafeSpeculativeMerge"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
