{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-commits-a-predicted-subagent-outcome-and-the-rollback-log-diverges-from-the-effect-log",
  "title": "What happens when an instance speculatively commits a predicted subagent outcome and the rollback log diverges from the effect log",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrator agents that launch speculative subagent branches on predicted outcomes and require rollback when prediction is falsified. Does not apply to strictly serial agent pipelines with no speculation, nor to branches whose effects are provably idempotent and externally reconciled.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-predicted-subagent-outcome-and-the-rollback-log-diverges-from-the-effect-log.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-predicted-subagent-outcome-and-the-rollback-log-diverges-from-the-effect-log.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-predicted-subagent-outcome-and-the-rollback-log-diverges-from-the-effect-log.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1644,
    "python_slice_tokens": 234,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the prediction was wrong.\" Predictions are wrong by design—that is what speculation buys you. The failure is that the **rollback log** (the orchestrator's record of what it believes it must undo) and the **effect log** (the actual side effects emitted by subagents into the environment) diverge in *cardinality or identity* before the rollb...",
    "what_was_observed": "An orchestrator predicted that a \"fetch-and-enrich\" subagent would return a record matching a schema, so it speculatively pre-committed a downstream \"publish\" branch and a \"notify\" branch in parallel, betting on the enrichment succeeding. The prediction carried a confidence of 0.91. The enrichment subagent partially succeeded: it wrote three of five enrichment fields to shared state, then hit a tool timeout on field ...",
    "condition_of_validity": "Rollback-by-prediction is valid only under a conjunction that is rarely checked: 1. **Effect determinism at launch time.** The predicted effect set must equal the actual effect set for every non-falsified path. This fails whenever a subagent can partially commit (degraded status, streaming writes, multi-step tool sequences). 2. **Atomic visibility.** Effects...",
    "decision_boundary": "The boundary is between **speculating over pure computations** and **speculating over effectful subagents**. Pure-computation branches (reasoning, planning, schema validation against in-memory data) can be rolled back by discarding the branch's context—no external effect log needed. Effectful branches (tool calls with side effects, external messages, shared-...",
    "operational_effect": "When the invariant holds, speculative execution yields latency wins with bounded rollback cost. When it is violated, the failure mode is **silent orphan accumulation**: each falsified prediction leaves effects that the orchestrator believes are gone. The orphans are not random—they cluster on the effect classes the orchestrator could not enumerate (external ..."
  },
  "matched_failure_symptoms": [
    "DST_SHIFT_OR_CLOCK_SKEW"
  ],
  "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": "cfdf62879f2907726456eb000fe4e6986dc239fe6540c5cb2315b15abca670e0",
    "verified_classes": [
      "SpeculativeRollbackDivergence"
    ],
    "verified_functions": [
      "rollback_speculative_branch",
      "launch_speculative"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculativeRollbackDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
