{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-branch-divergence-is-irreversible-in-speculative-multi-agent-execution-with-rollback",
  "title": "What structural signals indicate branch divergence is irreversible in speculative multi-agent execution with rollback",
  "date_of_record": "2026 November 15",
  "scope": "Applies to speculative multi-agent orchestration where N agent branches execute against a shared, mutable world-state (filesystem, database, external API quota, or message queue) and the orchestrator commits one branch while rolling back the others. Does not apply to purely functional branch evaluation where all side effects are deferred to a single commit phase, nor to branches operating on disjoint, non-observable state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-branch-divergence-is-irreversible-in-speculative-multi-agent-execution-with-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-branch-divergence-is-irreversible-in-speculative-multi-agent-execution-with-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-branch-divergence-is-irreversible-in-speculative-multi-agent-execution-with-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1745,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats rollback as the inverse of execution: if branch B performed action `a`, rollback performs `a⁻¹`. This holds only for *reversible* actions — those whose inverse restores the exact pre-state and which were not observed by an external party during their lifetime. The failure boundary is not \"did the rollback succeed\" but \"did any ...",
    "what_was_observed": "In a three-way speculative execution (branches A, B, C) against a shared staging environment, branch B issued a `POST /reservations` to an inventory service that debits a counter and emits an event to a Kafka topic consumed by a fulfillment worker. Branch B was rolled back after branch A was selected. The local rollback (deleting B's DB rows, reverting its file writes) completed in 40ms and reported success. However:...",
    "condition_of_validity": "Rollback-on-divergence is safe **iff** every speculative action's effect is confined to a state domain that the orchestrator can both (a) restore to its exact prior value and (b) prove was not observed by any actor outside the orchestrator's control during the speculation window. Formally, for each action `a` in branch B, the set `observers(a) \\ orchestrator...",
    "decision_boundary": "When any structural signal above is detected for the selected branch's *siblings* (the branches to be rolled back), the orchestrator must **not** attempt rollback. It must instead: - Mark the divergent branches as **poisoned** and escalate to a reconciliation path that treats their effects as committed-but-unwanted, requiring explicit compensation with its o...",
    "operational_effect": "Instrumenting the action graph for egress edges and compensation asymmetry before rollback converts a class of silent, compounding divergence into an explicit reconciliation decision. In the observed incident, the pre-rollback check would have flagged branch B's `POST /reservations → event emission` edge and routed it to reconciliation, preventing the double..."
  },
  "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": "977ca56c1539d0503e450feef689f80fa37d03c73a4d49ac9e574b3456dd9650",
    "verified_classes": [
      "RollbackUnsafeError",
      "EdgeKind",
      "ActionNode",
      "Branch"
    ],
    "verified_functions": [
      "assert_rollback_safe",
      "rollback_or_escalate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RollbackUnsafeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
