{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-diverge-silently-when-speculative-branch-rollback-restores-state-but-not-the-cost-ledger-s-monotonic-fan-out-watermark",
  "title": "Why does an instance diverge silently when speculative branch rollback restores state but not the cost ledger's monotonic fan-out watermark?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to orchestrators that run speculative parallel agent branches (fan-out N, verify, roll back losers) and gate further fan-out on a cost/watermark ledger. Does not apply to single-branch sequential execution or stateless one-shot tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-silently-when-speculative-branch-rollback-restores-state-but-not-the-cost-ledger-s-monotonic-fan-out-watermark.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-silently-when-speculative-branch-rollback-restores-state-but-not-the-cost-ledger-s-monotonic-fan-out-watermark.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-silently-when-speculative-branch-rollback-restores-state-but-not-the-cost-ledger-s-monotonic-fan-out-watermark.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1343,
    "python_slice_tokens": 211,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a wrong answer.\" It is that **rollback is defined over two state planes — the execution/context plane and the accounting plane — and only one of them is transactional.** When a speculative branch is discarded, the orchestrator restores the parent's context, working memory, and tool-effect journal to the pre-fork checkpoi...",
    "what_was_observed": "A planner forks 5 speculative branches at a checkpoint with an admitted fan-out budget of 5. Branch 4 diverges (tool call returns a schema-mismatched payload), and the verifier rolls it back at step 7. Context, episodic memory, and the tool-effect journal are restored to the step-0 checkpoint — this part is correct and idempotent. The cost ledger, however, retains `watermark = 5` and `admitted_peak = 5`. On the next ...",
    "condition_of_validity": "The invariant that must hold: **for every speculative round, `admitted_branches == verifier_expected_quorum` and `watermark_after_rollback <= admitted_peak_of_live_round`.** This is violated precisely when rollback is scoped to the execution plane while the accounting plane uses a monotonic high-water mark. The condition is *valid* (safe) only if one of thes...",
    "decision_boundary": "The orchestrator must choose, at fork time, whether the cost ledger is **authoritative** (drives admission and quorum) or **advisory** (observability only). If authoritative, rollback must be transactional across both planes — meaning the ledger supports compensating credits and the verifier reads quorum from the round's admitted set, not the watermark. If a...",
    "operational_effect": "Downstream, the failure manifests as: intermittent verification-barrier timeouts that correlate with (but are not attributed to) prior rollbacks; a fan-out that ratchets down over a long task until the agent is effectively sequential while believing it is parallel; and cost reports that overstate spend relative to live work because rolled-back paid calls are..."
  },
  "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": "99bc737b40e6d2134c5fd5300e64ad575863233aa1d79674b66f4e276ef6387e",
    "verified_classes": [
      "SpeculativeRollbackDivergence"
    ],
    "verified_functions": [
      "open_verification_barrier"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeRollbackDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
