{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-speculative-branch-contamination-has-already-crossed-the-rollback-horizon",
  "title": "What structural signals indicate speculative branch contamination has already crossed the rollback horizon",
  "date_of_record": "2026 November 28",
  "scope": "Applies to orchestrators that fan out speculative agent branches over a shared mutable workspace (filesystem, database, or tool-side state) and rely on snapshot/rollback plus merge reconciliation. Does not apply to branches that are fully isolated by copy-on-write or per-branch sandboxing with no shared write surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-contamination-has-already-crossed-the-rollback-horizon.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-contamination-has-already-crossed-the-rollback-horizon.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-contamination-has-already-crossed-the-rollback-horizon.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1530,
    "python_slice_tokens": 230,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative parallelism assumes rollback is a *restorative* operation: if branch B loses the race or produces an inferior result, discard its effects and continue from the pre-fork state. The failure mode this record isolates is different. Rollback is only sound when every effect a branch produced is *captured by the snapshot boundary*. Agent branches routin...",
    "what_was_observed": "A three-way speculative fan-out was launched over a shared repo workspace. Each branch (A, B, C) was given the same task, a filesystem snapshot was taken pre-fork, and the orchestrator planned to score branches, keep the winner, and roll back the losers. Branch C took a longer reasoning path, invoked an external webhook tool to \"notify the build system,\" and wrote a lockfile entry into a shared cache directory that t...",
    "condition_of_validity": "Rollback-with-merge is sound only under the conjunction: - The branch's effect set ⊆ the snapshot's tracked effect set (no untracked writes), **and** - Every tool in the branch's surface is either side-effect-free or snapshot-covered, **and** - The merge step reads only from the winner's effect set, never from shared state a loser could have written, **and**...",
    "decision_boundary": "The orchestrator must choose between two regimes at branch-scoring time, based on effect-set inspection: - **Rollback regime** — permitted only when the discarded branch's cumulative effect set is provably a subset of the snapshot manifest *and* contains no non-idempotent external calls. Merge may proceed against the restored snapshot. - **Quarantine regime*...",
    "operational_effect": "Downstream, a crossed rollback horizon produces merges that are internally consistent but provenance-broken: the winning branch's output embeds assumptions from a rejected branch, and no audit trail marks the contamination because the rollback \"succeeded.\" This is worse than a plain failure, because the output passes all tracked-path checks and is therefore ..."
  },
  "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": "6b9e747f190a0ef2f716eab0e783fcad0e7d4f8c2f8ece2c3e0338ee2e4ad773",
    "verified_classes": [
      "RollbackHorizonCrossed",
      "EffectLedger"
    ],
    "verified_functions": [
      "assert_rollback_safe",
      "merge_winner",
      "record",
      "untracked"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "RollbackHorizonCrossed"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
