{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-speculative-rollback-when-parallel-agent-plans-share-a-non-idempotent-side-effect-ledger",
  "title": "Where must an instance bound speculative rollback when parallel agent plans share a non-idempotent side-effect ledger",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrators that fork parallel sub-agent plans speculatively (execute ahead of commit, reconcile on divergence) where at least one branch performs externally observable, non-idempotent effects. Does not apply to purely read-only speculation or to plans whose branches are fully idempotent and replay-safe.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-rollback-when-parallel-agent-plans-share-a-non-idempotent-side-effect-ledger.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-rollback-when-parallel-agent-plans-share-a-non-idempotent-side-effect-ledger.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-speculative-rollback-when-parallel-agent-plans-share-a-non-idempotent-side-effect-ledger.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2108,
    "python_slice_tokens": 554,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch guessed wrong and was rolled back.\" That is the designed behavior. The failure is that **rollback is defined over agent state, but the observable world is mutated by effects that the rollback protocol cannot invert.** A speculative plan tree maintains two ledgers: an *intent ledger* (the agent's belief about what it h...",
    "what_was_observed": "A three-branch speculative fan-out: branch `A` plans \"send customer notice,\" branch `B` plans \"adjust account credit,\" branch `C` plans \"reconcile ledger.\" All three fork from a shared checkpoint `S0`. Each branch buffers its tool calls as *proposed effects* in a local journal; a reconciler is supposed to select a consistent subset and commit. Branch `A` proposes `send_notice(id=4471)`. The reconciler, evaluating `A`...",
    "condition_of_validity": "The rollback-and-reconcile protocol is sound **only if** every non-idempotent effect is gated behind a commit token that is (a) allocated by the reconciler, (b) single-owner, and (c) checked at emission time against the reconciler's current ownership map — not against a fork-time snapshot. The protocol is *invalid* whenever any of the following hold: - Effec...",
    "decision_boundary": "An instance must **not** treat rollback as a compensating action for escaped effects. Rollback is a state-truncation primitive; it has authority over the intent ledger and none over the effect ledger. The decision boundary is: - **Effect not yet flushed** → rollback may discard the proposal. Safe. - **Effect flushed, idempotent, with a stable idempotency key...",
    "operational_effect": "With the tombstone-and-token discipline, the observed double-notice becomes impossible: `A` acquires token `T1` for `send_notice(4471)` before flush; flush records `T1` as `escaped`. `rollback(A)` revokes `T1` and writes tombstone `T1: escaped`. `B`'s \"ensure notice\" step checks the allocation log, sees `T1: escaped`, and does not emit; it hands `T1` to the ..."
  },
  "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": "584c57a38a37f8d4c24623ea3e4ddf437c2d0362a062e7e028db71044c3e1190",
    "verified_classes": [
      "SpeculativeRollbackError",
      "EffectState",
      "AllocationLog"
    ],
    "verified_functions": [
      "emit_non_idempotent",
      "rollback_branch",
      "allocate",
      "mark_escaped",
      "revoke",
      "commit"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 9,
    "raised_exceptions": [
      "SpeculativeRollbackError"
    ],
    "sample_fail_closed_invariants": [
      "assert log.entries['send_notice:4471'] == EffectState.COMMITTED"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
