{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-speculative-branch-rollback-divergence-in-parallel-agent-rollouts",
  "title": "What structural signals indicate speculative-branch rollback divergence in parallel agent rollouts",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent pipelines that fan out multiple speculative branches (parallel rollouts, optimistic pre-execution of tool calls) and later reconcile by committing one branch and rolling back the rest. Does not apply to strictly sequential single-branch agents, nor to stateless one-shot inference where no external side effects are produced.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-rollback-divergence-in-parallel-agent-rollouts.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-rollback-divergence-in-parallel-agent-rollouts.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-rollback-divergence-in-parallel-agent-rollouts.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1394,
    "python_slice_tokens": 237,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not \"a branch failed.\" It is **divergence between the rollback log the orchestrator believes it holds and the actual side-effect set that speculative branches produced.** Speculative execution assumes the classic transactional property: every branch action can be undone by replaying an inverse operation recorded at commit-pre...",
    "what_was_observed": "A planning agent decomposed a request into three candidate tool sequences and launched them as parallel speculative branches, each with its own scratch context and a shared \"optimistic execution\" lease on a downstream CRM API. Branches A and B were optimistic: they issued `create_contact` immediately rather than staging it, on the theory that the winner would keep its contact and losers would `delete_contact` by retu...",
    "condition_of_validity": "Optimistic rollback is valid only when, for every speculative write, all three hold: 1. **Invertibility is total** — there exists a compensating operation defined for every reachable post-state of the tool, not just the happy path. 2. **Identity is stable** — the handle used to compensate is the handle the effect actually created, guaranteed across any serve...",
    "decision_boundary": "Before dispatching a speculative branch, classify each tool call it will make: - **Pure / read-only** → speculate freely. - **Idempotent write with stable key** → speculate, but verify returned identity equals reserved identity before logging the compensation. - **Non-invertible or identity-rewriting write** → do not execute optimistically; stage the intent ...",
    "operational_effect": "Enforcing the invariant converts a silent, delayed consistency failure into an immediate, localized one. The cost is throughput: non-speculatable branches serialize, and post-rollback verification reads add latency to the discard path. The benefit is that commit-time state is provably equal to the committed branch's effects, so downstream agents and auditors..."
  },
  "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": "5fdba3d8ae36549a04743ff07bbaf955cbc1e1d292c30fe54a6b9b150ee23d6e",
    "verified_classes": [
      "SpeculativeRollbackDivergence",
      "SpeculativeWrite",
      "BranchLedger"
    ],
    "verified_functions": [
      "reconcile_rollback",
      "record"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeRollbackDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
