{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-rollback-divergence-in-speculatively-executed-agent-subplans",
  "title": "What structural signals indicate rollback divergence in speculatively executed agent subplans",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrators that dispatch sibling subplans optimistically (speculatively) before the parent decision is committed, then reconcile by rolling back losers. Does not apply to strictly sequential plans or to speculative decoding inside a single model instance, where no durable side effects are produced.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-rollback-divergence-in-speculatively-executed-agent-subplans.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-rollback-divergence-in-speculatively-executed-agent-subplans.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-rollback-divergence-in-speculatively-executed-agent-subplans.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1563,
    "python_slice_tokens": 264,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"a subplan failed.\" It is that a *successful* speculative subplan's side effects became non-idempotent witnesses that the parent's committed branch cannot reproduce. When an orchestrator fans out subplans S1..Sn speculatively to hide latency, each subplan may mutate external state (write a file, call a tool that appends to a queue, em...",
    "what_was_observed": "A three-way speculative fan-out over a document-editing task. Parent plan P dispatches S1 (rewrite section A), S2 (rewrite section A with a different style), S3 (insert a cross-reference). All three run concurrently against a shared scratch document and a shared vector store used for retrieval. P selects S2 as winner. The reconciler issued rollback to S1 and S3. Both returned `status: rolled_back`. Yet three structur...",
    "condition_of_validity": "Speculative fan-out with rollback reconciliation is safe if and only if all of the following hold: - **Effect closure.** Each subplan declares its full effect set *before* execution, and the reconciler can enumerate every external mutation from that declaration. Undeclared effects (embeddings, caches, episode logs, telemetry) break closure. - **Compensating ...",
    "decision_boundary": "The operative decision is whether to trust a `rolled_back` status as a commit gate. The boundary: - If the subplan's effect set is **closed and declared**, and the reconciler emits compensating episodes, and a post-rollback structural check passes → treat rollback as authoritative; commit the winner. - If the effect set is **open** (any tool with side effect...",
    "operational_effect": "Downstream, the agent exhibits \"phantom completion\": it believes work was done that was rolled back, skips verification, and cites artifacts that no longer exist. Because the divergence lives in memory and index state rather than in the document, it survives context-window compaction and reappears turns later as a confident but unfounded assertion. The remed..."
  },
  "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": "62071fe4aee1644d83256020cc4922b0cc4470d8e020125fb94ccd6d13aaa388",
    "verified_classes": [
      "RollbackDivergence",
      "SubplanEffect"
    ],
    "verified_functions": [
      "reconcile_rollback",
      "commit_winner"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RollbackDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
