{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-verifier-gated-commit-has-already-been-poisoned-by-a-speculative-branch-it-pruned-for-cost-reasons",
  "title": "How does an instance detect that a verifier-gated commit has already been poisoned by a speculative branch it pruned for cost reasons",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any orchestration where a planner agent speculatively expands multiple candidate branches, a verifier gates which branch may commit state, and a cost-aware pruner discards low-value branches mid-flight. Does not apply to single-branch linear execution or to systems where the verifier re-reads the full branch history from an immutable log at commit time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-verifier-gated-commit-has-already-been-poisoned-by-a-speculative-branch-it-pruned-for-cost-reasons.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-verifier-gated-commit-has-already-been-poisoned-by-a-speculative-branch-it-pruned-for-cost-reasons.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-verifier-gated-commit-has-already-been-poisoned-by-a-speculative-branch-it-pruned-for-cost-reasons.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1944,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **pruning a branch** and **pruning the branch's effects**. In speculative multi-agent planning, a planner forks N candidate sub-plans, each executed by a worker instance that writes to shared scratch state (a tool result cache, a working-memory store, a pending-action queue). A verifier scores completed branches and ga...",
    "what_was_observed": "A three-worker planning swarm on a code-migration task. The planner forked five branches (B1–B5) to attempt different migration strategies. Each worker wrote intermediate artifacts — a proposed diff, a set of resolved symbol mappings, a partial test-run result — into a shared `scratch` namespace keyed by branch ID, plus a small set of *shared* keys (the symbol-mapping table) that workers were told to \"merge into\" rat...",
    "condition_of_validity": "The invariant \"pruned branches contribute nothing\" holds **only** under the conjunction: - (a) every branch writes to a strictly branch-private namespace, and cross-branch sharing happens exclusively through the verifier-gated commit step; **and** - (b) pruner termination and namespace rollback are a single atomic transaction; **and** - (c) the verifier's ga...",
    "decision_boundary": "The operational decision is where to place the rollback boundary relative to the kill boundary. Three placements, in increasing safety and cost: - **Scheduler-only kill (unsafe):** pruner stops the worker; no state action. Cheap, fast, corrupts shared state. Never acceptable when shared mutable state exists. - **Namespace rollback on kill (correct but racy):...",
    "operational_effect": "With the invariant enforced at commit, the pruner's failure to roll back becomes harmless: B3's 14 stale entries are tagged `B3`, B3 is not in the committed set, the filter drops them, and B1's commit sees only B1's mappings. The cost of speculation is preserved (you still save by killing expensive branches early) while the correctness no longer depends on e..."
  },
  "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": "fa243dc636187e42252bfcb4f958013a826a78a4897d6313ac7b6d7b8fa85fdd",
    "verified_classes": [
      "CommitProvenanceError",
      "WriteEvent"
    ],
    "verified_functions": [
      "commit_state",
      "commit_or_halt",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CommitProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
