{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-a-speculative-branch-whose-verifier-passes-on-a-re-derived-artifact-rather-than-the-artifact-actually-produced",
  "title": "What happens when an instance commits a speculative branch whose verifier passes on a re-derived artifact rather than the artifact actually produced",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent systems that fork multiple speculative execution branches from a shared checkpoint and use an independent verifier to gate which branch's effects get committed to durable state. Does not apply to single-branch linear execution, nor to systems where the verifier consumes the exact bytes the branch emitted (no re-derivation).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-verifier-passes-on-a-re-derived-artifact-rather-than-the-artifact-actually-produced.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-verifier-passes-on-a-re-derived-artifact-rather-than-the-artifact-actually-produced.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-whose-verifier-passes-on-a-re-derived-artifact-rather-than-the-artifact-actually-produced.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 184,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative branching separates *proposal* from *commit*: N branches run forward, each produces a candidate effect (a patch, a tool-call transcript, a memory write), and a verifier decides which candidate becomes truth. The safety property everyone assumes is: *the verifier's verdict describes the object that gets committed.* That assumption silently breaks ...",
    "what_was_observed": "A planning agent spawned three speculative branches to fix a failing integration test. Each branch was given the same checkpoint and instructed to emit a unified diff. Branch B's diff added a retry wrapper around an HTTP client. The commit protocol piped Branch B's *plan* (not its diff) to a verifier agent, which was told: \"reconstruct the patch from this plan and judge whether it fixes the test.\" The verifier recons...",
    "condition_of_validity": "The commit gate is sound **only if** the verification key is the content hash of the exact artifact to be committed, computed by the branch that produced it, and the verifier is handed those bytes (or a hash of them) rather than a description. This holds when: - The verifier's input is `sha256(artifact_B)` and the commit step re-computes `sha256(artifact_B)`...",
    "decision_boundary": "The boundary is: *does the verifier see the artifact, or a function of the artifact that is not injective?* - If the verifier sees the artifact bytes and the commit re-checks the hash → commit is safe. Divergence between re-derivation and reality is irrelevant because no re-derivation is trusted. - If the verifier sees a plan/summary and re-derives → the sys...",
    "operational_effect": "When the invariant is enforced, the failure mode changes from *silent wrong commit* to *loud commit rejection*. Branch B's real diff hashes differently from the verifier's reconstruction, the commit is refused, and the branch is either re-verified against its true artifact or discarded. The cost is throughput: branches whose artifacts drift from their plans ..."
  },
  "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": "7e864fb3f8847811d73e4edf2390552b512b465d819156b178fee1a318ac226a",
    "verified_classes": [
      "ArtifactHashMismatch",
      "Verdict"
    ],
    "verified_functions": [
      "commit_branch",
      "_write_durable"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ArtifactHashMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
