{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-forks-a-sibling-agent-s-tool-side-effects-and-the-reconciliation-barrier-arrives-after-the-branch-s-contex",
  "title": "What happens when an instance speculatively forks a sibling agent's tool side effects and the reconciliation barrier arrives after the branch's context window has already been compacted",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that run speculative parallel branches (fork-and-rollback) over agents whose tool calls mutate shared external state. Does not apply to purely read-only tool surfaces or to branches whose side effects are fully sandboxed in ephemeral stores with deterministic replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-a-sibling-agent-s-tool-side-effects-and-the-reconciliation-barrier-arrives-after-the-branch-s-contex.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-a-sibling-agent-s-tool-side-effects-and-the-reconciliation-barrier-arrives-after-the-branch-s-contex.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-a-sibling-agent-s-tool-side-effects-and-the-reconciliation-barrier-arrives-after-the-branch-s-contex.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1794,
    "python_slice_tokens": 238,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *logical rollback* and *physical rollback*. A speculative branch can be logically discarded — its planner state marked `ABORTED`, its messages dropped from the parent's transcript — while the tool side effects it emitted during the speculation window remain physically committed in the external world. Most rollback desi...",
    "what_was_observed": "A three-way speculative fork over a deployment task. Parent agent P forks branches B1, B2, B3 to explore three remediation paths against a shared staging cluster. Each branch holds a read-write tool grant scoped to a namespace, with the intent that only the winning branch's effects survive. B2 executes a sequence: `drain_node(n7)` → `cordon_node(n7)` → `patch_deployment(api, replicas=0)`. B1 concurrently executes `pa...",
    "condition_of_validity": "The invariant this violates is: **a speculative branch may only be asked to roll back side effects that are enumerated in a durable, non-compactable ledger keyed to the branch identity, and the barrier may not resolve a branch whose ledger is incomplete.** The failure is bounded by two conditions that must *both* hold for the failure to be reachable: 1. The ...",
    "decision_boundary": "The boundary the orchestrator must enforce is between *speculation that is reversible by construction* and *speculation that is reversible only by record*. The decision rule: - Before granting a branch a mutating tool, classify the tool's reversibility. A tool is **self-inverting** if its response contains enough state to reconstruct the prior value without ...",
    "operational_effect": "When this boundary is crossed, the system does not fail loudly. It produces a *plausible* final state — a replica count, a config value, a routing table — that passes shallow health checks and is internally inconsistent with every branch's stated intent. The reconciliation report is green. The postmortem, if one is written, attributes the anomaly to \"concurr..."
  },
  "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": "66686f7a555c54c8340d4753272fa42530709e39fdb366317efc05fd99ae7a61",
    "verified_classes": [
      "UnreconcilableBranchError",
      "BranchLedger"
    ],
    "verified_functions": [
      "reconcile",
      "__init__",
      "record",
      "mark_compacted"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconcilableBranchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
