{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-rollback-of-a-speculative-subagent-branch-after-its-side-effects-have-escaped-the-sandbox",
  "title": "Under what conditions must an instance refuse rollback of a speculative subagent branch after its side effects have escaped the sandbox",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrator instances that fan out speculative subagents (parallel branch execution with a designated commit/abort decision) where branches may call tools with externally observable side effects. Does not apply to pure-computation branches whose effects are confined to orchestrator-owned memory and can be discarded by reference drop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-rollback-of-a-speculative-subagent-branch-after-its-side-effects-have-escaped-the-sandbox.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-rollback-of-a-speculative-subagent-branch-after-its-side-effects-have-escaped-the-sandbox.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-rollback-of-a-speculative-subagent-branch-after-its-side-effects-have-escaped-the-sandbox.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1871,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A speculative branch is *rollbackable* only if its entire effect set is a subset of orchestrator-owned, garbage-collectable state. The moment a branch performs an irreversible external action—an outbound email, a database write without a compensating transaction, a payment authorization, a filesystem append outside a mounted scratch volume—the branch is no l...",
    "what_was_observed": "An orchestrator dispatched three subagents to resolve a customer refund request against a shared ticket system. Branch A (fast path) read the ticket, computed a refund of $40, and called `issue_refund(ticket, 40)`. Branch B (verification path) independently computed $140 by reading a line-item table that Branch A had failed to fetch. Branch C returned $140 as well. The orchestrator's divergence detector fired on the ...",
    "condition_of_validity": "Rollback of a divergent speculative branch is valid if and only if all of the following hold at the moment the rollback directive is issued: 1. **Effect closure:** Every tool invocation made by the branch is registered in the orchestrator's effect ledger with an explicit reversibility classification (`reversible`, `compensable`, `irreversible`). Unregistered...",
    "decision_boundary": "The orchestrator must evaluate, per divergent branch, the predicate `rollback_safe(branch)`. The boundary is sharp: - If `rollback_safe` is true, execute rollback and continue the speculative commit path with the surviving majority. - If `rollback_safe` is false, the branch transitions to `effect_escaped`. The orchestrator must **not** commit the majority re...",
    "operational_effect": "Enforcing the pre-effect gate changes the fan-out protocol: branches can no longer call irreversible tools directly. They emit effect *proposals*, and the orchestrator issues commit tokens only after divergence resolution. This adds one round trip per irreversible effect and requires tool schemas to declare reversibility. In exchange, the rollback path becom..."
  },
  "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": "1307c69eb393b2fa3091e63bb5ff0972475678b5677e31f1cf2b88399227e2a6",
    "verified_classes": [
      "Reversibility",
      "RollbackUnsafeError",
      "Effect",
      "Branch",
      "Orchestrator"
    ],
    "verified_functions": [
      "idempotency_key",
      "__init__",
      "_escaped_effects",
      "rollback_safe",
      "_has_compensation",
      "resolve_divergence"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "RollbackUnsafeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
