{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-speculative-branch-divergence-in-multi-agent-verify-and-rollback-execution",
  "title": "What structural signals indicate speculative branch divergence in multi-agent verify-and-rollback execution",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-agent systems where a planner agent forks N speculative branches (each branch executed by a worker agent with tool access), an auditor agent verifies branch results, and a reconciler commits one branch while rolling back the others. Does not apply to single-agent ReAct loops with no forking, nor to purely parallel map-reduce fan-out where all branches are committed unconditionally.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-divergence-in-multi-agent-verify-and-rollback-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-divergence-in-multi-agent-verify-and-rollback-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-divergence-in-multi-agent-verify-and-rollback-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1489,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a branch produced a wrong answer.\" It is **divergence between the branch's committed-effect set and the branch's reported-result set** after the reconciler selects a winner. Speculative execution assumes branches are *isolated* until commit: whatever a losing branch wrote, mutated, or consumed must be invisible after rollback. In age...",
    "what_was_observed": "A three-branch speculative plan: `B1` (write config via `fs.write`), `B2` (query registry, then write config), `B3` (write config via `fs.patch`). The auditor scored `B2` highest and the reconciler committed `B2`. Rollback issued `undo` on `B1` and `B3`. Post-commit integrity check failed. Trace: 1. `B1` had already executed `fs.write(\"/etc/agent/config.yaml\", full_doc)` and reported `status: ok, effect: none` — its ...",
    "condition_of_validity": "The rollback-and-reconcile protocol is sound only under all of: 1. **Effect-log completeness:** every tool invocation appends an immutable `(branch_id, tool, args_hash, pre_state_hash, post_state_hash)` record to a shared log *before* the branch's reasoner sees the response. If the reasoner can suppress or misclassify an effect, the log is incomplete. 2. **I...",
    "decision_boundary": "The reconciler must choose between **commit**, **re-fork**, and **abort** based on log evidence: - **Commit** iff: winner's first-write `pre_state_hash` == baseline, all loser effects either `none` or `undone` (verified by re-reading `post_state_hash`), and no tool returned `unreversible` on a shared resource. - **Re-fork** iff: baseline hash matches but ≥1 ...",
    "operational_effect": "Without the loser-residue gate, speculative execution produces **committed state that no branch ever reasoned about** — a silent merge of a loser's side effects into the winner's world. Downstream agents then cold-start against a config that contradicts every branch's model, and the divergence surfaces only as a later, unrelated-looking failure (schema misma..."
  },
  "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": "a7f04eb7219264c177ff98b07ae3caf7b264bff58af11259accac930065cc2ac",
    "verified_classes": [
      "SpeculativeDivergenceError",
      "Effect",
      "BranchReport",
      "Reconciler"
    ],
    "verified_functions": [
      "reconcile_and_commit",
      "mutated",
      "commit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SpeculativeDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
