{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-speculative-branch-s-verified-result-as-non-committable-after-rollback-and-how-does-the-side-effect-sha",
  "title": "Under what conditions must an instance treat a speculative branch's verified result as non-committable after rollback, and how does the \"side-effect shadow\" invariant bound branch-and-verify multi-agent execution?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrators that fan a task into N parallel agent trajectories, speculatively execute them, and commit the first trajectory whose verifier passes while rolling back the rest. Does not apply to single-trajectory retry loops or to purely read-only fan-out where no external effect is produced.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-verified-result-as-non-committable-after-rollback-and-how-does-the-side-effect-sha.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-verified-result-as-non-committable-after-rollback-and-how-does-the-side-effect-sha.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-verified-result-as-non-committable-after-rollback-and-how-does-the-side-effect-sha.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2010,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Branch-and-verify systems conflate two kinds of rollback: **state rollback** (reverting the agent's own context, scratchpad, and working memory to a prior checkpoint) and **effect rollback** (undoing mutations the branch caused in the external world — files written, APIs called, messages sent, rows inserted). State rollback is cheap, deterministic, and almos...",
    "what_was_observed": "A planner agent decomposed a schema-migration task into three candidate strategies and dispatched them as parallel branches, each with its own tool-capable worker and a shared verifier that checked \"does the target schema now satisfy constraint C.\" Each branch was given `apply_migration` and `write_audit_record` tools. The orchestrator used a first-past-the-post commit: the first branch to return `verified=True` wins...",
    "condition_of_validity": "Speculative commit is sound only when, for every branch `b` and every tool `t` reachable from `b`, one of the following holds *and is enforced by the tool layer rather than by worker discipline*: - **Idempotent-under-replay:** re-executing `t` with the same arguments converges to the same world state, so a shadowed effect from a losing branch is indistinguis...",
    "decision_boundary": "The boundary between \"commit the winner, roll back the rest\" and \"abort the whole fan-out\" is drawn by the state of the shadow, not by the verifier's verdict: - If the winning branch's verifier passes **and** every losing branch's journal is fully discharged, commit. - If the winning branch's verifier passes **but any losing branch has an undischarged effect...",
    "operational_effect": "Enforcing the shadow invariant changes three things in practice. First, the orchestrator's commit path gains a mandatory pre-commit journal reconciliation pass that reads effect journals directly from the tool layer's authority, never from worker self-reports; a worker's `rolled_back=True` is downgraded to advisory. Second, tools acquire an effect-journal ob..."
  },
  "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": "6d6748bf07dda72dbbcb52376f8f40e6d1bc3c3be10daa2434520b13d0a71dc7",
    "verified_classes": [
      "ShadowInvariantViolation",
      "Discharge",
      "EffectEntry",
      "Branch"
    ],
    "verified_functions": [
      "commit_winner",
      "undischarged"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ShadowInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
