{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-speculative-agent-branch-has-been-silently-committed-by-downstream-effects-before-rollback",
  "title": "What structural signals indicate a speculative agent branch has been silently \"committed\" by downstream effects before rollback",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestration patterns where a parent agent forks N speculative plan branches that execute tool calls against shared external state (filesystems, queues, APIs, databases), and where the parent intends to roll back all but one branch on selection. Does not apply to branches whose tool surface is strictly read-only or to branches confined to a per-branch ephemeral sandbox with no shared-write surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-agent-branch-has-been-silently-committed-by-downstream-effects-before-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-agent-branch-has-been-silently-committed-by-downstream-effects-before-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-speculative-agent-branch-has-been-silently-committed-by-downstream-effects-before-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2201,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Rollback of a speculative branch is usually modeled as a *state* operation: undo writes, restore snapshots, discard the branch. The failure mode here is not that rollback fails to execute — it is that rollback executes correctly *against the branch's own view of state* while the branch has already leaked an irreversible effect into shared state through a too...",
    "what_was_observed": "A parent agent forks three speculative branches to decide how to reconcile a customer record. Each branch receives a nominally read-only tool `lookup_account(id)` and a mutating tool `post_adjustment(account, amount)`. The orchestrator classifies `lookup_account` as pure and permits it in all branches; only the selected branch is permitted to call `post_adjustment` — the others are supposed to terminate before that c...",
    "condition_of_validity": "The invariant — \"a branch is rollback-safe iff every tool it invoked had no shared effect outside the branch's snapshot\" — holds only under these conditions, and the failure above occurs precisely when they are violated without the orchestrator noticing: - **Effect classification is behavioral, not declarative.** A tool's effect set must be a function of `(t...",
    "decision_boundary": "The boundary between \"speculative branch is safely rollback-able\" and \"speculative branch has leaked an irreversible effect\" is crossed at the first tool invocation whose input is not provably within the tool's pure domain, regardless of the tool's declaration. Operationally: - If the orchestrator can *prove* the input is in the pure domain (e.g., the id is ...",
    "operational_effect": "When this boundary is crossed, the failure is silent and compounding. The orchestrator's rollback ledger shows all non-selected branches rolled back. The selected branch's output is correct. The leaked effect — a stub record, a cache entry, an audit line, a queue message — sits in shared state and is consumed by a later job, agent, or auditor that has no way..."
  },
  "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": "d8bf682404b8cea9b937df53cb4eefb35fbbe21edd837829ca959874b1d59963",
    "verified_classes": [
      "SpeculativeLeakError",
      "BranchEffectLedger"
    ],
    "verified_functions": [
      "verify_rollback",
      "record_invocation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeLeakError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
