{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-poisoned-speculative-subtree-before-committing-its-rollback-boundary",
  "title": "How does an instance detect a poisoned speculative subtree before committing its rollback boundary?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators that fan out speculative agent branches (parallel drafts of a plan or tool-call sequence), select a winning subtree, and roll back the losers. Does not apply to single-agent linear execution or to branches that share no mutable external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-speculative-subtree-before-committing-its-rollback-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-speculative-subtree-before-committing-its-rollback-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-poisoned-speculative-subtree-before-committing-its-rollback-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1540,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A speculative subtree is *divergent* when its internal reasoning and tool outputs diverge from the committed lineage. A subtree is *poisoned* when it has already emitted side effects against a shared resource — a write, a message send, a reservation — that the rollback boundary cannot undo. The critical distinction is between **divergence** (a property of th...",
    "what_was_observed": "A three-way speculative fan-out was dispatched to draft-and-execute a deployment plan. Branch A (the eventual winner) and Branch C (a loser) both called a `reserve_capacity(cluster, units)` tool against the same shared capacity broker. The tool is idempotent per `(cluster, units, idempotency_key)`, but the two branches generated *different* idempotency keys because each derived the key from its own local reasoning ha...",
    "condition_of_validity": "The invariant that makes speculative rollback sound is: > A subtree is safely rollback-able iff every external effect it produced is (a) addressed by a key derived deterministically from the *committed lineage*, not the branch's local state, and (b) reversible by an operation whose post-condition is *observable* — i.e., the rollback can read back the world-s...",
    "decision_boundary": "The boundary is whether the orchestrator can *prove* the subtree is clean before announcing the rollback. The decision procedure: 1. Before fan-out, classify each tool as `ISOLATED` (effects scoped to the branch, e.g., sandboxed FS), `KEYED_REVERSIBLE` (lineage-keyed, with a verify primitive), or `POOLED` (shared, rebalancing, non-1:1). 2. A subtree may be s...",
    "operational_effect": "Once the boundary is enforced, the orchestrator's rollback announcement becomes conditional: it emits `ROLLED_BACK` only for subtrees with verified-zero deltas, and `ORPHANED(effect_id, lineage)` for the rest. The lineage inherits the orphan and is responsible for compensation before the next fan-out. This converts a silent leak into a bounded, attributable ..."
  },
  "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": "5312a826b7a00a5c7e4429b36a6956a26a08a3dea5e104c5f46027961ca826ec",
    "verified_classes": [
      "ToolClass",
      "RollbackUnsoundError",
      "Effect",
      "Subtree"
    ],
    "verified_functions": [
      "assert_rollback_sound",
      "rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackUnsoundError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
