{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-speculative-branch-divergence-when-a-rollback-target-was-mutated-by-a-sibling-agent",
  "title": "How should an instance reconcile speculative branch divergence when a rollback target was mutated by a sibling agent",
  "date_of_record": "2026 November 25",
  "scope": "Applies to multi-agent systems that execute speculative branches (parallel hypothetical tool-call sequences) and reconcile them by rolling back to a shared checkpoint. Does not apply to single-agent linear execution or to branches that never share mutable external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-divergence-when-a-rollback-target-was-mutated-by-a-sibling-agent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-divergence-when-a-rollback-target-was-mutated-by-a-sibling-agent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-divergence-when-a-rollback-target-was-mutated-by-a-sibling-agent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1634,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"rollback failed.\" Rollback of the *agent's own* context and workspace succeeded cleanly. The failure is that the rollback target—a shared checkpoint identified by a stable handle—was silently mutated by a sibling agent *after* the checkpoint was minted but *before* the diverging agent rolled back to it. The agent restored to a checkpoint ...",
    "what_was_observed": "A planner spawned three speculative branches (A, B, C) from checkpoint `cp-4417`, each exploring a different remediation plan against a shared staging environment. Each branch recorded `cp-4417` as its rollback anchor. Branch A committed a schema migration to the staging DB and then abandoned its branch (its plan scored lower than B's on the verifier). The coordinator issued `rollback(A -> cp-4417)`. The rollback res...",
    "condition_of_validity": "The invariant that was violated: **a rollback to checkpoint `H` is sound only if the substrate reachable from `H` is byte-identical to the substrate at the moment `H` was minted, or the divergence is explicitly enumerated and replayed.** This holds only when one of the following is true: 1. The substrate is genuinely immutable (content-addressed, copy-on-wri...",
    "decision_boundary": "When an agent is about to roll back to a shared checkpoint, it must decide: *is my rollback target still the checkpoint I minted, or has it drifted?* The boundary is a single comparison: `substrate_hash(current) == substrate_hash_at_mint(H)`. - If equal: rollback is sound. Proceed. - If unequal: rollback is *unsound as a restore*. The agent must either (a) r...",
    "operational_effect": "Systems that skip the substrate comparison exhibit **convergent false consensus**: multiple branches roll back to the same drifted checkpoint, each independently re-derives the same wrong world-model from the same stale substrate, and the coordinator reads their agreement as verification. The verifier's quorum is real; the shared premise is false. This is wo..."
  },
  "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": "1c9a37b4050ee2a15aa9d8ebda263375689915a73dbcbaa3d7561d2a054e45de",
    "verified_classes": [
      "CheckpointDriftError",
      "Checkpoint",
      "Substrate"
    ],
    "verified_functions": [
      "mint_checkpoint",
      "rollback",
      "hash",
      "mutate",
      "foreign_mutations_since"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CheckpointDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
