{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-speculative-agent-plan-branches-have-silently-outlived-their-rollback-horizon",
  "title": "What structural signals indicate speculative agent-plan branches have silently outlived their rollback horizon",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that fork speculative plan branches against a shared, mutable world-state (filesystem, DB, external APIs) and rely on compensating rollback or branch reconciliation before committing one branch. Does not apply to pure read-only fan-out or to branches executed against fully isolated, disposable sandboxes with no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-agent-plan-branches-have-silently-outlived-their-rollback-horizon.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-agent-plan-branches-have-silently-outlived-their-rollback-horizon.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-agent-plan-branches-have-silently-outlived-their-rollback-horizon.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1757,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"a speculative branch produced a wrong answer.\" It is that a speculative branch produced a *plausible* answer whose side effects crossed the rollback horizon before the reconciler decided to cancel it. The distinction that matters: **reversible speculation** (state changes are logged as compensable actions and can be unwound dete...",
    "what_was_observed": "A planner agent decomposed a refactor task into three speculative branches (B1: rename schema, B2: migrate data, B3: update consumers). Each branch ran in a \"transactional\" wrapper that recorded file writes and DB statements into a compensation log. The reconciler's policy: run all three in parallel, score by test-pass rate, commit the winner, roll back losers via the log. B2 emitted a `POST /migrations/enqueue` to a...",
    "condition_of_validity": "The invariant that must hold for speculative rollback to be sound: > **For every speculative branch B, the set of world-state mutations attributable to B at cancellation time must be a subset of the set of mutations the compensation log can deterministically reverse, AND the reversal must be verified by a post-condition check, not by the compensating call's ...",
    "decision_boundary": "The reconciler must switch from *optimistic rollback* to *quarantine-then-commit* at the boundary where: - The branch's declared effect-set (from its plan) contains any action whose downstream fan-out is not enumerable at plan time, OR - The compensation log's coverage ratio (compensable actions / total observed mutations) drops below 1.0 at any checkpoint, ...",
    "operational_effect": "Teams that hit this boundary typically respond by \"adding more logging,\" which does not help: the leak is in the *channel topology*, not the log. The effective mitigations, in order of leverage: 1. **Commit-token gating.** Speculative branches cannot emit to non-owned channels; they enqueue *intents* that the reconciler releases only on commit. This converts..."
  },
  "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": "c39ff392a8b234ce8950d61d9ababa0b7b60404574b30cc76e378271d3b22339",
    "verified_classes": [
      "RollbackStatus",
      "SpeculationLeakError",
      "Branch"
    ],
    "verified_functions": [
      "cancel_branch",
      "coverage_ratio"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculationLeakError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
