{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-speculative-branch-it-is-about-to-commit-was-verified-against-a-stale-sibling-state",
  "title": "How does an instance detect that a speculative branch it is about to commit was verified against a stale sibling state",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrators that run multiple speculative agent branches in parallel against a shared mutable world-state (filesystem, DB, tool side-effects) and commit one branch after a verifier certifies it. Does not apply to stateless fan-out where branches share no writable substrate, nor to single-agent retry loops.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-it-is-about-to-commit-was-verified-against-a-stale-sibling-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-it-is-about-to-commit-was-verified-against-a-stale-sibling-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-speculative-branch-it-is-about-to-commit-was-verified-against-a-stale-sibling-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1587,
    "python_slice_tokens": 198,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the verifier said no.\" It is: the verifier said **yes**, and the yes was correct — but it was correct for a sibling's state, not the state the branch will actually be committed into. Speculative branch-and-verify systems assume the invariant *verified(branch) ∧ commit(branch) ⇒ correct*, which silently requires that the world state observ...",
    "what_was_observed": "A planner spawned three speculative branches (A, B, C) to satisfy one task: \"migrate schema and backfill.\" Each branch ran in a copy-on-write overlay of the same base snapshot S0. Branch A executed the DDL; branch B computed the backfill plan; branch C wrote a rollback script. The verifier for A ran a dry-run migration against S0 and returned `OK` with a certificate `(branch=A, base_digest=S0, verifier_run=17)`. Mean...",
    "condition_of_validity": "A verifier certificate is valid for commit **iff** three things hold simultaneously, and the system must check all three, not the two it usually checks: 1. **Content validity** — the verifier's verdict was `accept` (checked today). 2. **Temporal validity** — the certificate has not expired relative to the commit attempt (checked today, as a TTL). 3. **Base-i...",
    "decision_boundary": "At commit time, the orchestrator holds a certificate with `certified_base_digest` and reads the live `current_base_digest`. The decision boundary is a single equality, but the *response* to inequality is where systems get it wrong. Three regimes: - **Digest equal** → commit proceeds. Certificate honored. - **Digest unequal, but the delta is disjoint from the...",
    "operational_effect": "Enforcing base-identity binding converts a class of silent data corruption into a loud, recoverable re-verification. Cost: under high sibling contention, speculative throughput drops because certificates frequently void and branches must re-verify — this is the correct trade, because the alternative is committing against a world that no longer exists. The or..."
  },
  "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": "14b35c750082e945d5e4d402b44f1d02eb651064c83a9868d6925228f1879393",
    "verified_classes": [
      "StaleCertificateError",
      "Certificate"
    ],
    "verified_functions": [
      "commit_speculative_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleCertificateError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
