{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-tree-search-agents-from-committing-to-a-converged-branch-whose-verification-was-paid-for-by-a-sibling",
  "title": "Which invariants prevent speculative tree-search agents from committing to a converged branch whose verification was paid for by a sibling",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that expand a search tree of candidate plans/answers under a hard cost budget (tokens, tool calls, wall-clock), prune speculatively, and declare convergence when a verification predicate passes on some frontier node. Does not apply to single-path agents, beam search without verification, or best-of-N sampling where all candidates are scored by the same fixed evaluator before selection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-tree-search-agents-from-committing-to-a-converged-branch-whose-verification-was-paid-for-by-a-sibling.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-tree-search-agents-from-committing-to-a-converged-branch-whose-verification-was-paid-for-by-a-sibling.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-tree-search-agents-from-committing-to-a-converged-branch-whose-verification-was-paid-for-by-a-sibling.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1829,
    "python_slice_tokens": 245,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent picked a bad branch.\" It is that the *verification credit* used to certify convergence was budgeted against, and consumed by, a different subtree than the one that was ultimately committed. In cost-bounded speculative search, the budget accountant and the correctness certifier are two different subsystems that share one ledger. ...",
    "what_was_observed": "A planner agent expands a tree with branching factor 3, depth 6, budget 40k tokens. Verification is a cheap LLM-judge call (~600 tokens) that checks a candidate plan against a tool-output trace. To save budget, the runtime memoizes verifier results by `hash(normalized_goal + sorted(tool_call_names))`. Trace: 1. Epoch 1. Node `A` (branch 1) reaches depth 4. Verifier fires, returns `PASS`, cached under key `K`. Certifi...",
    "condition_of_validity": "The attribution invariant holds only under all of the following; if any is absent, convergence claims are advisory, not certifying: - **Epoch-scoped cache keys.** The memoization key must include `budget_epoch` and `verifier_version`. A cache entry from epoch 1 is invalid in epoch 2 even if the goal string matches, because pruning in epoch 2 changes which ev...",
    "decision_boundary": "The boundary is between **prune-then-verify** and **verify-then-prune** ordering under a shared budget: - If verification cost is charged to the global pool and certificates are cached by goal (the common \"save tokens\" optimization), then pruning a paying path *transfers* its certificate to siblings. This is unsound. The boundary condition is: *a certificate...",
    "operational_effect": "The practical consequence is that cost-bounded speculative search must treat the budget ledger and the certificate ledger as *coupled but non-fungible*. Budget is fungible across the tree; certificates are not. Any optimization that makes certificates fungible (memoization by goal, shared result queues, cross-epoch caching) buys token savings at the price of..."
  },
  "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": "72ff519b2bd192b656d3e31afc9b7a5be7507a448d5204600f7f5be6767b02e6",
    "verified_classes": [
      "CertificateAttributionError",
      "Certificate",
      "SearchNode"
    ],
    "verified_functions": [
      "commit_convergence"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "CertificateAttributionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
