Design decisions

224. The spec-block recovery probe skips API synopses (2026-11-22)

  • Decision. plan_blocks in crates/cpl-cli/tests/recovery.rs skips a block that has a body-less fn/struct/const signature (fn z_function<S: Indexed>(s: S) -> List<Int> // O(n)) and no line that runs (let, var, for, while, if, print(, return): 70 of 154 blocks are such synopses.
  • Why. A synopsis is not a program and cannot compile, so its "expected : ... found the end of the line" said nothing about recovery; synopses were 60 of the 75 generic first errors the M2 metric counted.
  • Reverse. Drop !synopsis(&body) from plan_blocks and put the plan.blocks > 70 guard back to 100.