Design decisions

The 400 design calls behind CP Lang, generated from decisions.md: what was decided, why, what was rejected and how to reverse it. Docs and Language chapters cite them by number. The rules themselves are in the spec; where a decision and the spec disagree, the spec wins.

  1. 1Data modeling
  2. 2Index spaces
  3. 3Abstraction mechanisms
  4. 4Control and iteration
  5. 5State and effects
  6. 6Program structure
  7. 7Cross-cutting
  8. 8Approved on 2026-11-19
  9. 9Approved on 2026-11-20
  10. 10Calls made while writing the standard library (2026-11-20)
  11. 11Leaning since 2026-11-20: the ergonomics audit
  12. 12Calls made while hillclimbing hard DP, graph and tree problems (2026-11-20)
  13. 13Leaning since 2026-11-20: scout batch 1
  14. 14Calls made bringing the Rust front end up to the libraries (2026-11-20)
  15. 15Calls made fixing the prototype bugs of scout batches 5 to 12 (2026-11-20)
  16. 16CP Lang v2 Spec Lock (2026-11-20 — Language Architect Wave 2)
  17. 17Stdlib and local-lib aligned with the v2 lock
  18. 18CP Lang v2.1 Unification & Concept-Budget Guard (2026-11-20 — Language Architect Wave 3)
  19. 19Locked CP Lang v2.2 Architecture (Wave 4 — Ultra-Lean 34-Keyword Spec, 2026-11-20)
  20. 20Program structure: the @!multitest divider and top-level return (0.2.2, approved 2026-11-20)
  21. 21Batch 7 calls: graph vertices, getters, randomness, the prelude budget and always-on traps (0.2.2, 2026-11-20)
  22. 22Core syntax to 0.3 (2026-11-21)
  23. 23Validation scoreboard and friction summary (scripts/scoreboard.py, 2026-11-21)
  24. 24Documentation gate in scripts/check.sh --fast (2026-11-21)
  25. 25Stress testing and shrinking (0.2.2, 2026-11-21)
  26. 26The stdlib surface (plan/STDLIB.md, 2026-11-21)
  27. 27Interpreter, debugger and traces
  28. 27.4Time-travel DAP debugger (cpl dap) backed by interpreter snapshots
  29. 28Core mechanisms for a library-only stdlib (0.3, §1)
  30. 29Editor and LSP (2026-11-21)
  31. 30Front-end recovery (2026-11-21)
  32. 31Generated C++: stack, layout and niches (0.3)
  33. 32Profiling and coverage (§8 tooling, 2026-11-21)
  34. 33Fresh domains and existential returns (2026-11-21)
  35. 34Judge profiles (§9, 0.2.2, 2026-11-21)
  36. 35Taste lints (§8 tooling, 2026-11-21)
  37. 36Symmetric storage, derived domains, and domain iteration helpers (0.3, 2026-11-21)
  38. 37Taste review gate (2026-11-21)
  39. 38Geometry standard library (spec/lib/geometry.md, 2026-11-21)
  40. 39Strings stdlib (std.strings, 2026-11-21)
  41. 40Number theory, combinatorics, NTT, and linear algebra (spec/lib/math.md, 2026-11-21)
  42. 41std.seq complete surface (spec/lib/rationale/seq.md, 2026-11-21)
  43. 42Range structures stdlib (spec/lib/rationale/ranges.md, §4.10, 2026-11-21)
  44. 43Flows and matching (std.flow, 2026-11-21)
  45. 44Containers area design (§4.8–4.9, 2026-11-21)
  46. 45Trees (std.tree, spec/lib/rationale/trees.md, 2026-11-21)
  47. 46Graphs stdlib design (spec/lib/rationale/graphs.md, 2026-11-21)
  48. 47DP and search in the stdlib (spec/lib/rationale/dp.md, 2026-11-21)
  49. 48Dream-port core syntax batch (2026-11-21)
  50. 49Int stops one above -2^63 (codegen and performance, 2026-11-21)
  51. 50MonoDeque single constructor and Bitset.subset_sums (2026-11-21)
  52. 51Seq and Indexed trait unification (2026-11-21)
  53. 52Static closure & operation-value lowering (2026-11-21)
  54. 53Folds and sorts of a sequence are methods (2026-11-21)
  55. 54The offline bundle cap moves to 2,800,000 bytes (2026-11-21)
  56. 55Comb<M> keyed on Mod<P> type (2026-11-21)
  57. 56monge_path returns two lists (2026-11-21)
  58. 57Fenwick.first_ge replaces Fenwick.lower_bound (2026-11-21)
  59. 58One owner for syntax; destructured domains are type names (2026-11-21)
  60. 59Heterogeneous operator traits (Add/Sub/Mul/Div/Rem with Rhs and Out) (2026-11-21)
  61. 60Sequence by: options replace _by twins; .items is the one enumerate (2026-11-21)
  62. 61O(1) slice and reverse views (2026-11-21)
  63. 62Containers Batch 2 and wave-12A perf lowerings (2026-11-21)
  64. 63One name per tree traversal: t.Pre (2026-11-21)
  65. 64site/test_site.py joins the fast gate (2026-11-21)
  66. 65aliens is generic over the slope type (2026-11-21)
  67. 66Dream domain constructs: subsets, enum arrays, sequence ops, and Item/Cut ranges (0.3, 2026-11-21)
  68. 67IntervalMap.assign zero-alloc on_old: callback (2026-11-21)
  69. 68LazyTreap in std.lazy and flat SparseTable storage (2026-11-21)
  70. 69std.poly: formal power series over NTT on plain List<Mod<P>> (2026-11-21)
  71. 70Comprehension filters are if; power is ** (2026-11-21)
  72. 71TimeTree.run and offline_over zero-step-allocation callbacks (2026-11-21)
  73. 72The compiler bundles stdlib/ without its @test fns (2026-11-21)
  74. 73Flip<T> / flip_action in std.lazy, combinator devirtualization, and LazyTreap fast path (2026-11-21)
  75. 74monge_path is online LARSCH; aliens stops at count k (2026-11-21)
  76. 75L0415 (loop_invariant_mod_div) lint with cpl fix (2026-11-21)
  77. 76range: on std.seq.{reverse, rotate_left, rotate_right} (debt) and scan_in_place (2026-11-21)
  78. 77The fast gate's 180 s budget warns instead of failing (2026-11-21)
  79. 78Paths keeps one witness array, back (2026-11-21)
  80. 79JumpTree: trees grown leaf by leaf (2026-11-21)
  81. 80One prefix(a) spelling with L0513 (prefix_twin) (2026-11-21)
  82. 81std.slope.{Concave, Convex}: the slope trick as a library type (2026-11-21)
  83. 82A global stored once with a literal is static constexpr (2026-11-21)
  84. 83Canonical-spelling docs gate and reasoning-enabled writable-from-docs harness (2026-11-21)
  85. 84Negative sqrt traps in cpl run and cpl build --checked (2026-11-21)
  86. 85Open-addressing cpl::HashMap and cpl::HashSet in codegen (2026-11-21)
  87. 86Rooted builds breadth-first with flat child ranges (2026-11-21)
  88. 87sort(cmp:) / sorted(cmp:) with checked strict-weak-order traps (2026-11-21)
  89. 88Product domains domain State = (V, K) (2026-11-21)
  90. 89LazyLinkCut<V, T, F> is a second type beside LinkCut (2026-11-21)
  91. 90Partial-injection a.inverse() on [D]?E -> [E]?D (2026-11-21)
  92. 91Array parameters stored into a returned struct are taken by value and moved (2026-11-21)
  93. 92Unify factor_big into factor in std.math (2026-11-21)
  94. 93One-spelling syntax rulings & position/range/enum ergonomics (2026-11-21)
  95. 94xs.distinct() and consistent empty-sequence rule for fold(f) / min() / max() (2026-11-21)
  96. 95xs.reach(while:, cyclic:) names the two-pointer sweep (2026-11-21)
  97. 96A memo the declarations prove small is a flat table alone (2026-11-21)
  98. 97Auto-loaded Bitset for domain subset ops, struct array scalar-fill defaults, range-alias dims, [0..n]?T = read(none:), and ?T.map/.filter (2026-11-21)
  99. 98Reject ++, numeric-only unary +, fmt AST equivalence, and indented lambda block bodies (2026-11-21)
  100. 99The offline bundle ships Try it programs as text, not base64 (2026-11-21)
  101. 100Validate stores into range-typed places via ExprKind::RangeCheck (2026-11-21)
  102. 101A range's ends are start and end; end is exclusive (2026-11-21)
  103. 102PermTree is a binary permutation tree over a fresh node domain (2026-11-21)
  104. 103SortedSet.range(r) and SortedBag.range(r) replace the 5 bound-query methods (2026-11-21)
  105. 104.map on fixed arrays [D]T / [D, E]T preserves index domains (2026-11-21)
  106. 105Single-iterator IntervalMap.assign lowering and unchecked SortedBag hot loops (2026-11-21)
  107. 106Narrow 1D range-typed array and list elements to 32-bit storage (2026-11-21)
  108. 107Collapse std.prefix to one prefix(a) / Prefix and one Diff family (2026-11-21)
  109. 108Rooted.virtual returns a virtual tree over a fresh domain (2026-11-21)
  110. 109A product-domain loop is nested integer loops (2026-11-21)
  111. 110CSR Adj<V, A> for pair/triple graphs and zero-copy array-to-list lowering (2026-11-21)
  112. 111if let binds in headers; x is pat is a Bool expression (2026-11-21)
  113. 112Push-relabel is a second named max-flow method, FlowGraph.push_relabel (2026-11-21)
  114. 114Append-only Prefix.filling(order: FillOrder) across 1D, 2D, and List (2026-11-21)
  115. 119Tree is in the prelude (2026-11-21)
  116. 120std.flow.Arc ids are 0..2^31 (2026-11-21)
  117. 121In-place std.mo.mo driver with separate add/remove closures (2026-11-21)
  118. 116Type arguments on a receiver fill a list-form fn's generics; they never pick another fn (2026-11-21)
  119. 113Add IntervalMap to stdlib/prelude.cp (2026-11-21)
  120. 117Add SortedSet to stdlib/prelude.cp (80/80 cap) and ordered-container API parity (2026-11-21)
  121. 115Extend element narrowing to 2D grids, nested sequences, and all-ranged tuple elements (2026-11-21)
  122. 118Compressed and Reversible leave the prelude for Tree, IntervalMap, SortedSet and divmod (2026-11-21)
  123. 122std.lazy.LazyTreap sizes and priorities are 0..2^31 (2026-11-21)
  124. 123Mutable slice views (cpl::MutView<T>) via existing range-lending rules (2026-11-21)
  125. 124A half-open range of cuts is also the piece it bounds (2026-11-21)
  126. 125Loops take an else that runs when no break left them (2026-11-21)
  127. 126Library loops are generators; early exit stays in for (2026-11-21)
  128. 127Recursive lambdas; no method overloading (2026-11-21)
  129. 128Moves, overlapping mut places, and map defaults (2026-11-21)
  130. 129Compound assignment is a statement; min= / max= report improvement (2026-11-21)
  131. 130Chained comparisons point one way (2026-11-21)
  132. 131Inference unifies siblings within one expression, never across statements (2026-11-21)
  133. 132No custom destructuring; views are methods returning enums (2026-11-21)
  134. 133Number unused
  135. 134Field defaults and constrained string types (2026-11-21)
  136. 135Syntax batch from the dream corpus (2026-11-21)
  137. 136Gold-tier syntax: var fields, graders, local types (2026-11-21)
  138. 137Indices: position and cut words, empty domains (2026-11-21)
  139. 138Sequences, search/DP and graph/tree API rounds (proposed, 2026-11-21)
  140. 139Grader domains sized by the judge (2026-11-21)
  141. 140Parentheses mean work (2026-11-21)
  142. 141Lent values: five rules, lends only on fn signatures (2026-11-21)
  143. 142Six sequence capabilities (2026-11-21)
  144. 143Identity everywhere; keys in, keys out (2026-11-21)
  145. 144One ownership model, written out with exercises (2026-11-21)
  146. 145@cache fields (2026-11-21)
  147. 146Graph traits: Next with arc capabilities (2026-11-21)
  148. 147Constructor ownership; trees on one Rooted; DFS (2026-11-21)
  149. 148Release builds run no checks by default (2026-11-21)
  150. 149Numbers: storage widths, niches and layout (2026-11-21)
  151. 150The prelude is the lib chapters' vocabulary, by rule (2026-11-21)
  152. 151Orders flip with desc, never by negating (2026-11-21)
  153. 152Two pointers wrap on a.ring, and undoing queues any rollback structure (2026-11-21)
  154. 153Dreams are written blind; the first blind batch adds graph-shaped and one-shot vocabulary (2026-11-21)
  155. 154a.adjacent for neighbours, a.pairs() for every pair (2026-11-21)
  156. 155Two-pointer results can be keyed by the left end (2026-11-21)
  157. 156Product domains walk row-major; P.nth(k) decodes a flat cell number (2026-11-21)
  158. 157Enum variants are PascalCase, including Some and None (2026-11-21)
  159. 158a.buckets() is the one domain-keyed grouping (2026-11-21)
  160. 159(V, V) is an inline product domain; k-parameter lambdas unpack k-tuples (2026-11-21)
  161. 160d.closure(over:) is the value form of floyd_warshall (2026-11-21)
  162. 161read_all(until:) reads sentinel-ended input; group(by:, of:) projects values (2026-11-21)
  163. 162D.pieces(cuts:) is coordinate compression for intervals (2026-11-21)
  164. 163Rooted.try_from_parents builds a forest from parents that may be invalid (2026-11-21)
  165. 164Pair<V> is the domain of unordered pairs (2026-11-21)
  166. 165read/print signatures are written down, output mirrors input, and wire.ask is one query (2026-11-21)
  167. 166Library contradictions resolved (structures) (2026-11-21)
  168. 167Library contradictions resolved (graphs, strings, math)
  169. 168SortedRange<K> is written down; Counter<K> means Counter<K, Int> (2026-11-21)
  170. 169Named-argument and record-field punning f(x:) (2026-11-21)
  171. 170A runtime ratio counts only when the original runs 100 ms (2026-11-21)
  172. 171A loop reaches a row it never moves once (2026-11-21)
  173. 172A local read for the last time moves into its place (2026-11-21)
  174. 173A recursive local closure is passed itself, not a std::function (2026-11-21)
  175. 174A recursive fn's closure parameter is a template (2026-11-21)
  176. 175Offline bundle splits port galleries into a lazy gallery part (2026-11-21)
  177. 176A fn field nothing reads is dropped (2026-11-21)
  178. 177Dream gaps get one error that names the construct (2026-11-21)
  179. 178A field nothing reads is left out, with its stores (2026-11-21)
  180. 179Lent values follow ch5 R8 everywhere (2026-11-21)
  181. 180Checked builds never make extra calls to user code (2026-11-21)
  182. 181One-line enums use = and |; variants with fields use the block form (2026-11-21)
  183. 182first and last are getters only; predicate searches are find and rfind (2026-11-21)
  184. 183Implicit conversions are one closed, numbered list (2026-11-21)
  185. 184Rebuild contradictions, batch 2 (2026-11-21)
  186. 185Rebuild holes, batch 3: reading, patterns, small grammar (2026-11-21)
  187. 186Rebuild holes, batch 4: one spelling per library job (2026-11-21)
  188. 187Binary search spends only the queries it needs (2026-11-21)
  189. 188One size budget for every judge, and copying is asked for (2026-11-22)
  190. 189The editor reports what cpl check reports, and reads types the checker kept (2026-11-21)
  191. 190Diagnostic codes: one per rule, held to the catalogue by a test (2026-11-21)
  192. 191Traces are a delta log with periodic snapshots (2026-11-22)
  193. 192read<T>() and a choice of fixed text cost O(1) (2026-11-22)
  194. 193Union-find methods document O(log |V|) (2026-11-22)
  195. 194Integer domain positions and plain enums are read and written in O(1) (2026-11-22)
  196. 195Segment tree methods document O(log |D|) (2026-11-22)
  197. 196Making a number into a position or a modular number costs O(1) (2026-11-22)
  198. 197A domain's nth, at and wrap and a position's offset cost O(1) (2026-11-22)
  199. 198abs of a number has its number type (2026-11-22)
  200. 199A tuple read bounds each name it binds (2026-11-22)
  201. 200Toolchain downloads shell out to curl and tar (2026-11-22)
  202. 201Edge releases: one rolling, one immutable per day (2026-11-22)
  203. 202Printing an array over domains costs its size (2026-11-22)
  204. 203Printing a bounded list costs its length (2026-11-22)
  205. 204A code lens shows the memory a file's arrays take (2026-11-22)
  206. 205The memory lens counts lists of proven size (2026-11-22)
  207. 206A fn's estimated cost includes what the fns it calls cost (2026-11-22)
  208. 207splitmix64 and Compressed's lookups state their cost (2026-11-22)
  209. 208A capitalized let bounds what reads it, as a const does (2026-11-22)
  210. 209The editor checks against edition 0.3 unless told otherwise (2026-11-22)
  211. 210checks and lint contexts are compiler-provided (debt) (2026-11-22)
  212. 211Graph reachability rows are reach_sets, not a second closure (2026-11-22)
  213. 2120.3 is the default edition (2026-11-22)
  214. 213Indexed.at(k) takes a key; positional walks use nth (2026-11-22)
  215. 214Architecture counts are shrink-only ratchets in the gate (2026-11-22)
  216. 215cpl fmt line breaking, and what the formatter does not do (2026-11-22)
  217. 216The recovery scoreboards skip ports that are not clean before the edit (2026-11-22)
  218. 217Shared append-only logs merge with git's union driver (2026-11-22)
  219. 218The commit hook runs the commit tier; land.sh and CI run the fast gate (2026-11-22)
  220. 219A trap's note names its locals from a second, recorded run (2026-11-22)
  221. 220{} is not a Subset literal (2026-11-22)
  222. 221Prefix(a) on a grid is the 2-D prefix (2026-11-22)
  223. 222Walking a Map yields (k, v) pairs in key order (2026-11-22)
  224. 223A traced VM write to an Int global is logged from the registers (2026-11-22)
  225. 224The spec-block recovery probe skips API synopses (2026-11-22)
  226. 225Wall-clock assertions never block a landing or turn main red (2026-11-22)
  227. 226CI on main keeps one running and one waiting run (2026-11-22)
  228. 227Rebuild round 3's contradictions settle on what already runs (2026-11-22)
  229. 228CI runs --fast as five parallel jobs (2026-11-22)
  230. 229cpl check --json prints one object of files and diagnostics (2026-11-22)
  231. 230A record pattern may omit a field's pattern to bind its name (2026-11-22)
  232. 231Map is the default lookup table; HashMap is spelled to require hashing (2026-11-22)
  233. 232A runtime modulus is spelled type Z = Mod(p) (2026-11-22)
  234. 233The printing trait is Show (2026-11-22)
  235. 230--json and --format json are one flag (2026-11-22)
  236. 234Landing is rebase and push; CI and the sheriff keep main green (2026-11-22)
  237. 235Lint's overflow prover stays out of the playground (2026-11-22)
  238. 236cpl fmt sorts use runs, std first (2026-11-22)
  239. 237A command's own errors start with cpl: (2026-11-22)
  240. 238dfs_tree returns a forest over all of V (2026-11-22)
  241. 239cpl lint reports the checker's lints (2026-11-22)
  242. 240Chapter 13's release column follows chapter 9 (2026-11-22)
  243. 241An inline mod in a program sees the prelude (2026-11-22)
  244. 242A loop whose indexes some rounds skip gets a checked and an unchecked copy (2026-11-22)
  245. 243with lint(...) is the one way to silence a lint (2026-11-22)
  246. 244The spec's command list follows tools-1's option C (2026-11-22)
  247. 245cpl's exit codes are the binary's: 1 errors, 2 usage, 3 the program failed (2026-11-22)
  248. 246Implicit widening is for scalars, never arrays (2026-11-22)
  249. 247Rule coverage reads a list of permissive rules (2026-11-22)
  250. 248An undirected graph's edges() gives the end first in V as u (2026-11-22)
  251. 249The cpl binary allocates with mimalloc (2026-11-22)
  252. 250cpl fetch reads Codeforces and AtCoder pages, or a saved one (2026-11-22)
  253. 251cpl migrate applies the fixes of migration diagnostics (2026-11-22)
  254. 252An unknown judge named in a file or cp.toml exits 1, on the command line 2 (2026-11-22)
  255. 253cpl bench --zero-cost compares the fastest run, not the median (2026-11-22)
  256. 254bench/v03_perf_bench.py times each side by its fastest CPU time (2026-11-22)
  257. 255A range passed where a struct's type argument is a domain is an anonymous domain (2026-11-22)
  258. 256Hash is a std trait in std.derive, not a compiler trait name (2026-11-22)
  259. 257counts stays a compiler builtin until a generator passed to a Seq parameter streams (2026-11-22)
  260. 258span is only std.seq.span(lo: Cut<D>, hi: Cut<D>); the compiler's hull form goes (2026-11-22)
  261. 259span is a compiler builtin again: ports use its hull form (2026-11-22)
  262. 260Counter reaches programs through the prelude's use, not a compiler type name (2026-11-22)
  263. 261The landing leads each tab group with programs that run (2026-11-22)
  264. 262Guide code blocks that run are live runners (2026-11-22)
  265. 263Learn for v0.3 is short chapters and judged problems up to Div 2 C (2026-11-22)
  266. 264Tier-1 editors are VS Code and Neovim (tools-2) (2026-11-22)
  267. 265cpl explain and hover show four sections in v0.3 (tools-3) (2026-11-22)
  268. 266The builtin floor: storage, I/O, bits and numeric primitives (2026-11-22)
  269. 267The steward may land pure-move refactors in other lanes' crates (2026-11-22)
  270. 268Debt ratchets hard-fail on any increase (2026-11-22)
  271. 269The v0.3 runtime bar is the perf set at p50 < 1.1x, p95 < 1.2x, max < 1.5x, tuned max < 1.1x (perf-1) (2026-11-22)
  272. 270Floored % on an Int is semantics, not abstraction cost (perf-2) (2026-11-22)
  273. 271Fitting 32 KB minifies the C++ before it drops the source header (perf-3) (2026-11-22)
  274. 272The trace's overhead bar is +20% over the untraced interpreter (2026-11-22)
  275. 273Tracing stays a flag on the commands that run; no cpl trace, cpl snap, cpl debug (2026-11-22)
  276. 274The trace viewer stays one self-contained file, tools/trace/index.html (2026-11-22)
  277. 275Lint severity: correctness denies in cpl lint, never in cpl build (2026-11-22)
  278. 276cpl fmt formats the corpus ports and spec/std in one mechanical commit (2026-11-22)
  279. 277The v0.3 linter and formatter design is approved (2026-11-22)
  280. 278The 305 tracked ports move to v0.3 mechanically first, then are re-ported idiomatically (2026-11-22)
  281. 279An unseen dry-run set gates the skill; the known 20 stay a regression check (2026-11-22)
  282. 280Generated files are regenerated by CI, not by land.sh (2026-11-22)
  283. 281The prelude is the lib/ chapter tables; the 80-name warning goes (2026-11-22)
  284. 282An error that labels the broken line counts as on the right line (2026-11-22)
  285. 283Fix-its only where the repair is right; no placeholders (2026-11-22)
  286. 284Recovery bars: cascades <= 2%, common-mistake fix-its >= 95% (2026-11-22)
  287. 285The site's trace viewer links back to the site (2026-11-22)
  288. 286The gate has a commit tier and CI; land.sh runs no gate (2026-11-22)
  289. 287Red CI on main does not block landing (2026-11-22)
  290. 288Unlanded devin/* branches: delete when landed, archive after 48 h (2026-11-22)
  291. 289A range's keys are its own elements; r.nth(k) reads by position (2026-11-22)
  292. 290Descending order is a key, desc(x); sort/sorted lose desc: Bool (2026-11-22)
  293. 291Int(s) of a Subset<B> is its mask, of a Pair<V> its rank; both print as it (2026-11-22)
  294. 292V.count (the number of positions) stays beside V.count(f) (2026-11-22)
  295. 293Corpus tests stay committed until every reader shares one answer cache (2026-11-22)
  296. 294One list of generated files, checked in the commit tier (2026-11-22)
  297. 295A range-backed domain named as a value is its whole Range<V> (2026-11-22)
  298. 296The formatter's line-1 stamp waits for the 0.3.0 version (2026-11-22)
  299. 297cp.toml [fmt] sets the indent and line widths, and nothing else (2026-11-22)
  300. 298isqrt is std.math.isqrt, an ordinary body, not a compiler builtin (2026-11-22)
  301. 299The judge build keeps no traps unless --checks asks (2026-11-22)
  302. 300L0523 matches the call spellings of min= and max= (2026-11-22)
  303. 301L0524 bool_ternary_print warns without a fix (2026-11-22)
  304. 302A whole contest from Competitive Companion gets its own folder (2026-11-22)
  305. 303The repository layout is plan/LAYOUT.md, gated; generated files are gen.toml (2026-11-22)
  306. 304L0525 peek_then_pop matches List.last and List.pop by name (2026-11-22)
  307. 305Comprehension and table lowering is its own module (2026-11-22)
  308. 306L0526 ceil_div_formula fixes only a provably positive divisor (2026-11-22)
  309. 307The stdlib is std/ and the prover is crates/cpl-prover (2026-11-22)
  310. 308L0527 neg_mod_fixup drops C++'s + m remainder guard (2026-11-22)
  311. 309plan/STATUS.md is generated; spec's status, delta and the release plan move (2026-11-22)
  312. 310decisions.md merges with merge=union (2026-11-22)
  313. 311Tool contracts get rule ids R<tool>.<n> (2026-11-22)
  314. 318L0528 reverse_index covers only the whole-list reversed copy (2026-11-22)
  315. 312research/ has an index and topic folders; bench results live in research/perf/ (2026-11-22)
  316. 314The Milestone 1 subset is spec/SUBSET.md, held by conformance-subset.py (2026-11-22)
  317. 313The playground lints through its own lint call, not check (2026-11-22)
  318. 315A path length is an Int, whatever the weight's range (2026-11-22)
  319. 316RangeFenwick and DualFenwick go; SegTree(act:) covers both (2026-11-22)
  320. 314cpl setup neovim (and vim) installs the editor files built into cpl (2026-11-22)
  321. 319L0414 unproven_list_index is pedantic, allowed by default (2026-11-22)
  322. 317Every crate has a README: job, invariants, tests (2026-11-22)
  323. 317Unix-only test setup is #[cfg(unix)], so the tests compile on Windows (2026-11-22)
  324. 318Keep mimalloc and its four dependencies (2026-11-22)
  325. 320L0504 matches the calls max and min by name (2026-11-22)
  326. 318cpl-check check/stmt.rs grows 3 lines for the L0609 help (2026-11-22)
  327. 319cpl-ir lower/call.rs grows 58 lines for the Int(sqrt(n)) fix (2026-11-22)
  328. 320L0529 matches sqrt by name; lint_std_names 138 -> 140 (2026-11-22)
  329. 321L0524 matches a print call by name (2026-11-22)
  330. 321Checker lints get page records in spec/checker-lints/ (2026-11-22)
  331. 322Interval DP is [V.ranges]T with r.splits; a key's first is V (2026-11-22)
  332. 323A free count/all/any of one generator tests each value (2026-11-22)
  333. 324Named arguments to a variadic parameter make a named tuple (2026-11-22)
  334. 322Seven newcomer spelling lints, L0540-L0546 (2026-11-22)
  335. 325Interval DP: V.ranges cells are Range<V>; ir_builtin_names 85 -> 88 (2026-11-22)
  336. 325Cell neighbours are getters; directions are constants (2026-11-22)
  337. 324Constant top-level domains hoist; lower/mod.rs cap 5959 -> 5961 (2026-11-22)
  338. 326Std doc examples run in the page; costs render as math (site, 2026-11-22)
  339. 326Lints for newcomer loops std names: argmax, mex, copy, queue, range, map count (2026-11-22)
  340. 326A trait bound's key and element parameters come from the bound sequence (2026-11-22)
  341. 327Decision numbers may not collide: the debt ratchet gates them (tech-debt, 2026-11-22)
  342. 331Grid neighbours are getters and Dir4 directions are constants (2026-11-22)
  343. 328Lints for hand-written number theory, trees, geometry and counting (2026-11-22)
  344. 329count_until (L0562): a value stepped while a counter counts is a find (2026-11-22)
  345. 330read_loop (L0564): a list read one item per step is one typed read; lint_std_names 151 -> 152 (2026-11-22)
  346. 332Named variadic args, field-wise fields and T(...) grow three capped compiler files (stdlib, 2026-11-22)
  347. 333cpl fmt breaks a long operator chain after its loosest operators (2026-11-22)
  348. 326A fold costs what the receiver's type says (2026-11-22)
  349. 334Three hand-written graph and window algorithms teach their std names: L0565-L0567; lint_std_names 152 -> 159 (2026-11-22)
  350. 335cpl fmt rewrites only the paths it is given; no path formats stdin (2026-11-22)
  351. 335Math is LaTeX inside \( ... \) (2026-11-22)
  352. 336Lint codes come from scripts/new-lint.py, not by hand (2026-11-22)
  353. 335check/expr.rs takes +4 lines for the _by twin fix (2026-11-23)
  354. 337The browser compiler bundles std without its comments (2026-11-22)
  355. 338cpl test and cpl stress match yes/no answers in any case (tools, 2026-11-23)
  356. 337Small-to-large, Fenwick inversions and by-length interval DPs teach absorb, inversions and [I.ranges]: L0568-L0570; lint_std_names 159 -> 164 (2026-11-22)
  357. 336xs.items walks a Range<Int>, so std's keyed fns take ranges; lower/call.rs +25 (2026-11-23)
  358. 339h.push(-x) into a min-heap teaches MaxHeap: L0571 negated_heap; lint_std_names 164 -> 165 (2026-11-23)
  359. 340xs.sorted()[0] teaches xs.min(): L0572 sort_for_extreme; lint_std_names 165 -> 171 (2026-11-23)
  360. 341pow_mod(a, P - 2, P) with a constant P teaches Mod<P>.inv(): L0573 fermat_inverse; lint_std_names 171 -> 172 (2026-11-23)
  361. 342h.push(x) then let y = h.pop()! teaches h.push_pop(x): L0575 push_pop_pair; lint_std_names 172 -> 174 (2026-11-23)
  362. 343let x = s.first! then s.remove(x) teaches s.pop_first()!: L0576 pop_min_loop; lint_std_names 174 -> 179 (2026-11-23)
  363. 343Lints for 1-based query shifts and parallel coordinate arrays (2026-11-23)
  364. 344cnt[x] = (cnt.get(x) ?? 0) + d on a Map/HashMap of Int teaches Counter<K>: L0579 counter_by_map; lint_std_names 179 -> 180 (2026-11-23)
  365. 345Range and on-type formatting splice whole statements from one layout (2026-11-23)
  366. 345binom_by_hand also reads a factorial table times two inverse-table entries; lint_std_names 180 -> 181 (2026-11-23)
  367. 346The newcomer score credits a missing <pattern> mark only once a lint names it (2026-11-23)
  368. 346A scientific literal with an exact integer value is an Int, whatever its mantissa (2026-11-23)
  369. 347/ and % are Euclidean, which is floor division for a positive divisor (2026-11-23)
  370. 348List(s) converts one sequence; values make a list as a literal (2026-11-23)
  371. 349On Int keys, pre[k] is the cut: the fold of the first k (2026-11-23)
  372. 346some(x) and none are errors with a fix: E0503, applied by cpl migrate (2026-11-23)
  373. 350A Str counts with count(p); count(c: Char) leaves the spec (2026-11-23)
  374. 351Editors show a library type's API, not its internals (2026-11-23)
  375. 352Run and test stay client commands, not workspace/executeCommand (2026-11-23)
  376. 350lower/call.rs and lower/mono.rs grow for defaulted operator arguments (stdlib, 2026-11-23)
  377. 353A bare operator in a tuple or record is a value of its own empty type (stdlib, 2026-11-23)
  378. 354lower/expr.rs takes +3 lines so the value () has the type () (stdlib, 2026-11-23)
  379. 354A reversed view is not indexable (spec, 2026-11-23)
  380. 355x[k] = v on a struct with set calls set (W8 IndexSet) (stdlib, 2026-11-23)
  381. 356A token set from the statement is an enum, not a string-literal union (2026-11-23)
  382. 356A range view on a value with no home holds that value (stdlib, 2026-11-23)
  383. 357A generic fn named as a value is the closure that calls it (stdlib, 2026-11-23)
  384. 357Reverse 356: literal unions stay; an enum is for tokens with a payload (2026-11-23)
  385. 358Fields and methods are private to their module unless pub (2026-11-23)
  386. 359Graph algorithms read arc lengths through arc_len; if A: Trait holds by shape (stdlib, 2026-11-23)
  387. 360Rebuild-11 rulings: if let else, ring receiver, wrap of negatives (2026-11-23)
  388. 361One trait-satisfaction relation: records by shape, structs by impl (2026-11-23)
  389. 367JetBrains: built-in LSP client where it exists, LSP4IJ in Community (tools, 2026-11-23)
  390. 362A top-level var is a local of the file body (2026-11-23)
  391. 363Rebuild-12 rulings: short-circuit, Bool xor, array fill, lowercase const (2026-11-23)
  392. 365Std marks a member pub when it is documented or named outside its module (stdlib, 2026-11-23)
  393. 364cpl-diag depends on cpl-json (infra, 2026-11-23)
  394. 364cpl-diag depends on cpl-json for the one diagnostic JSON shape (tools, 2026-11-23)
  395. 366Rebuild-13 rulings: annotation widens a fresh read, no desc: flag (2026-11-23)
  396. 368Rebuild-15 rulings: Char-domain positions, stepped ranges, Char traps (2026-11-23)
  397. 369Rebuild-16 rulings: lowercase const, grid reads, temporaries in for (2026-11-23)
  398. 370Rebuild-17 rulings: bit builtins, prelude math, Char order (2026-11-23)
  399. 371Rebuild-18 rulings: per-test domains sized from domains (2026-11-23)
  400. 372maximal/minimal return positions, not lent slices (2026-11-23)