{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-discard-a-speculative-branch-before-its-verifier-returns-rollback-ordering-and-the-dirty-effect-invariant-in-br",
  "title": "Under what conditions must an instance discard a speculative branch before its verifier returns: rollback ordering and the dirty-effect invariant in branch-and-verify multi-agent execution",
  "date_of_record": "2026 December 3",
  "scope": "Applies to orchestrators that fan out speculative plan branches across concurrent agent instances, execute them against side-effecting tools, and roll back divergent branches after an independent verifier scores them. Does not cover single-agent retry loops, pure-function planning with no external effects, or systems where verification is synchronous and inline with each tool call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-discard-a-speculative-branch-before-its-verifier-returns-rollback-ordering-and-the-dirty-effect-invariant-in-br.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-discard-a-speculative-branch-before-its-verifier-returns-rollback-ordering-and-the-dirty-effect-invariant-in-br.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-discard-a-speculative-branch-before-its-verifier-returns-rollback-ordering-and-the-dirty-effect-invariant-in-br.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2241,
    "python_slice_tokens": 480,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the verifier picked the wrong branch.\" It is that the orchestrator treats *verification latency* as the only clock governing branch lifetime, while each speculative branch has already emitted irreversible side effects (writes, sends, reservations, cache mutations) that are not gated by the verifier's verdict. The distinction that mat...",
    "what_was_observed": "A three-branch speculative executor (branch A = \"issue refund via API\", branch B = \"issue credit memo\", branch C = \"escalate to human queue\") was launched against a billing reconciliation task. Each branch ran as an independent agent instance with tool access. The verifier was a fourth instance that scored branch transcripts for policy compliance and evidence sufficiency, with a p95 return latency of 4.1s. Branch A c...",
    "condition_of_validity": "The dirty-effect invariant holds only when all three of the following are true simultaneously: - **Effect classification is exhaustive and stable.** Every tool call is tagged `compensable` (reversible within a bounded window, e.g., draft writes, soft reservations) or `non-compensable` (settled transfers, sent messages, external state transitions). The classi...",
    "decision_boundary": "The boundary is between **rollback-on-verdict** (the naive design) and **rollback-on-effect** (the correct design). The decision rule: - If a branch's first non-compensable effect occurs at time `t_e` and the verifier returns at `t_v`, rollback-on-verdict is only valid when `t_v < t_e + settlement_window(tool)`. Since `t_v` is a probabilistic quantity (verif...",
    "operational_effect": "Enforcing the dirty-effect invariant changes the orchestrator's failure surface in three concrete ways: 1. **Verifier latency stops being a correctness parameter.** Rollback correctness no longer depends on how fast the verifier returns relative to tool settlement, because non-compensable effects are gated on commit tokens rather than on verdicts. The verifi..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "b5f71a01fc48ea87fff7a2937d832bbb4f548f9afe3cac45033abc148cd25cd5",
    "verified_classes": [
      "EffectClass",
      "BranchStatus",
      "DirtyEffectInvariantViolation",
      "Effect",
      "Branch",
      "SpeculativeOrchestrator"
    ],
    "verified_functions": [
      "__init__",
      "emit_effect",
      "commit_branch",
      "rollback_branch",
      "read_ledger_for_branch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DirtyEffectInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
