Design decisions

180. Checked builds never make extra calls to user code (2026-11-21)

  • Decision. R09.2.3: a checked build calls user functions, closures and input exactly as release does. Checks only inspect values already computed. The search check (first_true, bsearch) now verifies that the probes it made agree with one boundary instead of probing both sides of the answer.
  • Why. H-BSEARCH-DEBUG-PROBES: extra probes change an interactive dialogue and break "valid programs behave identically in both modes" (decision 148).
  • Reverse. Allow extra probes for predicates the checker proves pure, and restore the both-sides probe for those.