Issue #2275: Every remaining numbered ADR has a topic, confirmed by the owner, and one consolidation issue per topic

Open and answer this issue on GitHub.

decision, adr · opened 2026-11-19 · updated 2026-11-29 · 3 comments

Part of #904 Needs #2274

Goal

After the grammar, database, views and collections records, about 190 numbered records and a few topic records with a count (regex-1, async-5, …) remain. Each needs its topic before it can be consolidated (ADR-decision-records-v2 D2, D4), and the owner confirms the topics (#904).

Governing decision

ADR-decision-records-v2 D1, D2, D4.

Today

ls docs/specification/adr/adr-[0-9]*.md | wc -l gives 196 at commit 443a4f4b; the grammar and database issues take seven of them (177, 296, 299, 323, 339, 366, 388).

To build

  1. The table, in this issue’s body (the issue is the record): every live record, the topic it joins (one to three words, the general one first, as grammar-syntax), grouped by the index sections. A record that covers several topics is split by decision, as ADR-296 was. A topic record with a count keeps its name until it is changed (regex-1, then regex-v2, D4) and is listed only where it shares a topic with a numbered record.
  2. The owner confirms the table; changes go into the body.
  3. One issue per topic, in the form of “The decisions on how a grammar is written live in one record, ADR-grammar-syntax-v1” (#2264), each Needs the one before, so they run in order.

Done when

Every live record that is not a -v record has a confirmed topic in this issue’s table, and each topic has its consolidation issue; this issue is closed by hand when the last one is filed.

Files and limits

No file changes; the result is the table and the issues.

What was ruled out

Consolidating whatever a change happens to touch, without a table: topics would be cut differently each time.

The table (draft, 2026-11-20, waiting for the owner’s confirmation)

Rule: ADR-decision-records-v2 D1 (name ADR-<topic>-v<n>, one to three lowercase words, general word first), D2 (one live record per topic), D4 (a topic’s records are consolidated into its next -v record when one of them is changed). Topics already in use (README, Topics in use, plus the count-named records) are reused where a record belongs there: “joins existing”. A count-named record gets a row only where a numbered record joins its topic. A record spanning several topics is split by decision.

Compiler and toolchain architecture

ADR Title (short) Topic Note
registry-1 Nikaia’s own package registry registry existing topic; 286 D23-D27 join it
355 List patterns [a, .., z] patterns  
352 null as a pattern over T? patterns doubt: or nullable
382 A null test narrows T? to T nullable  
349 E::V(..) matches any payload patterns  
348 main’s values freed at exit; skip-free-at-exit cleanup  
347 Single-variant enum written by type name patterns  
346 Every task error has a receiver async joins existing async
345 Fatal errors; catch takes them only by name catch joins existing catch
344 json reads into the caller’s type; official packages layout std-scope  
343 process::exit(code) ends main with cleanups process  
342 A map chain runs element by element optimization doubt: or collections
341 Eq and Ord are language traits generics  
340 Every Expr node carries a u32 id toolchain-architecture  
383 A numbering pass gives node ids toolchain-architecture cites 340
384 Entry::or_default, Seq::cloned in std collections joins existing collections
385 Length bound 2^63-1; ensures_count prover-walk consolidated (#1790, owner 2026-11-29)
386 drain() on every map and set collections joins existing collections
387 A view of a copying type is copied wherever wanted views joins existing views
389 immutable bindings shared-state  
390 A - at line start begins an expression syntax-line-start  
391 The compiler derives facts and frames and keeps them prover-found-facts consolidated (#1790, owner 2026-11-29)
392 Printing throws io::IoError io  
393 A package becomes a Rust library rust-boundary joins existing rust-boundary; doubt: or packages
394 Where a program is unsafe is listed unsafe  
395 A shown division by zero is refused prover-refusals consolidated (#1790, owner 2026-11-29)
396 An index on outside data is proved or refused prover-refusals consolidated (#1790, owner 2026-11-29)
397 The environment is the operator’s (CGI names untrusted) trust  
398 Untrusted text reaching the log is escaped trust doubt: or raw-sinks
399 The command line is untrusted trust  
400 mem::allocations() / mem::usage() for tests testing  
401 thread::id() runtime  
402 Duration saturating arithmetic, nanos() time  
403 A package’s tests see its private names testing  
raw-sinks-1 Raw sinks proved, guarded or allowed raw-sinks existing topic; 017 joins it
338 std is the core; formats are official packages std-scope  
337 nikaia fmt: one style, no options toolchain-cli  
336 How the compiler is offered (install, crates.io) toolchain-cli doubt: or registry
314 Grammar matches and callee promises are facts of the walk prover-solver doubt: or grammar-actions
359 A callee’s body answers a claim within the package prover-solver  
306 Proved index/overflow checks are not emitted prover-checks, prover-walk, prover-found-facts, prover-refusals split by decision, consolidated (#1790, owner 2026-11-29)
305 Rust 1.88 / Edition 2024 floor toolchain-architecture  
rust-boundary-1 Rust crates described before called rust-boundary existing topic; 123, 393 join it
294 Stage 1 a module at a time, leaves first toolchain-architecture  
270 The prover’s solver (CDCL(T) in Nikaia) prover-solver  
269 D1, D11-D13, D22 test blocks, nikaia test, test programs testing split
269 D2-D10, D14-D21 assert is a contract contracts split
360 main’s parameters are the command line process  
361 Loop invariants via Horn clauses prover-solver  
362 [v; n] list literal collections joins existing collections
363 Toolchain lowered at user_parallelism = yes build-switches doubt: or toolchain-architecture
364 Nullable tuples (A, B)? nullable  
365 Stdin and files untrusted unless marked trust  
367 A fold over grammar input is bounded by its length prover-checks doubt: or grammar-parallel
368 time::now(), Instant, child resource figures time  
369 A type’s invariant contracts  
370 @inline hints optimization  
371 Portable vector lanes, crc32c, backend intrinsics simd  
372 Par::fold, task::cores(), par_pieces parallel  
373 A Bytes carries its owner (allocation, Vec, mapping) bytes  
374 text::Pos, text::Match, cutting text text  
375 bytes::ByteSet search bytes  
376 unsafe { assume(claim) } contracts doubt: or unsafe
377 simd::Lanes[T], simd::Fixed[T, N] simd  
378 Emitted code unsafe only where a switch says unsafe  
379 An unconditional write hoisted before ifs optimization  
380 An unproved assert refuses the program (NK1300) contracts  
381 A pure bool call in a claim is a named property prover-solver  
243 std::process::run process  
258 Four weights for a design question decision-records joins existing decision-records; doubt
001 Stable Rust, generated parser, staged build toolchain-architecture  
002 D1, D3-D6 CLI wraps Cargo; keyed rlib sysroot build-cargo split
002 D2 Compile-time code runs in the compiler’s process comptime split; superseded in substance by 321
003 Language and machinery are two programs, Rust text between toolchain-architecture  
004 One lowering, emitting Rust source toolchain-architecture  
021 The build cache is ours; lockfile as key build-cargo  

Ownership, borrowing, cleanup

ADR Title (short) Topic Note
312 A shared handle is duplicated, never moved shared-state  
302 A call into C inside unsafe; views and opaque handles ffi  
281 SharedMut[T], four doors, Seen[T] shared-state  
297 A cleanup runs where the value dies; deadline, exit 70 cleanup  
282 Text is one type, String text relates to text-reuse
284 A Nikaia library for other languages is one C artifact ffi  
293 Map read is T?; a sequence says what it is collections joins existing collections
283 A view that escapes is tethered; Bytes views joins existing views
358 A tuple pattern as a parameter patterns  
356 Nested tuple patterns in let and for patterns  
291 let names/tuples; match nested patterns patterns  
279 ?? takes one value as its fallback nullable  
246 A self-holding type is boxed by the compiler ownership-moves doubt: or views
247 Output tests in their own directory; --bless testing  
235 par_iter() parallel  
234 A lazy io::lines() carries the read failure io  
233 A pausing lambda goes to std’s pausing counterpart async joins existing async
231 A walk over views of scalars yields values views joins existing views
230 A call through a function field inside a door shared-state doubt: or lambdas
229 A value handed over inside an f"…" hole ownership-moves  
218 Every unsafe topic a small crate; Miri unsafe  
217 D1 T::variants in a shape walk reflection split
217 D2 A kept function value is one shared closure lambdas split; joins existing lambdas
217 D3 A view kept by a result names its buffer views split; joins existing views
217 D4 What fs::read hands back io split
204 Whether a type compares is decided from its parts generics  
203 An enum’s cases are a variants column of the ledger ledger  
005 Ownership without lifetime annotations views joins existing views
094 The caller writes no &; keeps inferred views joins existing views
108 A path-taking std function takes its fs::Root io doubt: or raw-sinks
118 with copies with named fields changed ownership-moves  
119 A target without an OS: no parallelism, no_std build-switches  
121 The ring’s park on an always-armed eventfd runtime  
123 crosses = false from the describer rust-boundary joins existing rust-boundary; doubt: or shared-state
132 else if control-flow  
133 An argument list of options alone writes no ; open not a line start: left out of syntax-line-start (2026-11-29)
135 D1-D2 List literals; [] typed by first use collections split; joins existing collections
135 D3 A [ at line start begins a literal syntax-line-start split
317 A call’s ( is on the line of what it calls syntax-line-start  
140 One spelling for five constructs syntax-spelling  
141 Six spellings corrected syntax-spelling  
149 A channel is bounded async joins existing async
150 Duration, 5.seconds() time  
152 Array[T, N] collections joins existing collections
166 Cargo’s target-info probe gets empty stdin build-cargo  
171 A lowering refusal names its line with a caret diagnostics  
172 A for over a pausing sequence async joins existing async
260 Single-file commands lower, interpret, explain, run toolchain-cli  
263 A file operation on an idle runtime runs on the caller runtime  
188 The escape set is the language below’s syntax-spelling  
186 A parse keeps its input when the result may view it grammar-input joins existing grammar-input
185 D1 A typed let over a lent for binding is refused views split; joins existing views
185 D2 A grammar entry in tail position binds before Ok grammar-lowering split; joins existing grammar-lowering
184 ref X; String; Array[T] of any length views joins existing views
182 A for lends; reads downstream go through the view views joins existing views
179 ref Array[T] is a type; what a build-time run crosses as views joins existing views; doubt: or comptime
178 Compiler-side staging withdrawn comptime  
080 An impl owes its trait; index::set generics  
081 + over text is std::concat text  
083 A field of a borrowed subject is not handed out views joins existing views
096 An undeclared type is refused (NK1135) type-checker  
056 Substituted names put back in backend messages diagnostics  
055 Emitted Rust is async where a function can pause async joins existing async
042 A view keeps the type it views views joins existing views
253 A list has no +; extend collections joins existing collections

Grammar, DSLs, parsing

ADR Title (short) Topic Note
016 The UTF-8 check divided across frames, SIMD grammar-input joins existing grammar-input

Diagnostics

ADR Title (short) Topic Note
300 A diagnostic names the file the user wrote diagnostics  
015 Backend diagnostics are built lazily diagnostics  

Trust and provenance

ADR Title (short) Topic Note
010 D1-D9 Trust is a property of sources; it picks the hasher trust split
010 D10-D13 Ordered/hashed keys; impl Hash; Hash bound generics split
316 A map’s hasher by its keys’ trust, then shape trust  
017 Escaping is the template’s contract raw-sinks joins existing raw-sinks; doubt: or trust

std and the language surface

ADR Title (short) Topic Note
lambdas-1 A lambda run at most once may give away its captures lambdas existing topic; 217 D2, 277 join it
catch-1 A catch block of arms is a match over error catch existing topic; 308, 345, 357 join it
async-5 Every task started by async in a group async existing topic; next record async-v6
319 A file name is fs::Path io  
320 Text is UTF-8, read through a unit view text  
318 An option’s default is a build-time value comptime  
311 A build-time value crosses in its view form comptime  
310 A build reads a file only when three places name it comptime  
309 Only an f"…" has holes syntax-spelling doubt: or text
304 Reflection is data; T::fields reflection  
313 The prelude is a short closed list packages  
307 Comments and /// documentation syntax-spelling  
301 A condition is an ordinary expression control-flow  
298 A word the language uses is reserved syntax-spelling  
292 Written order; overlap and select async joins existing async
285 Integers, overflow, literals, open numbers numbers  
315 checked_* arithmetic and conversions numbers  
277 A lambda is fn(name) { … }; type fn(A) -> R lambdas joins existing lambdas
329 A reflected field answers .ty and .doc reflection  
330 A type passed as a parameter; meta::Type reflection  
331 Attributes are values of ordinary structs reflection  
332 A handler gets only what its signature declares http  
333 comptime value parameters of a type comptime doubt: or generics
334 A tree of routes is a comptime value http  
335 Layers with fixed phases http  
328 Supervision: supervisor::run runtime  
327 A crashed task’s value is never read; own allocator runtime doubt: or shared-state
326 net::serve, admission strategy http  
325 Tools below read no project configuration build-cargo  
324 Linking a C library by name, pkg-config ffi  
322 Scale suffixes K M G, Ki Mi; lower-case e numbers  
321 Build-time code is compiled and run comptime  
287 A comptime binding comptime  
286 D1-D22, D28-D40 A package is a directory and a crate; use; paths packages split
286 D23-D27 Published packages nikaia_<name>, versions via Cargo registry split; joins existing registry (registry-1 replaces them)
286 D41 An expression of unknown type is refused type-checker split
289 D1-D5 http is a package, not std std-scope split
289 D6-D34 The HTTP server is the application’s own http split
295 A generic is checked at both ends generics  
278 T? and ?. nullable  
276 while true, break, continue, jumps are never-typed control-flow  
013 Stage 0 infers only what it states; methods by receiver type-checker doubt: or toolchain-architecture
014 D1 Parts of nikaia-std are .nika toolchain-architecture split
014 D2 fs::map is a memory mapping bytes split
014 D3 The parallel driver runs pieces in parallel parallel split
014 D4 Tests read rlib sets from crate metadata build-cargo split
019 Standard input is a stream io  

The contract ledger and the type checker

ADR Title (short) Topic Note
288 D1-D9, D12, D15-D16, D21, D26-D32 sync means a function never pauses async split; joins existing async
288 D10-D11, D13-D14, D17-D20, D24-D25 Function types, binding, trait method signatures type-checker split
288 D22-D23 touches inferred; a lock is a resource ledger split
020 The ledger records what the compiler knows ledger  
100 A consumer reads a dependency’s ledger ledger  
251 The ledger is the contract; nikaia.derived ledger  
105 Seq[T] and Par[T] in the ledger ledger  
024 The type checker says only what is written type-checker  

Errors

ADR Title (short) Topic Note
failure-return-1 A failing call’s status travels beside the value failure-return existing topic; 280 joins it
error-sets-1 A code parameter’s errors are from(p) error-sets existing topic; 023, 025, 351 join it
357 A complete catch match needs no else catch joins existing catch
351 A function value keeps its error set error-sets joins existing error-sets
308 _error; catch over nothing; newly arriving errors catch joins existing catch
280 A failure in a one-word envelope; traces; joined list failure-return joins existing failure-return; doubt: D9-D19 or error-sets
023 throws carries no type list; error set inferred error-sets joins existing error-sets
025 A loop’s step can fail error-sets joins existing error-sets

The runtime

ADR Title (short) Topic Note
303 D3-D5, D7-D12 The runtime is Nikaia’s own; readiness waits runtime split
303 D1-D2, D6 Own HTTP server, rustls, HTTP/1.1 first http split

Build switches

ADR Title (short) Topic Note
037 target and user_parallelism build-switches  

Topics

Records counted are numbered records (a split record counts once in each topic it lands in); “+ X” names the existing record the topic continues. Order: topics whose records cite each other stand next to each other.

# Topic Records Covers
1 toolchain-architecture 8 Stages, Rust text as interface, one lowering, Rust floor, self-hosting moves, node ids
2 build-cargo 5 The CLI over Cargo, sysroot and rlib cache, lockfile and cache key, the tools below
3 build-switches 3 target, user_parallelism, targets without an OS, the toolchain’s own setting
4 toolchain-cli 3 nikaia verbs, fmt, how the compiler is distributed
5 testing 4 test blocks, test programs, output tests, test probes, private names in tests
6 diagnostics 4 Source maps, lazy backend messages, carets, names put back
7 packages 2 Package = directory and crate, use, path heads, project packages, prelude
8 registry 1 (+ registry-1) Publishing and resolving package versions
9 rust-boundary 2 (+ rust-boundary-1) Describing Rust crates, crosses, a package as a Rust library
10 ffi 3 Calling C, linking C libraries, a Nikaia library for other languages
11 unsafe 3 unsafe crates, unsafe in emitted code, listing unsafe sites
12 std-scope 3 What std holds and what is an official package (json, http)
13 type-checker 5 Only what is written, undeclared types, unknown types, function types and binding
14 ledger 6 The contract file, derivation, consumers, Seq/Par, variants, touches
15 generics 5 Type parameters, traits and impl, Eq/Ord/Hash, comparability
16 contracts 4 assert as contract, type invariants, assume, unproved claims refused
17 prover-solver 5 The solver, loop invariants, named properties, facts across calls and grammars
18 prover-checks 1 (+ prover-checks-v1) Dropping proved checks and what they lower to, bounded folds
18a prover-walk 0 (+ prover-walk-v1) The forward walk: names, paths, lengths, goals, which facts a question gets (#1790)
18b prover-found-facts 0 (+ prover-found-facts-v1) Bounds on what data holds, facts across calls, derived preconditions and frames (#1790)
18c prover-refusals 0 (+ prover-refusals-v1) A check shown to fail, outside data unproved, unproved-checks (#1790)
19 optimization 3 Fusion of map chains, @inline, write hoisting
20 views 12 (+ views-v4) Borrowing without lifetimes, lent/kept, tethers, ref types, view reads
21 ownership-moves 3 Moves and copies: with, f-string holes, self-holding boxes
22 text 4 String, UTF-8 units, positions, concatenation (relates to text-reuse)
23 bytes 3 Bytes ownership, mappings, byte-set search
24 simd 2 Vector lanes and architecture intrinsics
25 shared-state 4 SharedMut, handles, doors and function fields, immutable (beside shared-handle-cycles)
26 cleanup 2 Cleanup, deadline, freeing at exit
27 collections 7 (+ collections-v3) Lists, arrays, maps, sequences, literals, drain, entry API
28 patterns 7 let/match/parameter patterns, list patterns, .., single-variant enums
29 nullable 4 T?, ?., ??, nullable tuples, narrowing by test
30 syntax-line-start 3 What a [, ( or - at the start of a line means (confirmed 2026-11-29)
30a callable 0 (+ callable-v1) What may be called: any expression of a function type (ADR-callable-v1, #1042)
31 syntax-spelling 6 One spelling per construct, reserved words, comments, escapes, f-strings
32 control-flow 3 Loops and jumps, else if, conditions
33 numbers 3 Integer types, overflow, literals, checked_*
34 lambdas 2 (+ lambdas-v2) Lambda syntax and type, closures kept
35 comptime 8 comptime bindings, assets, values crossing in, compiled build-time code, staging
36 reflection 5 T::fields, T::variants, meta::Type, attributes
37 async 7 (+ async-5) Pausing, sync, tasks, channels, overlap/select, emitted async
38 parallel 3 par_iter, Par::fold, parallel driver
39 runtime 6 The runtime, ring and readiness, idle-runtime file ops, supervision, thread ids
40 http 6 The HTTP server, net::serve, handlers, routes, layers
41 process 3 process::run, process::exit, main’s parameters
42 time 3 Duration, Instant, measuring a child
43 io 6 Stdin, lines, printing, paths and roots, fs::read
44 trust 6 Provenance of sources, environment, command line, log escaping, hasher by trust
45 raw-sinks 1 (+ raw-sinks-1) Escaping at boundaries, templates
46 error-sets 3 (+ error-sets-1) Inferred error sets, failing loop steps, function values
47 catch 3 (+ catch-1) catch as match, completeness, fatal errors, catch diagnostics
48 failure-return 1 (+ failure-return-1) Envelope, site, trace, joined failures
49 grammar-input 2 (+ grammar-input-v1) UTF-8 check across frames, keeping the input
50 grammar-lowering 1 (+ grammar-lowering-v1) A grammar entry in tail position
51 decision-records 1 (+ decision-records-v2) How a design question is weighed

51 topics: 38 new, 13 existing that numbered records join (registry, rust-boundary, views, collections, lambdas, async, raw-sinks, error-sets, catch, failure-return, grammar-input, grammar-lowering, decision-records). Tables: 214 rows (206 for the 189 numbered records, 11 of them split into 28 parts; 8 for count-named records whose topic a numbered record joins).

Doubts

ADR Candidate A (chosen) Candidate B
017 raw-sinks trust
108 io raw-sinks
398 trust raw-sinks
258 decision-records a topic of its own (design-principles)
393 rust-boundary packages
123 rust-boundary shared-state
352 patterns nullable
314 prover-solver grammar-actions
367 prover-checks grammar-parallel
391 prover-solver prover-found-facts (decided, #1790) optimization
376 contracts unsafe
333 comptime generics
230 shared-state lambdas
280 failure-return (whole) D9-D19 to error-sets
336 toolchain-cli registry

Generated by Claude Code

Comments

keywan-ghadami, 2026-11-29

Topic 30 confirmed by the owner (2026-11-29) under a narrower name: syntax-line-start, what a [, ( or - at the start of a line means (ADR-135 D3, ADR-317, ADR-390). The broader syntax-layout would gather any rule about how code is laid out.


Generated by Claude Code

keywan-ghadami, 2026-11-29

The prover records 306, 385, 391, 395 and 396 are now four topic records (d8fc849d, for #1790): ADR-prover-checks-v1, ADR-prover-walk-v1, ADR-prover-found-facts-v1 and ADR-prover-refusals-v1. The old records are in docs/history/adr/, and their rows map every decision to its new number. The table above is updated.


Generated by Claude Code

keywan-ghadami, 2026-11-29

ADR-374 is now ADR-text-positions-v1 (2276d831, for #2523), with its decisions under the same numbers and a new D9. The old record is in docs/history/adr/. The same commit rebuilds the index’s Topics in use from the records that exist: the prover topics, tether, proof-kani, loop-failure and others were missing.


Generated by Claude Code

Back to Open Issues