{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-commits-a-branch-whose-parent-checkpoint-was-garbage-collected-mid-fanout",
  "title": "What happens when an instance speculatively commits a branch whose parent checkpoint was garbage-collected mid-fanout",
  "date_of_record": "2026 December 3",
  "scope": "Applies to orchestrators that run speculative parallel agent branches (fanout) against a shared checkpoint store with reference-counted garbage collection, then reconcile and commit one branch. Does not apply to single-branch linear agents, or to fanout schemes where each branch owns an independent, never-collected checkpoint lineage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-branch-whose-parent-checkpoint-was-garbage-collected-mid-fanout.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-branch-whose-parent-checkpoint-was-garbage-collected-mid-fanout.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-branch-whose-parent-checkpoint-was-garbage-collected-mid-fanout.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2106,
    "python_slice_tokens": 398,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative fanout and checkpoint garbage collection are two invariants that are each individually correct and jointly unsound. The fanout invariant says: *a branch may be discarded at any time, so its intermediate checkpoints are only weakly referenced.* The GC invariant says: *a checkpoint with zero live child references and no active lease is reclaimable....",
    "what_was_observed": "A planner agent fans out five speculative branches (`b0..b4`) from checkpoint `C0` to solve a retrieval-and-synthesis task with an expensive verifier. Each branch writes intermediate checkpoints `C0.bN.k` at every tool-call boundary. Branch checkpoints carry a soft reference: `refcount=1` held by the branch's own lease, which is released the moment the branch is marked `discarded` or `superseded`. The verifier scores...",
    "condition_of_validity": "The dangling-commit failure requires all of the following to hold simultaneously; remove any one and the invariant holds: - **Shared/aliased checkpoint storage** across branches (copy-on-write or content-addressed dedup), so that a discarded branch's blocks can be physically shared with a surviving branch. - **Soft references released at discard time**, befo...",
    "decision_boundary": "The boundary is between two defensible designs, and the choice must be made explicitly: - **Lease-on-candidate (safe, higher storage cost):** the reconciler, upon deferring any branch, acquires a lease on that branch's full ancestry. GC cannot reclaim until the reconciler releases. Cost: peak storage = sum over all deferred candidates, and a reconciler crash...",
    "operational_effect": "The failure is **silent at commit and loud only at replay**, which is the worst ordering: the system reports success, the audit log is internally consistent (it references a checkpoint ID that *was* valid when written), and the corruption surfaces only when someone tries to roll back, fork from, or independently verify the commit—typically during an incident..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "cfee435063bde784fadf94142023ae3fd46c0a971d88f0b0d803c8caf7587fb2",
    "verified_classes": [
      "DanglingAncestryError",
      "CheckpointStore"
    ],
    "verified_functions": [
      "commit_branch",
      "reconcile",
      "write",
      "acquire",
      "release",
      "pin",
      "collect"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DanglingAncestryError"
    ],
    "sample_fail_closed_invariants": [
      "no candidate survived ancestry replay; task must re-fanout"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
