Landin the specification discuss source

The Landin specification

You probably do not want to read this. It is the normative reference: grammar, rules and recorded decisions, written to settle questions exactly, not to teach. Nobody reads it from the top. To learn Landin, read the tour; to write a program, copy one from the examples; if you know C, start with Landin for C programmers; for the library's calls, see the library reference.

Come here with a number. The tour ends many entries with "Exact rules: spec [NNNN]", and a compiler message names the paragraph it enforces; follow that number to the one paragraph you need.

This is the normative document. tour.md explains the language and this says what it is; where the two could be read differently, this one decides. It is deliberately partial and it grows one slice at a time, so it says what is true today rather than what is intended.

Three things are in here and the difference matters.

The grammar of the enabled kernel, [1740] to [1830], covers the constructs the compiler enables today and nothing else, so that what a program may say and what the compiler will accept are the same sentence. A construct tour.md describes and this grammar omits is not enabled yet, and the compiler says so by [1830] rather than guessing.

The rules the tour left unsaid, [1840] to [2000], are not about the kernel and they will not be deleted as it grows: that a comparison yields a bool, that an immutable binding may not be written, that a name must be assigned before it is read. The tour teaches by example and a tutorial omits what a reader supplies for themselves, so each of these was found by an implementation needing a rule and finding none. Each cites the sentence it derives from.

The decisions this document took are the register after them. A rule in either part above is a transcription of something the tour already decided or a decision taken because the tour said nothing, and a reader cannot tell the two apart by reading one; the decisions are named in the register, each with the alternative it was chosen over and the fixture that pins it.

All three are ordered by subject, and the numbers are not. An id is a stable citation anchor and never moves, so [1950] sits beside [1890] because both say what an operator takes, and D1 sits beside D233 because both say what a declaration introduces. What is read first and what was found first stopped being the same thing.

The grammar of the enabled kernel

The notation is ordinary: a name in lower case is a rule, a quoted word is itself, '?' is optional, '*' is none or more, '+' is one or more, '...' between two quoted bytes is every byte from one to the other, 'any byte' is exactly that, and parentheses group. 'any Unicode scalar' denotes the shortest-form UTF-8 encoding of one scalar value, subject to its stated exclusions. Nothing here is a parser generator's input. The parser is hand written, and this is the agreement it is written against.

The rules come in two layers, and the difference matters. The lexical layer reads bytes. identifier, keyword and literal each produce one token; space, line_end and comment produce no token at all and are discarded where they are found; the rest of that layer spells out part of one of those and produces nothing of its own. Every other rule reads the tokens that remain, and a quoted word or sign in one of them stands for the single token spelled that way. A quoted word is not thereby reserved: when [1760]'s keyword rule omits it, the token is an identifier whose spelling the enclosing production recognises. Thus 'of', 'lenof', 'offsetof', 'variant', 'caller', 'range', 'arena', 'concept', 'is', 'as', 'option', 'compiler', 'assembler', 'linker', 'c', 'layout', 'packed', 'at', 'u8', 'u16', 'u32', 'u64', 'link', 'symbol', 'align', 'section', 'region', 'keep', 'thread', 'boot_stage', 'vector', 'interrupt', 'naked', 'noreturn', 'distinct', 'out', 'into', 'held' and 'through' remain identifier tokens everywhere their contextual productions do not meet them. D225 reserves control words in every position, including ordinary name positions. The packed_unsigned production names contextual representation widths; it does not expand the ordinary scalar family. D202 separately reserves the three tool names as declaration/import bindings; that semantic reservation does not turn their tokens into keywords. A token is as long as it can be, comments excepted, whose opener decides [1780]: 'inc' followed by 'x' with nothing between them is the one name 'incx', which is why [1750] says what separates two tokens.

1740

A source file is an import prelude and declarations in any order

A source file is a possibly empty import prelude followed by declarations in any order. All reached source files together are the program. Declaration order does not affect name lookup inside a module [0130]: names are collected as a set, and a name may be used above the line that introduces it. Active linker.library directives retain canonical source/declaration order for archive resolution (D202). 'public' rides on a declaration and not on a statement [0090]: what a module exports is decided where the module is written, never inside a body.

program     ::= import_declaration* declaration*
import_declaration ::= "import" import_path ("as" identifier)?
import_path ::= identifier ("/" identifier)*
declaration ::= "public"? (atom_declaration | binding | function
                            | external_function | machine_function | linked_binding
                            | type_declaration
                            | concept_declaration)
                | conformance_declaration
                | fixed_conditional
                | option_declaration
                | tool_directive
option_declaration ::= "option" identifier ":" type "=" expression
tool_directive ::= tool_namespace "." identifier
                   "(" (expression ("," expression)*)? ")"
tool_namespace ::= "compiler" | "assembler" | "linker"
fixed_conditional ::= "fixed" "if" expression "then" declaration*
                      ("elsif" expression "then" declaration*)*
                      ("else" declaration*)? "end" "if"
atom_declaration ::= identifier ":" "atom"
identifiers ::= identifier ("," identifier)*
1750

A source file is bytes

A source file is bytes, a line ends three ways, and space separates tokens. A span in a diagnostic names a byte, and every later stage must be able to point at the same one, so the lexical rules are written over bytes. A line ends at LF, at CR followed by LF, or at a CR that is not followed by LF, and a file need not end with one at all. Text inside a literal or a comment may be any UTF-8 [0260]; nothing outside them may be. Space is a space byte, a tab, a line end or a comment [1780], and any run of them may sit between two tokens. Two tokens whose spellings would run together into one longer token need at least one, which is the whole of the rule: 'mut x' is two tokens and 'mutx' is one name. Otherwise space carries no meaning, and no rule below this layer mentions it. A line end therefore never terminates a statement: when the token after it can continue the expression or selection before it, it does. This is [1060]'s one-line rule read from the other direction. One ( is read by where it stands: a ( that begins a line, and whose matching ) is followed by :=, begins [0990]'s destructuring binding rather than a call of the line above, because a call is no place and that reading could never derive.

space       ::= " " | "\t" | line_end | comment
line_end    ::= "\n" | "\r\n" | "\r"
1760

Identifiers are lower case, and no identifier is a keyword

Identifiers are lower case, and no identifier is a keyword. Every name in the language has this one shape: types, functions, bindings and fields alike, which is why the tour never needs to say which case a thing is written in. Two rules narrow it. A word the keyword rule spells is that keyword and never a name, so 'if' is not available as a binding; that one is the tokeniser's. The other is in the rule itself: a name that starts with '_' needs something after it, so the lone '_' is the discard of [1020] and nothing may be called it. The kernel reserves fifty words; the reserved set of the whole language is larger, and each word joins it when its construct is enabled in the language. Once reserved, it is a keyword in every program, even one that does not use that construct. Type names are not among them: u32 and bool are names the kernel predeclares, and a program may declare the same spelling [0120]; [1790] says which of the two a type position names.

Control words cannot name bindings, types, functions, parameters, results, fields, atoms, import bindings or loop and block labels. In particular, begin = 10 and begin: i32 = 10 are invalid; (begin) is not an identifier escape. A longer spelling such as begin_value remains an ordinary identifier. D225 records the reservation and its compatibility consequence.

identifier  ::= lower (lower | digit | "_")*
              | "_" (lower | digit | "_")+
lower       ::= "a" ... "z"
digit       ::= "0" ... "9"
keyword     ::= "addr" | "alignof" | "and" | "any" | "atom" | "begin"
              | "break" | "continue" | "dec" | "defer" | "do" | "else"
              | "elsif" | "end" | "escaping" | "extern" | "fail" | "false"
              | "fixed" | "for" | "from" | "if" | "import" | "in" | "inc"
              | "inout" | "loop" | "match" | "mut" | "none" | "not" | "or"
              | "ptr" | "public" | "return" | "sink" | "sizeof" | "struct"
              | "then" | "true" | "try" | "type" | "unchecked" | "undo"
              | "uninit" | "when" | "while" | "zeroed"
1770

The kernel's literals include characters, floats and text

The kernel's literals are integers, floats, characters, quoted text, the two booleans, and contextual zeroed and uninit. Integer literals are untyped and take the type of their context [0190], defaulting to i32 with none [0200]; the bases and the separator are [0220]'s. Each integer digit run starts and ends in a digit of its base; any internal run of underscores separates digits. A number ends where its spelling ends: a letter, digit or underscore directly after one belongs to it, so 1u64 or 1.5f32 is one malformed literal rather than a number and a name (D245). uninit is D152's restricted private inline-array field initializer; it reserves storage without assigning an item image. It has no stand-alone value type. zeroed has no type of its own: [0540] gives it the all-bits-zero image of a directly supplied initializer, assignment or field-label context. D27--D30 establish fixed-array contexts, D39--D43 scalar contexts, D49 and D57--D59 whole array-field and ordinary-struct contexts, D62 the depth-one indexed field place, D64--D67 labelled struct fields and static images, D75/D76 variant-bearing struct storage and case payloads, and D87 depth-one nested ordinary storage. It remains refused where no enabled construct supplies that context. D161 admits [0260]'s quoted literal when its direct context is a read-only []u8; the unescaped source content is UTF-8 [1750], and [0270]'s byte escapes are decoded into that view. Raw text [0280] takes the same direct byte-slice context by D164, but interprets no escape and removes a line-leading closing delimiter's indentation. The maximal opening quote run chooses the delimiter width; only a later run can close it. Adjacent quotes therefore cannot encode an empty raw literal. Intervening line endings remain content under D164; empty text uses "". D181 adds utf8, utf16 and cstring contexts and makes utf8 the contextless default. A scalar escape is encoded as UTF-8 or UTF-16 for those views; a byte escape remains exclusive to []u8. D162 admits [0210]'s decimal float with [0220]'s optional exponent. D166 adds [0230]'s hexadecimal fraction and required binary exponent. D167 admits [0240]'s type-qualified infinity and nan values for f32 and f64. D163 admits [0250]'s single-quoted character as exactly one Unicode scalar value of fixed type u32. A raw scalar is shortest-form UTF-8; [0270]'s simple escapes and \u{...} spell scalar values, while byte-only \xNN does not.

literal     ::= integer | float | character | text | raw
              | "true" | "false" | "zeroed" | "uninit"
character   ::= "'" (character_escape | unicode_scalar) "'"
unicode_scalar ::= any Unicode scalar except apostrophe, backslash or line_end
character_escape ::= "\\" ("n" | "r" | "t" | "e" | "\\" | "\"" | "'"
                  | "u" "{" hex_digit+ "}")
text        ::= "\"" (text_escape | text_byte)* "\""
text_byte   ::= any byte except quote, backslash or line_end
text_escape ::= "\\" ("n" | "r" | "t" | "e" | "\\" | "\"" | "'"
                  | "x" hex_digit hex_digit
                  | "u" "{" hex_digit+ "}")
raw         ::= quote_run raw_content quote_run
quote_run   ::= "\"" "\"" "\"" "\""*
raw_content ::= any byte+
integer     ::= decimal | hex | octal | binary
float       ::= decimal_fraction decimal_exponent?
              | hex_fraction binary_exponent
decimal_fraction ::= decimal_digits "." decimal_digits
decimal_exponent ::= ("e" | "E") ("+" | "-")? decimal_digits
hex_fraction ::= "0x" hex_digits "." hex_digits
binary_exponent ::= ("p" | "P") ("+" | "-")? decimal_digits
decimal_digits ::= digit ((digit | "_")* digit)?
hex_digits  ::= hex_digit ((hex_digit | "_")* hex_digit)?
decimal     ::= digit ((digit | "_")* digit)?
hex         ::= "0x" hex_digit ((hex_digit | "_")* hex_digit)?
octal       ::= "0o" octal_digit ((octal_digit | "_")* octal_digit)?
binary      ::= "0b" binary_digit ((binary_digit | "_")* binary_digit)?
hex_digit   ::= digit | "a" ... "f" | "A" ... "F"
octal_digit ::= "0" ... "7"
binary_digit ::= "0" | "1"
1780

A comment ends a token, and its opener says which kind it is

A comment ends a token, and its opener says which kind it is. The three forms are [0010], [0020] and [0030], and their openers share a prefix, so length cannot tell them apart: the longest opener decides. '--(' opens a block comment, '---' a doc comment and '--' a line comment, and the form so chosen decides where the comment ends rather than the rule that a token is as long as it can be. A line or doc comment ends at the line end. A block comment ends at its own ')--', so it may sit between two tokens on one line, and it nests: a ')--' closing an inner one does not close it, which is why commenting out a region that already contains one is not a trap. One never closed runs to the end of the file and is reported there. A comment is space [1750], so it may appear wherever a space may.

comment       ::= block_comment | doc_comment | line_comment
block_comment ::= "--(" block_item* ")--"
block_item    ::= block_comment
                | any byte that begins neither "--(" nor ")--"
doc_comment   ::= "---" (any byte except line_end)*
line_comment  ::= "--" (any byte except line_end)*
1790

A binding names one thing, and says how much it may change

A binding names one thing, and says how much it may change. The full form, the inferred form and the mutable form are [0040], [0050] and [0060]; a binding with no value must be assigned before it is read [0080]. A binding, a field and an atom declaration name one thing each (D1656); [0100]'s shared form is left to parameter, named-return and payload lists, which write several names of one type. The kernel's types are the thirteen scalar names, atom sets, fixed arrays, pointers, slices, D145's any C, function types with their complete declared error sets, and what [1795] declares from them: aliases, named ordinary structs and D74's named variant-bearing structs. mut in a pointer or slice type records permission to write the pointee or viewed elements [0430] [0570]; it is independent of a binding's mut [0070]. Enabled runtime leaves are scalar, atom set, reference, function, fixed array or D147's erased pair; ordinary and variant-bearing structs compose those leaves recursively. A pointer is one target pointer-width carrier and a slice is its non-null base plus a usize length. Neither has an all-zero value [0540]. A function type is written with [1800]'s signature syntax. Its parameter and return names describe positions and declare nothing; only a function declaration opens [1840]'s signature scope. The other TYPES YOU DECLARE remain deferred. A type position holds a name either way. The kernel predeclares the thirteen scalar names and the three text-view names; the grammar spells these out because a program need not declare them itself. They are in no scope of [1840] and [1760] does not reserve them, so a program may declare the same spelling. A type position that spells one is looked up lexically like any name, and the nearest visible declaration of that spelling is what the position names, whatever it declares (D1260): a type declaration or a type formal gives the position its type, and a function, binding, parameter or any other declaration is no type, so the position is refused with L0338 as any name that is not a type is. The lookup does not continue outward past it, as [0140] has an inner name hide an outer one. Only when nothing visible declares the spelling does the position name the predeclared type. A call or value use of the spelling resolves the same way: a visible function named u8 is what u8(v) calls, and u8(v) converts to the predeclared u8 [0700] only when nothing visible declares u8. A function named u8 therefore cannot write u8 in its own signature, and no type position its name reaches can; a module that wants both gives the function another name. An array [0520] is a type position too, and its length is part of it. D136 folds the bound expression from integer literals, fixed formals, unary -, and the target-independent binary arithmetic +, -, *, / and %; D438 adds immutable module integers, D1321 compiler facts and sizeof of a scalar type, and D1340 alignof of a scalar type, each at the selected target's value. A type application's fixed actual folds the same expressions with the same refusals (D1663), so buf(compiler.word_size) is a type as [compiler.word_size]u8 is; an argument written as a lone name is read as a type reference, and checking takes it as the fixed formal or module integer it names when that is what it names. The element is a type like any other. A parameterized alias or nominal struct is a type position through its fully applied positional application. D135 substitutes an alias during checking; D137 interns a struct application by its template and normalized actual tuple, then checks the substituted field shape.

A binding, a parameter, a named return and a field declare a type, and there [0640]'s atom union may be written in place: mode: read | write. It is the same structural set a type declaration of that union names, so the two are one type and either may be written where the other is (D216). It includes D189's pointer union, absent | ptr node, and since ptr binds tighter than |, ptr a | b is that union of ptr a and b. A function type's parameters and returns are declared too. Everywhere else a type is written, as an array's or a slice's element, as a type argument, a distinct base or a conformance's target, a union needs that declaration's name, and the one refusal says so. sizeof, alignof and a labelled argument read a | b as [1820]'s alternation, and a union there is refused the same way.

binding       ::= "mut"? identifier ":" declared_type ("=" expression)?
                | "mut"? identifier ":=" expression
declared_type ::= type | atom_union
type          ::= function_type | array_type | pointer_type | slice_type
                | any_type | type_application | scalar_name | packed_unsigned | text_name
                | declaration_reference
function_type ::= signature | c_convention c_signature
                  | machine_convention c_signature
array_type    ::= "[" expression "]" type
pointer_type  ::= "ptr" "mut"? type
slice_type    ::= "[" "]" "mut"? type
any_type      ::= "any" concept_reference
type_application ::= declaration_reference "(" type_argument
                     ("," type_argument)* ")"
type_argument ::= type | expression
scalar_name   ::= "u8" | "u16" | "u32" | "u64"
                | "i8" | "i16" | "i32" | "i64"
                | "usize" | "isize" | "f32" | "f64" | "bool"
text_name     ::= "utf8" | "utf16" | "cstring"
1795

Type aliases and declared identities

A type declaration without a body or distinct names an existing type. [0120] declares a type like any other value and [0650] writes 'distinct' to make one that is not the type it was written from. D15 reads the second as deciding the first: without that word a declaration gives an existing type another name and the two are one type everywhere. A struct body [0670] has no existing type to alias and introduces the nominal type [0710]. It is written struct, a field a line, and end (D1657): a parenthesised field list is a parameter, result or payload list, never a type declaration, so ( after type = begins a function type and nothing has to look past its ) to tell the two apart. Without formals its identity is this declaration's empty-actual instance. With formals, D137 makes each fully applied normalized actual tuple a distinct instance of this declaration; an alias of either keeps that same identity. Every alias chain has to reach a scalar type, atom set, fixed array, function type or struct body. A chain that comes back to an alias in the chain reaches no type and is refused at that declaration. A declared type name is an ordinary declared name, so one declaration per name per scope [1850] and a name that names nothing is refused [1860] both hold for it unchanged. A predeclared name is in no scope, so declaring its spelling duplicates nothing; [1790] says which meaning a type position takes. There is no range subtype (D1661): T range a .. b after a type declaration's base type is refused as L0696, naming a distinct type over the base and a function that checks the range [0660]. range stays a word [1760] does not reserve.

type_declaration ::= identifier ":" "type"
                     ("=" (encoded_union | atom_union | distinct_body | type | struct_body)
                     | type_formals "=" (encoded_union | atom_union | distinct_body | type | struct_body))
distinct_body   ::= "distinct" type
concept_declaration ::= identifier ":" "type" "=" concept_body
concept_body    ::= "concept" type_formals
                    ("is" concept_reference
                     ("," concept_reference)*)?
                    concept_entry* "end" identifier?
concept_entry   ::= identifier ":" signature
conformance_declaration ::= type_formals? conformance_target "is"
                            concept_reference
                            (conformance_entries conformance_field?
                            | conformance_field)
conformance_entries ::= "(" conformance_argument
                        ("," conformance_argument)* ")"
                      | "(" ")"
conformance_field ::= "through" identifier
conformance_target ::= array_type | pointer_type | slice_type | any_type
                     | type_application | declaration_reference
conformance_argument ::= identifier ":" argument_rhs
concept_reference ::= declaration_reference
declaration_reference ::= identifier | qualified_reference
qualified_reference ::= identifier ("." identifier)+
type_formals    ::= "(" type_formal ("," type_formal)* ")"
type_formal     ::= identifier ":" "type" constraint?
                  | "fixed" identifier ":" type
constraint      ::= "is" concept_reference
atom_union      ::= union_member "|" union_member ("|" union_member)*
union_member    ::= declaration_reference | type_application | pointer_type
encoded_union    ::= packed_unsigned? "(" encoded_member
                     ("|" encoded_member)* ")"
encoded_member   ::= declaration_reference "=" exclusion
packed_unsigned  ::= "u1" | "u2" | "u3" | "u4" | "u5" | "u6" | "u7" | "u8"
                   | "u9" | "u10" | "u11" | "u12" | "u13" | "u14" | "u15" | "u16"
                   | "u17" | "u18" | "u19" | "u20" | "u21" | "u22" | "u23" | "u24"
                   | "u25" | "u26" | "u27" | "u28" | "u29" | "u30" | "u31" | "u32"
                   | "u33" | "u34" | "u35" | "u36" | "u37" | "u38" | "u39" | "u40"
                   | "u41" | "u42" | "u43" | "u44" | "u45" | "u46" | "u47" | "u48"
                   | "u49" | "u50" | "u51" | "u52" | "u53" | "u54" | "u55" | "u56"
                   | "u57" | "u58" | "u59" | "u60" | "u61" | "u62" | "u63" | "u64"
struct_body      ::= ("layout" "(" ("c" ("," "packed")?
                     | "packed" ("," ("u8" | "u16" | "u32" | "u64"))?) ")")?
                     "struct" member+ "end" identifier?
member           ::= field | variant_part
field            ::= identifier ":" declared_type
                     ("at" expression (".." expression)?)?
variant_part     ::= identifier ":" "variant" variant_case
                   ("|" variant_case)* "end" identifier
variant_case     ::= identifier (":" "(" payload_field
                     ("," payload_field)* ")")?
payload_field    ::= identifiers ":" declared_type
1800

A function is a value with a body, and its returns are named

A function is a value with a body, and its returns are named. '=' opens the body and 'end' closes it [0870]; a body that is one expression still takes an end, and the expression fills the named return [0880]; every named return must be assigned before the function returns [0930]. The parameter conventions [0900], escaping [0780], from [0790], caller [1040] and generic parameters [1290] have their parser and resolution foundation on a declared routine. Its complete signature scope collects type/fixed formals, runtime parameters and named returns before resolving any type; runtime formals alone make the runtime signature. escaping precedes an explicitly written convention, and both precede the parameter name (D140). escaping into p names the parameter whose storage may keep this one (D445); into is a contextual word [1760] does not reserve, a target only when a second name follows it, so a parameter may still be called into. Its name is associated with a runtime parameter position as a from name is, and the parameter it names may stand earlier or later in the list (D455). A parameter without a convention is read-only, and in is never written (D1655). Each from name is retained in written order and associated with the correspondingly labelled runtime parameter position. A name written held p says the result is what p holds rather than a view of it (D1369); held is contextual in the same way, the word only when a second name follows it. For every returning edge that actually carries a tracked reference, the reference-origin pass checks its source set against exactly that ordered list; [0480]'s provably empty optional arm has no reference or origin to compare. Unknown, duplicate, missing and extra sources are rejected. A generic template has no standalone function value or IR item. D138's first executable increment deduces a direct type formal or exact [n]t shape from context-free runtime argument types, interns the concrete routine instance, and emits that instance rather than the template. An enabled nongeneric signature takes values including function values, hands one or more named values (or none) back, and optionally declares [0940]'s payload-free atom error set. A standalone link(symbol: text) may precede the name of a native function declaration, but does not change this signature or convention and does not make its body optional [1610]. A function type reuses the nongeneric signature production but has no body. Its labels are type description only and do not declare parameters or named returns.

A function value names a declared function; there is no anonymous one (D1654). A body is one block. Its statements run in source order and an optional final expression fills the one named return or the complete anonymous aggregate of a multiple return list. A final if or match whose every answer is a call that does not return answers nothing and is a statement, whose arms assign the named returns (D431). One token past a leading name decides between a first statement and a direct expression: ':' opens a binding and an assignment operator opens an assignment; anything else means the body begins with its value. A function returning none has no expression form, because there is no return for one to fill. An unguarded return has no fallthrough edge, so it can end a statement-only block but cannot be read as the prefix of that block's final expression. This also keeps return 1 the refused payload spelling [1810]. A guarded return may prefix a final expression because its untaken edge continues.

function           ::= (link_attributes "public"?)? identifier ":"
                       declared_signature "=" body "end" identifier?
external_function  ::= (link_attributes "public"?)? c_convention link_symbol?
                       identifier ":" c_declared_signature
                       ("=" body "end" identifier?)?
machine_function   ::= (link_attributes "public"?)? machine_convention
                       link_attributes? identifier ":" declared_signature
                       "=" body "end" identifier?
linked_binding     ::= link_attributes "public"? binding
c_convention       ::= "extern" "(" "c" ")"
machine_convention ::= "extern" "(" ("interrupt" | "naked") ")"
link_symbol        ::= "link" "(" "symbol" ":" text ")"
link_attributes    ::= "link" "(" link_attribute ("," link_attribute)* ")"
link_attribute     ::= ("symbol" | "section" | "region") ":" text
                     | ("align" | "vector") ":" integer | "keep" | "thread"
                     | "boot_stage"
c_signature        ::= "(" (parameters ("," "...")?)? ")" "->" returns errors?
c_declared_signature ::= "(" (routine_formals ("," "...")?)? ")"
                         "->" returns errors?
signature          ::= "(" parameters? ")" "->" returns errors?
declared_signature ::= "(" routine_formals? ")" "->" returns errors?
routine_formals    ::= routine_formal ("," routine_formal)*
routine_formal     ::= parameter | type_formal
errors             ::= "!" (declaration_reference
                             ("|" declaration_reference)* | "...")
parameters         ::= parameter ("," parameter)*
parameter          ::= "caller" identifiers ":" declared_type
                     | ("escaping" ("into" identifier)?)? parameter_convention?
                       identifiers ":" declared_type
parameter_convention ::= "inout" | "sink"
returns     ::= "(" named_return ("," named_return)* ")" | "none" | "noreturn"
named_return ::= identifiers ":" declared_type
                 ("from" return_source ("," return_source)*)?
return_source ::= "held"? identifier
body        ::= block
block       ::= statement* | value_statement* expression
value_statement ::= binding | destructuring_binding | assignment
                  | increment | discard | call | labeled_application
                  | defer | undo | try
                  | "return" "when" expression
                  | "fail" expression "when" expression
                  | break | continue | loop | while | for
                  | if | match | bare_block | labeled_block
destructuring_binding ::= "(" destructured_field
                          ("," destructured_field)* ")" ":=" expression
destructured_field ::= identifier (":" (identifier | "_"))? | "_"
1810

Statements do one thing each, and only exits carry 'when'

Statements do one thing each, and only exits carry 'when'. Assignment is a statement and never an expression [0390]; there is no '++', and 'inc' and 'dec' are statements too [0400]; discarding a result is written out [1020]; the one-line form of every construct is [1060]. 'when' rides on an exit and on nothing else, which is what keeps a conditional statement from having two spellings. return carries no value. A named return is assigned like any other place and return leaves [0930], which is why the kernel needs no second way to say what a function hands back. fail is the other early exit [0970]: it carries one payload-free atom on the declared channel and does not read the successful named return. A direct or selected call, with positional or named arguments, is a statement as well as an expression, because a function returning none has nothing to bind. That is the only call the position takes: one that hands a result back is refused there, recovered or not, because [1020] wants a result discarded on purpose rather than by omission, and _ = call is how it is written (D244). A labelled application in this position must resolve to a function call; the shared construction syntax still requires its ordinary value context and does not make constructed values standalone statements. A standalone try call explicitly propagates its failure and discards any successful result, whatever its shape. defer and undo each register one call when their statement is reached and evaluate the callee and arguments only on applicable exits from the lexical block [1100] [1110]. They are statements rather than expressions and so cannot supply a block's final value. A match is D77's exhaustive tag selection or [0640]'s exhaustive atom-set selection. A variant subject is one directly selected variant part and each case arm carries one statement or one expression; a bare begin block makes a multi-statement arm. D78 extends the arm with positional payload bindings. An if, a match, and a bare begin block retain their statement forms and also occupy expression positions under [1820]. Used as a statement, one takes no value from its branches, so a branch, an elsif or else arm, a match arm or the block itself, that ends with a value is refused, as a call standing alone that hands one back is: nothing would take the value, and [1020] drops none by omission. The refusal names the two routes, a branch written as a statement and, where the value followed a call's else that divided an if [1820], the recovery parenthesised or bound. A place is [1820]'s indexed selection, so a binding, a field of a struct, or an enabled array element is written and stepped exactly as the binding holding it is. What may be written is [1900]'s and not this rule's: a field is writable when the binding it belongs to is.

D165 enables [0390]'s compound forms. Each reads the selected place, applies the corresponding [1820] binary operator to that value and the right-hand expression, then writes the result back. The place is evaluated once before the right-hand expression [0410], must already be assigned [1910], and needs the same write permission as = [1900]. The operator keeps its ordinary type, known-operand, trapping and wrapping rules.

The kernel admits the statement forms of [1130], [1140], [1170], [1180], and [1190]. An unconditional loop tests nothing; a while condition is evaluated before every iteration and must be bool. break transfers to the point after its target loop and continue transfers to that loop's next condition test (or next unconditional iteration). Without a label they target the nearest loop; with one they target the nearest enclosing loop, or labelled bare block, carrying that ordinary name. A labelled loop or block closes with its label. A block is left only by break: continue naming one is refused (D234). A loop is a statement and gives no value, and a break carries none (D1651): a loop written where a value belongs, a break with, and a complete block are refused, each with the replacement named. Their optional when condition is evaluated once and must be bool; its false edge continues with the following statement. Both transfers leave every lexical block between the statement and the loop edge, so [1100]'s defer runs and [1110]'s undo does not. Every exit of a loop reaches the statement after it. After a loop, a name is definitely assigned when it is assigned on every edge that leaves the loop: a while's false test, a for's exhaustion, and every break (D430). D159 enables the integer-range form of for: both bounds are evaluated once, from left to right, and have one integer type. a..<b visits the ascending values for which the element is less than b; a..b also visits b. Either form is empty when its first value is already beyond its last. The element binding is an immutable copy with the range's type; an optional index is an immutable usize beginning at zero. continue advances both before the next test, and the inclusive form completes at its maximum integer endpoint without first overflowing it. D160 enables collection traversal over a slice or a fixed array: the source is evaluated once, the element binding is a place in that storage rather than a copy, and the optional index is an immutable usize beginning at zero. The element is writable over []mut T and over a fixed array held in a place the body could assign; over []T and over any other array it is read-only [1160]. A body that writes the storage by index observes the write through the element, and the reverse. Elements that are themselves fixed arrays or slices retain their complete shape under D178. An any C element retains its erased identity and evidence under D179. A source that would need [1320]'s iterable evidence is enabled by D180 when its type is a struct or any C and exactly one conformance to the unambiguous concept named iterable supplies Cur, Item, and [1320]'s four exact, infallible signatures. The source expression is evaluated once and copied into private traversal state. first is called once. Each test calls at_end; a false result calls item before entering the body. Fallthrough and continue run applicable cleanup and then call next; a break runs applicable cleanup and skips next. The optional immutable usize index begins at zero and advances with each next call. A for selects only iterable. A traversal whose steps can fail is a while whose body takes each step with try or a call's else; try for is refused with that replacement named (D1652).

The cursor keeps its complete type identity between calls. The element is an immutable copy of the exact Item result, not an alias into the source, and therefore carries only the origin allowed by [1320]'s source-free result. An any C source and an any C item each retain their own erased concept and evidence identities; neither two-cell value is ever interpreted as a slice. Missing or ambiguous concept identity, or missing, ambiguous, or non-exact iterable evidence, is L0348. Integer ranges and fixed-array or slice storage traversal retain D159--D160 and D178--D179 unchanged.

D184 admits the exact utf8, utf16, and cstring identities through three intrinsic conformances to [1320]'s four-operation traversal contract. These do not search, add, reorder, or expose a source-declared evidence table, and an ordinary slice or pointer does not acquire them from its representation. Each uses exact usize Cur and u32 Item identities. Cur is a private physical code-unit offset: bytes for utf8 and cstring, UTF-16 code units for utf16. Item is an immutable copied Unicode scalar with no reference origin. It is not an encoded subview and is never an alias into the retained read-only source.

The source expression is evaluated once and its complete carrier and origin are retained before conceptual first produces offset zero. Every test calls at_end; a false result calls item, which decodes exactly one validated scalar before the body. Fallthrough and continue run applicable cleanup and then next, which advances Cur by that scalar's physical width and advances the optional immutable usize loop index by one. break skips next. For utf8 and utf16, at_end is Cur equal to the retained code-unit length. For cstring, it is the first zero byte; that terminator is not an Item, so an embedded U+0000 ends the C string in the same way as its trailing terminator.

D187 enables [1120]'s statement form. unchecked begin opens a region and end unchecked closes it. D225 reserves both opener words under [1760]; neither can name a binding or label. The region is a lexical block with its own scope and it is not an expression: the block forms that also occupy expression positions are the if, the match and the bare begin named above, and this is not one of them. Nesting is idempotent and there is no counter-word. A [1100] defer or [1110] undo call is checked as its registration is written and not as the exit that runs it, so a return, break or fail inside a region keeps every edge of a cleanup registered outside one. Which check edges the region removes, which it never removes, and what a removed one leaves behind are D187's.

These intrinsic providers declare no atom error. D181 validates utf8 and utf16 views, and D183 preserves that validity across text slices, so a well-formed view of either identity does not trap during traversal. A literal cstring is also valid UTF-8. D199's foreign cstring boundary promises only accessible backing through the first NUL: D184 validates each scalar before decoding and traps on malformed encoding, including inside unchecked. A NUL continuation is rejected before any later byte is read. Missing terminators or stale storage remain [0430]'s pointer validity non-guarantee rather than a recoverable text outcome. D181--D183's validation, pooling, single trailing terminator, identities, indexing, slicing, permissions, origins, traps and errors remain unchanged, as do D159--D160 and D178--D180 range, array, slice and declared-evidence traversal.

statement   ::= binding | destructuring_binding | assignment | increment
              | discard | call | labeled_application | defer | undo | try
              | return | fail
              | break | continue | loop | while | for | if | match
              | unchecked | bare_block | labeled_block
assignment  ::= place assignment_operator expression
assignment_operator ::= "=" | "+=" | "-=" | "*=" | "/=" | "%="
                      | "&=" | "|=" | "^=" | "<<=" | ">>="
                      | "+%=" | "-%=" | "*%="
increment   ::= ("inc" | "dec") place
discard     ::= "_" "=" expression
defer       ::= "defer" call
undo        ::= "undo" call
return      ::= "return" ("when" expression)?
fail        ::= "fail" expression ("when" expression)?
break       ::= "break" identifier? ("when" expression)?
continue    ::= "continue" identifier? ("when" expression)?
loop        ::= "loop" "do" block "end" "loop"
              | identifier ":" "loop" "do" block "end" identifier
condition   ::= expression | condition_declaration
condition_declaration ::= "mut"? identifier ":=" expression
                        | "mut"? identifier ":" declared_type "=" expression
while       ::= "while" condition "do" block "end" "while"
              | identifier ":" "while" condition "do" block
                "end" identifier
for         ::= "for" identifier ("," identifier)? "in" expression
                ((".." | "..<") expression)? "do" block "end" "for"
              | identifier ":" "for" identifier ("," identifier)?
                "in" expression ((".." | "..<") expression)? "do" block
                "end" identifier
try         ::= "try" (call | labeled_application)
if          ::= "if" condition "then" block
                ("elsif" condition "then" block)*
                ("else" block)?
                "end" "if"
match       ::= "match" expression match_arm+ "end" "match"
match_arm   ::= (match_label | "_")
                ("(" match_binding ("," match_binding)* ")")?
                ":" (statement | expression)
              | match_label ("," match_label)+ ":" (statement | expression)
match_label ::= declaration_reference | "ptr"
match_binding ::= ("inout" | "sink")? identifier
unchecked   ::= "unchecked" "begin" block "end" "unchecked"
bare_block  ::= "begin" block "end"
labeled_block ::= identifier ":" "begin" block "end" identifier
place       ::= indexed
1820

Precedence, tightest first, and comparison does not chain

Precedence, tightest first, and comparison does not chain. The operators are the ones OPERATORS already decided: [0290] for arithmetic, [0300] for the wrapping forms, [0330] for the bitwise set, [0320] for shifts, [0350] for comparison and [0340] for the logical words. Every binary level below is left associative, which the repetition in each rule is what says. Comparison takes at most one operator, so 'a < b < c' is not a sentence in this grammar rather than a fold: a chain that read left to right would compare a bool with a number, and [0310] refuses that anyway. A selection is [0420]'s ordinary member-selection syntax. The enabled representation retains every selected name without deciding whether it denotes a struct field or [0430]'s val pointee; that classification belongs to later checking. It binds tighter than every operator because it is part of naming a thing rather than an operation on one, and it is left to right, so 'a.b.c' selects from what 'a.b' named. Module resolution uses that same retained selection for a qualified declaration reference. When its first name is this file's imported namespace, the first selected name is public module lookup and the namespace produces no runtime value. Otherwise the selection is the ordinary runtime form above. Later selections from a module binding are ordinary fields of the selected value. An index or slice selection [0570] binds the same way and for the same reason, and takes what a selection named: a[i], a.b[i] and a[lower..<upper] are all written there. The two range spellings are retained separately so inclusive and half-open upper bounds are checked before an address is formed. Neither form derives from a call, because nothing selects from one and nothing indexes one either; [1830] refuses both as a recorded boundary and names the route, a name bound to the result. A [ that begins a line after a call or a parenthesis therefore cannot continue it, and begins what follows. A call may consume that complete selection as its callee, which is how a function-valued field is called; the call itself still cannot be selected or indexed. D266 extends a conversion's callee from a name to a written type. It remains one primary, so its result has that same restriction on selection, indexing and another call. Named conversions still use the ordinary call production. A written conversion's type is [1790]'s type syntax, with its final argument list supplying exactly one value rather than type arguments. D266 fixes the split between those lists and between type prefixes and literal syntax. D183 extends range selection to the exact utf8 and utf16 identities. Both bounds are exact usize code-unit offsets. They must name scalar boundaries; the half-open upper bound may equal the code-unit length, while the inclusive upper bound names and includes a complete scalar. The result retains the source's immutable text identity and origin. cstring has no corresponding operation. Source, lower and upper are evaluated once in that order, and an invalid ordinary bound or encoded boundary traps. An ordinary-struct literal is [0710]'s nonempty run of labelled field values, optionally followed by [0720]'s contextual fill. D64--D71 state the contexts that admit it. D72's construction and [0980]'s direct named call have one labeled_application syntax: the parser retains each argument's label and neutral RHS, and resolution classifies the callee before selecting type or expression projections. A construction may then use the optional trailing fill; the all-fill spelling remains refused by name. A call-site else followed by a parenthesised name or _, and not by :=, or by none (D376), opens that call's recovery wherever it stands, an if arm included. Any other call-site else binds to the call except where that same token can close an enclosing then or elsif arm: there it divides the if, which is the one reading if c then a() else b() end if can have, and parentheses around the recovered call, (f() else 0), recover it in the arm. A refusal that meets either reading names this rule and that route. A bare else begin after a call in the middle of an arm's line, whose arm goes on past the block's end, is refused there and read as the call's recovery (D2172). An if, exhaustive match or bare begin block is also a primary; a loop is not (D1651). Their conditions or subject run first, then exactly the selected block runs in source order. In a value context the final expression of every edge that can fall through supplies the answer; an edge that returns supplies none. D124 gives the complete edge and type rule, and D125 gives its storage representation. lenof [0370] measures the primary a name begins: the name, a field or element path through it, a slice of one, or a call's result, recovered or not. A fixed array's length is its type's, so a name or path that names one is not evaluated, as D31's literal is not, and an index inside that path is not evaluated either; a slice is evaluated once and its length read; a call is evaluated whatever its result's shape, because what it does is not known from its type. The word stays contextual: lenof(x) calls a routine named lenof, and lenof[i] indexes a binding of that name. offsetof t.field measures where a field of the struct type t begins, through nested structs, as a usize (D411); it too is contextual, and only a name followed by a dotted name makes it a measurement. Evaluation order is left to right and fixed [0410], so the table decides what binds, never what runs first.

primary     ::= literal | array_literal | array_repetition | struct_literal
              | empty_slice | labeled_application
              | indexed | call | address | pointer_conversion
              | any_construction | measurement | try
              | if | match | bare_block
              | "(" expression ")"
array_literal ::= "[" expression ("," expression)* "]"
array_repetition ::= "[" integer "of" expression "]"
                   | "[" "of" expression "]"
                   | "[" expression ("," expression)* "," "of" expression "]"
struct_literal ::= "(" field_value ("," field_value)*
                   ("," "of" expression)? ")"
field_value ::= identifier ":" expression
labeled_application ::= indexed "(" labeled_arguments ")" recovery?
labeled_arguments ::= (expression ",")* labeled_argument
                      ("," labeled_argument)* ("," "of" expression)?
labeled_argument ::= identifier ":" argument_rhs
argument_rhs ::= expression | type
indexed     ::= selection (index | slice_selection | ("." identifier))*
index       ::= "[" expression "]"
slice_selection ::= "[" expression (".." | "..<") expression "]"
selection   ::= identifier ("." identifier)*
call        ::= indexed "(" arguments? ")" recovery? | written_conversion
recovery    ::= "else" expression
              | "else" "none"
              | "else" "(" identifier ")" block "end"
address     ::= "addr" place
written_conversion ::= conversion_type "(" expression ")"
conversion_type ::= function_type | array_type | pointer_type | slice_type
                  | any_type | type_application
pointer_conversion ::= "ptr" "(" expression ")"
any_construction ::= "any" "(" expression ")"
empty_slice ::= "[" "]"
measurement ::= ("sizeof" | "alignof") type
              | "lenof" (call | labeled_application | indexed)
              | "lenof" "(" array_literal ")"
              | "offsetof" qualified_reference
arguments   ::= expression ("," expression)* ("," assembly_operand)*
assembly_operand ::= ("in" | "inout") identifier ":" type
                     "at" identifier "=" expression
                   | "out" identifier ":" type "at" identifier
                   | "out" "_" "at" identifier
unary       ::= ("-" | "~" | "not")* primary
product     ::= unary (("*" | "/" | "%" | "*%") unary)*
sum         ::= product (("+" | "-" | "+%" | "-%") product)*
shift       ::= sum (("<<" | ">>") sum)*
conjunction ::= shift ("&" shift)*
exclusion   ::= conjunction ("^" conjunction)*
alternation ::= exclusion ("|" exclusion)*
comparison  ::= alternation (("==" | "<>" | "<" | "<=" | ">" | ">=")
                             alternation)?
logical_and ::= comparison ("and" comparison)*
expression  ::= logical_and ("or" logical_and)*
1830

What is not enabled is refused, and named

What is not enabled is refused, and named. A construct tour.md describes and this grammar omits is not a guess the compiler gets to make. Meeting one is a diagnostic that names the construct's paragraph and says what the refused form is, so a program written against the whole tour fails with a list rather than with a parse error. This grammar owns what is already true. The note says one of three things, and never names the work that decided it (D246).

  • A source-form boundary is a disallowed shape within an implemented construct, and the note says it is a recorded boundary; it must not claim that the complete construct remains unimplemented. For example, indexing requires a named place, inline structs require a named type declaration, and a labelled construction starts with a labelled field. D236's constrained compositions and the shapes D233 and D241 leave outside their constructs are of this kind.
  • A withdrawn form is one the language no longer has, and the note says it is withdrawn and names what replaces it. D212 withdraws [0820]'s formerly promised lexical arena block and builtin arena type, and both notes name the ordinary allocator replacement. arena is not a keyword: a declared type, parameter, local, call or label with that spelling remains ordinary. Only the statement shape arena name do and an otherwise-unresolved builtin type spelling receive the migration diagnostic. No compiler rule recognizes the module core/mem. D238's volatile ptr names its withdrawal and the explicit operations that replace it.
  • A transferred form is one a successor roadmap owns, and the note names the successor. D237's u128, i128 and f16 name their transfer to Language evolution.

[1430]'s import alias is enabled; D201 states its binding and visibility rules. [1440]'s selected import is refused, naming the whole import (D1658).

The rules the tour left unsaid

These are the rules an implementation needed and tour.md does not state. They are grouped by subject: names, scopes and what a doc comment is about, then the types and the context a literal takes its type from, then what an operator takes and what it refuses, then places, assignment and what may be discarded, then calls and the declared-error channel, then module values, and last the boundaries the compiler owns — the hosted entry, the C boundary, the firmware and machine directives, and the switch between stacks.

1840

The kernel's scopes, outermost first

The kernel's scopes, outermost first. [0130] and [0140] are two sentences about scopes and this grammar has to say which scopes it has, because a rule about an inner scope means nothing until the inner ones are named.

scope what it holds
program every module reachable from the entry directory after [1420]'s ordered-root selection. This is the outer identity and the one whole-program conformance register; it is not a source namespace.
configuration D202's global options and implicit tool namespaces, used by the closed configuration fold before ordinary resolution. It has no runtime declarations or storage.
module every direct .ldn file in one directory [1410]. Its named declarations are shared by those files regardless of order, module-internal by default and public only when written so. Active linker.library directives retain source order (D202).
file imports the final segment of a plain import or the written alias in this file's prelude [1420]-[1450]. A namespace binding is not a declaration or value. This scope encloses the module scope for lookups performed from that file.
type declaration D135's complete ordered formal list. The scope encloses the declaring file's imports and is visible in every fixed formal's declared type, direct concept constraint and in the alias or struct body, regardless of formal order. It closes with that declaration: its names do not enter the module or another type declaration. A type declaration without formals opens no scope.
concept declaration D142's complete ordered type-formal list. It encloses the declaring file's imports and is visible in every direct constraint, parent name and entry signature. Entry parameter and result labels describe signature positions and declare nothing in this scope.
conformance declaration D142's optional complete type/fixed binder. It encloses the declaring file's imports and is visible in every binder constraint, the target type, every labelled input or function RHS and the routine a through names (D1363). The conformance itself declares no module name.
signature a declared routine's type/fixed formals, runtime parameters and named returns [1800]. Every binder is collected before any signature type or direct concept constraint is resolved, so its source order has no visibility meaning. Named returns are places the body assigns [0930]; all three binder kinds share one namespace, but type/fixed formals are compile-time-only and have no storage. A declared function's signature encloses its file-import scope. A written function type opens no scope and its labels declare nothing.
body what a function runs; one for each arm of an if and its else; one for each loop body; one for each match arm; one for every bare begin block; and one for a call-site recovery [1810] [1030]. A statement run plus its optional final expression is a block and a block is what scopes [1090], so a name declared in one is not visible in a sibling or after the block closes. D185's initialized condition binding shares the scope of the one if, elsif, or while body it guards; its initializer is resolved in the enclosing scope, and it is absent from later conditions, sibling arms, else, and following statements. Match payload bindings and a recovery error name live only in their block.

[1800]'s direct final expression opens no additional scope inside its function body, because an expression declares nothing. Order matters in a body; module declaration order does not affect lookup. [0130]'s set is a set of named declarations, so a module name may be used above the line that introduces it; [1800]'s block is a sequence, so a local is visible to the statements and final expression after it. Both its written type and initializer resolve before its name exists [0110] (D218), including names inside pointer, slice, array and applied-type syntax. Lookup proceeds through body and signature scopes, then this source file's imports, then its module. An import may therefore shadow a same-named module declaration for qualified lookup, and a parameter or local may shadow the import. A namespace import leaves an unqualified same-named module value visible; a selected declaration shadows the module declaration for ordinary unqualified lookup too. Imports do not enter sibling files and are not re-exported. Lookup ends at the module: [1790]'s predeclared type names are not a further scope but what a type position names when lookup finds no declaration (D1260).

1850

One scope gives one name to one thing

One scope gives one name to one thing. Two declarations of one name in one scope leave nothing to choose between them: [0130] makes module name lookup independent of declaration order, so neither is first, and [0140] licenses shadowing between an inner scope and an outer one and not within one. So it is refused, and the report names both places. Shadowing is not this. An inner scope may shadow an outer name [0140] and nothing is said about it, because a rule that permits something does not also warn about it. The compiler's one observation about a name is D1342's warning at a declaration that takes a predeclared type's name: those types are in no scope, so such a declaration hides none of the program's names, only the language's own type from every type position it reaches [1790]. The file-import scope follows the same rule: two imports with one final segment, including a repeated identical import, are refused and both import sites are reported.

1860

A name that names nothing is refused

A name that names nothing is refused. There is no implicit declaration in this language: a name that is not in scope is a misspelling and not a new binding [1250]. The report names the use, because the use is where the mistake is and the declaration that was meant is not there to point at. An imported namespace whose selected member exists but is not public is a different error: the use is refused as inaccessible and the private declaration is related evidence. A namespace used without selecting a member names no runtime or type value and is likewise refused.

2000

What a doc comment is about

A doc comment [0030] is about the declaration that follows it, and the language gives it no other meaning: a program means the same with every doc comment removed. The doc comment of a declaration is the run of doc comment lines directly above the line it begins on, read top to bottom. Each line of the run holds nothing but blanks and one doc comment, and the run ends at the first line above it that holds anything else, a blank line among them, so a line comment or an empty line between a doc comment and a declaration keeps the doc comment for nothing. A doc comment on the same line as code, or below a declaration, is about nothing. A doc comment's text is what follows its ---, without one blank after it if there is one.

--- The larger of two counts.
--- Equal counts give the first.
larger: (a: u32, b: u32) -> (c: u32) =
    c = if a < b then b else a end if
end larger

--- About nothing: a blank line follows it.

total: u32 = 0
1870

The kernel's types, and what each of them holds

The kernel's types, and what each of them holds. [1790] gives the kernel scalar and text spellings and nothing that says what one of them holds, so nothing yet says whether a u8 may be given 300. [0150] puts the width in the name, [0160] takes usize and isize from the machine and [0180] gives bool its two values; written out, that is:

type what it holds
u8 u16 u32 u64 every unsigned value of that many bits
i8 i16 i32 i64 every signed one, two's complement
usize isize the same pair, at the target's pointer width [0160]
f32 f64 IEEE 754 binary32 and binary64 values, including signed zero, infinities and NaNs [0170] [0240]
bool false and true [0180]
ptr T, ptr mut T one non-null target address, with tracked origin unless constructed from an integer [0430] [0470]
[]T, []mut T one non-null aligned base and a usize length [0570] [0580]
utf8 a distinct immutable []u8 view of validated shortest-form UTF-8; its length counts bytes [0600]
utf16 a distinct immutable []u16 view of valid UTF-16; its length counts code units [0600]
cstring a distinct immutable ptr u8 view of NUL-terminated bytes with no length; a literal's bytes are validated UTF-8, a foreign boundary's promise only accessible backing through the first NUL [0600]
an atom union exactly the declaration identities in its flattened set [0630] [0640]

Two's complement is not a new decision. [0300]'s wrapping forms have to wrap somewhere and [0320]'s '>>' keeps a sign, and neither means anything without it. Each of the thirteen is its own type. usize is not u64 on a machine whose pointer is eight bytes wide, because if it were, [0310] would refuse a program on one target and accept it on another for a reason no paragraph here could state. [1510]'s 'sizeof usize == 8' asks what a machine does; it does not say two names are one type. D162 enables f32 and f64 without making either an integer or one another. u128 and i128 [0150] and f16 [0170] are not in this version: D237 transfers them to the Language evolution successor, and the checker refuses the three spellings by name. The packed widths are enabled only in D228's packed-field positions [0730]. They are representations within an image, not new ordinary scalar or ABI types: reading such a field gives the smallest enabled unsigned scalar that holds its width, so a u1 field reads as a u8 of 0 or 1 and is not a bool (D228). An atom declaration introduces one value and its singleton type. An atom union is structural: aliases are flattened, order and repeated members do not change identity, and assignment or argument passing may widen a singleton or smaller set into a set that contains it. No integer is an atom and no zero or default atom exists. With one atom, atom | ptr T uses zero for the atom and every nonzero pattern for the pointer, occupying one target pointer carrier [0480] (D189). A pointer union holds exactly one atom: a union that flattens to two or more atoms beside a pointer, written in place, through an alias or by applying a parameterized alias, is L0696 (D1659). [1795]'s union_member admits one written pointer type beside the atom name, and a second pointer member is L0338.

The union is not a pointer. .val, addr of a .val reached through one, an integer conversion of one, any construction from one, a comparison with another union or a pointer, and an argument or result position wanting ptr T are each L0335, because each would read an atom case as an address; ptr(n) cannot produce one for the same reason, and zeroed does not name an atom case because no zero or default atom exists. A plain ptr T widens into a union whose pointer member it relaxes to, and its atom's singleton widens into it, in the direction this paragraph already gives atom sets; neither direction reverses (D189). A union may be compared for equality with its atom, on either side: u == a and u <> a test the atom case without exposing an address (D429). match [1210] is the way to recover the pointer: its cases are the union's atom name and the reserved word ptr with an optional read-only binding of the plain pointer type, an inout binding on that arm is L0333 [1220], a case named twice is L0311, and a case named by neither an arm nor _ is L0312 exactly as for an atom set. The bound pointer carries the subject's own origin [0770] [0780], and an atom case carries none, so a union built from a frame address still refuses an escaping use of the bound pointer. An origin names a kind of storage, not a lifetime: "allocated" says a reference came from an allocator, and nothing about whether that allocator has since released or reset it [0770] [0860]. Two arenas are one origin, and a pointer stored in a field and read back carries the field's origin. The checks here are the local ones [0770] promises, and freeing storage under a live reference remains outside them. Fixed arrays hold their declaration-order elements [0520], and ordinary or variant-bearing structs hold the fields their nominal declaration gives them [0710] [0750]. A function type holds a target code address with the complete parameter and result signature [0870] [1000]. The signature, not the address, decides which values may be stored together and how a call is checked.

1880

Where a literal's type comes from, and what a context is

Where a literal's type comes from, and what a context is. [0190] says an integer literal is untyped, takes the type of its context and is checked at that point, and [0200] says it is i32 with none. Neither says what a context is, and a checker cannot ask for one until they are listed. In the kernel these positions give a literal a type:

  • a binding's declared type [1790]
  • the type of the place an assignment writes [1810]
  • the type of the parameter an argument fills [1800], in a generic routine too when that type names no formal the call deduces (D419)
  • the named return's type, or the complete anonymous result aggregate for a multiple-return expression body [0880] [0990]
  • the result expected from an if, match, bare begin, or call-site else expression; that same complete context reaches every fallthrough answer
  • the element type of a contextual array literal or repetition
  • the field type of a contextual labelled struct literal
  • the complete pointer type of ptr(integer) and the complete slice type of []; the address integer itself takes usize
  • the other operand's type, for a binary operator
  • the other endpoint's integer type, for a range traversal (D219)
  • a unary operator's own context, handed on [1820]
  • a branch's or while loop's condition and an exit's 'when', all of which want a bool [1050] [1070] [1140] [0970] and so give an integer literal a context it cannot take

A call with two or more results has [0990]'s anonymous structural aggregate: its declaration-order field names and complete field types are its value shape. That shape supplies an inferred whole binding and every arm of a control value.

And two give none: the inferred form [0050] and a discard [1020], where [0200]'s i32 is what is left for an integer and D162's f32 for a float. [0250]'s character literal is different: it already has type u32, so a surrounding context must agree and an inferred binding keeps u32. For [0260]'s text literal, those same direct positions may instead supply a complete text view. D161 and D164 admit quoted and raw literals as []u8; D181 admits utf8, utf16 and cstring, and with no supplied context either literal defaults to utf8. These identities remain distinct in a generic actual and in every reference-bearing signature or aggregate field. For [0210]'s float literal, the same positions supply f32 or f64. There is no implicit conversion from an integer literal or integer value; with no context the float defaults to f32. The decimal spelling rounds once to the contextual IEEE format. A finite spelling that would round to infinity is L0300 rather than silently becoming [0240]'s named special value. The named values f32.infinity, f64.infinity, f32.nan and f64.nan have the type written before the dot rather than taking one from context. D167 chooses one canonical quiet NaN pattern for each width; unary minus changes only its sign bit, as it does for infinity. With no surrounding context, the first written answer of a control expression supplies its scalar type, fixed-array element and extent, or nominal aggregate body; every other answer must have that same complete shape. An edge that returns without an answer is not a second answer and does not participate in inference. A context reaches inward through [1820]'s arithmetic, bitwise, shift and unary levels and stops at a comparison and at the logical words. What those give back is a bool [1890] and a bool says nothing about what was compared, so 'r: bool = 1 | 2 == 3' compares two i32 by [0200] and not two bools. Reference agreement includes the complete referred type and shallow permission. [0440] is the sole relaxation: ptr mut T satisfies ptr T, and []mut T satisfies []T; neither direction changes bits, and the reverse is refused. It relaxes a value that flows in: an inout place of reference type also flows back out, so it agrees exactly, as D243 records. Function signature agreement also includes parameter conventions, escaping, and each result's ordered from positions; omitted and explicit in have the same semantic convention. [1975] additionally includes C versus Landin convention and variadicness recursively, including function-valued fields and nested signature parts. A literal whose value the type does not hold is refused [0190], and the report names the literal. A unary minus over a literal is part of the value that check reads, which is what makes 'i8 = -128' the smallest i8 rather than 128 refused and then negated. Nothing else is folded: 'u8 = 200 + 100' is two literals a u8 holds and a sum it does not, and [0300] says that traps rather than that it is refused here. This literal-range rule does not suppress [1975]'s separate refusal of a known null pointer construction, whose closed expression is folded before testing its target-width value.

1890

What each operator takes and what it gives

What each operator takes and what it gives. [1820] settled what binds; this settles what agrees. Every binary operator takes two operands of one type, because [0310] converts nothing. D209 additionally lifts the numeric arithmetic rows over equal-shape fixed arrays or an array and its exact scalar element type; that scalar is evaluated once and broadcast, not implicitly converted.

operator takes, and gives back
+ - * / one integer or float type, and that type back [0290]
%, and [0300]'s +% -% *% one integer type, and that type back [0290]
& ^ |, and the unary ~ one integer type, and that type back [0330]; or one distinct type whose base is an unsigned integer, and that distinct type back [0650]. That distinct type also admits &=, ^= and |=, reaching the assigned place once [0390] (D427)
<< >> an integer shifted by an integer of that same type, and that type back [0320]. The amount is not bounded by the width: an amount at or past it gives zero on every shift, a signed >> included, while inside the width a signed >> keeps the sign (D13).
== <> < <= > >= one type on both sides, and a bool back [0350]; atom sets have identity equality and inequality only, including between disjoint or overlapping sets. D200: the type is a scalar, an atom set, a pointer or a function value; two pointers must point at one type, permission aside, and a slice, an erased value, an array or a struct has no comparison. A pointer union has none with another union or a pointer, but takes == and <> with its atom, on either side, answering whether it holds that atom [1870] (D429). Two values of one distinct type whose base has equality, a scalar, an atom or atom set, a pointer or a function value, have == and <> [0650] (D427), and a scalar base also gives <, <=, > and >= in the base's order, IEEE's comparisons for a floating base with NaN unordered; a distinct type over a pointer union, a struct, an array or a slice has none; never with the base or another type without a conversion
and or not bool, and a bool back [0340]
unary - one integer or float type, and that type back

So an integer has no logical words and a bool has no arithmetic and no bitwise set: 'and' is what [0340] gave a bool and '&' is what [0330] gave an integer, and neither reaches across. [1820] already read the comparison rule this way when it said a chain would compare a bool with a number and that [0310] refuses it. The positions that want a bool and are not operators are a branch's or while loop's condition [1050] [1070] [1140], and an exit's when [0970]. For D185's condition declaration the required initializer first establishes the binding's declared or inferred type, and that stored value is the bool being tested.

1950

An operand an operation cannot take

An operand an operation cannot take. [1890] says every binary operator takes two operands of one type and gives that type back, and for three of them a value of the right type is still not one the operation can use. No paragraph of the tour says what any of the three does.

the operation the operand it cannot take
integer / % a divisor of zero [0290]
<< >> a negative amount [0320]
[ ] an index outside the length [0520]

The third is not a binary operator and belongs here anyway, because it is the same question with the same answer. [1720] says this language checks bounds and [0580] says indexing checks the length before it computes an address, so what was left unsaid is only which of refusing and trapping applies where — and that is what the rest of this paragraph already decides for the other two. Float division follows IEEE 754: division by signed zero produces an infinity or NaN and does not use this refusal or trap rule. D18 makes an array index usize, so a negative expression is refused by its type before this row applies. The row asks only whether a well-typed index is below the array's length.

This is not [0300]'s question, and the difference decides both answers. An overflow is a good operation whose result the type does not hold, which is why [1880] leaves it to the trap inside a body. Here the operand is what is wrong and there is no operation to perform at all, which is the case [0310] already answered for 'u8(300)': known when the compiler reads it, it is refused; otherwise it traps. Known is [1880]'s and [1940]'s and nothing besides — inside a body a literal, or a unary minus over one; at module level the whole of [1940]'s fold. So 'x / 0' is refused and 'x / y' traps, and which of the two a program gets does not move when an implementation gets better at folding, which is the objection D7 raised against believing a condition. 'a[4]' on a '[4]u8' is refused for the same reason 'x / 0' is, and 'a[i]' checks its length at run time. A negative amount is writable only where the left operand is signed, because [1890] gives the amount that type. No unsigned shift carries this check, on any target. At module level a trap is not available at all. [1460] says nothing runs before the entry point, so a module value whose divisor is zero has no moment in which to trap and no value to stand for it, exactly as [1940] found for a sum no type holds. Both are refused there. The lowest value of a signed type over -1 is not in the table, and is not a third rule. Its quotient is the case [0300] already covers: that type does not hold it, and [1890] gives '/' no wrapping form to opt out with. Its remainder is 0, which the type does hold, so nothing traps and the machines that fault on it anyway are the x86-64 and arm64 backends' to know about. The report names the operand and not the operator, because the zero and the negative amount are what a reader changes.

1960

A trap stops at the operation

A trap is synchronous with the operation that causes it and happens at that operation's point in [0410]'s order. It does not return. The operation produces no value, and no later action of the failed computation occurs; actions before it are not undone. D232 permits the selected panic handler's terminal computation, without resuming that failed computation or unwinding its cleanup. How the surrounding system reports the trap is not Landin program behaviour. An operating system's signal, exception, status or other encoding is not stable across targets or compiler releases and a program may not depend on it. The same no-continuation rule applies to a return nested in an expression. For example, an index expression runs before the selected element is read and, on the left of an assignment, before its right-hand expression [0410]. If that index returns, neither later action occurs; facts from that edge do not reach a join. The default Linux x86-64 handler deliberately emits ud2; D232 defines selected-handler dispatch. It does not inherit the accidental fault or value of the machine instruction used for the operation.

1900

What may be written, and what may not

What may be written, and what may not. [1810]'s place is a name, and of the four kinds of name the kernel has, two may be written and two may not.

name written?
a mutable binding [0060] may be
a named return may be: [0930] says it must be, and [1840] declares it as a place for that reason
an immutable binding may not: [0040] makes it immutable and [0450] says it protects the value it holds
an in, sink, or caller parameter may not be replaced
an inout parameter may be replaced, through the caller-owned place

An atom declaration and a recovery clause's error name are immutable values, not places. A function declaration is not a place. Nor is a range selection [0570]: it is a new view over its source, as a returned slice is, so an assignment, inc or dec naming one is refused with L0303 as inout already refused it, while an element indexed through it is an ordinary place (D250). A local or module binding holding a function value is an ordinary place: an immutable one may be called but not replaced, and a mutable one may be replaced only by a value with the same complete signature. A named function-valued return is a writable place; an unmarked function-valued parameter is not. A function-valued struct field is an ordinary subobject place: the root binding decides mutability, and replacement requires that field's complete recursive signature. A place reached through .val or slice indexing instead takes writability from the shallow mut in that reference type, independently of the binding that holds it [0430] [0450]. addr retains that place's writability: its result is ptr mut T for a writable place and ptr T for a read-only place. Taking an address does not grant permission to modify immutable storage. Nor does matching: an inout payload binding of a match arm [1220] is a writable name for storage of the matched value, so the value matched has to be a place that may be written by these same rules, and the binding is L0303 where it is not (D1085). The value's type is the place's type [0310], and the report names the place as well as the value, because which of the two is wrong is the reader's to decide. 'inc' and 'dec' say what 'x += 1' says [0400], so each wants a place that may be written and an integer type.

1910

Assigned before it is read

Assigned before it is read. [0080] says a binding declared with no value must be assigned before use and [0930] says every named return must be assigned before the function returns. In a body those are one question and this is its shape: at every read of a name, at every return, and where a body ends, each applicable name has to have been assigned by every path that arrives there. For multiple results the question is asked independently of every named return. Aggregate fields retain independent facts, including a function field read as the callee of a call; the callee expression is checked before any argument expression. A written Boolean literal fixes its if edge: true takes the arm and false skips it. No other condition is believed. A name assigned in one reachable arm of if c and not another is not assigned after it, even if c was initialized with true. Only the written literal is used here; interpreting expressions to decide their value would make legality depend on constant folding. 'return when' is a return [1810], so what the function hands back is assigned above it and not below. A control-flow edge has independent fallthrough, successful-return, and failure consequences. A fail edge never needs the successful named return; its untaken guarded edge continues. A tried call may fail after its arguments and before any later action; a recovered call joins its success edge only with recovery edges that fall through. A return-compatible control-flow edge has two facts: whether it can fall through and whether it can return. Only fallthrough states meet at an if or match join; a returned arm neither lends nor removes assignment facts on a surviving arm. Every reachable fallthrough edge of a control expression must reach its block's final expression, and every such expression has the one complete type and shape from [1880]. An early-return edge needs no joined value, but it still requires the named return to be assigned at that edge. A guarded return has both facts: its taken edge returns and its untaken edge continues with the incoming assignment state. The unevaluated side of and or or is likewise a fallthrough edge: a return from the right operand cannot erase that skip edge, and assignments made only on the right do not survive their join. A sink argument follows one binding-rooted path of ordinary fields and literal fixed-array indexes. Pointer dereferences and slice indexes cross a reference boundary and are refused, including a literal slice index. A slice binding, field or fixed-array element still names its own descriptor storage and may be consumed as a whole. D220 makes this place-form boundary explicit. A module binding named through its module, store.state, is the binding its own name is [1420]: it roots a sink path, and a place consumed under one spelling is consumed under the other. Callee and arguments evaluate left to right before any place is consumed by that call. Each by-value argument captures its value when evaluated, including an aggregate passed by sink; a later argument may read or assign its original place. If evaluation transfers control before call entry, that call consumes no places. Effects of calls actually entered while evaluating its arguments still hold. On entry, the pending sink places must still be live and become unassigned at their exact binding-rooted paths, in written argument order. Repeated or provably overlapping sink places are refused. Every inout place must remain live after these consumptions, so a provable sink/inout overlap is refused in either argument order. A nested argument call that consumes a pending place requires a subsequent assignment before the outer call can enter. D223 pins this timing independently of argument-value capture and D149's inout rules. A consumed place may be read only after it has been assigned again on every arriving path where it was consumed. A part sunk out of an inout parameter must be assigned again on every return edge [0910]. Reading an enclosing aggregate reads its consumed parts too; assigning that aggregate restores those parts. Other fields and other known array elements remain independent. The inout obligation includes failure propagation: applicable defer and undo actions run before the exit check. Unlike a successful named result, the caller's inout storage remains observable after a recovered failure. This is definite assignment of one consumed place, not ownership; copies made before the sink remain live.

The reference-origin walk is a second local flow fact. addr of local storage and a slice of a by-value array parameter have frame origin. An address reached through a pointer dereference or slice index instead retains that reference's origin, including when ordinary fields or fixed-array indices follow it. Taking the address of the local pointer or slice descriptor itself still has frame origin; copying a descriptor locally does not move its backing storage into the frame. A returned value with frame origin is refused. A retained escaping argument must be independent or derive only from parameters themselves declared escaping. A store checks its destination's backing storage, including inout parameters, pointer pointees, slice elements and reference-bearing fields or variant payloads. Caller storage cannot retain a frame reference or a non-escaping reference from another parameter origin. Updating storage with a reference from that same origin is permitted; retaining another parameter requires escaping, or escaping into naming the parameter whose storage keeps it (D445). Such a parameter may be kept in that storage and in no other, and its argument at a call must outlive the origin of the argument for the named parameter, as D445 and D455 decide it locally; afterwards the frame storage that argument reaches holds what was kept, as a store through a known address does. A known address alias to a local joins its writes into the local's value origins, while a pointee write does not change the pointer descriptor's origin. Integer-created pointers are explicitly untracked [0470]; joining one with a tracked frame or parameter reference does not erase the tracked restriction. On each return edge, [0790]'s exact from comparison applies to an actual tracked reference in the returned value. A provably empty arm of [0480]'s optional pointer carries no reference and therefore no origin to compare; it is not an Untracked reference. For every edge that does return a tracked reference, the set of parameter origins is exactly the signature's from set; in a generic instance, a name whose parameter is typed by a type formal asks nothing when the instance's type for it holds no reference (D290). One exception keeps the exactness honest about storage that outlives the call. A reference is static when it reaches storage no frame owns: module storage, a reference read from module storage or reached through one, a literal, or an independent result such as an allocation. A read-only result whose edge carries a static reference satisfies a named source it does not derive from, because keeping that source alive asks nothing the static storage does not already give; it must still derive from no parameter its clause leaves out. So a concept entry written from self is implemented by a provider lending storage the program or the process keeps, as the hosted I/O provider lends the process's arguments. A writable result gets no such exception. In addition, D222 forbids a known independent storage origin in a result with a nonempty from clause when its type carries a reachable writable reference. The permission walk includes pointer and slice referents, array elements, struct fields and variant payloads; a read-only outer view does not remove a nested view's permission. An erased value conservatively qualifies, while a function value's signature does not describe storage carried by that code value. Aggregate value origins remain a conservative union, including origins from read-only sibling fields. An independent alternative counts only where a writable reference may reach it: one that arrives as a pointer, slice or nominal aggregate whose type reaches no writable reference, or as an any of one, can be no store's destination and is admitted beside the named sources (D375). A separately known independent alternative is retained across control joins, local copies, calls and selection of anonymous result positions. An optional empty atom and an empty slice literal contribute no storage destination; a constructor containing only such empty references preserves that fact. Only the optional atom has D189's exemption from exact source agreement. Explicit untracked conversion alone supplies no origin proof, and does not erase another alternative's known independent origin. A helper which needs parameter and module alternatives passes both as explicit arguments and names both in its from clause. Calls reconstruct those written sources; no body inference is introduced. A source a generic instance asks nothing of under D290, one not passed inout, adds nothing to that reconstruction, so the result neither derives from its argument nor is a view of it (D1042). A live local view records the binding it derives from and the fields it reached that binding through; an inout or sink use of that binding, or of a field of it that holds one of those fields or lies in one, is refused when the view is read before being replaced. A binding that holds a reference into its own storage lends the fields able to hold that reference together (D1371). A view replaced by the result of the inout call itself ends at that assignment, except where the call's recovery can break or continue past it (D291). A deferred call on a return or failure edge is checked against what is live on that edge, and no later statement is a use there (D292). A view no name holds is in use as well, until what it was evaluated for is done with it (D1084). The source of a for is in use while the loop runs: passing what it views inout or sink in the body is refused when a path from the call reaches another iteration, or reads the loop's element where that names the walked storage in place [1160]. An argument is in use until its call returns, so what it views is passed inout or sink neither to that call, in either order, nor to a call nested in a later argument; an operand of any other expression is held the same way while the operands after it are evaluated. What such a view views is the storage under it: a binding an address or a range was taken of, an array of it lent as a slice [0570], and for a call result what each argument its from names views, with the binding that argument is rooted in when the argument is a record or an array or is passed inout. A pointer, slice or any given by value lends what it refers to and not the binding that holds it; a reference only read out of a binding's field has other storage under it and holds nothing here; and an address or range of one field holds no other field of the same binding where fields alone reach both. A module binding named through its module, store.cells, is the binding its own name is [1420], here and in D149's test of one place passed twice. Volatile reference paths remain exempt [0850].

A match payload alias keeps its selected storage live even when the payload is scalar and carries no reference. Both reads and writes use that storage; a derived address or range, pending cleanup argument, or reachable inner-loop use also extends its lifetime. A direct retag, replacement of a containing object, or an inout/sink call that can replace it is refused until the last use. D76 selects a directly written case before evaluating its payload initializers, so reading an old alias in those initializers is still a live use. A whole containing construction also requires those aliases' last use before construction starts; copy a needed scalar first. A computed value destination keeps D134's temporary-and-copy-back order. Known address aliases participate in this local check. Different fields and known array elements remain independent, and a fresh match arm on a later outer-loop iteration creates fresh aliases. D134's copied computed-value subject instead aliases its own temporary; a copied scalar payload value keeps no borrow of the original. Rebinding a pointer descriptor does not replace the payload storage its earlier match selected.

A reference-free scalar operator result carries no reference origin [0840]. This includes a saved lenof result: using that number after an inout use of its source does not keep a view of the source alive. Operand checks and effects still follow each operator's evaluation rules, including short-circuit joins; D14's fixed-array measurement and D31's literal-length measurement remain unevaluated. This value rule does not erase storage provenance: an address or range formed from a selected place still derives from that place's backing reference, even when reading the selected scalar would copy no reference.

A caller position is part of the complete structural function signature. It has D192's ordinary nominal struct type: exactly three fields, in order, file_id: u32, line: u32, column: u32. Aliases retain that identity; other struct identities remain distinct even when their shapes qualify. There is no parameter convention or escaping modifier. It remains an ordinary runtime ABI position after the compiler has filled it; source calls omit it, except for D192's named forwarding from another caller parameter. caller is a contextual word [1760] does not reserve, exactly as range is, and it is the modifier only where a second name follows it: a parameter of that name writes : next, so caller: utf8, in caller: u8 and escaping caller: ptr u8 all declare an ordinary parameter spelled caller.

A module binding is not ordinary pre-use definite assignment. [1460] says its value is known when the compiler reads it; reference-containing module images must likewise supply a valid non-null static image.

1930

What may be discarded

What may be discarded. [1020] says a result is discarded on purpose or not at all, and [1810] writes that '_' '=' expression. Anything with a type may be thrown away, including a value nobody computed for the purpose: '_ = 1 + 2' is a discard of an i32 by [0200], because a rule about wasted work is a rule about people and this one is about types. What may not is a call of a function returning none [1920]. Discarding is for a result, and that call has none. The converse holds as well: a call that does hand a result back is not a statement on its own, so the only discard is the written one (D244). A call with a declared error is also refused when a discard would ignore that outcome; try propagates it and call-site else handles it explicitly. D241 makes the rest mechanical: a discard takes every place and call, and every expression an inferred binding x := e takes; a whole aggregate place is discarded where it stands, after its indexes are evaluated and checked.

1920

What a call means

What a call means. A static T.entry selection requires one declaration of that entry name across T's direct concept, represented-formal constraint and parent closure. Each concept is visited once: a shared ancestor reached along two paths contributes one declaration, while different declaring concepts remain ambiguous even when their providers agree. Parent order and a direct child declaration grant no precedence. D221 records this selection rule; an unused colliding closure may still be declared and conformed to. Where T names a concrete type rather than a type parameter, the conformances of T in the program's register [1280] take the closure's place: the one whose concept declares the entry supplies it, and none or two is refused (D1364). Either selection is called where it is written. [0980] gives no source-written parameter a default value, so a call names every non-caller runtime parameter exactly once. A caller position is instead filled by the compiler with D192's three source coordinates, unless a named argument forwards another caller parameter into that position. A positional prefix skips caller positions and fills the other runtime parameters in order; a named suffix may write the remaining parameters in any order, but may not repeat one or name one the callable signature does not have. Matching uses the labels of the static callable signature for a stored or selected function value. Those labels are retained call-shape facts but remain excluded from [1000]'s structural function-type identity. Each runtime argument is synthesized and checked in written order, then its checked value is placed at the matched formal position for the ABI. A static-role label is not a runtime argument of a nongeneric or indirect callable. Each argument has its parameter's type [0310], and the call has the type of the named return. [1975]'s C variadic call is the explicit exception to fixed arity and named matching: all actuals are positional, every fixed parameter is supplied, and the additional tail uses that rule's restricted carriers and default promotions. An argument filling a slice parameter []T, passed in, may instead be an array that the call lends a slice of whole [0570]. A fixed array place, a binding, a parameter, a named return or an admitted array field, lends its own storage for the length of its type, and its elements must be the slice's; a []mut T parameter takes such a place only when the place is writable, as a range slice of it would be. A nonempty array literal is checked as an array of the slice's element type with as many elements as it writes, formed in written order, each time the call runs, in storage the caller's frame keeps for that call, and lent read-only: a []mut T parameter never takes a literal. A view of it stays valid in the caller's frame after the call and sees what the call's latest run formed. Neither form is a text view, so a utf8 parameter takes neither. The lent slice has the origin of what it views: a literal's is the caller's frame, so a result from that parameter cannot leave the caller [0780], and a place's is the place's own. A generic routine's parameter whose written type names no formal is such a parameter, and its argument is checked as here (D419). One whose element type is a formal lends a place, matched through its element (D372), and refuses a literal, which has no type of its own to deduce from (D138). An atom argument whose parameter is written as an atom set that names no formal of the routine has nothing to deduce there, and widens into that set as [0640] lets an ordinary call's argument widen: net.shutdown(host, socket, net.sending) needs no local of the set's type first. A call of a function returning none has no successful-result type. It is a statement [1810] and nothing else: nothing binds it, no argument is one, and [1930] cannot discard it, because there is no result there to discard. Its call-site else [1030] therefore has no result to stand in for: it handles the error and yields nothing, and a value written there, alone or as the last line of its block, is refused. A call with one named return has that return's type. A call with two or more has [0990]'s anonymous structural aggregate; its fields are selected and destructured by the return names. The orthogonal declared error outcome is unchanged at every result count: a failing call is still tried or recovered. A callee is a function. It may be a declared function; a local, module, parameter or named-return binding; or a selected ordinary or variant-payload struct field whose value has a function type. The complete callee expression is evaluated before the arguments, and every stored form calls the runtime code address. A function's own name and an anonymous function away from a call are values of their function types [1000] [1010]. All positions retain one complete structural signature, recursively when a parameter or result is itself a function. Labels are not part of function signature agreement: parameter order and type, plus the ordered result types, are. The labels do remain the field names of a multiple-result value at its static call site. A binding of any other type is not a function.

A whole multiple result may initialize an inferred local, be selected by field, be assigned to a mutable inferred local of the same named structural shape, or cross a control-expression join. A destructuring binding evaluates its source once and selects fields by return name in any written order. A bare name binds a local of the same name; field: local renames it; field: _ ignores that field; and one bare _ explicitly ignores every unbound field. Unmentioned fields are also ignored, as [0990]'s one-field example requires. An unknown or repeated field and two locals with one name are refused by the ordinary field and scope rules. The anonymous shape is not a nominal struct type and has no type spelling of its own. A scalar type name in front of ( remains [0700]'s explicit conversion. The enabled reference slice admits the two directions [0470] requires: an integer type applied to a pointer checks that the address fits, and ptr(integer) takes its complete pointer type from context and produces an untracked non-null pointer under [1975]'s known-zero refusal and always-on converted-zero check. D168 also admits an enabled integer type applied to an integer value. D169 admits f32 or f64 applied to a float value. Conversion from an enabled integer to f32 or f64 is admitted by D170. D171 admits an enabled integer type applied to a float value, and D172 admits an enabled integer type applied to bool. D173 admits bool applied to an integer value. D174 admits bool applied to a float value, and D176 admits f32 or f64 applied to bool. The deferred integer widths remain refused by [1830].

1980

Declared errors are an orthogonal payload-free atom outcome

A function is infallible when its signature has no !. A concrete ! names a nonempty atom set; that set is part of complete structural function-type identity, recursively when a function value occurs in another signature. A public declaration, anonymous function, and written function type must be concrete. A private declared routine may write ! ...; whole-module checking then takes the least fixed point containing every atom it fails with and every concrete or inferred set propagated by try. Mutually recursive private routines are solved together. An inferred empty set makes the routine infallible. Generic deduction from a recovered error waits for its complete finalized set, including through local aliases. D215 refuses only a circular key/effect dependency in which choosing a generic instance requires the inferred effects of that same unresolved instance; ordinary and mutual error recursion remain least-fixed-point inference.

fail atom leaves by the error outcome and carries no successful result. The atom's possible set must be a subset of the routine's finalized declared set. A fail path need not assign the named successful returns. when evaluates its condition first; only the taken edge evaluates the atom and fails. try call evaluates the call once and propagates its error unchanged; its success value, including a function, fixed array, nominal aggregate or anonymous multiple-result aggregate, has the ordinary call shape. A failing call written without try or call-site else is refused.

Call-site else handles only a nonempty declared error set. Its optional name is an immutable atom value scoped to the recovery block and typed as that complete set. The successful call edge and every recovery edge that falls through must supply the same complete scalar, atom, function, array, nominal aggregate or anonymous multiple-result aggregate shape. A recovery edge may instead return, fail, or a permitted break or continue; it then supplies no placeholder and does not participate in the value join. Atom match is exhaustive over the subject's structural set; one final _ arm may cover all members not named explicitly, and atom arms bind no payload.

Neutral IR keeps successful results and errors separate. Atom constants carry source declaration identity and atom-set metadata; slots, datums, signature parts and values retain that structural set. A call with errors names a separate error slot, Failure_Test branches on the abstract outcome, and Fail is its own terminator. No inferred marker reaches IR. Verification checks set runs, identity membership, widening stores and arguments, complete signature equality, call failure slots, and failure subsets before a backend sees the unit.

For the documented Linux x86-64 internal convention, ordinary atom values use a 32-bit carrier. The backend assigns dense nonzero codes in declaration- identity order. They use the ordinary integer argument positions and %eax for a successful atom result. %r10d is the dedicated failure carrier for both direct and indirect Landin calls: zero means success and a nonzero dense atom code means failure. A successful callee clears %r10d; fail writes it. The ordinary scalar or function result remains in %rax, and an aggregate success still uses caller-owned storage, so the error carrier consumes no source parameter, result position, or stack argument. No source atom has code zero.

1940

A module value is known when the compiler reads it

A module value is known when the compiler reads it. [1460] says values at module level must be known at compile time and that nothing runs before the entry point, and the kernel's version of known is short: a literal, 'true', 'false', an operator of [1820] applied to those, and a name bound to a module binding whose value is known. Not a call. There is no compile-time execution in this language, so a call is not a value the compiler holds, and [1830] refuses it as the construct it is rather than as a type error. A compiler fact the build holds is known as well: D437 lets a module image read a bool or integer fact, or an atom fact compared with one of its atoms, as the value configuration found. Ordinary integer +, -, *, / and % in a module image fold in the signed range from -(264 - 1) through 264 - 1, independently of the host and destination width. Every intermediate must fit that fold range; the final image must fit its declared or inferred integer type. Thus a module binding value: u8 = 200 + 100 - 100 holds 200 even though its intermediate 300 does not fit u8. Its individually written literals still need their ordinary type context. A fold beyond the kernel range or a final image outside its destination range is refused: [0300]'s trap has no runtime moment before entry [1460]. Inside a body ordinary arithmetic retains the operand type's width and traps on overflow, so the same u8 addition traps before its subtraction is reached. Wrapping arithmetic, bitwise operations, shifts and explicit conversions keep their own type-dependent rules. D224 records this existing module-fold boundary; D136's fixed expressions and D202's options retain their separate contracts. D162's first float increment admitted a decimal float literal, its unary minus, zeroed, or D167's named infinity and NaN as a module scalar or aggregate-field image. D175 admits +, -, *, / and comparisons over module-known f32 and f64 values, including scalar and aggregate images. The target-neutral folder evaluates IEEE carrier bits with bounded integer work; it does not use the compiler host's floating-point operations as language semantics. [0130] makes a module a set, so one module value may name another written below it. A chain of them that comes back to where it began names nothing at all: no member of it is first, exactly as [1850] found with two declarations of one name. So it is refused, and the report names the declaration the chain came back to, because that is the one place in it the reader is standing. A name another module exports, written through that module's name, limits.size, colours.green or sizeof shapes.pair, is the same name: resolution binds it to the declaration itself, so it is known exactly when the unqualified name is known in its own module, in a scalar value, an array or record image and a measurement alike, and it selects no storage. The whole program is one set of modules, so a chain may pass through several of them, and one that comes back to where it began is refused at each declaration on it, in whichever module that declaration is. What has no value before the entry point is refused whichever module it comes from, each saying why: a field of a record image or an element of an array image reads storage, a call runs a routine, and an address needs a data relocation no backend emits. A mut module value is known by the image it starts with, here or in another module, since nothing has written it before the entry point; inside a body it holds what was last written and is not known. A distinct type's flags combined with D302's |, &, ^ and ~ fold through its base at the base's width, as its conversion does. A declared or anonymous function is a compile-time-known code address. A module function binding may name either directly, or another module function binding whose static chain reaches one; a chain that returns to itself is refused like any other module-value cycle. Function code addresses have no all-zero value, so a function-valued module binding must write an initializer. A function field in a static struct or selected variant image is a target-neutral relocation to such a declared or anonymous routine, not an integer fold. Copying a complete module struct image copies that relocation while retaining distinct storage. A module aggregate whose active all-zero shape contains a function field must therefore write an explicit static image too.

A contextual text literal is also known. A []u8, utf8 or utf16 module image is the base of its read-only datum and its decoded code-unit length; a cstring image is the base relocation alone. Each datum has exactly one trailing zero element excluded from a slice length. It is an address relocation rather than an integer fold or code run before the entry point.

An atom-valued module binding must name an initializer. There is no zero atom, and the zero carrier pattern reserved by [1980] is not a source value.

A scalar binding with no value is known too, and what it holds is zero — false, for a bool. [0080] lets a binding carry no value and says it must be assigned before use, and that sentence has nothing to bite on here: [1460] says nothing runs before the entry point, so there is no moment at module level in which to assign one, and [1910]'s walk is over the paths through a body and there is no body. Zero is a value the compiler knows, which is the whole of what [1460] asks. So 'mut counter: u32' is module state a function updates without an initialiser that says nothing, and reading one before anything writes it reads zero rather than being refused, because there is nothing left to refuse.

1970

The first hosted path has one entry shape

The minimal Linux x86-64 path accepts one hosted entry shape: a public function named main, with no arguments and the one named return code of type i32. Its declaration therefore starts public main: () -> (code: i32) =. The returned code is passed to the host as the program's status through the system C ABI [1650]. Every hosted target takes this one shape, and L0502 refuses any other main: the arguments reach the program through its hosted world, not as parameters, and C's argc and argv are what _landin_host_initialize_arguments hands that world [1650]. A freestanding program does not use this rule; its build description names the entry [1650]. The first hosted entry is infallible: this boundary has no host mapping for a declared Landin error. In a rooted program, only a declaration in the designated entry module can satisfy this shape. A reachable imported module's public main is an ordinary public function and is never selected as the executable entry. Beside the selected entry, a bodyless extern(c) link(symbol: "main") of (i32, ptr ptr u8, ptr ptr u8) -> i32 is admitted as C's view of the same symbol; it is how platform/linux's process entry calls main under a static Linux link, which passes the returned code to exit_group (D279). The entry may spell the link name it has, link(symbol: "main"); the prefix changes nothing, and any other symbol on it leaves the program without an entry, L0502 (D1113). A public main in the entry module that is not this shape is refused when the program is checked or emitted as assembly, as when it is linked (D443).

1975

The selected hosted C boundaries

extern(c) selects a function convention, not an import or a visibility. Without a body the declaration imports a linked C routine; with = body end it defines a C-convention routine in Landin. A definition may be private (for example a callback) or public. A link(symbol: "foreign_name") annotation may follow extern(c) before the declared name, or stand alone before a native function's declared name [1610]. It selects the linker identity, not the Landin lookup name, signature, convention or visibility. In particular, the standalone form keeps the native Landin convention and still requires the ordinary = body end; link never implies C. The decoded link name has the precise safe ASCII shape [A-Za-z_.$][A-Za-z0-9_.$]*: its first byte is a letter, underscore, dot or dollar, and only a later byte may additionally be a digit. Whitespace, @ suffixes and arbitrary assembler expressions are outside this form. The name is a logical external identity, before the platform's symbol prefix: ELF uses it unchanged; Darwin prepends one underscore, including when the logical name already begins with an underscore. Thus foreign_name maps to _foreign_name and _foreign_name maps to __foreign_name on Darwin. This applies equally to explicit native and C link names and default external names. It does not select a calling convention or enable a backend. Assembly quoting follows that mapping and does not change the resulting object symbol. Compatible bodyless C declarations may share a symbol with each other or with one definition; incompatible signatures and multiple definitions are refused. C imports and public C definitions default to their declared spelling. A private C definition without an override uses collision-safe internal naming.

public is not an export (D415). The global symbols of a program, the names the linker resolves against the C library and every other object, are its hosted or firmware entry; its C imports and public C definitions under their declared spelling; every routine and module datum with a link name, public or not, which is how data is exported deliberately (D416); every public definition in a machine convention, platform/linux's _landin_start among them; and every Cortex-M routine or datum with [1640]'s section, alignment, vector or keep. Every other routine and datum, public or private, is a symbol local to the image under its own name: no C library or linked object can collide with it or be replaced by it, and a debugger, a backtrace and the symbol table name it as the source does. A C import's spelling is never checked against the selected C library's: nothing but an export can meet it. Exports meet each other, and a public definition in a machine convention with no link name is held under its own spelling to the rule a link name is: no other export may have it (L0347, D770).

Within one program two items can still want one spelling: two modules' routines named reset, or a routine beside a C import of its own name, since an assembly reference to that name would reach the local definition. Each such item that is not an export takes its qualified spelling (D417): its module's logical path with every / replaced by ., or main for the entry module, then . and its name, so core/arena's reset is core.arena.release and an entry-module read beside C's is main.read. An export keeps its spelling and never yields. An identifier cannot hold ., so only an explicit link name can hold a qualified spelling as well; then, and for every instance of one generic routine after the first, the item takes the first of the qualified spelling followed by .1, .2 and so on that no other item holds, in item order. The qualified spelling is a function of the declaration alone. Whether an item needs it depends on what else the program holds, and an instance's number on which instances it holds. A C function type is extern(c) (parameters) -> returns. Convention and variadic status are part of recursive function identity wherever a function is carried, including nested fields, parameters, results, generic actuals, static images and indirect calls. Neither matching machine widths nor layout(c) makes a Landin function a C callback. Function values are code addresses; ptr handler instead addresses a stored function value.

A C function type applied to one usize, written in place or through an alias, adder(address), makes a C function value of the code at that address, as a loader's symbol lookup gives one. Nothing can check that code of that signature is there: that is the program's, as it is a C cast's. The bits are unchanged; zero, the address of no code, traps where the value is made, inside unchecked too, and a known zero is refused with L0335. The address carries no origin [0810], so the value is not held to the life of the object it was found in, and a from clause cannot name one for it, because a function value holds no reference (L0339). Only the C convention is made so: a native Landin function type applied to an address is refused with L0301, since code outside the program is reached only through its C entry points, and so are an integer of another type and a pointer, which usize(p) converts first. The way back is usize(f) (D1343): a C function value, written as a declared extern(c) function or kept in a binding of a C function type, converts to the address of its code, the word C keeps for that function pointer, with its bits unchanged and no origin. Only a C function value converts, and only to usize; a function value in Landin's own convention, or the conversion to another integer type, is L0301, and the address of an interrupt or naked function is no C function's either.

The selected hosted ABIs are Linux and FreeBSD x86-64 SysV AMD64 LP64, Darwin arm64 AAPCS64 with Apple's platform differences, both conventions with signed plain C char, and Linux and FreeBSD arm64's standard AAPCS64 LP64, whose plain char is unsigned, and RV64 Linux LP64D, also with unsigned plain char, and Windows x86-64's x64 convention, LLP64 with a 32-bit long and a signed plain char (D2190). Cortex-M firmware's C ABI is AAPCS32 (D920), ILP32 with an unsigned plain char, at the base PCS or, with a description's float unit, the VFP variant (D616). compiler.c_sysv_lp64, compiler.c_darwin_lp64, compiler.c_aapcs64_lp64, compiler.c_riscv_lp64d, compiler.c_aapcs32 and compiler.c_win64_llp64 are their respective fixed bool configuration facts, each true for its own ABI alone, not guesses from pointer width or architecture spelling. compiler.c_runtime is a fixed bool configuration fact too: true when C's runtime starts the program and its library is linked, which on Darwin and FreeBSD is always and on Linux only for a request with --link=libc, and false for every other Linux request, a check that emits nothing among them, on Windows, which links no C runtime (D2188), and on a target with no hosted system. A source selects C library calls by it, so a static Linux program never reaches one. The ordinary platform/c aliases assert one supported fact before exposing c_char, c_schar, c_uchar, c_short, c_ushort, c_int, c_uint, c_long, c_ulong, c_longlong, c_ulonglong, c_size, c_ptrdiff, c_float, c_double and c_bool. These name existing scalar identities: signed/unsigned 8, 16, 32 and 64-bit integers as appropriate, usize/isize, f32/f64 and bool; under the LP64 ABIs long and long long are both 64-bit, and under AAPCS32 and Windows x64's LLP64 long is 32-bit (D921, D2190). C char is the selected ABI's plain char, a numeric byte and not a Unicode scalar: i8 under SysV, Darwin and Windows x64, u8 under standard AAPCS64, RISC-V LP64D and AAPCS32; c_schar and c_uchar keep their signedness everywhere. A described target's ABI identity and widths do not imply that its C boundary is implemented. C signature, record-layout and variadic-call capabilities are selected explicitly; neither platform/c nor generated bindings may infer them from LP64 alone.

A C signature is nongeneric and infallible, takes only in runtime parameters, and returns at most one value. Its admitted values are the enabled integer scalars, bool, pointers, D189's named one-atom pointer unions, f32, f64, fixed C function values and recursively compatible nonempty layout(c) structs. D213 distinct identities over an admitted scalar, pointer, callback or C record have their base's layout and transport, while retaining their own Landin signature identity. A distinct identity does not make an excluded base admissible. Such structs contain those leaves, nested C structs and nonempty fixed arrays of compatible fields, with the selected C field offsets, alignment and trailing padding. A layout(c, packed) record (D410) and a record whose last field is a [0]T flexible array member (D413) are C records too, but a C signature takes or returns either, or a record holding one, only through a pointer (D414). Ordinary Landin structs, variants, slices, text and any do not become C records by having a similar byte count. Arrays are fields or pointees, not by-value C array parameters or results. Pointer permission, escaping and written from contracts remain Landin checks; a header alone establishes none of their ownership or retention promises.

The SysV C transport classifies actual target-byte eightbytes as INTEGER or SSE, recursively merging fields at their offsets. In this non-vector subset an aggregate above sixteen bytes uses MEMORY. Integer/pointer and SSE argument register banks are independent. A register aggregate is assigned wholly or rolled back wholly to inline stack storage when either bank is exhausted; it is not passed as the internal Landin pointer carrier. Results use the corresponding integer/SSE return banks, or caller storage through the hidden C result pointer, returned again by the callee. Copies and partial eightbyte loads/stores stay inside the actual object extent. None of this changes Landin's internal convention or [1980]'s separate failure carrier.

Darwin uses independent x0–x7 integer/pointer and v0–v7 floating argument banks. A homogeneous aggregate of one through four f32 or one through four f64 leaves (including nested C records and arrays) uses consecutive floating registers. Other aggregates through sixteen bytes use integer chunks; larger aggregates use a pointer to a caller-owned copy. A register aggregate that cannot fit its bank goes wholly to the stack, exhausting that bank. Fixed scalar and homogeneous floating aggregate stack arguments have their natural size and alignment rather than a mandatory eight-byte slot; any other aggregate on the stack occupies whole eight-byte slots aligned to at least eight, as AAPCS64's B.5 and C.14 require. The caller extends narrow integer arguments to at least 32 bits. Results use x0–x1 or v0–v3; an indirect result uses caller storage addressed by x8 without consuming an ordinary argument register. Copies stay within the object extent. Every Landin routine preserves a frame record through x29; x18 is reserved. These physical rules do not enter target-neutral IR or change source cleanup.

The standard AAPCS64 shares Darwin's banks, homogeneous floating aggregates, sixteen-byte indirect bound, narrow-integer extension, results and x8. It differs in two places. Every stack argument, scalar or aggregate, occupies its size rounded up to whole eight-byte slots and is aligned to at least eight, as C.16 requires. An unnamed variadic argument is assigned exactly as a named one of its promoted type would be, to the next register of its bank and to the stack only when that bank is exhausted. x18 stays reserved there too, so one register rule holds wherever compiler.arch == arm64.

RV64 Linux uses the RISC-V LP64D psABI: little-endian, 64-bit pointers, 64-bit long, 32-bit int, 64-bit ABI floating registers and a stack kept 16-byte aligned. Scalar alignment is natural, through sixteen bytes; C records keep natural field placement and trailing padding. Integer and pointer arguments use a0–a7; floating scalars use fa0–fa7 while available. A named C record flattening to one or two floating leaves, or one floating leaf and one integer or pointer leaf, uses the corresponding independent banks if the whole flattened value fits. Flattening includes nested C records and arrays at their actual byte offsets. When either required bank cannot fit, the whole value falls back to integer transport without consuming the floating bank. Other values through sixteen bytes use one or two integer chunks. An integer value needing two carriers can split between a7 and the stack. Larger C records pass a pointer to a caller-owned copy. Integer scalars narrower than 64 bits extend according to their signedness to 32 bits and then sign-extend to 64 bits, including unsigned 32-bit values. Floating register values narrower than 64 bits are NaN-boxed. Stack arguments occupy whole eight-byte slots, naturally aligned to at least eight and at most sixteen. Results use the same classification in a0–a1 or fa0–fa1. An indirect result consumes a0 as an implicit first argument; its address need not be returned. Copies stay within the actual object extent. Every Landin frame keeps x8 as the entry CFA, the saved return address at CFA−8 and previous frame pointer at CFA−16. x0, x1, x2, x3, x4 and x8 are unavailable to ordinary assembly operands; integer operands use canonical xN names, with general selecting caller-clobbered registers. Named callee-saved registers are preserved; their raw ABI aliases identify those same registers, and only caller-clobbered floating registers may be named without float operands. C signature, C record and outgoing variadic-call capabilities are enabled explicitly for this ABI.

Cortex-M firmware's AAPCS32 (D920) places arguments in r0–r3 in four-byte words and then in the outgoing area, which the caller keeps eight-byte aligned. A scalar or layout(c) record takes the next words that hold it; a record that does not fit splits between the remaining registers and the area while nothing has gone to the area yet, and once one argument is there every later one is. A value aligned to eight, an i64, u64 or f64 or a record holding one, starts at an even register and at an eight-byte offset of the area. The caller extends a narrow integer argument to a word, and the callee a narrow result. A record result of up to four bytes returns in r0, an eight-byte scalar in r0–r1, and a larger record through a hidden address in r0, which takes the first argument register. With a description's float unit the VFP variant (D616) passes an f32, an f64 and a record of one to four of one of them in s0–s15 instead, and returns one in s0–s3 or d0–d3. Copies stay within the actual object extent.

RV32 firmware's C ABI is the RISC-V psABI's soft-float ilp32 (D660, D677): little-endian, 32-bit pointers, int and long, and no floating-point registers, so f32 is one integer word and f64 two. Scalar alignment is natural, an eight-byte scalar at eight, and the stack is kept 16-byte aligned. Arguments use a0–a7 in four-byte words: a value of up to eight bytes, scalar or C record, takes one or two, low word first, and splits between a7 and the stack when one register is left; a larger C record passes a pointer to a caller-owned copy, and a larger result comes back through a hidden pointer in a0. Stack arguments occupy four-byte words, aligned to their own alignment up to sixteen. An unnamed eight-byte argument takes an even register pair. Every Landin frame keeps x8 as the entry CFA, the saved return address at CFA−4 and the previous frame pointer at CFA−8. The planner holds this convention to GCC's (D677); C signatures, records and variadic calls stay disabled on RV32 (D920).

A final , ... after at least one fixed parameter marks a variadic C signature. It is not [0960]'s ! .... Variadic calls use only positional arguments, including their fixed prefix, evaluated in written order. Their unnamed tail admits scalars, pointers (including named optional unions) and fixed C callbacks, not aggregates, arrays, slices, atoms or erased values. Outgoing direct and indirect calls promote unnamed f32 to f64 and bool/narrow integers to C int; untyped integer and floating literals take i32 and f64 respectively. Other admitted tail identities remain unchanged. SysV calls supply the ABI's SSE-register count; Darwin places every promoted unnamed argument in an eight-byte stack slot; standard AAPCS64 assigns them as named arguments. RISC-V LP64D assigns the promoted unnamed tail by the integer convention, including floating-point bit patterns; after one unnamed argument goes to the stack, all subsequent unnamed arguments go to the stack. AAPCS32 calls no variadic function yet: a variadic C signature is refused there, and a fixed-arity C function that makes the call is imported instead (D922). Fixed arguments retain their declared types. Variadic C function values may be stored and called in Landin, but a C callback parameter, result or record field must have a fixed signature. A native Landin definition that receives varargs is refused: incoming entries require a generated C adapter with an explicit extraction schema rather than an untyped Landin va_list. No declared or inferred Landin error set, exception unwinding, or longjmp across Landin frames is part of this boundary.

Header processing belongs to Clang, which the deterministic binding generator refine bindings asks for a header's AST (D820); no compilation reads a header. The generator contract covers declarations and C adapters for integer-backed enums, untagged unions, bitfields, globals, thread-local access, nullable callbacks and schema-defined incoming varargs. It does not introduce native C union, bitfield or TLS grammar. Policy supplies missing nullability, origin, retention and adapter choices, not handwritten replacement signatures. Nullable callbacks require a genuine code-pointer adapter representation, never a pointer to a function-value cell. Selected extended/x87 or 128-bit scalars, complex, vector, atomic or volatile types, old-style or non-C-calling-convention functions, packed, overaligned, flexible or zero-size by-value records, anonymous unaliased declarations, unsupported arrays, unsafe, stale or missing policies, and unsupported va_list forwarding receive explicit generator refusals rather than guessed layout or a fallback ABI. Enums, unions, bitfields, globals and TLS, nullable callbacks and bounded incoming-varargs schemas cannot be refused wholesale as a completion shortcut. This rule states the generator's contract; it is not a claim that its implementation or differential evidence is complete.

A known integer-to-pointer construction whose value is zero after target usize conversion is refused, including a closed folded expression. A dynamic construction tests the converted address for zero and traps before producing a pointer; this check remains in unchecked. Integer construction still loses origin, not non-nullness. Foreign nullable data pointers use a named one-atom pointer union and exhaustive match. Absent allocator backing uses that same ordinary union discipline, never a forged ptr(0) or ptr(1) allocation. core/mem.detach reports not_empty for a nonempty prefix and empty for already absent backing; a successful release clears backing to its atom.

Foreign failure detail is ordinary explicit state. platform/posix reads the errno after a documented libc failure indication on Darwin and FreeBSD, through platform/libc's errno_cell before any other host call, and on Linux takes it from the failing system call's negative result (D279); either way it reaches hosted/system or a provider built over it, hosted/blocking, as an atom of posix.errno with its number (D298). Each retains the exact terminal value in the last-error cell the system handle names, exposed by system.last_errno and blocking.last_errno: the process's private cell for a handle from system.new() or blocking.new(), or a caller-declared system.space for one from system.over or blocking.over (D288, D476). Safe interrupted open/read/write attempts may retry; completed read/write progress is never replayed. Close consumes the handle even on failure and is never blindly retried, including EINTR. These facts neither add payloads to error atoms nor make errno a public Landin variable.

The hosted argument root belongs to platform/posix, which defines the public C-convention routine _landin_host_initialize_arguments with the signature (count: i32, escaping values: ptr ptr u8, escaping environment: ptr ptr u8) -> none, which C declares as void _landin_host_initialize_arguments(int argc, char argv, char envp); under the platform symbol prefix. When a hosted entry is selected and the program defines a C routine with that link symbol, the selected no-argument Landin entry calls it with the actual incoming C carriers, argc, argv and envp, still in the first three argument registers, before its source body runs; a program that defines none calls nothing. Beside a hosted entry every declaration carrying that symbol must be exactly extern(c) (i32, ptr ptr u8, ptr ptr u8) -> none, whatever its escaping markers, or it is refused. The environment table is retained beside the argument table without copying, a null table meaning an empty environment, and an identical repeat must repeat all three carriers. A C-owned startup that drives public C-convention Landin routines calls it explicitly before system.new() or blocking.new() can mint an argument-table capability and before starting any thread that may do so. Merely importing core/io does not perform initialization, and file, stream and heap work, which needs no argument root, may run without it. Ordinary exports and callbacks never initialize, replace or reset this state.

The host I/O and heap constructors are public, zero-argument library routines. Any ordinary hosted routine can call them; hosted argument services still require the startup described here. Constructor use is not restricted to the entry point or to a routine that received a capability argument. A routine's parameter list therefore records supplied capabilities, not an enforced upper bound on host I/O or allocation in its call tree [1660] [1680]. For a call tree that uses only its supplied providers, a caller can substitute an in-memory world or bounded allocator without changing that code. Establishing that premise requires inspecting the called code; a signature alone cannot establish it, including for code offered as untrusted.

The first call requires a nonnegative argc and non-null argv and retains that exact pair as the one argument root. It allocates and copies nothing: the C owner must keep the argv table and every argument it names readable for the whole lifetime of every Landin world, view and callback derived from them. A later call with the identical count and pointer is harmless; a negative count, null table or attempt to replace either part of the established root traps. system.new() and blocking.new() trap before initialization. The published user table begins at argv + 1, its count is max(argc - 1, 0), and indexed lookup traps on a null entry within that count.

The compiler names no other host routine, except that a static Linux link enters the program at platform/linux's _landin_start (D280). The public module platform/libc declares the C library beneath the hosted providers as ordinary extern(c) imports: open, read, write, close, strlen, malloc, free, stat and the calling thread's errno cell, with the constants and records whose values differ between systems selected by compiler.os and the C ABI. These are library declarations, not privileged language operations, and the compiler reserves none of their names. On Darwin and FreeBSD, hosted/system and hosted/heap reach the host only through them. On Linux they reach it through the public module platform/linux, which declares Linux's system calls in source as ordinary assembly blocks and owns the process entry _landin_start (D279); a hosted Linux executable links statically by default, with no C runtime or library, and --link=libc links C's runtime instead (D280). hosted/system turns descriptors and pointer-and-length argument views into ordinary values and maps foreseeable host failures onto declared atoms; it opens and closes files and names the streams but reads and writes none, so it is no world (D476). hosted/blocking, built over a system handle, reads and writes, and threads its world(provider) concept as the authority for opening files and touching streams [1660] [1680]. The required world.write_some reports counted progress for one attempt, with no transfer on failure and no host call for an empty slice. world.same_file follows path aliases and compares file identity before any destructive output open; a missing output returns false, while failed input lookup or other output lookup failures refuse. It assumes stable names, rather than providing race-safe output opening. D153 states these ordinary library contracts and their provider obligations, and D276 the boundary that replaced its compiler-emitted bridge.

1990

Firmware and machine directives have explicit target contracts

D229 enables the constrained Cortex-M0 firmware path. The request selects --target=cortex-m0 --firmware-entry=NAME and an assembly or executable output. NAME is a source declaration in the entry module, not a linker symbol or a hosted main convention. It must identify one defined, nongeneric ordinary () -> none or () -> noreturn routine, or a naked () -> none routine, with no declared error outcome. Source duplicate names, missing entries, invalid signatures and duplicate request options are errors. Entry selection does not require public. A different explicit link(symbol: text) does not change which source declaration is selected. Hosted entry and linkage rules remain [1970]/[1975].

The image follows the profile the program's device description selects (D542, D543): its regions, where each part of the image is placed, its stack and its vector table. A program that imports no description is given the constrained reference profile, platform/cortex_m/reference: 32 KiB flash at zero and 16 KiB RAM at 0x20000000, the initial SP 0x20004000, aligned to eight bytes, the upper 4 KiB of RAM reserved for stacks, so static RAM ends no later than 0x20003000. That is a constrained test profile, not permission to use a board's larger flash. The firmware request refuses a compiler-framed routine when its known frame alone, including saved registers and reserved homes, exceeds the selected stack reservation. This does not bound total stack use across calls or interrupts; those paths remain programmer obligations. The compiler creates the profile's vector image, as many words as its description counts, aligned to its length rounded up to a power of two and no less than 128 bytes, at its boot address (D545). An rp2040-boot2 image begins instead with the description's second stage, the naked routine it marks link(boot_stage), assembled into the 256 bytes before the table and sealed with the boot ROM's checksum in their last four (D587, D588). An rp2350-image-block image's table is followed directly by the IMAGE_DEF block its boot ROM searches the first 4 KiB of flash for (D637, D638). Its first two words are the initial SP and compiler reset function. The slots a handler may take are the profile's (D544): its core's architectural exceptions and 16 + IRQ for each interrupt its description names; every other slot is zero, which in the reference is core slots 4–10 and 12–13 and slots 21 and 42–47 of its 48. Other unspecified handlers enter the compiler's terminal unhandled-exception loop. There is no VTOR relocation, exclusive-access primitive or priority grouping. A Thumb-2 level selects its own instructions: hardware division (D255), the long multiply (D605) and, at armv8-m.main, acquiring loads and releasing stores (D606). With a float unit (D615) an exception taken in a float context stacks the extended frame (D618), and a fibre's context holds d8-d15 and FPSCR (D620); without one there is no FPU frame.

On rv32 (D660) the image begins instead with its entry word, _landin_firmware_entry, a jump to compiler reset, and the table follows at the first address its alignment allows, one jump per slot (D662, D686). Reset clears mstatus.MIE, writes mtvec as the core's interrupt model needs, sets sp to the stack's top, copies and clears as below, fences, sets MIE and calls the entry. A handler is entered through compiler-owned code (D680): a stub saves ra, t0-t6 and a0-a7 and calls an extern(interrupt) routine, which is an ordinary routine, and its unwind rules return to mepc; a naked routine is jumped to from a slot the hardware enters and owns its mret; there is no nesting. The unhandled loop first records mcause, mepc, mtval, the interrupted sp and a count in _landin_firmware_trap_* cells a probe reads as memory (D656). A description's stage runs from the entry word, before reset (D684), and an esp-app-image profile's executable is followed by the image its ROM loads, OUT.bin (D683, D685).

Reset masks configurable interrupts, initializes reserved r9 and the root r11 to zero, and, when the description has a float unit (D615), gives CP10 and CP11 full access in CPACR followed by DSB and ISB, before anything can execute a float instruction, leaving lazy stacking at its reset default (D618). It then copies text and read-only data a description places in RAM (D1359), then initialized RAM data and RAM code, each from its load address, skipping a copy whose source is already its destination, and clears BSS. --firmware-layout=ram derives an in-place SRAM image instead of the default boot image (D900); a debugger establishes the core and device state before entering its startup. DSB and ISB precede unmasking and transfer to the selected entry. It does not call user module initializers [1460]/[1940], construct a hosted environment, allocate memory or run a scheduler. This reset contract assumes execution through the hardware reset vector, with no NMI or fault during initialization; a custom NMI/HardFault handler cannot assume initialized storage before reset has completed it, nor, where reset copies the text, that its own code is there yet. D232 routes ordinary entry return and failed language checks to the selected panic handler, or the terminal default. Naked fallthrough retains its undefined-instruction guard. Hardware faults retain hardware fault dispatch; no failure is returned to a nonexistent hosted caller. none remains absence of a result, not the distinct noreturn return form (D231).

extern(interrupt) and extern(naked) are distinct structural function conventions, separate from ordinary and C functions. Definitions are nongeneric, have exactly () -> none, and declare no error set. Machine conventions are also available in function types. Values retain that exact convention through assignment, parameters, aggregates and generic matching. Taking their function value is allowed; converting to ordinary/C convention or calling it with ordinary source call syntax is refused. A vector reference is a machine entry, not such a call. Interrupt bodies may call ordinary functions and must handle any declared failure locally. Traps still trap. There is no implicit keep attached to either convention.

On exception entry ARMv6-M saves r0–r3, r12, incoming LR, return PC and xPSR on the interrupted stack, adding the architectural alignment word when needed. With a float unit, an exception that interrupts a context with an active float state stacks ARMv7-M's extended frame, s0–s15, FPSCR and a reserved word as well, whose space is reserved and filled lazily (D618). Handler mode uses MSP; thread mode may use MSP or programmer-established PSP. Ordinary and interrupt routines preserve each r4–r7 register their emitted instructions use, and with a float unit d8–d15, which only an assembly block can name, so a framed routine that holds one saves all eight (D617). An ordinary routine with no calls, no inline assembly, and no transient stack changes may use SP-relative homes, leave r11 and LR untouched, and save only the low registers it uses. Other routines construct a previous-r11/incoming-LR eight-byte record before publishing r11; they also save the low register used to carry r11 and round the low save area for eight-byte call alignment. r8 and r10 are untouched, r9 remains reserved, and a published r11 is restored. Incoming LR in an interrupt record is EXC_RETURN, not a code address. The epilogue uses BX LR; the hardware restores volatile state, flags and the interrupted stack. 0xfffffff1, 0xfffffff9 and 0xfffffffd are respectively supported returns to a handler, a thread using MSP, and a thread using PSP; with a float unit 0xffffffe1, 0xffffffe9 and 0xffffffed are the same three returns from an extended frame, and the epilogue's BX LR takes either. The NVIC implements four programmable priority levels (the upper two priority bits), with fixed NMI/HardFault priorities and no priority grouping. Higher-priority interrupts may nest; same/lower priority ones remain pending. PRIMASK masks configurable exceptions, not NMI/HardFault or DMA. The compiler adds no interrupt masking around source memory events. Eight-byte alignment at ordinary calls, callee saves, no red zone and the private r12 zero-success/nonzero-failure outcome are unchanged. Zero is not added to any ordinary source atom domain.

A naked body consists of one assembler.block statement. It has no compiler frame, saved registers, local bindings, ordinary source calls, source branches, cleanup or implicit return. Its text may contain labels, explicit branches and machine return instructions; an appended trap handles fallthrough. The programmer owns stack selection, alignment, callee saves, r9/r11 obligations, LR/EXC_RETURN and any calls written in the assembly. A naked selected entry runs after compiler reset initialization; it does not replace the reset loader. This is the explicit exception to [1550]'s frame guarantee. It does not permit an ordinary routine to omit its frame.

assembler.block takes a quoted or raw fixed text literal in a routine body, optionally followed by operands [1630], and nothing else: D1662 removed the positional value that once followed the text, and the parser refuses one, which the grammar derives as an ordinary argument. The fixed text is not a runtime argument. D248 records the operand form. [1820]'s arguments derive operands after any call's positional arguments, because which callee a name denotes is not the grammar's to say; the checker refuses them on every call but assembler.block. A module tool directive takes expressions only.

An operand is in name: type at register = expression, inout name: type at register = expression, out name: type at register or out _ at register. Its name is its {name} template slot and, for an output, its result field; it declares nothing any scope can see, and two operands of one block cannot share a name. Its type is an exact enabled integer scalar no wider than one register of the target, or f32 or f64 (D630): not bool, a pointer, a distinct type or a type formal. An integer is placed at an integer register or general, a float at a float register or float, and a profile with no float registers refuses a float operand. An input is evaluated once, in written order, before the block, in the declared type's context; a narrower integer is zero- or sign-extended to the full register as its type says, and a float occupies its register's low bits at its own width. An output takes the low bits of its register. inout passes its input in and its output out of one register, and its output has its input's type. A block with no named output is none; with one, it is that output's scalar; with more, it is the anonymous aggregate of [0990] whose fields are the named outputs in written order. Binding, assignment, destructuring, discard [1020] and D244 treat that value as they treat a call's.

A register is a name the selected target's table answers for, never text:

Cortex-M0 Hosted x86-64 Hosted arm64 RV64 Linux RV32
instruction text ARMv6-M unified AT&T GNU or Apple arm64 GNU RISC-V GNU RISC-V
integer operand registers r0–r7 rax rbx rcx rdx rsi rdi r8–r15 x0–x17, x19–x28 x5–x7, x9–x31 x5–x7, x9–x31
general chooses from r0–r7 rax rcx rdx rsi rdi r8–r11 x0–x17 x5–x7, x10–x17, x28–x31 x5–x7, x10–x17, x28–x31
float operand registers d0–d15 with an FPv5-D16 unit (D615), else none xmm0–xmm15 v0–v31 f0–f31 none
float chooses from d0–d7 with the unit xmm0–xmm15 v0–v7, v16–v31 f0–f7, f10–f17, f28–f31 none
every ordinary block overwrites r0–r7, flags, and with the unit the float row and FPSCR's flags the general and float rows, flags the general and float rows, flags the general and float rows the general row
saved by the routine when a block names one d8–d15 with the unit rbx, r12–r15 x19–x28, v8–v15 x9, x18–x27, f8, f9, f18–f27 x9, x18–x27
never named r8–r15 and their aliases, sp, lr, pc, msp, psp, control rsp, rbp, rip sp, fp, lr, x18, x29, x30 x1–x4, x8 and their aliases; x0 by an operand x1–x4, x8 and their aliases; x0 by an operand

A fixed register is its full-width name; general and float are the two classes, spelled the same on every target, and each asks the compiler to choose a register of its row it does not otherwise name in the block. Every register an operand names is distinct from every other, and a block cannot ask a class for more registers than it has left once its fixed registers and every register its text names are set aside; the two classes count apart. Every ordinary block may overwrite the overwritten row; a register the routine saves must be declared, as an operand or as out _ at register, which is what makes the routine save and restore it. A discarded output names one fixed register. The text writes {name} where an operand's register belongs, spelled at the width its type selects (%eax or %rax, w9 or x9, r3; RV64 and RV32 use their full-width xN name for every enabled integer width; a float register is %xmm3 at both widths, s3 or d3 on arm64, f3 on RV64, and on a Cortex-M float unit s6 for an f32 at d3 and d3 for an f64); {{ and }} are literal braces. Every {name} must name an operand, every general operand must be written in the text, and every register the text names at any width must be declared or overwritten and never be one no block names. Frame pointers, stack pointers, link registers, the platform register and Cortex-M0's reserved r9 are therefore never named, and no register is reserved by the language beyond them. RISC-V's x0, zero, reads as zero and discards every write, so an ordinary block's text may name it as a source or a destination, as in sw zero, 4(t0) or csrrw zero, mscratch, zero; no operand names it, since an input there would be lost and an output would read zero (D1320). arm64's v8–v15, whose low halves AAPCS64 preserves, and RV64's f8, f9 and f18–f27 (fs0–fs11) are declared as the saved integer registers are, at whatever width the text names them: d8, s8 and q8 are all v8, x86-64's ymm3 and zmm3 are xmm3, and on a Cortex-M float unit s16 and s17 are the halves of d8, one of the eight its routine saves. RV64 and RV32 operands use canonical xN and fN names, while raw text may use the ABI's a, t and s aliases and their float fa, ft and fs forms. An alias identifies the same register for declaration checks and exclusion from a class, so naming s1 requires declaring x9 and naming fs0 requires declaring f8. The private failure registers are overwritten: a failure outcome is copied out as its call returns and is never live across a block.

Every block is a conservative read/write, call and trap boundary in IR, on every target: memory knowledge is invalidated and memory operations cannot be moved across it, and it runs exactly once each time it is reached, never removed, duplicated or merged, in order with other blocks, volatile accesses, atomics, barriers and calls. The memory effect is fixed; no block declares a narrower one (D248). This compiler boundary alone issues no hardware barrier and establishes neither device completion nor cache coherence. D227's external-writer obligations remain.

The text is at most 4096 decoded ASCII bytes, or 32768 in a naked Xtensa body (D903), using LF, horizontal tabs and printable characters. Every rule below reads a line without the blanks and tabs around it (D1054). A line may end in the selected target's own line comment, from its marker to the end of the line: @ on Cortex-M0, // on arm64 and # on x86-64, RV64, RV32 and Xtensa, the spelling that target's GNU or Apple assembler reads (D597). In an ordinary and a naked block alike the comment is removed before any other rule reads the text, so nothing in it is an instruction, a register, a label or a {name} slot, and the emitted assembly does not hold it. Every other comment form is refused, naming the target's own: /*, another target's marker, and on Cortex-M0 and arm64 a line that begins with #. A number is the assembler's syntax and takes no digit separator; the refusal names the number to write. Directives, statement separators, labels and symbol assignments are refused in an ordinary block, which is straight-line: it cannot branch, call, return or change control mode, on x86-64 behind an instruction prefix or in a far form either (D1117), except that Cortex-M0 svc enters the SVC exception handler at vector 11. That handler decides whether execution resumes after svc; this exception does not admit other control transfers in an ordinary block. At the default armv6-m level the accepted spelling is a bounded subset of ARMv6-M unified assembly; its instruction allowlist is an implementation limit, pinned by the machine checks. At the Thumb-2 levels, armv7-m, armv7e-m and armv8-m.main, the checker retains the text and straight-line restrictions, and the assembler enforces the selected architecture's instruction set. UDF and BKPT are refused in ordinary blocks at every level because they enter exception handling. Naked blocks additionally admit labels, branches, BL/BLX/BX, PUSH/POP, UDF and the MSP/PSP/CONTROL system registers, and take no operands. CPS changes PRIMASK at every level and may change FAULTMASK at a Thumb-2 level; barrier operands are sy or omitted. BASEPRI and FAULTMASK system registers are available at those higher levels. Unsupported system registers remain refused. On hosted x86-64, arm64 and RV64 the checker refuses control transfer by mnemonic and leaves which instructions exist to the platform assembler. The system call, x86-64 syscall, arm64 svc and RV64 ecall, returns to the next instruction and is not a control transfer there (D281). RV32 reads RV64's rule, except that firmware's wfi resumes at the next instruction and is admitted, and its ecall, an exception that enters the unhandled loop, is refused (D670). Unencodable operands and instructions remain explicit assembler failures under the pinned flags, never a target upgrade. Assembly must not overwrite compiler spill or frame storage, saved registers or immutable source storage through an indirect address, leave the stack pointer changed, on x86-64 leave the direction flag set, or leave a float unit's rounding mode or exception flags other than it found them: x86-64's MXCSR, arm64's FPCR and FPSR, RV64's fcsr and a Cortex-M float unit's FPSCR (D630). An instruction's implicit register effects are the programmer's to declare, as cpuid's write of rbx is. Arbitrary machine text cannot prove those obligations.

This compiler lowers ordinary assembly on every implemented architecture. The shorthand form retains its Cortex-M contract, and naked routines retain theirs on Cortex-M. Naked routines are admitted on hosted x86-64, arm64 and RV64 as well: their text is verbatim, keeps the uniform text rules but may transfer control, takes no operands and is followed by a trap (D279). The synthetic target has no registers and refuses assembly outright.

Placement is a declaration annotation: link(section: text, align: integer, vector: integer, keep, symbol: text, region: text). Only supplied attributes apply, and duplicate attributes/annotations are errors. Section names are at most 80 ASCII letters, digits, underscores or dots, with a nonempty suffix. Functions select .text.* (flash) or .ramtext.* (RAM execution with a flash load image, in a region code runs in, D688); immutable data selects .rodata.*, mutable data .data.* or .bss.*. An explicit BSS initializer must be zeroed or the integer literal 0. Compiler .landin_ section names are reserved. Alignment is a decimal power of two from 1 through 256 and is a minimum placement alignment; type layout and alignof do not change. Alignment and vector indexes use decimal integer literals, with the ordinary digit separators allowed; nondecimal prefixes and computed expressions refuse. Without a section annotation every datum/routine has its own input section; mutable zero images use BSS and immutable images use flash.

keep marks the containing input section as a retention root. Naming the same section deliberately coalesces its objects, and keep on any of them retains that section. Relocations from retained sections retain their targets. Unreferenced sections are garbage-collected. Symbol linkage does not itself retain a section. Cortex module data may give one explicit ASCII identifier as its symbol; symbols cannot collide with other explicit declarations or compiler startup/private Arm helpers. Function symbol spelling retains [1975]'s existing rules. Ordinary and C aggregate layout do not change.

vector: N associates a defined interrupt/naked routine with one unique exception slot the selected profile implements (D544): in the constrained reference 2, 3, 11, 14, 15, 16–20 or 22–41. Slots are absolute vector indexes, not IRQ numbers; external IRQ n is slot 16 + n. region: text places the declaration in a region of the selected description (D547), and boot_stage marks a description's second-stage boot routine, which its boot kind places (D587). Zero, reset, reserved slots, duplicates and ordinary/C routines are refused. Emitting such an annotation requires an explicit firmware-entry request. The compiler-owned kept vector image carries a relocation to the handler; an unreferenced interrupt routine without keep can still disappear. Thumb function relocations retain bit zero; data addresses are not tagged as code. Linker-defined startup addresses distinguish load from execution locations. Existing static function/text-address images remain relocations, not calls or user-code initialization. The compiler does not enable an arbitrary source initializer referring to a linker symbol; fixed assembly can name the documented _landin_firmware_* startup symbols.

Executable emission retains assembly, object, compiler-generated linker script, ELF and map as explicit outputs; --linker-script=FILE links with a developer's script instead, held to D546's contract. The driver passes each host effect through Landin.Platform, checks output/source aliases before writes, uses ARMv6-M Thumb/AAPCS soft-float assembler flags with fatal warnings, and links with no hosted startup, default libraries or libc. Only the selected private thumb/v6-m/nofp/libgcc.a helper closure is admitted. This does not enable the general C source surface. The derived script checks flash bounds, static RAM/stack overlap and the vector address/size; unresolved symbols and relocation or encoding failures remain reported tool failures. Before emission the program's static images are held to the selected profile's capacities (D537): every written image, including one section GC would drop, to the region text is placed in, 32 KiB in the reference, or the vectors' when reset copies the text (D1359), and every mutable written image to the data region, 16 KiB in the reference. The linker stays the authority for the map itself. Hosted placement annotations, arbitrary section addresses, weak symbols, inline hints and general tool directives remain explicit refusals. No request is silently ignored.

1995

A stack switch resumes another stack, and every frame checks its stack

[1675] teaches fibres through core/fibre and leaves unsaid what the two stack builtins under it do, where a fibre may lose the core and what a routine owes the stack it runs on.

compiler.stack_prepare(stack, entry, argument) takes a []mut u8, a function value of type (argument: usize) -> noreturn and a usize, and gives the usize stack pointer a later switch resumes. It aligns the top of stack down to the target's call alignment and lays a first frame that, when resumed, calls entry(argument), ends the frame-pointer chain and its unwind information there, and holds the stack's limit: the slice's base plus the target's margin. A slice too small for that frame and the margin traps stack_exhausted. compiler.stack_switch(save, resume) takes a ptr mut usize and a usize. It saves the callee-saved registers, the frame pointer and the current stack's limit on the current stack, stores the stack pointer through save, resumes the context resume names with its limit, and returns when something resumes the saved one. Each evaluates its arguments once, left to right (D450, D472). On Cortex-M0 a prepared stack runs on the process stack pointer and the saved context records which stack pointer it resumes (D460). Both are admitted on every target with a native backend and on no other; an argument outside this contract, or a target that does not admit them, is L0344 (D453).

A switch is a full compiler memory boundary: no ordinary access is carried across one in a register. A fibre gives the core away only inside a call to an entry of the provider that runs it, and a provider states which of its entries may switch; one that does not wait never does. The fibres of one provider are one CPU execution context in D227's sense, a switch is sequenced-before within it, and a fibre does not move between threads. Threads are not a provider of core/fibre's concepts (D446).

In a program whose whole program holds a compiler.stack_prepare, every ordinary routine compares the stack pointer less its frame with the current stack's limit after its frame record and before it reserves its frame, and below it traps stack_exhausted at its declaration's site, with nothing of its frame written; a call area larger than the target's unchecked figure is checked the same way. The stack the program started on has no limit. A call-free routine whose frame is within the unchecked figure, a naked routine, the selected panic handler and, on Cortex-M0, an interrupt handler are not checked; the margin pays for what runs below a checked frame (D471, D472). A program with no compiler.stack_prepare has no check, and its code is unchanged. stack_exhausted is core/panic's fifth kind, and D232's handler takes the five-atom domain (D451).

The current stack's limit is the running thread's: on Linux and FreeBSD a word of its thread storage [1996], on Darwin the slot of a pthread key the program makes before Landin code runs and reads directly, and on firmware one cell (D497, D506). A thread whose limit is zero, the one the program started on and a C thread calling into Landin, never traps until a switch installs a prepared stack's. On static Linux the routines that make the first thread's storage, platform/linux's _landin_start..., run before the thread has a thread pointer and are not checked (D504). Off Linux, the default report claims one latch before it moves to the report stack that every thread shares, and a thread that finds the latch claimed writes nothing and waits for the process to end (D498, D507).

1996

Each thread has its own instance of thread storage

[1610] and [1640] say what a link annotation names and places, and nothing of threads. link(thread) before a module binding gives it one instance in every thread (D496). A thread's reads and writes, its addr and its inout arguments reach that thread's instance and no other; the instance begins zeroed when its thread begins, so the binding is mut, takes no value and has a type with a zero image (L0347, L0328). It places no routine and takes no symbol or section, which would name or place one instance for every thread (L0347). Every name of a shared binding is placed. On a hosted target the instance is in the system's thread storage: ELF thread-local storage in the local-exec model on Linux and FreeBSD, laid by platform/linux's start in a static Linux program and by the C library otherwise, and Darwin's thread-local variables. On firmware it is ordinary module storage, which interrupt handlers share as they share any.

An instance's address is valid while its thread runs, which is as long as any frame of that thread lives, and the origin rules treat it as a module binding's: it may be passed, returned and kept in the thread's frames, and in its thread storage only as an integer, since thread storage holds no pointer (L0328). A store of it, or of a reference the body took from it, into a module binding without link(thread) is refused, since every thread reads that binding (L0314, D772). Keeping it anywhere else another thread reads it after the thread has ended is the program's to avoid, as for any pointer a thread hands another (D505).

The decisions this document took

A rule above is one of two things, and a reader cannot tell them apart by reading it: a transcription of something tour.md already decided, or a decision taken because the tour said nothing and an implementation could not proceed without one. The decisions are listed here with what the tour said before, what was chosen, and what a competent reader could have chosen instead — because a decision written in the same voice as a transcription looks like it was always there, and [1050] was missed twice by a reader who assumed exactly that.

A decision leaves this register only when new evidence closes it: a program that cannot be written, a target that cannot be reached, or a paragraph of the tour that turns out to have settled it after all. Completed implementation does not remove a decision, because its alternative and fixture remain useful review evidence. The history records the delivered vertical slice; this register does not repeat its implementation diary.

The register is the fourteen sections that follow, and they are the subjects tour.md teaches, in the order it teaches them, so a question about arrays is answered in one place whichever document it is asked of. It was chronological until the documents were reorganised by subject, which is why the numbers now run out of order: D1 and D2 are scope decisions and sit beside D233, which was taken far later. Within a section, too, related decisions sit together whatever their numbers. A heading is a stable citation target, and nothing that cites one has to know where it sits.

Decisions: Declarations, names and scopes

What a declaration introduces, which scope holds it, and which words no declaration may use.

D1 — A named return lives in the signature scope

The tour said that a named return is assigned like any other place and that return leaves [1810], and that every named return must be assigned before the function returns [0930]. Neither says which scope declares it.

Chosen: the signature's, beside the parameters [1840]. So f: (r: u32) -> (r: u32) is one name declared twice in one scope, and the body can assign the return from inside any arm.

The alternative: the body's scope. Then a parameter and a return could share a name, and the body would shadow the return rather than assign it.

Pinned by negative/return-shares-a-parameter-name.

D2 — Each arm of an if is its own scope

The tour said nothing. [0140] permits an inner scope to shadow an outer name and [1090] says a bare block is for scoping, but a bare block is not in the kernel and no paragraph says an arm opens a scope. The sentence that now says so is in [1840] and was written here.

Chosen: every arm and the else is a scope, and they are siblings. A name declared in one arm is not visible in another, nor after the branch closes.

The alternative: one scope for the whole body, so a binding in an arm outlives it. Defensible, and it is what a language without block scoping would do — but then two arms could not use the same local name, which is the commonest thing a branch does.

Pinned by positive/arm-scopes-are-siblings, negative/name-from-another-arm, negative/name-after-the-branch-closes.

D10 — A module binding with no value holds zero

The tour said that a binding may carry no value and must be assigned before use [0080], and that values at module level must be known at compile time [1460]. Neither says what one with no value holds, and the two do not combine: [0080]'s "before use" is a rule about paths through a body, and [1460] says nothing runs before the entry point, so at module level there is no path and no moment in which an assignment could happen.

Chosen: zero, and false for a bool [1940]. Reading one before anything writes it reads zero. positive/binding-declared-only stays a positive fixture, and mut counter: u32 is module state a function updates.

The alternative: two, and both were defensible. Refuse a module binding with no value, on the strict reading that no value is not a known value — which is tidy, and costs mut counter: u32 = 0 at every declaration of module state, where the = 0 says nothing a reader did not know. Or keep the declaration and refuse the read, which is [0080] taken literally — but at module level "before use" is a question about which function runs first, and that is a whole-program analysis this specification does not have and the kernel is not equipped to answer.

Pinned by positive/binding-declared-only, positive/module-binding-with-no-value-reads-zero.

D218 — A local's written type precedes its own name

The tour said that the left of : introduces the name and the right supplies its type or value [0110]. [1840] explicitly put the initializer before the new binding. It did not settle the written type's lookup scope; the ordinary-local implementation installed the name first, unlike D185's condition-binding implementation.

Chosen: an ordinary local's written type and initializer both resolve in the incoming lexical scope, before that local is introduced. This includes names nested inside reference types, fixed-array bounds and generic actuals, and applies with or without an initializer. A local may therefore shadow an enclosing type or fixed formal while using it in its own declared type. mut t: t = value uses the enclosing t for the type; following statements see the new runtime binding. An absent enclosing name is still unknown, and an already declared local in the same block still makes a duplicate.

This agrees with D185's condition bindings. It does not change collected module or signature scopes, enable local type declarations, or make a name visible in its own initializer. A generic body resolves the outer type/fixed formal's identity before concrete substitution, just like its other uses.

The alternatives: introducing the local before resolving its type makes its spelling hide the very type or fixed bound being declared. Retaining that rule only for ordinary statements makes the equivalent condition binding behave differently. Resolving all names against the enclosing block would instead lose earlier locals from the incoming scope. All are declined.

Pinned by positive/r491-local-type-scope, including a generic list-element copy derived from prototype 3, negative/r491-local-self-reference, negative/r491-local-self-initializer, negative/r491-local-shadowed-type, positive/condition-declarations and negative/condition-declaration-body-shadowing.

D225 — Control words are reserved everywhere

complete and with withdrawn by D1651. Both left the keyword production with the forms that used them, and are ordinary names; the rest stands.

The discrepancy: [1760] reserved if, then and end, while other already enabled control forms still used identifier tokens. An earlier review repair first fixed declarations and assignments under that contextual contract, but ordinary expression reads remained ambiguous. The intended language rule is that a control word cannot also be an identifier.

Chosen: add begin, break, complete, continue, defer, do, for, loop, match, unchecked, undo, while and with to [1760]'s keyword production. Each is reserved in every name position, regardless of whether its control form appears in the program. Parentheses provide no escape. begin = 10 is illegal; an ordinary binding must use another name, such as begin_value. Existing block, match, loop, transfer, completion and cleanup semantics are unchanged. Other contextual words, including of, caller, range and arena, retain their existing rules.

The alternatives: contextual control-word priority plus a parenthesized name escape preserves dual meanings, while broader contextual lookahead must resolve genuinely ambiguous expressions. Reserving the words removes both problems at the lexical boundary. Existing declarations using these words must be renamed; this compatibility change is explicit and supersedes the earlier contextual-name repair and the matching part of D187.

Pinned by negative/r491-reserved-control-assignment, positive/r491-contextual-statements, positive/r491-bare-block-examples, and the parser case control words are reserved. The bounded case covers all thirteen tokens, longer identifiers and forbidden declaration, parameter, result, field, label, member and parenthesized-name positions. The derived parser, container and hosted prototype controls retain their control-flow and cleanup contracts; reservation adds no execution or aliasing rule.

D233 — A shared declaration is one declaration per name, with one initializer evaluation

Superseded by D1656 for bindings, fields and atoms. Each names one thing; a parameter, named-return or payload list keeps the shared form, with the written prefix and type applying to each name as below.

The tour said that several names may share one declaration, the same form field lists already use [0100], and showed public red, green, blue: u8 beside an atom list. Atom lists were enabled; shared bindings, fields, parameters and returns were refused by name until the initializer and convention questions their implementation needs were decided.

Chosen: binding, field, parameter and named_return take [1740]'s identifiers list where they took one name. A shared declaration means the declarations written one per name, in written order, each carrying the complete written prefix — public, mut, link(...), caller, escaping, in, inout or sink — the same type and the same suffix, at or from. A prefix applies only when written before the first name, so (a, inout b: T) is not a shared parameter. An initializer is evaluated once, as the first name's; each later name is initialized with a copy of the first name's value, so mut low, high: u32 = next_seed() calls once and leaves two independent places. A module declaration without a value holds zero for every name (D10); with one, the later names copy the first name's static image. The type, at bounds and from sources are written once and checked once: a type that names nothing is one report and two packed fields at one position are one overlap. Debug information lists every name as the ordinary variable, field or parameter it is.

Two parsing rules follow from the list. A comma followed by names that reach : starts the next named return rather than extending a from list, because [0110] makes the name left of : the one being introduced. A run of names ending at : or := begins a binding where [1800]'s one-token lookahead decides between a statement and a value.

The shared form needs a written type. a, b := e stays L0010 citing [0100], because it reads as a destructuring [1810] and nothing written once could be shared. A condition binding (D185), a type declaration, a type or fixed formal, a function and a variant part keep one name each and meet the same L0010. These are recorded boundaries, and the second note says "this is a recorded source-form boundary".

The alternatives: evaluating the initializer once per name, as though the declaration were retyped, was declined: an expression written once runs once, as [0560]'s repeated expression already does, and duplicated side effects would be invisible at the one place they are written. Refusing initializers on shared declarations was declined as less useful for no less work. Applying a convention only to the name it precedes was declined because (a, inout b: T) would then hold two conventions in one list, while [0100]'s field-list reading gives every name the whole prefix. Admitting a, b := e with a copied inferred type was declined for the destructuring reading.

Pinned by positive/shared-names-in-lists, runtime/shared-declarations-evaluate-once, negative/r491-shared-declaration and negative/shared-type-names-nothing.

negative/shared-packed-fields-overlap and negative/shared-link-symbol-duplicates pinned shared fields and bindings, and left with them (D1656).

D1656 — One name per declaration: a, b: T = v leaves

The tour said at [0100] that a, b: T = v declares each name with its own copy of one value, and D233 made it one declaration per name with one evaluation of the initializer and a shared mut warning. The library and the bindings write none.

Chosen: the form leaves. Each name is declared on its own line, which is what [0100] already said it meant; D233's one-evaluation rule and its shared warning go with it. A parameter, result or payload list keeps its own form. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: keeping it for atom lists in examples, three lines that read as well written out. Declined.

Pinned by negative/one-name-per-declaration, whose fix writes a line a name for an atom list, a module and a local binding and a struct field (D1887, D1888), and positive/shared-names-in-lists, the lists that keep the form. D233 is marked superseded for what leaves.

D1887 — An atom list and a struct block's fields name one thing each

The tour said at [0100] that several names may share one declaration "as fields in a struct already do", with north, south, east, west: atom among its examples. D1656 named bindings and kept parameter, result and payload lists, and did not say which of the two a struct block's field line or an atom list is.

Chosen: both leave with the bindings. A struct block's field line and an atom declaration are declarations, a name a line like every other, and only the three lists D1656 keeps write a, b: T; the declined alternative it records was keeping the form for atom lists. The refusal and its fix are the binding's.

The alternatives: keeping shared field lines and atom lists, which leaves the form in two places D1656's reasoning covers. Declined.

Pinned by negative/one-name-per-declaration.

D246 — A refusal by name says what the form is, not which work decided it

The discrepancy: [1830] required a named refusal's second note to say "which work enables it", and every note printed ROADMAP.md and a work item of the first roadmap, followed by what the item did: recorded the boundary, withdrew the form or transferred it. By the time the first roadmap closed no note was a promise any more. Each named a finished item that had recorded a boundary, withdrawn a form or transferred one to a successor, so the item told a reader nothing the rest of the sentence did not. Pointing at ROADMAP.md for it pointed at a file that no longer holds that item's text. D190 had already had to move one refusal's item by editing a string, and D196 another, because an item finishes long before the diagnostic that names it stops being printed.

Chosen: the second note states what the refused form is: "this is a recorded source-form boundary", "this form is withdrawn; " followed by what replaces it, or "this is transferred to Language evolution". The compiler records that as a standing in each refusal table, a recorded boundary, a withdrawal or a transfer, in place of the item it named, and the Report body writes the note from the standing alone. The first note, the paragraph, the codes L0010 and L0304 and every primary message are unchanged. The construct inventory holds each row with a refusal to explaining it in the row's own disposition, and a transferred refusal's row to naming the successor.

The alternatives: keeping a pointer that outlives its item was declined for the reason above. Naming the decision, D212 or D236, in place of the item was declined: a decision is stable, but it is the reason for the refusal and not what the refusal is, and a reader who wants the reason reaches it from the paragraph the first note names. A fourth standing, "pending", for a construct the kernel will enable was left out because no refusal is one. If one is added, its note says the construct is not enabled yet, and which work enables it stays ROADMAP.md's to say.

Pinned by negative/r491-shared-declaration, negative/arena-block-names-owner, negative/arena-type-names-owner, negative/r491-volatile-pointer, negative/refused-widths-name-their-owner, negative/r740-parameterized-application-boundary and negative/cortex-refused-type-named, whose recorded reports carry the notes, and the parser case shared declarations have a named refusal.

D251 — A warning is the compiler's, never the language's

The discrepancy: [1850] says a rule that permits something does not also warn about it, and nothing in the language defines a warning. The catalogue has had a warning severity since the first slice and no code used it. A lint is a judgement the language does not make; the risk of one is a second opinion that disagrees with the rules, or a verdict that depends on it.

Chosen: a warning is a catalogued code at warning level, raised by the compiler and never by a rule of the language. By default it never refuses a program: the exit status stays 0, and an accepted program is emitted exactly as it would be without it. The observation must follow from facts the compiler already established; an automatic edit is a separate claim. An exact fix is offered only when the compiler can prove that applying those edits preserves meaning and does not swallow comments or neighbouring source. Otherwise the warning carries its observation and explanation without a fix. Shadowing is never warned about, as [1850] says; D1342 later warns of a declaration that takes a predeclared type's name, which hides no declaration of the program's.

Invocation policy lives in refine check and refine compile, not in source syntax. --warnings=default|all|none chooses a baseline. default selects the compiler's recommended warnings, all selects every warning, and none selects none; the two current warning families are both recommended, so default and all currently agree. Repeated --warn=CODE|all, --allow=CODE|all and --deny=CODE|all respectively enable, suppress and enable with error severity. The baseline is applied first, wherever it is written; subsequent controls are applied in their written order, and the last matching control wins. A code must name a live warning in the catalogue: language errors cannot be suppressed or downgraded.

A denied warning fails the invocation with status 1 before artifact production or native tool execution. Its diagnostic retains its code, locations, notes and fixes, and identifies the command-line policy that promoted it. This is a consumer's acceptance policy; the program remains legal Landin. A normally enabled warning has status 0 and does not change generated bytes. Quiet mode only controls progress and does not select warnings. The language server uses the recommended warnings; command-line controls belong to compilation requests and are refused for formatting, queries and server startup.

The first warning is L0326: a local binding declared mut [0060] that no assignment, step, inout argument or mutable view needed, found where the checker's own [1900] check answers from that mut. Its fix removes mut and the blanks after it, never a comment or a line end, and is offered only where those bytes are all that separate the word from the name. Other spacing still permits the warning, without a fix. A shared declaration [0100] is warned about only when none of its names needed mut, because one word serves them all. A module binding is never warned about, because a linked routine or a debugger may write it. The warning runs only on a program the checker accepted and only in a routine body it checked, so an uninstantiated generic says nothing.

L0349 warns about an unused immutable local whose initializer is a direct integer, float, character or boolean literal, including a single negation of an integer or float literal. The checker finds no resolved reference to the binding and offers deletion of its whole line as an exact fix when the binding is alone on that line and has no attached doc comment. Other layouts and commented declarations still warn, without a fix. It does not warn on a shared declaration and only examines a checked routine body. Calls, names, aggregate construction and other expressions are excluded: deleting those could remove work. A module binding is excluded for the same external-use reason as L0326.

The alternatives: no lints at all, which [1850] reads as. That leaves the compiler unable to say what it knows about a program it accepts, and pushes the judgement into a second tool whose rules drift from the checker's. Unused imports were declined as a first lint: an import adds its module to the program and its conformances to the one register [1280], so removing one can change what the program means. Unused immutable locals with an initializer that may do work are still declined: quieting one by adding a discard [1930] would judge that work as wasted. A direct scalar literal has no such work, and deleting its unused declaration is an exact repair where the layout permits one. Requiring every warning to include an edit was the original policy. It hid the same observation when a comment or layout prevented a safe repair. Advisories and explicit invocation controls separate those concerns. Numeric warning levels were declined: they suggest a confidence ordering that these independent checks do not have. In-source suppression was not added: the initial controls belong to the invocation and change no language syntax.

Pinned by negative/mut-never-written and negative/unused-pure-local, which apply the fixes and compile the results clean; negative/warning-advisory and fixes/advisory warnings preserve source, which report without editing comments or multiline declarations; the command and native CLI policy checks; and the codes: of every accepted fixture whose program warns.

D254 — A doc comment is the run of lines directly above a declaration

From [0030] and [1780].

The tour said that a doc comment attaches to the declaration that follows it, and nothing about what "follows" means when a blank line, another comment or code comes between, or when two doc comments are stacked. Nothing read a doc comment until an editor asked what a name was.

Chosen: [2000]. The run of doc comment lines directly above the line a declaration begins on, read top to bottom; anything else on a line, a blank line among them, ends the run, and a doc comment beside code or below a declaration is about nothing. A declaration that does not begin its line, such as a parameter, has none. The language gives a doc comment no other meaning, so this decides only what a tool shows.

The alternatives: the nearest doc comment above, however far, which hands a file's opening comment to whatever is declared first; a blank line allowed between, which makes a section heading the documentation of the first declaration under it; and a doc comment after the declaration on the same line, which [1780]'s line comment already serves and which would make every trailing remark documentation.

Pinned by server/doc comments are the run above and the hover session under compiler/tests/server/.

D381 — A refusal that reached a hiding local names the local and what it hides

The discrepancy: [0140] lets an inner scope shadow an outer name, and [1450] lets a parameter or local shadow an import. Neither said what a refusal says when the shadowing is the mistake. A result named time hid import core/time, and time.duration in a type position was refused as "duration is not declared in any scope this reaches"; a parameter named allocator hid the concept of that name, and any allocator was refused as "allocator does not name a concept". Both pointed at what was looked for and neither at why it was not found.

Chosen: when a use is refused because its name, or a qualified name's prefix, reached a parameter, result or local, and that declaration hides an import, a concept or another module declaration of the same name, the refusal says so: "time here is the result time, which hides import core/time, so time.duration names no type", with the hiding declaration labelled "this hides import core/time". L0201 in a type path, L0301 in a member selection and L0341 in a concept position each do this, and a concept reference that names no concept is one report however many positions read it. Which programs are accepted does not change; L0201 may now carry one secondary label, the hiding local, where it carried none.

The alternatives: refusing the shadowing itself, which [0140] and [1450] admit and the library relies on; a warning on every local that hides an import, which fires on programs nobody misread; and naming only the import in a note, which leaves the reader to find which local hid it.

Pinned by negative/local-hides-an-import and negative/parameter-hides-a-concept.

D1260 — A nearer declaration shadows a predeclared type, whatever it declares

The tour said at [1790] that the scalar and text-view names are predeclared and are not keywords, and at [0140] that an inner name hides an outer one. A type position that spelled one was looked up lexically, but only a type declaration or a type formal found there replaced the predeclared type: a nearer function, binding or parameter of the spelling left the position naming the predeclared type, so x: u8 beside a function named u8 meant the scalar while u8(v) called the function. One spelling had two meanings in one scope, chosen by where it stood.

Chosen: ordinary lexical shadowing. The nearest visible declaration of the spelling is what a type position names, whatever it declares, and one that is no type is refused there with L0338, whose note says that the predeclared type is named only where nothing declares the spelling and that the declaration wants another name. The predeclared type is what the position names only when lookup finds nothing. A function named u8 can therefore not write u8 in its own signature, a local named i64 ends the type's use for the rest of its block, and a parameter named usize ends it for the rest of the signature and the body. Calls and value uses are as they were: they already resolved by ordinary lookup. The library and the examples declared no non-type under one of the sixteen spellings. Besides the two controls that had pinned the asymmetry, one test program did: compiler/tests/darwin/transport.ldn numbered parameters i0 to i9, so i9: i8 followed a parameter named i8, and they are now n0 to n9.

The alternatives: keeping the asymmetry as the rule, with a type position falling back to the predeclared type past any non-type, which lets u8: (v: u8) -> (r: u8) be written and leaves a reader of x: u8 to find out that the nearest u8 is not what it names; continuing the lookup outward past a non-type, which no other name does; and reserving the sixteen spellings, which [1760] declines and D1066 works around for C names.

D1342 later warns at such a declaration, keeping this rule.

Pinned by negative/a-non-type-shadows-a-predeclared-type, whose report is recorded, resolution/predeclared types use lexical lookup and lowering/calls respect resolved declarations, whose functions named as a scalar now write their signatures in other types.

D1342 — A declaration that takes a predeclared type's name is warned about

The tour said at [1790] that the sixteen predeclared type names are in no scope and not reserved, and D1260 made the nearest declaration of a spelling what a type position names, whatever it declares. A program may therefore name a function u8, a local i64 or a parameter usize, and from there on no type position the declaration reaches can name the predeclared type: the next x: u8 is L0338, or, under a type declaration named u8, quietly another type.

Chosen: D1260's rule stays, and L0692, a warning under D251's policy, is given at every declaration in an active configuration whose name is one of the thirteen scalar names or utf8, utf16 or cstring, whatever it declares: a function, an atom, a type, a concept, a module or local binding, a variant case, a type or fixed formal, a parameter, a named return, a pattern, traversal or destructured binding and a call's error name. Like L0684 it is raised only in a program with no error, since a type position the declaration reaches is already L0338, whose note names it. It offers no fix: which name was meant is the author's. This is the one warning about a name, and it is no warning about shadowing in [1850]'s sense: the predeclared types are in no scope, so the declaration hides no name the program declared. Generated bindings already avoid the spellings (D1066), and the library and the examples declared none. D1260's controls keep their declarations: the negative fixture's report holds errors and so no warning, the resolution and lowering cases do not read warnings, and the checker case conversions require one value, which calls user functions named u8 and utf8, now accepts them with this warning and nothing else.

The alternatives: reserving the sixteen names, which [1760] declines and D1066 works around for C; warning only where a type position the declaration reaches spells the name, which the L0338 or the other type already shows, and which misses the declaration a later edit trips over; warning only for declarations that are no type, which leaves u8: type = u16, the most misleading of them, unsaid; and saying nothing, where D1260 left it.

Pinned by negative/a-predeclared-type-name-taken, whose report is recorded and whose program takes each name kind's spelling once, a type declaration among them, and holds a field and a function type's parameter named u8, which declare nothing in a scope and are not warned about.

D1261 — An else binding its block never reads is warned about

The discrepancy: [1030] has two blocks for a call-site recovery, else (e) ... end, which binds the error, and else begin ... end, the bare block as the value, which binds nothing. A reader who knew only the first wrote else (problem) with problem never read, nothing said that the second exists, and D370's repair for statements under a bare else wrote (problem) itself, so the compiler's own fix produced the unused name.

Chosen: L0684, a warning under D251's policy, at an else (name) whose block has no reference to name. Its note names the forms that bind nothing: else begin ... end runs a block and else value stands in for the result. _ = name is a reference and silences it, as it must stay legal. One place is exempt: in the arm of an if, an else with no name is the if's own [1820], so the name is what makes the recovery the call's, and nothing is said. Like L0326 it is raised only in a routine body the checker checked and in an active configuration. It offered no fix: replacing (name) with begin is the edit, and D1341 later proves it and offers it. D370's repair now writes begin, the block the statements written under the bare else already fit, and its message names that block.

The alternatives: saying nothing, where it stood; refusing an unused binding, which makes a lint a rule of the language against D251; a new block form after a bare else, which D370 declined and which the grammar does not need, having else begin; and warning in an if arm too, where the only repairs are parentheses round the call or the name the warning objects to.

Pinned by negative/unused-else-binding, whose report is recorded and whose program holds each exempt form, and negative/statements-after-a-bare-else-name-its-binder, whose fix the fixes suite compiles clean, without a warning.

D1341 — L0684's fix writes else begin for the unread binding

The discrepancy: D1261's warning named the form that binds nothing and offered no edit, so an editor showed the warning with nothing to apply, and every else (problem) the warning found was retyped by hand.

Chosen: L0684 carries one exact fix, which replaces the bytes from the end of else to the binding's ) with begin: else (problem) ... end becomes else begin ... end, and the one-line else (problem) 0 end becomes else begin 0 end. It is exact under D251 because the warning is raised only where no reference in the block names the binding and the program has no error, so the bare block runs what the bound one ran and every name in it means what it meant; the if arm where leaving the name out would hand the else to the if [1820] is never warned about. The fix is offered only when the replaced bytes are the parenthesised name and spaces or tabs on one line, so it never removes a comment or a line end; otherwise the warning stands alone. It reaches every consumer of a fix: the human report's help, the JSON report's exact fix and the language server's preferred quick fix, and since D1847 refine fix, which applies every exact fix; refine fmt applies no fix, since D252's layout changes no token.

The alternatives: writing else value for a one-value block, a second edit whose result an if arm can reread as the if's own else; a Likely fix, which a batch tool would not apply although nothing about the rewrite is a guess; and a fix that also takes a comment or a line end inside the parentheses, which removes source the warning is not about.

Pinned by negative/unused-else-binding, whose program.fixed the fixes suite compiles with an empty report; negative/unused-else-binding-beside-a-comment, whose comment and line end keep the warning without a fix while its spaced binding has one; and the server session unused-else-binding-repair, whose code action is the preferred edit.

Decisions: Numbers and literals

How a literal is written, what it means, and which scalar types the kernel has.

D3 — Signed integers are two's complement

The tour said nothing: the word complement appears nowhere in it. [0300] gives wrapping operators and [0320] gives a sign-keeping >>, and neither means anything without a representation.

Chosen: two's complement, stated in [1870]. So i8 holds -128 and not -127, and -128 is writable.

The alternative: leaving it to the target. Then i8 = -128 would be a program whose legality depended on the machine, which [0310]'s refusal of implicit conversion exists to prevent.

Pinned by positive/literal-at-the-widest-value, negative/literal-below-its-type.

D4 — usize is a distinct type from u64

The tour said only that usize and isize are pointer-width integers [0160]. It does not say whether that makes usize a name for u64 on a machine whose pointer is eight bytes wide.

Chosen: distinct, on every target [1870]. Adding a usize to a u64 is refused everywhere.

The alternative: the same type where the widths agree. That is what a C programmer expects, and it costs this: a program would compile on linux-x86-64 and be refused on a 32-bit target for a reason no paragraph of the specification could state.

Pinned by negative/usize-is-not-u64.

D5 — A typed sibling gives an untyped literal its type

The tour said that an integer literal takes the type of its context and is checked at that point [0190], and that with no context it is i32 [0200]. It never says what a context is. That list is in [1880] and was written here.

Chosen: eight positions give a literal a type, and one of them is the other operand of a binary operator. So in x + 1 with x: u8, the 1 is a u8.

The alternative: only a declared type is a context. Then x + 1 would make the 1 an i32 by [0200] and immediately refuse it against x, so every literal in an expression would need a conversion the kernel does not have. This is the decision with the least room in it, and it is still a decision.

Pinned by positive/literal-takes-a-sibling-type.

D162 — Decimal f32 and f64 values keep IEEE bits through runtime operations

The tour said that f16, f32 and f64 exist [0170], that a float literal is recognisably distinct from an integer [0210], that decimal exponents and separators are accepted [0220], and that signed zero and arithmetic-produced IEEE special values are observable [0240]. It did not state the type of a contextless float, whether one width could arrive before the others, how a finite decimal overflow is treated, or whether module folding may inherit the compiler host's arithmetic.

Chosen: f32 and f64 are enabled. A decimal literal has digits on both sides of its dot and may have e or E, an optional sign, and a nonempty decimal exponent; underscores follow the integer digit-run rule. It takes f32 or f64 from context and otherwise defaults to f32. Integer and float literals remain separate classes with no implicit conversion. The literal rounds once to IEEE binary32 or binary64; a finite spelling that would become infinity is L0300. Unary minus flips the IEEE sign bit, preserving negative zero and a NaN payload.

At runtime +, -, *, /, unary minus and all six comparisons use the value's IEEE width. Division by signed zero yields infinity or NaN rather than [1950]'s integer refusal or trap. Equality is false for an unordered NaN, inequality true, and every ordered comparison false. Values retain their raw bits through local and module scalar storage, fixed arrays, ordinary structs, internal parameters and returns. Representation-class routine sharing treats a float as distinct from a same-width integer. The first external C boundary continued to refuse float signatures until its float register classes were supplied. D204 and the current [1975] subsequently define that separate C float path; the limit in this decision does not override them.

A module float at this decision may use a literal, its unary minus or zeroed, also inside a static aggregate image. Float arithmetic in a module image remained a named refusal: the target-neutral folder does not borrow the compiler host's rounding mode or NaN behavior. D166 subsequently enables hexadecimal floats [0230], D167 enables the named infinity and nan members [0240], and D175 enables module float arithmetic and comparison. f16 and explicit integer/float conversions [0310] remain separate hosted increments.

The alternatives: default to f64, admit decimal literals only with an explicit type, treat a float's same-width integer carrier as interchangeable, lower float operations through integer arithmetic, or evaluate module values with the Ada host's float types. Those choices contradict the tour's inferred f32 examples, lose IEEE behavior, make routine sharing change operations, or make cross-compilation depend on the host.

Pinned by runtime/float-decimal-runtime, negative/float-literal-not-enabled, negative/float-literal-overflows-context, negative/float-remainder-is-integer-only, negative/float-type-not-enabled, negative/integer-literal-not-a-float, negative/malformed-float-exponent, positive/r440-external-float for the later f64 C-boundary admission, negative/external-aggregate-boundary and negative/r440-c-slice-parameter for the boundary's continuing carrier refusals, the lexer cases, and the float.ieee guarantee row.

D163 — A character is one decoded Unicode scalar with fixed type u32

The tour said that [0250]'s character literal is a codepoint typed u32 and [0270] gives literals one closed escape set. It did not say whether the byte escape denotes a character, whether raw source may contain more than one scalar, or which stage rejects a nonscalar \u{...} value.

Chosen: the kernel admits a single-quoted literal only when its content decodes to exactly one Unicode scalar value. Raw content is one shortest-form UTF-8 scalar. The simple escapes \n, \r, \t, \e, \\, \" and \' denote their codepoints, and \u{...} denotes one scalar written in hexadecimal. The byte-only \xNN form is not a character spelling. Empty, multiple, malformed UTF-8, unknown-escape, surrogate and above-10FFFF contents are lexical L0322; an unclosed quote remains L0014.

The literal's type is always u32, including in an inferred binding. A different scalar context is L0301 rather than an implicit conversion. Its decoded value uses the existing integer constant carrier, arithmetic, comparison, module folding and aggregate images; the IR and backend need no character-specific operation or representation. Lexing, checking and lowering call one decoder so they cannot disagree about the scalar.

The alternatives: treat \xNN as a codepoint, infer an integer type from context, retain UTF-8 bytes as the value, or permit a quoted grapheme cluster. Those choices erase [0270]'s byte/codepoint boundary, contradict [0250]'s fixed type, or turn a scalar literal into the text representation work [0600] owns. All were declined.

Pinned by runtime/character-literal-codepoints, negative/character-literal-byte-escape, negative/character-literal-empty, negative/character-literal-invalid-codepoint, negative/character-literal-multiple, negative/character-literal-needs-u32, the decoder and lexer cases, and the source.lexical and types.values guarantee rows.

D164 — Raw byte text uses matching quote runs and exact indentation

The tour said that [0280]'s raw literal has the same number N of quotes on each side, with N at least three, interprets no escape, and strips the closing delimiter's indentation from every line. It did not define whether a longer quote run closes a literal, how indentation mismatches are handled, or which currently enabled text carrier receives the bytes.

Chosen: the kernel admits raw literals in D161's direct read-only []u8 context. The maximal opening quote run chooses N; the first later run of at least N quotes closes the token, consumes exactly N, and leaves any additional quotes for following tokens. Runs shorter than N are content. Backslashes and [0270]'s apparent escapes are ordinary bytes. Raw source content must remain shortest-form UTF-8, and the view carries the same uncounted trailing NUL as quoted text. At this decision a literal without a direct byte-slice context defaults to the then-deferred utf8; D181 later enables that default.

A closer is line-leading when an earlier line ending is followed only by spaces or tabs before it. That exact byte prefix is removed at the start of every nonblank content line that begins after a line ending; content on the opener's own line is unchanged. A nonblank line with a shorter or different prefix is lexical L0323; horizontal bytes on a blank line are discarded. Line endings, including the one immediately after an opener or before the closer, remain content. An inline closer has no indentation to remove. A mismatched or absent closing run remains the existing unterminated-literal L0014.

After indentation is removed, raw and quoted literals with equal byte content share D161's one pooled read-only datum. Checking, module images, aggregate fields, calls and lowering otherwise use the same slice path; neither IR nor the backend learns a raw-literal operation.

The alternatives: fix the delimiter at three quotes, close on a shorter run, silently leave under-indented lines unchanged, count visual columns rather than exact source bytes, interpret escapes, or allocate raw and quoted content separately. Those choices contradict [0280], make tabs target/editor dependent, or duplicate representation that is observably identical after decoding. All were declined.

Pinned by runtime/raw-literal-bytes, negative/raw-literal-inconsistent-indentation, negative/raw-literal-needs-read-only-slice, negative/raw-literal-write, negative/unterminated-raw-literal, the raw decoder and lexer cases, and the source.lexical and text.literal-storage guarantee rows.

D166 — Hexadecimal floats are converted from source bits, not host floats

The tour said that [0230]'s hexadecimal float literals express every representable value exactly, including subnormals. It did not define the required exponent syntax, the result of a spelling between two representable values, or whether the compiler may ask its own floating-point implementation to read the value.

Chosen: a hexadecimal float is 0x, a nonempty hexadecimal digit run, a dot, another nonempty hexadecimal digit run, and a required p or P binary exponent. The exponent has an optional sign and a nonempty decimal digit run. Each digit run admits [0220]'s separators but neither begins nor ends with one. Like D162's decimal form, the literal takes f32 or f64 from context and otherwise defaults to f32; it remains a float rather than sliding into the integer class.

Conversion reads the hexadecimal significand as bits and combines it with the written binary exponent. An exactly representable normal or subnormal value therefore reaches its target with the exact bits [0230] promises. A value between target values rounds to nearest with ties to even, including at zero, the subnormal/normal boundary and an exponent carry. Underflow may produce zero. A finite spelling that rounds to infinity is L0300, as for D162's decimal form; a zero significand remains zero even with an arbitrarily large exponent.

The conversion uses only bounded integer accumulation of the significant, round and sticky bits. It does not parse through an Ada floating-point type, so cross-compilation does not inherit the host's width, rounding mode or handling of subnormals. The resulting IEEE pattern follows every D162 storage, aggregate, internal-call, arithmetic and comparison path without new IR or backend operations. An absent or incomplete binary exponent is lexical L0321. Enabling this form removes the scanner's final deferred token family; L0010 continues to name parser-level constructs that [1830] leaves disabled.

The alternatives: use the compiler host's hexadecimal conversion, accept only spellings already exact in the contextual width, or retain an arbitrary precision significand. The first makes a target value host-dependent, the second contradicts ordinary literal rounding, and the third retains far more source state than the precision, round bit and sticky bit require. All were declined.

Pinned by runtime/float-hexadecimal-runtime, negative/hex-float-overflows-context, negative/malformed-hex-float-exponent, the lexer cases, and the float.ieee and source.lexical guarantee rows.

D167 — IEEE special values are inherent type-qualified constants

The tour said that [0240] writes infinity and NaN as members of a float type, that unary minus supplies their negative forms, and that NaN comparison is unordered. It did not say whether the qualifier or the surrounding context chooses the width, which NaN payload a source name denotes, whether a signed NaN retains that sign, or whether the names are valid module images.

Chosen: the kernel enables exactly f32.infinity, f64.infinity, f32.nan and f64.nan. The type before the dot is an inherent part of the value: it does not convert to another contextual float width, so a width mismatch is L0301. No other scalar type has these members, and no other member of f32 or f64 is a named value. An unknown type-qualified member is also L0301 rather than an unresolved module or runtime field selection.

Infinity has the ordinary positive IEEE pattern. nan denotes one canonical quiet NaN: 0x7FC00000 for f32 and 0x7FF8000000000000 for f64. Unary minus flips only the sign bit of either named value, preserving the quiet NaN's payload. These bits use the existing float IR carrier, storage, internal-call, arithmetic and comparison paths; no new runtime operation or backend opcode is introduced.

A named special and its unary minus are compile-time scalar leaves, not member reads from storage. They are therefore valid in module scalar images and in the scalar leaves of module arrays and structs wherever a float literal is valid. General module float arithmetic remains D162's L0304 boundary at this increment and is subsequently enabled by D175. f16 and explicit integer/float conversions remain separate hosted increments.

The alternatives: infer the width from context despite the written type, spell the values as unqualified lexical literals, preserve an unspecified or host-chosen NaN payload, or reject them from static images as field reads. Those choices respectively make the qualifier misleading, add another token family for values the tour writes as members, make generated target bits depend on the compiler host, or deny a constant spelling where an equivalent literal image is already accepted. All were declined.

Pinned by runtime/float-named-specials, negative/float-special-name-unknown, negative/float-special-on-integer-type, negative/float-special-width-mismatch, the direct checking case, and the float.ieee guarantee row.

D190 — u128, i128 and f16 are refused by name

D228 subsequently enables packed unsigned field representations; the historical quotation below records the earlier kernel boundary. D237 later transfers u128, i128 and f16 to the Language evolution successor with new consumer, target and compiler evidence; the refusal below keeps its code, now says "u128 is not in this version of the language", and its note now names that transfer.

The tour said that the integers are u8, u16, u32, u64, u128, i8, i16, i32, i64 and i128 [0150], and that the floating-point types are f16, f32 and f64 [0170]. It teaches the language and does not schedule work, so it said nothing about which of those widths the kernel enables or about what would have to be built for the rest. [1870] answers the first half — "u128 and i128 [0150], the packed widths [0730] and f16 [0170] are described in this tour and are not enabled yet" — and answered the second half nowhere.

Chosen: the refusal of u128, i128 and f16 is the specification's, and the work that would enable them is not the text, literal and loop work that enabled f32 and f64. The refusal itself was unchanged in every respect a program can observe: the checker still matched the resolved spelling, still reported L0304 with "u128 is not enabled yet", and still attached [1830]'s two notes naming the paragraph and the enabling work. Only the second note changed, to name work that would decide the widths rather than the work that had deferred them; D237 later made that note "this is transferred to Language evolution" and D246 made it state the form's standing.

This is an ownership correction and not a language change, and the reason it can be one is that the refusal was already normative. [1790]'s scalar_name production spells thirteen names and has never spelled these three, so the enabled kernel grammar does not admit them and never has; a program writing one is refused by the specification and not by a schedule. What was wrong was a single entry in the compiler's own table, which named the hosted construct work because D162 happened to belong to it when it enabled f32 and f64 and deferred f16 — not because that work's scope, "text, literals, patterns, loops, unchecked, modules, builtin directives and hosted entry behavior", ever included widening the scalar set. [0150] is already a paragraph split across owners: the packed widths u4, u12 and u23 that the same paragraph names belong to the freestanding register work [0730], and nobody reads that as the hosted construct work owing a bit-field allocator.

The construct-applicability register keeps [0150] and [0170] accounted for by the hosted construct work, because that work accounted for those paragraphs as far as the kernel enables them — D162 gave [0170] its two enabled widths and D168 through D176 gave [0150]'s enabled ones the complete conversion matrix. Only the residual refusal moves, which is exactly what D188 did for [0660]'s composite positions and D189 for [0480]'s multi-atom form. A row whose construct one piece of work accounts for and whose remaining refusal another decides is the register's ordinary shape, not an exception made here.

What enabling them would inherit is written down so that the refusal is scoped rather than vague, and it is five things and not one.

  • Landin.Types.Magnitude is range 0 .. 2 64 - 1 and Landin.Types.Folded is range -(2 64 - 1) .. 2 64 - 1. At 128 bits neither is an Ada range type on any host: Folded's symmetric form needs 129 bits and Magnitude's upper bound needs an unsigned 128. Both become software carriers, and so does the single type Pattern is mod 2 64 that Landin.Stages.Checking, Landin.Stages.Lowering and Landin.Backend.X86_64 each fold with.
  • A 128-bit scalar is the first one the backend's one-accumulator memory model cannot hold in a register: Held_Size is Byte_1 .. Byte_8 by declaration, and the SysV classification is two INTEGER eightbytes at 16-byte alignment.
  • Its arithmetic is add/adc, sub/sbb and a three-multiply mul, and a division and remainder x86-64 has no instruction for — divq divides a 128-bit dividend by a 64-bit divisor for a 64-bit quotient and faults when that quotient does not fit. Either an emitted software sequence or a dependency on a support library, and the second contradicts D166, D169 and D175's standing refusal to borrow arithmetic this compiler does not own.
  • f16 is the whole D162--D176 float programme re-run at binary16: decimal and hexadecimal literal conversion at p=11 and emax=15 with subnormals, D167's canonical quiet NaN at that width, D169's rounding across a three-by-three width matrix, D175's module fold, and runtime arithmetic that baseline x86-64 cannot do at all, since F16C is Ivy Bridge and later. That is an ISA baseline change affecting every emitted binary and the Linux gate, or a software encode and decode around every operation.
  • Enabling f16 reopens a settled decision rather than extending one. D170 records that "the enabled integer range cannot overflow either float width", which is true only while f16 is absent: binary16's largest finite value is 65504, so a u32 of 65520 or more rounds to infinity, and the conversion.integer-to-float guarantee row would move from class static to class trap and would owe trapping runtime evidence.

One design answer is recorded here so it is not rediscovered: f16 arithmetic should promote through f32 and round once. binary32 carries 24 significand bits and 24 >= 2 * 11 + 2, so a single rounding of the f32 result to binary16 is the correctly rounded binary16 result for +, -, * and /, and the double rounding is innocuous. Whether the promotion is emitted or the operations are done in software is a target question and stays open.

The alternatives: implementing them inside the hosted construct work was weighed and declined as out of proportion to what that work is for. It is four to six increments — the two carriers above, the backend pair, the float programme at a third width, and the reopened conversion guarantee — and none of the hosted path's evidence needs any of it. Giving the two widths dedicated hosted work so they land before the macOS arm64 and Cortex-M slices was the closest alternative; it was declined because f16 must exist on every target once it is enabled and the baseline Linux x86-64 ISA cannot do binary16 arithmetic at all, which makes it target work and not hosted work. Splitting the two owners — f16 to the freestanding float slice, u128 and i128 to the deferred-behaviour decisions — was declined for the same reason. Amending [0150] or [0170] to delete the three names was declined because they are language the tour teaches and no evidence says the language should lose them. Leaving the compiler's table naming the hosted construct work while the widths were decided elsewhere was declined because [1830]'s note was then a promise to a user about where to look, and a note naming finished work is a wrong answer to that question.

No document exercises any of the three. Nothing in tour.md, spec.md, examples.md or the five prototypes writes u128, i128 or f16 in an example, which is the honest measure of how much design pressure exists for them today: none that has been recorded.

Pinned by negative/wide-integer-not-enabled, negative/float-type-not-enabled, negative/refused-widths-name-their-owner, whose recorded report is where "this is transferred to Language evolution" is executable text rather than a comment and which is the only fixture in the corpus that reaches i128 at all, and the types.values guarantee row.

D219 — Either integer range endpoint supplies literal context

The tour said that an integer literal takes its context [0190], defaults to i32 without one [0200], and may appear at either end of a traversal [1150]. D159 required one integer type for the two bounds but did not specify which endpoint supplies context. The implementation previously defaulted an untyped lower bound before considering a typed upper bound, although an upper literal already took a typed lower bound's type.

Chosen: either typed integer endpoint supplies the type of an untyped integer peer. With two untyped integer bounds, both take i32. Literal values and untyped integer arithmetic must fit that chosen type under [1880]; this includes refusing a negative lower literal when the upper bound is unsigned. Two bounds that already have different integer types still disagree. A float, character or other already typed value does not silently become another integer type. The iteration element keeps the selected integer type.

This makes the prototypes' 0..<count and the tour's 1..<lenof data use usize when their upper bounds do. It changes type selection only: D159's bound evaluation remains once each, lower then upper, and its inclusive terminal check, immutable element, usize index and completion rules are unchanged.

The alternatives: always taking the lower bound's type requires an explicit conversion for the same literal that already works at the other endpoint. Widening two typed bounds would introduce an implicit conversion forbidden by [0310]. Taking an outer result or loop-body use as context would turn the header's type into a later dataflow inference. All are declined.

Pinned by positive/r491-range-endpoint-context, derived from the counted prefix loops in all four prototypes and the tour's sort header, negative/r491-range-context-overflow, negative/for-range-endpoints-disagree and negative/for-range-needs-integer. D159's existing runtime traversal fixture retains the independent evaluation and terminal-bound evidence.

D237 — u128, i128 and f16 leave this slice for Language evolution

The tour said that the integers include u128 and i128 [0150] and the floats include f16 [0170]. D190 kept all three refused by name, recorded the x86-64 cost enabling them would inherit, and declined deleting them because they are language the tour teaches and no evidence said the language should lose them.

Chosen: the language does not lose them; this slice does. [0150] and [0170] now say that u128, i128 and f16 are not in this version and that the Language evolution successor roadmap owns them, with a program that needs 128-bit arithmetic or binary16 values as the trigger. The checker keeps its named L0304 for the three spellings; its message says the type is not in this version of the language and its second note says "this is transferred to Language evolution". [1790]'s thirteen scalar names, Landin.Types, the parser's scalar table and the highlighters are unchanged.

New evidence answers D190's reason, and it is of three kinds.

  • Consumers. D190 counted documents; this decision counts programs. The four complete derived prototypes, the repository core library, examples.md and the 1849 fixture directories write none of the three types outside the refusal fixtures below.
  • Targets, measured with the pinned tools on 2026-09-19. The Cortex-M0 lane's arm-none-eabi-gcc 14.2.1 refuses both __int128 and _Float16 as not supported on this target, and its pinned thumb/v6-m/nofp/libgcc.a (SHA-256 137aa204587d2cefcc3eea90685a29d1e2f058a0a9cbdc29329e6f27c6249903) has binary16 conversions (__gnu_h2f_ieee, __gnu_f2h_ieee, __gnu_d2h_ieee) but no 128-bit multiply, divide or shift helper. Remeasured on 2026-10-31 with the lane's arm-eabi-gcc 16.1.0, whose multilib's SHA-256 is df72e583b667e1a7df6f366078f930ac0f0dd80b2d7950667f30f2aef776c16e: the same two refusals, the same three conversions and no 128-bit helper. A u128 there is four words whose multiplication and division this compiler would emit itself. At the Linux x86-64 baseline ISA, GCC 16.1 compiles a binary16 addition to two __extendhfsf2 calls and one __truncsfhf2, and a 128-bit division to __udivti3; neither is an instruction. arm64 alone converts binary16 in hardware.
  • Compiler. The checker's folding domain is the two Ada range types Magnitude and Folded, with 848 occurrences in 21 source files, and a signed 128-bit fold needs 129 bits. Every backend's Held_Size is Byte_1 .. Byte_8, so u128 would be the first scalar no backend holds in its accumulator model, with an ABI position of its own on each of three targets. f16 reruns the D162--D176 float programme at binary16 and turns D170's statically safe integer-to-float conversion into a trapping one.

Against no consumer, that cost is what [1710] asks a feature to earn, and nothing has earned it. A transfer rather than a deletion keeps D190's point: the types remain a designed direction with a stated trigger.

The alternatives: implementing all three on every target was declined on the evidence above; the plan it would follow is software 128-bit fold carriers, register pairs on the hosts and four words at eight-byte alignment on Cortex-M0, compiler-emitted multiplication and division on all three, f16 promoted through f32 with one rounding as D190 recorded, and a trapping conversion.integer-to-float row. u128 and i128 on the two hosts only was declined, because narrowing an integer to hosted targets is a language decision the 32 KiB target argues against, and 128-bit arithmetic matters least where it costs most. f16 as a storage-only type with conversions was declined, because a float without arithmetic contradicts [0170]'s reading and still reopens D170. Deleting the names was declined, because nothing shows the language should lose them, only that nothing yet needs them.

Pinned by negative/wide-integer-not-enabled, negative/float-type-not-enabled, negative/refused-widths-name-their-owner, whose recorded report carries the transfer note, negative/refused-width-conversion, which records the same refusal where a width is written as a conversion, and the types.values guarantee row.

D245 — A number ends where its spelling ends

The tour said that a token is as long as it can be [1750], and that an integer starts and ends its digit run with a digit of its base [0220]. It writes no literal with a suffix, and nothing in it says what a letter directly after a number does. Before this decision the scanner answered three ways: 12abc was one malformed integer, 1e5 one malformed float, and 1u64, 0xffg or 1.5f32 a number followed by a name, which was then refused as undeclared. check.py's tokeniser refused all of them as one lexeme, so the two implementations of the lexical rules disagreed.

Chosen: a letter, digit or underscore directly after a number belongs to it, and the whole run is one malformed literal: L0011 for an integer, L0321 for a float. 1u64 is one refusal pointing at four bytes, not a valid 1 and an unknown u64, and the same holds for a hexadecimal run with a letter past f, an octal or binary run with a digit past its base, and every float form. [1770] states the rule. A width belongs on the binding, as in mask: u64 = 1, since an integer literal takes the type of its context [0190].

A competent reader could have stopped the number at the last byte its base spells and let the rest begin a name, which is what most of the scanner did. That reading turns a C or Rust suffix into a confusing undeclared-name report about u64 — a type name, not a value — and it makes 0xffg a hexadecimal number and a variable g. The other alternative, admitting width suffixes, was declined because [0190] already gives a literal its type from its context and a suffix would be a second way to say the same thing.

Pinned by negative/integer-runs-into-a-name, negative/float-runs-into-a-name, the existing negative/float-literal-without-fraction, and the lexer case "numbers run to the end of their spelling".

Decisions: Operators, conversions and traps

What an operator takes, what a conversion checks, and where a program stops.

D6 — A shift's right operand takes the left operand's type

The tour said that shifts fill with zeros beyond the width for any amount, and that a signed >> keeps its sign [0320]. It says nothing about the amount's type.

Chosen: the same type as the value being shifted [1890]. So shifting a u8 by 300 is refused, because 300 is not a u8, while shifting it by 40 is accepted and yields zero.

The alternative: any integer type for the amount, or one fixed type such as usize for every shift. Either would accept x << 300 and produce zero, which is what [0320] says an over-wide amount does — so this decision makes the specification's own example the boundary case rather than the rule.

Pinned by negative/shift-amount-takes-the-left-type.

D8 — A zero divisor is refused when it is known, and traps when it is not

The tour said that integer division truncates toward zero and that the remainder takes the sign of the dividend [0290], and nothing else. It does not say what a zero divisor does, and [0300] does not reach it: a quotient that does not exist is not a result that overflowed.

Chosen: [0310]'s shape, in [1950]. Refused where the compiler knows the divisor, trapped where it does not, and refused at module level always. % goes with /, because the divisor is the same operand.

The alternative: a defined value, which is the only other thing on offer. AArch64's SDIV answers 0 and x86-64's IDIV raises a hardware fault, both measured — so the Linux x86-64 and Darwin arm64 targets already disagree, and adopting either would make one program mean two things or make the other target pay for a value nobody asked for. Leaving it to the machine is the same alternative D4 refused, in the same words.

Pinned by negative/divisor-is-zero, negative/remainder-by-zero, negative/divisor-is-zero-in-a-body, positive/divisor-is-not-known, and for the trap runtime/a-zero-divisor-traps and runtime/a-zero-remainder-divisor-traps.

D9 — A negative shift amount is refused when it is known, and traps when it is not

The tour said that shifts fill with zeros beyond the width for any amount and that a signed >> keeps its sign, and that there is one form only [0320]. It says nothing about a negative amount, and D6 is what makes one writable: the amount takes the left operand's type, so a signed left operand admits a negative one.

Chosen: the same shape as D8, in [1950], so that the two operands no operation can take are one rule and not two.

The alternative: three, and each is some language's answer. Read the amount as unsigned, so -1 is beyond the width and [0320] already says the answer is zero — which is exactly what Cortex-M0 does, measured, and it turns a likely bug into a silent zero. Reverse the direction, which is Swift's answer, and which [0320]'s "One form only" is the sentence against. Or mask the amount to the width, which is what x86-64, AArch64, Java and C# all do, measured on the first two — but [0320] has already declined masking for over-wide amounts, since it says they fill with zeros rather than wrap around, so masking here would make one operator answer two ways.

Pinned by negative/shift-amount-is-negative, negative/shift-amount-is-negative-in-a-body, positive/shift-amount-is-not-known, and for the trap runtime/negative-left-shift-traps and runtime/negative-right-shift-traps.

D11 — A trap is a deliberate synchronous stop

The tour said that overflow traps [0300] and a runtime conversion whose value does not fit traps [0310]; [1950] adds two operands that trap when their value is not known. None says where a trap happens, whether it returns, what follows it, or whether the host's report is program behaviour.

Chosen: [1960]. A trap happens at the operation's point in evaluation order, never returns, and permits no later Landin action. Its operating-system encoding is not stable. The default Linux x86-64 handler uses a deliberate ud2, so the language does not inherit whichever fault or value an arithmetic instruction happens to provide.

The alternative: leave each operation to its machine instruction, or call a runtime routine. The first has already been ruled out by D8's measured x86-64 and AArch64 disagreement, and would wrongly trap the defined remainder of the lowest signed value by -1 on x86-64. The second can give a stable report, but makes that report an interface the language must preserve and a runtime every freestanding target must supply.

The deferred obligation: [1670] promised the fixed two-scalar, never-returning handler when the original kernel could not express its atom set or return form. D231 supplies noreturn; D232 now supplies source handler selection, check dispatch and optional site mapping on every implemented target. The original default trap remains the constrained default. The alternative declined above was a mandatory reporting runtime instead of that contract, not [1670] itself.

Evidence: runtime/checked-overflow-traps and runtime/a-zero-divisor-traps run on Linux x86-64 and are held to having ended without returning a status, which is the whole of what this decision makes observable. The first is the one that tells a trap edge from no edge: without it the addition keeps its low byte and the program returns normally. Neither says which signal ended it, because this decision is what says that question has no stable answer.

Pinned by runtime/checked-overflow-traps, runtime/a-zero-divisor-traps, and the conversion traps the paragraph above asked for: runtime/float-to-integer-out-of-range-traps and runtime/float-to-integer-nan-traps.

runtime/range-subtype-store-traps pinned a range subtype's trap until D1661 removed the form.

D13 — An amount at or past the width gives zero on every shift

The tour said two things about a shift that do not agree at the boundary: that shifts "fill with zeros beyond the width, for any amount", and that "Signed >> keeps the sign" [0320]. Its example is a <<, so it settles nothing for the one operator where the two sentences meet. D6 makes the question reachable, since the amount takes the left operand's type and a signed left operand admits an amount of any size.

Chosen: the zeros sentence governs every shift, so an amount at or past the width gives zero and a signed >> is not an exception. With minus_one: i32 = -1, minus_one >> 31 is -1 and minus_one >> 32 is 0. A backend therefore tests the amount against the type's own width rather than letting the processor mask the count — x86-64 masks to five bits at 32-bit and six at 64, which is the masking [0320] already declined for over-wide amounts.

The alternative: let "keeps the sign" govern at every amount, so a signed >> saturates to all sign bits and minus_one >> 32 is -1. It is continuous where this rule has a step, and it is what x86-64's sar gives for free once the count is clamped. It was declined because it makes one operator answer two ways — zeros for << and for unsigned >>, sign bits for signed >> — where the tour states the zero-fill rule for shifts as a class and states the sign rule about which bits >> brings in, not about what an exhausted shift leaves behind.

Pinned by runtime/shifts-fill-with-zeros-beyond-the-width, whose i32 and i8 bindings of -1 >> 32 and -1 >> 8 and whose u64 binding of 1 << 64 are each zero on the hardware.

D14 — A measurement is a usize, and only the target knows it

The tour said that sizeof, alignof and lenof measure, and that on an array or a literal the length is a compile-time value [0370]. It writes w1 := sizeof u32 with the inferred form, so nothing in it says what type a measurement has, and [0200]'s default is about an integer _literal_ rather than about this.

Chosen: usize. A size and an alignment are counts of bytes on the machine being compiled for, which is what [0160] says usize is for, and a measurement that defaulted to i32 would need a conversion at every use where a width is wanted. lenof has the same result type. It takes a direct identifier naming a fixed array or slice; [0370]'s slice length is a runtime value. D31 also admits a parenthesized nonempty array literal. Other general expression operands remain outside [1820]'s measurement grammar. The spelling stays contextual rather than joining [1760]'s reserved words.

Where the answer comes from is the other half of this decision and the half with teeth. A scalar sizeof or alignof is not folded by the checker or the lowering: Landin.IR carries Measure_Size or Measure_Align with the type asked about, and the backend answers, because a byte size needs a target. That is the seam [0320]'s zero-fill already sits on, and it keeps the IR target-neutral — the same source emits 8 for sizeof usize against the Linux x86-64 description and 4 against the synthetic 32-bit one.

A fixed array is measured from its resolved structural type, whether [1790] writes it inline or D15 reaches it through aliases. Its size is its element count multiplied by the target's size for the scalar element, and a nonempty array's alignment is that element's target alignment. Lowering preserves those questions as the existing scalar measurement, usize Number and Multiply IR; it adds no array-measurement opcode and asks no host question. The internal zero-element shape keeps size zero and alignment one; this says what a shape already representable inside the checker means and does not decide whether source may spell one.

A fixed array's element count is already part of its type (D17), so lenof name lowers to the existing usize Number IR with that count. It does not read the named storage and does not require the binding to be definitely assigned.

The alternative: i32, which is what an untyped literal would default to and so the least surprising answer for a reader who has only read [0200]; declined because it makes the common use — comparing against or multiplying by a width — start with a conversion. Or folding in the checker, which would put a target fact in a stage this repository has kept target-neutral on purpose, and which Landin.IR's own header already argues against for the shifts.

Pinned by positive/measurement-of-a-type, positive/measurement-of-fixed-arrays, positive/lenof-uninitialized-fixed-array, negative/measuring-refused-types, negative/lenof-scalar, negative/lenof-unresolved-name, runtime/lenof-named-fixed-arrays, runtime/measurements-answer-for-the-target, and the backend case that emits one source against two target descriptions.

D165 — Compound assignment retains one destination and one operator

The tour said that assignment is a statement, listed thirteen compound spellings [0390], fixed destination-before-value evaluation [0410], and said that inc x means what x += 1 means [0400]. It did not say whether the destination was re-evaluated for its implicit read, whether it had to be assigned already, or whether a compound form inherited every failure boundary of its binary operator.

Chosen: place op= value evaluates place once, reads its existing scalar value, evaluates value, applies the corresponding [1820] binary operator and writes the result through that retained place. The thirteen forms are +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=, +%=, -%= and *%=. Destination evaluation and its implicit read both precede the right-hand expression. A computed index or pointer path is retained as an internal address, not reconstructed after the expression.

The destination must be assigned on every arriving path because the operation reads its old value; success leaves it assigned. It needs the same binding or reference write permission as plain assignment. Both operands have the destination scalar type under [1890]: ordinary arithmetic admits integers and floats, while remainder, wrapping, shifts and bitwise forms admit integers only. Known zero integer divisors and negative shifts retain [1950]'s L0306. Runtime checked overflow and impossible integer operands retain [1960]'s trap; the three wrapping forms and admitted shifts remain total. Float division by signed zero retains D162's IEEE result.

This is one read-modify-write language operation but makes no atomicity or concurrency claim. Aggregates, slices, any, functions, pointers and atoms have no applicable binary operator and are L0301 rather than acquiring a copy-update meaning.

The alternatives: desugar by copying the place syntax into both sides of plain assignment, evaluate the right-hand side before reading the old value, let an unassigned destination become initialized, or define separate compound operator rules. Those choices duplicate observable calls in indexes, reverse [0410], permit a read of indeterminate storage, or let two spellings of one operation drift. All were declined.

Pinned by runtime/compound-assignment, runtime/compound-assignment-overflow-traps, negative/compound-assignment-as-expression, negative/compound-assignment-float-remainder, negative/compound-assignment-immutable, negative/compound-assignment-unassigned, negative/compound-assignment-zero-divisor, and the arithmetic.known, arithmetic.runtime, arithmetic.total and assignment.flow guarantee rows.

D168 — Integer conversion checks a mathematical value, not its bits

The tour said that [0310] writes conversion as a type applied to a value, rejects an impossible compile-time conversion, and traps when a runtime value does not fit. It did not say whether signedness changes reinterpret a pattern, whether every enabled integer width participates, or how a module conversion is folded without compile-time execution.

Chosen: the kernel enables an application of any enabled integer type to one integer value. The source keeps its own integer type and the destination is the applied type; no contextual or implicit conversion is introduced. The mathematical source value must lie between the destination's inclusive minimum and maximum. Widening a signed value therefore preserves its sign, a negative value never converts to unsigned, and crossing to a signed type rejects an unsigned value above that signed maximum. There is no truncation, wrapping or same-width bit reinterpretation.

An integer literal operand is checked immediately in the destination context. A conversion of a module-known integer expression is folded through the same target-aware integer fold as its source; an impossible known result is L0300. At runtime the neutral IR retains the source and destination integer types, and the Linux backend sign- or zero-extends the source before comparing it with the destination bounds. An out-of-range value reaches [1950]'s existing ud2 trap; an in-range value stores the destination-width pattern. The same conversion opcode continues to carry [0470]'s pointer-to-integer address check.

Conversion from a float to an integer and conversions involving bool remain L0304 at this increment. D169 subsequently admits conversion between the two enabled float widths, D170 admits conversion from an enabled integer to either float width, D171 admits the remaining float-to-integer direction, and D172 admits bool as an integer source, and D173 admits integer-to-bool conversion. Float-to-bool conversion and the deferred u128, i128 and packed integer widths gain no spelling through this increment.

The alternatives: reinterpret the low bits, make narrowing wrap, allow a negative signed value to cross to same-width unsigned, or give module conversions a runtime initializer. Those choices contradict [0310]'s fit and trap rule, make signedness a representation cast, or contradict [1460]'s rule that nothing runs before the entry point. All were declined.

Pinned by runtime/integer-conversions, runtime/integer-conversion-out-of-range-traps, runtime/integer-conversion-signed-overflow-traps, runtime/integer-conversion-unsigned-overflow-traps, negative/integer-conversion-known-binding-out-of-range, negative/integer-conversion-known-out-of-range, and the conversion.integer guarantee row.

D169 — Float-width conversion rounds an IEEE value, not its carrier

The tour said that [0310] writes conversion as a type applied to a value, rejects an impossible compile-time conversion, and traps when a runtime value cannot convert. It did not say how f64 narrows to f32, whether underflow or loss of precision is impossible, or what happens to signed zero, infinity and NaN.

Chosen: the kernel enables f32 or f64 applied to one float value. An untyped float literal is checked directly in the destination context, as every contextual literal is under [1880]. A typed f32-to-f64 conversion is exact. A typed f64-to-f32 conversion rounds to nearest with ties to even, including at the subnormal boundary; loss of precision and underflow to signed zero are ordinary IEEE rounding rather than failures.

Signed zero and infinity retain their sign and class. A NaN remains a quiet NaN with its sign; its payload after a width change is not a language-visible identity. A finite f64 which would round beyond f32's greatest finite value is the one impossible width conversion: L0300 rejects it when the source is known under [1880] or [1940], and an otherwise identical runtime conversion traps. Converting infinity is not overflow because infinity is a value of both float types.

Module-known conversions fold their IEEE carrier bits with bounded integer work, including the narrowing round bit and sticky bits, so cross-compilation does not borrow the compiler host's float conversion. Runtime Linux x86-64 uses the corresponding SSE width conversion and explicitly distinguishes a finite result overflow from an infinity or NaN source. The existing target-neutral conversion operation now admits every numeric result. D170 subsequently admits its integer-to-float direction, D171 admits its float-to-integer direction, D172 admits bool as an integer source, D173 admits integer-to-bool conversion, D174 admits float-to-bool conversion, and D176 admits bool as a float source.

The alternatives: require exact representability, silently produce infinity on finite overflow, trap on gradual underflow, expose a NaN payload mapping, or fold module conversions through a host float. Those choices make ordinary IEEE narrowing impractical, contradict [0310]'s impossible-conversion rule, discard gradual underflow, turn an unspecified IEEE payload into source identity, or make cross-target output depend on the compiler host. All were declined.

Pinned by runtime/float-width-conversions, runtime/float-width-conversion-overflow-traps, negative/float-width-conversion-known-out-of-range, and the conversion.float-width guarantee row.

D170 — Integer-to-float conversion rounds the mathematical integer

The tour said that [0310] makes conversion explicit and distinguishes an impossible known conversion from one which traps at runtime. It did not say whether integer-to-float conversion requires exact representation, how it rounds, or whether the upper half of u64 participates.

Chosen: the kernel enables f32 or f64 applied to a value of any enabled integer type. The source is the integer's mathematical value, not its carrier bits. An untyped integer operand first takes [0200]'s default i32 source type; a wider literal therefore writes an explicit integer conversion before the float conversion. There is still no implicit conversion between numeric classes.

An exactly representable integer is preserved. Every other value rounds to nearest with ties to even. Every enabled integer, including u64's maximum and i64's minimum, lies inside the finite range of both f32 and f64, so precision loss is ordinary rounding and no integer-to-float conversion can report L0300 or trap. The result of converting integer zero is positive zero.

The module folder derives the IEEE exponent and retained, round and sticky bits with bounded integer work. The Linux backend sign- or zero-extends narrower sources before SSE conversion. Because SSE's qword conversion is signed, a u64 above i64's maximum is halved with its low bit retained as sticky information, converted, and doubled; this produces the same nearest-even result without reinterpreting the source as negative. The neutral conversion verifier admits this one mixed-class direction. D171 subsequently admits the other direction; D172 admits bool as an integer source, D173 admits integer-to-bool conversion, D174 admits float-to-bool conversion, and D176 admits bool-to-float conversion.

The alternatives: require exact representation, saturate at a float boundary, reinterpret an unsigned carrier as signed, use a compiler-host float for module images, or make the conversion implicit. Those choices discard the ordinary IEEE conversion rule, invent a failure despite the float range, lose the upper half of u64, make cross-target output host-dependent, or contradict [0310]. All were declined.

Pinned by runtime/integer-to-float-conversions, negative/float-to-bool-known-invalid, and the conversion.integer-to-float guarantee row.

D171 — Float-to-integer conversion truncates before checking range

The tour said that [0310] makes conversion explicit, rejects an impossible compile-time conversion, and traps when a runtime value cannot convert. It did not say how a fractional float becomes an integer, whether the fractional part participates in the range check, or what infinity and NaN mean as integers.

Chosen: the kernel enables every enabled integer type applied to an f32 or f64 value. A typed source retains its float width. An untyped float operand first takes [0210]'s default f32 type, so the source is rounded to f32 before conversion; there is still no implicit conversion between numeric classes. D760 subsequently refuses an untyped literal operand whose f32 rounding changes the integer the conversion gives.

The finite source is truncated toward zero, then that mathematical integer is checked against the destination's inclusive range. The ordering matters: u8(-0.75) is zero and succeeds, while u8(-1.0) fails; i8(-128.9) is -128 and succeeds, while i8(-129.0) fails. Infinity and NaN have no integer result and always fail. A known failure is L0300 under [1880] or [1940], and an otherwise identical runtime failure traps under [1950].

The module folder decodes the IEEE sign, exponent and significand with bounded integer work and checks the truncated magnitude without using the compiler host's floating-point conversion. The Linux backend performs the same carrier decode directly rather than using SSE's indefinite overflow result, which cannot distinguish every valid u64 value from failure. The neutral conversion operation consequently admits either numeric class in either direction; D172 subsequently admits bool as an integer source and D173 admits integer as a bool source; D174 subsequently admits float as a bool source.

The alternatives: round to nearest, floor negative values, saturate at the destination boundary, reinterpret the carrier bits, use a compiler-host float for module images, or assign an integer sentinel to infinity or NaN. Those choices either invent a different ordinary conversion rule, hide [0310]'s required failure, make cross-target output host-dependent, or give nonfinite values a mathematical integer they do not have. All were declined.

Pinned by runtime/float-to-integer-conversions, runtime/float-to-integer-out-of-range-traps, runtime/float-to-integer-nan-traps, negative/float-to-integer-known-out-of-range, negative/float-to-integer-known-nan, negative/float-to-bool-known-invalid, and the conversion.float-to-integer guarantee row.

D760 — A float literal's f32 rounding may not change an integer conversion

The tour said at [0210] that a float literal is distinct from an integer and at [0310] that a float converts to an integer by truncating toward zero. D162 gave a float literal with no context f32, and D171 converted such an operand at that width, so u64(1.0e18) was 999999984306749440: the literal lost its low digits to f32's 24 bits before it was converted, and nothing in the program or the report said so.

Chosen: an integer conversion whose operand is an untyped float literal, negated any number of times, converts it as an f32 still, and is refused, L0350, when the literal's f64 value would convert to a different integer, or one of the two converts and the other does not. The report names both outcomes, and its note names f64(...) around the literal for the written value and f32(...) for the rounded one; either is typed, and a typed operand keeps its width and is never compared. A literal whose rounding leaves the integer alone, i64(45.7) or u8(-0.75), converts as before, and an operand that is an expression of literals rather than a literal is not compared. The comparison is the checker's exact decimal evaluation at each width and D171's truncation, so it does not depend on the host.

The alternatives: give the operand of an integer conversion f64 as its context, which changes the meaning of conversions that already compile and gives a literal a type from a conversion, a context [0310] does not give it; refuse every untyped float literal converted to an integer, which refuses i64(45.7), the tour's own example, for a rounding that changes nothing; and a warning, which compiles the surprising value all the same, when writing f32(...) already says the rounding was meant.

Pinned by negative/float-literal-rounded-before-conversion and runtime/float-to-integer-conversions.

D172 — A bool has the integer image zero or one

The tour said that bool is a scalar type [0180] and that conversion is an explicit type application [0310]. It did not assign a numeric image to false or true, or say whether every numeric value has a truth value.

Chosen: the kernel enables any enabled integer type applied to a bool value. False converts to zero and true converts to one. Both values lie in every enabled signed and unsigned integer range, so this direction is total: it cannot report L0300 or trap. Typed and inferred module values fold to the same image, and runtime conversion zero-extends the bool's one-byte carrier before storing the destination width.

This increment does not define truthiness. Applying bool to an integer or float remains L0304, as does applying a float type to bool. D173 subsequently admits only zero and one from the integer direction, and D174 settles the float-to-bool direction including negative zero, infinity and NaN. D176 later maps bool's already-fixed images into the two enabled float widths.

The alternatives: use all-bits-one for true, preserve an unspecified bool carrier, or simultaneously admit numeric-to-bool truthiness. Those choices make the result depend on representation or settle a distinct semantic question without program evidence. All were declined.

Pinned by runtime/bool-to-integer-conversions, negative/float-to-bool-known-invalid, and the conversion.bool-to-integer guarantee row.

D173 — Only the canonical integer images convert to bool

The tour said that conversion is explicit and an impossible conversion is refused when known or traps at runtime [0310]. D172 fixed bool's integer images at zero and one, but did not say whether conversion back accepts only those images or assigns truth to every nonzero integer.

Chosen: the kernel enables bool applied to any enabled integer value. Integer zero converts to false and integer one converts to true; every other value is impossible. An untyped integer first takes [0200]'s default i32 type, preserving the rule that conversions retain a typed source rather than giving the literal a bool context.

A direct literal or module-known chain outside zero and one is L0300. A runtime source is zero-extended from its own width, compared with one, and traps before storing the one-byte bool result when it is larger; a signed negative carrier therefore fails the same comparison without being mistaken for true. Module images fold the source integer before reserving data. The neutral conversion operation now admits bool on either side of the integer boundary.

Float-to-bool remains L0304 at this increment. D174 subsequently settles signed zero, fractional values, infinity and NaN rather than inferring them from the integer image rule.

The alternatives: make every nonzero integer true, accept any value whose low bit is one, saturate into the bool domain, or reinterpret the low byte. Those choices make conversion hide a noncanonical value or become a bit cast, where [0310] instead provides a checked boundary. All were declined.

Pinned by runtime/integer-to-bool-conversions, runtime/integer-to-bool-out-of-range-traps, negative/integer-to-bool-known-out-of-range, negative/float-to-bool-known-invalid, and the conversion.integer-to-bool guarantee row.

D174 — Float converts to bool only at its canonical images

The tour said that conversion is explicit and impossible conversions are refused when known or trap at runtime [0310]. D172 fixed false and true at the mathematical integer images zero and one, while D173 accepted only those integer images on conversion back. Neither decided how the IEEE values around those images behave.

Chosen: the kernel enables bool applied to f32 or f64. Positive and negative zero both convert to false because they compare equal as IEEE numbers. Exactly positive 1.0 converts to true. Every other value, including negative one, fractions, infinity and NaN, is impossible. An untyped float first takes [0210]'s default f32 type, preserving its source width before conversion.

A direct or module-known impossible source is L0300; the equivalent runtime case traps. Static folding decodes the IEEE carrier with bounded integer work. The Linux backend ignores the sign bit only while recognizing zero, then requires the complete positive-one carrier, so negative zero succeeds but negative one does not. This was recorded as completing explicit conversion among the enabled scalar types, but D172's bool-to-float refusal still remained in the checker; D176 closes that omitted direction without introducing implicit truthiness.

The alternatives: make every nonzero float true, accept any value that truncates to zero or one, reject negative zero, or make NaN true because it is not equal to zero. Those choices import truthiness, make conversion silently discard a fraction, or distinguish IEEE zeros where ordinary comparison does not. All were declined.

Pinned by runtime/float-to-bool-conversions, runtime/float-to-bool-invalid-traps, negative/float-to-bool-known-invalid, and the conversion.float-to-bool guarantee row.

D175 — Module float arithmetic is an IEEE carrier fold

The tour said that module values are known before execution [1460], that the known subset contains operators over known values [1940], and that f32 and f64 arithmetic and comparisons have IEEE behavior [0290], [0350]. D162 left module float operators deferred because using the compiler host's float operations would make cross-compilation inherit that host's rounding mode and NaN behavior.

Chosen: the kernel enables module-level f32 and f64 +, -, *, / and all six comparisons. Operands may be any [1940]-known float expression, including forward or chained module names, conversions, named infinities and NaNs. Their results may initialize scalar bindings or scalar leaves of module arrays, repetitions, structs and variant images.

The shared target-neutral evaluator decodes IEEE carrier bits and uses bounded integer significands for addition and division and a double-width integer for the exact product. Every finite result rounds once to nearest with ties to even and retains gradual underflow. Exact cancellation produces positive zero; otherwise the IEEE sign rules preserve signed zero. Arithmetic overflow and finite division by signed zero produce signed infinity rather than L0300 or a trap. Invalid operations and arithmetic with a NaN produce the width's D167 canonical positive quiet NaN; NaN payload propagation is not a source-visible identity. Comparisons equate the two zeros, order finite values and infinities, and leave NaN unordered, so only <> is true for an unordered pair.

Checking, static aggregate-image lowering and Linux datum emission call the same evaluator. No module initializer runs, no float operation is added to a datum at runtime, and no compiler-host floating-point operation decides an image. The ordinary runtime path remains the SSE implementation D162 already enabled.

The alternatives: fold through Ada float operations, reject overflow or division by zero because integer module folds do, preserve a host-selected NaN payload, flush subnormals to zero, or keep float comparisons out of module bool images. Those choices respectively make cross-compilation host-dependent, contradict IEEE arithmetic, expose an unspecified carrier detail, lose gradual underflow, or leave [1940]'s operator subset inconsistent by operand class. All were declined.

Pinned by runtime/module-float-arithmetic, the direct checking vectors, and the float.ieee guarantee row.

D176 — Bool converts to exact positive float images

The tour said that conversion is explicit [0310], that bool has only false and true [0180], and that f32 and f64 carry IEEE binary32 and binary64 [0170]. D172 fixed bool's mathematical images at zero and one but deliberately left a float type applied to bool refused. D174 was then recorded as completing the enabled scalar conversion matrix even though that refusal remained.

Chosen: the kernel enables f32 or f64 applied to a bool value. False converts to exactly positive floating zero and true converts to exactly positive floating one. Both images are exact in binary32 and binary64, so this direction is total: it cannot report L0300 or trap, and it does not introduce truthiness or an implicit conversion.

The target-neutral fold writes the destination width's exact IEEE carrier for literal, named and computed module-known bool values, including scalar leaves of array and struct images. Runtime Linux code zero-extends the canonical one-byte bool and converts that zero or one into the selected SSE width. The neutral conversion verifier admits bool as a source for either numeric class. At this decision, f16 and [1975]'s external floating-point ABI remained deferred; the internal scalar conversion changed neither boundary. D204 subsequently enabled f32 and f64 in the selected C ABI. f16 remains refused.

The alternatives: reinterpret bool's byte as float bits, produce negative zero for false, route through a contextual integer conversion, or keep the direction refused. Those choices contradict D172's mathematical images, make the result representation-dependent, add a conversion not written by the program, or leave the claimed scalar matrix incomplete. All were declined.

Pinned by runtime/bool-to-float-conversions and the conversion.bool-to-float guarantee row.

D266 — A conversion may apply the type as written

The tour said that conversion is a type applied to a value [0310]. D15 makes an alias another name for the same type; D168--D176, D188, D199 and D213 decide which values a type may convert. Requiring a name before the value's opening parenthesis nevertheless made an immutable byte view require an alias, even though []u8 already writes that type.

Chosen: a conversion may write any enabled type expression as its head. []u8(text) and byte_view(text), where byte_view: type = []u8, apply the same exact type. This changes spelling only. The scalar conversion matrix, range constraints, distinct identity and exact-base extraction, text validation, reference permission and origins, known-value folding, runtime traps and unchecked behavior remain the existing rules. No implicit conversion, ordinary composite identity conversion or pointer permission change follows. Nominal bodies, atom unions, distinct and range constraints still require their declarations; this adds no anonymous type or identity.

A written application has one expression inside its final parentheses. Starting with a bracket, a single bound followed by ] and an element type begins an array-type application, and empty brackets followed by an element type begin a slice-type application. Thus [2]i32(hidden) extracts the array representation of an appropriate distinct value, while [4, 5], [4 of 5], [of 5], [4, of 5] and bare [] retain their literal, repetition and empty-slice meanings. A comma or contextual of within that outer bracket prevents a type prefix. Once an element type starts, an absent value list or an incomplete nested type is a malformed written application, not an empty slice or an array followed by another expression.

The element type must start on the bracket's line. A following declaration boundary, name: or name := (including mut name), instead leaves the bracketed expression complete. Thus an array literal followed by another declaration on the same line retains its existing meaning. A complete following assignment destination, an indexed call head or a destructuring list followed by := likewise starts the next statement. Recognizing those boundaries does not reinterpret an incomplete type prefix: for example, []u8[0] without a following assignment or call remains malformed.

ptr(value) retains [0470]'s contextual integer-to-pointer conversion and its untracked origin. ptr T(value) instead applies the written pointer type, so it can extract D213's exact distinct representation but cannot convert an integer to a pointer. ptr mut T retains its written permission. A parenthesis immediately after ptr begins the contextual conversion unless its balanced list is followed by ->, which identifies a function pointee type. any(value) likewise retains its contextual construction; any C(value) applies a written erased type. A leading balanced parameter list followed by -> begins a function signature. When the complete signature is followed by =, including on the next line, it retains the anonymous-function meaning; otherwise the signature is a written conversion prefix. Other parentheses retain their expression and struct-literal meanings. Written extern(c), extern(interrupt) and extern(naked) signatures retain their convention and target restrictions; extracting a machine-convention function value does not permit an ordinary call to it.

Type prefixes nest as in declarations, for example [][2]u8(hidden) and ptr []u8(hidden). At the terminal name the last parenthesized list supplies the value. A preceding positional type-argument list remains part of the head: tag(u32, 7)(value) applies that concrete type, and []array(u8, 2)(hidden) applies the slice of that concrete element type. Names inside type arguments, function parameter and return lists, and array bounds are parsed in their own delimited positions. Ordinary single-list calls, labelled constructors and generic applications retain their existing classification. A written conversion admits neither labels, multiple value arguments nor call-site recovery. A balanced second list followed by := starts a destructuring binding, so an ordinary call immediately before that binding remains complete rather than becoming a generic type head. An application must first denote an enabled type: D135's existing alias-result restrictions still refuse a generic slice or function alias, in a declaration and in a written conversion alike.

The application is a primary under [1820], and ordinary unary and binary precedence applies to its result. Its value is evaluated exactly once at the same point as an alias conversion [0410]. Its result cannot be indexed, selected or called directly, including through parentheses; bind it first, as for an ordinary call result. Type checking refuses an otherwise grammatical application when that exact destination and source lack an existing conversion.

The alternatives: admit only slice heads, infer a type from every literal followed by parentheses, reinterpret ptr T(n) as ptr(n), allow arbitrary postfix operations on conversion results, or add identity conversions while extending the spelling. Those choices leave other alias-reachable types without a written form, change existing literal or origin rules, change expression precedence and the call-result boundary, or grant conversions this extension was not asked to decide. Requiring an extra separator between the type and its value was declined because the balanced type-argument lists already distinguish the head from its one final value list.

Pinned by positive/written-type-composite-extraction, positive/written-type-text-conversions, their runtime counterparts, runtime/written-type-literal-pointer-controls, runtime/written-type-operand-order and the written-type- prefix boundary, refusal and origin fixtures.

D177 — A module bool is a static image, not routine control flow

The tour said that bool has only false and true [0180], that its logical words return bool [0340], and that and and or short-circuit from left to right [0410]. [1460] says nothing runs before the entry point, while [1940] admits every [1820] operator over module-known values. D24 already applies those rules to scalar leaves of module aggregate images. The remaining scalar path nevertheless lowered and and or through routine-style CFG, and the backend's datum fold correctly rejected its Branch instruction.

Chosen: the kernel makes every scalar module bool a target-neutral static image. The one shared lowering-time folder evaluates literal, named, forward and chained module-known operands, comparisons, not, and and or; its existing logical cases visit the left operand first and visit the right operand only when the result still depends on it. The same folder continues to write bool leaves in fixed arrays, repetitions, structs and variants. A bool datum's neutral block carries no computed value, and datum emission reads its canonical zero-or-one image directly, so no initializer is executed and no CFG Branch reaches data emission. Routine expressions keep their existing CFG and observable short-circuit behavior.

This is an implementation conformance repair, not a new source rule. Checking still validates every written subtree before folding: short-circuiting does not hide an ill-typed operand, a call, an impossible integer operand, or another initializer that [1940] refuses. Module value lookup remains independent of declaration order [0130], and a cycle remains refused even if another declaration could skip a reference to it.

The alternatives: teach the backend datum fold to interpret CFG, add a non-short-circuit logical opcode, or retain a second scalar-only syntax folder. Those choices respectively turn static data into executable control, contradict [0410], or let scalar and aggregate images disagree. All were declined.

Pinned by the lowering case module bools become static images, runtime/module-known-short-circuit-bools, negative/module-bool-from-itself for the cycle, the generated IR, and the module.images guarantee row.

D200 — A comparison takes one register-sized value with one equality

The tour said at [0350] which six comparison operators exist and at [1890] that they want one type on both sides and give a bool back. It did not say which types may stand on those sides. The compiler compared type kinds alone, so ptr u8 == ptr u32 was accepted and lowered as an address compare, and []u8 == []u8 or any C == any C passed the checker and was an internal defect in lowering.

Chosen: a comparison operand is a scalar of [1790], an atom set (identity only, as [1890] already said), a pointer, or a function value. Atom equality and inequality compare declaration identities across any two structural sets; neither set must include the other. This changes no store or call-argument subset rule. Two pointers compare by address and must point at one type; permission does not enter, because [0440] lets a mut pointer stand where a plain one does and an address comparison writes through neither. Two function values must agree in signature, as before. A slice, an erased any value, a fixed array and a struct are refused at the operator with L0301, naming the operand.

The alternatives: elementwise equality for slices and arrays, fieldwise equality for structs, and base-and-length identity for slices were each considered. Elementwise equality needs a defined equality for the element, which reopens the question one level down and silently costs a loop; base identity for slices answers a question nobody asks. All were declined for the pre-v1 slice; a later version can add an operator or a core routine without changing what the compiler accepts today.

Pinned by negative/slice-comparison-refused, negative/any-comparison-refused, negative/pointer-comparison-referent-mismatch and positive/pointer-comparison-same-referent, runtime/r490-generic-atom-identity, runtime/r490-lexical-module-observation and the verifier case atom comparisons keep identity.

D224 — Ordinary module arithmetic has a wider folding range

The tour said that a module value is known before entry [1460] and ordinary runtime arithmetic traps on overflow [0300]. The bootstrap IR's decision explicitly admitted x: u8 = 200 + 100 - 100: the intermediate 300 exists only in the folder. [1940]'s phrase about a fold that no type holds left the final image and its intermediates insufficiently distinguished.

Chosen in the bootstrap and retained: ordinary module integer arithmetic uses the signed, symmetric folding range derived from the widest enabled integer magnitude, -(264 - 1) through 264 - 1. Every intermediate stays within it, and the final image must fit its source type. Neither the host word size nor a 32-bit target narrows that folding range. Literal typing, explicit conversions and the type-dependent wrapping, bitwise and shift rules remain separate. Runtime arithmetic keeps its source width and overflow checks. This records existing behavior; it adds no compile-time execution or unbounded integer type.

The alternatives: checking every intermediate at the destination width would reject the already adopted u8 example. Unbounded mathematical folding would remove the kernel's explicit limit, and silently wrapping a module fold would replace an error with a different image. None describes the existing contract.

Pinned by the extended positive/module-fold-that-fits, the existing negative/module-scalar-fold-overflow, and module folds use their own integer range. The bounded IR control checks exact images and retained runtime u8 operations on both target widths, plus final-image and positive/negative fold-range overflow refusals. Container capacity arithmetic inside a function remains subject to the runtime rule.

D1090 — Inside a module fold, a conversion and a width-dependent operator take only what their type holds

The tour said at [0310] that an impossible conversion of a value known at compile time is a compile error, and D224 gave ordinary module arithmetic a wider folding range while saying that conversions, shifts, bit operators and wrapping operators keep their own type-dependent rules. The fold compared only its final value with the binding's type. So a: i64 = i64(u8(k)) with a k of 1000 held 1000, (200 + 100) >> 1 as a u8 was 22, the 300 having been cut to eight bits first, and a range subtype applied inside a larger expression reached the backend unchecked.

Chosen: the wider range belongs to + - * / %, comparison and unary minus alone. A conversion inside a module value takes only a value its target holds: an integer its integer type holds and zero or one for bool; a range subtype's bounds held there too until D1661 removed the form. A shift, &, |, ^, ~ and a wrapping operator take only operands their operand type holds; a shift's amount stays under [0320]'s own rule. A value that is not held is L0300 at the conversion or the operand, naming the value and the type, and a binding that reads the refused one reports nothing more. A wide intermediate that only ordinary arithmetic and a comparison meet folds as D224 says.

The alternatives: cutting the value to the type's width, which is what D224 itself declines, an image nobody wrote in place of an error; and narrowing every intermediate to its type, which takes back D224's wider range. Both are declined.

Pinned by negative/module-fold-operand-outside-its-type, with runtime/module-negative-mask-operand for a negative operand its signed type holds.

Decisions: Pointers and raw storage

Addresses, the absent pointer, and the operations that read storage the language does not otherwise describe.

D189 — A one-atom pointer union is a pointer whose empty case is zero

Amended by D1657. Its examples' inline struct bodies are written with struct ... end; the pointer union stands.

D235 later gave two or more atoms beside a pointer a two-cell union and retired Reference_Union_Extent's two-atom arm, and D1659 withdrew that form: a pointer union holds one atom, and two or more beside a pointer are L0696. The one-atom representation below is unchanged. D429 later admits a comparison with one of the union's own atoms, so the comparison refused below is one between two unions or with a pointer.

The tour said that there is no null, that "maybe a pointer" is an ordinary union of an atom and a pointer type, that with one atom the compiler represents it as a plain pointer with 0 for the empty case, and that the spelling does not decide how a union of several atoms and a pointer is laid out [0480]. It did not say how such a union is written past the one shown example, how the empty case is constructed, how the present case is named in a match, what the union may not do that a pointer may, or which origin the empty case carries.

Chosen: [1795]'s atom_union admits one pointer_type member beside its atom names, and a union that flattens to exactly one atom identity and exactly one pointer type is the type ptr [mut] T carrying that atom as its empty case. It occupies one target pointer carrier with zero reserved for the atom, which is what Landin.Checking.Reference_Union_Extent's one-atom arm has measured since local lifetime checks were built and now has a caller for. Order does not matter: ptr mut u32 | none_found and none_found | ptr mut u32 are the same type, because [1870] already says a union is structural. The atom's singleton widens into the union and so does the bare pointer, in the direction [1870] gives atom sets; neither direction reverses, so a plain pointer fills a union parameter and a union does not fill a ptr T one.

The union is not a pointer, and the six positions that would read its carrier as an address are refused by name because each is a path to a dereference of the reserved zero: .val in a read or an assignment target, addr of a .val reached through one, an integer conversion, any construction, a comparison, and an argument or result position wanting ptr T. The first five are L0335 here; the last is [0440]'s existing reference-agreement refusal. ptr(n) into a union position is L0335 for the same reason, and zeroed stays the aggregate-value L0304 because [1870] states that no zero or default atom exists — an all-zero image is not the atom even though the atom's representation is zero.

match [1210] is the only way through. Its two cases are the atom name and the reserved word ptr, which needs no new keyword because [1760] already reserves it, and which is a syntax node of its own rather than a name, so resolution has nothing to look up. A ptr arm may carry one binding of the plain pointer type; it is optional, definitely assigned on entry to the arm, and read-only, and inout on it is L0333 citing [1220] because writing through it would write the union's own carrier and not a payload; D433 later admits sink on it. A case named twice is L0311, a case named by neither an arm nor _ is L0312, and _ must be last, which are the same three rules an atom set already has. A ptr arm on an atom-set or variant subject is L0333.

The empty case contributes no origin at all, and in particular never the Untracked fact [0470]'s integer-to-pointer conversion sets, because that fact suppresses the frame-escape refusal. On a return edge provably carrying this empty case, [0790]'s exact from contract has no actual reference origin to compare; it does not reinterpret absence as an untracked reference. The bound pointer takes the subject's own origin, so a union built from addr local still refuses an escaping use of the binding with L0314. Lowering is one comparison against zero and the CFG branch a match already emits; the empty case lowers to a usize zero rather than the atom's dense nonzero code, which is the one place a wrong carrier could be produced.

Two or more atoms beside a pointer is refused by name with L0304 citing [0480] until its layout is decided (D235). The tagged carrier [1870] describes needs an IR pair, storage, an ABI position and a backend of its own, which is a representation increment and not this one; [1870]'s sentence about that placement is kept and qualified rather than deleted, and Reference_Union_Extent's two-atom arm stays as the recorded measurement. A union of two pointer types is L0338: there is one carrier and nothing to tell two pointers apart with.

The alternatives: giving the union its own Landin.Types.Type_Kind would have named every site the checker must guard, at the cost of a much larger diff and a disturbed Settled band; the flag on the pointer descriptor was chosen instead because the representation genuinely is a pointer, and the six positions above are the audit that flag owes, which is why each is pinned by a negative fixture of its own rather than by the guard alone. Making the ptr arm's binding required rather than optional would be easier to explain and less useful for a discard-shaped arm. Spelling the present case _ with narrowing would need flow-sensitive typing, which the kernel has none of, and a type-named arm is not in the grammar. Admitting the union inline in a type position rather than only through [1795]'s named declaration would be a change no atom union has today. Laying the multi-atom case out now would have made this increment a representation increment. All were declined.

D206 supersedes the null-construction gap recorded below: [1975] now requires known-zero refusal and an always-on dynamic check, and allocator absence uses the union. The following is the state D189 handed to that work, not a present permission to construct a null pointer.

ptr(0) remains accepted [0470] and runtime/core-mem-allocators uses it as a failure sentinel five times, so null is still mintable on the pointer side even though [1580] states that it is refused. That contradiction is real, it is not resolved here, and it belongs to [1580] and the C boundary with the rest of the foreign-boundary work, which records it rather than leaving [0480] looking closed while its headline sentence is evadable.

Pinned by positive/pointer-unions, runtime/pointer-unions, negative/pointer-union-holds-one-atom, negative/pointer-union-two-pointers, negative/pointer-union-dereference, negative/pointer-union-assignment-target, negative/pointer-union-address-of-referent, negative/pointer-union-any-construction, negative/pointer-union-case-named-twice, negative/pointer-union-present-arm-named-twice, negative/pointer-union-is-not-a-pointer, negative/pointer-union-match-not-exhaustive, negative/pointer-union-frame-escape, negative/pointer-union-comparison, negative/pointer-union-integer-conversion, negative/pointer-union-from-an-integer, negative/pointer-union-inout-binding, negative/pointer-union-zeroed, negative/pointer-case-arm-is-not-an-atom, the generated lexical and IR records, and the pointer.optional guarantee row. negative/r440-parser-frame-arena also pinned it until D288, through the derived parser's entries, a union returned from an escaping arena; the parser now takes the arena handle by value and its entries borrow nothing, and that fixture's L0314 is the checked arena_over's refusal of frame backing.

D206 — Null construction cannot evade the pointer union

The tour said at [0470] that integer construction loses origin, at [0480] that pointers are non-null, and at [1580] that ptr(0) is refused. D189 left the compiler's contrary integer-conversion path for this boundary to close.

Chosen: [1975] refuses known zero after target-width conversion, including closed folds, and checks dynamic converted zero even inside unchecked. Pointer-union transport remains one target carrier, with no origin in the atom arm and the original origin in the narrowed pointer arm. [0790]'s exact from comparison applies only on an edge that actually returns the reference; a provably empty arm has no origin and is not Untracked. A call-site else still handles failure, not absence: a successful union is matched normally. Allocator and disposed backing use named atom/pointer unions; a successful dispose clears to the atom and a repeat reports empty.

The alternatives: keeping zero as an untracked pointer contradicts the niche. Testing before narrowing misses target-width zero; removing the check in unchecked reopens the contradiction. Replacing null with ptr(1) hides absence in a false allocation. A second tagged wrapper wastes a word where the existing one-atom union already expresses the state. All are declined.

Pinned by runtime/null-pointer-dynamic-traps, runtime/null-pointer-unchecked-traps, runtime/null-pointer-union-call-else, negative/null-pointer-union-call-else-frame-escape and runtime/core-mem-dispose-empty, with negative/r440-null-pointer-folded-zero and negative/r440-null-pointer-unchecked-zero for the static refusals of a folded zero and of unchecked construction. negative/r440-parser-frame-arena pinned the narrowed arm's origin as well until D288, after which its L0314 is the checked arena_over's and the derived parser's entries borrow nothing (D189).

D1104 — A module pointer's address is folded and held to usize

The tour said that a module value is an image the compiler builds [1460], and [1940] refuses a module integer whose fold its type does not hold, since an image has no moment in which to trap. [1975] converts the operand of ptr(integer) to the target's usize and refuses a known zero. The module check folded the address only to ask whether it was zero, so a negative or overflowing address, ptr(base - back) with back the larger, passed checking and stopped emission with an internal compiler defect.

Chosen: the address of a module ptr(integer), as a binding's value, an array element or a struct field, is folded like any module integer. A fold that overflows, or a value that the operand's own type or the target's usize does not hold, is refused with L0300 at the address.

The alternative was to wrap the address into usize as a two's complement conversion would. It was declined: the same expression bound to a usize is refused, and a wrapped device address is a wrong address that nothing later reports.

Pinned by negative/module-pointer-address-does-not-fold.

D235 — Several atoms beside a pointer store the atom's own code beside the pointer

Superseded by D1659. A pointer union holds one atom; two or more beside a pointer are L0696, the two-cell union is gone from every backend, and what follows is history.

The tour said that "maybe a pointer" is an ordinary union of an atom and a pointer type, and that the spelling does not decide how a union of several atoms and a pointer is laid out [0480]; [1870] placed that form as a tag beside the pointer. D189 enabled the one-atom form as a pointer reserving zero and refused two or more atoms beside a pointer by name until its layout was decided, recording that the tagged form needs an IR pair, storage, an ABI position and a backend of its own.

Chosen: a union that flattens — through aliases, parameterized aliases and member unions, ignoring order and repetition — to two or more atom identities and exactly one pointer type is one structural type: its atom set plus the pointer type, whose mut is part of the identity. It is a two-cell aggregate with no source declaration. The first cell is the atom-set carrier, holding the atom's own dense nonzero code exactly as a value of that set would; the second is one target pointer carrier. Code zero, which no atom has, marks the present case, whose non-null pointer the second cell holds. The cells take ordinary natural placement: 16 bytes aligned 8 on Linux x86-64 and Darwin arm64, 8 bytes aligned 4 on Cortex-M0. Every case is built in a cleared temporary and copied whole, so an atom case leaves its pointer cell zero, and a module image does the same. The union is passed, returned and copied as an ordinary aggregate, by address in the internal convention on every implemented target.

Widening never reverses. An atom singleton or an atom set contained in the union's set widens by copying its code. A pointer of the member type, or one that relaxes to it by [0440], widens as code zero and the pointer. A one-atom union whose atom is in the set and whose pointer relaxes to the member widens with its zero carrier becoming that atom's code; a smaller several-atom union copies both cells. An inout or sink parameter takes only a place of exactly the same union. Match is D189's: arms name the set's atoms or ptr with an optional read-only binding, exhaustiveness covers every atom and ptr, and an atom outside the set, a duplicate or a missing case, an inout ptr binding and a ptr arm on another subject keep their reports. Lowering loads the code; zero selects the ptr arm and binds the pointer, and any other code dispatches exactly as an atom-set match. The positions D189 refuses for the one-atom form are refused identically: .val, addr of a .val, an integer conversion, any construction, a comparison, a ptr T argument or result, ptr(n) into one, and zeroed. The one-atom form retains L0301 for its invalid context; the many-atom form reports L0328 because it has no zero image. The pointer case carries the stored pointer's origin and an atom case none, so a union built from addr local still refuses an escaping use of its bound pointer. A module union takes an atom or another module union as its static image; an address initializer is the one-atom form's L0305. A call returning a plain pointer cannot fill a union through an atom else: that recovery would need a new lowering, and remains L0301.

No IR instruction, ABI position or instruction selection is added. The code cell is typed with the union's atom set, and every backend already traps an atom-typed load that finds a non-member; the call-failure status channel was the one load allowed to find the zero sentinel. Landin.IR.Admits_Reserved_Zero now names both — that channel and a union's code cell in a frame slot — and the implemented backends ask it instead, reaching the zero-skipping selection they already had. The verifier holds a union nominal to exactly its code and pointer cells. DWARF describes the union as a structure named by its canonical spelling — atoms by spelling, ties by declaration identity, then the pointer type, for example denied | none_found | ptr mut u32 — with an atom member at offset zero and a ptr member at the pointer's offset. GDB and LLDB show both members in an atom case and in the pointer case.

The alternatives: a tag holding a case index, as a variant part does, was declined because widening from an atom set or a smaller union would then renumber rather than copy, while the code costs nothing more: pointer alignment already rounds a one-byte tag up to the pointer's width. Storing atoms in the pointer's low bits was declined because it depends on the pointee's alignment exceeding the case count, which a byte pointer never does. Reserving small addresses for the atoms, as the one-atom form reserves zero, was declined because Cortex-M0 flash begins at address zero with the vector table, so small addresses are real pointers there. Lowering onto a hidden variant part was declined for the same renumbering. Keeping the form refused was declined: the representation needed no new backend machinery, and [1700] reads atoms as one idea wherever they appear.

Pinned by negative/pointer-union-holds-one-atom, which refuses the form since D1659.

D238 — A device access is an operation over an ordinary pointer

The tour said that a register is reached through a volatile ptr [0070] [0460] [0850], that a register is a parameterised type register(t, read:, write:, reset:) whose field reads as a t [0740], and that set(X) generates a packed struct of bool from an encoded union [0540] [0730]. D227 enabled scalar volatile accesses as compiler.volatile_load and compiler.volatile_store. D228 enabled the register image with its two explicit operations compiler.register_read and compiler.register_write, refused every synthesized device field update, and left the wrapper and set(X) unenabled. The volatile ptr shape was refused by name, and the checked-in device fixtures translated prototype 1 to D227 and D228 forms instead.

Chosen: all three are withdrawn. A device access is an operation — D227's two scalar operations or D228's two register operations — over an ordinary pointer, and a generated module writes one small typed function per register over them, with the image's decode and encode beside it and its reset value as a constant. The encoded union still places each named bool field of a set, and the generator writes those fields out; inside a larger image they are offset by where the set begins, as D228 already says. The volatile ptr shape keeps its named L0010, now a withdrawal with the four operations as its migration guidance. register(...) and set(X) never had a named refusal and remain an ordinary parse error and an unresolved type application. [0070], [0460], [0470], [0540], [0730], [0740], [0760] and [0850] are rewritten to the operation form, and prototype 1's preamble records the withdrawal while its sketch keeps the historical spelling as the design record, as the device fixtures already did for register and set.

The evidence is the executed derivation. The complete derived prototype-1 driver runs on Cortex-M under QEMU, with its synthetic device model, through the generated RP2040 modules' accessors and explicit bool image fields; it needed no volatile pointer type, no wrapper and no set former, and its derivation maps every sketch use to that form. D228 had already made the wrapper's central promise unrealizable as sugar: a field of register(t, ...) type would read and write through the device, D228 refuses every synthesized field update, and so the wrapper could only ever be the explicit read, local update and write that the generated functions spell. A volatile qualifier would be a second permission on every reference beside mut, which [0440]'s relaxation, addr, field projection and generic identity would all have to carry, while D227 already says what each access orders. set(X) is a type-level generator, which retained position RP3 and [1540] place in generator programs, and general SVD generation is the companion tool's.

The alternatives: a pointer qualifier with volatile .val accesses and field projection was declined as a second permission axis for a surface no executed program needed. A builtin register(t, ...) type whose field accesses call D228's operations was declined because the explicit read/update/write it would hide is what D228 requires to stay visible. A builtin set(X) former was declined for RP3's reason. Keeping the three pending for a successor was declined because an executed driver is the evidence a successor would have waited for.

Pinned by negative/r491-volatile-pointer, whose recorded report carries the withdrawal note, runtime/r640-register-images, negative/r640-register-no-read, negative/r640-register-no-write, the complete driver of compiler/tests/driver/DERIVATION.md, and the packed.register guarantee row.

D243 — An inout reference place keeps its exact type

The tour said that a mut reference satisfies a plain one and never the reverse [0440], and that an inout parameter may replace the value it was handed and the change comes back [0900]. It did not say which of the two directions an inout argument is. [0440]'s own example is an in parameter.

Chosen: an inout argument whose parameter is a pointer or a slice must have exactly the parameter's reference type, permission included. ptr mut T does not fill inout slot: ptr T, and []mut T does not fill inout s: []T. This holds however the call is made: directly, through a function value, with a field or an element as the place, forwarding an inout parameter, or passing an inout match payload on. An in reference parameter keeps [0440]'s relaxation, and a pointer union place was already exact [1870].

A competent reader could have applied [0440] at every reference argument, which is what the compiler did through 0.2.0. It is unsound: the callee stores a read-only reference into the place, and the caller then holds it as ptr mut T and writes through it. The program

anchor: u32 = 5
store: (inout slot: ptr u32) -> none =
    slot = addr anchor
end store

called as store(p) with mut p: ptr mut u32 then wrote 7 into the immutable anchor without unchecked, which is [0440]'s reverse direction reached through [0900]'s way back. The other reading, that inout checks only the way in and the way out is the caller's problem, was declined because nothing the caller writes afterwards can show it: the store happened in another function.

Pinned by negative/inout-pointer-is-exact, negative/inout-slice-is-exact, negative/inout-pointer-through-function-value-is-exact, negative/inout-pointer-field-is-exact, negative/inout-pointer-forwarded-is-exact and negative/inout-pointer-match-payload-is-exact.

D429 — A pointer union compares with one of its own atoms

Amended by D1659. A pointer union holds one atom, so the comparison is with that atom, true exactly when the carrier is zero; the several-atom case below is history.

The tour said at [0480] that coming back out of a pointer union is a match, and D189 refused a comparison among the six positions that would read the carrier as an address, because comparing two carriers would tell the empty case from a pointer without matching. Asking only whether a union holds its atom therefore took a whole match ending in true or false; platform/posix converted a union to usize through one to compare it.

Chosen: u == a and u <> a, where u is a pointer union of one atom or of several and a is an atom value whose atoms all belong to u's set, answer whether u holds that atom, with the atom on either side. No address is read and none can be obtained: the pointer still comes out only through a ptr arm. A one-atom union holds its atom exactly when its carrier is zero; a union of several atoms holds one exactly when its code cell holds that atom's code, which is zero for the pointer case (D235). Both operands are evaluated, left first. Comparing two unions, or a union with a pointer, stays L0335, and its note now names both routes, the atom test and match with ptr (p):.

The alternatives: equality between two unions, the same atom or both present with equal addresses, which is what platform/posix wanted, but adds pointer identity through the union and a compare-and-branch over two cells; it waits for a second consumer. Keeping every comparison refused and naming the match route. Neither revives D189's declined _ narrowing: the subject keeps its type, and no binding is made.

Pinned by runtime/pointer-union-atom-comparison, and by negative/pointer-union-comparison, which compares two unions.

D1659 — A pointer union holds one atom

The tour said at [0480] that a pointer may share its storage with atoms instead of a null. D235 gave two or more atoms a code word beside the pointer, and D429, D874 and D1115 build on it. All 28 of the library's pointer unions hold one atom.

Chosen: a pointer union holds exactly one atom, stored as the zero address (D189); the form with two or more leaves, and the two-cell aggregate it needs leaves every backend's IR, call convention and widening. A pointer with several states is a one-atom union with an error set, or a record of a state and a pointer. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: keeping the several-atom form, whose second cell every target carries for programs nobody has written. Declined.

Pinned by negative/pointer-union-holds-one-atom, which refuses the form written in either order and in a signature, flattened from a one-atom union and reached by applying a parameterized alias, and by negative/r490-union-alias-application-reports, whose imported application makes one. The refusal carries no fix: the rewrite is the program's design. Fixtures that used the form in passing hold one atom now: runtime/match-sink-binding, runtime/match-arm-names-several-cases, whose pointer-union arm names the atom and ptr together, runtime/r720-feature-interactions, runtime/pointer-union-atom-comparison, and the debugging program's union, which GDB and LLDB show as the pointer it is. D235 and D874 are superseded and D429 amended.

D2181 — A pointer union refused at an application names the template's union

The discrepancy: D1659 refuses a pointer union of two or more atoms where a parameterized alias's application makes one, and the refusal stood at the application alone, while the one-pointer refusal beside it names the template's member.

Chosen: at an application, L0696's "a pointer union holds one atom" names the template's union as its second place, "the template's union"; written in place, it names none.

The alternatives: a note naming the template, which would spell in prose what a label shows.

Pinned by negative/pointer-union-holds-one-atom, whose application joined(optional) names t | denied.

Decisions: Arrays, slices and text

Array identity and the contextual storage an array value is formed in, then slices and the text views over them.

D17 — An array's identity is its length and its element

The tour said that an array is a value, that assignment copies it and that its size is part of its type [0520]. It says what an array _is_ and never says when two of them are the same type, which for a struct [0710] answers by naming the declaration that wrote it.

Chosen: structural. [4]u8 and [4]u8 are one type wherever they are written, and [4]u8 and [8]u8 are two, and so are [4]u8 and [4]i8. D15's alias keeps that identity like any other, so row: type = [4]u8 gives the same type a second name. The evidence is [0520]'s own sentence: size is part of the type, which is a description of a shape and not of a declaration — and [0370]'s sizeof and lenof ask a type what it measures without asking where it was written.

Why not [0710]'s rule: that paragraph is about a struct, and it gives its reason in the same breath — a value typed as an anonymous struct "never becomes a same-shaped named type", because a struct body introduces a type where no existing type was. [4]u8 introduces nothing: it describes a shape that the length and the element already determine. D15 makes a declaration without distinct name an existing type, and this is one.

The alternative: nominal, one type per declaration, which would make two [4]u8 declarations different types and put arrays under [0710] with structs. It was declined because nothing in the tour reaches for it and because it would leave a program no way to write the type of something it did not declare: sizeof [4]u8 and a parameter of [16]u8 both name a shape rather than a declaration, and under a nominal rule neither would mean anything.

An array of a struct follows from this rather than needing its own answer, and is stated here so nobody reads the gap as a question. The array is structural and the element is whatever it is: two [4]point are one type exactly when the two points are, which is [0710] doing its own work inside this rule and not an exception to it. D122 supplies the aggregate element carrier, D127 its known whole-element contexts, and D134 the computed ones; the earlier aggregate layout evidence did not pretend its scalar-only array shape represented them.

Pinned by positive/array-type-is-declared, positive/array-types-alias-and-agree, positive/measurement-of-fixed-arrays.

D18 — An array index is usize, and an array fits the target's usize

The tour said that usize is the unsigned integer for byte counts and indices [0160], that an array's size is part of its type [0520], and that an index is checked before its address is computed [0580]. It did not say whether every integer type could index an array or how large an array type could be. Its packed-register example used u32, which answered differently on targets of different widths without stating that it meant to.

Chosen: an array index is exactly usize. An untyped literal in the index position receives usize as its context; a value already typed u32, u64, isize, or any other integer is refused rather than converted. The byte extent of an array must be no greater than the largest value the target's usize can hold. Thus [4294967296]u8 is a type on a 64-bit target and is refused on a 32-bit one, while [4294967295]u8 fits both.

Why the two answers are one rule: [0580]'s address computation consumes a byte offset. Its index and its greatest object extent therefore share the one target width [0160] gives for addressing; neither inherits a fixed width from the compiler host. The count is not itself bytes — an element may occupy more than one — so legality is decided from length * sizeof element, without performing that multiplication after it has already overflowed.

The alternative: accept any integer and compare it with the length. That looks permissive, but using a u32 where the operation consumes usize is an implicit conversion, which [0190] does not provide, and using i32 gives a negative case that the type of an index need not have. A fixed u32 limit was also declined: it needlessly truncates a 64-bit address space and cannot follow a target narrower than 32 bits.

Pinned by negative/index-is-not-usize, negative/index-past-the-default-type, the target-parametric checker case array extent follows usize, and runtime/large-array-offset-is-addressed on Linux x86-64.

D19 — A known element of a local array is assigned independently

The tour said that a local declared without a value has to be assigned on all paths before it is read [1910], that an array's elements are indexed from zero [0520], and that a compiler-known index is a literal or unary minus over one [1880]. It did not say whether assigning one element assigned the local or what fact a later element read required.

Chosen: a declaration-only fixed-array local has one definite-assignment fact for each compiler-known element that the function reaches. Writing items[2] establishes only element two; reading or stepping items[2] requires that same fact on every arriving path, and says nothing about any other element. Branches intersect these facts exactly as they intersect a scalar local's fact. The compiler keeps only facts the function actually reaches, rather than allocating bookkeeping proportional to the array length.

This decision does not define what a write through a computed local index establishes. Computed local indexing remains refused in this aggregate slice; computed indexing of module arrays remains enabled because D10 gives module state every element from the start. Whole-array local values and initializers remain refused as well; D20 admits the one direct storage-to-storage copy.

Why: treating one element write as assignment of the whole local would permit an uninitialized read from every other element. Requiring every element to be written before any one can be read would make large arrays unusable and would contradict [1910]'s local, path-sensitive question. Sparse facts preserve both the element boundary and D18's target-sized array lengths.

The alternative: one fact for the whole array, or a dense bit for every position. The first loses the safety check at the first partial write; the second makes compiler memory consumption depend on a target object that may be far larger than the host can enumerate. Both were declined.

Pinned by negative/local-array-element-not-assigned, negative/local-array-element-not-assigned-on-every-path, negative/increment-unassigned-local-array-element, and runtime/local-array-elements-are-independent on Linux x86-64.

D20 — A whole-array copy reads and assigns every element

The tour said that an array is a value and assignment copies it [0520], that two arrays are one type when their length and element type agree (D17), and that a local declared without a value is assigned before it is read [1910]. It did not say how a whole copy interacts with the independent sparse element facts D19 later introduced.

Chosen: destination = source, where both sides name fixed-array storage, reads every element of the source and assigns every element of the destination. The two array types must have the same D17 identity. A source local is wholly assigned when an earlier whole copy assigned it or when its sparse D19 facts cover its length; a zero-length source is therefore assigned vacuously. Module state is wholly assigned by D10. Self-copy follows the same rule, so it cannot turn unassigned storage into an assigned value.

A direct storage name resolves to a module or local binding. The name of a type declaration, even one whose declared type is the required fixed array, owns no runtime storage and is refused by the existing whole-value L0304 rather than being lowered as a copy source.

A branch merge intersects what the facts _mean_, not merely how they happen to be represented. Whole on both paths remains whole; whole on one path and sparse facts on the other keeps those sparse facts; sparse on both keeps their intersection. Completeness is decided by counting the sparse facts already present, never by walking an array extent that D18 permits to fill the target.

This kernel admits an array name as a whole value only in this copy context; D50 later lets either endpoint be a directly selected fixed-array field. D21 reuses only the direct-name storage read for initializers; D51 later admits a directly selected fixed-array field as the source of a local initializer only. Parameters, returns, discards, and other general value positions remain refused until their own aggregate or function slices. No array literal is enabled by this decision; D23 later admits one contextual initializer.

Why: expanding a copy into one operation per element would make compiler work and IR size proportional to a target object that the host may not be able to enumerate. Treating a copy as one compact storage operation preserves [0520]'s value semantics while the sparse whole fact preserves [1910] without pretending that a partial local was initialized.

The alternative: enumerate every copied element in definite-assignment state and IR, or let any one element write establish the whole. The first is not representable for every D18 array and the second permits reads of bytes the program never assigned. Both were declined.

Pinned by positive/local-array-copy, negative/local-array-copy-from-unassigned, negative/local-array-copy-not-assigned-on-every-path, negative/array-type-name-is-not-storage, and runtime/whole-arrays-copy-between-storage on Linux x86-64.

D21 — An array is initialized from a whole-array storage name

The tour said that a binding may name its type and give it a value in one form [0040], that an inferred form takes the value's type [0050], and that a local declared without a value is assigned before it is read [1910]. It said nothing about what value an array binding could receive at its declaration.

Chosen: a local or module array binding is initialized from a direct storage name in either its explicitly typed form — [mut] name: [N]T = source — or its inferred form — [mut] name := source. For a local, both copy every element exactly as D20's assignment does between two storage places. source names a whole array: a module binding, a prior local wholly assigned by D19's sparse facts or by a D20 copy, or a prior local likewise initialized from a name. The explicit form requires the source's D17 identity to agree with its written type; the inferred form gives the destination the source's exact D17 length and element type. The destination is wholly assigned by the copy alone, and both mutable and immutable binding forms accept it because a declaration is not an assignment [0080].

The source must be a storage binding rather than a type declaration. A type name that happens to declare the contextual array type is refused with L0304; it cannot supply an initial image or a local copy address.

At module scope source is exactly one resolved module storage name. Its initial-image chain follows declaration identities, across forward references and type-alias chains, and must terminate either at a module array whose initializer is omitted or at a module array whose initializer is D24's explicit literal. A chain that returns to a declaration is [1940]'s value worked out from itself. Each destination on the chain nevertheless owns distinct storage initialized with the terminal image rather than aliasing its source. Nothing runs before the entry point [1460], so no module-level copy instruction exists.

D70 later permits the same module image chain to pass through one directly selected fixed-array field. The selection remains a contextual initializer link rather than a general array value.

D60/D61 later apply the same declaration-identity chain to explicitly typed and inferred module ordinary structs. Their presently enabled terminal images are all zero, so no finite aggregate image is needed yet.

Every other array initializer value remains refused: D51 later admits a directly selected fixed-array field for a local binding and D70 its module counterpart, D23 admits one contextual local array literal [0520], D24 admits its module counterpart, while an inferred literal, zeroed [0540], repetition [0560], a slice [0570], a call, and every other indexed or selected subexpression are each their own later slice. This decision does not enable a general array value or an array as a parameter, return, discard, or struct field. A local source is read before the binding's scope begins [0110], so a local cannot initialize itself and an outer storage name may be shadowed.

Why: D20 already lowered a local whole-array copy to one Copy_Array instruction, D18's storage semantics already reached every ordinary local, and D19's flow state already gave a fully-copied array the single whole-array fact it needs. At module scope, following declaration identities proves the initial bytes without inventing initialization code or collapsing two storage symbols into one. In both scopes the restriction to a direct source name keeps compiler work and IR size independent of the target-sized D18 extent and defers every value form whose own semantic rule is a later slice.

The alternative: widen the initializer to any array-typed expression, or make the inferred spelling synthesize a general array value. Either admits constructs this decision does not recognise — D23's local array literal, zeroed, a slice, a call result, a selection or an index result — and each is its own decision. Reading D17's shape directly from named storage instead keeps the same narrow source rule as the explicit form without synthesizing an array Name_Reference anywhere else.

Pinned by positive/local-array-initialized-from-source-name, positive/module-array-initialized-from-source-name, negative/local-array-initializer-from-unassigned, negative/array-initializer-length-mismatch, negative/array-initializer-element-mismatch, negative/module-array-initializer-shape-mismatch, negative/module-array-initializer-non-name-refused, negative/module-array-initial-image-cycle, negative/array-type-name-is-not-storage, runtime/local-array-initializer-copies-storage, and runtime/module-array-initializers-copy-images on Linux x86-64.

D22 — Computed local array indexes use the whole-array fact

The tour said that indexing an array checks the bound at runtime [1950], that an index is usize [0160], that a local declared without a value is assigned before it is read [1910], that an array is a value and assignment copies it [0520], and that its elements are indexed from zero [0520]. D19 introduced one definite-assignment fact per compiler-known element and D20 introduced the whole-array fact a copy assigns, and neither answered what a computed local read must require or a computed local write must establish.

Chosen: a computed local array index is admitted where a compiler-known one is. Reading local[i] for a runtime usize requires the whole-array fact to hold on every arriving path — the same fact D20's copy and D21's initializer record, and the fact D19's element facts add up to once every declared position has been assigned. Writing local[i] = v for a runtime usize establishes no element fact of its own, and does not clear an existing whole-array fact: a copy followed by a computed write followed by a computed read is legal, and a computed write into an uninitialized local followed by a whole-array read is still refused. inc local[i] requires the whole-array fact because it reads and writes.

Module arrays are unchanged: D10 gives their state every element from declaration, so their computed reads meet no assignment requirement and their computed writes still assign nothing tracked. Every other refused value form — an inferred initializer not sourced by a direct storage name, a slice, zeroed, repetition, an array literal outside D23's one context, lenof, a general whole value of D46/D47's array-field struct outside D54's contextual copy and D55/D56's local initializers, or its array field as a whole value or place — stays refused. D48 separately admits one element selected through that field.

Why: treating one computed write as a whole assignment would admit uninitialized reads from every other position, exactly the failure D19 declined to introduce for known indexes. Requiring the whole-array fact before any computed read is the minimum rule that keeps [1910] path- sensitive without inventing element-range tracking the compiler would then have to compute for expressions no target can enumerate. Preserving an existing whole fact through a computed write is what makes D20 and D21 usable: without it, a copy followed by any computed update would need to be re-established a position at a time, and no sparse column of D19's fits an extent D18 permits.

The alternative: admit a computed read without a prior whole assignment (and leave every out-of-order write undiagnosed until run time), or have a computed write clear the whole-array fact. Both were declined for the same reason D19 refused to widen one element write to the whole local: they trade a compile-time refusal for a runtime that this compiler has no way to observe.

Pinned by positive/local-array-computed-element-after-whole-copy, negative/local-array-computed-read-not-whole-assigned, negative/local-array-computed-write-establishes-no-fact, runtime/local-array-computed-index-reads-and-writes, runtime/local-array-computed-index-traps, and runtime/local-array-computed-store-traps on Linux x86-64.

D23 — A written local array type gives a literal its shape

The tour said that an array is a value whose size is part of its type [0520], that a binding may write its type and value together [0040], that an integer literal takes the type of its context [0190], and that expressions are evaluated left to right [0410]. It did not say which of those supplies the shape and element context while array values are being introduced a slice at a time.

Chosen: a nonempty array literal initializes an explicitly typed local fixed-array binding: [mut] name: [N]T = [first, ...]. The literal contains exactly N elements, and the scalar T is the context for every element expression. Each element is evaluated and stored in source order. The fresh local is thereby initialized as a whole, so a later computed index meets D22's whole-array requirement without a preceding copy.

This is one contextual initializer and not a general array value. D24 later admits the explicitly typed module form, D25 the inferred local form and D29 assignment to an existing array. A parameter, return, argument or discard still refuses the literal. An empty literal, repetition [0560], zeroed [0540], slices [0570], nested array values and non-scalar elements remain outside this slice. In particular, this literal rule still requires one expression; D136 later accepts the zero-length type [0]T without adding empty literal syntax.

Why the written type: it gives both facts the checker needs without an array-value inference rule: D17's exact length and the scalar context [0190] applies to each expression. The literal's finite source run is also the one array extent it is sound for the compiler to enumerate. Lowering allocates the same compact frame slot as any local array and stores each source element into its position; it does not introduce an array-valued IR result or work proportional to a target extent that was not written in the literal.

The alternative: first infer the literal's length and element type, then allow that value in every compatible position. That is [0530] plus general array values rather than [0520]'s smallest executable case. It was deferred to D25 so module initial images, copying temporaries, parameters and returns did not become unstated consequences of accepting one local initializer.

Pinned by positive/local-array-literal-initializer, negative/local-array-literal-length-mismatch, negative/local-array-literal-element-mismatch, and runtime/local-array-literal-initializes-elements on Linux x86-64.

D24 — A written module array type gives a literal its static image

The tour said that an array is a value whose size is part of its type [0520], that a binding may name its type and give it a value in one form [0040], that an integer literal takes the type of its context [0190], that expressions are evaluated left to right [0410], that a module value is known when the compiler reads it [1940], and that nothing runs before the entry point [1460]. It did not say what shape the compiler admits as a module array's static initial image.

Chosen: a nonempty array literal initializes an explicitly typed module fixed-array binding: [mut] name: [N]T = [first, ...]. The literal contains exactly N elements, and the scalar T is the context for every element expression. Each element is evaluated in source order and its folded value becomes that array position's byte image at compile time. Every element must be [1940]-known and its fold must fit T — a literal or a bool spelling, an operator of [1820] [1940] enumerates over those, or a name bound to another module scalar binding whose own value is known. A forward reference is admitted for the same reason [1740] admits one for a scalar module value: a module is a set and the order between declarations is decided by identity rather than by their placement in the source.

D21's direct-name form remains admitted at module scope as well. Following declaration identity through a chain of [mut] name := source or [mut] name: [N]T = source bindings now terminates either at D10's omitted-initializer array (whose image is zero) or at a D24 literal (whose image is that literal's fold). Every destination on the chain still owns distinct storage, and each is initialized with the terminal image byte for byte — a chain does not alias its source.

This is D24's sole new module array initializer form. D26 later admits [mut] name := [first, ...] after D25 settles [0530]'s inferred shape. An empty literal, zeroed [0540], repetition [0560], slices [0570], nested array values, non-scalar elements, calls, selections and index results all remain outside these slices. Requiring one expression in the literal grammar still excludes an empty literal; D136 later accepts the zero-length type [0]T independently.

The [1820] operators [1940] admits over literals are folded during checking and again when lowering records the verified image: [0290]'s arithmetic, [0300]'s wrapping forms at the operand type's own width so u8 = 255 +% 1 is zero and every unsigned or signed size wraps the same way, [0320]'s shifts, [0330]'s bitwise set, [0340]'s logical words with short-circuiting, [0350]'s comparisons and [0370]'s measurements. Both walks take their widths from Landin.Types.Width against the compilation's target facts; the backend separately folds verified numeric scalar IR, while D177 records a bool datum directly from this same static-image walk so logical CFG cannot reach datum emission. Thus a shift past the width gives zero at exactly the width [0320] promises and a bitwise not occupies the same bytes the backend emits. The positive operator corpus and the negative fold agreement fixtures pin that checking settles every value or invalid operand before lowering is allowed to record an image. A member selection [0420], an array element index [0570] and a nested array literal are refused as D24-excluded constructs; [1940] admits an operator of [1820] applied to leaves, and these three would need the source aggregate or array to have its own image resolved before this one — a stage each has to arrive with its own slice. The refusal walks each element's whole subtree, so source[0] + 1 and state.x == 3 are refused for the same reason a bare source[0] or a bare state.x is: the operator at the root is admitted but the leaf it stands on is not. The same [1940] boundary applies to a scalar module initializer: selecting state.x or source[0] needs a static aggregate or array image that the corresponding later slice has not yet supplied, so checking refuses it rather than leaving the backend to meet an unreadable value.

A fold whose result walks past the compiler's widest kernel value is also refused with the same [1940] rule: an 18446744073709551615 + 1 and a 4294967296 * 4294967296 have no moment in which to trap and no folded value the compiler can hold, so each is refused at the element that produced the overflow rather than left to defect during image resolution. The same refusal applies to a scalar module binding whose value's fold overflows: k: u64 = a + 1 where a is already u64's maximum reports the overflow rather than silently deferring it to the backend and Constraint_Error at emit time.

Why the written type: it gives the checker D17's exact length and one scalar context [0190] for every element, without introducing an array-value inference rule at module scope. The written literal is the one array extent it is sound to enumerate at compile time; every other D18 length reaches four billion positions and no reader will type them out. Requiring each element to be [1940]-known keeps [1460]'s "nothing runs before the entry point" as the rule that decides what a module value is, and the finite element run makes the module fold a per-position walk that a target loader can consume by writing one directive per element into the object.

The alternative: admit a call or a general expression, or infer the length from the literal before settling the local rule. The first two turn [1460] into a promise this compiler cannot keep; the third would have coupled [0530] to static-image folding rather than first giving local and module bindings D25's one shape. D26 admits inference only after that shared rule; the first two alternatives remain declined.

Pinned by positive/module-array-literal-initializer, positive/module-array-literal-forward-scalar-reference, positive/module-array-literal-1820-operators, negative/module-array-literal-length-mismatch, negative/module-array-literal-element-mismatch, negative/module-array-literal-element-not-known, negative/module-array-literal-element-out-of-range, negative/module-array-literal-index-element, negative/module-array-literal-selection-element, negative/module-array-literal-nested-index, negative/module-array-literal-nested-selection, negative/module-array-literal-fold-overflow, negative/module-scalar-fold-overflow, negative/module-array-fold-agreement, negative/module-scalar-fold-agreement, negative/module-scalar-storage-selection, positive/module-scalar-wrapping-arithmetic, positive/module-array-literal-wrapping-arithmetic, and runtime/module-array-literal-holds-its-image on Linux x86-64.

D25 — A nonempty local literal infers one fixed-array shape

Partly superseded. Its inferred shape stands: the first element gives the element type, an untyped integer defaulting to i32, every later element must have that type, and the extent must fit usize. That element type is any shape, not only a scalar (D241). Its sentence "repetition keeps [0560]'s scalar element and the module form keeps D26's" is superseded by D1664 and D1947, and the positions its second paragraph leaves "outside this slice" by D241; what follows is history.

The tour said that a binding written with := takes the type of its value [0050], that an integer literal takes the type of its context [0190] and uses the default integer when there is none [0200], that an array's size is part of its type [0520], and that the length may be inferred from a literal [0530]. It did not say which element supplies the scalar type or which value positions that inference enables.

Chosen: a nonempty array literal directly initializing an inferred local binding has fixed-array type [N]T, where N is the number of source elements and T is the scalar type synthesized by the first element. When that first expression is an untyped integer, [0200]'s i32 is its context and therefore T; every later element is checked in that same T context. D18's complete N * sizeof T extent must fit the target's usize before the shape is recorded. D23's existing lowering evaluates and stores the finite source run left to right, and the resulting local is wholly assigned.

D241 later admits every non-scalar element in a local inferred literal; repetition keeps [0560]'s scalar element and the module form keeps D26's. D25 admits only the initializer in a local inferred binding. Its module counterpart remained refused until D26 connected the inferred shape to D24's separate [1940] static-image fold. A literal in general assignment, a parameter or return, an empty literal, a nested literal, repetition [0560] and every non-scalar element also remain outside this slice. In particular, inference does not create a general array-valued temporary.

Why the first element: [0530]'s literal has no surrounding element type, while [0050] requires the value to answer with one type. Letting the first source expression answer and checking the rest against it gives [0410]'s source order a single deterministic context, applies [0200] without an invented numeric join, and needs no conversions [0310].

The alternative: search all elements for a common type, defer every integer until a later element supplies one, or infer module static images at the same time. A common-type search would introduce conversion or least-upper-bound rules the language has neither stated nor wanted; deferral would make element order affect when errors appear without changing their source order; module inference would merge [0530] with [1940]'s independently constrained image fold. All three were declined.

Pinned by positive/local-array-literal-inferred-length, negative/local-array-literal-inferred-element-mismatch, and runtime/local-array-literal-infers-and-initializes on Linux x86-64.

D26 — An inferred module literal has the same static image boundary

Partly superseded. Its static-image rule stands: an inferred module literal takes D25's shape, and its elements form one [1940]-known source-order image, each binding of a name chain holding storage of its own. Its scalar element is lifted by D1947: the first element gives the element type whatever its shape, and [1940] still decides which elements form an image. The forms its third paragraph "does not admit" are superseded by D241; what follows is history.

The tour said that := takes the type of its value [0050], that the length may be inferred from an array literal [0530], and that every module value is known when the compiler reads it [1940]. D24 supplied static images only after a written array type, and D25 first settled how a nonempty literal infers one shape.

Chosen: a nonempty array literal directly initializing an inferred module binding has D25's [N]T shape: its source count is N, its first element supplies scalar T, an otherwise untyped integer first element defaults to i32 [0200], and every later element is checked in that same context. Once the shape is settled, every element must meet D24's module-image boundary: it is [1940]-known, target-aware folding produces a value held by T, and the values form one source-order static image. D21's direct-name chain may copy that image into typed or inferred module array storage, with a distinct datum for every binding.

All D24 exclusions remain exclusions: no call, member selection, element index or nested array can supply an image element, and checked overflow or an out-of-range folded value is refused before lowering. D18 limits the inferred complete byte extent before the shape is recorded. A local inferred literal continues to use D25's runtime evaluation instead; only module scope folds an image.

This does not admit a literal in general assignment, as a parameter or return, or as a general array-valued expression. It also does not admit an empty literal, repetition [0560], zeroed [0540], slices [0570], or a non-scalar element. No general array temporary is introduced.

Why reuse D25's shape before D24's fold: inference answers only which fixed array the binding holds; [1940] independently answers whether module storage can have that value before anything runs [1460]. Keeping those checks sequential makes local and module := mean the same type while preserving the module-only static-image restriction.

The alternative: infer a different element type from the complete folded image, or make module inference choose a written-width type from each value. Either would make the same literal have a different type at local and module scope and would invent a numeric join or narrowing conversion [0310]. Both were declined.

Pinned by positive/module-array-literal-inferred-length, negative/module-array-literal-inferred-boundaries, negative/module-array-literal-inferred-fold, and runtime/module-array-literal-infers-static-image on Linux x86-64.

D27 — An explicitly typed module array may spell its zero image

Superseded by D241. zeroed takes its type from every destination [1880] lists, a typed module array among them, and a module array given zeroed keeps D10's absent image in .bss; what follows is history.

The tour said that zeroed denotes all-bits-zero when that image is valid for its context [0540], that a fixed array is zeroable exactly when its element is [0520], and that every module value is known when the compiler reads it [1940]. D10 already gives an omitted module initializer that image, but did not say where a program may request it explicitly while array values are enabled a slice at a time.

Chosen: zeroed directly initializes an explicitly typed module fixed-array binding: [mut] name: [N]T = zeroed. The written D17 shape is its context. Every scalar element type the kernel currently admits has an all-bits-zero image, so the complete array has one without enumerating its N positions. Lowering records no finite datum image, exactly as for D10's omitted initializer; the backend therefore reserves the distinct module storage in .bss. A D21 direct name chain may copy this terminal zero image while retaining one storage object per declaration.

This is a contextual initializer, not an array-valued expression or a runtime operation. D27 itself does not infer a type for name := zeroed; D28 separately admits a typed local array initializer, D30 an array assignment, D39 a typed module scalar initializer and D40 a typed local scalar initializer. Every inferred form remains refused. D27 introduces no IR opcode, temporary, startup copy, or source-order element evaluation. Repetition [0560], slices [0570], empty literals, non-scalar array elements, parameters, returns, arguments, and general whole-array value positions remain outside this slice.

Why preserve the absent image: materializing N zero values would make host work and IR size depend on D18's target-sized extent and would emit bytes for a value the object format can reserve without storing. The absence already means exactly this image for D10, keeps zero storage in .bss, and remains distinct from D24/D26's finite literal image.

The alternative: treat zeroed as a generally typed value, or infer an array shape from it. The first would silently admit local initialization, assignment, parameters, and other value positions that need their own runtime rules; the second has no source fact from which to derive either N or T. Both were declined.

Pinned by positive/module-array-zeroed-initializer, negative/inferred-zeroed-not-enabled, and runtime/module-array-zeroed-reads-zero on Linux x86-64.

D28 — A local zero image is one runtime storage operation

Superseded by D241. zeroed takes its type from every destination [1880] lists, a typed local array among them, and the one-operation clear this decision first required is now stated by D32; what follows is history.

The tour said that zeroed denotes all-bits-zero when that image is valid for its context [0540], that a fixed array is zeroable exactly when its element is [0520], and that a local binding may carry an initializer [1810]. D27 supplied one static module context but deliberately introduced no runtime operation, so it did not say how a local array obtains the same image.

Chosen: zeroed directly initializes an explicitly typed local fixed-array binding: [mut] name: [N]T = zeroed. The written D17 shape is its context. Every scalar element the kernel currently admits has an all-bits-zero image, so one runtime storage operation clears the complete compact frame slot. The operation carries the destination identity, never one entry per element; its byte extent is derived from the target's width for T. The initialized local is assigned as a whole, so D22 permits a later compiler-known or computed index read.

Lowering records one target-neutral Clear_Array instruction with no operands and no result. D57 later gives field zero of that destination-only operation a whole aggregate's padded extent as well; its array meaning is unchanged. The Linux x86-64 backend forms the slot address and takes the target byte extent. It emits bounded scalar zero stores for one to six bytes or exactly eight bytes; other extents retain the forward rep stosb clear. Compiler work and IR size therefore remain independent of the target-sized length D18 admits, and no array-valued temporary or hidden zero datum exists.

This remains one contextual initializer. D28 does not infer a shape for name := zeroed; D30 separately admits array assignment, D39/D40 typed module and local scalar initializers, and D41 scalar assignment. zeroed as an argument, return, discard, nested or general expression remains refused. Module arrays continue to use D27's absent static image rather than this runtime instruction. Repetition [0560], slices [0570], empty literals, non-scalar array elements, parameters, and returns remain outside this slice.

Why one storage operation: lowering one store per element would make compiler work and IR size proportional to an extent deliberately permitted to approach the target address space. Copying a synthesized zero array would instead invent storage and a source the program never declared. A destination-only clear says exactly what [0540] requires and leaves representation to the target backend.

The alternative: treat zeroed as a scalar expression repeated N times, or enable it in assignment at the same time. The first imposes host enumeration and invents source-order evaluation where there is none; the second broadens the place/value boundary beyond fresh initialization and needs its own definite- assignment and evaluation decision. Both were declined.

Pinned by positive/local-array-zeroed-initializer, negative/inferred-zeroed-not-enabled, and runtime/local-array-zeroed-reads-zero on Linux x86-64.

D29 — Array literal assignment forms the value in its destination

Partly superseded. The contextual literal assignment and its definite-assignment rule stand: the destination gives the literal its length and element type, every read is checked against the state arriving at the statement, and the array is assigned as a whole when the statement completes. Its write order is superseded by D1827: an element no longer sees an earlier write of the same statement, and a failure leaves the array unchanged. Its limit to "direct local or module storage names" and the positions where literals "remain refused" are superseded by D241; what follows is history.

The tour said that assignment copies an array [0520], that an assignment evaluates its destination place before its value [0410], and that aggregate parts initialize in written order. D20 admitted only a direct storage name as the value, while D23 admitted a literal only for a fresh local binding. Neither said whether assignment of a literal needs a hidden complete value or exposes its element order in existing storage.

Chosen: a nonempty array literal may be assigned contextually to a mutable fixed-array place: place = [first, ..., last]. The destination's D17 length and scalar element type are the context; the literal must contain exactly that many elements and each expression must have that element type. At this boundary the fixed-array places are direct local or module storage names. D52 later admits a directly selected fixed-array field under the same literal rule. [1900] still decides whether either may be written.

The destination place is reached first. Then each literal element is evaluated left to right and written immediately to its one-based destination position before the next expression begins. A later expression can observe an earlier write to the same array, and a runtime failure can leave the completed prefix changed. Lowering emits the existing scalar expression and field-store sequence for each source element; it creates no hidden array-sized temporary and no new array IR operation. The compiler work and instruction run are proportional to the literal text the program wrote, not to an implicit target-sized extent.

Definite assignment checks every right-hand-side read against the state arriving at the statement, then marks the destination array assigned as a whole only when the assignment completes normally. Thus assigning a complete literal makes a previously uninitialized array readable through a compiler-known or computed index, but an element written earlier in the same statement does not justify a source read that was unassigned on entry.

This is one assignment context, not a general array value. Array literals remain refused as arguments, returns, discards, scalar operands, nested elements, and other expression positions. Empty literals, repetition [0560], slices [0570], non-scalar element arrays, and zeroed assignment remain separate slices. A direct storage-name assignment continues to use D20's one compact Copy_Array.

Why expose the writes: evaluating every element before changing the destination would require a hidden second array as large as the value, obscuring a cost the language promises to keep visible. Writing each completed scalar uses only storage the program named and gives [0410]'s aggregate order an observable, deterministic meaning. Source text already contains one expression per store, so this does not introduce D18's host-enumeration problem.

The alternative: synthesize a temporary array and copy it only after every element succeeds. That gives transactional-looking assignment and prevents later elements from observing earlier writes, at the price of an implicit full array in every frame and a second full traversal. It was declined.

Pinned by positive/array-literal-assignment, positive/module-array-literal-assignment-runtime-elements, negative/array-literal-assignment-length-mismatch, negative/array-literal-assignment-element-mismatch, negative/array-literal-assignment-reads-incoming-state, and runtime/array-literal-assignment-reads-old-value on Linux x86-64.

D1827 — An assigned aggregate is formed as if before its destination changes

The tour said at [0410] that an assignment evaluates its destination before its value, at [0520] that assigning a literal to an existing array fills it in place in written order, so that a later element sees an earlier write, and at [0590] that whole-array arithmetic copies by value. D29 and the decisions that extended it (D37, D52, D53, D64, D65) wrote each element or field as it was evaluated, while D209 retained every array operand before the first write. row = [row[1], row[0]] therefore did not swap, and row = -row and row = [row[1], row[0]] + zero did different things to one array.

Chosen: one rule for every aggregate value assigned to a place. The destination is reached first, as [0410] says. The value is then evaluated in its own written order, labels and elements left to right and a fill after them, and every read in it sees the destination as it was before the assignment. The destination changes only when the value is complete: a failure that leaves the value, an else that breaks out of a loop, a return or a propagated error, leaves the destination as it was. A trap does not return, and what a panic handler finds in the destination is not specified.

The rule holds for a written array literal, a mixed repetition and a struct construction assigned to an existing place, whatever selects the place. [n of v] evaluates its one expression before it writes, a name is copied, a call or control value is formed in its own storage, and D209 retains its operands, so each of them already meets it. A binding's initializer writes storage that no expression can yet read.

How it costs nothing where nothing overlaps: lowering still writes each element into the destination as it is evaluated when nothing shows that the value can observe the destination; otherwise it builds the value in a temporary of the destination's shape and copies it once. Overlap is shown by a name of the destination's root in the value, except inside an addr that selects without an index or a pointer; by a match or destructuring alias that may hold the destination's storage; by an exit or try inside the value; and, by how the destination is reached, by further reads. A local binding or a named return whose address its routine never takes is reached only by its name: a frame address cannot be kept in storage that outlives the frame ([0770]), a named result is its own slot until an exit commits it (D116), and a parameter taken by value is the callee's own copy (D95). Module storage, and a local or named return whose address is taken, are reached as well by a call and by a read through a pointer, a slice or an inout parameter. Any other destination, one reached through a pointer or an inout parameter among them, may also be any other module binding, or any local or named return whose address is taken, of aggregate or array type. A construction or a conversion to a type is not a call. The temporary is visible in the frame and its copy is one compact operation, as D209's snapshots are.

The alternatives: D29's immediate writes, which make a literal that reads its destination mean something no reader expects and differ from D209's operators; a temporary for every assigned aggregate, which costs a frame-sized copy where nothing can overlap; and refusing a literal that reads its destination, which refuses the swap the rule exists for and still needs an answer for reads through pointers. All were declined. The maintainer took SC-26 as its own change on 2026-11-21 (D1653).

Pinned by runtime/array-literal-assignment-reads-old-value, runtime/mixed-array-repetition-assignment-reads-old-value, runtime/struct-array-field-literal-assignment-order, runtime/struct-array-field-repetition-assignment-order, runtime/struct-literal-order-and-fill, runtime/struct-construction-order, runtime/struct-literal-array-field-order, runtime/r490-generic-field-fill, the lowering case self-reading literals form apart, and runtime/aggregate-assignment-reads-old-value-through-aliases, whose program swaps through a pointer, an inout parameter aliasing a module binding, a by-value argument that is also the inout destination, and a struct, and leaves a loop from an element's else.

D30 — Zeroed assignment clears one complete array place

Superseded by D241. zeroed may be assigned to every place whose type has a zero image, and the one-operation clear this decision first required is now stated by D32; what follows is history.

The tour said that zeroed is the all-bits-zero image supplied by a context [0540], that assignment evaluates its destination before its value [0410], and that array assignment copies a complete value [0520]. D27 and D28 admitted that image only while creating module and local storage. They deliberately left an existing destination to a later definite-assignment and runtime decision.

Chosen: zeroed may be assigned contextually to a mutable fixed-array place: place = zeroed. The destination's D17 length and scalar element type supply the context, and [1900] decides whether its direct local or module storage name may be written. Every scalar element the kernel currently admits has an all-bits-zero image, so the complete array has one [0540].

D49 extends this contextual assignment to one fixed-array field selected immediately from enabled struct storage without making the field a general array place or value.

The destination is reached first; zeroed evaluates no source expressions and names no source storage. Lowering emits one Clear_Array carrying that local frame slot or module datum; D49 additionally carries the declaration-order field identity, never a target byte offset. The verifier resolves its complete array shape, and the backend derives the byte extent from target facts. Linux x86-64 uses bounded scalar zero stores for one to six bytes or exactly eight bytes; other extents retain rep stosb. There is no hidden zero datum, array temporary, source operand, or compiler enumeration of D18's target-sized length.

A normally completed assignment marks a local destination assigned as a whole, so every compiler-known and computed element may then be read. There is no source-order prefix like D29's literal has: the source contains no elements and specifies no per-element evaluation. This does not promise an atomic machine operation; D227 defines concurrency and interruption limits.

This is one contextual array assignment. It does not infer a type for name := zeroed or assign a scalar; D39 separately admits a typed module scalar initializer, while local scalar initialization remains refused. Nor does D30 admit zeroed as an argument, return, discard, nested value, or general expression. Module and local array initializers keep D27/D28's distinct static and runtime paths. Repetition [0560], slices [0570], non-scalar array elements, and other zero-accepting types remain separate slices.

Why reuse the clear: lowering one scalar zero store per element would make compiler work and IR size depend on an extent whose source writes no finite run. Copying a synthesized zero array would invent both storage and a read. D28's compact destination-only operation already says the complete runtime effect and already follows target width for either storage kind.

The alternative: make zeroed a general array value and feed it through D20's copy. That would silently admit arguments, returns and other value positions while requiring source storage for an image that has none. It was declined.

Pinned by positive/array-zeroed-assignment and runtime/array-zeroed-assignment-clears-storage on Linux x86-64, together with the focused lowering and target-width backend cases for both storage kinds.

D31 — lenof counts a literal without forming it

Scalar element lifted by D1664. A measured literal is still checked, not formed, and nothing in it is evaluated, but its first element gives the element type whatever its shape, as an inferred literal's does; the sentences below that require a scalar element are superseded.

The tour said that a literal's lenof is compile-time [0370]. D14 first implemented only a direct name, because a general expression operand would have made array values, calls, selections and slices one undivided decision. D25 later settled how a nonempty literal supplies a scalar element shape.

Chosen: lenof ([first, ...]) is a usize whose value is the number of expressions in the literal's source run. The literal must remain nonempty under [0520]. Its first element supplies D25's scalar type, including [0200]'s default for an otherwise untyped integer, and every later element must have that same type. This checks that the syntax denotes one array shape; it does not create an array value.

None of the element expressions is evaluated, read, folded, lowered or stored. The count therefore remains valid when an element is an unassigned local, a call, a selection or any other well-typed scalar expression. At module scope those expressions do not become module initializer inputs: the complete measurement is known from syntax alone. Definite assignment likewise reads no names beneath the measurement.

Lowering emits one existing usize Number holding the source element count. A static module binding records the same number directly. No array storage, temporary, element instruction, target query or backend operation is introduced. D18's maximum object extent does not apply because no object of the literal's shape exists.

This admits only a parenthesized nonempty array literal beside D14's direct identifier. The parentheses are part of the measurement syntax, not a general expression operand: without them, lenof[index] continues to index an ordinary binding named lenof, as [1760]'s contextual spelling requires. The direct identifier form also measures a slice's runtime length [0370]; selections, indexes, calls and other general expression operands remain outside [1820]'s measurement grammar. Empty literal syntax remains deferred. D136 later accepts [0]T source legality independently of that syntax.

Why type-check expressions that do not run: the brackets still claim one array literal, and D25 already gives that claim a deterministic scalar shape. Counting arbitrary comma-separated expressions regardless of their types would make malformed aggregate syntax valid only when placed beneath lenof.

The alternative: evaluate the literal and then ask the resulting array value for its length. That would make calls and reads observable despite the count being fixed by syntax, require hidden array storage, and prematurely admit a general array value. It was declined.

D333 supersedes this decision in part: lenof now takes a path, a slice and a call's result as well as a name and a literal, a call is always evaluated, and only a name or a path over a fixed array is measured without being read.

Pinned by positive/lenof-array-literal-does-not-read-elements, negative/lenof-array-literal-element-mismatch, positive/lenof-array-literal-takes-any-element, which D1664 turned from a refusal, and runtime/lenof-array-literal-is-compile-time on Linux x86-64; the runtime case also keeps an ordinary array named lenof indexable.

D32 — Full-array repetition evaluates one scalar once

Partly superseded. Two rules stand. A repeated value is evaluated exactly once, before the fill. A whole clear, fill or copy of an array is one operation, never one per element, whatever the array's extent: D28 and D30 stated this first, and since both are superseded this decision holds it. Its limit of repetition to "an explicitly typed local initializer or an existing mutable array place", its scalar element and the forms that "remain refused" are superseded by D241 and D1664; what follows is history.

The tour said that repetition writes [N of value], or [of value] when a context supplies the length [0560], that expressions run left to right [0410], and that assigning an array copies its complete value [0520]. It did not say whether value runs once or once per element, nor how a contextual repetition is represented without materializing a target-sized temporary.

Chosen: an explicitly typed local fixed-array binding may be initialized by [N of expression], and a mutable fixed-array place may be assigned either [N of expression] or [of expression]. The written local type or destination supplies D17's exact length and scalar element type. When N is written, it must equal that length exactly. The scalar expression must have the element type, including [0190]'s contextual commitment of an untyped integer.

At this boundary an assignment destination is a direct local or module array storage name. D53 later admits a directly selected fixed-array field under the same full-repetition rule.

The destination is reached first for assignment. The repeated scalar expression is then evaluated exactly once, and its target-width bit pattern is stored in every element. Normal completion initializes or assigns the destination as a whole for [1910], so a later computed index meets D22's whole-array requirement. The operation is not promised atomic with respect to interruption or concurrency.

Lowering evaluates the scalar into one ordinary value and emits one Fill_Array carrying that operand and the destination's compact frame-slot or module-datum identity. The verifier requires one scalar operand matching the destination element type and rejects a fill in a static datum initializer. The Linux x86-64 backend derives the element count and width from the destination shape and target facts, then uses the width-matched forward repeated store. Neither IR nor compiler work enumerates D18's extent, and no hidden array storage or temporary is formed.

This first repetition slice deliberately requires an explicitly typed local initializer or an existing mutable array place. D33/D35 later admit counted local and module inference, D34 the typed module static image, and D36--D38 the mixed-prefix forms. Argument, return, discard, nested repetition and general array values remain refused. Since of remains [1760]'s contextual spelling rather than a reserved word, [of, other, of] remains an ordinary literal whose elements may name a binding called of; repetition is recognized only where the token after of can begin its scalar expression. Thus [of + 1] also remains an ordinary one-element literal.

Why once: the source writes one expression, and evaluating it once makes the runtime work visible without multiplying side effects by a type-level count. A scalar register or spill plus one compact fill is sufficient even when D18 permits an extent the compiler host cannot enumerate.

The alternative: lower repetition as if the source had written one copy of the expression per element. That would make side effects and compiler work proportional to a target-sized count and contradict the single expression the program contains. It was declined.

Pinned by positive/local-array-repetition, negative/array-repetition-count-mismatch, negative/array-repetition-element-mismatch, negative/array-repetition-countless-inferred-initializer-not-enabled, negative/array-repetition-reads-incoming-state, and runtime/array-repetition-evaluates-once on Linux x86-64.

D33 — A counted local repetition supplies its inferred shape

Partly superseded. Its inferred shape stands: the count gives the length and the repeated value the element type, an untyped integer defaulting to i32, and the extent must fit usize; a zero count stays refused. Its scalar element is lifted by D1664: the repeated value gives the element type whatever its shape. The forms its third paragraph leaves "outside this slice" are superseded by D241 and D1947, except D241's recorded boundaries; what follows is history.

The tour said that a literal may supply an omitted array length [0530] and that repetition writes a count before of when no surrounding type supplies one [0560]. It did not say whether the same count can supply the complete type of an inferred binding, or which expression supplies the element type.

Chosen: a counted full-array repetition directly initializing an inferred local binding supplies [N]T. N is the written nonzero integer count. The one repeated expression supplies T by D25's deterministic first-element rule: an untyped integer receives [0200]'s default i32, an already typed scalar retains that type, and no common-type search or conversion is introduced. The resulting byte extent must fit D18's target usize before the compact shape is recorded on the repetition and binding.

The repeated expression is read from incoming definite-assignment state and uses D32's lowering unchanged: it evaluates exactly once into one scalar IR value, followed by one compact Fill_Array for the inferred local frame slot. Successful initialization establishes the whole array. Neither checker nor IR enumerates the inferred extent.

A written zero count remains refused in this inference position because the repetition supplies no element-bearing source run. D136 later accepts an explicit zero-length fixed-array type; that does not make repetition an empty array literal or give an inferred zero-count repetition an element type. A count-less inferred initializer, module initializer, mixed-prefix repetition, argument, return, discard, nested repetition and other general array value remain outside this slice.

Why the scalar expression: unlike a literal source run, repetition has only one value-producing expression. Taking its settled scalar type gives every stored element the same type without inventing a second inference rule.

The alternative: require a written array type for every repetition. That would leave the explicit count unable to do the same shape work as [0530]'s literal count, despite already being checked against that shape by D32. It was declined.

Pinned by positive/local-array-repetition-inferred, negative/inferred-array-repetition-extent-overflow, negative/inferred-array-repetition-reads-incoming-state, negative/inferred-array-repetition-zero-count, negative/array-repetition-general-value-not-enabled, and runtime/array-repetition-evaluates-once on Linux x86-64.

D34 — A written nonzero array shape admits either repetition spelling

Partly superseded. Its repeated encoding stands: a written nonzero shape takes either repetition spelling, a module repetition folds to one compact pattern, a zero pattern is the absent image in .bss, and a zero contextual length is refused. The initializers and positions its fifth paragraph says "remain refused" are superseded by D241, and its inferred module form is D33's shape with this image; what follows is history.

The tour said that [N of expression] may omit N when the type supplies its length [0560], and introduced repetition as a static pattern that lives in flash. D32 admitted only a counted explicitly typed local initializer, while D33 admitted a counted inferred local; neither slice supplied the module static image or explained what a zero folded pattern becomes.

Chosen: an explicitly typed fixed-array binding at module or local scope may be initialized by [N of expression] or [of expression] when its written contextual length is nonzero. The written type supplies D17's complete shape. A written N remains an exact assertion of that same length, and the one expression is checked against the scalar element type. This lifts D32's count requirement for an explicitly typed local without changing assignment or D33's inferred rule.

For module state, the expression obeys the same [1940] compile-time-known and D24 target-aware scalar-fold boundary as one element of a module array literal: literals, [1820] operators and module scalar names may compose; calls, storage selection, an element index and a nested array literal remain refused. The fold produces one scalar pattern. A nonzero pattern is represented in IR by that one Folded value plus D17's existing compact shape, including through any D21 direct module-array name chain. A zero pattern records no image, just like D10, D27 and D28, and therefore remains loader-zeroed storage rather than bytes in .data. Neither image resolution, copying, verification nor dumping enumerates the extent.

The Linux x86-64 backend emitted a constant-size .rept/width-specific-directive/ .endr sequence for a nonzero repeated image. The scalar directive is .byte, .word, .long or .quad according to the target element width. In particular, the eight-byte form does not use GNU .fill, whose value operand contributes at most four bytes and would discard the high half of a u64 pattern. An absent zero image stays .bss. D536 later writes a pattern of four bytes or fewer as one .fill on every target and keeps the repetition for eight-byte patterns.

A repetition whose written contextual length is zero is refused at the repetition. This is a construct-specific nonzero requirement. D136 later accepts [0]T as source, while repetition over that zero contextual extent remains refused. D33's zero-count inferred refusal remains for the same reason. An inferred module initializer remained outside this slice until D35. A count-less inferred initializer, every mixed-prefix context other than D36's typed local, argument, return, discard, nested repetition and every other general array value position remain refused.

Why one image value: repetition writes one expression and every destination position receives the same target-width pattern. Materializing one value per position would lose the compact representation precisely for D18's target-sized extents, and copying such a run through a module name would repeat the same fault.

The alternative: use GNU .fill count,size,value directly. Its compact count is attractive, but GNU assemblers truncate value to four bytes, so it cannot faithfully emit an arbitrary eight-byte element. The width-specific repeated scalar directive keeps both compact source and all pattern bits.

Pinned by positive/local-array-repetition, positive/module-array-repetition, negative/array-repetition-zero-context, negative/module-array-repetition-element-not-static, negative/module-array-repetition-index-element, negative/array-repetition-countless-inferred-initializer-not-enabled, and runtime/array-repetition-evaluates-once on Linux x86-64.

D35 — A counted module repetition may infer its nonzero array shape

Superseded by D33 and D34. An inferred module repetition takes D33's inferred shape, with an element of any shape (D1947), and D34's compact image; what follows is history.

The tour said that a counted repetition may supply an inferred local's length and scalar element type [0560]. D33 implemented that local form, while D34 supplied the compact static image only when module state wrote its array type.

Chosen: [N of expression] may directly initialize an inferred module binding when N is written and nonzero. The count supplies D17's length and the one expression supplies its scalar element type; an untyped integer takes [0200]'s i32 default. The resulting byte extent must fit the selected target's usize by D18, exactly as for D25/D26/D33 inferred arrays.

The repeated expression obeys [1940]'s known/static boundary and the same D24 target-aware fold and range checks as D34's typed module repetition. Literal and [1820] operator trees may reach through module scalar names; a call, storage selection, index or nested array value is refused before lowering. The checker folds the one pattern against the inferred scalar type, so no accepted out-of-range or overflowing pattern can reach lowering as a compiler defect.

D34's representation and emission apply unchanged: a nonzero pattern is one compact repeated image, direct module-array name chains preserve it, and a zero pattern is the absent loader-zeroed image emitted in .bss. Zero count, count-less inferred repetition and every general array value position remain refused. D36 later admits the explicitly typed local mixed form, D37 its assignment and D38 the explicitly typed module image.

Why only counted: without a written type or source run, [of expression] has no source for its length. The scalar can determine an element type but not an array extent, so accepting it would require a separate inference rule rather than completing the symmetry D33 began.

The alternative: infer only locals and require every module repetition to write its array type. That makes storage duration alter whether an explicit count and scalar can determine the same D17 shape, while D34's static image already represents the result. It was declined.

Pinned by positive/module-array-repetition-inferred, negative/inferred-module-array-repetition-element-not-static, negative/module-array-repetition-index-element, negative/inferred-module-array-repetition-extent-overflow, negative/module-array-repetition-fold-range, negative/inferred-array-repetition-zero-count, negative/array-repetition-countless-inferred-initializer-not-enabled, negative/array-repetition-general-value-not-enabled, and runtime/array-repetition-evaluates-once on Linux x86-64.

D36 — A typed local may mix a literal prefix with one repeated suffix

Partly superseded. Its rule stands: a typed destination may take a literal prefix and one repeated suffix when the prefix leaves a nonempty suffix, the prefix is evaluated before the suffix, the repeated value once, and the suffix is one fill. The contexts its fifth paragraph says "This slice admits no" are superseded by D241, except D241's recorded boundaries; what follows is history.

The tour said that repetition may follow values already written between the brackets [0560], that expressions run left to right [0410], and that a local binding may write its fixed-array type [0040]. It did not state which contexts first admit that mixed form, whether the repeated expression runs once, or how the compact fill identifies only the suffix.

Chosen: [e1, ..., ek, of repeated] may initialize an explicitly typed local fixed array of length N exactly when 1 <= k < N. The written type supplies D17's length and scalar element type. Each prefix expression and the repeated expression must have that scalar type, including [0190]'s contextual commitment of an untyped integer. A prefix that reaches or passes N is refused because no nonempty repeated suffix remains.

Lowering evaluates each prefix expression and immediately stores it into parts 1 through k, in source order. It then evaluates repeated exactly once and emits one compact Fill_Array beginning at one-based part k + 1. No hidden array temporary or array-valued IR result is formed. Fill_Array carries its one-based First part; every pre-D36 full fill passes First = 1. The verifier requires First to lie within the destination length as well as retaining the existing destination-shape and scalar-operand checks. Linux x86-64 offsets the destination by (First - 1) * element_size bytes and repeats exactly N - First + 1 width-matched stores.

The parser still does not reserve of. It recognizes the suffix marker only after a nonempty comma-terminated prefix and only when the token after of can begin an expression. Thus [of, other, of] remains an ordinary three-element literal and [of + 1] remains an ordinary one-element literal whose expression may name a binding called of.

This slice admits no mixed module initializer, inferred binding, argument, return, discard, nested array or other general array value. D37 separately admits assignment to an existing mutable fixed-array place, and D38 separately admits the explicitly typed module static-image form. Full-array repetition remains governed by D32--D35, so a prefix length of zero is not a mixed form and does not narrow those existing contexts.

Why local and explicit: it is the smallest context that already owns a runtime destination and supplies both N and the scalar type. Admitting module state would require a mixed static-image representation; inference would need a new length rule; assignment would expand D29/D32's contextual value boundary. Each remains independently testable rather than becoming an unstated result of this slice.

The alternative: materialize the prefix and repeated suffix as a complete array temporary, then copy it to the local. That would hide the observable prefix-store order, allocate storage proportional to D18's target-sized extent, and discard the compact fill representation. It was declined.

Pinned by the parser, checker, IR, verifier, lowering and Linux x86-64 public-seam cases; positive/local-array-mixed-repetition; negative/array-mixed-repetition-prefix-too-long, negative/inferred-array-mixed-repetition-not-enabled, negative/array-mixed-repetition-general-value-not-enabled, negative/nested-array-mixed-repetition-not-enabled; and runtime/mixed-array-repetition-is-source-ordered on Linux x86-64.

D37 — A mixed prefix may assign a mutable fixed array

Partly superseded. D36's mixed form on assignment, its prefix bound and its definite-assignment rule stand. Its write order is superseded by D1827: the prefix and the repeated value read the array as it was before the assignment. Its limit to "a direct local or module array storage name" and the contexts that "remain refused" are superseded by D241; what follows is history.

The tour said that assignment reaches its destination before evaluating its right-hand side [0410], that a mutable binding may be assigned [1900], and that mixed repetition evaluates and stores its prefix before evaluating one repeated suffix [0560]. It did not say whether an existing array place could supply the mixed form's context, whether partial stores changed definite-assignment state, or whether both module and local storage used the compact suffix operation.

Chosen: [e1, ..., ek, of repeated] may be the right-hand side of assignment to a mutable fixed-array place of type [N]T exactly when 1 <= k < N. The destination supplies the complete length and scalar element type. Every prefix expression and repeated must have type T, including [0190]'s contextual commitment of an untyped integer. The existing place check retains [1900]'s mutability requirement, and a prefix that reaches or passes N is refused because no repeated suffix remains.

At this boundary the place is a direct local or module array storage name. D53 later admits a directly selected fixed-array field under the same mixed rule.

The destination is reached and evaluated before any right-hand-side expression. Lowering then evaluates each prefix expression left to right and immediately stores it into destination parts 1 through k. It evaluates repeated exactly once and emits the existing compact Fill_Array with First = k + 1. The same IR operation names either a local frame slot or a module datum; no array-sized temporary, array-valued result, verifier rule or backend operation is added.

Definite-assignment checks every prefix and repeated expression against the state incoming to the assignment. Stores made while evaluating the mixed form do not make an initially unassigned destination readable by a later expression in that same right-hand side. Only successful completion establishes the complete destination as assigned.

Inferred initialization, nested mixed forms and other general-value contexts remain refused. D38 independently admits explicitly typed module initialization; this assignment rule creates no static mixed image and no independently carried mixed array value, and only forms the result directly in existing mutable storage.

Why assignment: D29 and D32 already establish the destination-first, contextual assignment boundary for finite literals and full repetition. D36's ordered prefix stores and Fill_Array.First, plus their verifier and backend paths, express the mixed case without another representation. Extending only this boundary preserves the independently testable initializer and general-value refusals.

The alternative: form a complete temporary and copy it after all expressions finish. That would reverse the observable immediate-store semantics, consume storage proportional to D18's target-sized extent, and make the compact suffix fill transient rather than the destination operation. It was declined.

Pinned by the checker and lowering public-seam cases; positive/array-mixed-repetition-assignment; negative/immutable-array-mixed-repetition-assignment, negative/array-mixed-repetition-assignment-element-mismatch, negative/array-mixed-repetition-assignment-prefix-too-long, negative/array-mixed-repetition-assignment-reads-incoming-state, the retained initializer, inferred, nested and general-value refusal fixtures; and runtime/mixed-array-repetition-assignment-reads-old-value on Linux x86-64.

D38 — A typed module mixed repetition has a compact hybrid image

Partly superseded. Its hybrid encoding stands: a typed module mixed repetition is its finite folded prefix and one suffix pattern, never expanded, and stays a written .data image when its suffix is zero. The mixed forms it says "remain refused" are superseded by D241, except D241's recorded boundaries; what follows is history.

The tour said that repetition is for static patterns in flash [0560], that a module value must be known when the compiler reads it [1940], and that a mixed prefix leaves one expression to fill its suffix. It did not say whether an explicitly typed module array could use that mixed form, how its static image was represented, whether a zero suffix selected .data or .bss, or whether a through-name copy preserved the representation.

Chosen: [e1, ..., ek, of repeated] may initialize an explicitly typed module fixed array [N]T exactly when 1 <= k < N. The written type supplies N and T; every prefix expression and repeated must have type T, and each must be compile-time known under [1940]. Every fold uses the selected target facts and must fit T, including each prefix independently and the one suffix value. Inferred module initialization, nested mixed repetition and every general-value mixed form remain refused.

Lowering folds the finite prefix in source order and the repeated expression once. IR records a hybrid image consisting of those k folded prefix values, one folded suffix value, the element type and the declared length. It never records N - k copies. Image verification checks the finite prefix and one suffix value; the dump renders the same finite run followed by repeat; direct-name image resolution copies that compact representation through chains. None of lowering, IR, verification, dumping or copying walks or allocates in proportion to N.

A hybrid remains a present image when its suffix value is zero, because its nonempty written prefix makes it explicit .data; Linux x86-64 emits the prefix with width-matched scalar directives and then a constant-size .rept N - k around one zero directive, which D536 writes as one .zero. A full repetition of zero retains D34's absent image and loader-zeroed .bss. For every nonzero suffix the backend uses the same .byte, .word, .long or .quad directive, so a 64-bit pattern reaches the assembler with all eight bytes rather than GNU .fill's truncated value field.

Why a hybrid image: a finite prefix plus one suffix pattern is the source's own information and is sufficient to emit every byte. Expanding the suffix would make compile time, host memory, verifier work, dump size and assembly size depend on D18's target-sized extent; treating a zero suffix as absent would discard the nonzero prefix and misclassify initialized data as .bss.

The alternative: lower the initializer to a complete per-position static image. That would reuse D24's literal run but erase the compactness guaranteed by repetition and make a legal target-sized declaration an impractical host-sized compiler computation. It was declined.

Pinned by the checker, IR, verifier, lowering and Linux x86-64 backend public-seam cases; positive/module-array-mixed-repetition; negative/module-array-mixed-repetition-prefix-not-static, negative/module-array-mixed-repetition-suffix-not-static, negative/module-array-mixed-repetition-fold-range; the retained inferred, nested and general-value refusal fixtures; and runtime/module-mixed-array-repetition-holds-hybrid on Linux x86-64.

D536 — A static image's runs are written without expansion

The tour said that repetition is a static pattern that lives in flash [0560], and D34, D38 and D132 kept every run compact through lowering, IR and the assembly text. It did not say what the assembler does with that text. GNU as and LLVM both expand .rept in memory, its body's text once per copy, and GNU as keeps what it expanded, so a compact .rept 100000000 around a nested row asked a 76 MB object for gigabytes of assembler memory.

Chosen: every native backend writes a run of one element through the one set of helpers in Landin.Backend, so the four, arm64 for Linux, FreeBSD and Darwin alike, agree on its form:

  • A run that writes only zero bytes is one .zero: a repeated zero scalar, a hybrid's zero suffix, and a repeated aggregate or array element whose whole image is zero, with its padding.
  • A run of a scalar of one, two or four bytes is one .fill count, size, value, which both assemblers hold as one fragment.
  • What is left, a run of a nonzero composite element, of an address, of an atom, or of an eight-byte scalar whose high half .fill's four-byte value field would drop, is repeated. A count above 256 is written in base 256: for each nonzero digit, a .rept of that digit around as many nested .rept 256 as its place, around the body. A count up to 256 is one .rept as before.
  • Inside a body that is itself repeated, a zero gap or a scalar run of at most 16 bytes is written as plain values, .byte 0, 0, 0 for a record's padding, and only a longer one as .zero or .fill.

A body is therefore written once per nonzero digit, at most eight times, and the text an assembler expands at once is the body's own times at most 256. Nested runs multiply their digits, which D537's budget bounds: within 4 GiB at most three dimensions of an image exceed 256. The object bytes are those the earlier .rept sequences assembled to.

Why one directive where one will do: .zero and .fill are a fragment whose repetition the assembler writes out only into the object, so an image of hundreds of megabytes costs it a few megabytes. A repeated body is expanded, however it is nested, and is what D537 counts against the budget.

Why plain values inside a repeated body, up to 16 bytes: each .zero or .fill opens a fragment of its own, about 140 bytes of GNU as's memory, and a repeated body opens one per copy. A record of a byte, three of padding and a u32 then cost the assembler 20 bytes per image byte, against 3 for a repeated u64, and within a 2 GiB reach some 40 GB. Plain values cost their expanded text instead, about four bytes per zero byte, so they win while the gap is shorter than the fragment's share; at 16 bytes the two are close, and a longer gap is rare in a record and cheaper as one fragment. With the threshold a padded record costs what a repeated quad does.

The alternatives: emit every element, which makes the assembly as large as the image; keep one .rept of the whole count, whose expansion is the count times the body's text and which GNU as retains; use .fill for eight-byte patterns, which loses their high half; or keep .zero gaps in repeated bodies and give composite repetition a budget of its own below the target's reach, which bounds the cost by refusing images the target can hold. Writing a composite run's bytes out as .byte lists was declined for the first reason.

Pinned by backend/module repetition uses compact full-width directives, backend/recursive array descriptors use target strides, backend scale/compact images emit compact assembly on every native target, runtime/static-image-runs on every target and the Cortex-M corpus, and scripts/image_bounds.py, which assembles the compact shapes and holds the assembler's peak memory and the object's size to the image, a repeated padded record among them at six bytes of memory per image byte.

D39 — A written module scalar gives zeroed its context

Superseded by D241. zeroed takes its type from every destination [1880] lists, a typed module scalar among them; what follows is history.

The tour said that zeroed denotes the all-bits-zero image of the type its context supplies [0540], and [1940] requires a module initializer to be known when the compiler reads it. It did not say whether a scalar declaration could supply that context, whether an alias changed the answer, or whether spelling the zero image required initialized data.

Chosen: zeroed may directly initialize an explicitly typed module scalar binding: [mut] name: T = zeroed. The written type must resolve, through any chain of type aliases, to one of [0120]'s enabled scalar types. That resolved scalar is the literal's context. Its compile-time-known value is false for bool and integer zero for every enabled integer type. The rule applies only to the complete initializer in that declaration. D40 separately admits the local initializer and D41 the scalar assignment; an inferred binding, a nested occurrence and every other expression position remain refused.

Lowering uses exactly D10's existing scalar-zero IR: a false Truth for bool and a zero Number of the resolved integer type. No new IR operation, startup code or static fold is introduced. Linux x86-64 therefore uses the existing zero-data classification and reserves the datum in loader-zeroed .bss; it does not write a zero directive into .data.

Why this boundary: the declaration already supplies every fact [0540] needs, and its static zero is the same module image D10 already represents. Restricting the rule to that direct contextual site admits no generally typed zeroed value and leaves local execution and assignment as independently testable slices.

The alternative: make zeroed a general scalar expression wherever an expected type is available. That would also admit locals, assignments, operands, arguments and returns in one step, erasing the contextual boundaries retained by D27, D28 and D30. It was declined.

Pinned by the checker, lowering and Linux x86-64 backend public-seam cases; positive/module-scalar-zeroed-initializer; negative/inferred-zeroed-not-enabled, negative/nested-scalar-zeroed-not-enabled; and runtime/module-scalar-zeroed-reads-zero on Linux x86-64.

D40 — A written local scalar gives zeroed its context

Superseded by D241. zeroed takes its type from every destination [1880] lists, a typed local scalar among them; what follows is history.

The tour said that zeroed denotes the all-bits-zero image of the type its context supplies [0540], and that an initialized local has its value before a later statement reads it [0110]. It did not say whether a local scalar initializer supplied that context, whether an alias changed the answer, or how the value reached local storage.

Chosen: zeroed may directly initialize an explicitly typed local scalar binding: [mut] name: T = zeroed. The written type must resolve, through any chain of aliases, to an enabled scalar type and supplies the literal's context. The value is false for bool and integer zero for every enabled integer type. The complete initializer establishes the binding as definitely assigned. D39 separately governs module initialization and D41 assignment; inferred initialization, nested occurrences and every other expression position remain refused.

Lowering emits D10's existing false Truth or typed zero Number, followed by the ordinary frame-slot Store. It introduces no new IR value, operation or local initialization path.

Why this boundary: an explicitly typed local already supplies the same complete scalar context as D39's module declaration, and the existing constant/store path represents the result without making zeroed a general expression.

The alternative: admit every expected-scalar expression context together. That would silently include assignment, arguments, returns and operands instead of preserving each contextual boundary for executable evidence. It was declined.

Pinned by the checker and lowering public-seam cases; positive/local-scalar-zeroed-initializer; negative/inferred-zeroed-not-enabled, negative/nested-scalar-zeroed-not-enabled; and runtime/local-scalar-zeroed-reads-zero on Linux x86-64.

D41 — A mutable scalar assignment destination gives zeroed its context

Superseded by D241. zeroed may be assigned to every place whose type has a zero image, a mutable scalar among them; what follows is history.

The tour said that assignment reaches its destination before evaluating its right-hand side [0410], that only a mutable binding may be assigned [1900], and that zeroed takes the all-bits-zero image of its context [0540]. It did not say whether a scalar destination supplied that context, whether aliases changed the answer, or when the assignment established local definite assignment.

Chosen: zeroed may be the complete right-hand side of assignment to a mutable scalar local slot or module datum. The destination type must resolve, through any chain of aliases, to an enabled scalar type and supplies the literal's context. The value is false for bool and integer zero for every enabled integer type. The ordinary destination check runs first, retaining mutability and every invalid-place or invalid-type refusal. Only successful completion establishes the destination as definitely assigned.

The destination is reached and evaluated before the right-hand side, as for every assignment. Lowering emits D10's existing false Truth or typed zero Number, then uses the ordinary scalar Store for a local slot or Store_Datum for a module datum. No new IR value, operation, temporary or backend path is introduced.

Inferred initialization remains governed by D39/D40 and is refused without a written type. Assignment to a scalar struct field or fixed-array element is governed separately by D42, and assignment to a named return is not this direct-storage slice. A nested occurrence, argument, return, operand, discard and every other general zeroed expression remain refused; this rule admits only the complete contextual right-hand side of a direct binding assignment.

Why assignment: the mutable destination already owns the scalar type and storage the literal needs. Reusing ordinary assignment preserves destination order, mutability, definite assignment and lowering rather than inventing a carried scalar zeroed value.

The alternative: synthesize an independently typed zero value before reaching the destination. That would reverse [0410]'s assignment order and make a contextual form appear to be a general expression. It was declined.

Pinned by the checker and lowering public-seam cases; positive/scalar-zeroed-assignment; negative/immutable-scalar-zeroed-assignment, negative/inferred-zeroed-not-enabled, negative/nested-scalar-zeroed-not-enabled; and runtime/scalar-zeroed-assignment-clears-values on Linux x86-64.

D42 — A scalar subobject assignment destination gives zeroed its context

Superseded by D241, with D118 for the path. zeroed may be assigned to every place whose type has a zero image, a scalar field or element at the end of any path among them; what follows is history.

The tour said that assignment reaches its destination before evaluating its right-hand side [0410], that selection reaches a struct field or fixed-array element [0520], that only writable places may be assigned [1900], and that zeroed takes the all-bits-zero image of its context [0540]. D41 supplied that context only for a direct mutable scalar binding.

Chosen: zeroed may be the complete right-hand side of assignment to an ordinary scalar struct field or fixed-array element selected immediately from a mutable local slot or module datum. The selected field or element type must resolve, through every representable alias, to an enabled scalar type and supplies the literal's context. The value is false for bool and integer zero for every enabled integer type. D62 later applies this same scalar rule when D48's element is reached through a fixed-array field of that directly named storage.

The ordinary place check runs first, retaining mutability and every invalid-place, invalid-selection and invalid-type refusal. The destination and a computed index are evaluated exactly once and before the right-hand side. A compiler-known index continues to use the existing Store_Field; a computed index continues to carry its ordinary bounds check into the existing Store_Element. The same slot-reaching forms serve local storage. No new IR value, operation, temporary or backend path is introduced.

Successful completion has the ordinary definite-assignment effect of writing that one field or compiler-known element. It neither assigns any sibling field nor the array as a whole; a computed element retains the existing per-element facts and bounds behavior. A failed or refused assignment establishes nothing.

D41's direct binding assignment remains unchanged. An immutable subobject, a selection from an invalid place, a nested subobject destination in this slice, and assignment to a named return remain outside it; D43 treats the last as its own contextual position and D62 later admits the one nested shape D48 already makes an ordinary scalar place. D49 separately treats one fixed-array field as a contextual zeroed destination without changing this scalar rule. D65 later applies the same typed scalar image to a field label inside D64's contextual struct literal. Inferred initialization and every nested, argument, return, operand, discard or other general zeroed expression remain refused.

Why the selected type: a scalar subobject already owns both the type and the storage that the contextual literal needs. Reusing the ordinary place and store paths preserves source order, definite assignment and bounds checks without turning zeroed into a general value.

The alternative: infer an independent scalar zero before selecting the field or evaluating the index. That would reverse [0410]'s order and bypass the place semantics this assignment must preserve. It was declined.

Pinned by the checker and lowering public-seam cases; positive/scalar-subobject-zeroed-assignment; negative/immutable-scalar-zeroed-assignment, negative/inferred-zeroed-not-enabled, and negative/nested-scalar-zeroed-not-enabled; positive/struct-array-field-element-zeroed; positive/struct-literal-array-field-forms; negative/struct-array-field-element-zeroed-immutable; negative/struct-array-field-element-zeroed-nested; runtime/scalar-subobject-zeroed-assignment-clears-values; and runtime/scalar-subobject-zeroed-computed-index-traps on Linux x86-64.

D43 — A scalar named return gives complete zeroed assignment its context

Superseded by D241. zeroed may be assigned to every place whose type has a zero image, a scalar named return among them; what follows is history.

The tour said that a named return is a writable place [1800], that return carries the value previously assigned there [1810], that every return path must assign it [0930], and that zeroed takes the all-bits-zero image of its context [0540]. D41 supplied assignment context only from mutable local and module bindings, while D42 treated their immediate scalar subobjects separately.

Chosen: zeroed may be the complete right-hand side of assignment to a scalar named return. The return's declared type must resolve, through every representable alias, to an enabled scalar and supplies false for bool or typed zero for every enabled integer. The ordinary place check still runs before the right-hand side, and successful ordinary assignment establishes the named return for [0930]'s definite-assignment check.

Lowering reuses the named return's existing frame-slot Store path with D10's existing false Truth or typed zero Number. The explicit or implicit return then uses its ordinary load and Leave. No new scalar value form, temporary, IR operation, verifier rule or backend path is introduced.

D39--D42's initializer, binding and immediate-subobject contexts remain unchanged. Immutable and invalid destinations retain the ordinary place refusals. A named- return subobject is not admitted by this rule; aggregate named returns are not an enabled value context and remain a separate future question. Inferred initialization and every nested, argument, return-expression, operand, discard or other general zeroed expression remain refused.

Why the named-return type: the return place already owns the type and storage that the contextual literal needs. Its ordinary assignment is also exactly the flow event [0930] requires, so a special return initialization rule would duplicate both storage and definite-assignment semantics.

The alternative: make zeroed an independently inferred scalar value usable by any return-related expression. That would erase the complete-right-hand-side boundary and broaden general scalar values well beyond the evidence. It was declined.

Pinned by the checker and lowering public-seam cases; positive/named-return-zeroed-assignment; and runtime/named-return-zeroed-reads-zero on Linux x86-64.

D136 — Fixed-array bounds use a closed target-independent fold

The tour said that an array's length is a compile-time value [0370], that its size is part of its type [0520], that fixed parameters are compile-time [1290], and that parameterized types use substitution rather than execution [1350]. Prototype 3 wrote [64 * 1024]u8. None said which expressions could supply a bound or whether accepting a call there would execute user code.

Chosen: the syntax between an array type's brackets is an expression. Its fixed meaning is deliberately closed: integer literals, references to fixed formals, parentheses, unary -, and the non-wrapping arithmetic +, -, *, / and %. These operations use mathematical integer answers within the widest enabled integer magnitude; they do not acquire an operand width from a host or target. Every intermediate answer must remain in that range, division or remainder by zero is impossible under [1950], and a negative final answer is refused. When source legality otherwise admits the bound, the folded answer is D17's canonical element count and D18 checks its target byte extent exactly as it does for a literal bound. A final answer of zero is accepted: [0]T and any admitted fixed expression that folds to zero denote D17's canonical zero-element shape. Its size is zero, its alignment is one (D413 gives a C record's last [0]T its element's alignment, as C's flexible array member has), and the ordinary rules for its context still apply; in particular this does not add empty literal syntax or make repetition valid in a context whose length is zero.

A boolean or a comparison/logical result is not an integer count. Wrapping, bitwise, complement and shift operations need an operand width and are not in this target-independent fold. A runtime or storage name is not a fixed formal; a type formal or another non-value name is diagnosed as such rather than called runtime storage. D438 later admits an immutable module integer whose own image is in this fold, and refuses a mut one as storage the program may write. D1321 admits an integer compiler fact and sizeof of a scalar type, and D1340 alignof of a scalar type, which the selected target answers before checking. A call is syntactically valid in the brackets but is not a fixed expression: the compiler rejects it and never executes its body. No other expression form is admitted, and an implementation becoming better at ordinary constant folding does not enlarge this set.

The same evaluator handles a direct bound and an alias-template bound such as [n * 2]t. During symbolic template validation an unknown fixed formal remains unknown; during an application its substituted value is folded locally. Before a nested template application can inherit an application origin, the nested template is validated on its own. An unconditional inner defect is therefore reported once at the inner declaration regardless of declaration order. Only a failure that depends on substitution is primary at the application and relates the failing template expression, so two bad applications remain distinct. No instantiation writes a value, type or shape onto the template syntax, and fixed actuals in a type application remain D135's integer literal or forwarding fixed formal rather than growing a second expression grammar in argument position.

Why a closed mathematical fold: executing a helper would contradict [1350] and make compile-time effects possible. Reusing the ordinary target-width fold would make type identity depend on a selected target before D18 asks its layout question. Admitting whatever an optimiser happens to fold would move source legality between compiler versions. All three were declined.

Pinned by the parser, checking and lowering public-seam cases; positive/fixed-array-bound-expression and positive/fixed-array-bound-zero; negative/fixed-array-bound-call, which contains a valid user call whose body is never run; negative/fixed-array-bound-invalid; the generated lexical, construct and IR records; and runtime/fixed-array-bound-expression and runtime/fixed-array-bound-zero on Linux x86-64.

D141 — An empty slice uses the lowest aligned non-null base

The tour said that an empty slice has a canonical aligned address, is not null, cannot be dereferenced, and yields that base through base_of [0580]. It did not select one aligned address.

Chosen: the numerical address equal to the element alignment: one for a byte-aligned element, four for an ordinary u32, and so on. It is the lowest positive aligned address, depends only on target facts and element layout, and therefore remains stable across compiler runs without reserving real storage. The zero length is checked before any address arithmetic, so the address is never accessed.

The alternatives: a compiler-owned static sentinel, one sentinel per type, or any implementation-selected aligned nonzero pattern. A static symbol makes the observable integer address link-dependent; per-type sentinels add storage and identity with no language value; an unspecified pattern contradicts canonical once pointer-to-integer conversion can observe it.

Pinned by runtime/r250-references, the empty-slice IR verifier path, and the Linux x86-64 backend's target-derived empty-base emission.

D161 — Byte-context text is a pooled read-only datum and slice

The tour said that [0260]'s text literal takes utf8, []u8, utf16 or cstring from context, defaults to utf8, lives in read-only storage and carries an uncounted trailing NUL. [0270] closed its escape set and separated byte escapes from codepoint escapes. It did not state whether one literal context could be enabled before the text types, whether equal literals share an object, or which stage owns malformed spelling.

Chosen: the kernel admits a quoted literal only where a direct context supplies read-only []u8. Its unescaped source content must be shortest-form UTF-8; \n, \r, \t, \e, \\, \", \' and \xNN decode to bytes, including an arbitrary byte from \xNN. A well-formed \u{...} is text rather than bytes and is L0301 in this context. A literal with no context still defaults to the deferred utf8 and is L0304; utf8, utf16, cstring and their codepoint representation remain later text work at this decision. D181 supplies them.

Malformed UTF-8 source content or an unknown, incomplete or nonscalar escape is lexical L0320 at the offending run. The scanner first retains the complete escape-aware token, so an escaped quote cannot close it; the shared decoder then validates every token before configuration can hide a declaration. An unclosed token remains L0014. The parser retains one text node and its source span, and checking supplies its complete immutable []u8 reference descriptor.

Lowering decodes the content into one anonymous target-neutral fixed array of u8, appends one zero byte, marks the datum read-only and constructs each literal value as its base address plus the decoded length. Equal decoded byte sequences throughout the program use one datum, even when their source escape spellings differ; this identity is observable when their element addresses are converted to integers. Module values carry the same datum relocation and length as a static slice image. Anonymous datums are registered before item bodies are filled and completed in item order afterward, preserving the IR's contiguous-run invariant. The Linux backend emits them in .rodata; no text opcode, runtime initialization or writable copy was added.

The alternatives: enable utf8 and codepoint decoding at the same time, make a literal a fixed [N]u8, synthesize a writable copy in each context, give equal occurrences distinct storage, omit the trailing NUL, or let the checker and lowering each interpret escapes independently. Those choices either pull [0600]'s indexing and representation questions into this slice, lose [0260]'s contextual carrier or read-only promise, duplicate flash on the small targets the language preserves, contradict the stated C boundary, or permit two compiler stages to disagree about the bytes. All were declined.

Pinned by runtime/text-literal-bytes, negative/text-literal-codepoint-in-byte-context, negative/text-literal-malformed-codepoint-escape, negative/text-literal-needs-byte-slice, negative/text-literal-needs-read-only-slice, negative/text-literal-short-byte-escape, negative/text-literal-unknown-escape, negative/text-literal-write, the lexer and backend cases, and the source.lexical and text.literal-storage guarantee rows.

D181 — Hosted text views retain identity over pooled encoded storage

The tour said that [0600]'s utf8, utf16 and cstring are distinct views over []u8, []u16 and ptr u8; that [0260]'s quoted and [0280]'s raw literals take one of those contexts and default to utf8; and that [0270] separates byte escapes from Unicode scalar escapes. D161/D164 had enabled only the direct []u8 contexts. The tour did not settle whether representation identity could leak through structural generics, whether the terminator was a byte or an element, or how static pointer images name pooled data.

Chosen: the kernel admits quoted and raw literals in direct utf8, utf16 and cstring contexts and makes contextless literals utf8. Each is a canonical immutable reference identity distinct from the other two and from its backing pointer or slice type. That identity is carried by parameters, results, struct fields, control joins, exact generic actuals and evidence descriptors. Binding mutability remains separate and cannot grant write permission through a text view. Literal storage has static origin, so a literal may be returned without inventing a parameter-derived origin.

Unescaped source is validated as shortest-form UTF-8. In a text context, \u{...} must name one Unicode scalar value and is encoded as shortest-form UTF-8 for utf8 and cstring, or as one UTF-16 code unit or surrogate pair for utf16. The simple [0270] escapes denote the corresponding scalar values. \xNN remains exclusive to D161's byte-slice context, and \u{...} remains excluded from it. Raw content has no escapes: after D164's indentation rule, its validated UTF-8 scalars are retained for utf8/cstring or transcoded to UTF-16. Malformed source and escape spelling retain L0320/L0323; a valid escape used in the wrong context is L0301.

Lowering pools decoded content by element width. Equal UTF-8 byte sequences may therefore share one u8 datum across []u8, utf8 and cstring, while a UTF-16 sequence names a separate u16 datum. Exactly one zero element follows every datum. A slice image excludes it from its code-unit length; cstring carries only the base address. Module and aggregate images hold verified data relocations, including cstring fields, and the Linux backend emits every pool entry in read-only storage. No runtime initialization or text-specific opcode is introduced.

Literal construction establishes valid encoding, so every pooled cstring remains shortest-form UTF-8. D199 separately admits foreign C-text values whose only text-specific pointer precondition is accessible read-only backing through the first NUL byte. Such a value is not prevalidated UTF-8 merely because it has cstring identity: byte conversion scans its extent without decoding, while conversion to utf8 and scalar traversal validate. This distinction does not permit an ordinary pointer to acquire cstring identity.

This decision does not inherit operations from a representation. lenof continues to expose the existing slice length for utf8 and utf16, but integer or position indexing remains [0610]'s separate work. Range slicing and collection traversal likewise require their own text operation or evidence instead of treating a hosted view as an ordinary slice. Existing byte-slice literals, ranges, arrays, origins and evidence behavior are unchanged.

The alternatives: erase each view to its backing reference, give each occurrence distinct storage, count the terminator, store a cstring as a slice, accept byte escapes as Unicode scalars, or enable integer indexing with the representation. Those choices lose declared identity, duplicate read-only data, contradict [0260]'s length and C boundary, admit invalid text, or decide [0610]'s linear codepoint semantics without its own evidence. All were declined.

Pinned by runtime/hosted-text-views, retained byte-literal runtime fixtures, negative/cstring-literal-write, negative/text-literal-codepoint-in-byte-context, negative/text-view-byte-escape, negative/text-view-identities-are-distinct, the decoder, IR verifier and backend cases, and the source.lexical and text.literal-storage guarantee rows.

D182 — UTF-8 index type selects ordinal scan or direct position

Result superseded by D249 and D259. The two operations, their evaluation order and their traps stand. D249 replaced the []u8 result with the decoded u32; D259 replaced the exact u32 ordinal argument with usize. The reasoning below is retained as history, and the fixtures it names were reshaped or renamed by those decisions.

The tour said that [0610] gives utf8 two indexing conformances: an integer selects one codepoint by ordinal with a linear scan, while a position selects in O(1), and either returns that codepoint's bytes. [0600] had already made core/text.position an opaque byte offset for parser support. It did not say which integer type is exact, what happens at an invalid ordinal or byte position, which origin and permission the returned bytes have, or whether the operation reaches other text identities through their representations.

Chosen: utf8[u32] counts Unicode scalar values from zero by decoding their shortest-form leading-byte widths. An untyped integer literal in this position receives u32; every other integer value is L0301 rather than an implicit conversion. utf8[core/text.position] reads the exact public opaque position identity supplied by the repository-owned module and uses its byte offset without scanning the preceding text. A same-shaped nominal type is not that position. The source expression is evaluated and retained once before the index or position expression.

Both forms produce an ordinary read-only []u8 containing exactly the one to four encoded bytes of the selected codepoint. The slice excludes D181's terminator and derives from the complete utf8 source, so mutation is L0303 and returning it requires the ordinary exact from source declaration. An ordinal equal to or beyond the codepoint count traps. A position at the byte length or on a UTF-8 continuation byte likewise traps; only an in-bounds leading-byte boundary names a codepoint. These are [1950]/[1960]'s synchronous checked-address failures, not declared atom errors.

Lowering expresses both operations with existing target-neutral scalar comparisons, backward CFG edges, checked slice addresses and an ordinary slice result. It introduces no text opcode, allocation, writable alias, new datum or evidence-table representation. utf16 and cstring do not acquire indexing, and text slicing and traversal remain separate work. D181's validation, identity, pooling, terminator, origin and literal-error rules, plus existing array, byte-slice, range and evidence behavior, are unchanged.

The alternatives: take usize because arrays do (adopted later by D259 when the width limit became clear), accept every integer, expose a raw byte for position indexing, scan positions from the start, return u32, include the terminator, inherit indexing through every text carrier, or report a declared error. Those choices contradict [1270]'s written u32 conformance, introduce implicit conversion, disagree on the two result types, erase the promised O(1) operation, lose the encoded-byte view, expose storage outside the text, or make one checked-address failure unlike all other indexing. All were declined.

Pinned by runtime/utf8-indexing, runtime/utf8-ordinal-out-of-range-traps, runtime/utf8-position-at-end-traps, runtime/utf8-position-not-boundary-traps, negative/utf16-indexing-is-not-utf8-indexing, negative/utf8-index-needs-usize-or-position, negative/utf8-index-position-identity-is-exact, negative/utf8-index-result-is-not-a-place, negative/utf8-index-result-has-no-address, retained hosted-text and byte-slice/range fixtures, the generated IR record, and the text.indexing guarantee row.

D183 — Text ranges preserve identity at scalar boundaries

The tour said that [0570]'s range selection copies no elements, [0600] makes utf8 and utf16 distinct length-bearing views whose lengths count code units, and cstring carries no length. D181 kept range selection separate so the backing slice did not leak accidentally. It did not say which text identities have ranges, which type names their endpoints, how an endpoint interacts with a multibyte or surrogate encoding, or what identity, permission and origin the result retains.

Chosen: the exact utf8 and utf16 identities admit lower..<upper and lower..upper; cstring does not. Both endpoints are exact usize code-unit offsets, receiving that context when written as integer literals. A utf8 offset counts bytes and a utf16 offset counts 16-bit code units. No other integer type converts implicitly.

Both endpoints must be Unicode-scalar boundaries. For UTF-8, an in-bounds boundary is a shortest-form leading byte, never a continuation byte. For UTF-16 it is any non-low-surrogate code unit, including the high surrogate of a valid pair. The half-open form requires 0 <= lower <= upper <= lenof source; the length itself is a valid boundary, so an empty view at the end is valid. The inclusive form requires 0 <= lower <= upper < lenof source, and includes the whole scalar beginning at upper: one to four bytes or one to two UTF-16 code units. It never returns half a scalar. An invalid ordinary bound or a split-scalar endpoint traps synchronously through [1950]/[1960]'s checked-address mechanism and declares no atom error.

The result retains the source's exact utf8 or utf16 identity, immutable permission and complete source-derived origin. Binding mutability cannot make it writable, returning it requires the ordinary exact from source, and it cannot satisfy the other text identity or its ordinary backing-slice type. The source expression is evaluated and retained once, then the lower and upper expressions are each evaluated once in written order [0410].

Lowering copies the source's base/length carrier into temporary storage before either bound, applies the existing ordinary range check, classifies the two encoded boundaries with target-neutral scalar comparisons, and emits an ordinary base/length result. Inclusive selection advances its physical upper end by the selected scalar width. No text opcode, allocation, new datum, writable alias or evidence entry is introduced. D181's validation, pooling, terminator and literal errors, D182's indexing, and existing ordinary slice/range/array/evidence behavior remain unchanged. Collection traversal remains separate.

The alternatives: expose []u8/[]u16, admit cstring, use u32 codepoint ordinals, inherit ordinary range behavior without boundary checks, make inclusive upper select one physical code unit, or report a declared encoding error. Those choices erase the declared view, require a length that does not exist, turn constant-time code-unit slicing into scans, construct an invalid text value, split a scalar, or make the same checked-address failure recoverable only for text. All were declined.

Pinned by runtime/text-range-slicing, runtime/utf8-slice-lower-not-boundary-traps, runtime/utf8-slice-upper-not-boundary-traps, runtime/utf16-slice-not-boundary-traps, negative/cstring-range-slicing-has-no-length, negative/text-slice-needs-usize-bounds, negative/text-slice-result-keeps-identity, negative/text-slice-result-is-read-only, negative/text-slice-result-keeps-origin, retained D181/D182 and ordinary slice/range fixtures, the generated IR record, and the text.slicing guarantee row.

D184 — Hosted text traversal decodes scalar Items

The tour said that [0600]'s hosted text types are distinct views and that traversal is [1320]'s concept operation [1150]. D181 kept traversal separate from each backing carrier, and D183 again preserved that boundary after range slicing. The tour did not say which text identities traverse, whether an Item is an encoded unit, encoded view or Unicode scalar, which cursor identity is exact, where a C string ends, or how validation, origin and provider order apply.

Chosen: each exact utf8, utf16, and cstring identity has one closed intrinsic conformance to [1320]'s first, at_end, item, and next contract. It is a direct language realization like the existing range and storage traversals, not a source-declared evidence row: it neither searches nor changes the ordinary conformance register, and an ordinary []u8, []u16, or ptr u8 does not inherit it. The exact Cur type is usize, kept privately as a physical code-unit offset. The exact Item type is u32, the same Unicode scalar identity as [0250], copied immutably into the loop binding with no reference origin.

For utf8 and cstring, Cur counts bytes and item decodes one shortest-form UTF-8 scalar. For utf16, Cur counts 16-bit code units and item combines a surrogate pair when present. next advances by the decoded scalar's one-to-four bytes or one-to-two UTF-16 code units. The optional loop index remains [1150]'s scalar ordinal: it begins at zero and advances once with next, independently of Cur's physical increment. utf8 and utf16 end at their retained lengths. cstring ends before the first zero byte, whether that byte is an embedded U+0000 or D181's trailing terminator; the zero is never an Item.

The complete source expression is evaluated and retained once before first. Every test calls at_end; false calls item before the body; fallthrough and continue run cleanup and then next; break runs cleanup and skips next. This is D180's provider order exactly, without observable provider-expression evaluation because the four implementations are intrinsic. The retained text source stays immutable and keeps its complete origin until traversal ends.

D181 validation and D183 boundary-preserving slices make every reachable utf8 or utf16 encoded unit sequence valid. A pooled literal cstring is valid for the same reason. D199's foreign cstring boundary, however, promises only accessible backing through the first NUL. Its intrinsic traversal validates each shortest-form UTF-8 scalar before decoding it and traps synchronously on malformed, truncated, surrogate or out-of-range encoding, including inside unchecked; a continuation equal to NUL is rejected before any later byte is read. The operations still declare no atom error. A missing terminator or stale storage violates [0430]'s pointer validity non-guarantee rather than becoming a text error. Lowering uses ordinary target-neutral scalar loads, comparisons, conversions, arithmetic, checked traps and CFG. It introduces no text opcode, allocation, datum, mutable alias or evidence-table entry. D181--D183 pooling, terminators, identities, indexing, slicing, permissions and origins remain unchanged, as do range, array, slice and declared-evidence traversal.

The alternatives: traverse only the length-bearing identities, expose encoded u8/u16 units or codepoint byte slices, use core/text.position for one view, scan cstring past NUL to the pooled datum's unobservable end, let a user conformance replace the built-in semantics, or report decoding atoms. Those choices respectively lose the C text boundary, make one source character take several iterations or give two Item types, confuse the parser's public byte position with an intrinsic cross-encoding cursor, contradict NUL termination, make direct text traversal module-dependent, or add a recoverable failure after validation already made it impossible. All were declined.

Pinned by runtime/hosted-text-traversal, negative/text-traversal-item-is-read-only, negative/text-traversal-ordinary-pointer-is-not-cstring, retained D181--D183 and range/array/slice/evidence fixtures, the generated IR record, and the text.traversal guarantee row.

D249 — A UTF-8 index decodes the codepoint it selects

The tour said that [0610]'s two indexing operations each return the selected codepoint's bytes as a []u8, and D182 made that a read-only view with the source's origin. The same tour writes a character literal as a u32 [0250], and D184 made every scalar a traversal yields a u32. So s[i] and the ith scalar of for c in s were different kinds of value, s[0] == 'T' was refused as a comparison of a slice, and addr s[0] was accepted as a pointer to a slice descriptor that no storage held. Lowering could not form that pointer, and the IR verifier stopped the compilation as an internal defect.

Chosen: both operations decode the selected scalar and produce it as a u32, with no reference, permission or origin. D182's argument rules, evaluation order and traps are unchanged: u32 scans codepoint ordinals linearly, core/text.position reads its byte offset in O(1), and an absent ordinal, the end position or a continuation byte traps. The indexed scalar is a value, not a place. addr s[i] is L0337, and an assignment, inc, dec or inout argument through s[i], including one reached by indexing further, is L0303, each saying that the index decodes a value. The encoded bytes of one codepoint are D183's one-scalar inclusive range, which keeps utf8 identity and copies nothing.

D259 later changes the exact ordinal argument to usize; the decoded result and position form remain as chosen here.

Lowering checks the selected leading byte's address, lets its class fix the width and its payload mask, then folds six bits from each continuation byte in one loop shared by every width, with masks and shifts rather than D184's biased products, which Cortex-M0 widens to a 64-bit multiply call. D181's validation is what makes every continuation byte in a utf8 valid, so those reads add no check. There is still no text opcode, allocation or evidence-table representation.

The alternatives: keep the slice result and refuse addr of it, the same refusal a range selection already gets; give the usize byte index a u8 result, so that utf8 indexes like []u8; or return a one-codepoint utf8. The first repairs the defect and leaves the two scalar types. The second counts bytes where [0610] counts codepoints, and would drop the ordinal indexing retained position RP1 keeps. The third makes a codepoint text, so it compares with text.eq rather than with a character literal. All were declined.

Pinned by runtime/utf8-indexing, runtime/utf8-ordinal-out-of-range-traps, runtime/utf8-position-at-end-traps, runtime/utf8-position-not-boundary-traps, negative/utf8-index-result-has-no-address, negative/utf8-index-result-is-not-a-place, negative/utf8-index-needs-usize-or-position, runtime/core-mem-initialized-objects, runtime/core-tree-indices, runtime/text-range-slicing, runtime/derived-containers, and the text.indexing guarantee row.

D259 — UTF-8 ordinal indexes span the text view

The earlier decision said that D182's exact u32 ordinal keeps [1270]'s written conformance and distinguishes it from the opaque byte position. But D181 permits a validated utf8 view with a usize byte length, and D183 and D184 use usize positions to reach its full extent. On a 64-bit target, 4,294,967,297 ASCII bytes form a valid view whose final scalar has ordinal 4,294,967,296. A u32 index cannot name it.

Chosen: the exact ordinal argument of utf8 indexing is usize. An untyped integer literal receives usize context; another integer type, including u32, is L0301 without an explicit conversion. The scan's counter and requested ordinal use usize, so every scalar of a view whose byte length is representable by usize has a representable ordinal. The counter advances only after an in-bounds leading byte; it cannot wrap before the end of a valid view. The core/text.position byte-offset form, decoded u32 result, evaluation order and checked-address traps stay as in D182 and D249. On a 32-bit target, usize remains 32 bits and matches the view's length domain without widening the machine representation.

The alternatives: retain u32 and cap utf8 views to that many scalars, or accept both u32 and usize ordinals. The cap would reject an otherwise valid byte view on 64-bit targets. Two ordinal types would add a conformance and make the same indexing operation depend on overload selection. One exact target-sized argument keeps the existing rule that the index type decides the operation and follows the view's representable size.

Pinned by runtime/utf8-indexing, runtime/utf8-ordinal-out-of-range-traps, negative/utf8-index-needs-usize-or-position, and the text.indexing guarantee row. Large-view reachability follows from the type domains; the fixtures do not allocate a multi-gigabyte view.

D250 — A range selection is a view, not a place

The tour said that [0570]'s range selection is a view, a pointer and a length that copies nothing, and the grammar's place is any indexed form, which includes a range selection. [1900] lists what may be written and does not name one. The checker accepted view[0..0] = other and inc a[0..<2], and lowering, which has no storage for a view that no binding holds, stopped the compilation as an internal defect. inout already refused the same selection as a temporary value.

Chosen: a range selection is not a place. An assignment, compound assignment, inc or dec whose target is one is L0303, saying that the range is a view. An element indexed through a range remains an ordinary place, with the write permission of the view it selects from, so view[1..<3][0] = 20 writes the storage behind view. The grammar is unchanged; this is a checking rule, as the writability of every other indexed form is.

The alternatives: copy the right-hand side's elements into the selected range, or rebind the view. The first is a hidden loop, with a length check and an overlap question, behind the syntax of a scalar store; the second replaces a view that no binding holds, so nothing could observe it. Both were declined; a copy stays the explicit loop or library call it is today.

Pinned by negative/range-selection-is-not-a-place and runtime/range-selection-element-is-a-place.

D209 — Numeric array arithmetic retains values before scalar loops

The tour said at [0590] both that comparisons were element-wise and that array equality returned one bool. D200 had already refused array comparisons. It also wrote a reduction name without defining a builtin or an ordinary body.

Chosen: keep D200's comparison refusal. Lift binary +, -, *, / and unary - over fixed arrays of enabled integer or float elements, and %, +%, -%, *% over integer elements only. Two arrays have exactly equal lengths and element types. An array and a scalar of its element type, in either order, produce that array type; literal context reaches the scalar element. There is no length-one array broadcast, implicit conversion, nested array arithmetic, bool arithmetic, bitwise/shift lifting or slice arithmetic. An empty array still checks both operand types and evaluates its operands, but runs no element operation.

Operands are evaluated exactly once, left to right. Each array operand is a complete retained value before the next operand is evaluated. The operation then visits ascending indices, applying the corresponding scalar semantics, including overflow traps, wrapping, division failures and IEEE values. An assignment evaluates its destination first and cannot overwrite an operand snapshot. Compound arithmetic assignment evaluates its place once, retains the old array value, then evaluates the right operand and applies the same rule. D1827 gives an assigned array literal the same by-value meaning. Known-operand refusals still apply where the scalar rule requires them. Retaining an operand's value does not require copying it when its storage remains stable through the other operand's evaluation and the scalar loop. When that storage is disjoint from the destination, the loop may write the destination directly; an overlapping or effectful case still preserves the retained values.

No reduction builtin is added. [0590]'s sum_four is an ordinary function whose positive-zero initial value and left fold specify the rounding order. The compiler emits compact scalar loops, not one instruction or compiler metadata record per array element. Storage for a separate result and necessary snapshots is real; a 16 KB array does not fit for free on a 32 KB device.

The alternatives: mask-valued comparison, implicit whole-array equality, length-one array broadcast, per-element code expansion, or snapshot-free arithmetic into an overlapping destination. The first two contradict D200, the third hides a shape change, the fourth spends code and compiler memory in proportion to the bound, and the last changes by-value evaluation. All are rejected. SIMD and reassociated reductions are not required by this slice.

Pinned by the 4- and 4096-element programs generated from compiler/tests/quality/arrays.ldn.in and the numeric compactness checks in compiler/tests/quality/check.py, and by the arrays.arithmetic and arrays.element-traps guarantee rows, whose r450 fixtures pin the refusals, the operand snapshots and the element order of every trap.

D240 — Fixed arrays are the vector type, and the atomic wrapper is a library's

The tour said that the compiler module reaches the atomic and vector intrinsics [1560] and that the standard library wraps the atomics into a pleasant type [1620]. The note on a compiler.vector_* reference said the baseline code-generation work enables it; that work implemented D209's element-wise operators over fixed arrays instead and never enabled an intrinsic.

Chosen: the vector intrinsics are withdrawn. [0590] already makes fixed arrays the vector type, and a second spelling of the same operation is the second vector shape [0590] was written to refuse. A compiler.vector_* reference keeps its L0203, and its note now says it is withdrawn and points at element-wise operators. The wrapper type is transferred to the Broader standard library successor, which [1620] now names. Cortex-M0 refuses every read-modify-write atomic (D227), so a wrapper portable across every implemented target would offer only loads, stores and fences there, and which operations a wrapper exposes is a design question for the program that needs one. No derived program or core module needed one: the driver uses platform/cortex_m's interrupt masking and D227's barriers.

The alternatives: compiler.vector_* as aliases of the operators was declined as two spellings of one operation. A core/atomic wrapper now was declined: it has no consumer, and on the smallest target it would be a type whose operations change with the target. Leaving [1620]'s sentence as a promise with no owner was declined because [1830] and the construct inventory refuse an unowned promise.

Pinned by negative/r720-vector-intrinsic-withdrawn, runtime/r450-array-arithmetic-composition, negative/r630-m0-rmw and runtime/r630-memory-scalars.

D438 — An immutable module integer is an array bound

The tour said at [0520] that an array's length is part of its type, and at [1940] that a module value is known when the compiler reads it. D136 folded a bound from literals, fixed formals and arithmetic and called every other name runtime storage, so [path_max]u8 with path_max: usize = 4096 was L0305, "this name is runtime storage", and platform/posix declared its PATH_MAX buffer as a type alias in each arm of a fixed if.

Chosen: an array bound may name an immutable module integer binding, in its own module or through another's name (D324), when that binding's image is itself a count: integer literals, D437's integer compiler facts, other such bindings, unary - and D136's mathematical + - * / %. The name folds to its mathematical value, so with half: usize = 32, [half + 1]u8 is the type [33]u8, and D17, D18 and template validation treat the count as a literal. A mut module value is refused, since the program may write it; so is a binding of a type other than an integer scalar, or one whose image leaves the fold, a measurement, a conversion or a bitwise operator, each with L0305 at the bound. A cycle, a call or an overflow in the image is the module value's own L0305 and is not reported again at the bound.

A count derived from a compiler fact is admitted: word: usize = compiler.word_size / 8 sizes [word]u8. Configuration reads facts and selects arms before checking begins, so the count is fixed before any type is interned, exactly as a type alias a fixed if selects per target already is; type identity has depended on the selected target since D139. D136's objection, a fold at a target's width, does not arise: the fold stays mathematical. A fact written in the brackets themselves was not admitted here, the bound naming a module value that holds it; D1321 admits it, and sizeof of a scalar type, in the bound and in the image.

Why not more: a module value admits more than D136's fold, measurements, conversions and wrapping arithmetic among it, and admitting those in a bound would carry target-width answers into type identity, which D136 declined. D1321 later admits the one measurement whose answer the target gives before checking, sizeof of a scalar type.

The alternatives: keeping the refusal and naming the type-alias route in L0305's note; and admitting any module value the ordinary folder knows, which moves a bound's legality with D224's folder. Both were declined.

Pinned by runtime/fixed-array-bound-module-constant on every target, Cortex-M0 included, negative/fixed-array-bound-module-value and the checker case invalid parameterized templates are checked when unused.

D1321 — An array length reads a compiler fact and sizeof of a scalar

Amended by D1663. What an array length folds, a type application's fixed actual folds too.

The tour said at [0520] that a length is a constant the compiler works out without running anything, and at [1500] that compiler.word_size is a fixed fact. D136 closed the bound's fold over literals, fixed formals and mathematical arithmetic; D437 let a module value read a fact and D438 let a bound name such a value, so [2 * 128 * compiler.word_size]u8 was L0203, whose note sent the fact through a module value, and [2 * 1024 * sizeof usize]u8 was L0305, "not one of the closed fixed-expression forms".

Chosen: an array length, wherever its type is written, a routine body, a signature, a struct field and an alias template included, may read an integer compiler fact (compiler.word_size, compiler.cache_line) and sizeof of a built-in scalar type, directly, and so may the image of a module integer D438 counts. Each folds as the literal it stands for: the fact is the value configuration found for the selected target once it chose the arms, and the size is that target's storage size of the scalar, so a 32-bit target's [sizeof usize]u8 is [4]u8 on a 64-bit host. Both are known before checking begins, exactly as the selected arm of a fixed if is, and type identity has depended on the target since D139. A bool fact in a length is refused as no count, an atom fact alone stays L0203, and every other measurement, sizeof of a declared type, a fixed array or a type formal, and alignof of anything, stays L0305 with a message that says what folds. D1340 later admits alignof of a scalar type. A fixed actual of a type application is still an integer literal or a forwarded fixed formal (D135), and a routine body still reads no fact as a value.

The alternatives: keeping the module-value route that D438 named, which makes every stack buffer sized by the word declare a module value first; admitting alignof of a scalar too, which nothing has asked for; and admitting any measurement the checker can answer, which would make a bound wait for a declared type's layout and move type identity with it.

Pinned by runtime/array-length-reads-facts-and-sizeof on every product target, Cortex-M0 included; positive/array-length-facts-at-the-target-width, which holds [sizeof usize]u8 to [4]u8 on synthetic-32 and to [8]u8 on the 64-bit targets; and negative/array-length-refusals-are-reported-once.

D1340 — An array length reads alignof of a scalar

The tour said at [0520] that a length is a constant the compiler works out without running anything, and at [0370] that alignof measures a type. D1321 admitted sizeof of a built-in scalar type in a length and in the image of a module integer D438 counts, and left alignof of anything L0305, as nothing had asked for it.

Chosen: alignof of a built-in scalar type folds wherever D1321's sizeof does, in an array length and in a counted module integer's image, as the literal the selected target answers: the alignment the same measurement gives in a routine body and in a fixed condition, the scalar's size capped at the target's widest scalar alignment. Like a scalar's size it is known before checking, so [alignof usize]u8 is [4]u8 on a 32-bit target and [8]u8 on a 64-bit one, whatever the host is. alignof of a declared type, a fixed array or a type formal stays L0305, whose message now names the alignment rather than saying that alignof never folds.

The alternatives: keeping alignof out, which D1321 chose for want of a use and which leaves a buffer aligned to a scalar to write the number; and admitting alignof of every type, which would make a length wait for a declared type's layout, as D1321 declined for sizeof.

Pinned by runtime/array-length-reads-facts-and-sizeof, whose field and module integer read alignof of a scalar and are held to the same measurement made in the routine, on every product target, Cortex-M0 included; positive/array-length-facts-at-the-target-width, which holds [alignof usize]u8 to [4]u8 on synthetic-32 and to [8]u8 on the 64-bit targets; and negative/array-length-refusals-are-reported-once, whose alignof of a struct stays L0305.

D2176 — A utf8 given for []u8, or the reverse, is told the conversion

The discrepancy: a utf8 value passed where []u8 is wanted was L0340, "a different reference permission or view from its parameter pattern", through a generic routine, and L0301 through a plain parameter, neither naming the conversion; []u8 passed where utf8 is wanted was L0340's "this is a slice and a slice belongs here". A text literal given to a type formal an earlier argument made []u8, vec.push(names, memory, "a") on a vec.list([]u8), is utf8 under D138 and was told only that every argument must decide the same.

Chosen: the two codes keep their messages and rules and their notes add what to write. For utf8 where a read-only []u8 is wanted, the note names []u8(value) [0700], the same bytes with no copy; for []u8 where utf8 is wanted, text.from_bytes(value), which reports invalid_text, and utf8(value), which traps, and L0340's message names both types. For a text literal that conflicts with a formal already bound to []u8, L0340's note says the literal is utf8 and to bind it with the type meant, name: []u8 = "...", and pass the name, as L0304 says for a struct literal.

The alternatives: typing a text literal from a formal an earlier argument bound, as D372 types a numeric one, which changes D138's deduction for one literal kind and was not asked for; naming text.bytes(value), which needs an import the conversion does not; and a code of its own, which would split one rule for a wording reason.

Pinned by negative/utf8-and-bytes-name-their-conversion, both directions through a generic pattern and a plain parameter, and negative/text-literal-for-a-byte-formal-is-bound-first.

D2187 — utf16 stays a validated text identity, and a Windows host string is not one

Amended by D2268, which says how the units reach the program: as WTF-8 in an os_string.

From [0600] and [1975].

The discrepancy: R19's audit found utf16 unused by the library and used by thirteen fixtures, and left whether it stays to the Windows item, since Windows' wide calls take UTF-16. Those calls take two kinds of string: text, as the console's WriteConsoleW writes, and names, paths, arguments and environment entries, which Windows keeps as 16-bit units without requiring them to be well-formed UTF-16, so a file may be named by a lone surrogate that no utf16 value can hold.

Chosen: utf16 stays as [0600] and D181 to D184 have it: a distinct immutable []u16 view of valid UTF-16 that a literal, a conversion or a slice gives, with traversal and slicing by code unit. It is what a conversion from utf8 produces and what Windows' text calls take. A Windows host string, the system's own form of a path, an argument, an environment entry or a directory entry's name, is not a utf16: it is the units the system gave, unconverted and possibly ill-formed, as a Linux one is the bytes the system gave, and it reaches the program as an os_string does, with the checked conversion to text. A call that needs a terminated wide string has its platform module copy the units into a buffer and add the NUL, as platform/posix terminates a path, so no terminated wide identity is added.

The alternatives: removing utf16 and leaving []u16 with library conversions, which is a breaking change outside a breaking window and leaves the conversion to UTF-16 with no type saying its result is valid; making utf16 the Windows host string, which refuses names Windows accepts, so a directory listing could not name every file in it; and a NUL-terminated wide identity beside cstring, which only the platform layer would use and which a buffer serves.

Pinned by runtime/text-range-slicing and runtime/utf16-slice-not-boundary-traps, which the Windows corpus runs, negative/utf16-indexing-is-not-utf8-indexing, and runtime/target-hosted-system-facts.

D2268 — A Windows host string is WTF-8

From [0600], [1975] and D2187.

The discrepancy: D2187 keeps a Windows host string apart from utf16 and has it reach the program "as an os_string does", the units the system gave, possibly ill-formed. os_string is bytes on every system, and programs build one from bytes, text.os_string_over("input.txt"). Units in place of bytes would change the type's representation and every caller that builds one.

Chosen: a Windows host string is the system's units in WTF-8: each scalar value as UTF-8 encodes it, a surrogate pair as its scalar, and a lone surrogate as the three bytes UTF-8 would give its value. platform/windows' terminate converts one into a buffer of units with a NUL after it on its way to the system, as platform/posix terminates a path, refusing a NUL or bytes WTF-8 does not encode as ERROR_INVALID_NAME and a name too long for the buffer as ERROR_FILENAME_EXCED_RANGE; the entry converts the command line and the environment once, and a directory listing each name as it reads it. A name that is well-formed UTF-16 is valid UTF-8 and from_os_string gives it; one holding a lone surrogate round-trips to the system unchanged and is invalid_text as text. os_string and its operations are unchanged.

The alternatives: units in os_string on Windows, which makes every literal path a conversion with storage and splits the type's operations by system; and UTF-8 with replacement, which loses names Windows accepts, as D2187 says of utf16.

Pinned by runtime/directory-name-not-utf8, whose bytes are no WTF-8 and are refused on Windows before the system is asked, the corpus's directory and argument fixtures on the Windows lane, and runtime/windows-run-programs, whose arguments and environment cross the conversion both ways.

Decisions: Declared types, ranges and layout

The types a program declares for itself, and what a target may do with their storage.

D15 — A type declaration without distinct is an alias

The tour said that types are declared like any other value with type [0120], and that distinct makes a type with the same representation, a different type and no operations inherited [0650]. It does not say what a declaration without that word gives.

Chosen: another name for the same type. meter: type = distinct f32 is the only form that makes a new one, and count: type = u32 leaves count and u32 one type: a value of either is a value of the other, everywhere, with no conversion. The evidence is the word itself: [0650] spells distinct explicitly, and a modifier that changed nothing would not be written. The tour reaches for it exactly where it wants two types that share a representation to stop being interchangeable.

What this does not decide: a struct or variant body introduces a type that is nominal, because there is no existing type for it to be another name for, and [0710] says a value typed as an anonymous struct "never becomes a same-shaped named type". That is a different sentence from this one and the later aggregate slices are where it is implemented.

The alternative: every type declaration introduces a distinct type, reading [0120]'s "like any other value" as a definition and treating distinct as emphasis. It is one rule instead of two, and it was declined because it makes distinct a word that does nothing. An alias that needs a conversion at every use is not an alias, so the language would have no way to give a type a second name at all.

Pinned by positive/type-declaration-aliases-a-scalar, runtime/r490-distinct-scalars and negative/r490-distinct-identity.

D188 — A range subtype is its base type constrained, checked where it is stored

Superseded by D1661. There are no range subtypes; a value known to lie in a range is a distinct type made by a checking function, and what follows is history.

D236 later records the composite, reference and generic positions refused below as [0660]'s permanent source-form boundary; their reports keep L0304 and now say so.

The tour said that [0660] declares percent: type = u8 range 0..100 and that it is checked at assignment and conversion. It did not say what type an operator over one gives, whether an alias of one keeps the bounds, whether the constraint is part of a signature, what a bound may be written as, what an empty range means, what zeroed gives a subtype that excludes zero, or what a range subtype means inside a struct, an array, a slice or a generic.

Chosen: a range subtype is its base integer type restricted to a run of that type's own values, and not a new type. percent and u8 have the same representation, the same width, the same operand rules and the same operator results, so p + 1, p & mask, -p and p >> 2 are u8 values, p < q is a bool, sizeof percent measures u8, and there is no constrained arithmetic and no constraint join rule. That is why [1730] names distinct types and range subtypes as two habits and not one: [0650]'s distinct is this rule's complement. D213 implements distinct identities; composing them with a constrained representation keeps the constrained compositions refused below, which D236 decides.

The base is written as a scalar name or a declared name whose alias chain reaches an enabled integer scalar; a float, a bool, a struct, an array or a pointer base is L0338. Both bounds are D136's fold — integer literals, unary minus and target-independent + - * / % — so u8 range 0..(200 / 2) is written and u8 range 0..300 is L0300 because u8 holds neither bound. A lower bound above the upper is L0306 rather than L0300: an empty range names no value, so there is no constraint to perform at all. Only .. is admitted; an exclusive upper bound in a type is a parse refusal, because the tour writes none. range is a contextual word [1760] does not reserve, recognized only after a parsed base type at a type declaration's right-hand side, so a binding, a parameter or a label spelled range keeps its ordinary meaning and [1760] still reserves forty-nine words.

The check happens where [0660] says and nowhere else: storing a value into a place whose declared type is the subtype — a local or module binding initializer, an assignment, a compound assignment, [1900]'s inc and dec, a call argument and a named return — and applying the subtype name to a value [0700]. All of them reuse D168's exact-range path. A value the compiler knows and the bounds exclude is L0300, which includes [0540]'s zeroed, because zeroed is the base type's all-bits-zero image and that image is the value zero. Every other value reaches one runtime check that traps at [1950]'s existing edge. A compound assignment's check sits on the statement and not on either operand, because what it stores is [0290]'s result in the base type. percent(x) is D168's conversion to u8 followed by that check, so a source u8 cannot hold traps at the conversion and one it holds but the bounds exclude traps at the constraint; [0310] gives the program no way to tell them apart. Extending [0700] to a declared name is part of this decision and fixes D15's alias as a side effect: count: type = u32 makes count(x) the conversion u32(x) is.

The check is elided, not merely optimised away, when the source already carries the proof: its known folded value is inside the bounds, or its own declared subtype's bounds lie inside the destination's. It is likewise not emitted when the value never arrives: an expression whose every edge returns terminates the flow, so a destination waiting on one has nothing to hold to the bounds and no reachable place to hold it in. That is [1730] made mechanical, and without it the habit would cost a check per hop. An alias declaration carries the constraint unchanged under D15, because an alias is the same type and the constraint is part of what that type is. The constraint is part of structural function-signature identity, so a (v: u8) -> none value does not fill a (v: percent) -> none slot and an indirect call cannot lose the check, and an inout or sink argument must be a place of that same subtype, because the callee may write any value the subtype holds back through it.

A preceding successful comparison on an ordinary integer is not a carried subtype proof. For example, fail invalid when n > 100 followed by p: percent = n handles an out-of-range u8 recoverably, but the store still emits its trapping subtype check. The comparison establishes a control-flow fact at that point; it does not change n's declared subtype or construct a percent value. Even when n cannot change between those statements, D188 does not promise to infer the fact from the guard. Such an inference would need a separate flow rule for which conditions imply each bound and when a write or alias invalidates the fact. [1730]'s check-once habit applies once a checked value carries its proof as a subtype or a distinct wrapper, and then subsequent transfers need no check. A compiler may remove the redundant check only when it proves that the value entering the store remains within both subtype bounds there, including across intervening writes and aliases; guard dominance alone does not establish that. Such removal is an optimization, not a language guarantee. This is an intentional limit for recoverable validation followed by range-subtype construction.

Six positions are refused by name, and together they are what makes the guarantee true rather than decorative, because each is a path by which an unchecked value could enter constrained storage: a struct field, a fixed-array element, a ptr/[] target, addr of a constrained place, an extern (c) signature whose named return Landin never assigns, and a generic type argument. The first four and the last report L0304 by name; the external signature is refused by [1580]'s existing hosted-scalar boundary and keeps that report. []percent and []u8 would be one slice type, so a []u8 write of 200 would enter constrained storage with no check; a generic instance would quietly make f(percent) mean f(u8). A module binding of a range subtype must have a value the checker's fold reaches [1940], because an image has no moment in which to trap.

The neutral IR carries this as one instruction with one operand, two folded bounds and a result type equal to its operand's. It is not the existing Conversion generalized: this one neither widens nor narrows, so it is one extension, two compares and one ud2 in the base type's own signedness, and it composes with a conversion rather than absorbing it. [1120]'s region does not remove this edge, because D187 removes only edges whose absence leaves a value the destination type holds, and a value outside the bounds is not one.

The alternatives: making an operator over a range subtype give the subtype would make every operator a checked one, which [0660]'s own "at assignment and conversion" excludes. Giving a range subtype its own Type_Kind would make it a second nominal identity beside [0650]'s and duplicate every scalar rule. Reserving range in [1760] would retire an ordinary name for a word the tour writes contextually. Admitting ..< would invent a spelling the tour does not write. Generalizing Conversion to carry arbitrary bounds would rewrite the backend's most delicate sixty lines and every recorded Conversion line for no new behaviour. Admitting a range subtype in a composite position without deciding how the check composes would make the guarantee decorative. Refusing an inout convention outright on a constrained parameter, rather than requiring the same subtype, would be less useful for no less work. All were declined.

Pinned by negative/range-subtype-is-a-distinct-type, which refuses the form since D1661.

Range subtypes' twenty fixtures, the subtype.range guarantee row and the IR records pinned this until D1661 removed the form; positive/alias-conversion still pins count(x) for an alias, and runtime/control-expression-edges-keep-source-order its other consumers.

D210 — Optimal placement is explicit, stable and strictly smaller

Superseded by D1660. There is no layout(optimal); fields are placed in the order written, and what follows is history.

The tour said at [0750] that ordinary fields retain source order and that layout(optimal) may save padding. It supplied no deterministic algorithm, tie rule, nested-field unit or target-width overflow rule.

Chosen: preserve natural and C layout. For an explicitly optimal nominal struct, calculate the natural padded layout and a candidate formed by stable descending target alignment. Equal alignments retain source order. Use the candidate only if its final padded size is strictly smaller; otherwise retain the complete natural order and offsets. Every field offset is still indexed by source identity, and initializer expressions still run in written order.

A complete nested aggregate, array field or variant part is one placement unit. Array storage repeats its padded element extent without array-sized placement metadata; a variant keeps its existing internal tag/payload rules. Nested nominal fields use their own declared policies. Anonymous structs stay natural. Zero-size fields still honor alignment. Target byte arithmetic checks rounding and extents, including the selected target's object-size limit, rather than using the compiler host's pointer width. Only the selected layout must fit that object limit; an unrepresentable arithmetic intermediate is refused.

Optimal layout is not C layout, packed layout, a byte-order attribute or a calling convention. No optimization flag silently reorders an ordinary struct. The build report states the chosen offsets/order, padded natural and selected sizes, alignment and saved bytes; size equality reports zero saved bytes.

The alternatives: reorder all structs under size optimization, search every permutation, reorder equal-size candidates, or flatten nested fields and variant payloads. They respectively break source-order layout, spend compiler resources disproportionately, add gratuitous layout churn, or erase semantic subobject boundaries. Stable alignment buckets keep the policy bounded and useful on the 32 KB end of the target range.

Pinned by negative/layout-optimal-places-fields-as-written, which refuses the form since D1660.

compiler/tests/quality/layout.ldn, the opt foundations target layout cases and the backend plans layout-consumer cases pinned this until D1660 removed the form; they now pin source-order placement.

D1660 — Fields are placed as written: layout(optimal) leaves

The tour said at [0750] that layout(optimal) lets the compiler reorder a struct's fields to make it smaller, and D210 made the placement explicit, stable and strictly smaller. The library writes none.

Chosen: layout(optimal) leaves. A struct's fields are placed in the order written; a program that wants the smaller layout writes its fields largest alignment first. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides. D1928 says why its refusal carries no fix. D210 is superseded, and the build report's layout entries lose the natural_size, saved_bytes and order fields that only a reordering layout could make differ from the obvious.

The alternatives: keeping it, a second layout rule a reader of a struct has to apply in their head. Declined.

Pinned by negative/layout-optimal-places-fields-as-written; runtime/r450-optimal-layout-composition and positive/r450-optimal-layout-source, whose structs are now written largest alignment first, pin the rewrite.

D1928 — The layout(optimal) refusal carries no fix

The discrepancy: D1847 makes a removed form's rewrite its refusal's exact fix where the rewrite is mechanical, and D1660 names the replacement, fields written largest alignment first, without saying whether a tool may write it.

Chosen: the refusal, L0696, says fields are placed in the order written and names the replacement, and carries no fix. The order D210 chose depended on the target: a pointer or usize field's alignment differs between a 32-bit and a 64-bit target, and the reordering applied only when it made the struct strictly smaller there, so one source order keeps the layout of one target and changes another's. Deleting the annotation alone keeps the program's meaning but not its layout. The parser refuses the word, and the grammar no longer derives it.

The alternatives: a fix that reorders the field lines for the target of the check, which refine fix would then apply differently per target; and a fix that deletes the annotation, which silently grows the struct. Both are declined.

Pinned by negative/layout-optimal-places-fields-as-written.

D213 — Distinct types have opaque identity and transparent representation

The tour said that [0650] preserves representation, creates a different type, and inherits no operations. Prototype 3 uses this for node_id and prototype 4 for file. D15 settled ordinary aliases but the implementation still refused the general form after hosted parity required it.

Chosen: name: type = distinct base creates one nominal identity. A parameterized declaration creates one identity per complete normalized actual tuple, including fixed actuals which do not affect its representation. An alias preserves that identity. Two declarations with the same base remain different, and neither is implicitly interchangeable with its base. The base may be any enabled represented type, including another distinct identity, arrays, ordinary or variant-bearing structs, atoms, references, callable values and erased values. A range-constrained representation retains D188's constrained-composition refusal, which D236 records as a permanent boundary.

name(value) constructs that identity from one value of its exact base. base(value) extracts that same base from a distinct value; an ordinary alias may name a structural base. These operations preserve bytes and do not invoke user code. A contextual literal receives the base's complete descriptor. An integer or float conversion is a separate explicit step: extracting a distinct u32 as i32 directly is L0301, while i32(u32(value)) states both operations. Copying, assignment, parameter passing and returning preserve the identity; arithmetic, indexing, dereferencing, field selection and calls require an explicit extraction first. D302 admits equality and ordering between two values of one distinct scalar type, and flag operators over an unsigned base; D427 extends equality to every base that has it and admits the flag operators' updating assignments. No representation field is visible in source. In particular, two values of the same distinct numeric type still inherit no arithmetic operation.

Generic deduction, signature identity, reference referents and conformance keys retain the nominal identity. A distinct type may declare its own conformance, and that conformance supports ordinary constrained and erased dispatch. It inherits no user conformance. D428 reversed this paragraph's original "nor compiler-owned zeroable membership": a distinct type has a zero image, and so is zeroable, exactly when its base is, though zeroed written for the distinct type itself is still not an implicit construction. Wrapping or extracting a reference-bearing value preserves the existing origin and escape facts; these conversions neither erase provenance nor extend backing lifetime.

Representation means the base's exact target size, alignment and byte image. The compiler stores an opaque nominal descriptor with one unnameable representation child and uses the existing native aggregate calling convention. This is an internal ABI classification, not an extra stored field or an inherited source operation. Foreign C signatures continue to require [1975]'s admitted boundary types. A distinct identity whose base is admitted there has the same C layout and SysV transport as that base; its nominal identity still governs Landin signature compatibility. A distinct array, slice, atom, ordinary Landin record or erased view remains outside C exactly when its base does. Static construction and extraction preserve D132's module images and [1940]'s folds; they introduce no startup code or compile-time execution of user functions. A type declaration is not itself a runtime value. Static Boolean extraction uses Boolean bounds; optional-null, numeric-pointer and C-string images retain the ordinary pointer construction and relocation rules. A module storage address remains outside [1940]'s known-value forms, and wrapping it does not change that existing boundary.

The alternatives: accepting distinct as an alias would erase the property for which both prototypes use it. Rewriting source uses as ordinary named wrapper structs would leave [0650] unimplemented and expose fields the construct does not promise. Inheriting base operations or conformances would contradict its third sentence. A universal scalar identity rewrite is unnecessary when an opaque nominal identity already carries complete nested layout and generic keys.

Pinned by runtime/r490-distinct-scalars, runtime/r490-distinct-generic-representations, runtime/r490-distinct-generic-dispatch, runtime/r490-distinct-module-images, abi/r490-distinct-c-roundtrip, runtime/r490-review-generic-distinct-bool, runtime/r490-distinct-generic-bool-images, runtime/r490-distinct-generic-pointer-images, runtime/r490-generic-fixed-conversion-discovery, runtime/r490-generic-distinct-float-images, runtime/r490-generic-nonreading-measurements, negative/r490-distinct-no-inherited-length, negative/r490-distinct-float-static-field, negative/r490-distinct-type-value, negative/r490-distinct-alias-type-value, negative/r490-distinct-generic-type-value, negative/r490-distinct-generic-formal-type-value, negative/r490-distinct-discard-type-value, negative/r490-distinct-static-address, negative/r490-distinct-identity, negative/r490-distinct-no-operators, negative/r490-distinct-exact-base, negative/r490-distinct-no-fields, positive/r490-distinct-zeroable (a negative fixture until D428 turned it), negative/r490-distinct-origin, negative/r490-distinct-reference-identity, negative/r490-distinct-conformance, negative/r490-distinct-generic-identity, negative/r490-distinct-c-array, negative/r490-distinct-module-cycle, negative/r490-distinct-slice-cycle, and the IR unit case "atom images retain their declared set" in compiler/ada/tests/src/landin-tests-ir_suite.adb.

D302 — Two values of one distinct scalar type compare equal, and flags combine

The tour said at [0650] that a distinct type inherits no operations, and D213 required an extraction before any comparison. A descriptor compared with another as i32(a) == i32(b), and poll's events became a record of booleans, because a set of flags had no operators.

Chosen: == and <> take two values of the same distinct type whose base is a scalar. &, ^, | and ~ take values of the same distinct type whose base is an unsigned integer, and their result keeps that type. <, <=, > and >= take two values of one distinct type over a scalar, in the base's own order, an amendment D315's durations and instants prompted: integers by value and sign, bool with false first, and floats by IEEE comparison with NaN unordered. Arithmetic, shifts and updating assignment stay refused, |= with a note to write it out. A distinct value never meets its base or another distinct type without a conversion, and the refusal says so. D427 later extended equality to distinct atoms, pointers and function values and admitted &=, ^= and |= over an unsigned base.

The alternatives: equality for every distinct type, though an aggregate has none (D200); refusing ordering because an identifier is not ordered, as this decision first did, which made every comparison of two durations an extraction, u64(a) < u64(b), though ordering two values of one type is harmless and useful, as Ada and Go allow for derived types; an opt-in ordered declaration, a word in the grammar for an order the base already has; bit operators over any integer base, though a signed identifier is not a set; and |=, which the updating path would need of its own.

Pinned by runtime/distinct-equality-and-flags, runtime/distinct-ordering, negative/distinct-compare-across-types and negative/distinct-ordering-and-signed-flags, which refuses signed flags and arithmetic, and refused |= until D427. cmp.ordered evidence remains the way to give a distinct type a different order for maps and sorting.

D228 — A packed image holds bits; extraction produces a validated value

The tour said [0730] fixes explicit positions and encodings, including holes, and [0740] forbids field writes through a volatile pointer. It did not say whether a hardware image containing an unnamed pattern was a language value, whether copying it inspected every field, or what an exhaustive match could assume. D227 deliberately left those questions here.

Chosen representation: a layout(packed) struct is a nominal raw image. Every stored bit belongs to the image, including omitted bits; there is no padding whose contents the compiler may discard. Positions are inclusive, numbered from the least significant bit of the unsigned carrier. All fields write at, positions are disjoint and in 0..63, and declaration order does not choose positions. The smallest carrier that covers the highest position is u8, u16, u32 or u64. layout(packed, u32) explicitly retains all 32 bits, even when the highest named bit is lower. Size and alignment come from that carrier in the selected target description. This implementation contract is little-endian; a different byte order requires a separate target decision. A storage layout does not establish a permitted device transaction width.

A packed boolean occupies exactly one bit. u1 through u64 are unsigned field representations whose written width equals the occupied range; a nonstandard width is admitted only directly in a packed field or its fixed array element. Extraction yields the smallest enabled unsigned scalar that holds it. This introduces neither general u12 arithmetic nor a u12 ABI. u1 yields u8 values 0 or 1; it is distinct from a boolean flag and does not add implicit boolean conversions. Requiring every one-bit field to be bool was an alternative, but would make numeric hardware fields change their value domain merely because of their width. Signed, floating, pointer, callback, nested aggregate and variant fields are not this representation. An array occupies count times element width, element zero at the low end. It is nonempty and fits the one carrier. The described set(X) generator form expands encoded bit numbers to named boolean fields; it is not a new runtime representation. The enabled kernel accepts the explicit boolean expansion, including the prototype-derived flag fixture, and does not yet provide the automatic set(X) or generated-register surface. A containing image adds the field-range base to each expanded bit. This fixes the representation contract without implementing general generation. An indexed operation checks the index before selecting bits. Its check stays in unchecked: an out-of-range bit selection has no computed byte address, and target-specific shift masking is not D187's removed-address-check result.

(internal = 0 | external = 1 | pll = 4) associates distinct unsigned fixed encodings with distinct atoms. Its width is at least one bit and otherwise the smallest width containing every encoding. An explicit base, as in u4 (internal = 0 | external = 1), can widen it. A field may give an encoded union additional bits; those additional patterns remain unnamed. Encodings belong to the union, not to an atom globally. The same atom may have a different encoding in another packed field. Outside an image, the value is still the ordinary atom identity with the existing software representation and calling convention. Encoding is not an implicit integer conversion. Compile-time type arguments retain the encoding map and declared width, including nominal/routine instance keys and conformance lookup. Unions with the same atoms but different maps cannot share a packed instance or silently select the other representation's evidence. Ordinary atom-value assignment, matching and equality still compare declaration identities, not encodings.

Raw and validated operations: every carrier pattern is a valid raw image. A whole-image copy, assignment, argument or return preserves all bits and never extracts fields. zeroed produces an all-zero raw image, even when zero is an unnamed encoding in one of its fields. This does not make a standalone atom set zeroable: [0540] still requires writing a named value. A direct encoded-field or encoded-array assignment also requires validated values; zeroed can clear the complete image or supply a raw constructor field/fill, but cannot manufacture an atom through such an assignment. A packed constructor builds a fresh zero image, evaluates labels in source order, then copies the resulting image into its destination. Unclaimed bits and fields supplied by a zeroed fill remain zero. Named fields still obey the existing label/fill completeness rule. A shared nonzero fill is evaluated once. This fresh-image construction is specific to packed images; D29's incremental ordinary-struct assignment and D214's ordinary fill ordering remain unchanged.

Reading a field extracts its bits. Booleans and unsigned fields have no holes. An encoded field checks membership before producing an atom identity; an unnamed pattern traps, including when the expression is discarded or is inside unchecked. Assigning a named atom inserts that union's encoding; an unsigned insertion checks the field width and traps if it does not fit. A known non-fitting value is a static diagnostic. Neither case truncates silently. A field insertion preserves every other bit, including holes in other fields. Copying a packed array as an array value extracts its elements; a whole image copy does not. Packed field extraction is not a static module initializer operation: L0305 requires a runtime extraction, even if a raw constant image is available. Static whole-image copies remain allowed; a module initializer cannot silently create an invalid ordinary enum array. Type/length measurements do not extract values. Array assignment snapshots its source elements before inserting them so that overlapping image storage does not corrupt the source of later elements. Fields have no independently addressable storage: addr, slices and inout cannot expose a packed field's byte address. Pass the containing image to update an indexed field.

Matching and equality on extracted enum values use atom identities. An exhaustive match covers validated members; it does not prove that all hardware patterns are members. The raw-image boundary remains observable before the match. Whole-image comparison, when performed through its unsigned carrier, compares all stored bits, including reserved bits; field equality is not a substitute. This decision introduces no general aggregate equality operator. Existing explicit integer/pointer operations can copy a complete carrier into or out of ordinary image storage, subject to their existing lifetime, alignment and backing-storage obligations. A pointer or external write does not confer validity on a subsequent typed enum read. Invalid software atom codes encountered by such a read trap; they do not create optimizer poison, unreachable control flow, or permission to rewrite earlier effects. The private call-failure status channel retains its existing zero-for-success transport code. IR-designated status-slot loads admit that sentinel before the failure test; it is not a named atom or a zeroable source enum value.

Device operations: a raw image read and a raw image write are separate operations. Each accepted operation performs exactly one transaction at its specified width. A read does not validate every encoded field. Normal and clear-on-read contracts permit an explicit read; no-read contracts refuse it. Normal and one-clears contracts permit an explicit write; no-write contracts refuse it. All synthesized device field updates refuse, including the normal read/write combination: the programmer must express the image read, local update and image write. A write-only register has no old image to preserve; a destructive read consumes state, and a one-clears readback is not a command image. No convenience lowering may insert a read, split or widen a transaction, or write reserved bits to simplify insertion.

The bounded compiler surface is compiler.register_read(pointer, read_mode) and compiler.register_write(pointer, image, write_mode, reserved_policy, named_mask). The pointer is to u8, u16, u32 or u64 and selects the transaction width; it is not a pointer to an encoded value. Read modes are compiler.normal_read and compiler.clear_on_read; compiler.no_read refuses. Write modes are compiler.normal_write and compiler.one_clears; compiler.no_write refuses. Reserved policies are compiler.preserve, compiler.write_zero and compiler.write_one; the named-bit mask is a fixed unsigned expression of the carrier type. Invalid mode/policy combinations, wrong mask width, unavailable target accesses and absent write permission refuse statically. A dynamic write violating write-zero or write-one traps before the single volatile store, even under unchecked. Mode and reserved arguments declare the platform contract; the compiler cannot verify that the physical address actually implements it. Consistency with that peripheral is an outside premise. These explicit raw-image intrinsics do not enable the general generated register(t, ...) wrapper or a synthesized update operation.

Reserved policy is part of the peripheral contract. Preserve means a supplied whole image carries the caller's reserved bits; it does not authorize a hidden read of the device. Write-zero and write-one require those values in every omitted bit of the supplied carrier. One-clears requires write-zero for reserved bits; zero in a named command bit means no action and one requests clearing. Read values, write commands and reset metadata are distinct even when they share a carrier. Reset metadata initializes neither software storage nor hardware. A normal read/modify/write sequence is not atomic and requires an independent device and concurrency justification.

A known whole image that breaks write_zero or write_one is refused with L0398 at the supplied image [0740]. L0300 remains the refusal for an image whose magnitude does not fit its carrier or target [1880]. A dynamic reserved bit violation traps before the store, including under unchecked [1120].

D227 is unchanged. CPU atomics, a volatile transaction, compiler boundaries, hardware barriers, interrupt exclusion and device completion are separate contracts. Prototype 1 retains an ordinary slice as its DMA buffer. Decode a copied status/count image only after its explicit read; the device contract must establish which buffer writes precede completion, then the required barrier and cache maintenance precede ordinary buffer reads. The barrier invalidates prior compiler knowledge of those bytes. A packed count does not solve wraparound, overrun, cache coherence, buffer lifetime or concurrent external writes. Interrupt notification alone remains insufficient.

Alternatives and rationale: eager validation would make a hardware snapshot or harmless copy trap because of a field the program never inspects. Treating holes as unreachable would import invalid-value undefined behavior and break exhaustive matching after external writes. Silent truncation loses commands; an implicit unknown atom changes the declared value set and its matches. Implicit device RMW introduces access events and reserved writes that may be forbidden by the peripheral. These alternatives are rejected. Raw images with checked extraction retain unknown information and keep the existing unsafe pointer guarantees explicit. General register generation and the complete SVD-derived fixture programme remain outside this semantic slice.

The choice boundaries and their executable pins are explicit:

choice alternative and rationale pin
One explicit or minimally rounded carrier, target alignment, LSB numbering and little-endian bytes Byte-packed/C-bitfield rules or declaration-order placement would leave transaction width and reserved bits implicit; no foreign padding rule is imported runtime/r640-indexed-boundary, runtime/r640-packed-boundaries, negative/r640-overlap, negative/r640-c-abi
Unsigned field representations and one-bit booleans; numeric u1 remains numeric General scalar widths, signed field arithmetic or boolean coercions would expand value/ABI rules beyond this image contract runtime/r640-indexed-boundary, negative/r640-signed, negative/packed-field-width-is-not-a-scalar-name
Per-union maps, holes and type-argument/evidence identity Atom-global encodings or map-insensitive instance keys conflate distinct hardware layouts; software values still use atom identities runtime/r640-packed-enum-array, runtime/r640-generic-encoding, runtime/r640-encoded-evidence
Raw whole images and checked extraction, including discarded reads Eager validation destroys harmless snapshots; unchecked holes/unreachable assumptions erase observable behavior runtime/r640-packed-small-space, runtime/r640-static-hole, runtime/r640-volatile-hole, abi/r640-exhaustive-encodings
Fresh zero constructors and raw copies; explicit runtime field extraction Implicit RMW would add a device read; static array image copying must not bypass validation runtime/r640-packed-construction, runtime/r640-packed-nested-copy, negative/r640-static-array-extraction, negative/r640-zero-field
Arrays snapshot values; fields have no independent byte address Streaming overlap or exposing an ordinary slice invents a false stride and may corrupt later source elements runtime/r640-overlapping-array-copy, negative/r640-address, negative/r640-inout, negative/r640-slice
Named-value comparison/matching; explicit raw-carrier comparison Aggregate equality or integer-to-enum casts would confuse image bits with atom identities runtime/r640-packed-small-space, negative/r640-image-equality, negative/r640-enum-integer-conversion
Explicit one-event image accesses; no synthesized field operations Hidden reads, split/widened accesses and readback-based one-clears commands violate device contracts runtime/r640-register-images, negative/r640-register-no-read, negative/r640-register-no-write, negative/r640-register-one-clears-preserve, the synthetic device's literal trace
Required reserved patterns are checked, never repaired silently Truncating a supplied write or silently inserting ones conceals an invalid command; preserve performs no hidden read runtime/r640-reserved-value, abi/r640-reserved-trap, negative/r640-register-reserved-zero, negative/r640-register-reserved-one, the synthetic device's required-one register
D187/D227 remain independent of image layout Field RMW is not an atomic operation, and status decoding cannot make an ordinary DMA slice coherent runtime/r640-packed-index-bound, runtime/r640-packed-value-fit, abi/r640-dma-packed, negative/r640-m0-register64

Guarantee classes: positions, widths, overlap, encoding uniqueness, field kinds, known-value fit and addressability are static; dynamic membership, field fit and packed indexing are trap, retained by unchecked. Backing storage, pointer-origin erasure, device premises and external-write ordering retain D148/D227's existing outside and beyond-lifetime classifications. There is no invalid-encoding optimizer license. Natural and C layout retain their existing representations and ABI contracts. Packed structs are not C bitfield structs and cannot cross a C signature by value; explicit unsigned carriers or pointers use the existing C boundary.

Pinned by: runtime/r640-packed-fields, runtime/r640-packed-indexed, runtime/r640-packed-construction, runtime/r640-packed-array-copy, runtime/r640-packed-static, runtime/r640-packed-small-space and runtime/r640-packed-hole distinguish images, validated extraction, copies, calls and indexed updates. The independent targets/packed image algebra and access plans case and the retained synthetic device contract define separate image and transaction oracles.

D1086 — A call-site else value carries its own proof or none

Superseded by D1661. With no range subtypes no call result carries a proof the recovery could lose; what follows is history.

The tour said at [1730] that a value already of a range subtype is not checked again, and at [0960] that a call-site else supplies the value when the call fails. D188 lets a call whose one result is a range subtype hand the proof back with the value. With parse_level(raw) else stored the value on the failure path is stored, which nothing checked, and the store that took the expression emitted no check: a 200 sat in a percent.

Chosen: a call with a recovery clause carries the callee's subtype only when the recovery's answer carries a subtype too: the value written after else, or the final value of its block. The expression then carries the wider of the two when one contains the other, and none otherwise, so the store that takes it owes [0660]'s check. A recovery block that gives no answer leaves the statement and takes nothing away. A fallback the compiler knows is still refused where it is written.

The alternatives: checking only the fallback, at the else, which needs a second kind of owed check for one expression form; and dropping the proof from every call result, which checks the common call twice. Both are declined.

Pinned by negative/range-subtype-is-a-distinct-type, which refuses the form since D1661.

runtime/range-subtype-else-value-is-checked pinned this until D1661.

D1087 — A fixed formal of a range subtype takes only a value inside it

Superseded by D1661. A fixed formal is held to its type's own range; there is no narrower one to hold it to, and what follows is history.

The tour said at [0660] that a range subtype is checked at a parameter, and at [1350] and [1520] that a fixed argument fits its declared type. D138 reused the base type's range for that fit, so fixed share: percent took 200.

Chosen: a known fixed argument, written or deduced, is held to the bounds of the subtype its formal declares, in a generic routine and in a generic type, and one outside them is L0300 naming the value and the range.

The alternative: refusing a range subtype as a fixed formal's type, as D236 refuses it in composite positions, which takes away the cheapest place a range can be enforced. It is declined.

Pinned by negative/range-subtype-is-a-distinct-type, which refuses the form since D1661.

negative/fixed-argument-outside-its-range pinned this until D1661.

D236 — A range subtype constrains scalar positions only

Superseded by D1661. The refused positions went with the form: a distinct type is admitted in all of them, which is the carrier this decision already named.

The tour said that [0660]'s range subtype is checked at assignment and conversion. D188 made a subtype its base type constrained rather than a new type, placed its one check where a value is stored into a place declared with the subtype, and refused by name the positions where that check could not hold: a struct field, a fixed-array element, a ptr or [] target, addr of a constrained place and a generic type argument, with an extern (c) signature kept by [1580]'s own report. It left how the check composes undecided.

Chosen: it does not compose. A range subtype constrains a binding, a parameter, a named return and a conversion, which are exactly the positions where D188's check runs on the way in. The five refused positions keep their L0304 permanently: its primary message now says the position cannot be a range subtype, and its second note says "this is a recorded source-form boundary". The external signature keeps [1580]'s report. [0660] now states the boundary and names distinct as the carrier for a checked value in storage, which is [1730]'s habit.

The reason is D188's own premise. Because percent and u8 are one type, []percent and []u8 would be one slice type, and addr of a constrained place would be an ordinary ptr mut u8: any write through the base type would reach constrained storage with no check. A composition that keeps the guarantee therefore needs the constraint to become identity in exactly the composite positions — []percent apart from []u8, a generic instance keyed by its bounds — which is a second nominal identity beside [0650]'s, with its own relaxation question, while [0440] calls its relaxation the one the language has. Measured against the checker, the composite descriptors carry no constraint (Landin.Checking.Field_Shape and Reference_Descriptor hold kind, element, nominal and reference facts only) and the check is a checker-owned fact emitted at two lowering choke points. A composite constraint would have to reach field shapes, reference descriptors, instance keys, zero-image eligibility (a subtype excluding zero has no zero image, so every containing aggregate would leave [0550]'s family), module static images, variant payload construction, match-arm inout aliases and erased evidence, and each of those store paths would need its own check for the guarantee to stay true. No program asked for it: prototype 1's baud_rate is a scalar parameter, and the complete derived driver replaced even that with a line.settings record whose rate is a plain u32, which core/line and the driver refuse with declared recoverable atoms (D955, D957).

The alternatives: a composite identity with a check on every store path was declined for the reasons above. Admitting fields and elements while keeping references and generics refused was declined because inout of a constrained field, slicing a constrained array, whole-aggregate zero images and payload aliases reopen the same identity question. Transferring the question to a successor was declined because its answer does not wait on a program: the conflict is with D188 and [0440], not with cost.

Pinned by negative/range-subtype-is-a-distinct-type, which refuses the form since D1661.

The six refused positions' fixtures pinned this until D1661 removed the form with them.

D1661 — Range subtypes leave; a distinct type with a checking constructor replaces one

The tour said at [0660] that T range a .. b is its base type constrained, and at [1730] that a range subtype carries a proof. D188, D236, D1086, D1087, D1088 and D1100 give it a list of positions it constrains and a list it does not, and D236 says it does not compose. The library and the device descriptions write none; prototype 1's baud_rate is one.

Chosen: range subtypes leave. A value known to lie in a range is a distinct type over the base, made only by a function that checks the range and fails, or traps, outside it; [1730]'s proof is that function's result, as dma_buffer already is. The compile-time refusal of an out-of-range constant goes with them: the check runs where the value is made. The maintainer decided this on 2026-11-16, before the rest of the list was put to the maintainer.

The alternatives: keeping range subtypes, the heaviest rule set in their section; and extending them to the positions D236 leaves out. Both were declined.

Pinned by negative/range-subtype-is-a-distinct-type, whose refusal names the distinct type and its checking function and carries no fix (D1907), and runtime/range-checking-constructor-fails, whose checking function makes the value inside the range and fails outside it. D188, D236, D1086, D1087 and D1088 are marked superseded and D1100 amended; [0660] and [1730] teach the checking function, and prototype 1's baud_rate is one.

D1907 — The range subtype's refusal names its replacement and carries no fix

The discrepancy: D1847 makes a removed form's rewrite its refusal's exact fix where the rewrite is mechanical, and D1661 leaves open whether this one is. It also says the distinct type is "made only by" its checking function, while [0650] lets any code apply a distinct type to its base.

Chosen: the refusal, L0696, names the declaration that replaces it, percent: type = distinct u8, and a function that checks the range, and carries no fix. Rewriting the declaration alone leaves every place that stored a u8 into a percent, every argument, return and conversion, refused, and the rewrite of each one is a choice the program makes: whether a value outside the range fails, traps or cannot occur there. An exclusive bound, ..<, is refused the same way. "Made only by" is [1730]'s habit, not a rule: a distinct type's conversion from its base stays open to any code, as [1730] says the habit needs no feature of its own, and the checking function is the one place a program writes it.

The alternatives: a fix that rewrites the declaration and wraps each use in a call of a generated checking function, which decides for the program where a failure goes and touches every use; and confining a distinct type's conversion to its own module, which is a new rule no item asked for. Both are declined.

Pinned by negative/range-subtype-is-a-distinct-type.

D239 — Byte order is converted where bytes cross, and the machine attribute words are withdrawn

The tour said that byte order is per field, with big u16 in a layout(c) packet [0750], and listed big and little among the attribute words and weak, inline and noinline as outside the enabled machine slice [0760]. None had a named refusal; each met an ordinary parse error.

Chosen: all five are withdrawn. A field holds the target's own byte order, which compiler.byte_order names [1560]; a program converts another order where the bytes cross, with shifts [0320] or an ordinary function. Inlining is the optimizer's decision under D211, and no source attribute requests or forbids it. A whole program links one definition per name [1610], and the compiler-owned vector image of D229 fills each unimplemented slot, which is what weak default handlers do in C firmware. The five words stay ordinary identifiers: big u16 remains an L0103 field error and link(weak) an L0103 link label without its :, and no named refusal is owed because the tour no longer describes them [1830]. [0750] and [0760] are rewritten.

No prototype, derived program, core module or example writes any of the five. A per-field order would make every load and store of that field a byte swap, leave addr of the field an ordinary ptr u16 that reads the wrong value, so that addressability would need the refusals packed fields have, put static images through a second byte order, and need DWARF's DW_AT_endianity for a debugger to show the value, a presentation this compiler has produced for neither native debugger. The compiler had no inliner then: no IR pass inlined a call, so inline could only have been a promise D211 would then have had to keep. D339's inliner, added since, decides from a routine's size and the objective alone, as this decision left it to. Weak linkage matters where separately compiled objects compete for a name, and this compiler sees the whole program.

The alternatives: a per-field storage order with addressability limits and endianity debug information was declined as a new storage attribute with packed-field restrictions for a need no program had, while an explicit conversion is ordinary code. inline and noinline as hints were declined: a hint nothing honours is text, and an obligation belongs to D211's optimizer contract rather than to source. weak for C interoperation was declined because the C boundary's link names are exact and no binding needed a weak one. Keeping the words described but refused by name was declined because they are not pending anything. D410 later admits C's byte-packed record with the addressability limits this decision named: its fields have no address of their own.

Pinned by negative/r720-field-byte-order-withdrawn and negative/r720-machine-attribute-words-withdrawn.

D410 — A byte-packed C record has fields with no address of their own

The tour said at [0750] that a struct keeps its fields in written order with natural alignment and that layout(c) follows the target's C rules, and at [0730] that layout(packed) is a register image of bits at stated positions. C's __attribute__((packed)), a record laid out to the byte with no padding, had no form: layout(c, packed) met the misleading L0101 "a packed image carrier is u8, u16, u32 or u64", and a program read such data as bytes and assembled each field with shifts. D239 withdrew per-field byte order because every access became a conversion and addr of the field read wrongly; a misaligned field has the same two problems.

Chosen: layout(c, packed) is a C record laid out as C's packed attribute lays one out: its fields in written order, each at alignment one, with no padding, so its size is the sum of its fields' sizes and its alignment is one. Its placement asks no C ABI for an alignment, so it stands on every target, Cortex-M0 included, where layout(c) does not. D228's rule for a packed image's fields carries over, which answers D239's objection: a field, at any depth, has no address of its own. addr, an inout argument and a slice of anything inside the record are L0336, and the whole record is what a pointer reaches. Fields are read and written by copy. Everything the record holds by value besides a scalar or pointer is itself of alignment one — an array of u8, i8, bool or packed records, or a nested layout(c, packed) record — because a whole array or record is copied and passed as a value, and only a scalar is assembled where it lies; anything else is L0346 at the field. Another C record or an ordinary struct may hold a packed record as a field.

A scalar inside a packed record may sit at any address. On x86-64 and arm64, Linux, Darwin and FreeBSD alike, an ordinary load or store does not need alignment and the backends emit one. RV64 and Cortex-M0 move such a scalar one byte at a time, least significant first: ARMv6-M faults on every unaligned halfword or word access, and a misaligned RISC-V access may trap or be emulated by the kernel. Lowering marks an address slot that reaches such a scalar, so an access through a computed element address is moved the same way. Any second word but packed after c is L0103.

The alternatives: a per-field align(1) would match C's per-member attribute, but [0760] keeps alignment a link label rather than a word of its own, and it adds field grammar and per-field address rules for no program that has asked. Keeping the boundary and naming the bytes-and-shifts route in a better refusal was declined: firmware's USB descriptors and wire headers are the records this form exists for, and the conversion cost falls only where C pays it too, on targets that require alignment. Admitting a field's address as an ordinary pointer was declined for D239's reason: a ptr u32 promises an alignment the field does not have.

Pinned by positive/c-packed-records, runtime/c-packed-record-fields, which runs on the hosted lanes and on Cortex-M0, abi/c-packed-records against an independently compiled C peer, negative/c-packed-field-address, negative/c-packed-aligned-part and negative/c-layout-second-word.

D413 — A C record's last zero-length array is its flexible array member

The tour said at [0750] that layout(c) follows the target's C rules, and D136 gave [0]T size zero and alignment one. C's flexible array member, a record ending in an array of unstated length whose elements follow it in memory, as struct linux_dirent64's name does, had no form: L0346 refused a [0]u8 in a layout(c) struct and labelled the struct word, while the same field in an ordinary struct was admitted, and a program hand-computed the name's offset as 19.

Chosen: the last field of a layout(c) or layout(c, packed) record may be [0]T of a C element, and it is the record's flexible array member. As C gives the member its element's alignment, it takes T's alignment there, so the record's offset of it and its padded size are C's: struct linux_dirent64 measures 24 with its name at 19. D136's zero-element shape keeps alignment one everywhere else. As in C, at least one field precedes it. The record's trailing elements are not storage the record owns: a program reaches them as a slice of the buffer the record was written into, at offsetof record.member (D411), which keeps that buffer's origin. Because those elements would overlap whatever follows the record, a record that ends in one is refused as an array element (L0304) and as a field of a C record (L0346), and a C signature takes it only by pointer (D414). A zero-length array before the last field is L0346 at that field.

The alternatives: a slice field cannot cross to C and a fixed array states a length the record does not have. A []T "trailing bytes" field type would be a second array form for one position. Leaving D136's alignment of one would put the member before C's padding and give a different size from C's, which is exactly the disagreement this form exists to remove.

Pinned by positive/c-packed-records, runtime/flexible-member-trailing-bytes, abi/c-packed-records, negative/flexible-member-placement, negative/r440-c-layout-zero-array and negative/parameterized-c-layout-repeated-invalid.

D427 — A distinct type has its base's equality, and flags update in place

The tour said at [0650] that a distinct type inherits no operations, and D302 gave equality only to a distinct type over a scalar, ordering in the base's order, and &, ^, | and ~ over an unsigned base, refusing |= because "the updating path would need [it] of its own". A distinct atom set, a distinct pointer and a distinct callback therefore had no equality although each base has [1890]'s, and the refusal called them "a struct", reading the opaque nominal descriptor D213 stores as an aggregate. A set of flags was updated by writing set = set | more.

Chosen: == and <> take two values of one distinct type whose base has equality: a scalar, an atom or atom set, a pointer or a function value. The answer is the base's own comparison of the two representations; a pointer union, which has no equality (D189, D429), stays without one when it is a distinct base. Ordering stays a scalar base's. Over an unsigned integer base, x &= y, x ^= y and x |= y mean x = x op y with the place x reached once, its index and any call in it evaluated once, as every updating assignment's place is [0390]; the target must already be assigned, because the operator reads it. A distinct type whose base has no equality, a struct, an array, a slice or a pointer union, is refused as that, "a distinct type whose base has no equality", rather than as a struct.

The comparison reads the one representation child as the base's carrier: an atom's code, a pointer's or function's address. No origin is created or consumed, the result is bool, and the representation is unchanged, so no backend or layout moves.

The alternatives: keeping the refusal and naming the route, dir(a) == dir(b) and set = set | more, which writes out an extraction for an operation the base already has; equality without the updating forms, which leaves D302's own stated reason the only obstacle; and an opt-in declaration of equality, the word in the grammar D302 already declined for ordering. Ordering for atom and pointer bases was not taken: an atom set has no order and a pointer's is not one the language has chosen.

Pinned by runtime/distinct-equality-over-atoms-and-pointers, with a computed-index ^= whose place is reached once, and negative/distinct-equality-only, which refuses order and bit operators over an atom set or a pointer, |= over a signed base and equality of a distinct struct.

D428 — A distinct type has a zero image when its base has one

The tour said at [0540] that a type has a zero image when all-zero is a valid value of it, which lets a surrounding struct or array be zeroed, and separately accepts the word zeroed only when that image has one obvious reading; [0550] makes the first property the compiler's zeroable concept. D213 gave a distinct type neither, so a record holding a user_id could not be zeroed and posix.status lost its zeroed form when it gained one; L0328's note listed every cause but this one.

Chosen: a distinct type has a zero image exactly when its base has one, because its representation is its base's, and it is then in zeroable's compiler family. A record, an array or a variant payload holding one is zeroed as it would be holding the base, in a body and in module data, whose image is all zeros. The word zeroed written for the distinct type itself is refused, L0328 with the route name(0): an identity has no obvious reading of zero, which is [0540]'s second property. Inside a generic routine's instance whose type actual is the distinct type, zeroed for the formal is the image zeroable promised and is accepted. L0328's note now names a distinct type over a type without a zero image among the causes.

The alternatives: keeping the refusal and adding the cause to L0328's note, which leaves every record holding an identity without a zeroed form; an opt-in distinct zeroable u32, the grammar word D302 declined for ordering; and letting zeroed construct the identity too, which [0540] withholds from named value sets for the same reason. The risk taken is that a zeroed record holds user_id(0), which on POSIX is root; a record holding a plain u32 already did.

Pinned by runtime/distinct-zero-images, positive/r490-distinct-zeroable (the negative fixture D213 named, turned) and negative/distinct-bare-zeroed.

D2183 — A refused value's type is spelt by the alias its declaration wrote

The discrepancy: a type's descriptor keeps no alias, so a refusal that spelt a value's structural type spelt its structure: an alias maybe of absent | ptr u32 read as that union in L0344, not as the maybe the program wrote.

Chosen: where the refused value is a name whose declaration writes its type as a non-generic alias of a structural type, a union, a pointer, a slice, an array, an any or a function type, the refusal spells the alias as written there. Elsewhere, and for a generic alias's application, the structure is spelt as before.

The alternatives: an alias kept in every descriptor, which would make two spellings of one type two descriptors that agreement must equate.

Pinned by negative/r630-optional, whose L0344 names maybe.

Decisions: Structs, variants and nesting

The longest run in the register. Ordinary aggregates, the variant part, the paths that reach into both, and the contextual forms that fill them.

D16 — A field of a struct local is assigned on its own

The tour said that a binding declared with no value must be assigned before use [0080], and [1910] made that a rule about a name: at every read, the name has to have been assigned by every path that arrives there. It does not say what the thing tracked is when the binding has fields, because until a struct could be a local nothing written in a body had any.

Chosen: the field. p.x = 1 assigns p.x and nothing else, a read of p.x asks whether p.x was assigned, and a read of p.y after only p.x was written is refused and names p.y. inc p.x reads and writes the same field, so it wants that field assigned above it, exactly as inc n wants n. Every arm of an if merges its fields the way [1910] already merges its names; only written Boolean literals select an edge there too.

D54 later applies the same field boundary when an array-bearing struct is copied whole. Scalar fields keep these individual bits; a fixed-array field is complete only through its own D48 sparse facts or D49/D50/D52/D53 whole-field fact. Normal completion assigns every destination scalar bit and every destination array-field whole fact without conflating the two representations. A binding or assignment the checker has already refused reads nothing for definite assignment: the statement cannot execute, so its owning report is not followed by an L0302 from an otherwise unassigned source inside it. A named return the checker has refused is likewise not a destination [1910] can require at return or at the body's end; its owning ABI report stands alone.

Why the field and not the binding: [1910] tracks the thing an assignment writes, and an assignment to a place writes a field. It is also the answer that survives: a parameter of struct type arrives assigned in every field, a named return of one has to be filled in every field before [0930]'s return, and a construction assigns them all at once — each of those is a statement about fields, and a rule about the binding would have to be replaced to say any of them.

What this does not decide: a module binding of a struct type. D10 already says a binding with no value holds zero and [1460] leaves no moment in which anything could assign one, so its fields read zero and there is nothing here to check. This rule is about a body.

The alternative: two. Treat the binding as assigned once every field has been, which is one bit instead of one per field and never reads a field nobody wrote — declined because it refuses a function that fills two fields of three and reads only those two, which is ordinary code whose workaround is assigning a field the program does not use. Or zero a struct local where it is declared, extending D10 into a body, which removes the question entirely — declined because it is a store per field at a place the source does not mention, and this language does not do work a reader cannot see.

Pinned by negative/struct-field-not-assigned, negative/struct-field-not-assigned-on-every-path, runtime/struct-locals-hold-their-fields.

D44 — A named ordinary scalar-field struct has byte measurements

The tour said that sizeof T and alignof T ask the target for byte measurements and produce usize [0370], that a struct's fields are laid out in declaration order with target padding [0750], and that aliases denote the same type [0710]. D14 enabled scalar measurement and D17 enabled fixed arrays, but the implemented checker still refused every aggregate measurement.

Chosen: sizeof T and alignof T are admitted when T resolves directly or through any representable alias chain to a named ordinary struct whose fields are all enabled scalars. sizeof is the target's padded size of that field run and alignof is its required alignment. Both results remain usize. A malformed or unresolved measured type retains its one owning diagnostic rather than acquiring a second measurement refusal.

Lowering carries the struct compactly in target-neutral IR as its declaration- order run of scalar field types. It carries neither checker-computed offsets nor size or alignment constants. A backend with target facts replays that run through Landin.Targets.Place and reads Landin.Targets.Size_Of or Landin.Targets.Alignment_Of; module-scalar folds use the same backend seam. The checker also evaluates the leaf during [1940]'s target-aware validation, and lowering reads that same checked layout when a static module array image must contain the concrete answer. This preserves D24's fold agreement without putting a target answer into ordinary measurement IR. The verifier requires a measurement result to be usize, and the dump exposes the field run.

This decision does not enable array or struct fields, nested aggregate composition, inline anonymous struct measurement, lenof on a struct, aggregate values, aggregate parameters or returns, or a struct in any other expression or storage context. Scalar and fixed-array measurements are unchanged.

Why the field run: field types and declaration order are the complete representation-independent input to [0750]'s placement arithmetic. Carrying that small input lets every target derive one authoritative answer without putting a target choice or a checker cache into IR.

The alternative: lower the checker-prepared size and alignment as integer constants. That would make target-dependent checker results part of otherwise target-neutral IR and give downstream consumers no way to establish that the answer came from their own target description. It was declined.

Pinned by the lowering and backend public-seam cases; positive/measurement-of-structs; the one-report negative/measuring-refused-types; negative/struct-measurement-fold-overflow; the recorded IR dump; and runtime/measurements-answer-for-the-target on Linux x86-64.

D411 — offsetof t.field measures where a field begins

The tour said at [0370] that sizeof, alignof and lenof measure, and nothing measured an offset. A program measured one at run time as the difference of two addresses, usize(addr record.kind) + sizeof u8 - usize(addr record), or worse computed it by hand, and a C programmer's offsetof had no Landin form.

Chosen: offsetof t.field is a usize, the byte offset at which field of the struct type t begins in the selected target's layout. The selection may continue through nested struct fields, offsetof frame.head.id, and t may be named through its module. The word is contextual like lenof: only a name followed by a dotted name makes the measurement, so offsetof(x) still calls a routine of that name. The checker finds the prefix resolution bound to a type and holds every selection after it to a field; a missing field is L0308, and a scalar type, a path through an array element or a variant case, a variant part itself and a layout(packed) image's bit field, which has no byte offset, are L0304. A layout(c, packed) record's field has an offset like any other. Like D44's measurements the IR carries the question, not the answer: a Measure_Offset carries the record's field run, its layout policy and the path's source positions, and the backend answers it from the target's placement. The checker's module fold reads the same placement, so the measurement may stand in a module value and, by D412, in an assertion.

The alternatives: a builtin compiler.offset(t, field) mirrors compiler.assert, but the compiler namespace holds configuration facts and directives, not runtime expressions. An offset query without nested paths would leave dirent's name offset hand-derived from the field before it. Carrying the checker's offset as a constant in the IR was declined for D44's reason.

Pinned by positive/c-packed-records, runtime/c-packed-record-fields, runtime/flexible-member-trailing-bytes, abi/c-packed-records and negative/offsetof-refusals.

D45 — A named ordinary struct may hold a fixed scalar array for measurement

The tour said that a struct field has a type [0670], that fields are laid out in declaration order with target padding [0750], that a fixed array is a value with a compile-time length [0520], and that sizeof T and alignof T ask the target for byte measurements [0370]. D44 admitted only scalar fields, so the first aggregate field still had no representation the checker and backend shared.

Chosen: a field of a named ordinary struct may be a fixed array of an enabled scalar, written directly or through an alias. Layout places that array once in declaration order, as one extent of length times target element size at the array's target alignment. D17's zero-element shape contributes size zero and alignment one here as everywhere else; D136 later accepts source spelling [0]T.

The complete padded struct must fit the selected target's usize. If it does not, the checker reports L0300 at the struct body, records no layout, and a later measurement adds no second report. L0300 therefore owns compile-time magnitudes that a context or target cannot hold, including D18's array extent and this enclosing aggregate extent; it is not limited to a literal token.

sizeof T and alignof T admit the resulting struct directly or through any representable alias chain and still produce usize. Lowering carries its declaration-order run in target-neutral IR: a scalar field is one scalar leaf, and an array field is one element-and-count leaf no matter how large its length. It carries no checker-computed offset, byte size or alignment. Each backend derives the padded answer from its own target facts. Module-scalar folds and static module array images use the same checked layout as D44. The verifier requires a scalar measurement leaf to have its canonical length one; the dump exposes an array leaf as [N]element.

At this decision a struct with an aggregate field still had no runtime storage or value context. D46--D65 later add its module and frame storage, indexed and whole-field places, contextual initializers, whole copies, zero images and labelled literals. D87 and D119 later admit ordinary struct fields and arbitrary-depth ordinary nesting; D94, D102 and D104 admit specified struct parameter shapes, and D106 admits specified struct result shapes. Those decisions retain their own limits on storage, expressions and calls. Inline anonymous struct measurement and lenof on a struct remain deferred. Scalar-field struct measurement is unchanged.

Why the compact leaf: D18 permits an array length no host or IR vector can enumerate, while its element and count are the complete representation- independent input to D17's extent rule. Replaying that leaf through target placement preserves D44's one authority for layout.

The alternatives: expand one IR field per array element, or carry the checker-computed size and alignment. The first cannot represent enabled extents and the second puts a target answer into target-neutral IR, so both were declined. Refusing a zero-length field specially was also declined: D17 already defines the shape, and D136 later accepts source [0]T uniformly rather than making a D45 exception.

Pinned by the checker, target, lowering, verifier and backend public-seam cases; positive/measurement-of-struct-array-fields; negative/struct-array-field-layout-overflow; the reworked one-report negative/struct-with-an-array-field; the recorded IR dump; and runtime/measurements-answer-for-the-target on Linux x86-64.

D46 — An array-field struct may be zeroed module state

Superseded by D241. A struct with array fields is module state like any other type, and an omitted initializer gives it D10's zero image; what follows is history.

The tour said that an array is a value whose size is part of its type [0520], that all-zero is a valid image for an aggregate of zero-image parts [0540], that a struct has its declared fields [0670], that those fields keep their order and target padding [0750], and that a module is a set of declarations [1740]. D45 gave the checker a complete layout for a named ordinary struct with fixed-scalar-array fields, but deliberately left every runtime storage and value context refused.

Chosen: a declaration-only module binding may have a type that resolves, directly or through aliases, to a named ordinary laid-out struct whose fields are enabled scalars or fixed arrays of enabled scalars. D10 supplies the whole object's all-zero image, so neither the array length nor the number of fields is expanded into initializer work. Module state has no local definite-assignment fact to establish: its scalar fields read as zero from declaration and ordinary mutable scalar fields may be assigned, including a scalar sibling after an array field.

This admits the containing storage, not the array field as a value or whole place. Selecting that field reported L0304 once at the selection in this slice; D48 supersedes that result only where the selection is immediately the base of an index. A local declaration of the same struct also reported L0304 in this slice because the frame's aggregate-slot representation remained scalar-field-only; D47 supersedes that storage boundary. An initializer, whole read or copy, parameter, return and every other whole-value context remain refused in this slice; D54 later supersedes the whole-copy boundary and D55/D56, after D47 supplies the frame representation, the explicitly typed or inferred local direct-storage-name initializer boundary. Struct fields of struct type and other nested aggregate composition remain outside D45 and therefore outside this decision. D17's zero-length field rule is unchanged; D136 later accepts source [0]T uniformly.

Lowering records the module datum as one declaration-order run of neutral field shapes. A scalar shape has canonical length one; a fixed-array shape carries one scalar element and one count. This is the same representation-independent shape D45 measurement IR uses, but item and measurement runs remain distinct so one cannot be mistaken for the other. The verifier rejects a noncanonical scalar shape and rejects a scalar Load_Field or Store_Field aimed at an array shape. No target offset, byte size, alignment or expanded element run is put into IR.

The backend replays those shapes through the same target placement used for measurement and reserves the complete padded object in zeroed storage. Scalar field operations use the resulting target offset. On x86-64, a nonzero offset in any aggregate containing an array field is added to the symbol address: an offset fitting a signed 32-bit arithmetic immediate uses an immediate add, while a larger offset uses a full-width register constant and register add. Neither case asks the assembler to encode a symbol-plus-displacement memory operand whose relocation a D18-sized field could put out of range.

Why module state first: it already has D10's complete image and needs only one compact datum description. Enabling the same type in a frame would require the slot representation and nested-place operations to describe the array; enabling a whole value would additionally settle copies, initialization, parameters and returns. Keeping those separate makes this slice executable without implying any of them.

The alternatives: flatten the array into one scalar item field per element, or admit array shapes in every aggregate slot and field operation at once. The first cannot represent D18's enabled lengths, and the second couples storage, nested-place and whole-value decisions that have different invariants, so both were declined.

Pinned by the checker, lowering, verifier and backend public-seam cases; positive/struct-array-field-module-state; negative/struct-array-field-selection-not-enabled; the recorded IR dump; and runtime/struct-array-field-state-scalar-siblings on Linux x86-64.

D47 — An array-field struct may be declaration-only local storage

Superseded by D241. A struct with array fields is declared without an initializer like any other local, and [1910] decides when it may be read; what follows is history.

The tour said that a declaration-only binding must be assigned before it is used [0080], that an array is a value whose length is part of its type [0520], that a struct has its declared fields [0670], and that those fields keep declaration order and target padding [0750]. D16 made each field of a struct local its own definite-assignment fact. D45 supplied the complete layout for scalar and fixed-scalar-array fields, while D46 deliberately stopped after module storage because the frame IR could describe only scalar fields.

Chosen: a declaration-only local binding may have a type that resolves, directly or through aliases, to a named ordinary laid-out struct whose fields are enabled scalars or fixed arrays of enabled scalars. The complete object is one frame cell with the padded extent and alignment derived from the selected target. Unlike D46's module state, this local is not implicitly zeroed and no stores are invented at its declaration.

D16 continues to track each accessible scalar field independently. A scalar sibling before or after the array must be assigned on every arriving path before it is read, and assigning one sibling assigns no other. The array field had no D16 fact in this slice because it was not selectable as a value or nested place: selection reported L0304 once and the definite-assignment recovery walk added no whole-struct report. D48 supersedes that boundary for an indexed element and gives it a field-qualified fact. A local initializer, whole read or copy, parameter, return and every other whole-value context remain refused in this slice; D54 later supersedes the whole-copy boundary and D55/D56 the explicitly typed or inferred direct-storage-name local initializer boundary. Struct fields of struct type and broader nested aggregate composition also remain outside the laid-out kernel.

Lowering records the cell as one aggregate slot whose declaration-order field run uses D45's neutral shape: a scalar leaf has canonical length one and a fixed-array leaf carries one scalar element and one count. Slot, item and measurement runs remain distinct. The dump exposes the slot run, the verifier rejects a noncanonical scalar slot leaf, and Load_Field or Store_Field may name only a scalar part. Thus the inaccessible array field cannot cross the verified scalar operation boundary even if lowering is damaged.

The backend replays every slot shape through the same target placement as D45 measurement and D46 module storage. D17's zero-element shape therefore contributes size zero and alignment one here too; D136 later accepts source [0]T. Scalar field operations use the resulting offset. On x86-64 the existing signed frame-displacement limit applies to the complete cell: a routine whose padded frame is not addressable reports L0504 before assembly is emitted, including when an array field is what makes it too wide.

Why storage without a value: the frame needs only a compact description and D16 already supplies the scalar-field initialization rule. Enabling the array field as a place requires an aggregate-aware nested-place representation and computed element addressing; enabling a whole value additionally settles initializers, copies, parameters and returns. None is required to allocate the cell and use its scalar siblings.

The alternatives: keep local storage refused until nested indexing, or enable array-field selection and whole values in the same slice. The first would preserve a storage-class distinction after item and slot IR can express the same neutral shape; the second combines independent representation, definite-assignment and calling-convention questions. Both were declined.

Pinned by the checker, lowering, verifier, driver and backend public-seam cases; positive/struct-array-field-local-storage; negative/struct-with-an-array-field; negative/struct-array-field-local-selection-not-enabled; negative/struct-array-field-local-unassigned-scalar; the recorded IR dump; and runtime/struct-array-field-local-scalar-siblings on Linux x86-64.

D48 — An element of a fixed-array field is a place

Superseded by D118 and D119 for the path, and D241. An element of an array field is a place and a value at the end of any path, with the index rules every element has; what follows is history.

The tour said that an array element is a place [0520], that a computed index traps before an address is formed [0580], that a struct has its declared fields [0670], and that assignment uses the root binding's mutability [1900]. D46 and D47 admitted the containing module datum and local frame cell, but stopped before an array field could be reached.

Chosen: where s directly names D46 module state or a D47 local and f is a fixed array of enabled scalars, s.f[i] is admitted as a read, assignment destination, or inc/dec target. The index is exactly usize under D18. A compiler-known index outside the field length is refused under [1950]; every other index is checked at runtime and traps before any address is formed under [0580]. Writability is the root binding's. The selection s.f is typed as an array only in this index-base context: as a whole value, copy endpoint, or non-zeroed assignment destination it remains refused with L0304. D49 later supersedes the complete s.f = zeroed statement, D50 later supersedes the copy-endpoint boundary, and D52/D53 later supersede literal and repetition destinations.

D10 makes module state complete from declaration, so an indexed module-field read has no assignment requirement. A declaration-only local instead follows D19 and D22 per field. Its compiler-known element facts are keyed by binding, field, and position; assigning one position establishes only that fact. A computed read requires the whole-field fact, which holds once every declared position in that field has a fact on every arriving path. A computed write establishes no fact and clears none, and inc/dec first requires the read. A zero-length field is vacuously complete, preserving D17; D136 later accepts source [0]T.

Lowering carries the root storage identity, the declaration-order field position, and the index through the existing Load_Element and Store_Element operations. Field zero continues to mean that the storage is itself an array; a positive field selects an array shape inside an aggregate. No checker-computed byte offset enters IR. Even a compiler-known index through a field uses the element operation: adding a two-level static-part encoding for that optimization was declined. Array copy, clear, and fill operations still name whole storage only and therefore require field zero in this slice; D49 later adds a destination field identity to Clear_Array, and D50 adds source and destination identities to Copy_Array.

The verifier checks a positive element field against the aggregate field run before it reads the shape, and rejects an absent field or a scalar field. It then applies the existing usize, result, and stored-value rules to the array shape's element. The dump exposes the field identity. Each backend derives the field offset, length, and element width from its selected target. On x86-64 a module field base is formed in registers so a D18-wide preceding field remains addressable; a local uses the field displacement inside the L0504-bounded frame. In both cases the bounds trap precedes field and element address arithmetic.

Why the scoped selection: admitting s.f generally would also imply whole field copies and zeroed, which have separate initialization and lowering rules. D49 later settles only the contextual clear. Index-base typing enables the scalar subobject without pretending the array field is an ordinary value. Field-qualified local facts preserve D19's independent-element rule when one struct contains more than one array field.

The alternatives: enable module indexing first and defer locals, introduce new field-element opcodes, or lower an address-of-field value. The first leaves D47 storage unusable despite the same compact shape; the second duplicates the existing element trap and operand rules; the third introduces addresses into a target-neutral IR that has none. All were declined.

Pinned by the IR, verifier, lowering, and backend public-seam cases; positive/struct-array-field-module-state and positive/struct-array-field-local-storage; negative/struct-array-field-selection-not-enabled; negative/struct-array-field-local-selection-not-enabled; negative/struct-array-field-immutable-element; negative/struct-array-field-index-not-usize; negative/struct-array-field-index-outside; negative/struct-array-field-local-computed-unassigned; negative/struct-array-fields-keep-assignment-separate; negative/struct-array-field-element-not-assigned-on-every-path; negative/scalar-struct-field-is-not-indexable; negative/struct-array-field-zeroed-not-enabled; the recorded IR dump; runtime/struct-array-field-state-scalar-siblings; runtime/struct-array-field-local-scalar-siblings; runtime/struct-array-field-computed-index-traps; and runtime/struct-array-field-local-computed-index-traps on Linux x86-64.

D49 — zeroed clears one fixed-array field

Superseded by D241. An array field is a place like any other array, so zeroed clears it as one operation (D32); what follows is history.

The tour said that assignment reaches its destination before its value [0410], that an array's complete value may be all-bits-zero [0520], that zeroed takes its type from context [0540], that a struct has its declared fields [0670], and that writability belongs to the root binding [1900]. D48 admitted an element of a fixed-array field while deliberately leaving the field itself outside every whole-place context.

Chosen: where s directly names D46 module state or a D47 local and f is a fixed array of enabled scalars, s.f = zeroed is admitted as a statement. The selection is typed as an array only as the destination of that complete assignment. At this boundary, as a value, copy source or destination, non-zeroed destination, inc/dec target, operand, or nested zeroed expression it remains refused with L0304; D50 later supersedes the copy endpoints, D52 the literal destination and D53 repetition destinations. An immutable root reports L0303 first and alone under [1900]. The destination is reached first and zeroed evaluates nothing [0410]. Every enabled scalar has a zero image, so the complete field has one [0540].

D10 already makes a module field complete, so clearing it changes no assignment fact. Normal completion for a local records the whole-field fact keyed by the binding and field. Every compiler-known or computed element of that field may then be read; a later computed write keeps the fact under D22, and no scalar sibling or other array field is affected. A merge keeps the fact only when every arriving path has it. A zero-length field is vacuously complete and clears zero bytes, preserving D17; D136 later accepts source [0]T.

Lowering emits the existing compact Clear_Array with the root storage and the field's declaration-order identity. Field zero continues to mean that the storage is itself an array. At this boundary Copy_Array and Fill_Array remain field-zero-only, so this does not admit a whole field copy or fill; D50 later adds both copy endpoint identities. No checker-computed offset, source operand, temporary, or per-element instruction enters IR. The dump exposes a positive clear field.

The verifier checks a positive field against the aggregate run before it reads the shape, rejecting an absent field or a scalar field with the same faults D48 uses. Each backend derives the field offset, element width, and byte extent from its selected target. Linux x86-64 forms a module field base in registers so a D18-wide preceding field remains addressable, uses the L0504-bounded displacement for a frame field. It uses bounded scalar zero stores for one to six bytes or exactly eight bytes; other extents retain rep stosb. A zero extent gives rep stosb a zero count.

Why only the contextual clear: a field supplies exactly the shape and storage zeroed needs, while a general selection would also admit source reads, copies, literals, repetitions, arguments, returns, and hidden array-sized temporaries. Those operations have distinct source-order and definite-assignment rules. Keeping the selection scoped preserves their refusal.

The alternatives: admit general whole field places and copies together, emit one scalar store per element, put a field into every array-storage endpoint, or admit aggregate zeroed initialization in the same slice. The first and last broaden the value boundary, the second makes compiler work proportional to a D18 extent, and the third representation widens copy and fill before either can use it. All were declined.

Pinned by the checker, IR, verifier, lowering, and backend public-seam cases; positive/struct-array-field-zeroed-assignment; negative/struct-array-field-zeroed-not-enabled; negative/immutable-struct-array-field-zeroed; negative/struct-array-field-clear-keeps-fields-separate; negative/struct-array-field-clear-not-on-every-path; the recorded IR dump; runtime/struct-array-field-state-scalar-siblings; and runtime/struct-array-field-local-scalar-siblings on Linux x86-64.

D50 — A fixed-array field is a whole-copy endpoint

Superseded by D241. An array field is a place and a value like any other array, so it is either end of a copy; what follows is history.

The tour said that assignment reaches its destination before its value [0410], that assigning an array copies its complete value [0520], that a struct has its declared fields [0670], and that writability belongs to the root binding [1900]. D20 admitted one compact copy between direct array storage names. D48 made an indexed element of a fixed-array field reachable, and D49 made the complete field a contextual zeroed destination, while both kept a field out of copy syntax.

Chosen: where s directly names D46 module state or a D47 local and f is a fixed array of enabled scalars, s.f may be either endpoint of D20's copy: s.f = t.g, s.f = name, name = s.f, and s.f = s.f. A direct name has field identity zero; a selection has its declaration-order field identity. Both endpoints must have the same D17 length and scalar element type. A disagreement is refused with D20's L0301 at the source, related to the destination. The destination root must be mutable under [1900]; L0303 owns an immutable destination first and alone. The destination is reached before the source under [0410], and neither endpoint evaluates an element.

The source is read as a whole. D10 makes a module field complete. A local source field must be complete on every arriving path: D49's clear or an earlier D50 copy supplies its binding-and-field whole fact, while D19/D48's sparse facts also suffice when they cover the declared length. A zero-length field is vacuously complete. Self-copy follows the same rule and therefore cannot make an unassigned field assigned. Normal completion records only the destination's whole fact; a scalar sibling and every other array field remain independent, and a branch merge keeps that fact only when every arriving path has it.

This is a copy context, not a general array value. A fixed-array field remains refused as a module initializer source, argument, return, discard, operand, or bare read, and as a literal, repetition, or other non-zeroed, non-copy assignment destination. D51 later admits it as a local initializer source without changing those positions, and D52/D53 later admit literal and repetition destinations. Whole copies of the containing struct keep D46's refusal in this slice; D54 later gives the field-wise lowering path an explicit array branch.

Lowering emits one compact Copy_Array carrying both root storage identities and both field identities, never target offsets, temporaries, or one operation per element. The verifier first checks that each positive field exists in an aggregate and has an array shape, then compares the two shapes; those explicit checks precede every shaped accessor in assertion-free builds. Fill_Array remains field-zero-only.

Each backend derives both field offsets, the source element width, and the byte extent from its selected target. Linux x86-64 register-forms a module field on either side when a D18-wide preceding field puts its offset outside a signed displacement and uses L0504-bounded frame displacements for local fields. It uses scalar register moves for one to six bytes or exactly eight bytes; other extents retain one forward rep movsb. Distinct fields and distinct storage do not overlap; an exact self-copy names the same range, which either transfer preserves. A zero extent gives the operation a zero count.

Why the contextual endpoints: the compact D20 operation already expresses the complete source read and destination write without enumerating D18's extent. Typing the selections only in this syntax reuses that rule without creating an array value that another expression, call, return, or initializer would have to carry.

The alternatives: admit a fixed-array field as a general value, enable field-wise copies of the containing struct, initialize storage from a selected field in this assignment slice, emit one scalar copy per element, put a field component into every Storage, or introduce a second copy opcode. The first three broaden distinct value and static-image rules, the fourth cannot represent every D18 extent, the fifth widens unrelated fill endpoints, and the sixth duplicates D20 for two identities. All were declined here; D51 later settles the local-initializer rule independently.

Pinned by the checker, IR, verifier, lowering, and backend public-seam cases; positive/struct-array-field-copy; negative/struct-array-field-copy-source-unassigned; negative/struct-array-field-copy-not-on-every-path; negative/struct-array-field-copy-shape-mismatch; negative/immutable-struct-array-field-copy; negative/struct-array-field-copy-keeps-fields-separate; the recorded IR dump; and runtime/struct-array-field-copy-endpoints on Linux x86-64.

D51 — A fixed-array field initializes a local array

Superseded by D241. An array field is a value like any other array, so it initializes a typed or inferred local; what follows is history.

The tour said that a binding may carry a value [0040], an inferred binding takes that value's type [0050], the value is read before the new name exists [0110], and assigning an array copies its complete value [0520]. D21 admitted both typed and inferred local initializers from a direct array storage name. D50 made a directly selected fixed-array field a complete copy source, but kept it outside initializer syntax.

Chosen: where s directly names D46 module state or a D47 local visible at the binding and f is a fixed array of enabled scalars, a local array binding may be initialized from s.f in either D21 form. In [mut] name: [N]T = s.f, the written type must have the field's D17 identity; a disagreement is D20's L0301 at the source, related to the binding. In [mut] name := s.f, the destination takes that length and scalar element type exactly. A declaration is not an assignment [0080], so either mutable or immutable binding accepts the initializer and the source root need not be mutable.

The source is read before the new name enters scope [0110] and as a whole. D10 makes a module field complete. A local field must be complete on every arriving path: D49's clear or a D50 copy supplies its binding-and-field whole fact, while D19/D48's sparse facts also suffice when they cover the declared length. A zero-length field is vacuously complete. The fresh local is completely initialized by the copy and, like every local declared with a value, needs no later definite-assignment tracking. A refused contextual value owns its report; [1940] does not add a static-module-value report after that node is ill typed.

This remains an initializer context rather than a general array value. D70 later admits the same selected field as a typed or inferred module initializer; it remains refused as an argument, return, discard, operand or bare read. It is not a literal or repetition destination at this boundary; D52 later admits the literal destination alone. Whole copies of the containing struct keep D46's refusal here and are admitted later by D54; fields of elements, struct-of-struct fields and nested arrays remain outside the laid-out kernel.

Lowering emits D21's one compact Copy_Array from the containing root storage, carrying the field's declaration-order identity as D50's source field, into the fresh frame slot at field zero. It emits no target offset, temporary or per-element operation. The verifier and backend therefore reuse D50's rules: the verifier checks the source field before reading its shape, and x86-64 register-forms a D18-wide module offset while ordinary frame addresses remain bounded by L0504. A zero extent gives the copy a zero byte count.

Why: D21's initializer already is D20's copy into fresh local storage, and D50 already represents and checks a selected field as that copy's complete source. Reusing both preserves D21's typed/inferred symmetry without adding a general value position or a new IR operation.

The alternatives: admit only the explicitly typed form, admit a module initializer from a field, make the field a general value, add a separate initializer opcode, or emit one store per element. The first makes D21's two spellings needlessly asymmetric; the second needed a static-image rule for subobjects and was later chosen by D70; the third broadens unrelated expression positions; the last two duplicate or cannot represent the compact D18 operation. The remaining alternatives were declined.

Pinned by the checker, lowering and backend public-seam cases; positive/local-array-initialized-from-field; negative/struct-array-field-initializer-source-unassigned; negative/struct-array-field-initializer-not-on-every-path; negative/struct-array-field-initializer-shape-mismatch; positive/module-array-from-struct-field; the recorded IR dump; and runtime/local-array-initializers-from-fields on Linux x86-64.

D52 — An array literal may be assigned to a fixed-array field

Superseded by D241, and its write order by D1827. An array field is a place like any other array, so it takes an array literal as any array does, formed as if before the field changes; what follows is history.

The tour said that assignment reaches its destination before its value [0410], that an array has its complete value [0520], that aggregate parts are initialized in written order, that a struct has its declared fields [0670], and that writability belongs to the root binding [1900]. D29 admitted a nonempty literal only when the complete destination was a direct array storage name. D48 made each element of a fixed-array field reachable without making the field a general place.

Chosen: where s directly names D46 module state or a D47 local and f is a fixed array of enabled scalars, D29's contextual assignment also admits s.f = [first, ..., last]. Direct and aliased root, field and scalar element types have the same meaning. The selected field's D17 length and element type are the context: the nonempty literal must contain exactly that many elements, and every expression must have the element type. A length or element mismatch uses D29's L0301 and relates the source to its destination. The root must be mutable under [1900]; L0303 owns an immutable root first and alone.

The destination is reached first. Each expression is then evaluated from left to right and written immediately to its corresponding element before the next expression begins, exactly as D29 specifies for direct storage. Thus a later expression can observe an earlier write to the same field, and a runtime failure can leave a completed prefix changed. Reads in every source expression are nevertheless checked against the definite-assignment state arriving at the statement; only normal completion records the binding-and-field whole fact. That fact makes known and computed reads complete without affecting any scalar sibling or other array field, and a merge retains it only on every arriving path. Module state remains complete under D10.

Lowering evaluates each element, emits a constant usize index, and uses D48's existing Store_Element operation with the root storage and the field's declaration-order identity. It creates no hidden array temporary and carries no target byte offset. D29's direct-array literal keeps its existing Store_Field run byte-for-byte. A constant field index deliberately retains the ordinary bounds check: introducing the two-level static-part encoding D48 declined is not part of this rule.

The verifier and backend reuse D48 without a new operation or invariant: the verifier checks the positive field exists and has an array shape before reading it, then checks the usize index and stored element type. Each backend derives the field offset, length and element width from its target. Linux x86-64 forms a D18-wide module field in registers and uses the L0504-bounded target displacement for a local; every bounds trap precedes address arithmetic.

This is D29's literal context, not a general field value or place. Full and mixed repetition are a separate decision admitted later by D53; zeroed other than D49, copies other than D50, module initializers, arguments, returns, discards, operands, bare reads, fields of elements, struct-of-struct fields and nested arrays keep their existing boundaries. Whole copies of the containing struct remain refused here and are admitted later by D54. In particular, D52 itself does not widen Fill_Array.

Why reuse element stores: a literal already names one expression per position, and D48 already represents the containing field plus an element index. Reusing that operation preserves D29's observable order and avoids both a hidden complete temporary and a second two-level part representation.

The alternatives: keep literals restricted to direct arrays, form a hidden array value and copy it, extend Store_Field with a nested part, or admit full and mixed repetition in the same slice. The first leaves otherwise usable field storage needlessly asymmetric; the second changes D29's order and frame cost; the third duplicates D48's identity; and the fourth requires a compact field-qualified fill rule that a literal does not need. All were declined.

Pinned by the checker, lowering and backend public-seam cases; positive/struct-array-field-literal-assignment; negative/struct-array-field-literal-length-mismatch; negative/struct-array-field-literal-element-mismatch; negative/immutable-struct-array-field-literal; negative/struct-array-field-literal-reads-incoming-state; negative/struct-array-field-literal-not-on-every-path; the recorded IR dump; and runtime/struct-array-field-literal-assignment-order on Linux x86-64.

D1180 — An array parameter is a copy source for an array field

The tour said that assigning an array copies its complete value [0520]. D50 made a fixed-array field either endpoint of that copy and named its other endpoint as a direct name of module state or a local. An array parameter and a named array return were already copy sources for a local array, copy: [16]u8 = name, and for a field of a struct literal, (name: name), but record.name = name with name a parameter was refused with L0334 at the field, "this selects a whole array field, and this position does not take one": the checker admitted the field as a destination only after recognising the source by its spelling, and a parameter's name was not among the spellings.

Chosen: a parameter or a named return of fixed-array type is a source of D50's copy into a fixed-array field, at any depth of selection, under D50's rules for length, element type, mutability of the destination's root and order of evaluation. Nothing else about either changes: a parameter is not a destination, and a named return is assigned as it was.

The alternative was to keep the refusal and have it name the parameter and the local copy that works. It was declined because the copy through a local reads and writes the same bytes, so the refusal protected nothing and only the order of two statements told the accepted program from the refused one.

Pinned by runtime/array-parameter-into-array-field.

D1201 — A whole array field is lent to an inout array parameter

The tour said at [0900] that inout takes a writable place, and at [0520] that an array is passed whole. D48-D51 reached a fixed-array field as a place for indexing and for each end of a copy, and a local array, an element that is itself an array, grid[0], and a struct field were all lent inout. reset(held.round) alone was L0334, "this selects a whole array field, and this position does not take one", with a note saying an array is passed whole.

Chosen: a fixed-array field at any depth of selection is an inout argument for an array parameter of its length and element type, under the rules every other inout place has: the root is writable [1900], D149 refuses the same place given twice, [0830] and D1084 refuse the call while a view of the field, or of the binding or a field holding it, is in use (D1371), and a consumed field is assigned again first. Lowering passes the field's address, as it passes an element's. Nothing new is checked or stored: the gate was the one that typed the argument before its place was asked about.

The alternative was to keep the refusal and have it say to copy the field through a mut local and back. It was declined for D1180's reason: the copy reads and writes the same bytes, and an array element and a struct field in the same position are already lent.

Pinned by runtime/array-field-passed-inout and negative/array-field-inout-beside-its-view.

D53 — Repetition may assign a fixed-array field compactly

Superseded by D241, and its write order by D1827. An array field takes full and mixed repetition as any array place does: one fill (D32), after a prefix that reads the field as it was before the assignment; what follows is history.

The tour said that full repetition evaluates one scalar pattern [0560], that mixed repetition evaluates and stores its prefix before evaluating the repeated suffix, that assignment reaches its destination before its value [0410], and that writability belongs to the root binding [1900]. D32 and D37 admitted those forms only for direct array storage. D48 made the elements of a fixed-array field reachable, while D52 supplied the ordered prefix-store representation a mixed field destination needs.

Chosen: where s directly names D46 module state or a D47 local and f is a fixed array of enabled scalars, D32's full [N of expression] and [of expression] assignment and D37's mixed [e1, ..., ek, of repeated] assignment also admit s.f as their contextual destination. Direct and aliased root, field and scalar element types have the same meaning. The field supplies D17's length N and element type T: a written full count must equal N, every expression must have type T, and a mixed prefix must satisfy 1 <= k < N. Consequently neither form admits a zero-length field under D32/D37's construct-specific nonzero contextual rules. The root must be mutable; L0303 owns an immutable root first and alone.

The destination is reached first. A full repetition evaluates its scalar once and fills the field. A mixed repetition evaluates and immediately stores each prefix expression from left to right, then evaluates the repeated expression once and fills positions k + 1 through N. A later prefix or repeated expression can therefore observe an earlier prefix write. Reads in all source expressions are checked against the definite-assignment state arriving at the statement; only normal completion records the binding-and-field whole fact. That fact is independent of scalar siblings and other array fields and survives a merge only when established on every arriving path. Module state remains complete under D10.

Lowering represents a full field repetition with one Fill_Array, carrying the root storage, the field's declaration-order identity and First = 1. For a mixed field repetition it uses D52's constant-index Store_Element sequence for the prefix and one field-qualified Fill_Array with First = k + 1 for the suffix. The repeated value is one ordinary scalar IR operand; no hidden array temporary, target byte offset or operation per suffix element is formed. D32 and D37's direct-array instruction sequences remain unchanged with field identity zero.

The verifier first requires a positive field identity to name an array shape inside the destination aggregate, then applies D32/D37's existing start and element-type checks to that field's shape. These are explicit checks in assertion-free builds. Each backend derives the containing field address, suffix offset, count and element width from target facts. Linux x86-64 register-forms a D18-wide module field offset, composes the written prefix offset with it, and uses an L0504-bounded field displacement for a local on both 64- and 32-bit target descriptions.

This is one contextual assignment rule, not a general field value or place. Repetition in local or module initializers from a field, arguments, returns, discards, operands, bare reads, fields of elements, struct-of-struct fields and nested arrays remains refused. A whole copy of the containing struct remains refused in this slice and is admitted later by D54. D53 does not change module static images or admit a field as an independently carried repetition value.

Why reuse the compact fill: D32/D37 already evaluate one repeated scalar and keep IR size independent of the target-sized extent, while D48/D52 already carry the containing field and ordered prefix writes. Combining those existing identities preserves source order without inventing another array representation.

The alternatives: keep repetition restricted to direct arrays, expand the suffix into one element store per target position, form a hidden complete array and copy it, or make the selected field a general array place. The first leaves D32/D37 unnecessarily asymmetric with D52; the second makes compiler work proportional to D18's extent; the third changes observable prefix-store order and frame cost; and the fourth broadens unrelated value contexts. All were declined.

Pinned by the checker, IR, verifier, lowering and backend public-seam cases; positive/struct-array-field-repetition-assignment; negative/struct-array-field-repetition-count-mismatch; negative/struct-array-field-mixed-prefix-too-long; negative/struct-array-field-repetition-element-mismatch; negative/immutable-struct-array-field-repetition; negative/struct-array-field-repetition-reads-incoming-state; negative/struct-array-field-repetition-not-on-every-path; the recorded IR dump; and runtime/struct-array-field-repetition-assignment-order on Linux x86-64.

D54 — An array-bearing struct is copied field by field

Superseded by D241. A struct with array fields is copied whole like any other struct; what follows is history.

The tour said that assignment reaches its destination before its value [0410], that assigning an array copies its complete value [0520], that a struct has its declared fields [0670], that named structs have nominal identity [0710], and that a declaration-only local must be assigned before it is read [1910]. D16 made each scalar field of a struct local an independent assignment fact. D46 and D47 admitted module and local storage with fixed-scalar-array fields, while their whole-copy boundary remained refused.

Chosen: destination = source is admitted when both directly name D46 module state or D47 declaration-only local storage of the same nominal ordinary struct, directly or through aliases, and every field is an enabled scalar or a fixed array of enabled scalars. [0710] still refuses two distinct, same-shaped struct declarations with L0301. The destination root must be mutable; L0303 owns an immutable destination first and alone. This is the existing contextual struct assignment, not a general aggregate value.

A module source is complete under D10. Before a tracked local source is copied, every scalar field must have D16's field fact and every fixed-array field must be complete under D48--D53: either its D49/D50/D52/D53 binding-and-field whole fact exists or its D48 sparse element facts cover the declared length. A zero-length field is vacuously complete. The first incomplete field owns D16's L0302 and is named in the report. Self-copy follows the same read rule, so it cannot turn an unassigned object into an assigned one. A merge retains only the contributing facts present on every arriving path.

Normal completion assigns every destination field independently. A scalar field receives its D16 bit; a fixed-array field receives its binding-and-field whole fact, without assigning a scalar sibling or conflating two array fields. Lowering visits fields in declaration order. A scalar field keeps the existing Load_Field and Store_Field pair. A fixed-array field emits one D50 Copy_Array whose source and destination carry that field's declaration-order identity. No target offset, hidden aggregate temporary, whole-aggregate opcode, or operation per array element is introduced. Exact self-copy names identical ranges and the existing forward byte copy preserves them.

The verifier and backends need no new boundary: D50 already checks both positive field identities before reading their equal array shapes, and D53's storage-address path derives datum and frame field addresses from target facts. Linux x86-64 therefore register-forms a D18-wide module field and uses L0504-bounded frame displacements on both 64- and 32-bit target descriptions.

Initializers, arguments, returns, discards, operands, bare whole reads and every other general value of the struct remain refused in this slice, as do struct fields of struct type, fields of elements and nested arrays. In particular, an explicitly typed or inferred initializer from an array-bearing struct name reports the existing L0304 once in this slice. D55/D56 later admit the typed and inferred local direct-storage-name forms, and D60/D61 their module static image counterparts. None admits the name of a struct type declaration as storage. Before D54, the inferred spelling could silently settle an aggregate binding with no nominal body or value representation; D54 first routed it through the ordinary whole-value refusal, and D56 later carries that missing identity at the one admitted boundary without changing forward-name or cycle ownership. Parameters and returns still need their own calling-convention decision.

Why field-wise copy: the enabled aggregate representation already names each scalar or compact array field, and D16 plus D48--D53 already state exactly what makes each one initialized. Reusing those identities keeps compiler work and IR size independent of D18's array extent while preserving the nominal struct rule and target-neutral layout.

The alternatives: keep whole copy scalar-only, flatten each array into a scalar operation per element, add one opaque aggregate-copy instruction, or make the struct a general value. The first leaves two equally laid-out storage classes needlessly asymmetric; the second cannot represent every enabled extent; the third hides the field-shaped verification and assignment facts; and the fourth settles unrelated initializer, call and return rules. All were declined.

Pinned by the checker, lowering and backend public-seam cases; positive/struct-array-field-whole-copy; negative/struct-array-field-whole-copy-source-unassigned; negative/struct-array-field-whole-copy-not-on-every-path; negative/struct-array-field-whole-self-copy-unassigned; negative/immutable-struct-array-field-whole-copy; negative/struct-type-name-is-not-storage; negative/struct-copy-across-types; the recorded IR dump; and runtime/struct-array-field-whole-copy on Linux x86-64.

D55 — A typed local struct may snapshot directly named storage

Superseded by D241. A typed local struct takes every value of its type, a storage name among them; what follows is history.

The tour said that a local binding may carry an initializer [1810], that assignment reaches its destination before its value [0410], that assigning an array copies its complete value [0520], that named structs have nominal identity [0710], and that fields keep declaration order [0750]. D54 admitted the same field-wise copy only as an assignment between existing storage.

Chosen: an explicitly typed local binding, mutable or immutable, may be initialized from a direct name of existing module or earlier local storage when both have the same nominal ordinary struct type, directly or through aliases, and that struct has an enabled D44/D45 layout. A struct refused at one of its fields already owns that report, so this context does not ask for its missing layout. The value is contextual: it is accepted only in this binding form and does not make a struct name a general aggregate value. Per [0110], the new name is not in scope in its own initializer, so a same-spelled source denotes an outer binding.

A module source is complete under D10. A tracked local source must satisfy D54's whole-read rule before the initializer executes: every scalar field has its D16 fact and every fixed-array field has either its binding-and-field whole fact or complete D48 sparse facts. A zero-length field is vacuously complete. The first incomplete field reports D16's L0302. Two distinct, same-shaped struct declarations remain nominally different and report L0301 at the source, related to the binding. An unresolved source keeps resolution's own report.

Lowering allocates the destination's complete aggregate frame slot, then visits fields in declaration order. A scalar field uses D54's Load_Field or Load_Slot_Field followed by Store_Slot_Field; a fixed-array field uses one D50 Copy_Array from the source field into the same field of the fresh slot. The initialized binding therefore owns storage independent of its source. No aggregate value, hidden temporary, target offset, new IR operation, verifier rule, or backend invariant is introduced. D50/D53 already verify the compact field shapes and derive the module and frame addresses from target facts on both 64- and 32-bit descriptions.

An inferred local binding remains refused in this slice and is admitted by D56 only when its value is a direct struct storage name. A module initializer remains refused in this slice; D60/D61 later admit its typed and inferred direct-name forms. At D55, a non-name initializer, zeroed, a struct literal, an argument, return, discard, operand or bare whole read remained refused; D57 later admits typed local zeroed and D64/D65 the typed local labelled literal. The checker reports the existing L0304 once for an unsupported binding form; a binding it has already refused reads nothing for definite assignment under D16. Parameters and returns still need their own calling-convention decision, and struct-of-struct fields, fields of elements and nested arrays keep their existing boundaries.

Why the typed local form first: its written type supplies the nominal destination identity and its fresh slot reuses D54 without changing expression typing or static images. It is the smallest executable initializer slice and gives both scalar-only and array-bearing ordinary structs the same contextual copy rule.

The alternatives: also infer the destination type from the source, admit a module static image, admit aggregate zeroed, or make a struct name a general value. Inference needs a separate rule for carrying nominal identity; a module initializer needs a static struct-image chain; zeroed needs its own per-field initialization rule; and a general value settles calls, returns and temporary representation. All were declined here; D56 later supplies the separate nominal-identity rule for local inference only, D57 later supplies the typed local zeroed context, and D60/D61 later supply the typed and inferred module static image chains.

Pinned by the checker, lowering and backend public-seam cases; positive/local-struct-initialized-from-name; negative/local-struct-initializer-source-unassigned; negative/local-struct-initializer-not-on-every-path; negative/local-struct-initializer-nominal-mismatch; negative/local-struct-initializer-non-name-not-enabled; negative/local-struct-initializer-source-not-declared; negative/local-struct-initializer-source-type-mismatch; negative/struct-type-name-is-not-storage; the recorded IR dump; and runtime/local-struct-initializer-copies-storage on Linux x86-64.

D56 — A local struct is inferred from directly named storage

Superseded by D241. An inferred local takes the type of every struct value it is given, a storage name among them; what follows is history.

The tour said that an inferred local binding takes its value's type [0050], that the new name is not in scope in its own initializer [0110], that named structs have nominal identity [0710], and that fields keep declaration order [0750]. D55 admitted only the explicitly typed spelling because its written type supplied the destination's nominal body.

Chosen: a mutable or immutable local binding whose type is omitted may be initialized from a direct name of existing module or earlier local storage of an enabled ordinary struct type. The destination is inferred to have exactly the source's nominal body, including through a type alias. The source must resolve to a module or local binding: a struct type declaration is a name but is not storage and reports the existing L0304. Per [0110], a same-spelled source denotes an outer binding rather than the declaration being introduced.

Inference carries the source body's declaration onto the new local before the declaration settles as an aggregate. That identity is the one later field selection, contextual whole copy and slot layout use; inference does not construct a structural type or a bodyless aggregate value. A scalar-field and a fixed-array-field struct follow the same rule. An unresolved source keeps resolution's own report, and the existing underway guard preserves the single report for a value worked out from itself [1940].

The source read is exactly D54/D55's whole read. Module storage is complete by D10; a tracked local must have every scalar D16 fact and every fixed-array field whole or complete sparse fact on every arriving path. An internal zero-length field is vacuously complete. The initialized destination is a fresh, untracked local whose later reads are complete.

Lowering needs no new path after inference: D55 allocates the aggregate frame slot and visits the inferred body's fields in declaration order, using scalar load/store pairs and one compact D50 Copy_Array for each fixed-array field. D50/D53's verifier and target-derived address rules are unchanged. No general aggregate value, hidden temporary, new IR operation, target offset or backend invariant is introduced.

Module inference from a struct name in this slice, any non-name initializer, aggregate zeroed, a struct literal, call result, selected field, argument, return, discard, operand and bare whole read remain refused. Explicitly typed local initialization remains D55, contextual whole assignment remains D54, and typed and inferred module initialization remain refused in this slice until D60/D61's static-image rules. Fields of struct type, fields of elements and nested arrays keep their existing boundaries.

Why: the inferred form differs from D55 only in where its nominal identity comes from. Copying the source's already resolved body declaration before settling the local makes that identity explicit and lets every later stage reuse D55 unchanged. Treating every name whose type is aggregate as a source would instead confuse type declarations with storage and recreate the bodyless aggregate defect D54 exposed.

The alternatives: infer structurally from the field shapes, admit any aggregate-typed expression, infer module initial images, or defer all inference until general aggregate values exist. Structural inference violates [0710]; general expressions need a temporary representation; module inference needs a static image; and deferral leaves the direct-storage case artificially asymmetric with D21. All were declined here; D61 later reuses D60's image chain at the direct-storage boundary.

Pinned by the checker, lowering and backend public-seam cases; positive/local-struct-inferred-from-name; negative/local-struct-inferred-source-unassigned; negative/local-struct-inferred-not-on-every-path; negative/struct-type-name-is-not-storage; the recorded IR dump; and runtime/local-struct-inference-copies-storage on Linux x86-64.

D57 — A typed local struct is initialized to its zero image

Superseded by D241. zeroed takes its type from every destination [1880] lists, a typed local struct among them; what follows is history.

The tour said that zeroed is the all-bits-zero image of its contextual type and writes that complete image as one value [0540], that a local binding may carry an initializer [1810], and that struct fields retain declaration order and target padding [0750]. D55 supplied only a directly named storage source for an explicitly typed local struct.

Chosen: [mut] name: T = zeroed is admitted inside a body when T resolves through aliases to a named ordinary struct with an enabled D44/D45 layout. Every enabled scalar and fixed-scalar-array field has a zero image, so the complete padded object extent has one. The written type supplies the literal's aggregate kind and nominal [0710] body. Both mutable and immutable bindings accept it, and the initialized local is untracked by D16.

Lowering allocates the fresh aggregate slot and emits one operand-free Clear_Array naming field zero. At that identity the operation clears either whole fixed-array storage, as before, or D57's whole aggregate storage; a positive field remains an array field. The verifier explicitly admits only an array or aggregate at field zero before any shaped accessor. Each backend derives an aggregate's complete padded extent from target facts and clears every byte, including padding. Linux x86-64 uses bounded scalar zero stores for one to six bytes or exactly eight bytes; other extents retain rep stosb. No field enumeration, hidden zero object, target offset or new opcode is introduced.

An invalid struct body already owns its field/layout report and never reaches lowering. An explicit module struct zero image in this slice, inferred name := zeroed, whole assignment name = zeroed in this slice, arguments, returns, discards, operands, nested expressions and general aggregate values remain refused. D58 later supplies the whole-assignment context and D59 the explicit module zero image. Struct fields of struct type, fields of elements and nested arrays keep their boundaries.

Why the padded whole: field-wise scalar stores and array clears would leave padding unspecified, contradicting [0540]'s all-bits-zero image. Reusing the destination-only clear keeps compiler work independent of D18-sized fields and keeps target layout in the backend.

The alternatives: clear fields separately, add a second aggregate-clear opcode, synthesize a zero object, or admit module, inferred and assignment contexts together. The first misses padding; the next two duplicate an existing storage operation or invent storage; the last settles distinct static image and place rules. All were declined.

Pinned by the checker, lowering, verifier and backend public-seam cases; positive/local-struct-zeroed-initializer; negative/inferred-zeroed-not-enabled; negative/local-struct-initializer-non-name-not-enabled; the recorded IR dump; and runtime/local-struct-zeroed-reads-zero on Linux x86-64.

D58 — A struct place is assigned its zero image

Superseded by D241. zeroed may be assigned to every place whose type has a zero image, a struct place among them; what follows is history.

The tour said that assignment reaches its destination before evaluating its value [0410], that zeroed is the complete all-bits-zero image of its contextual type [0540], and that assignment requires a mutable place [1900]. D30 supplied this context for whole arrays, D49 for an array field, and D57 gave field zero of the compact clear operation a padded aggregate extent.

Chosen: place = zeroed is admitted when place directly names mutable D46 module state or a mutable D47 local of a named ordinary struct with an enabled D44/D45 layout. The destination supplies the literal's aggregate kind and nominal [0710] body. Root mutability is checked first; an immutable root reports the existing L0303 alone. Type aliases preserve the same body.

The destination is reached first and the literal evaluates nothing. On normal completion every scalar field, every fixed-array field and every padding byte in the complete target object extent is all bits zero. For a tracked local, D16 marks each scalar field assigned and D48--D54 mark each array field wholly assigned; branch merges intersect those facts as before. Module state remains untracked and complete under D10.

Lowering emits D57's one operand-free field-zero Clear_Array naming the module datum or frame slot. The verifier admits the whole aggregate storage explicitly, while Copy_Array and Fill_Array remain array-only. Each backend derives the padded extent and base address from target facts; no source storage, field enumeration, aggregate temporary, target offset or new opcode is introduced.

An inferred initializer name := zeroed, an explicit module initializer in this slice, arguments, returns, discards, operands, nested expressions and general aggregate values remain refused. D59 later admits the explicitly typed module zero image. A struct selection cannot currently name a struct-typed field, and fields of struct type, fields of elements and nested arrays keep their boundaries.

Why both storage classes: D30 and D49 already clear module and local storage with identical runtime semantics, D54 copies whole structs into both, and D10 makes module definite assignment simpler rather than different. Restricting this rule to locals would create a new storage-class asymmetry with no representation or semantic cause.

The alternatives: admit only locals, clear fields separately, add a new aggregate-clear opcode, or admit every aggregate-valued zeroed context at once. The first is asymmetric; the second misses padding; the third duplicates D57's operation; and the last settles static images and general aggregate values this place rule does not need. All were declined.

Pinned by the checker, lowering, verifier and backend public-seam cases; positive/struct-zeroed-assignment; negative/immutable-struct-zeroed-assignment; negative/struct-zeroed-assignment-not-on-every-path; negative/struct-zeroed-assignment-nested-not-enabled; negative/inferred-zeroed-not-enabled; the recorded IR dump; and runtime/struct-zeroed-assignment-clears-storage on Linux x86-64.

D59 — A typed module struct has an explicit static zero image

Superseded by D241. zeroed takes its type from every destination [1880] lists, a typed module struct among them, and a module struct given zeroed keeps D10's absent image; what follows is history.

The tour said that zeroed is the complete all-bits-zero image of its contextual type [0540], that module declarations may carry values [1740], and that nothing runs before the entry point [1460]. D10 already gives a declaration-only module struct that same zero image, while D57 admitted the explicit spelling only for a local binding.

Chosen: [mut] name: T = zeroed is admitted at module scope when T resolves through aliases to a named ordinary struct with an enabled D44/D45 layout. The written type supplies the literal's aggregate kind and nominal [0710] body. Mutability does not affect initialization, so mutable and immutable declarations both accept it. Each declaration still owns distinct module storage.

This is a static image, not executable initialization. Lowering records the same aggregate datum, field-shape run and operandless Leave as D10's omitted initializer. It records no finite per-byte or per-field image and emits no Clear_Array: such an instruction inside a datum would wrongly imply runtime execution and remains verifier-refused. The backend therefore reserves the datum's complete target-derived padded extent in zero-initialized storage, including every field and padding byte.

Module state is complete under D10, so D16 gains no fact or flow rule. An inferred module name := zeroed, initialization from another struct name in this slice, a struct literal, call, argument, return, discard, operand, nested expression and general aggregate value remain refused. D60 later admits the typed direct-name static image chain and D66--D71 the typed module labelled literal. Fields of struct type, fields of elements and nested arrays keep their boundaries.

Why no new image: the explicit spelling denotes exactly the image D10 already requires. A runtime clear cannot run before [1460]; a finite byte image would make compiler work proportional to a D18-sized field; and field-wise images would either omit padding or duplicate target layout outside the backend. Leaving the image absent preserves the established .bss contract.

The alternatives: emit a clear in the datum, record every zero byte, record one zero per field, or admit direct-name and inferred module struct images at the same time. The first is not static, the next two duplicate or misplace layout, and the last needs a separate static struct-image chain. All were declined.

Pinned by the checker, lowering and backend public-seam cases; positive/module-struct-zeroed-initializer; negative/module-struct-zeroed-initializer-nested-not-enabled; negative/inferred-zeroed-not-enabled; the recorded IR dump; and runtime/module-struct-zeroed-image-is-static on Linux x86-64.

D60 — A typed module struct copies a static image from a storage name

Superseded by D24 and D66. A typed module struct initialized from a storage name takes that binding's static image through D24's name chain, into storage of its own, and D66's field image is what the chain carries; what follows is history.

The tour said that a binding may write its type and initializer together [0040], that module declarations form one order-independent scope [1740], that ordinary structs have nominal identity [0710], and that nothing runs before the entry point [1460]. D21 gave a direct-name module array initializer a static image chain, while D55 supplied the corresponding runtime copy only for a local ordinary struct.

Chosen: [mut] name: T = source is admitted at module scope when T resolves through aliases to a named ordinary struct with an enabled D44/D45 layout and source directly names module storage of that same nominal type. The source must be a storage binding rather than a type declaration. An unresolved name keeps resolution's report, a type declaration keeps the existing L0304, and a different nominal body reports L0301 at the source, related to the binding. Mutability affects later writes rather than initialization [0080].

The initializer is D21's declaration-identity static image chain applied to ordinary structs. It follows forward references and type aliases and must terminate at a module struct whose initializer is omitted under D10, is D59's explicit zeroed, or later carries D66's written labelled image. A chain that returns to a declaration is [1940]'s value worked out from itself and reports L0305 once. Every declaration in a valid chain owns distinct storage initialized with the terminal image rather than aliasing its source.

At this decision every constructible terminal image was all bits zero, so the first implementation recorded no finite aggregate image and reserved each target-derived padded extent separately in zero-initialized storage. D66 later adds the target-neutral declaration-order field run this rule required for a nonzero terminal and copies it along the same chain. Omitted and whole zeroed terminals retain the absent-image representation.

Module state remains complete under D10, so definite assignment gains no fact. An initializer boundary that has already refused the written type or value is not read again for [1940], preserving its owning report without a cascade. An inferred module binding in this slice, a non-name initializer, struct literal, call, field selection, argument, return, discard, operand, nested expression and general aggregate value remain refused. D61 later admits the inferred direct-name form and D66--D71 the typed module labelled literal. D55/D56's local initializers and D57--D59's zero-image contexts are unchanged. Struct fields of struct type, fields of elements and nested arrays keep their boundaries.

Why a static copy: aliasing would make a later write through one declaration change the other, contrary to D21 and D54's value semantics. A startup copy cannot run before [1460]. Following identities keeps each symbol and target layout distinct; D66 later supplies the first nonzero producer and carrier.

The alternatives: alias the source, emit runtime initialization, add a field or byte image now, admit inferred module initialization at the same time, or defer the direct-name form until struct literals. The first two contradict value and startup semantics; the third would have invented unused representation at this slice; the fourth needs its own nominal inference rule; and the last leaves arrays and structs asymmetric without implementation evidence. All were declined here; D61 later supplies that inference rule without widening the other forms.

Pinned by the checker, lowering and backend public-seam cases; positive/module-struct-initialized-from-name; negative/module-struct-initial-image-cycle; negative/module-struct-initializer-nominal-mismatch; negative/struct-type-name-is-not-storage; the recorded IR dump; and runtime/module-struct-initializers-copy-images on Linux x86-64.

D61 — A module struct is inferred from directly named storage

Superseded by D24 and D66. An inferred module struct initialized from a storage name takes that binding's type and static image through D24's name chain, into storage of its own, and D66's field image is what the chain carries; what follows is history.

The tour said that an inferred binding takes the type of its value [0050], that module declarations form one order-independent scope [1740], and that ordinary structs have nominal identity [0710]. D21 already inferred module array storage from a direct name, D56 carried a struct's nominal body into an inferred local, and D60 supplied the typed module static image chain.

Chosen: [mut] name := source is admitted at module scope when source directly names module storage whose settled type is a named ordinary struct with an enabled D44/D45 layout. The destination takes exactly the source's nominal body through any type alias. The source must resolve to a storage binding rather than a type declaration; an unresolved name keeps resolution's report and a type name keeps the existing L0304. Mutability does not affect initialization [0080]. Scalar and fixed-array sources retain their existing inference rules.

Inference settles an untouched forward source on demand, then records its body on the destination before settling that destination as an aggregate. The inferred binding therefore has the identity later layout, selection and lowering require; it is not D54's old bodyless aggregate. It joins D60's static image chain, which follows forward references and aliases to D10's omitted or D59's explicit zero terminal and gives every declaration distinct storage.

A chain made entirely of inferred bindings that returns to itself is detected while its type is being settled and reports [1940]'s L0305 once. A mixed typed and inferred chain settles each member's nominal body, then D60's image validator reports that same cycle once. The mechanisms are disjoint: a failed inference is Ill_Typed and is not visited as an image, while the validator only visits successfully settled arrays and aggregates.

At this decision every constructible terminal image was zero. Lowering reused the inferred body to record one ordinary aggregate datum, compact field shapes and an operandless Leave; no finite image, runtime copy, clear, new instruction or target offset was introduced. D66--D71 later added target-neutral labelled scalar, finite, repeated and hybrid field images and copy those terminal images through the same D60/D61 declaration chain into distinct padded objects on 64- and 32-bit descriptions.

A non-name initializer or zeroed without a written type, call, field selection, argument, return, discard, operand, nested expression and general aggregate value remain refused. D64--D71 admit a struct literal only in their explicitly typed contextual local, assignment and module-image forms; inferred literals and call-shaped construction remain refused in this decision; D72 later supplies nominal construction. D55/D56's local forms and D57--D60's contextual zero and typed module forms are unchanged. Struct fields of struct type, fields of elements and nested arrays keep their boundaries.

Why now: D56 already provides the only missing nominal-identity step and D60 already proves and represents the module image. Reusing both closes the last typed/inferred and local/module asymmetry without making a struct name a general value or inventing startup execution.

The alternatives: infer structurally, alias the source, emit a startup copy, admit non-name expressions too, or keep module inference refused. Structural inference violates [0710]; aliasing is observable through writes; startup execution contradicts [1460]; general expressions need aggregate temporaries; and continued refusal has no remaining semantic or representation cause. All were declined.

Pinned by the checker, lowering and backend public-seam cases; positive/module-struct-inferred-from-name; negative/module-struct-mixed-image-cycle; negative/module-value-from-itself; negative/module-struct-inferred-non-name-not-enabled; negative/struct-type-name-is-not-storage; the recorded IR dump; and runtime/module-struct-initializers-copy-images on Linux x86-64.

D62 — zeroed reaches a fixed-array field element

Superseded by D241 and D118, as D42 is. zeroed may be assigned to every place whose type has a zero image, an element of an array field at the end of any path among them; what follows is history.

The tour said that assignment reaches its destination before its value [0410], that selection and indexing reach a scalar subobject [0520], that only writable places may be assigned [1900], and that zeroed takes the all-bits-zero image of its context [0540]. D42 applied that context to an immediate scalar field or fixed-array element, while D48 later made s.f[i] an ordinary scalar place without revisiting D42's structural destination list.

Chosen: zeroed may be the complete right-hand side of assignment to an Element_Index whose target is a fixed-array Member_Selection from a directly named mutable local or module binding. The element type must resolve to an enabled scalar and supplies false for bool or typed integer zero. This is D42's scalar image at D48's place: it does not make the selected array field a whole value or make zeroed a general expression.

The ordinary place check remains first. It resolves the containing struct and field, checks the index type and compiler-known bound, and retains root mutability and every invalid-place refusal before the value is considered. A computed index is evaluated exactly once and keeps D48's runtime bounds trap. A nested occurrence such as s.f[i] = zeroed + 1 remains refused with the existing L0304, and a refused destination produces no additional flow report.

Successful completion has D48's ordinary definite-assignment effect: a compiler-known index records only (binding, field, position), a computed index records no sparse fact, and neither assigns a sibling position or the array field as a whole. Lowering reuses D42's typed Truth or Number and D48's field-qualified Store_Element; the verifier and backend therefore gain no new operation, shape, ordering rule, address calculation or target invariant. A module root is runtime storage reached from a function body, not a module initial image, so D60's static-image boundary is unchanged; D66 later adding a written image does not turn this runtime store into initialization.

Why this place: D48 already types and represents its element as an ordinary scalar place. Keeping zeroed refused there would make the literal depend on the number of selectors rather than on the destination semantics it uses.

The alternatives: admit every scalar place accepted by Check_Place, or wait for general aggregate values. The first would silently choose the rule for future struct-of-struct and element-field chains whose representation is not settled; the second leaves a currently representable scalar place asymmetric for no semantic reason. Both were declined. The structural destination list is extended by exactly this D48 shape and may become a type-based test when deeper places are designed.

Pinned by the checker and lowering public-seam cases; positive/struct-array-field-element-zeroed; negative/struct-array-field-element-zeroed-immutable; negative/struct-array-field-element-zeroed-nested; negative/struct-array-field-element-zeroed-keeps-facts-separate; the recorded IR dump; and runtime/struct-array-field-element-zeroed-computed-index-traps on Linux x86-64.

D63 — Ordinary-struct literal spellings are refused by name

Superseded by D64 and D72: the refused spellings were enabled. A labelled struct literal is enabled syntax, now governed by D241, and call-shaped construction is D72's; only the all-of form stays outside the grammar. What follows is history.

The tour said that an ordinary struct may be written as a parenthesized field image [0710] and showed call-shaped construction with named fields [0700]. The enabled expression grammar [1810] has neither form. Before this decision, (x: 1, y: 2) entered the parenthesized-expression parser and the first : produced an unnamed syntax cascade, while point(x: 1, y: 2) entered the ordinary-call parser and failed for the same reason.

Chosen: while ordinary-struct literals remain outside [1810], the parser recognizes their unambiguous opening shapes and refuses each complete or truncated construct once with L0010. A value-position ( followed by identifier : names [0710]'s struct literal. The contextual all-field form (of expression) names the same construct when of is followed by an unambiguous expression start: one that is not also a binary operator. Thus (of), (of + 1), (of - 1) and other ordinary uses of a binding named of remain parenthesized expressions, while (of zeroed), (of not ready) and (of ~mask) name [0720]'s contextual fill. An identifier call whose opening parenthesis is followed by identifier : names [0700]'s call-shaped construction. Ordinary (expression) and positional callee(arguments) keep their existing grammar and parse.

The refusal consumes balanced parentheses, including nested parentheses, or stops at end of input. It returns one error expression and does not create a dormant struct-literal node, field-name references or aggregate value. Any immediately following bracketed index is skipped as recovery rather than reported as a second refused construct. The automatic truncation suite holds every prefix to producing a finite, well-formed tree.

At D63 the normative grammar was deliberately unchanged. A negative fixture whose first report is the frontend's L0010 must remain underivable; adding a struct_literal production would claim the source is enabled while the parser still refuses it. The later literal slice must replace this lookahead with a real syntax node and grammar production, teach resolution that field labels are not ordinary name references, and migrate these fixtures to positive or later-stage evidence. D64 performs that migration and lowers local and assignment contexts field by field; D66--D71 add the target-neutral module static-image representation D60 deferred.

Why pin the refusal first: the named before-state separates migration from recovery. It lets the enabling slice prove exactly which L0010 refusals it removes without inheriting an accidental cascade as specification.

The alternatives: add the grammar and a dormant node now, let the checker refuse every use of that node, or leave the accidental syntax reports in place. The first two perform half of the enabling slice and require name resolution and whole-value policy before any value is admitted; the last has no stable construct owner or migration evidence. All were declined.

Pinned by the parser public-seam case; negative/struct-literal-not-enabled; the generated construct matrix and token dump; and the automatic parser truncation suite. D72 later migrates the construction fixture to the checker-owned contextual boundary.

D64 later supersedes this refusal for the nonempty labelled form by adding its grammar and contextual syntax node. D72 later supersedes the call-shaped construction refusal by attaching a nominal type to that same node. The all-of form alone retains D63's parser-owned refusal and recovery rule and is cited to [0720], its surviving construct, rather than [0710]'s enabled labelled form.

D64 — A labelled struct literal writes contextual local storage

Superseded by D72 and D241, and its write order by D1827. A labelled struct literal takes its type from every destination that gives one, its labels evaluated in written order and the of fill after them, as if before the destination changes; construction is D72's; what follows is history.

The tour said that an ordinary struct image names fields in parentheses [0710], that their written order determines evaluation [0410], and that a trailing of supplies fields not written individually [0720]. D63 first gave the unambiguous spelling one parser-owned refusal. D23 and D29 separately settled the initializer and immediate-write assignment contexts for arrays, while D57/D58 supplied the corresponding whole-struct storage contexts.

Chosen: struct_literal and field_value are enabled by [1810]'s grammar. A labelled literal is admitted only as (a) the initializer of an explicitly typed local binding whose written type resolves to an enabled named ordinary struct, or (b) the complete right-hand side of assignment to a directly named mutable module or local binding of such a type. The context supplies [0710]'s nominal body. Inferred bindings, discards, operands, arguments, returns and every general aggregate-value position remain L0304. Module initializers remain L0304 in this slice; D66 later admits their scalar-labelled static-image subset. The call-shaped construction T(field: value) remains a parser-owned L0010 refusal until D72 supplies its nominal type. The all-fill spelling (of zeroed) remains refused by name.

Labels may appear in any order. Each must name a field of the contextual body; an unknown label keeps L0308. A field may be named at most once: the second label reports L0309, related to the first. Without a trailing fill every field must be named; one L0310 at the literal lists the missing fields in declaration order. Named fields in this slice must be scalar, and each value is checked in that field's resolved scalar context. D65 later supplies the same contextual destination to scalar zeroed and to D49--D53's fixed-array field forms.

The only trailing fill admitted is of zeroed. It writes every unnamed scalar field as typed integer zero or false and clears every unnamed fixed-array field with D49's compact whole-field operation. General of expression is L0304: one expression node cannot simultaneously commit to heterogeneous field types, and choosing an implicit conversion or duplication rule is deferred. The all-fill form remains refused because D57/D58 already spell the complete zero image directly as zeroed.

Named expressions are evaluated and committed immediately in source order, regardless of declaration or layout order. The fill follows them and visits unnamed fields in declaration order. Thus a later field expression observes an earlier field write to the same destination, exactly as D29 exposes array literal writes; no hidden aggregate temporary or atomic commit exists. Reads inside all named expressions are checked against the definite-assignment state arriving at the statement. On successful completion the destination receives D54/D58's whole-aggregate assignment facts: every scalar field and every fixed-array field is complete. A typed local initialized by the literal has a value and is consequently untracked, as other initialized locals are.

The tree carries one Struct_Literal with an optional fill slot and a written run of Field_Value nodes. A field label belongs to its Field_Value; it is not a Name_Reference and resolution never binds it. The checker records the nominal body on the literal and the declaration-order field identity on every valid label. Lowering emits an ordinary scalar field store immediately after each named expression, then typed scalar-zero stores and field-qualified array clears for the fill. It introduces no aggregate value, new IR operation, verifier rule, backend address form, target layout or static image. A module initializer remains refused in this slice; D66 later supplies the target-neutral nonzero terminal image for the scalar-labelled subset. A body whose earlier field or extent refusal prevented layout silently refuses the contextual literal as well: the owning field or L0300 report is not followed by a layout query or a second diagnostic.

Why this boundary: the two contexts already own aggregate storage, nominal identity, definite assignment and field-shaped lowering. Enabling them proves the literal's evaluation rule without opening aggregate temporaries or a nonzero module image. Including of zeroed also reaches array-bearing structs without making a nested array literal a field value.

The alternatives: admit only the local initializer, admit arbitrary named array fields, admit a general heterogeneous of expression, make the literal a general aggregate value, or add a nonzero module image at the same time. The first leaves D29's exposed-write question open; the next two need nested-array and per-field commitment rules; the fourth needs aggregate temporaries; and the last needs the representation D60 explicitly deferred. All were declined.

Pinned by the parser, checker and lowering public-seam cases; positive/struct-literal-contexts; negative/struct-literal-field-named-twice; negative/struct-literal-field-not-given; negative/struct-literal-unknown-field; positive/struct-literal-of-expression; negative/struct-literal-field-type-mismatch; negative/struct-literal-reads-incoming-state; negative/struct-literal-without-layout; negative/immutable-struct-literal-assignment; negative/module-struct-literal-inferred-not-enabled; negative/struct-array-field-layout-overflow; negative/struct-literal-not-enabled; the generated catalogue, construct, token and IR records; and runtime/struct-literal-order-and-fill on Linux x86-64.

D65 — A label is its field's contextual destination

Superseded by D241, and its write order by D1827. Each label is its field's contextual destination, as every place is, and takes every value that field's type takes; what follows is history.

The tour said that a struct literal takes its type from context [0710], that each written label supplies one field value and a trailing of supplies the rest [0720], and that evaluation follows written order [0410]. D64 admitted the literal but limited written values to ordinary scalar expressions. D42 and D49--D53 had already settled the corresponding contextual scalar-zero and fixed-array-field assignment forms.

Chosen: in D64's explicitly typed local initializer and whole-assignment contexts, each label is the same contextual destination as selecting that field for assignment. A labelled scalar field additionally accepts zeroed, which takes D42's resolved scalar type and all-bits-zero image. A labelled fixed-array field accepts exactly D49--D53's complete contextual forms: an array literal, full or mixed-prefix repetition, zeroed, a direct array storage name, or a selected fixed-array field of the same D17 shape. The array value node records the labelled field's element type and length; the label continues to record the declaration-order field identity.

Labels are still evaluated and committed in source order. An array literal writes its elements immediately in their own source order; a repetition writes its prefix then evaluates its repeated expression once and performs one compact fill; a copy is one compact field-qualified copy; and zeroed is one compact field-qualified clear. A later label therefore observes every earlier labelled write. D64's trailing of zeroed runs only after all of them and retains its declaration-order fill. Reads in every field expression are checked against the state arriving at the statement, while successful completion retains D64's whole-aggregate definite-assignment facts.

The checker delegates each array form to its existing contextual shape, count, element and source-read rule with Static_Image => False. Lowering uses one field-qualified writer over the existing Store_Element, Fill_Array, Copy_Array and Clear_Array operations; scalar zeroed uses the existing typed Truth or Number followed by a scalar field store. No grammar, syntax node, IR operation, verifier rule, backend address form, target fact, layout or static image changes.

A nested array literal remains refused as a scalar element, and no other general array value is introduced. At this increment a general trailing of expression was refused: the one expression node has one committed type, while omitted fields may be heterogeneous; converting it per field is not enabled, and evaluating it again per field would violate the once-only rule. Inferred literals still have no nominal body and wait for [0700]'s construction decision, which D72 later supplies. Module literals remain outside this slice; D66 later supplies D60's nonzero aggregate image carrier for scalar labels, D67 adds its finite-or-zero array-field form, D68 its repeated and hybrid forms, D69 a direct module-array image source, and D71 a selected module-array-field source. The all-of spelling remains D63's redundant parser refusal, and general aggregate values remain outside this slice. D214 supersedes the homogeneous-fill refusal: equal complete descriptors need neither multiple node types nor conversion, so one evaluated value can be copied into every omitted field. Heterogeneous fills remain refused.

Why the field destination: the selected field already owns exactly the shape, storage, diagnostics, ordering and target-derived operation the written value needs. Reusing those decisions closes D64's artificial label boundary without opening a second array representation or aggregate temporary.

The alternatives: admit scalar zeroed alone, restrict a general of expression to accidentally homogeneous fields, convert or re-evaluate that expression per field, infer a nominal body from labels, add nonzero module images, or admit the all-of synonym. The first is too small to justify a separate semantic principle; the next three contradict single-node typing, once-only evaluation or nominal identity; the fifth needs D60's deferred representation; and the last duplicates whole zeroed. All were declined.

Pinned by the checker and lowering public-seam cases; positive/struct-literal-array-field-forms; negative/struct-literal-array-field-shape-mismatch; negative/struct-literal-array-field-element-mismatch; negative/struct-literal-array-field-repetition-mismatch; negative/struct-literal-array-field-source-unassigned; negative/struct-literal-nested-array-value-not-enabled; negative/immutable-struct-literal-assignment; positive/struct-literal-of-expression; the generated token and IR records; and runtime/struct-literal-array-field-order on Linux x86-64.

D66 — A typed module struct literal is a static field image

Partly superseded. Its static field image stands: a typed module struct literal is one target-neutral fold per field, each [1940]-known and held by its field's type, laid out by the backend, and an all-zero literal is still a written .data image. Its sentences "Each explicitly named field in this first static carrier must be scalar" and "A fixed-array field named explicitly is L0304 in this slice" are superseded by D67, D68 and D24's chain, and the forms that "remain refused in this decision" by D72 and D241; what follows is history.

The tour said that a module binding may carry a value [0040], that an ordinary struct image names its fields [0710], that the remaining fields may be supplied by of [0720], and that nothing runs before the entry point [1460]. D24 established target-neutral folded static images for arrays, D60/D61 established declaration-identity module struct image chains, and D64/D65 established the contextual labelled literal and its field rules at runtime.

Chosen: [mut] name: T = (field: value, ..., of zeroed) is admitted at module scope when T resolves to an enabled named ordinary struct with a layout. The written type supplies the literal's nominal body. D64's freely ordered, unique labels, L0308 unknown-field owner, L0309 duplicate owner and L0310 missing-field owner apply unchanged. Each explicitly named field in this first static carrier must be scalar. D67 later supersedes that boundary for a finite or zeroed fixed-array label, and D68 adds full and mixed repetition. A trailing of zeroed supplies zero or false to every unnamed scalar field and the absent zero image to every unnamed fixed-array field. A fixed-array field named explicitly is L0304 in this slice; D67 later admits its finite literal and zeroed forms through a compact per-field image, D68 admits repetition, and image copy remains a later decision until D69 admits the direct module-array-name form. Selected-field image copy remains outside that rule.

Each scalar field expression must be known without execution under [1940]: a literal, contextual scalar zeroed, an enabled operator over known operands, or a module scalar name whose value is known. A call reports L0305. A selected field, index or nested array image reports its existing L0304 static-image refusal, including beneath an otherwise foldable operator. Integer folding keeps D24's overflow owners: a fold beyond the compiler's widest magnitude or beyond the field's selected-target type reports L0300. An inferred module binding still has no nominal body and keeps L0304; a general of expression, the all-of spelling, call-shaped construction and general aggregate value remain refused in this decision; D72 later supplies contextual nominal construction.

The target-neutral aggregate image is one Folded entry per field in [0750]'s declaration order. A scalar entry is its folded value. An unnamed scalar entry is zero, and a fixed-array entry is the zero placeholder for its absent image. The representation contains no target byte, offset or padding. The verifier requires the image length to equal the field count, requires an array-field placeholder to be zero, and checks each scalar fold against the selected target before any backend accessor can consume it, including in builds without contract checks.

The backend lays out the field-shape run with the same target placement used by D45. It writes scalar entries with that target's width, emits zero for every array field, gap and tail-padding byte, and gives the complete padded object a .data image. A labelled literal whose folds are all zero remains a written image, as D24 decided for arrays; only an omitted initializer or whole zeroed retains D10/D59's absent image and .bss storage. Nothing is copied or cleared at startup. D60/D61 chains that terminate at the literal copy its field-image run into each declaration's distinct datum, preserving forward references, aliases and cycle ownership. The literal is a terminal image, so a cycle can arise only in the declaration-name chain that precedes a terminal; D60/D61's single L0305 owner remains unchanged.

Module state remains complete under D10 and no definite-assignment fact is added. The literal has no runtime evaluation order because its expressions are folded rather than executed. D64/D65's local initializer and whole-assignment rules remain immediate runtime writes and do not acquire this static-image semantics.

Why fields rather than bytes: folds preserve the same source image across 32- and 64-bit targets while target placement remains the only authority on widths, offsets and padding. A target-byte blob would make the neutral IR target-specific, and a startup routine would contradict [1460]. Restricting the first carrier to scalar labels proves the representation without expanding D24/D34/D38's finite, repeated and hybrid array forms inside every aggregate field.

The alternatives: emit a target-byte blob, synthesize a startup clear or copy, store fields at runtime, keep module literals refused, or admit every D65 array-field form at once. The first three violate target neutrality or static initialization; the fourth leaves D60's deliberate carrier seam unused; and the last needs a compact nested image representation before its verifier and backend invariants can be stated. All were declined here.

Pinned by the IR, verifier, checker, lowering and backend public-seam cases; positive/module-struct-literal-initializer; negative/module-struct-literal-inferred-not-enabled; negative/module-struct-literal-selection-not-enabled; negative/module-struct-literal-value-not-known; negative/module-struct-literal-field-out-of-range; negative/module-struct-literal-field-fold-overflow; the generated token and IR records; and runtime/module-struct-literal-image-is-loaded on Linux x86-64.

D67 — A labelled fixed-array module field has a finite or zero image

Partly superseded. Its finite and zero field images and their verified descriptor carrier stand. Its fifth paragraph, which keeps repetition, a direct name and a selected field "L0304 as labelled module images", is superseded by D68 and, for a name or a selected field, D24's chain, and the forms it leaves "outside this slice" by D241; what follows is history.

The tour said that an ordinary struct image names its fields [0710], that an array literal names its elements [0410], and that nothing runs before the entry point [1460]. D24 established finite target-neutral module array images, D60/D61 established declaration-identity struct image chains, and D66 left one zero placeholder for every fixed-array field until a compact field image could own its elements.

Chosen: a fixed-array label in D66's explicitly typed module struct literal accepts a nonempty array literal of exactly the field's D17 length and element type, or contextual zeroed. Each literal element must be known without execution under [1940] and follows D24's static exclusions and folding owners: a call reports L0305, a selected field, index or nested image reports L0304, and a fold beyond the compiler's widest magnitude or the selected target type reports L0300. A length or element disagreement keeps the existing L0301 owner. zeroed denotes the absent all-zero field image, including for D17's zero-length shape; a written finite literal remains nonempty, so it cannot initialize that shape.

D66's flat aggregate image remains one Folded placeholder per field in declaration order, and every array placeholder remains zero. A parallel per-field descriptor says Absent or Finite; a finite descriptor names an offset and count in one concatenated run of source folds stored after the flat field run. Repeated and Hybrid descriptor forms are reserved so the next slice can extend the carrier without replacing it; the verifier refuses either form in D67, and D68 later supplies their canonical meanings. The carrier contains no target width, offset, padding byte or machine identity.

The IR setter records the flat folds, descriptors and finite elements as one item image operation. The verifier first proves the flat and descriptor counts, canonical finite offsets, scalar-field absence, zero array placeholders and the total element extent; only then does it read each finite element and check that fold against the field's selected-target element type. These are explicit checks in builds without contract assertions. A malformed finite length, out-of-target fold, descriptor on a scalar field or reserved form is a verifier fault before a backend accessor can consume it.

The backend replays D45's target placement. An absent array field emits zero for its complete target extent; a finite field emits one directive of the target element width for each fold, while every inter-field gap and tail byte remains zero. A finite literal whose elements are all zero is still a written .data image, as D24 and D66 require; zeroed and an unnamed field supplied by of zeroed remain absent within that written aggregate image. D60/D61 chains copy every descriptor and finite fold into each distinct destination datum, so forward references, aliases, inferred links and independence after mutation remain unchanged.

Full and mixed repetition, a direct array storage name and a selected fixed-array field remain L0304 as labelled module images. Repetition needs the reserved compact suffix forms and is admitted by D68; copy needs image resolution through another datum and retains the existing refusal of a selected field as a module array initializer. Inferred struct literals, a general of expression, the all-of spelling, construction and general aggregate values remain outside this slice; D72 later supplies construction only. No grammar, syntax node, diagnostic code, runtime instruction, target fact or layout rule changes.

Why a descriptor beside the flat run: D66's scalar image and its verifier contract remain stable, while a field can own a finite source image without embedding target bytes or flattening element positions into aggregate fields. Keeping every segment in the item's existing image run preserves the IR's single-owner partition invariant and makes declaration-chain copying atomic at the representation seam.

The alternatives: admit every D65 form at once, admit only the finite form, add name-chain copy before a general carrier, flatten target bytes, or emit a startup routine. The first and third add recursive image and cycle questions; the second leaves a needless asymmetry with of zeroed; and the last two violate target neutrality or [1460]. The complete compact carrier with only finite and absent producers was chosen. D68 later supplies repetition, and D69 follows a direct module-array image. D70 then permits an ordinary module array image to take a selected field, and D71 permits a labelled field to take another selected field's image.

Pinned by the IR, verifier, checker, lowering and backend public-seam cases; positive/module-struct-literal-array-image; negative/module-struct-literal-array-image-length-mismatch; negative/module-struct-literal-array-image-element-mismatch; negative/module-struct-literal-array-image-value-not-known; negative/module-struct-literal-array-image-storage-read; negative/module-struct-literal-array-image-out-of-range; negative/module-struct-literal-array-image-fold-overflow; negative/module-struct-literal-empty-array-field-image; the generated token and IR records; and runtime/module-struct-literal-array-image-is-loaded on Linux x86-64.

D68 — A repeated module struct field image stays compact

Partly superseded. Its compact repeated and hybrid field images stand: a full repetition stays one pattern, a zero one is absent, and a hybrid keeps its prefix and one suffix pattern. Its fifth paragraph, which keeps a direct array name or selected field "L0304 as a labelled module image in this slice" and the forms that "remain refused here", is superseded by D24's chain and D241; what follows is history.

The tour said that a full repetition writes one value into every array position [0560], that a mixed repetition writes its prefix before repeating one final value [0410], and that nothing runs before the entry point [1460]. D34 and D38 established compact repeated and hybrid images for module arrays; D67 reserved the same two descriptor forms beside each fixed-array field.

Chosen: a fixed-array label in D66's explicitly typed module struct literal also accepts D34's full repetition and D38's mixed-prefix repetition. The written or inferred count and the field's D17 length must agree; a mixed prefix must leave a nonempty suffix. Every prefix and repeated expression has the field's scalar element type, must be known without execution under [1940], and keeps D24/D34/D38's static-subtree, widest-fold and selected-target range owners. Thus a count or element disagreement reports L0301, a zero contextual length or excluded storage read reports L0304, an unknown call reports L0305, and an overflowing or out-of-target fold reports L0300.

A Repeated descriptor has count zero, a nonzero folded pattern and no element segment. A full zero repetition is canonicalized to D34's Absent image rather than carrying a redundant zero pattern. A Hybrid descriptor has a prefix count k with 1 <= k < length, stores exactly those k source-order folds in D67's concatenated element run, and carries one folded suffix pattern. A hybrid remains a written image even when its prefix and suffix are all zero, as D38 decided. The flat aggregate field placeholder remains zero in every case; the representation still carries no target width, field offset or padding.

The IR setter records all flat folds, descriptors and finite or hybrid-prefix elements in one item-owned run. The verifier first proves the aggregate-image and descriptor partitions, field count, canonical offsets, field kinds and form-specific count rules. Only then may it read a prefix or pattern and check each fold against the selected target. A repeated zero pattern and a hybrid whose prefix consumes the field are noncanonical verifier faults. These checks are ordinary release-build code rather than contracts.

The backend replays D45's placement, emits a finite or hybrid prefix with the field element's target directive, and emits a compact .rept suffix for a repeated or hybrid field. Absent zero repetitions, inter-field gaps and tail padding remain .zero. The same target-neutral descriptor therefore selects .long for usize on a 32-bit target and .quad on a 64-bit target without changing the IR. D60/D61 chains already copy each descriptor, its suffix value and its compact prefix into distinct destination datums, so no new image recursion or cycle rule is introduced.

A direct module array storage name or selected array field remains L0304 as a labelled module image in this slice. D69 later follows the former through another datum's finite, repeated, hybrid or absent image; D70 supplies the ordinary module-array initializer rule for the latter, and D71 then admits it as a labelled module image too. Inferred literals, heterogeneous of expression, all-of, construction and general aggregate values remain refused here; D72 later supplies construction. No grammar, syntax node, diagnostic code, runtime instruction, target fact or layout rule changes.

Why finish the reserved carrier first: repetition adds no image dependency: all its folds are children of the terminal literal. Name-copy labels would add a second datum to image resolution, while selected-field copy would cross an existing module-array boundary. Completing the local descriptor meanings keeps this slice acyclic and gives the verifier and backend one invariant at a time.

The alternatives: admit repetition together with direct and selected image copy, admit only full repetition, flatten the expanded field into target bytes, or synthesize startup stores. The first combines a compact producer with image recursion, the second leaves D38's already represented hybrid form unused, and the last two violate target neutrality or [1460]. All were declined.

Pinned by the IR, verifier, checker, lowering and backend public-seam cases; positive/module-struct-literal-array-image; negative/module-struct-literal-array-image-length-mismatch; negative/module-struct-literal-array-image-element-mismatch; negative/module-struct-literal-array-image-value-not-known; negative/module-struct-literal-array-image-storage-read; negative/module-struct-literal-array-image-out-of-range; negative/module-struct-literal-array-image-fold-overflow; negative/module-struct-literal-array-repetition-zero-length; the generated token and IR records; and runtime/module-struct-literal-array-image-is-loaded on Linux x86-64.

D69 — A module array image may fill a labelled fixed-array field

Superseded by D24's chain and D66's image. A labelled array field of a module struct takes a module array's static image as a module array binding does; what follows is history.

The tour said that a module initializer is an image present before the entry point [1460], that a fixed array's value is its element sequence [0520], and that struct fields have declaration-order layout while labelled values may name them in another order [0710], [0750]. D21 already follows a direct module array name to its terminal static image. D67/D68 already carry every canonical array image form beside a struct field.

Chosen: a fixed-array label in D66's explicitly typed module struct literal also accepts a direct name bound to a module fixed-array datum with the exact D17 length and element type. The field receives a copy of that datum's resolved static image: D24's finite folds, D34's nonzero repeated pattern, D38's hybrid prefix and suffix, or the absent zero image of an omitted, explicit zeroed or zero-pattern source. The source may be declared later and may itself be a D21 direct-name chain. Each struct declaration still owns distinct storage; a later write to the source array, the struct field or a D60/D61 struct-image copy changes none of the others.

A length, element-type or non-array storage mismatch reports L0301 at the source name and relates it to the field label. An unresolved or already refused source keeps its existing owner without a second report; a source array-image cycle keeps D21's single L0305. A type declaration, selected field or other value remains L0304 in this slice. D70 moves that boundary for ordinary module arrays, and D71 then lets a struct label reuse that contextual source.

Image resolution visits the named array before gathering the struct image, so a forward finite, repeated or hybrid source cannot be mistaken for absent. The lowering copies the source's canonical form into D67's existing descriptor, re-bases a finite or hybrid prefix at the field's running element offset, and calls the existing aggregate-image setter once. An all-zero finite image and an all-zero hybrid remain written; an omitted or zero-repetition source remains absent. The existing verifier rechecks descriptor form, count, offset and selected-target fit before reading it, and the backend consumes the same descriptor at D45's target-derived field offset. No IR, verifier, backend, target, grammar, syntax or diagnostic representation changes.

Why direct storage only: it completes D21 parity without making an array field a general value. Selected-field copy would read another aggregate's descriptor and contradict the ordinary module-array initializer boundary; construction or inferred literals need nominal-body and grammar decisions, which D72 later supplies together. Restricting the source to finite images would save no representation and would arbitrarily discard D34/D38 forms the carrier already represents. All were declined.

Pinned by the checker and lowering public-seam cases; positive/module-struct-literal-array-image-copy; negative/module-struct-literal-array-image-copy-shape-mismatch; negative/module-struct-literal-array-image-copy-source-cycle; negative/module-struct-literal-array-image-copy-source-refused; negative/array-type-name-is-not-storage; the generated token and IR records; and runtime/module-struct-literal-array-image-copy-is-independent on Linux x86-64.

D70 — A module array takes a selected field's static image

Superseded by D241 and D24's chain. A module array takes a selected field's static image as it takes a name's; what follows is history.

The tour said that a binding may name or infer its type [0040], [0050], that a fixed array's value is its element sequence [0520], and that nothing runs before the entry point [1460]. D21 follows module array images through direct storage names, D51 copies a selected fixed-array field into a fresh local array, and D67/D68 carry every canonical array image beside a struct field. None decided whether the same field could supply a module array image.

Chosen: [mut] name: [N]T = s.f and [mut] name := s.f are admitted at module scope when s directly names a module binding of an ordinary struct with a layout and f is one of its fixed-array fields. The explicit form requires [N]T to have the field's exact D17 length and element type; a disagreement reports L0301 at the selection and relates it to the binding. The inferred form takes that identity exactly. This is D51's contextual source at module scope, not a general value: the root need not be mutable, and the selection remains refused as an argument, return, discard, operand or bare read.

The destination receives a copy of the field's resolved static image in distinct storage. A D67 finite field becomes D24's finite array run, a D68 nonzero repetition stays compact, a hybrid keeps its finite prefix and suffix pattern, and an absent field leaves the destination's image absent. Thus an all-zero finite or zero-suffix hybrid remains written while an omitted, zeroed or zero-repetition field remains loader-zeroed. A later write to the struct field or destination array changes only that storage.

Image validation and lowering resolve the containing struct before reading its field descriptor. The struct may be declared later, may itself follow a D60/D61 aggregate image chain, and may have received the field through D69. D69's struct-to-array edge and this array-to-struct edge may form a real image cycle: a: [N]T = s.f; s: S = (f: a). The existing per-declaration Visiting state reports [1940]'s L0305 once at whichever declaration is first found revisited and marks the rest invalid silently. An already refused containing image likewise keeps its existing owner without a second report.

Lowering maps D67's existing Absent, Finite, Repeated and Hybrid descriptor forms to the existing array-image setters. It reads a descriptor only after the containing aggregate has a written image, reads prefix elements only for the finite and hybrid forms, and lets every downstream D21 array link copy the resulting ordinary array item. The existing verifier rechecks the array image on the selected target, and the backend emits it with the array element's target width. No IR, verifier, backend, target, grammar, syntax or diagnostic representation changes.

Why typed and inferred together: D21 and D51 already give those spellings one rule, and inference can carry the selected field's complete D17 identity without inventing a nominal or general value. Admitting only the typed form would add no safety or representation boundary. Delaying the whole rule would leave D69's reverse dependency artificially one-way. Admitting other.row as a label inside a struct literal is a second producer and validator edge; D71 adds that edge with separate cycle and descriptor evidence. All other widenings were declined.

Pinned by the checker and lowering public-seam cases; positive/module-array-from-struct-field; negative/module-array-from-struct-field-shape-mismatch; negative/module-array-from-struct-field-cycle-array-first; negative/module-array-from-struct-field-cycle-struct-first; negative/module-array-from-struct-field-source-refused; the generated token and IR records; and runtime/module-array-from-struct-field-is-independent on Linux x86-64.

D71 — A labelled fixed-array field takes a selected field's static image

Superseded by D66, D67 and D24's chain. A labelled array field of a module struct takes another struct's selected field image as it takes a name's; what follows is history.

The tour said that a module initializer is an image present before the entry point [1460], that a fixed array's value is its element sequence [0520], and that a struct literal supplies labelled field images [0710]. D65 already accepts a selected fixed-array field as the contextual source of a runtime label. D69 admits a direct module array as the corresponding static source, and D70 lets an ordinary module array take a selected field's static image.

Chosen: a fixed-array label in D66's explicitly typed module struct literal also accepts s.f when s directly names a module binding of an ordinary struct with a layout and f is one of its fixed-array fields with the label's exact D17 length and element type. A disagreement reports L0301 at the selection and relates it to the label. An unresolved or already refused root keeps its existing owner without a second report. A scalar selection, an element or nested selection, and a selection rooted at a type declaration remain refused. This remains a contextual image source rather than a general array or aggregate value.

The destination field receives a copy of the selected field's resolved image: D67's finite run, D68's repeated or hybrid form, or the absent zero image. The root may be declared later, may itself follow a D60/D61 aggregate image chain, and may have received the selected field through D69, D70 or this rule. Each declaration owns distinct storage; a later write to the source, destination or another image-chain member changes only that storage. All-zero finite and hybrid images remain written, while an omitted, zeroed or zero-repetition field remains absent.

Image validation follows the containing struct before accepting the label. The existing per-declaration Visiting state therefore also owns a pure struct-to-struct selected-field cycle and a cycle mixing D21, D69, D70 and D71: [1940]'s L0305 is reported once at the declaration first found revisited, and the remaining path becomes invalid silently. A refused source likewise does not acquire a second contextual report.

Lowering resolves the source aggregate before reading its field descriptor, copies only the finite or hybrid prefix elements carried by that descriptor, and re-bases their offset at the destination aggregate's compact element run. The same helper copies an aggregate image through D60/D61, so both paths retain one canonical offset rule. The aggregate-image setter is still called once; the existing verifier rechecks descriptor form, count, offset and target fit, and the backend consumes it at D45's placed field offset. No IR, verifier, backend, target, grammar, syntax or diagnostic representation changes.

Why the direct selected field: D65 already gives the runtime spelling this shape and D70 supplies the missing module-array image boundary. Reusing the same direct-root, whole-field rule closes the remaining edge between array and aggregate datums without making selection a general value.

The alternatives: also admit a selected scalar field, an indexed element, a nested selection, an inferred struct literal or a general aggregate value; or delay the rule. The first three cross D24's static-expression and the depth-one storage boundaries, the next two require nominal construction or aggregate temporaries (D72 later supplies only the former), and delay would leave D69/D70's contextual image graph artificially incomplete. All were declined.

Pinned by the checker and lowering public-seam cases; positive/module-struct-literal-selected-field-image; negative/module-struct-literal-selected-field-boundary; negative/module-struct-literal-selected-field-shape-mismatch; negative/module-struct-literal-selected-field-cycle-first; negative/module-struct-literal-selected-field-cycle-second; negative/module-struct-literal-selected-field-mixed-cycle; negative/module-struct-literal-selected-field-source-refused; the generated token and IR records; and runtime/module-struct-literal-selected-field-image-is-independent on Linux x86-64.

D72 — Construction names the ordinary struct a labelled literal builds

Write order superseded by D1827. The construction syntax stands; an assigned construction's field expressions read the struct as it was before the assignment.

The tour said that construction applies a type to labelled fields [0700], that two ordinary structs have one type only when one declaration wrote both [0710], and that field expressions run in source order [0410]. D64--D71 had already implemented the same labelled run wherever a destination supplied its nominal body, but a bare inferred literal deliberately had no such source.

Chosen: T(field: value, ...[, of zeroed]) is a labelled Struct_Literal whose optional nominal slot names T. It is admitted in exactly the storage contexts already owned by D64--D71: as the initializer of a typed or inferred local or module binding, and as the complete right-hand side of assignment to a directly named mutable local or module ordinary struct. A typed binding or assignment place must have T's [0710] body; disagreement reports L0301 at T, related to the destination. An inferred binding records T's body before settling the declaration. Through a type alias, the body remains the aliased declaration rather than the spelling used here.

T must denote an enabled ordinary struct. A scalar type or a name denoting a function or binding is a permanent L0334 error; an unresolved or already refused type keeps its type-position owner. A body whose field or target-extent refusal prevented layout silently refuses the construction after that owning report. Positional T(value) remains the existing call/conversion-shaped refusal, and T(of zeroed) remains a parser-owned L0010 refusal. A bare inferred literal still has no nominal identity and remains L0304.

Every field rule is the one the literal already has. Labels remain freely ordered but unique; missing and unknown labels keep L0310 and L0308; scalar, array, repetition, zeroed, direct-name and selected-field values keep D64--D71's contextual checks. Runtime labels are evaluated and committed immediately in source order, followed by declaration-order fill, and a successful whole assignment records the existing complete aggregate facts. Module construction is a static image: known-value, folding, compact array-field descriptors, image chains, cycle ownership and target emission are unchanged. Construction is terminal as a literal and adds no image-graph edge.

The syntax tree uses no new node kind. Struct_Literal now has two fixed slots: [0720]'s optional fill and D72's optional nominal type, followed by the existing Field_Value run. Bare literals put No_Node in the nominal slot. Resolution treats the nominal as a type position; the checker records its body on the literal or inferred declaration. Lowering continues to write directly into the binding, assignment place or module image. There is no aggregate temporary, IR operation, verifier rule, backend address form, target fact or layout change.

Construction in an argument, return, discard, operand, nested expression or any other general expression position remained L0304 at this increment. D100--D105 later admit construction in the aggregate argument contexts, and D106--D116 close aggregate results. Construction does not enable [0700]'s scalar conversion form, anonymous struct types, struct-of-struct fields, heterogeneous of expression or the all-field synonym.

Why this boundary: the nominal prefix supplies exactly the identity that prevented D64's bare literal from supporting inference. All three destination contexts already have storage, definite-assignment and static-image rules, so admitting them together removes a syntactic asymmetry without pretending an ordinary struct is a first-class expression value.

The alternatives: parse a dormant construction refused everywhere, admit only inferred or local construction, add general aggregate temporaries, or include positional conversion and the aggregate ABI. The first repeats D63's declined half-migration; the next two arbitrarily split identical contextual destinations; and the last two require representation and calling-convention work this slice deliberately does not have. All were declined.

Pinned by the parser, checker and lowering public-seam cases; positive/struct-construction-contexts; negative/construction-not-enabled; negative/struct-construction-nominal-mismatch; negative/struct-construction-callee-not-struct; negative/struct-construction-type-not-declared; negative/immutable-struct-construction-assignment; negative/struct-construction-all-of-not-enabled; negative/struct-literal-without-layout; the generated construct, token and IR records; and runtime/struct-construction-order on Linux x86-64.

D1102 — A construction's values are all labelled

The tour said that a struct or a variant case is built by applying its name to its fields [0700], and every example labels each field. The grammar lets positional arguments lead a labelled list, labeled_arguments, because a labelled application is a call or a construction and the parser cannot know which. Nothing said what point(3, y: 4) means when point is a struct; the checker looked up a field with no name and ended in an internal compiler defect.

Chosen: a construction has no positions. A value without a label in a struct construction or a variant case construction is refused with L0334 at the value, beside the construction, and the rest of the construction is not checked. [0720]'s trailing of fill is not such a value.

The alternative was to let leading positional values fill the first fields in declaration order. It was declined: positions would tie every construction to the order of the declaration's fields, which a labelled construction does not depend on.

Pinned by negative/construction-value-without-a-label.

D73 — A contextual variant part is refused once as a whole

Superseded by D74: the refused syntax was enabled. A variant part is declared syntax with D74's layout. What follows is history.

Amended by D1657. The inline (...) struct body it names is refused; a struct type is declared with struct ... end, and the rule below holds for that body.

The tour said that an ordinary struct may contain one contextual name: variant part [0680], whose cases may be bare atoms or carry labelled payload fields [0690]. The enabled grammar [1795] still describes only an ordinary field ::= identifier ":" type, so the old parser read variant as a user type and then reported unrelated errors on the first case and the two closers.

Chosen: while reading an ordinary struct body, the parser recognizes the shape of [0680]'s contextual part, reports one L0010 at the part name, and skips through that part's own end name closer. Parsing then resumes in the containing struct, so a common field following the refused part and the outer end struct-name remain independently readable. Payload and bare cases, and an empty part written directly as end name, have the same single owner. A refused part counts as the field-like content that caused the declaration to be refused, so the recovery does not add the ordinary empty-struct report. If the part's closer is absent or misspelled, recovery falls back to the containing struct's closer rather than discarding later declarations.

variant remains an ordinary identifier rather than a reserved word. In this slice the lookahead therefore requires the following tokens to have a case or the part's matching closer shape; kind: variant followed by another ordinary field continues to mean that kind has the user-declared type named variant. D73 left the grammar unchanged and its parser-owned fixture underivable, as every parser-owned refusal requires.

No variant node, name scope, case identity, layout, value, image, IR operation, verifier rule or backend representation was introduced by D73. Later slices use executable evidence to decide duplicate cases, payload type checking, empty and single-case legality, tag width and position, payload-union alignment and padding, the zero image, construction and matching, and whether any spare bit may fold the tag. Until D74, the whole part was absent from the syntax tree and the containing type was rejected by its one owning report.

Why refuse before representing: accepting a declaration without a layout would create a legal but unusable type whose later consumers either fail silently or invent a diagnostic at every use. Defining layout immediately would instead decide tag and payload representation from measurement alone, before any value can prove it. Naming the complete omitted construct gives the parser stable recovery evidence without committing either mistake.

The alternatives: accept declaration-only variants, implement declaration and layout together, reserve variant, or postpone all variant evidence. The first has no owning report for the missing layout; the second crosses every representation layer in one unmeasured step; the third breaks the tour's contextual spelling and user types of that name; and the last leaves the later variant work with only accidental cascades. All were declined.

Pinned by the parser public-seam recovery cases and the corpus truncation sweep. D74 migrates the parser refusal into enabled declaration syntax and replaces its former negative fixture with layout and boundary evidence.

D74 — A variant declaration has one unfolded measurable layout

Amended by D1657. The inline (...) struct body it names is refused; a struct type is declared with struct ... end, and the layout below is that body's.

The tour said that an ordinary struct may contain a contextual variant part [0680] and that each case is an atom and may carry a labelled payload [0690]. It did not say where the tag sits, how wide it is, how payloads share storage, how their padding contributes to the containing struct, or whether a declaration may exist before values of it do.

Chosen: [1795]'s enabled grammar includes a variant_part as one member of an ordinary struct body. The parser keeps one Variant_Part node containing its source-order Variant_Case run; each case keeps a source-order run of the same scalar or fixed-array Field nodes an ordinary struct already uses. A part needs at least one case. A single case and an all-bare part are legal. The contextual word variant remains an ordinary identifier everywhere the case/closer lookahead does not prove this production, and the name after the part's end must repeat the part name.

Case names are declarations in the module scope. They may be used before the type that contains them, and resolution binds a use to their declaration identity. Two cases with the same name, cases in different variant parts with the same name, and a case colliding with an ordinary module declaration are therefore [1850]'s L0200, with the declaration encountered by the module's set-building pass as the deterministic owner. The part name and payload field names remain labels rather than declarations.

Within one case payload, a field label names one position and may appear only once. A repeated label is L0309, related to an earlier occurrence. Separate cases have separate payload label namespaces.

The representation is target-neutral and unfolded. A part is one field of its containing struct. Its tag is first and uses the smallest enabled unsigned scalar that can enumerate every case: u8 through 256 cases, u16 through 65,536, and u32 beyond. Cases are numbered in source order; D74 does not yet expose those numbers as values. Each payload is laid out independently by D44/D45's ordinary source-order, natural-alignment rule. The payload begins at the tag extent rounded up to the greatest payload alignment; its reserved extent is the greatest padded payload size. The part's alignment is the greater of tag and payload alignment, and its padded size is the tag, the alignment gap, the maximum payload extent and ordinary tail padding. An all-bare part is therefore only its tag. The containing struct places that complete part exactly as it places one scalar or fixed-array field.

The checking table carries this without offsets in the source-neutral shape: a Variant_Field names the tag, case count and a contiguous run of per-case payload slices; those slices contain only scalar or fixed-array shapes. Offsets, widths and padding are derived from the selected target facts. The top-level field-shape run and field-offset run have separate starts, because payload shapes share the shape vector but have no top-level offsets. An aggregate payload field remains the existing L0304 struct-of-struct boundary; if any payload leaf is refused, the containing declaration has no layout and later consumers add no cascade.

sizeof and alignof are executable evidence for this rule. Lowering copies the same neutral tag, case runs and payload shapes into the IR's aggregate measurement run. The verifier checks the tag, nonempty and in-range case runs, and scalar/fixed-array-only payloads before any payload accessor. The backend replays the layout rule against its target facts. D74 does not put that carrier in a datum or slot; D75 reuses it there without changing the layout.

A binding, parameter, named return, initializer, assignment, zeroed, copy, literal or construction that would create storage or a value of a variant-bearing struct was one L0304 at this boundary. D102/D103 later admit its aggregate argument contexts and D106--D116 its results; other sites used D74's Variant_Value refusal at [0680]. A case name used as a general value or construction callee has the same owner. D75 supplies storage and the zero image, D76 then admits contextual case construction without creating a general variant value, and D77 reads its tag through an exhaustive match.

Why unfolded, tag-first layout now: it gives both described targets one deterministic hexdump-compatible answer, preserves [0540]'s later opportunity for an all-zero image, and makes measurement evidence possible without pretending a variant value already exists. Spare-bit folding, tag-last placement, C-union layout and a target-sized tag were declined: each either hides the source-order identity, changes the zero image, or lets host/ABI policy choose a language layout. A future explicit layout policy may add a different representation without changing this default.

The alternatives: keep the D73 refusal, accept declarations with no layout, enable storage and construction together, or choose a target byte blob. The first leaves the title feature without evidence; the second creates a legal type every consumer must refuse afresh; the third crosses layout, images and values in one slice; and the last violates the target-neutral IR boundary. All were declined.

Pinned by the parser, resolution, lowering, verifier and target-layout public seams; positive/variant-part-measured; negative/variant-part-empty; negative/variant-case-duplicate; positive/variant-inside-an-element; negative/variant-case-value-not-enabled; the generated construct, token, IR and target-layout records; the backend seam against both target descriptions; and runtime/variant-part-measurements-answer-for-the-target on Linux x86-64.

D1657 — A struct type is declared with struct … end: the inline t: type = (a: T) leaves

The tour said at [0670] and the grammar at [1795] that t: type = (a: T) declares a named struct in one line, which needs a lookahead for -> to tell it from a function type. D73, D74 and D189 cite it. The library writes none, against 183 block declarations.

Chosen: the inline spelling of a named struct leaves; struct … end declares every struct type, and [1795] loses its lookahead. Parameter, result and payload lists keep their parenthesised form, which is not a type declaration. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: keeping both spellings, which is two ways to declare one thing and a grammar ambiguity. Declined.

Pinned by negative/inline-struct-is-a-struct-block, plain and packed, whose fix writes the block. D73, D74 and D189 are marked amended; [1795] loses the inline body and with it the -> lookahead, and so does the tree-sitter grammar.

D75 — A variant-bearing struct has storage and one zero image

Partly superseded. Its layout rule stands: the tag value zero selects the first case in source order, so a variant-bearing struct's zero image is all zero bytes, and such a struct is module or local storage like any other. Its sentences "These are the only new value contexts", the forms that "remained refused at this increment" and "may have no written static image in this slice" are superseded by D81 and D241; a variant part still has no value of its own (D241). What follows is history.

The tour said that [0540]'s zeroed writes the all-bits-zero image of a type and that a struct contains its variant part [0680]. D74 fixed that part's unfolded layout as one tag and one selected payload, but deliberately created no datum or frame cell and did not say which tag the zero image selects.

Chosen: a named ordinary struct with a D74 variant part may be declared as module or local storage. A declaration-only module binding has D10's static zero image; a declaration-only local binding is one uninitialized aggregate frame cell. An explicitly typed module or local initializer may be zeroed, and a directly named mutable module or local place may be assigned zeroed. These are the only new value contexts. The tag value zero selects the first case in source order. Every payload leaf D74 admits is a scalar or fixed array of scalars and therefore has [0540]'s zero image, so zeroing the tag, maximum payload extent, common fields and every padding byte is one valid complete image. A future payload leaf without a zero image must make this contextual form fail rather than change what zero means.

Common scalar and fixed-array fields retain their existing field rules. A whole successful zero write establishes D16's scalar and D48's whole-array facts for those common fields; D77 gives the established variant part one tag fact, and D78 may expose the selected case's scalar payload through arm-local aliases. A selection of the part itself is one L0304 Variant_Value when read. D76 admits the directly selected mutable part as one contextual case destination; D79 admits inferred local construction, and D80 admits a contextual whole copy between runtime storage places. Static module copy chains, inferred module construction, arguments, returns and every general aggregate value remained refused at this increment. D102/D103 later admit parameters and D106--D116 named results. D77 owns tag matching and D78 scalar payload bindings.

The IR uses the same target-neutral Variant_Field_Shape for measurement, datum and aggregate-slot field runs. One unit-wide case-run and payload-shape carrier lets each top-level shape name its source-order cases without storing an offset, width or padding byte. The verifier proves the tag kind, case-run bounds and depth-one scalar/fixed-array payload leaves before any accessor for all three storage classes. A variant-bearing aggregate may have no written static image in this slice: omitted and explicit module zero images are the same absent image, while a malformed written image is refused before the backend can interpret it.

Lowering emits no variant instruction. Module storage is one ordinary aggregate datum; local storage is one aggregate slot. Explicit local zero initialization and whole zero assignment reuse D57/D58's operandless, field-zero Clear_Array, which clears the complete padded aggregate extent. The x86-64 backend derives that extent by replaying D74's tag-first maximum- payload layout against the selected target. Module zero storage is reserved as one distinct padded object in .bss; no startup instruction exists. The same recursive extent routine serves measurement, datum placement, frame layout and whole clear, so their answers cannot diverge between 32- and 64-bit target facts.

Why only storage and zero now: the all-zero image needs no payload expression, no tag operation and no aggregate temporary, so it exercises the runtime carrier and target layout without prejudging how a case is formed or examined. Field-wise stores were declined because they leave padding outside [0540]'s complete image; a new clear opcode duplicates D57's whole-storage operation; admitting copy or construction would cross D76's case-selection rule; and keeping the variant as opaque target bytes would abandon D74's target-neutral carrier. All were declined.

Pinned by the lowering, verifier and backend public seams; positive/variant-zeroed-storage; negative/variant-part-selection-not-enabled; the generated token and IR records; and runtime/variant-zeroed-storage-is-distinct on Linux x86-64.

D76 — A variant case is constructed into contextual storage

The tour said that [0690]'s bare case carries no payload and [0700]'s labelled construction supplies a payload by name. D74 fixed the case order and payload shapes, while D75 supplied storage and made tag zero select the first case; neither said how a later case is written.

Chosen: a case is written only where a destination supplies one D74 variant part. A typed local labelled literal or nominal construction may name a variant field with a bare payload-free case or with case(field: value, ...); a complete labelled literal or nominal construction may be assigned to a directly named mutable module or local struct in the same way. A directly selected variant part of such a mutable root may also be assigned either form. The case identity must belong to that exact part. A case from another part is L0334 at the value; an immutable root keeps L0303 first and alone. Module static struct images and inferred module construction remain outside this slice until D81; every general value position remains an L0304 Variant_Value boundary. D80 later admits a whole variant-bearing copy whose source and destination are direct runtime storage places.

A bare case is legal only when its payload is empty. A labelled case construction gives each payload field at most once, using D64's L0308/L0309/ L0310 ownership for unknown, duplicate and missing labels. Scalar payload fields accept their ordinary expression or contextual zeroed. A fixed-array payload field accepts only zeroed in this slice; selecting the case already clears that array's complete storage. A trailing of zeroed supplies every omitted payload field, while any other fill is L0304. Aggregate payloads stay D74's depth-one refusal.

The destination case is selected before any payload expression is evaluated. Selection clears only the selected case's padded payload extent and writes the case's zero-based source-order tag. A bare case therefore writes only its tag; the gap after the tag, inactive case storage and part tail padding have unspecified bytes. The clear gives omitted and fixed-array payload fields their zero image. Labelled scalar expressions are then evaluated exactly once in written order and stored immediately, so a later expression observes every earlier program write. A refused destination reads none of them. D16 records the complete selected part as assigned; D77 is the first consumer of that tag and D78 reads or mutates scalar payload leaves.

The IR adds two destination-only operations. Select_Variant carries a storage identity, top-level field identity and one-based case identity; Store_Variant_Field additionally carries a one-based scalar payload-field identity and one scalar operand. None carries a target offset. The verifier checks storage, aggregate field, variant shape, case run, payload field kind and operand type in that order with explicit release-build code, and refuses either operation inside a datum initializer. The backend replays D74's layout: selection clears the selected case's target-derived payload extent and writes case - 1 with the shape's tag width; a payload store derives the part, payload and field offsets for the selected target before storing at the scalar width.

Why contextual construction first: it exercises every case identity and payload offset without an aggregate temporary, a static nonzero variant image or an ABI rule. Clearing the selected payload as one extent retains its omitted fields' zero images without touching storage reserved for inactive cases. This revises D76's original complete-part clear: that rule made a bare selection's write count grow with the largest unrelated case. Whole copying waited until D80 fixed the source and destination as storage identities and copied the complete padded part. D84 later adds D52/D53's write sequence inside a fixed-array payload without changing selection's clear-and-tag operation. D77 adds tag matching; D78 adds scalar payload binding while retaining that fixed-array boundary. D79 also lets a call-shaped case construction infer a fresh local binding; D81 later supplies the nonzero static variant image and admits module inference.

The alternative: clear the complete padded variant part on every selection. That gives inactive bytes a zero value but makes a bare case write an extent set by an unrelated payload. Clearing each selected field separately would avoid those inactive bytes but leave gaps inside the selected payload uninitialized.

Pinned by the IR, lowering, verifier and backend public seams; positive/variant-case-construction; negative/immutable-variant-case-assignment; negative/variant-case-does-not-belong; negative/variant-case-payload-disagrees; the generated token and IR records; and runtime/variant-case-construction-runs-in-source-order on Linux x86-64.

D77 — A match exhaustively selects one variant case by its tag

The tour said that [1210] distinguishes every case of a variant and that missing cases are compile errors. D74 fixed the source-order case identity, D75 supplied the unfolded tag, and D76 made that tag executable by selecting cases; none supplied a way to examine it.

Chosen: match place.field directly selects a D74 variant part from a named module or local ordinary-struct binding. Each arm is case: statement; the case must belong to that exact part, every case is named exactly once, and source order of arms is otherwise free. A duplicate is L0311, a missing case is L0312, and a case from another part is D76's L0334 identity mismatch. This first boundary gives each arm exactly one statement, with an if usable as that statement when a nested run is needed. D78 adds [1220]'s parenthesized payload bindings, and D405 lets one arm name several cases. Wildcards, scalar or nested subjects and general variant values remain refused. D241 later makes a scalar subject a type error citing [1210]: an arm names an identity, and a number is compared with if.

The subject is read once before any arm. Definite assignment therefore asks for the selected part's established-case fact on entry; D75's whole zero image and D76's contextual case write establish it. Each exhaustive arm receives the same incoming state, and facts after the match are their intersection. An uninitialized local part is L0302, and a fact written by only some arms is not available after the match. Payload bytes are neither read nor bound here.

Lowering emits one Load_Variant_Tag, carrying source storage, top-level field identity and the tag's scalar type but no target offset. The tag is saved in one scalar frame slot, then compared with each source-order tag except the final exhaustive arm; control flows through sibling arm blocks and one merge. The verifier proves the storage and variant field before comparing the result type with the shape's tag type, in explicit release-build code. The backend replays D74's field placement, loads the tag at its described width, and uses the existing scalar comparisons and branches. No payload offset is computed.

Why tag-only and exhaustive first: it closes the first read of D76's runtime state without yet introducing a payload reference, origin, lifetime, or aggregate temporary. A wildcard was declined because [1210] already makes missing cases a compile error; implicit source-order fallthrough was declined because case identity is nominal; reloading the aggregate at each comparison was declined because [0410] gives the subject one evaluation.

Pinned by the parser, IR, lowering, verifier and backend public seams; positive/variant-match-exhaustive; negative/match-scalar-not-enabled; negative/variant-match-duplicate; negative/variant-match-not-exhaustive; negative/variant-match-case-does-not-belong; negative/variant-match-unassigned; negative/variant-match-not-on-every-path; the generated token, diagnostic and IR records; and runtime/variant-match-selects-tag on Linux x86-64.

D78 — Match-arm names alias scalar payload fields

The tour said that [1220] binds a selected case's payload by position and that inout is the spelling which permits a write. D77 selected the case and entered an arm, but deliberately left its payload bytes inaccessible.

Chosen: an arm may write a parenthesized, comma-separated binding after its case name. The names correspond positionally to every payload field in declaration order; when parentheses are present their count must match exactly (L0333), while omitting parentheses continues to ignore the complete payload. A plain binding is an immutable in alias and inout name is mutable. Both refer directly to the matched object: reading loads that payload field, and an inout assignment updates it in place. Each binding is visible only in its arm's sibling scope. Duplicate names retain L0200 and a use outside the arm retains L0201. [1910] keeps the selected payload storage live through each alias's last use, including scalar writes and addresses derived from the payload. Retagging or replacing that storage earlier is L0315. The live-payload negative fixture and last-use runtime fixture pin this rule.

This slice binds scalar payload fields. D85 later binds a fixed-array payload as an indexed array alias without making it a whole contextual value. Omitting bindings still permits a case with any payload, so D77's tag-only matching remains unchanged. D102--D116 later close aggregate parameters and returns.

Lowering records no copied local. It maps each arm-local declaration identity to the subject storage, top-level variant field, source-order case and declaration-order payload field. Load_Variant_Field carries those identities and its scalar result; an inout write reuses D76's Store_Variant_Field. The verifier proves the aggregate, case and scalar leaf before checking the result or operand type. The backend replays D74's payload placement on the selected target. These are explicit release-build checks, and no source or target byte offset enters the IR.

Why aliases rather than copied locals: [1220]'s inout makes an arm write observable after the match. A copy-in/copy-out rule would add hidden completion and early-return semantics, while a copied immutable binding would make the two conventions denote different objects. One direct alias rule answers both. Named rather than positional omission was declined because field identity is already declaration order; D85 later gives array payloads the same direct alias rule without silently copying a whole array.

Pinned by the parser, IR, lowering and verifier public seams; the resolution and checking fixture paths; positive/variant-match-payload-bindings; negative/variant-match-binding-count-disagrees; negative/variant-match-in-binding-is-immutable; negative/variant-match-binding-named-twice; negative/variant-match-binding-outside-arm; the generated token, diagnostic and IR records; and runtime/variant-match-payload-bindings-update-storage on Linux x86-64.

D79 — A case construction may infer its fresh local storage

Superseded by D241, with D76 for the order. An inferred local takes the type of a case construction as it does any value, the case selected before its payload is evaluated; what follows is history.

The tour said that [0050] infers a binding from its initializer and that [0700]'s construction names the nominal type being constructed. D72 applied that rule to ordinary structs, while D76 kept a variant-bearing construction contextual to a written destination even after local aggregate slots and case selection existed.

Chosen: name := T(..., part: case(...), ...) is admitted inside a function when T is a D74 variant-bearing ordinary struct. The construction's type name supplies [0710]'s body before inference settles the binding, and the fresh aggregate frame slot is its contextual destination. D76 then applies: common and payload values are evaluated once in written order, the selected payload is cleared, its tag is written, and scalar payload fields are stored directly. The inferred local is distinct storage and may immediately be selected or matched under D77/D78.

An inferred module binding remains refused in this slice. Unlike a fresh local slot, it has no runtime destination: [1460] requires a static image, and D75 currently carries only the absent all-zero variant image. D81 later adds that representation and admits both the typed and inferred module forms. Arguments, returns and general aggregate values remain outside this contextual rule and retain their existing owners.

No syntax, IR, verifier or backend operation changes. Lowering already allocates an aggregate slot from the inferred declaration's carried body and D76 already writes a struct literal into that slot. The checker removes only the local half of its inference refusal; the module half remains explicit.

Why local inference before static images: the nominal constructor already answers which type is inferred, and a fresh slot makes evaluation executable without an aggregate temporary. Treating the same spelling as a module image would require a nonzero target-neutral variant image, while refusing both scopes merely because one lacks that representation would preserve an accidental asymmetry.

The alternative: require every constructed local to spell its type, or admit an inferred module binding as well. The first repeats what the construction's type name already says; the second has no runtime destination to receive the evaluated parts, which [1460] forbids running before the entry point.

Pinned by the lowering public seam; positive/variant-case-construction; the generated token and IR records; and runtime/variant-case-construction-runs-in-source-order on Linux x86-64.

D80 — A whole variant-bearing struct copies between runtime storage

Superseded by D241. A variant-bearing struct is copied whole like any other struct; what follows is history.

The tour said that [0520] assigns values and [0710] makes an ordinary struct nominal. D54 copied a scalar/array-bearing struct field by field, while D75 supplied storage for the unfolded variant part and D76 supplied its first nonzero values. Keeping D54's copy refusal after both sides had complete storage was therefore a representation boundary rather than a language rule.

Chosen: a whole assignment between directly named mutable module or local storage of the same variant-bearing struct is admitted. An explicitly typed or inferred local initializer may likewise copy a direct module or local source name. The source and destination must share [0710]'s declaration identity; same-shaped declarations remain L0301. Module initializers remain static-image rules and are not widened by this runtime slice. A tracked local source must be complete on every arriving path, including its established variant part; the destination receives the complete whole-struct fact. An exact self-copy is legal and changes nothing.

Common scalar fields retain D54's scalar load/store pair and common fixed-array fields retain its Copy_Array. Each unfolded variant part is one Copy_Variant carrying source storage, destination storage and their shared declaration-order field identity. It carries no tag, case, payload offset, target extent or bytes. The verifier proves both endpoints are variant fields, proves their complete case and payload shapes before reading them, and requires the tag, case count, payload kinds, scalar types and array lengths to agree. These are explicit release-build checks.

The backend replays D74's tag-first maximum-payload layout for the selected target, forms both field addresses and copies the complete padded part. Extents of one to six bytes or exactly eight bytes use bounded scalar chunks; other nonzero extents retain one forward byte run. Distinct aggregate roots do not overlap; a self-copy names the identical range, which either transfer preserves. Copying the padded part also carries any unspecified inactive bytes; it need not inspect the source tag. An explicit zeroed source still has [0540]'s complete all-zero image. Scalar and fixed-array fields remain separate operations in declaration order, exactly as D54 specified.

Why a compact part copy: selecting the active case and copying only its payload would branch on runtime state and make the copy sequence depend on the tag. Copying the whole struct as one opaque byte operation would duplicate D54's established scalar/array paths and erase their verifier types. One compact operation for the only union-shaped field keeps the IR target-neutral and the existing field semantics visible. Static nonzero variant images and inferred module construction follow in D81. General aggregate values, arguments and returns remained separate decisions; D94--D116 later close the internal argument and result contexts.

The alternative: copy a variant-bearing struct part by part, or refuse whole copies of one altogether. Field-wise copying would have to know which payload is live and would skip the padding and tag a whole-storage copy carries for free; refusing the copy leaves [0540]'s value semantics with a hole where the tour has none.

Pinned by the IR, lowering, verifier and backend public seams; positive/variant-whole-copy; negative/variant-whole-copy-source-unassigned; the generated token and IR records; and runtime/variant-whole-copy-is-distinct on Linux x86-64.

D81 — A module variant construction is a static selected-case image

Partly superseded. Its selected-case image stands: a module construction selects its case as a static image, the tag written as case - 1 and the inactive payload tail zero, and a name chain copies it into storage of its own. Its sentences "A fixed-array payload still accepts only zeroed" and "only the absent zero form is produced in this slice" are superseded: a payload array takes every image a module struct's array field takes (D67, D68). Its "General aggregate values, arguments and returns remained refused" is superseded by D94-D109 and D241; what follows is history.

The tour said that a module binding may carry a value [0040], that nothing runs before the entry point [1460], and that a variant value selects one case and its payload [0680]--[0700]. D66--D71 gave ordinary structs a target-neutral static image, while D75 kept a variant part absent and all-zero and D76/D79 constructed nonzero cases only into runtime storage.

Chosen: an explicitly typed module struct literal or nominal construction may select D76's bare or labelled variant case. A call-shaped construction may also infer the module binding's nominal body, as D79 already does for a local. Every labelled scalar payload expression must be [1940]-known and must fit its contextual scalar type on the selected target; excluded storage reads remain L0304, an unknown fold remains L0305, and an overflowing or out-of-range fold remains L0300. A fixed-array payload still accepts only zeroed. Omitted payload fields covered by of zeroed retain their zero image.

The selected case is a static image, not startup code. The aggregate field's flat fold stays zero. Its top-level image descriptor has form Selected, a one-based case in Value, and an offset/count selecting one declaration-order payload-descriptor run appended after the aggregate's top-level descriptors. A scalar payload descriptor carries its folded value; a fixed-array payload reuses D67/D68's absent/finite/repeated/hybrid shape and element run, although only the absent zero form is produced in this slice. Offsets select descriptors or folds, never target bytes. The old setter delegates with an empty payload run, so every D66--D71 image keeps the same carrier.

The verifier first proves the top-level descriptor run, selected case and payload run before any payload accessor. It then proves each scalar fold and array descriptor against that case's D74 leaf shape and the selected target. Malformed nesting, case identities, counts, offsets, patterns and values are explicit release-build faults. The backend replays D74's tag-first placement, writes case - 1 at the tag width, inserts this target's gaps, writes scalar payloads at their widths, emits array payload images, and zeroes the inactive tail of the maximum payload extent. Selecting the first case explicitly is still a written .data image even when every byte is zero; D75's omitted or whole-zeroed value alone remains absent .bss storage.

D60/D61 module struct image chains copy the selected descriptor, payload descriptors and element folds into distinct destination storage. Forward references and cycles keep their existing declaration-identity validation; a cycle reports L0305 once. Later runtime writes never alias a copied image. General aggregate values, arguments and returns remained refused at this increment. D94--D116 later close the internal argument and result contexts. D82 adds finite and repeated fixed-array payload images, D83 copies those images from module array storage, D84 adds their contextual runtime write forms, and D85 adds indexed match aliases. D435 lets a module array literal's elements be such images.

Why one extended descriptor run: target bytes would duplicate the image per target and abandon the IR boundary; startup stores would contradict [1460]; a second item-owned vector would introduce another partition invariant for data the existing field-image run already orders. One selected descriptor plus a contiguous payload run makes the case explicit, keeps every width and offset in the backend, and lets D60's existing image-chain machinery copy the complete value without inspecting target layout.

The alternative: build a module variant value by startup code, or refuse a selected case in a module image. [1460] leaves nothing to run before the entry point, and a refusal would make the one aggregate the freestanding driver most wants static, a device state machine, unwritable at module scope.

Pinned by the lowering, verifier and backend public seams; positive/variant-module-case-image; negative/variant-module-case-image-value-not-known; negative/variant-module-case-image-storage-read; negative/variant-module-case-image-out-of-range; the generated token and IR records; and runtime/variant-module-case-image-is-distinct on Linux x86-64.

D82 — A static selected case carries finite and repeated array payloads

Superseded by D67 and D68. A selected case's array payload takes the finite, zero, repeated and hybrid images a module struct's array field takes; what follows is history.

The tour said that a case payload is labelled like a construction [0700] and that array literals and repetitions describe complete fixed arrays [0530], [0560]. D81 reserved the selected case's fixed-array payload descriptor and made only its absent zero image constructible.

Chosen: in D81's typed or inferred module construction, a labelled fixed-array payload accepts D67's finite nonempty literal, D68's full or mixed repetition, or zeroed. Its contextual length and scalar element type come from the selected D74 payload leaf. Length, count and element disagreements keep D17/D29/D32's L0301 owners. Every element, prefix and repeated pattern must be [1940]-known; an excluded storage read is L0304, an unknown fold is L0305, and an overflowing or out-of-range fold is L0300. D83 adds direct module array and selected array-field image sources without making the payload a general value.

No carrier changes. A finite payload descriptor owns its complete fold run; a full nonzero repetition carries one Repeated pattern; a mixed form carries its finite prefix plus one Hybrid suffix pattern. D34's full zero repetition is the absent image, while D38's mixed zero suffix remains written. The folds are appended to D81's one item-owned image run, and the payload descriptor's offset is rebased through that run. D60/D61 copies preserve every form in distinct module storage.

The verifier already proves these four canonical payload forms, their lengths, offsets and per-target scalar fit before reading any fold. The backend already replays the selected case's payload placement: it emits finite directives or compact .rept runs at the element width, inserts target padding and zeroes the inactive tail. D82 therefore changes only contextual checking and image production, while extending the public lowering, verifier and backend evidence over the carrier D81 established.

Why static forms first: they exercise every reserved array payload image without adding the two-level runtime address carried by later stores, fills and copies. Limiting D82 to finite literals alone would make zeroed and compact repetition needlessly asymmetric with D67/D68. D83 takes the separate static source-resolution edge; D84 supplies runtime construction and D85 supplies indexed match aliases.

The alternative: treat a fixed-array payload in a module image as a general runtime value, or admit only zeroed there. The first makes the image a computation; the second makes the initial state of a device table a copy loop the program has to write itself.

Pinned by the lowering, verifier and backend public seams; positive/variant-module-array-payload-image; negative/variant-module-array-payload-shape-disagrees; negative/variant-module-array-payload-not-known; negative/variant-module-array-payload-storage-read; negative/variant-module-array-payload-out-of-range; the generated token and IR records; and runtime/variant-module-array-payload-image-selects-case on Linux x86-64.

D83 — A static array payload copies a module array image

Superseded by D24's chain and D81. A selected case's array payload copies a module array's or a selected field's static image as any module image does; what follows is history.

The tour said that a module value is present before the entry point [1460] and that an array assignment copies a complete array [0520]. D21, D69--D71 already follow direct and selected module array images through declaration identity; D82 made the same four compact forms representable in a selected variant payload.

Chosen: in D81's typed or inferred module case construction, a labelled fixed-array payload also accepts a direct module fixed-array name or s.f, where s directly names a module ordinary struct and f is one of its fixed-array fields. The source must have the payload leaf's exact D17 length and scalar element type; disagreement is L0301 at the source, related to the payload label. A scalar, type name, local storage, deeper selection or any other form keeps its existing owner. A source the checker has already refused adds no second report.

The payload receives a copy of the source's resolved static image: absent for an omitted, zeroed or zero-repetition source; finite for a written literal; repeated for a nonzero full pattern; hybrid for a written prefix and suffix pattern. All-zero finite and zero-suffix hybrid images remain written. The source may be declared later and may itself follow D21 or D60/D61/D69--D71's array and aggregate image chains. Validation follows the source declaration before marking the containing image valid; an existing cycle retains [1940]'s single L0305 owner. Each destination owns distinct storage.

No carrier, verifier or backend rule changes. Lowering resolves the source before any image accessor, counts its finite prefix in the aggregate's one item-owned run, then copies and rebases either the array item's compact image or the selected field descriptor. The unchanged aggregate setter records the selected case once; the unchanged verifier rechecks the descriptor against the payload leaf and target; the unchanged backend emits that form at the payload's target-derived offset. D60/D61 aggregate image copies preserve the rebased descriptor and folds.

Why both source forms: admitting only a direct name would leave the static payload behind D65's runtime source rule and behind the D69--D71 image graph, despite both representations already existing. This remains a contextual initializer edge: selected payload arrays are not general values. Runtime fixed-array payload writes follow in D84, while indexed fixed-array match aliases follow in D85.

The alternative: accept any expression as a static array payload source, including local storage and deeper selections. Only a static image can be resolved when the image is formed, so every other form keeps the owner that already refuses it rather than a second, image-specific report.

Pinned by the lowering and backend public seams; positive/variant-module-array-payload-image-copy; negative/variant-module-array-payload-image-copy-shape-mismatch; negative/variant-module-array-payload-image-copy-source-refused; negative/variant-module-array-payload-image-copy-source-cycle; the generated token and IR records; and runtime/variant-module-array-payload-image-copy-is-distinct on Linux x86-64.

D84 — A runtime case construction writes fixed-array payloads

Superseded by D241, with D76 for the order. A fixed-array payload takes every value an array field takes, as D241 records, after its case is selected; what follows is history.

The tour said that a labelled case construction writes its payload [0690]--[0700], while array literals, repetitions and copies write a complete fixed array [0520]--[0560]. D65 already admitted those contextual forms for an ordinary struct field, but D76 kept a runtime variant payload at zeroed even after D82/D83 supplied the same forms for a static selected-case image.

Chosen: a labelled fixed-array payload in D76/D79's runtime case construction accepts the same contextual forms as D65's ordinary fixed-array field: a finite literal, a full or mixed repetition, zeroed, a direct module or local fixed-array name, or a directly selected ordinary fixed-array field. The value must have the payload leaf's exact D17 length and scalar element type. Length, count, element and copy-shape disagreements keep their existing L0301 owners. A tracked local source is read as a whole before the case write; payload expressions read the state arriving at the statement. D241 later gives a payload array every expression an ordinary array field takes, still selecting the case first. A refused or immutable destination is reported first and reads no payload.

Selection remains one destination-first operation: it clears the selected case's padded payload and writes the source-order tag before labelled payloads are evaluated once in written order. Literal elements store immediately; repetitions evaluate their repeated value once; copies move the complete array. A nested zeroed payload retains the selected array's zero image; the array path may emit a redundant clear of that array. Both writes remain bounded by the selected payload extent. Normal completion retains D76's whole variant-field definite-assignment fact.

No new opcode is needed. Store_Element, Fill_Array and the destination of Copy_Array gain D76's case and payload-field identities in addition to the containing aggregate field. Those numbers are declaration identities, never target offsets; direct and ordinary-field array operations keep zeroes and their existing text. The verifier proves storage, containing variant field, case, payload leaf, array shape, index and value type in that order before any shape accessor, in release as well as debug builds. It retains the existing array and variant fault kinds.

The backend first performs the bounds check for an element store, then derives the containing field base and D74's target-dependent payload-field offset, and finally adds the scaled element index. Fills and copies use that same base; their width and byte extent come from the selected payload leaf on each target. Static module constructions remain D82/D83 image rules, not startup writes. D85 later reads and writes individual elements through a match alias; no selected variant payload becomes a general array value.

Why extend the existing array operations: a payload array is still one fixed array in known storage. A new opcode for each literal, repetition and copy would duplicate their ordering and verifier rules; an aggregate temporary would make the construction a general value. Carrying the two missing declaration identities lets the established compact operations reach the leaf without putting layout bytes into the IR, and is also the address carrier a later fixed-array match alias needs.

The alternative: restrict a runtime case construction's array payload to literals and zeroed, or evaluate the payload before the destination is selected. The first gives the payload a narrower rule than D65's ordinary array field for no reason the tour states; the second reorders D76's destination-first protocol.

Pinned by the lowering, verifier and backend public seams; positive/variant-runtime-array-payload; negative/variant-runtime-array-payload-shape-disagrees; negative/variant-runtime-array-payload-source-unassigned; negative/immutable-variant-runtime-array-payload; the generated token and IR records; and runtime/variant-runtime-array-payload-writes-target-storage on Linux x86-64.

D85 — A match-arm name aliases a fixed-array payload by element

The tour said that [1220] binds the selected case's payload by position, that inout permits mutation, and that indexing selects one array element [0520], [0580]. D78 implemented that direct alias rule for scalar payloads; D84 supplied the target-neutral address of a fixed-array payload but did not let a match arm name it.

Chosen: a binding corresponding to a fixed-array payload has that payload's D17 length and scalar element type. A plain binding is an immutable in alias; inout name is mutable. Either may be indexed to read an element, while only the inout form may assign, assign zeroed, increment or decrement an indexed element. lenof name reads the contextual length without reading storage. Constant indexes outside the payload length keep L0306; an unknown index keeps D48's runtime bounds trap and is evaluated once before the value of a write.

The alias denotes the matched module datum or frame slot directly. It creates no copied local and no separate definite-assignment fact: D77 already requires the complete variant part before its tag may be matched, and the binding exists only in the arm for the selected case. An inout write is observable through the original object after the match. A bare use of the binding remains L0304, as do whole-array assignment or initializer sources, arguments, returns, discards and operands; D241 later admits the discard and records the others as a boundary. This is an indexed contextual alias, not a general fixed-array value.

No new opcode is needed. Load_Element gains D84's containing-field, case and payload-field identities; Store_Element already carries them. Direct and ordinary-field element operations keep zero identities and their previous IR text. The verifier walks storage, containing variant field, case and array payload before it reads the payload shape, then checks the usize index and element result or operand type in explicit release-build code. The backend replays D74's target-dependent payload placement and the payload element width for both module and frame storage; no offset or width enters the IR.

Why an indexed alias rather than a copied array: copying would make in and inout denote different objects or require hidden copy-out behavior on every arm exit. Making the name a general whole-array value would widen D20, D21 and every argument/return boundary at once. The direct alias already used for D78's scalar leaves preserves [1220]'s one rule while indexing supplies the only scalar value an expression needs.

The alternative: copy a fixed-array payload into a fresh local binding at the arm, or refuse array bindings in a match arm. A copy hides the write an inout binding exists to make and costs the payload's extent on every match; a refusal leaves an array payload matchable but unreadable.

Pinned by the IR and lowering public seams; positive/variant-match-array-payload-bindings; negative/variant-match-array-binding-not-enabled; negative/variant-match-array-binding-is-immutable; negative/variant-match-array-binding-index-out-of-range; the generated token and IR records; and runtime/variant-match-array-payload-bindings-update-storage on Linux x86-64.

D1085 — An inout payload binding needs a matched value that may be written

The tour said at [1220] that a match arm's binding takes a parameter convention and that inout makes it a writable alias of the payload, and at [0430] and [0450] that a read-only reference and an immutable binding are never written through. D78 and D85 gave the alias its storage. None of them said what the matched value must be, and the checker asked only the binding's own convention, so case(inout v): v = 2 wrote the payload of an immutable binding, of an in parameter, and of whatever a ptr s or a []s reached; on firmware that store's target is in flash.

Chosen: an inout payload binding requires the matched value to be a place that may be written, by [1900]'s rules for an assignment's target: a mutable binding, a named return, an inout parameter, an element of writable storage a for walks, or a place reached through a mut reference. Anything else is L0303 at the binding, naming the matched value. A binding without inout reads the payload of any value, as before.

The alternatives: refusing each write through the binding where it is made, which leaves addr v and an inout argument to find separately and reports far from the cause; and making the binding a copy when the value is read-only, which gives one spelling two meanings. Both are declined.

Pinned by negative/inout-payload-binding-of-read-only-subject.

D1112 — A match reached again binds its payload names afresh

The tour said [1220] that an arm may replace the variant, or an object containing it, only after the aliases' last use, and D85 that a binding exists only in the arm for the selected case. The check that asks whether a binding is still in use followed a loop's back edge into the match that binds it and counted that arm's reads as uses of the binding being asked about. So inside a loop, any statement of the body that replaced the variant, selected a case of it or passed it inout was refused with L0315, whether it stood before the match or after it, although the arm had ended and its binding no longer existed. "Update the tagged value, then match on it and use what the case holds" could not be written in one loop.

Chosen: a match reached from outside its arms, along the straight line or along a back edge, begins new bindings: what its arms read is theirs, and the binding of an earlier iteration ended with its arm, as a local's does when its declaration is reached again. Nothing else changes. A replacement inside the arm, before a later read of the binding there, stays L0315, in statement and in expression position; and so does a replacement anywhere while a view of the payload that an outer name carries, a pointer taken with addr in the arm for one, is read afterwards, in this iteration or the next.

The alternative: leaving it, and having a program move the match into a routine the loop calls, which the same check accepted; that is a workaround for a refusal whose message names a binding that is out of scope. Dropping a binding's record when its arm ends was also considered: the views other names took from it must stay tracked past the arm, and they are found through that record.

Pinned by runtime/variant-replaced-beside-a-loop-match, the four shapes run; and negative/payload-alias-outlives-a-loop-match, the three that stay refused.

D86 — A named ordinary struct field has a measured layout

The tour said that fields stay in written order with their natural alignment [0750], that a named struct introduces one nominal type [0710], and that sizeof and alignof answer for a type [0370]. D44/D45 measured scalar and fixed-array fields, but a field whose type was another named struct still stopped the containing layout even though the child already had a complete target-parametric size and alignment.

Chosen: a top-level field of an ordinary struct may name a laid-out child ordinary struct whose own fields are scalar or fixed arrays. The child remains one declaration-order field. Its size is the child's complete padded size and its alignment is the child's alignment; the containing placement then applies [0750] exactly as it does to any other field. Aliases carry the same child body identity. This slice is deliberately depth one and excludes a child with a variant part or another aggregate field; a struct inside a variant payload keeps its existing L0304 boundary.

This is layout and measurement only in D86. D87 below admits declaration storage and the complete zero image; every nonzero value form stays separate. An inferred construction is refused from its nominal body before lowering, so the measurement carrier cannot leak into a datum or frame slot before D87.

The checking table carries the child declaration identity, never its bytes. Aggregate measurement IR carries an Aggregate_Field_Shape whose child is a bounded declaration-order run of scalar or compact fixed-array shapes. The verifier proves that run and its depth-one leaves before any accessor reads them, and rejects the same shape in datum and slot runs. The backend recursively replays those neutral leaves against the selected target. Thus a 32-bit target may give the child and parent different extents from Linux x86-64 without any target offset, padding or host representation entering the IR.

Why measurement first: variants followed this same D74/D75 split. It gives layout a target-executed fact before storage must decide nested selection, definite-assignment paths, images, clear and copy. Flattening the child into the parent would lose nominal provenance and make later debugger information reconstruct it; carrying a target byte extent would make the IR target-specific.

The alternative: flatten a child struct's fields into the parent's placement, or refuse a struct field until layout is general. Flattening loses the child's own alignment and padding and every alias of its body identity; the depth-one slice with the child's complete padded size is what the containers needed and no more.

Pinned by the checking, lowering and verifier public seams; positive/measurement-of-nested-struct-field; positive/module-struct-image-with-a-child; the generated layout, token and IR records; and runtime/nested-struct-measurements-answer-for-the-target on Linux x86-64.

D87 — A depth-one nested ordinary struct has storage and a zero image

Superseded by D118 and D119 for depth, and D241 for the forms. A struct field of struct type has storage and a zero image at any depth, and zeroed clears the whole parent as one operation; what follows is history.

The tour said that a binding may hold a named struct [0670], that every field remains in written order at its natural alignment [0750], and that zeroed supplies the complete all-bits-zero image of its contextual type [0540]. D86 had already proved the child and parent extents on both target descriptions, but deliberately kept that carrier out of runtime storage.

Chosen: a module or local binding may hold D86's depth-one nested ordinary struct when the child itself has only scalar and fixed-array fields. An omitted binding has the ordinary zero state. An explicitly typed binding may be initialized with zeroed, and a directly named mutable binding may be assigned zeroed. Each operation clears the complete padded parent extent, including the child's internal and tail padding, as one whole-storage operation. Module and local cells are distinct.

This slice does not make the child selection a value or place. s.child, nonzero labelled literals, construction, inference, whole copy, static nonzero images, deeper nesting and aggregate variant payloads stayed L0304 at this increment; D88--D132 close those contextual and internal-ABI boundaries. D88 separately admits s.child.field for scalar leaves. Those are value-path decisions, not hidden consequences of allocating a cell.

Runtime datum and slot shapes reuse D86's target-neutral Aggregate_Field_Shape: the parent points at one bounded child run of scalar and compact fixed-array leaves. The verifier proves that run before access and still rejects a child containing another aggregate or variant. The backend recursively replays the run against the selected target for datum reservation, frame placement and whole clears. Thus the same source clears 40 bytes on Linux x86-64 and 24 on the synthetic 32-bit description without carrying an offset, width or padding byte in the IR.

Why zero storage first: the complete zero image needs no nested path and no aggregate temporary, while a selected field or nonzero copy does. Flattening the child into parent fields would lose D86's nominal provenance; storing its target extent would make the IR target-specific. D88--D132 later close the remaining nonzero contextual and internal-ABI boundary.

The alternative: admit s.child as a value and place in the same slice, or give a nested struct no storage until every operation on it exists. The first drags construction, copy and static images into a layout increment; the second leaves D86's measured layout with nothing to measure.

Pinned by the lowering, verifier and backend public seams; positive/nested-struct-zero-storage; negative/struct-with-a-struct-field; positive/module-struct-image-with-a-child; the generated token and IR records; and runtime/nested-struct-zero-storage-keeps-neighbours on Linux x86-64.

D88 — A scalar leaf may be selected through one ordinary child

Superseded by D118 and D119 for depth, and D241. A scalar field is a value and a place at the end of any path; what follows is history.

The tour said that member selection is left to right and may chain as a.b.c [0420] [1820], while D87 deliberately allocated a depth-one ordinary child without making any path through it a value or place.

Chosen: when a parent binding has D86/D87's one named ordinary child, a scalar field of that child is a value and a place as parent.child.field. The binding at the root decides mutability exactly as for a direct field. The intermediate parent.child remains neither a general aggregate value nor a whole place in this slice. D91 separately admits contextual whole-child assignment; discarding, passing and returning it remain L0304. D89 separately admits indexed scalar elements of a fixed-array leaf.

Definite assignment retains the two declaration-order field identities. A write establishes that nested scalar leaf and no sibling; a read requires that leaf on every arriving path. Assigning the whole parent zeroed establishes every child leaf, and branch merging treats that whole-child fact and the corresponding nested facts as two representations of the same assignment. Module state keeps D10's initialized rule unchanged.

Lowering carries the parent field and child field as two target-neutral identities on the existing scalar field load or store. The verifier proves that the first names an Aggregate_Field_Shape, that its bounded child run contains the second, and that the selected child shape is scalar. Only the backend replays the two nested placements against the target: the same usize leaf may therefore have a different module or frame offset on the two target descriptions without an offset or padding byte entering the IR.

Why not flatten the child: flattening would erase the nominal boundary D86 preserved and make debugger provenance reconstruct it. Treating the child as a general aggregate value would silently decide whole copies and the ABI this slice does not implement. Two field identities are the smallest carrier that implements the chain the tour already writes while retaining those boundaries.

Pinned by the lowering, verifier and backend public seams; negative/nested-struct-scalar-field-unassigned; negative/struct-with-a-struct-field; the generated token and IR records; and runtime/nested-struct-scalar-fields on Linux x86-64.

D89 — A fixed-array element may be selected through one ordinary child

Superseded by D118 and D119 for depth, and D241. An element of an array field is a value and a place at the end of any path; what follows is history.

The specification said that indexing takes what a selection named, explicitly including a.b[i] [1820], and D87 gives a depth-one child a neutral fixed-array field shape. D88 established the two-identity path to a scalar leaf but left that fixed-array leaf refused.

Chosen: parent.child.array[index] is a scalar value and place when array is a fixed-array field in D86/D87's ordinary child. Its index has the same usize context, compile-time refusal and runtime bounds trap as every other fixed-array element [1880] [1950]. The root binding decides mutability. Neither parent.child nor parent.child.array becomes a general value or whole place in this slice. D90 separately admits the fixed-array leaf as a contextual assignment destination or storage-copy source; passing, returning and discarding it remain L0304.

Definite assignment retains the parent and child identities together with D19's compiler-known element position. A write establishes only that element; a known read requires its own fact, and a computed read requires every element as D22 does. Assigning the whole parent zeroed establishes the nested array, and a branch merge preserves equivalent whole-parent, whole-array and sparse element representations rather than intersecting their encodings blindly. Module state remains initialized by D10.

The existing element load and store carry the parent field as their containing field identity and the child fixed-array field as a second neutral identity. The verifier proves that the first is an Aggregate_Field_Shape, its bounded child run contains the second, and the selected child shape is an Array_Field_Shape with the instruction's scalar element type. After the bounds check, the backend places the parent, then the child field, then the scaled index against the selected target. Neither offset enters checked IR.

Why not flatten or admit the whole array: flattening has D88's nominal and debug-provenance cost. Admitting the whole nested array would also decide contextual literals, fills and copies, while element access needs none of those operations. Two field identities reuse D48's compact element carrier without pretending that broader aggregate-value work is complete.

Pinned by the lowering, verifier and backend public seams; negative/nested-struct-array-element-unassigned; the generated token and IR records; and runtime/nested-struct-array-elements on Linux x86-64.

D90 — A nested fixed-array leaf has contextual assignment forms

Superseded by D118 and D119 for depth, and D241. A nested array field takes every form any array place takes, and is a value like any other array; what follows is history.

The tour said that an array value may be copied, filled and initialized [0520] [0540], while D49--D53 deliberately implement those forms directly in existing storage. D89 reached scalar elements through one ordinary child but did not give the fixed-array leaf a whole-value carrier.

Chosen: a mutable parent.child.array is a contextual assignment place. It accepts an exact array literal, a full or mixed repetition, zeroed, or a storage copy from another direct or depth-one fixed-array place with the same length and scalar element type. The source is admitted only in that copy context. A nested leaf is not thereby a general expression value, parameter, return, discard or operand; those remain L0304. D92 separately admits an explicitly typed local initializer from the nested storage path. Root-binding mutability and [0410]'s source evaluation order are unchanged.

A successful assignment records the whole nested-array fact. A copy source requires every element on every arriving path; whole-parent, whole nested array and complete sparse-element facts retain the equivalence D89 established at branch merges. Module state keeps D10's initialized rule.

Element stores for literals retain D89's parent and child field identities. The compact fill and clear operations carry those same destination identities; a copy carries an independent pair for each endpoint. The verifier walks each bounded child run, checks an Array_Field_Shape, and requires source and destination length and element type to agree. The backend derives both nested offsets and only the leaf's scalar byte extent after target selection.

Why contextual assignment only: these forms already lower directly into known storage and need no aggregate temporary. Extending the leaf to every expression or initializer position would decide a first-class aggregate value and ABI merely because a path can now name its bytes. Keeping independent endpoint identities also avoids flattening either nominal child.

The alternative: make a nested array leaf a general value at once, or admit no assignment to it until it is one. The first pulls parameter, return and operand rules into a storage increment; the second leaves parent.child.array writable only through its parent, which is the copy loop the leaf exists to avoid.

Pinned by the lowering, verifier and backend public seams; negative/nested-struct-array-copy-unassigned; the generated token and IR records; and runtime/nested-struct-array-values on Linux x86-64.

D91 — One ordinary child has contextual aggregate assignment forms

Superseded by D118 and D119 for depth, and D241. A nested struct field takes every form any struct place takes, and is a value like any other struct; what follows is history.

The tour said that a whole ordinary struct may be zeroed, constructed and copied [0540] [0710], while D87 gave a parent one recursively laid-out ordinary child but intentionally left parent.child without value/place operations. D88--D90 then proved every scalar and fixed-array leaf path independently.

Chosen: parent.child is a contextual aggregate assignment place. It accepts zeroed, a matching labelled literal or nominal construction, and a storage copy from either a direct value of the child's nominal type or the same child path in another parent. The root binding decides mutability. The child remains no general expression value, inferred or module initializer, parameter, return, operand or discard; source selection is admitted only for the matching storage-copy context. D92 separately admits an explicitly typed local initializer.

A successful whole-child assignment establishes the parent-field fact, which already denotes every D88/D89 leaf. A whole-child copy source requires that fact on every arriving path; independently assigning some leaves does not invent an aggregate value. Module state remains initialized by D10.

zeroed uses one whole-child clear carrying the parent field identity. Construction lowers each scalar or fixed-array child leaf with that parent as its first identity and the child field as its second. Copy lowering does the same independently for source and destination, reusing scalar field and compact array-copy operations rather than adding an aggregate temporary. The verifier recognizes a whole Aggregate_Field_Shape clear and validates each leaf operation; the backend derives the child's padded extent and both endpoint offsets only after target selection.

Why not a general child value: every accepted form has known destination storage and can commit directly in [0410]'s order. A first-class child value would require temporary representation, ABI rules and expression lifetime without helping these assignments. Keeping its nominal parent identity on each operation also avoids flattening D86's boundary.

Pinned by the lowering, verifier and backend public seams; negative/nested-struct-child-copy-unassigned; the generated token and IR records; and runtime/nested-struct-child-values on Linux x86-64.

D92 — A typed local may copy from a nested aggregate leaf

Superseded by D118 and D119 for depth, and D241. A typed local copies a nested field at any depth as it copies any value of its type; what follows is history.

The tour said that a local initializer may copy an array or ordinary struct from existing storage [0520] [0710]. D51/D55 implemented direct storage and a direct array field, while D90/D91 made depth-one array and ordinary-child paths contextual storage-copy sources.

Chosen: an explicitly typed local fixed array may initialize from parent.child.array, and an explicitly typed local of the child's nominal ordinary type may initialize from parent.child. The written local type must match the source length/element or nominal body exactly. Both copies require the complete source to be definitely assigned. Module initializers from either nested path remain L0304 because they need static image-edge decisions this runtime slice does not make. D93 separately admits inference for a local whose source carries the complete nested shape or nominal identity.

Lowering allocates the ordinary destination slot, then reuses D90/D91's independent source parent/child identities and a direct destination path. A child initializer visits declaration-order scalar and fixed-array leaves; an array initializer remains one compact copy. Verification and target replay are therefore unchanged from the corresponding assignment operations.

Why typed local only: its declaration already supplies the identity and fresh destination storage, so no aggregate temporary or inference carrier is needed. Module image copying and inferred aggregate values have different lifetime and cycle evidence and are not consequences of naming a runtime source path.

The alternative: admit module initializers from the nested paths in the same slice, or require a copy through a named local first. The first needs static image-edge and cycle decisions a runtime copy does not; the second makes the reader write the copy this decision performs.

Pinned by the lowering and verifier public seams; negative/nested-struct-child-initializer-unassigned; the generated token and IR records; and runtime/nested-struct-child-values on Linux x86-64.

D93 — A local may infer its aggregate identity from nested storage

Superseded by D118 and D119 for depth, and D241. An inferred local takes the type of a nested field at any depth, module ones included; what follows is history.

The tour said that := gives a local the type of its initializer [0080]. D92 required an explicit local type even though a depth-one child already carries D71's nominal body and its fixed-array leaf carries D17's complete length and scalar element identity.

Chosen: a local may infer an ordinary child value from parent.child, or a fixed-array value from parent.child.array. The source must be one of the contextual storage paths D90/D91 admitted and must be definitely assigned as a whole. The inferred child keeps its nominal body; the inferred array keeps its length and scalar element. Module inference from these paths remains L0304 because static image edges and cycles are not runtime storage copies.

Lowering is D92's typed-local copy after the checker has recorded the inferred identity: allocate a fresh aggregate or array slot, then visit child leaves or emit one compact array copy with the source parent/child identities. No general expression value or aggregate temporary is introduced.

Why inference is sound here: the source path supplies exactly one complete identity before lowering, unlike a bare labelled literal. Restricting the rule to locals keeps it in runtime storage and does not silently extend module image graphs or the ABI.

The alternative: require the local's type to be spelled whenever its source is nested storage. The source carries the complete nominal identity or array shape, so a spelled type is a repetition the checker would only compare with what it already knows.

Pinned by the checker, lowering and verifier public seams; negative/nested-struct-child-inference-unassigned; the generated token and IR records; and runtime/nested-struct-child-values on Linux x86-64.

D118 — A subobject path is a run of steps, not a pair

The tour said that member selection is left to right and may chain as a.b.c [0420] [1820], and puts no depth on that chain. D88--D90 implemented one step below a parent field and spelt it as a second scalar identity beside the first, which is a pair and cannot say what a third selection reached.

Chosen: every target-neutral operation that names part of an aggregate carries a _path_: a run of steps, each naming a declaration-order position [0750] inside the run the step before it reached, and each carrying the one-based source-order case when the run it indexes is a variant part's payload rather than an ordinary field run. An empty path is the direct operation. The base field stays where it was, so a path of one step is exactly what D88--D90 already meant.

The verifier walks a path against the shapes alone: every step must name a part the run it indexes actually has, and the part the last step reaches must be the kind the operation needs. The backend derives one target offset per step from the same placement the checker used, and adds them. No step, and no sum of steps, is stored in the IR.

Why a run and not more scalars: a pair encodes a depth in its shape, so each further depth would be another field on every instruction, another parameter on every emitter and another branch in the verifier and the backend. A run makes depth data. It is also what makes an aggregate variant payload and an aggregate array element expressible without inventing a second nesting mechanism beside this one.

The alternative: keep a parent-and-child pair and add a third level when depth two arrives, or precompute offsets in the IR. A pair has a ceiling the tour never states; offsets are target facts the IR is designed not to carry.

Pinned by the lowering, verifier and backend public seams; the malformed case Path_Step_Below_A_Scalar_Leaf; and the generated IR record, which now names the base field and every step of every field operation.

D119 — Ordinary nesting has no depth

The tour said that a struct's field may have any type a binding may have [0670] [0750], and that member selection chains as a.b.c [0420] [1820]. D86 admitted exactly one named ordinary child and refused a child that had one of its own, because the pair of identities D88--D90 carried could not say what a third selection reached.

Chosen: an ordinary struct field may be an ordinary struct however deeply that composes. Layout is unchanged: a field's extent is its own body's already-computed layout, so the recursion is the one the checker already does over declarations. A scalar leaf and a fixed-array leaf are a value and a place at any depth, and a fixed-array leaf keeps every contextual assignment form it has at depth one.

Definite assignment keeps one fact per part, named by D118's run rather than by a parent and a child. A fact about a part follows from a fact about anything containing it, which is now "a fact named by a shorter run with the same steps"; branch joins intersect the runs and apply that same containment rule from either side. A whole child at depth two or more is D120's, and a variant part inside a child is D121's; both remain refused here.

Lowering resolves a selection chain once, into the name it started from, the first selection's field and D118's run of the rest. The verifier walks a nested field run recursively, under a budget the vector's own length gives, so a run that named itself is refused rather than followed.

Why no depth limit: every limit here would be an implementation's, not the language's — the tour writes a.b.c and stops. The one thing a depth costs is that the flow stage can no longer pack a path into an integer, which it did with a stride that would have overflowed silently at a field count and depth no rule forbids.

The alternative: cap ordinary nesting at some depth, or flatten nested structs at layout time. A cap is an implementation limit written into the language; flattening loses the child's body identity that aliases and calls rely on.

Pinned by positive/deep-nested-struct-leaves, negative/deep-nested-leaf-unassigned, the generated IR record, and runtime/deep-nested-struct-leaves on Linux x86-64.

D120 — A whole ordinary child is a place at any depth

The tour said that a whole ordinary struct may be zeroed, constructed and copied [0540] [0700] [0710]. D91 gave those forms to one named child of a parent; D119 then let a child hold a child, which left the deeper one with leaves but no whole.

Chosen: a.b.c… naming an ordinary child is a contextual aggregate assignment place at any depth, with exactly D91's forms: zeroed, a matching labelled literal or nominal construction, and a storage copy from the same nominal type reached by any chain. An explicitly typed local may be initialized from one, and a local may infer its nominal body from one. A nominal construction whose body has an ordinary child is admitted, because the labelled child value is already checked against that child's own body.

The root binding decides mutability, and the child remains no general expression value: no operand and no discard. D241 later admits the discard [1930]. D132 later gives a module initializer the same contextual child forms by recursively folding their static image rather than turning the child into a general value.

Lowering keeps one notion of place — a base field and D118's run below it — and descends into it. A literal fills a place; a copy visits the same fields in [0750]'s order one place deeper on each side; zeroed is one whole-part clear whose extent the backend derives from the shape the run reaches. The verifier recognises a whole child at the end of a run, not only at the base field.

Why not a general child value: D91's argument is unchanged by depth. Every accepted form still has known destination storage and commits in [0410]'s order, and a first-class child value would need a representation, an ABI rule and an expression lifetime that none of these assignments wants.

Pinned by positive/deep-nested-struct-children, negative/deep-nested-child-copy-unassigned, positive/module-struct-image-with-a-child, the generated IR record, and runtime/deep-nested-struct-children on Linux x86-64.

D121 — A variant case payload may be an ordinary struct

The tour said that a variant part's cases carry payload fields [0680] and that a struct's field may have any type a binding may have [0670] [0750]. D74 laid a payload out from scalar and fixed-array leaves alone, because the pair of identities every payload operation carried had no room for a third.

Chosen: a case payload field may be an ordinary struct. It takes the same contextual values a labelled ordinary child takes — zeroed, a matching labelled literal or nominal construction, and a copy from storage of the same nominal type — and a match arm's positional alias for it names the whole struct, so its fields are read and written the way any struct's are.

The payload is reached by D118's run: the case a step names is what says the run it indexes is a payload run rather than an ordinary field run. No opcode is added, and the two payload operations D76/D78 introduced keep their exact meaning for a scalar leaf. A payload struct that has a variant part of its own is refused. D132 later admits an ordinary-struct payload in a module image by recursively folding that payload's own image.

Why the alias is a struct and not a second kind of binding: D78's alias already denotes storage; making it denote a struct's storage rather than a scalar's changes what it names and nothing about what a name is. Every selection below it is then an ordinary step of the same run.

The alternative: restrict a variant payload to scalars and arrays, or copy a struct payload out into a local at each match. The first keeps prototype 1's device states unwritable; the second is the copy D85 already declined for arrays.

Pinned by positive/variant-struct-payload, negative/variant-struct-payload-mismatch, positive/variant-inside-an-element, the generated IR record, and runtime/variant-struct-payloads on Linux x86-64.

D122 — A fixed array's element may be an ordinary struct

The tour said that a fixed array is its element repeated [0520], that a struct's field may have any type a binding may have [0670] [0750], and it writes w.items[i].x and xs[i].items outright. D17 made an array's identity its length and its element, and every stage carried that element as one of [1790]'s scalar types.

Chosen: [0520]'s element may be an ordinary struct. Its extent is that struct's own padded layout repeated, so an array adds nothing but the repetition, and an array of one is storage anywhere an array of a scalar is: a struct field, a local, and a module binding. zeroed clears the whole extent, and two arrays of the same length and the same element copy whole.

a[i].f selects a leaf of an element and is a value and a place. [1820]'s indexed accordingly derives a selection after an index, which is what the tour already writes; the parser's by-name refusal of that spelling is retired. Definite assignment keeps a fact per known position _and_ per run inside the element, so writing a[0].x establishes exactly that leaf and reading it asks for exactly that fact — with a fact about the whole element, or about anything containing the array, covering it.

The neutral shape carries the element as a run of exactly one, built by D118/D119's own machinery; a scalar element stays where it was, so no array that existed before D122 changes. An indexed operation carries a second run, applied after the scaled index, which is the only new thing an instruction holds: an index is a value and cannot be a step. Two shapes are the same shape when they hold the same thing, not when their runs start in the same place.

Two forms stayed refused by name: a whole element as a value or a place, and an array whose element is a struct with a variant part. D127 admits both, by making a known index one step of the run rather than a value.

The alternative: forbid arrays of structs, or represent them as a struct of arrays. The first refuses the most ordinary table there is; the second changes what a[i].f means and what sizeof [n]s measures.

Pinned by positive/array-of-structs, positive/computed-whole-array-elements, negative/selection-from-a-scalar-element, the malformed case Element_Path_Below_A_Scalar_Element, the generated IR record, and runtime/array-of-structs on Linux x86-64.

D126 — A variant part is reached by a run like any other part

The tour said that a struct's field may have any type a binding may have [0670] [0750], and that a variant part is one of the things a struct declares [0680]. D86--D122 admitted an ordinary struct as a field, a variant payload and an array element, but only when it had no variant part of its own: every variant operation named its part by one base field, and a part below that field had no way to be said.

Chosen: the five variant operations — select, tag load, payload load, payload store and whole-part copy — carry D118's run down to the part, exactly as every other operation already does. An empty run is D74's variant part of the storage itself, which is where all five started. A copy names each endpoint separately, for the reason an array copy does: the two parts have one shape but need not sit in the same place.

So a struct with a variant part may be an ordinary child, and may be a variant payload; a match subject may be any chain that reaches a variant part, including one rooted at D121's payload alias; and the arm's own aliases carry that run with them.

Composing a run and a selected case fixes their order. The run reaches the part, and the case is then selected _inside_ the part, so the payload offset is the reached part's own and not the base field's. A run _below_ a selected payload is a Case_Index step of the same run, so nothing is ever added after the payload and one order suffices.

An array element was still refused here: a run reaches a part by identities, and an index is a value. D127 makes a known index one of those identities and admits it there.

The alternative: give variant operations their own base-and-part addressing beside D118's runs, or forbid a variant part below the storage's top level. The first is two path vocabularies for one storage model; the second keeps a state machine out of every struct that holds one.

Pinned by positive/nested-variant-parts, positive/variant-inside-an-element, the malformed case Variant_Path_Reaches_A_Scalar, the generated IR record, and runtime/nested-variant-parts on Linux x86-64.

D127 — A known index is an identity, so an element is a place

The tour said that a fixed array is its element repeated [0520], that a whole struct may be zeroed, constructed and copied [0540] [0700] [0710], and it writes w.items[i].x outright. D122 gave an array an ordinary struct element and made a leaf of one a value and a place, but left the whole element neither, and refused an element with a variant part: every whole-part and variant operation reaches its part by identities, and an index is a value.

Chosen: an index the compiler knows is one of those identities, so it is one step of D118's run. A whole array element at a known position is a value and a place wherever a whole ordinary child is one: zeroed, a labelled literal or nominal construction, a copy from storage of the same nominal type, a call's destination, and a call argument. An array whose element is a struct with a variant part follows, because the run now reaches the part.

Where a run may start is one question, asked once. Base zero with no run is the storage itself; base zero with a run is whole array storage the run starts at; a positive base is [0750]'s field of a struct, or [0520]'s element position of an array. A field operation names one part and then a run below it, so a run that starts at whole array storage gives its first step to the part — which is what a known index of a scalar array has always meant. That one promotion is the only place the two conventions meet.

This decision initially left a computed index refused because reaching a whole element needed an address the contextual forms did not form. D134 closes that boundary with a checked, unspellable storage address while leaving known positions as the identity steps chosen here.

Why not a new opcode or operand: an indexed operation already carries a scaled index and a run; a known position needs neither, because it is a position. Adding a second element operand would make every consumer ask which of two ways an element was named, and the neutral IR would hold a number that is a value in one form and an identity in the other.

The alternatives: admit a computed index by forming an address, keep the whole element refused and enable only the variant element, or give an element its own opcode. The first crosses the boundary that keeps every contextual form addressable by identity; the second leaves the array's own whole form the last one missing; the third duplicates D118's run at one depth.

Pinned by positive/whole-array-elements, positive/variant-inside-an-element, positive/computed-whole-array-elements, positive/variant-part-at-a-computed-index, the malformed case Whole_Element_Beyond_The_Array, the generated IR record, and runtime/whole-array-elements and runtime/variant-inside-an-element on Linux x86-64.

D132 — A folded aggregate image recursively contains aggregate fields

The tour said that a module binding already has its value before the entry point [1460], that a struct literal takes its nominal context from its use [0710], and that fields retain source order while each target supplies widths, alignment and padding [0750]. D120 admitted an ordinary child as a contextual runtime value and D121 did the same for an ordinary-struct variant payload, but both kept the corresponding module image refused because D67/D81 could carry only scalar and compact fixed-array leaves.

Chosen: a labelled or nominal module construction may give an ordinary child, at any depth, exactly D120's contextual forms: zeroed, a matching labelled or nominal construction, a direct module struct image, or one directly selected ordinary child of matching nominal type. A selected variant case may give an ordinary-struct payload the same forms. Written and inferred module constructions share the rule. Type aliases preserve the declaration that owns the child, and every copied image owns distinct storage.

These forms remain contextual. They do not make a child or payload a general operand, discard or independently evaluated aggregate expression. An omitted field, of zeroed, explicit zeroed, or a copied absent source has the absent all-zero image. A written nested construction remains a written image even when all of its folds are zero, as D24 and D66 require.

The target-neutral aggregate image keeps D66's flat top-level fold run and extends D67/D81's descriptor run with Nested. Its Offset and Count select one contiguous declaration-order run of direct child descriptors after the top-level descriptors. A child descriptor may itself be Nested or Selected; scalar descendants carry one fold or D131 routine relocation in their descriptor, while fixed-array descendants retain Absent, Finite, Repeated or Hybrid and share the item's existing fold run. Selected and Nested offsets count descriptors; finite and hybrid offsets count folds. Neither run contains a target width, byte offset, padding byte or host representation.

Direct image names and selected-child sources join the existing per-declaration static-image graph. Forward references and aliases are followed before an image is gathered. A path that returns to a declaration reports L0305 once, including a cycle that alternates ordinary-child selections, variant payloads and whole aggregate aliases; invalid members or nominal mismatches retain their contextual owner and add no graph diagnostic.

The verifier first proves both item-owned vector partitions. It then walks the recursive descriptor tree with monotonically increasing descriptor and fold cursors: each direct-child count must match its neutral shape, every offset is canonical and in range, every descriptor is consumed once, every ordinary scalar or compact array fold fits the selected target, and every D131 routine relocation agrees with its recursive signature. A nested form on another field kind, a skipped or backward descriptor run, an unconsumed descendant, a wrong child count, and a 32-bit-only range failure are ordinary release-build IR faults before a backend accessor runs.

The backend recursively replays the same neutral field and selected-payload shapes used for runtime layout. It writes scalar folds or routine symbols at this target's widths, emits compact array forms, and derives every internal gap, inactive variant tail and aggregate tail as zero padding. Thus one image may contain a .long usize child and occupy 20 bytes under the synthetic 32-bit facts while the same IR contains a .quad child and occupies 40 bytes on Linux x86-64. No startup code, target image blob or recursive aggregate SSA value is introduced.

A nonzero module array image whose element is an ordinary struct remains the separate array-literal value boundary: D132 adds recursion at ordinary fields and ordinary variant payloads, not a per-element aggregate image carrier.

Why one recursive descriptor run: flattening child leaves into their parent would erase nominal boundaries and variant ownership; target byte blobs would duplicate images per target; startup stores would contradict [1460]; and one new vector per depth would encode an implementation limit. The existing item-owned descriptor partition already represents a recursive shape once an ordinary child can point into it.

The alternative: admit only zeroed for a nested child in a module image, or unfold an image one level and stop. Both leave a configuration table a program has to build at startup, which [1460] forbids running.

Pinned by positive/module-struct-image-with-a-child, positive/recursive-module-images, negative/recursive-module-image-cycle, negative/recursive-module-image-nominal-mismatch, the recursive aggregate malformed-image verifier cases, the lowering and 32-/64-bit backend seams, the generated lexical and IR records, and runtime/recursive-module-images-are-laid-out-and-distinct on Linux x86-64.

D134 — A computed aggregate element has a checked internal address

The tour said that an array is a value and assignment copies [0520], that an enabled array element is a place [1810], that indexing checks the length before computing an address [0580] [1950], and that evaluation order is fixed [0410]. It never distinguishes a whole aggregate element at a known index from one at a computed index. D127 made the known position an identity step but left the computed form refused because the contextual aggregate operations then had no carrier for its address.

Chosen: every whole aggregate-element context D127 admits also accepts a computed index: typed and inferred local copies, whole assignment from zeroed, construction, storage, calls or non-loop control values, aggregate arguments and named results, and a variant part inside the element. Aggregate parameters and named results are ordinary storage endpoints in those same copies. A chain may contain more than one computed index; each is evaluated from the root outward, exactly once.

Lowering evaluates and bounds-checks a computed destination before evaluating its assigned value. It forms an internal storage address carrying the complete target-neutral shape reached, stores that carrier in an unnamed usize frame slot when it must cross a control edge, and applies the existing contextual aggregate operations through it. The address is unspellable in Landin source, is never a source pointer or alias, and creates no new source type or ABI position. Known indexes remain D127's identity steps and introduce no runtime operand.

The verifier proves that an indexed address starts at fixed-array storage, that its operand is usize, that the reached element shape agrees with the address slot, and that an arbitrary integer cannot substitute for it. The Linux x86-64 backend performs the bounds check before multiplying by the target-derived padded element extent and adding the result to the target-derived storage base. It derives every later child, array and variant offset from the neutral shape as before. D22's definite-assignment rule is unchanged: a computed read of tracked local storage needs the whole-array fact, and a computed write establishes no particular element fact.

A computed variant subject is copied once into independent shaped storage before its exhaustive tag cascade, so payload aliases of scalar, fixed-array or ordinary-aggregate shape all refer to that one subject value. A computed variant destination preserves its siblings in shaped storage while its selected case is formed in source order, then writes the complete element back. Calls registered by defer or undo use the ordinary complete-call parser and may therefore delay a selected function-field callee as well as a direct or locally stored function value.

Why an internal checked address: expanding one operation per scalar leaf cannot represent a target-sized fixed-array field compactly; exposing a source pointer would enable aliasing and pointer syntax the reference rules own; and one special computed-element opcode per construction, copy, call, control or variant form would duplicate the contextual operation family. One verified shaped address lets those existing forms compose without freezing target offsets in IR.

The alternatives: keep D127's computed refusal, materialise every computed element in a temporary and never address the original, or make every subobject path carry interleaved runtime values. The first contradicts [0520] and [1810] after every other element context exists. The second cannot update the original place without another carrier. The third would put block-local values into the shared identity path and make every existing path consumer distinguish two meanings. All were declined.

Pinned by positive/computed-whole-array-elements, positive/variant-part-at-a-computed-index, the malformed runtime-address verifier case, the generated IR record, and runtime/computed-aggregate-elements, runtime/r230-composition, and runtime/r230-composition-trap on Linux x86-64.

D214 — A trailing value fill has one exact type and one evaluation

The tour said [0720] permits of false when the remaining fields are bool and requires the fill to typecheck for every omitted field. D65 had refused all nonzero fills because one syntax node cannot have several types or be evaluated several times. The hosted-parity audit found that its homogeneous refusal was broader than that reasoning: one exact descriptor needs neither conversion nor re-evaluation.

Chosen: a nonzero trailing fill requires at least one omitted field, and all omitted fields have one complete identical descriptor, including array extent, nominal identity, reference permission and function signature. The omitted field supplies the same context as an explicit label. zeroed keeps its existing per-field zero-image rule and may cover heterogeneous fields or no fields. A nonzero fill with no omitted field is refused because there is no destination to supply its contextual type; an independently wanted effect is written as a separate statement.

Written labels commit in source order. The fill is then evaluated once into ordinary temporary storage and copied to omitted fields in declaration order. When exactly one omitted field receives an unpacked array repetition in an ordinary struct, the repeated element is evaluated before any array write and the repetition may write directly into that field. This avoids a full-array temporary and copy while preserving aliased reads and leaving edges during element evaluation. Other fills retain temporary storage. The temporary rule covers case payloads, whole assignments, construction calls and nested aggregate/array fields. A failure or control transfer during evaluation uses ordinary recovery and cleanup; no copy is performed on an edge that leaves. A module image requires the same compile-time values as explicit labels and reuses the existing recursive image representation. Reference-containing fills retain their origins, and repeated copies confer no ownership or allocation lifetime guarantee. This changes no allocator or arena rule.

The alternatives: evaluating a fill once per omitted field changes observable calls; assigning a separate inferred type to one node corrupts shared checking facts; converting per field changes the language's explicit-conversion rule. All remain declined. D65's exact-homogeneous alternative is enabled by the once-evaluated scalar, array, aggregate, pointer, callback and recovery evidence. The grammar still requires a named field before trailing of; the all-of spelling remains excluded, and complete zeroed retains its existing spelling.

Pinned by positive/struct-literal-of-expression, runtime/r490-generic-field-fill, runtime/r490-generic-fill-recovery, runtime/r490-generic-static-fills, negative/r490-fill-mixed-types, negative/r490-fill-array-shapes, negative/r490-fill-atom-sets, negative/r490-fill-pointer-permissions, negative/r490-fill-case-mixed-types, negative/r490-fill-no-omission, negative/r490-fill-frame-escape and negative/r490-fill-unassigned.

D216 — Atom storage retains its complete structural set

The tour said that an atom is a type [0630], a union names an enumeration [0640], and arrays and structs hold typed elements and fields [0520] [0670]. The inherited implementation admitted atoms across calls but omitted them from ordinary field and array descriptors; parameterized atom fields could fail before lowering, while the apparent numeric carrier lost their identity.

Chosen: atom sets compose as runtime leaves in fixed arrays, ordinary fields and variant payloads, including generic substitution. They retain the existing atom carrier and declaration identity; storage, instance keys, static images, slice views and payload bindings preserve the complete structural set. A write may supply a member of its destination set. Reading preserves the whole destination set, and aggregate or array copying requires the same complete descriptor. Neither the carrier nor a singleton set grants numeric operations, conversions or an all-zero value. D143's zeroability requirement still applies to an empty array for explicit zeroed or concept membership. D131's existing implicit empty module-array exception remains: no element exists to initialize. Recursive aggregate zeroability inspects atom metadata; an omitted module image cannot silently create a zero atom, pointer or function address. D214's fill requires equal omitted-field descriptors even when one source atom would be a member of each unequal set.

The alternatives: treating stored atoms as ordinary integers erases identity and admits invalid writes; making each loaded singleton a new storage type breaks structural generic keys. Both are declined. This completes the ordinary composition rule without changing atom equality, D189's optional-pointer restriction, C boundary eligibility or inference's complete-key requirement.

Pinned by negative/parameterized-struct-dependent-errors (the original source now refuses its missing atom initializers), positive/parameterized-struct-template-order-inner-first, positive/parameterized-struct-template-order-outer-first, positive/parameterized-struct-unused-shape (all original source bytes), runtime/r490-generic-atom-arrays, runtime/r490-generic-atom-fields, runtime/r490-generic-atom-storage, runtime/r490-review-generic-distinct-atom-array, runtime/r490-generic-static-selection-descriptors, negative/r490-atom-array-numeric-write, negative/r490-atom-array-wrong-member, negative/r490-atom-array-copy-identity, negative/r490-atom-array-arithmetic, negative/r490-atom-array-zeroed, negative/r490-generic-atom-field-member, negative/r490-fill-atom-sets, negative/r490-atom-aggregate-zeroed, negative/r490-atom-aggregate-zeroable, negative/r490-atom-module-arrays, negative/r490-atom-fill-zeroed, negative/r490-reference-module-arrays, negative/r490-review-generic-atom-zero-aggregate, negative/r490-review-generic-atom-zero-array, negative/r490-review-empty-module-zeroed, runtime/r490-review-generic-empty-module-nonzeroable and the verifier case typed indirect atoms are checked, whose corrupt-load and invalid-write controls preserve the distinction between exact reads and subset writes.

D241 — A general aggregate value follows its destination, and a discard takes what a binding would

The tour said that an array is a value [0520] whose length may be inferred from its literal [0530], that zeroed is an image its destination gives context [0540], that ordinary and variant-bearing structs are types [0670] [0680], that a case with no payload is an atom [0690] and that matching has constant patterns [1210]; [1930] says anything with a type may be thrown away. The aggregate work admitted aggregate values position by position, and every position not yet admitted was one L0304 whose note said that work enables it. At the construct audit thirty-four checker sites still carried that note, with the aggregate work complete.

Chosen: each site was reproduced and classified against the text that governs it, and the construct that owns it now says one of three things.

Implemented, where the normative text already says the form is language:

  • Discards. _ = e accepts every whole array or struct place — a binding, parameter, named return, match alias, field at any depth, element, .val target or slice element — and every expression an inferred local binding x := e accepts. A place is discarded where it stands: its computed indexes are evaluated and bounds-checked once and nothing is copied. Any other value is checked and evaluated exactly as x := e would be, then dropped. Discarding an unassigned local reads it and is L0302.
  • Inferred literals of any element shape. A local array literal takes its element type from its first element — a slice, text view, pointer, function, atom set, struct or array as much as a scalar — and every later element must match it. An inferred local may likewise copy a whole array or struct parameter or named return, which the typed form already could. Counted repetition kept [0560]'s scalar element and module images D26's until D1664 and D1947 lifted both; an any element still needs a written array type.
  • Variant payload arrays. A fixed-array payload field takes every expression an ordinary struct's array field takes — an element, a call, try, array arithmetic, a control expression, a deeper field, a parameter, .val or a slice element — as D84 said it should. The case is still selected before its payload is evaluated (D76); a call fills a temporary that is then copied, and no IR destination form is added.
  • Two defects found on the way: discarding an element of an array of slices or text views crashed a later stage, and a struct whose field type had already been refused received a second report.

Reclassified as type errors (L0301), where the old report called a type error "not enabled": a value name used as a type, a type name used as a value, a whole struct, array, field or construction in a position that takes another type, a variant case where a whole struct belongs, a struct comparison (D200), zeroed as an operand, and a match on a number. The last follows [1210] as now written: a subject is an atom set, a variant part or a pointer union, and a number is compared with if rather than matched. The grammar has no literal arm, D77 left scalar subjects refused, and the derived parser needed none. The catalogue later gave these refusals codes by rule: misused aggregate values are L0334, a type name used as a value L0338, zeroed as an operand L0328, and a match on a number L0333; L0301 keeps genuine type disagreements.

Recorded as boundaries: the rest keep L0304 and their second note says "this is a recorded source-form boundary". An untyped struct literal needs a named type from its destination [0670]. An array literal takes its shape from an array destination or an inferred binding, and an uncounted repetition its length from an array destination, so a count-less inferred initializer is refused [0560]. Mixed repetition needs an explicitly typed destination, and repetition a nonzero length or count. A counted repetition inferred only a scalar element until D1664 lifted it. A variant part is a member of its struct with no value of its own, written with a case rather than copied [0680]; a variant case is written where its part is the destination [0690]. A match alias of an array is not copied (D85). A construction is a value, not a statement. A module image folds only what [1940] knows. Five guards that no source reaches keep the same wording rather than becoming compiler defects.

The alternatives: a bare case as a standalone atom value, as [0690]'s "It is an atom" could be read, was declined: a case identity belongs to its part (D74), and making it a first-class value would need a mapping from atoms to tags in both directions and a second widening path, for no program that wrote one. A variant part as a value of its own was declined because it is the general variant value D76 refused, a union with no struct around it. Copying a match alias of an array was declined for D85's reason. Matching numbers with literal arms was declined for the reasons above. Leaving the discards refused was declined because [1930] is kernel text. Keeping every site a pending promise was declined because the aggregate work is complete and [1830] forbids a note that promises nobody's work.

Pinned by positive/r720-discard-aggregate-places, positive/r720-discard-inferred-values, positive/r720-inferred-reference-literals, positive/r720-inferred-aggregate-literals, positive/r720-payload-array-values, runtime/r720-discards-evaluate-once, runtime/r720-discard-index-traps, runtime/r720-inferred-arrays-hold-references, runtime/r720-payload-arrays-take-values, negative/r720-discard-untyped-struct-literal, negative/r720-variant-part-has-no-value, negative/r720-variant-case-needs-its-part, negative/r720-any-element-needs-typed-array, negative/r720-match-alias-array-not-copied, negative/r720-module-initializer-boundary, negative/r720-case-is-not-a-whole-struct, negative/r720-aggregate-comparison-refused, negative/r720-match-subject-type, negative/r720-refused-field-adds-no-cascade, negative/r491-inferred-repetition-refusals and negative/array-repetition-countless-inferred-initializer-not-enabled.

D1664 — The value-model admissions fold into the rules that still decide

The tour said at [1880] which contexts give a value form its type, and D241 admitted every form in every governed position, leaving a short list of boundaries. D24 to D109 record the first roadmap's admissions one cell at a time, and most of their chosen paragraphs describe boundaries that no longer exist. A reading of the checker found about 950 lines of per-slice checking in four places, copies of the general dispatch, and two boundaries that still lag: a counted repetition infers only a scalar element, and lenof of a literal (D31) takes only scalar elements.

Chosen: the register and the checker fold. Each decision of D24 to D109 that only admitted one more cell is marked as superseded by the rule that now holds; about eleven statements still decide something (D29's write order, the static images, definite assignment of a whole array, the case before its payload, arm aliasing, nested layout, by-value transport, D241's boundaries, D31, the layout decisions and D72's construction syntax). The checker's per-slice paths collapse into the general one, and both lags are lifted: a repetition and lenof take any element shape, as a literal does. How far the checker folds is read first, against every citation. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: marking each superseded boundary without touching the checker, which leaves the duplicated checking for every later value-form change to edit twice; and leaving both as they are, where a superseded boundary reads as a live rule. Both were declined.

Pinned by positive/r720-counted-repetition-element, positive/r491-inferred-repetition-elements and runtime/r1990-repetition-and-lenof-of-structs; the fold keeps every fixture that pins D24 to D109's surviving rules.

D1947 — An inferred module array takes any element shape

The tour said at [0530] that a literal may supply an omitted array length, at [0560] that a counted repetition may too, and at [1940] that a module value is known when the compiler reads it. D26 and D35 gave an inferred module array D25's and D33's shape but only from a scalar element, and D1664, which lifted the scalar element of a local repetition and of lenof, did not reach module scope. points := [first, second], with first and second module structs, was refused, while points: [2]point = [first, second] formed the same static image.

Chosen: at module scope as at local scope, the first element of an inferred literal, or the repeated value of a counted repetition, gives the array's element type whatever its shape, and every later element must have that type. [1940]'s known-value rule still decides which elements form an image, so a module array whose elements cannot be folded is refused for that reason and not for its element's shape. The maintainer chose this on 2026-11-21, answering the question the fold's reading raised.

The alternative: keeping the scalar element at module scope as a recorded boundary, which leaves one shape inferred at one scope and not the other when the typed form already forms the image; it was declined as the kind of special case D1664 removes.

Pinned by positive/r720-inferred-module-array-element and runtime/r1990-repetition-and-lenof-of-structs, whose module literal and repetition hold struct elements.

D405 — One match arm names several cases, and none of them binds

The tour said at [1210] "No fallthrough; list several labels instead", and [1220] writes north, south: name = "along". D77 began with one case per arm, and the grammar's match_arm took one, so the tour's own example was refused with L0103, "a match arm puts : after its case".

Chosen: match_arm ::= match_label ("," match_label)+ ":" ... beside the one-case arm: an arm may name several cases of an atom set, a variant part or a pointer union, separated by commas, and what it runs is shared. Every label counts toward exhaustiveness, and a label named twice, in one arm or across two, is L0311 whatever the subject; an atom set's duplicate, L0333 until now, joins the variant part's and the pointer union's. An arm that binds a payload names one case: bindings after several labels are L0103, "an arm that binds a payload names one case", whose note says to give that case an arm of its own. _ covers every case no other arm names, so it is never one of several labels, L0100. Lowering compares the subject with each label in source order and branches to the one block the arm owns, so the body is lowered once; an arm reads no pointer only when none of its labels is the pointer case.

The alternatives: labels that share bindings, a(x), b(x): use(x), when every label binds the same names with the same types and conventions, which needs one alias per label under [1220]'s aliasing rules and has no program asking for it; and correcting the tour instead, which drops a feature it states in words to fit the parser. The labels on if and match that [1180] dropped were statement labels, not case labels, and are not revived.

Pinned by positive/match-arm-names-several-cases, which is [1220]'s example as written, runtime/match-arm-names-several-cases, negative/match-label-named-twice, negative/match-arm-binding-names-several-cases and negative/match-wildcard-among-labels.

D434 — A wildcard atom arm binds the atoms no other arm named

The tour said at [0640] that an atom value widens only into a union that contains it, at [1210] that _ is an arm of its own, and at [1220] that a pattern binding carries a convention. A _ arm did not narrow its subject, so a failure set mixing a program's own atom with library atoms could not pass the rest to failure.words (D388), and each library atom was named in an arm of its own. The grammar already parsed _ (rest):; the checker refused it as an atom arm with a payload.

Chosen: on an atom-set subject, the last arm _ (rest): binds one new read-only name to the subject's value, typed as the structural set of the subject's atoms that no other arm names. The subject keeps its own type: this is a binding, as a pointer union's ptr (p): is, and not the flow-sensitive narrowing D189 declined. The name is definitely assigned on entry to the arm and carries no origin, and rest widens wherever that set does. Lowering stores the subject's code into the binding under the narrower set; an atom's code does not change with its set, and the store tests each candidate but the last so the IR verifier sees an atom of the narrower set. A _ arm that binds when every atom has its own arm, more than one name, an inout or a sink binding, or a binding on a named atom arm, is L0333.

The alternatives: keeping the refusal with a note naming the per-atom route, which for a failure set means thirty-two arms; and a checked narrowing conversion that traps outside the set, a runtime trap where a static form exists, for a type that has no conversions.

Pinned by runtime/failure-words-own-atom (a negative fixture until this decision) and negative/wildcard-rest-binding.

D435 — A module array's elements may be selected-case images

The tour said at [0040] and [1940] that a module binding holds a value the compiler knows, and at [0680]–[0700] what a variant case is. D81 made a module struct literal selecting a case a static image, and that included a payload-free case, local or imported and written qualified, but a module array literal whose elements were such literals, [(kind: leaf)], was L0305: the known-value test did not know a case name or a case construction, and no decision covered the array.

Chosen: a case name, plain or qualified, and a case construction are known wherever D81 accepts them, so each element of a module array literal, nested arrays included, is D81's selected-case image inside D67's element run. Nothing new is represented: an array of variant-bearing structs copied from named module images already built one, and the image validation reads a qualified payload-free case as it reads a plain one.

The alternatives: keeping the refusal with a note naming each element as a module binding, [one, one], which is the same image written twice; and leaving the gap until a program needed it, which the image builder made unnecessary.

Pinned by runtime/module-variant-images, on every target.

D2175 — An atom set naming one member twice is warned about

The discrepancy: a failure set or atom union that names one atom twice, ! mem.not_found | mem.not_found, was accepted without a word [0640]. R20's merged atoms left sets doubled across the corpus, each found by searching.

Chosen: L0697, a warning under D251's policy, at the second name of a member, atom or declared set, that an earlier member of the same written union names; the related label is the first. The set means what it would with the name once, so its exact fix removes the second name with the | before it. Like L0684 it is raised only on a program with no error. Two sets that share atoms, vertical | north, name no member twice and are not warned about.

The alternatives: refusing the doubled set, which makes a lint a rule of the language against D251; and leaving it to refine fix's removed-name rewrites (D2129), which remove a duplicate only for the names R20's list renamed.

Pinned by negative/atom-named-twice-in-a-set, in a declared set, a parameter's set and a failure set, whose fixed program compiles with no report; and positive/parameterized-atom-union, whose repeated member is still accepted and now warned of.

D2179 — The refusals say how a union of atom sets is split

The discrepancy: a match arm cannot name a declared atom set, and a reader splitting posix.errno | failure.reason tried posix.errno (number):, which was L0333 twice, "an atom arm has no payload to bind" and "this atom is not a member of the matched set", neither saying how. A comparison does not narrow either (D189, D434): if problem <> report.refused then gave_up(problem) end if was L0301 with a note naming only the widening rule.

Chosen: the maintainer's answer to the question: no new form. [1210] says a union is split by naming one side's atoms, which may share an arm, and ending with _ (rest):, which binds the other side's as a set (D434). An arm that names a declared atom set is one L0333 whose note says so; the set's atoms count as matched, so none is also reported missing. L0301 at an atom value whose set has more than one atom and is not inside the one required adds to its note that a comparison does not narrow, and that match with _ (rest): does.

The alternatives: an arm that names a declared set and binds the subject narrowed to it, a language change the maintainer declined until a second program wants it; and keeping both refusals, which say what is wrong and not what to write.

Pinned by negative/atom-set-union-is-split-with-rest.

Decisions: Lifetime, escape and allocation

Which origin a reference carries, where it may reach, and who owns the storage a call consumes.

D140 — escaping precedes an explicit parameter convention

Amended by D1655. in is never written: escaping precedes inout or sink, and a parameter without either is read-only.

The tour said that in, inout and sink are conventions written before a parameter name [0900], that escaping is orthogonal to all three [0780] [0900], and that attributes are prefix words [0760]. It did not say how the two prefixes are ordered when one parameter carries both.

Chosen: escaping first, then an optional explicit convention, then the name: escaping inout item: ptr mut node. The parser retains explicit in apart from the omitted default even though both have the same language meaning. Type and fixed formals keep their existing spellings and admit neither runtime modifier.

The alternatives: convention first, or both permutations. Convention first makes the general prefix attribute interrupt the parameter it qualifies; admitting both creates two source spellings for one signature fact and makes recovery decide whether a repeated modifier was an order variation or a second modifier. Either is workable, and neither was selected by the tour.

Pinned by the parser case reference signature syntax is represented and the resolution case return sources retain parameter positions.

D1655 — in is never written on a parameter

The tour said at [0900] that a parameter is in unless it says inout or sink, and D140 kept a written in only as a distinct syntax fact. The library writes none.

Chosen: in is no longer written: a parameter without a convention is read-only, as it always meant, and a written in is refused naming that. escaping keeps its place before inout and sink. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: keeping the word as optional emphasis, two spellings of one meaning. Declined.

Pinned by negative/parameter-in-is-not-written, whose fix removes the word. D140 is marked amended. Assembly operands keep their in, which says which way a register carries a value.

D149 — inout exclusivity is checked only for a provably identical place

The tour said that inout may replace its argument exclusively [0900], while [0770], [0860] and [1720] reject a borrow checker or whole-program alias claim. It did not state what a caller passing the same storage twice must prove.

Chosen: one call may not fill two inout parameters with the same provable binding-rooted place. Equality follows declaration identity and an identical ordinary field path; that case is L0337 at the later argument with the first as its related place. Distinct pointer paths and computed indexes may alias at runtime, but proving that requires alias analysis Landin does not claim. Such possible aliasing is accepted and explicitly outside the guarantees. The callee's writes still occur in [0410] source order; acceptance is not a non-alias promise.

The alternatives: accepting f(x, x) would make “exclusively” false in the one case the local checker can answer. Rejecting all pairs of pointer or index paths would reject ordinary code without proving overlap. Interprocedural alias analysis or ownership would reverse [0770]. All were declined.

Pinned by negative/inout-same-place-twice and runtime/inout-pointer-alias-is-unchecked.

D212 — Arena authority is explicit and allocation does not create a region

The tour promised a builtin arena type and arena name do block whose allocations had frame origin locally and independent allocated origin through a helper. W7 argued that every escaping result would pass the block's exit. D191 asked for a real type, backing, exhaustion and origin contract; D196 identified the helper-side-effect path that argument omitted.

Chosen: withdraw both builtin forms. An arena is an ordinary allocator value with explicit backing and extent, such as mem.arena_over. Ordinary conformance supplies allocation, optional in-place growth and free. The inout-receiver mem.allocator of this decision was a generic evidence contract, not itself object-safe, and needed a pointer-receiver adapter to be called through any; since D288 its entries take a record handle by value, which D289 makes object-safe, so any mem.allocator needs no adapter. The frontend has no privileged knowledge of core/mem. The named refusals remain migration diagnostics pointing to this decision, not promises to enable these forms later. Declared names spelled arena remain ordinary.

The caller chooses backing and capacity on every target: a frame array through the explicit unchecked constructor, static storage, or storage explicitly acquired from another provider. Target-sized extents and checked request arithmetic determine exhaustion. A monotonic provider reports out_of_memory without changing state when the request does not fit; the counted provider can force the same edge. Nested ordinary scopes create no implicit provider or region. Separate backing yields independent exhaustion; reusing or overlapping backing remains manual lifetime policy. The backing owner releases acquired storage explicitly, arranging defer for normal, failure, return, break and continue exits when needed. No implicit cleanup, guessed frame buffer, hosted heap fallback or destructor is added.

Independent allocator results keep the existing no-from contract. It permits simultaneous allocations and helper results used by the caller, including pointer-containing aggregates, slices, erased values and callback state. The implementation's explicit integer-to-pointer conversion removes tracked origin under [0470]. A helper may retain its result in module storage without returning it through any caller boundary. Accordingly, arena_over now requires escaping base: an ordinary call cannot build the provider over tracked frame backing. Its representation is private, so a struct literal cannot evade this constructor rule. The explicitly named arena_over_unchecked allows local backing when the caller takes responsibility for all direct and helper-held results. Since D288 both fill a caller-declared mem.arena_space and return a handle from that state and the base, so the handle retains both origins. Backing validity, exact capacity and explicit release remain the caller's responsibility; neither constructor adds a lifetime borrow to allocation results. Explicit pointer-to-integer round trips remain [0470]'s separate opt-out.

Why not the alternatives: W7's omitted module-store path is executable without returning a value, so checking only the caller block exit is insufficient. Retaining the allocator's mutable borrow on each result would reject its next allocation and defeat the ordinary allocation idiom. A result borrowed from a D288 handle, passed in, would no longer lock the arena, but a container keeping it in its own inout storage would be L0314, so the integer conversion stays. A new region effect system across erased calls, callbacks and helper side effects would be a different semantic design, unsupported by the local origin model; pretending an unsafe integer conversion preserves that promise would be false. Permitting frame backing in the ordinary constructor left the same hazard at every allocator call. Requiring retainable backing there, while preserving an explicit local opt-out, keeps the existing allocator contract honest.

Pinned by runtime/r480-arena-independent-results, runtime/r480-arena-nested-exhaustion, runtime/core-mem-allocators, runtime/core-mem-arena-boundaries, runtime/arena-is-an-ordinary-name, negative/arena-block-names-owner, negative/arena-type-names-owner, negative/core-arena-frame-escape, negative/r440-parser-frame-arena, whose frame backing the checked arena_over now refuses, negative/frame-origin-return, negative/r480-callback-frame-escape, negative/r480-helper-frame-retention, negative/array-reference-frame-return, negative/core-text-frame-slice-escape, negative/any-frame-origin-escape, and runtime/any-untracked-pointer-origin.

D217 — Retained stores and payload replacement follow backing storage

The tour said that frame references cannot be retained [0770], parameters are non-escaping by default [0780], origins join restrictively [0840], and payload aliases end at last use [1220]. It did not spell out destination-origin comparison or a whole construction's alias-check boundary.

Chosen: [1910] checks the backing of a retained store, not merely its root binding. A reference from the same parameter origin may update that origin's storage; another retained parameter must be escaping. Writes through known local address aliases join into the local's stored origins. An untracked alternative never erases a tracked restriction, and writing a pointee does not change the pointer descriptor's own origin.

Payload storage has its own lifetime even when its value is scalar. D76's direct case selection precedes its payload initializers. The local replacement check also requires last use before a whole containing construction starts; code that needs an old scalar saves it first. D134's computed value destination retains its existing temporary-and-copy-back order. These are local checks, not interprocedural alias analysis or a change to [0470]'s explicit boundary.

The alternatives: checking only module bindings misses caller-owned storage; treating scalar payload names as copies contradicts D78's aliases. Letting an untracked alternative dominate a tracked one contradicts [0840]. Tracking each field publication separately inside a whole construction would admit more initializer arrangements, but would make the borrow boundary depend on the construction's internal field schedule. The explicit last-use boundary keeps that rule visible at the containing assignment.

Pinned by negative/r491-retained-reference-stores, negative/r491-live-payload-aliases, runtime/r491-reference-store-origins, runtime/r491-payload-alias-last-use, the driver's refusal-without-effects case, and the existing pointer-vector growth and initialized-allocation fixtures.

D220 — A sink path stops at referenced backing storage

The tour said that a sink path has a binding root, no dereference and no computed index [0910]. D127 made a known fixed-array index an identity step. The implementation also admitted literal slice indexes, even though they reach storage through the descriptor's backing reference. Consuming through a local view could then hide an inout array's restoration obligation.

Chosen: [1910]'s sink-place check stops at every slice index, just as it stops at a pointer dereference. A literal index into a fixed array still names one contained place. A slice-valued binding, ordinary field or fixed-array element names descriptor storage and remains an eligible sink argument. The existing inout restoration rule applies to those admitted places on every exit. The same boundary applies after generic type substitution.

This distinguishes prototype 3's descriptor field l.items from an element reached through that descriptor. It also preserves prototype 4's consumed reader-field restoration. Copies and reference-origin checks keep their own rules; this does not add ownership or interprocedural alias analysis.

The alternatives: transferring restoration obligations through every slice view would require mapping aliases and view indexes back onto other bindings, beyond the chosen one-place model. Admitting a literal slice index solely because its spelling starts at a local leaves the no-dereference boundary unstated. Refusing whole slice descriptors would instead remove the consuming container-field idiom the prototypes require. All are declined.

Pinned by negative/r491-sink-slice-storage, positive/r491-sink-contained-places, negative/sink-through-dereference, negative/sunk-inout-not-restored and the small generic/concrete checker controls. The existing copy-before-sink and consumed-place runtime fixtures retain their separate language obligations.

D222 — Writable return sources cannot hide independent storage

The tour said that from states exact parameter dependencies [0790], independently of the return type's write permission. D217 permits a same-origin store through caller storage. A helper could join a parameter address with a module address, satisfy that parameter set, and return a writable view whose caller then knew only the parameter destination.

Chosen: a result with a nonempty from clause and a reachable writable reference must not carry a known independent storage alternative [1910]. The body is checked against the written contract. A helper choosing between two destinations receives both as arguments and names both in from; an explicit module actual then remains visible at the caller's retained-store check. A wrapper cannot hide that module actual behind a narrower writable contract. The rule includes instantiated generic results, aggregate carriers and nested references without deep const. Erased carriers and aggregate origin unions are conservative. It applies equally to bodies used as function values and concept providers; external declarations retain their written obligations.

Read-only results without reachable writable references retain their previous source comparison. Ordinary identity and container-subview accessors retain their parameter source; storage need not lie physically inside the parameter. Module-only and allocator results remain independent without from. Optional empty atoms retain D189's exception; empty slice literals add no destination and constructors of empty reference carriers do not waive exact source agreement. Integer-created pointers retain [0470]'s explicit untracked boundary. Joining one cannot conceal a separately known independent destination. No transitive lifetime or ownership guarantee is added to D217's local checks.

The alternatives: inferring every callee body at its calls would replace the written contract and complicate function values and external calls. Refusing every write through an accessor would lose valid same-origin updates. Keeping the previous dependency-only rule for writable results would retain the hidden-module store witness. All are declined in favor of an explicit, stronger writable return contract.

Pinned by negative/r491-writable-return-hidden-storage, positive/r491-writable-return-explicit-sources and the checker case writable returns keep all destinations, including direct and joined returns, explicit module and same-origin actuals, hidden wrappers, indirect calls, concept providers, instantiated generics, nested permissions, empty and raw boundaries and independent anonymous-result positions. Prototype 3's accessor and prototype 4's independent-allocation contracts remain separate.

D223 — Sink places are consumed at call entry

The tour said that arguments evaluate left to right [0410] and a sunk place becomes dead until assigned again [0910]. It did not say whether consumption happens while evaluating each argument or when the call begins. The compiler previously consumed each place immediately, including on an outer call whose later argument returned before entry.

Chosen: evaluate the callee and written arguments first, capturing each by-value argument at its own evaluation point. Commit consumption only when all arguments reach call entry. A later argument may therefore read an earlier sink place, as in use(value, value.count), or assign it. The callee receives the previously captured value; the original place becomes dead at entry even if a later argument replaced it. An early return or propagated failure during argument evaluation does not consume that outer call's pending places. Entered nested calls retain their own effects. Cleanup observes the state of the edge on which it runs; failure from an entered callee has consumed its sinks before recovery or propagation.

Pending sink places must remain live until committed in written argument order. Repeated or provably overlapping sinks are refused, as is a provable overlap between a sink and an inout argument in either order. A nested call may consume a pending place only if it is restored before outer entry. An inout argument names storage and must still be initialized on entry. D149's other alias rules and D220's sink-place forms are unchanged. This adds no ownership or transitive alias guarantee; separate copies remain live.

The alternatives: immediate consumption retains the old refusal of later reads and makes a call that never begins consume places. Call-entry timing preserves the place on that exit. Allowing repeated sinks or an inout alias of a consumed place would weaken the existing consumed-place and initialized-entry checks; postponing value capture would change [0410]. Neither is adopted.

Pinned by positive/r491-sink-call-entry, negative/r491-sink-entry-overlap and the checker case sinks commit at call entry, covering later reads, argument exits, named, indirect and generic calls, nested effects, restoration and cleanup. The positive derivative covers the descriptor and handle patterns shared by prototypes 3 and 4. Assembly and runtime evidence remain separate obligations.

D290 — A generic from asks nothing of a source whose instance type holds no reference

The tour said at [0790] that a from clause and the body agree both ways: returning something derived from a parameter without naming it is an error, and naming a parameter it did not come from is an error too. It did not say what a generic signature owes a parameter typed by a type formal, which one instance fills with a type that carries a reference and another with a type that carries none.

Chosen: in a generic instance (D138), a from name whose parameter's declared type is a type formal asks nothing of that parameter when the instance's type for it holds no reference: such an argument has no origin to supply, and the clause is compared over its other names. Where the instance's type holds a reference, the name binds as written and the exact comparison applies. A parameter of any other type keeps the exact rule, so naming a reference-free one is still L0316. region.over(state, parent) -> (handle: region(P) from state, parent) (D288) is the case: a pool's handle carries references into its backing that the region must keep, and heap.new()'s handle carries none.

The alternatives: leaving parent out of the clause, which refuses every parent that carries a reference with L0316, because the handle then derives from a parameter it does not name; and relaxing the rule for every parameter, which lets a signature name a source it can never have, the drift [0790] refuses. Both are declined.

Pinned by runtime/generic-from-reference-free-source, with runtime/region-beside-parent and negative/region-release-live-handle for a parent of each kind.

D1042 carries the same reading to the call, where the result's view is locked to its sources.

D1042 — A source D290 asks nothing of lends a call's result no view

The tour said at [0800] that a result with from borrows its source just as a view does in [0830], where an inout or sink use of the binding a live view derives from is refused; at [0840] it said that a value holding no references has no origin and goes anywhere. D290 settled what the instance's body owes a source typed by a type formal whose instance type holds no reference, and said nothing of what the caller's result takes from it. Deriving prototype 5's firmware counterpart, io.buffered_over(self.send, serial.line(), room) over a handle that holds one u32 locked the whole of self, so a later uart.read(self.receive, ...) was L0315 while the writer lived.

Chosen: at a call that reaches a generic instance, a from source whose parameter is written with a type formal, is not inout, and whose instance type holds no reference supplies the result no origin: the result neither derives from the argument nor locks it, or the place it was copied from, against inout and sink, and a result whose every source is of this kind is as independent as one that names none. The instance's body can return nothing derived from such an argument (D290), and a value parameter's own storage is the callee's frame, which no result may view. An inout source lends its storage whatever its type holds, so it keeps the lock, and an instance type that holds a reference binds as written.

The alternatives: keeping the lock, which makes every reference-free handle copied out of a state hold the whole state still for as long as the result is used, though no reference in the result can reach it; dropping any source whose instance type holds no reference, typed by a formal or not, which no non-generic signature needs, since D290 keeps naming such a parameter there L0316; and relaxing the lock between disjoint fields of the state, a wider question this one does not need answered, and which D1371 later answered. All three are declined.

Pinned by runtime/generic-from-reference-free-handle-beside-inout, for a handle copied directly and through a local, and negative/generic-from-pointer-handle-beside-inout for a handle that holds a pointer and for a reference-free source passed inout.

D291 — A view taken again through an inout call ends the old one at its assignment

The tour said at [0830] that a view derived from a local locks it against inout and sink while the view is in use, and that the repair is to take the view again afterwards; [0800] extends the lock to a view lent through a call's from. When the view is taken again through an inout call and assigned to the binding that held it, slot = slot_at(table, index), the call is an inout use of table while slot still holds the old view.

Chosen: the old view ends at that assignment, so it is not in use while the call runs, unless the call's recovery can break or continue past the assignment. On such an edge the binding keeps the old view, a later read of it is a use, and the inout call is L0315.

The alternatives: requiring a fresh binding for the view taken again, which refuses the repair [0830] itself gives; and ending the old view at the call on every edge, which lets a recovery that leaves a loop read a view whose source was lent away. Both are declined.

Pinned by runtime/view-taken-again-through-inout and negative/view-taken-again-after-break.

D292 — A cleanup on a return or failure edge has no later statement to conflict with

The tour said at [1100] that a defer runs when its block is left, including by a return or by declared failure, and that it names places and reads them then. A deferred call that takes a state inout, as defer region.release(ledger, heap) does (D288), is an inout use of that state on every exit, and a handle made from the state is a view of it [0830].

Chosen: on a return or failure edge the deferred call is checked against what is live on that edge, and no statement after the return or failure runs there, so a handle used later on the fall-through path is not in use. On the fall-through exit the cleanup runs after the handle's last use, as it always did.

The alternatives: counting every later statement in the block as a use on every exit, which refuses defer release beside an early return while the region is used afterwards; and a binding per handle, which still refuses it. Both are declined.

Pinned by runtime/defer-at-return-edge.

D1084 — A view no name holds is in use until what took it is done

The tour said at [0830] that a view taken from a local borrows it, and that the local is not passed inout or sink while the view is still in use; at [0800] that a result with from is such a view; at [1150] that a for walks each element of a slice in place; and at [1320] that a container is walked as for value in vec.used(numbers). Every example gives the view a name, and the check built from them asked one question: is a named view read after the call. A view written as a loop's source, or passed beside its source, has no name and no later read. So for value in vec.used(numbers) do try vec.push(numbers, memory, value) and append_all(numbers, memory, vec.used(numbers)) were accepted, and each read a block the list's growth had just freed.

Chosen: a view is in use until what it was evaluated for is done with it, whether or not a name holds it.

  • The source of a for is in use from the loop's head to its last iteration. In the body, passing what it views inout or sink is L0315 when some path from the call reaches the next iteration, or reads the loop's element where the element names the walked storage in place [1160]. A call the loop leaves straight after, by break, return or a failure, is accepted, and so is one in complete, which runs when the walk is over.
  • An argument is in use until its call returns. What it views is not passed inout or sink to the same call, in either order and whether the view is written in the call or held by a name whose last use the call is; nor to a call nested in a later argument, since arguments are evaluated left to right [0410]. An operand of any other expression is held the same way while the operands after it are evaluated, and a slice or pointer read for a selection while its index is.
  • What an unnamed view views is the storage under it: the binding an address or a range was taken of, and an array of it lent as a slice [0570]. A call result views what each argument its from names views, and the binding that argument is rooted in when the argument is a record or an array, as a container is, or is passed inout. A pointer, slice or any given by value lends what it refers to, not the binding that holds it, so first(xs) is no view of the binding xs. A reference only read out of a field of a binding has other storage under it and holds nothing, so a record is passed inout to an entry of an any the record holds. An address or a range of one field holds no other field of the same binding, where both are reached by fields alone.

[0830]'s rule for a view a name holds is unchanged, and still counts a reference read out of a field when the name is read after the call. D1371 later held a named view's fields apart as well.

A result whose from names a container is a view of the container even when what it returns is a reference the container only stored: the signature says so and the caller is held to it. A signature that writes from held says otherwise, as vec.get of a list of pointers does since D1369.

The alternatives: keeping the rule to named views, which leaves the traversal the tour teaches unchecked; holding a loop's source on every path, a loop left straight after the call included, which refuses the find-then-insert every such loop is written for; counting a reference read out of a field as the named rule does, which refuses a record that holds its own policy, as core/text's builder does, though none of the record's storage is under that reference; narrowing the named rule to match, which changes what accepted programs mean to no purpose here; and holding the whole binding for a view of one field, which refuses a field passed beside the address of its neighbour. All five are declined.

Pinned by negative/for-source-view-holds-its-source, negative/view-argument-beside-its-source and negative/qualified-module-binding-is-one-place, with runtime/unnamed-view-finished-or-apart for what is accepted.

D1369 — A result may be what its source holds, apart from a view of it

The tour said at [0790] that from names the parameters a returned reference derives from, and at [0800] that such a result borrows its source as a view does. D1084 made a result whose from names a record or an array a view of the binding the argument is rooted in, "even when what it returns is a reference the container only stored, as vec.get of a list of pointers returns". So vec.push(list, memory, try vec.last(list)) of a list of pointers or slices was L0315, inline, through a local, a field or a helper alike, and a popped reference could not be pushed back: pop's result counted as a view of the list's place, which is frame for a local list (L0314), and push's escaping added refused an item that came from a caller's non-escaping list (L0314). The ways round it were a copy of the list value, which D1084 refuses with no binding between, and a round trip through usize.

Chosen: a from name may be written held p, and says that the result is what p holds rather than a view of p's storage.

  • In the body, a reference reaches p held when it was read out of an element: through a pointer p carries (.val), by an index into a slice it carries, or by an index into an array it holds in place, with any fields of what was read. The address or range of such an element, and p's own fields read as they are, reach p itself. A result whose every edge that reaches p reaches it held satisfies held p; one that reaches it otherwise is L0316, naming the view. A plain from p accepts both.
  • At a call, the result takes what the argument's value refers to, including what earlier stores and escaping into kept in it [1910]; for addr x, what x's value refers to. It lends no view of the binding or place the argument was read from, inout or not, so it neither locks that binding against inout and sink nor counts as its frame.
  • held is part of the function's type, so a function value, a concept entry and a generic instance carry it, and two types that differ in it do not agree.

core/mem's get and withdraw, core/vec's get, last and pop, core/spill's get, last and pop, core/map's get and next_entry and core/tree's get say held; used and at, which lend the container's storage, keep from value. Every container insert keeps what it is given in the container's own storage and nowhere else, so its parameter is escaping into the container (D445) rather than escaping: an item read out of a caller's list goes back into it as the same origin, and a frame node declared before a frame list may go into it, what is read back carrying its frame origin.

What a container holds is the author's claim about which of its storage it owns: an element read through its references is taken not to be storage it releases or moves. A list made to hold a view of its own block, by writing one through an at slot, is read back with no lock on the list, and this is a stated non-guarantee [1720], not a hole a later check is expected to close. A copy of a list's value, snapshot := pointers, still lends a view of the block both share with no lock on pointers (D1084); what is read out of it is now held, as from the list itself.

The alternatives: an independent result for what a container holds, since push admitted only escaping items, which is wrong for a list filled through an at slot or through escaping into; a second fact per binding for what calls kept in it, more precise but a second fact in every state, against the scaling bound, for the answers this one gives in every case the library has; a clause of its own, held by value, beside from, which a result could need both of; and keeping escaping added, which leaves an item of a caller's list refused on its way back, or a rule at the call for an argument the same call's inout argument held, which holds for that one shape. All were declined.

Pinned by runtime/held-references-go-back, which pushes pointers and slices back through get, last and pop, inline, through a local, a field and a helper of the program's own, into a caller's list, and through core/map and core/spill; and negative/held-result-refusals, for a held result that is a view, a view held across a push, a frame address read back out of a list and a function value differing in held. A next_entry entry kept across an insert, which negative/r470-container-entry-live-map refused, is now accepted, and that control holds a map.at slot instead; negative/core-map-key-frame-escape and negative/core-map-value-frame-escape refuse their frame key and item where the map is returned rather than at the insert. negative/core-mem-admit-frame-pointer, negative/core-mem-replace-frame-any and negative/core-tree-frame-name refuse in the same place in the words of an escaping into parameter, and negative/core-tree-node-escape names the parameter a held result came from as the shorter-lived source.

D1370 — A declaration that runs again makes a new binding

The tour said at [0830] that a view taken from a local holds the local still while the view is in use. It did not say which binding a view holds when the local's declaration is in a loop's body and runs on every pass. The check read the declaration as one binding for the whole loop, so a view of the last pass's binding, kept in a binding declared outside the loop, held this pass's: parts[at] = mem.used(owner) in a loop that declares mut owner := mem.storage_over(...) was L0315 at the next pass's mem.admit(owner, 1). D1369's escaping into inserts met it in the derived hosted program, whose copy_arguments pushes a slice of each argument's own storage into the list it returns.

Chosen: a binding or destructuring statement makes a new binding each time it runs, and a view of the binding it made before does not hold the new one against inout and sink. A view of this pass's binding holds it as before. A view of the earlier binding's frame storage still refers to the same storage, which the new binding now occupies, so it reads what the new binding holds; that is no dangling reference, since a frame's storage lasts as long as its routine, and it is a stated non-guarantee [1720]. Origins and escape are unchanged: a reference into frame storage is frame whichever pass made it.

The alternatives: keeping one binding for the loop, which refuses every loop that keeps a view of storage it declares on each pass; and having an escaping into holder take the kept reference's origin but not the views it came from, as escaping did, which leaves the array form refused and a list blind to what its items view. Both were declined.

Pinned by runtime/held-references-go-back, whose loop keeps a view of each pass's storage in an array declared outside it, and negative/held-result-refusals, where a view of this pass's binding still holds it; the derived hosted program's runtime fixtures run its copy_arguments.

D1623 — A for binds its element afresh on every walk

The tour said at [1150] that a for names each element of what it walks, and D1084 holds the walked source only for a call in the loop's body; D1370 made a declaration that runs again a new binding. Neither said what a finished for's element views when an outer loop goes round again. The check followed the outer loop's back edge into the for's body and read its element there as the binding asked about, so a list walked by for below in vec.used(names) and released after the for ended was L0315, "while below still views it", whenever an outer loop or while could run again. refine-build met it and moved each pass of its loop into a function of its own.

Chosen: a for's element and index are new bindings on every walk, as a declaration is on every pass under D1370. Once a walk has ended its element views nothing; a later walk reads only its own. Within the body D1084 is unchanged, and so is a view of the element kept in a binding declared outside the for, which holds what the element viewed.

The alternatives: keeping the refusal, which makes every pass of an outer loop that walks and then releases a list a function of its own. Declined.

Pinned by runtime/for-finished-in-outer-loop, under loop with its test first and last, while, a list declared outside the outer loop and a deferred release; and negative/for-source-held-in-outer-loop, where the release inside the body and one after it while a kept element views the list are still refused.

D1371 — Disjoint fields of one binding are lent apart

The tour said at [0830] that a view taken from a local holds the local still while the view is in use, and at [0800] that a result with from borrows its source as such a view does. It did not say whether a view of one field holds the others. The check took a view of any part of a binding to hold all of it, so once one field of a state was lent to a handle, system.over(state.cells), lending another, stacks.round_over(state.round, ...), was L0315 in either order, though the two never overlap, and the note said that fields are not tracked apart. D1084 had already held an unnamed view's field apart from its neighbours and declined to narrow the named rule to match. The limit shaped hosted/events twice: its error cell was the thread's, not one in its space (D485), and its handle reached the system's through a routine rather than a field (D1363).

Chosen: a view, and a reference a binding holds, record the fields they reached the binding through, and an inout or sink argument is refused only beside a live one whose fields overlap it.

  • A field place is a run of fields selected from a binding, each out of a record held in place: state.nested.b. An element index, a range or a step through a pointer or a slice ends the run, and stands for the field it was taken of, so state.items[0] and state.items[1] are one place, state.items, and state.shared.val.x is state.shared. Two places of one binding overlap when one is the other or holds it, and the binding holds every place of it.
  • A view reaches the binding at the field it was taken of: an address or a range of the field, an array field lent as a slice, a for walking an array field, and a result whose from names an argument that is the field, passed inout, or a record or an array given by value. A reference read out of a field reaches the binding at that field, beside whatever the binding is known to hold. A result from held (D1369) lends no place of its argument, as before.
  • A binding may hold a reference into its own storage. A call given a place of it to write, inout or as a reference into its storage, may store there a reference derived from that same place, so a read out of a place that meets the one written, or a view of one, also reaches the place written; two lists of one record are still lent apart after a push into either. A reference stored into the binding by an assignment in the body is known only as one the binding holds, so a view of any of its fields that can hold a reference reaches what it refers into: such a binding lends those fields together, and a field whose type holds none stays apart. What a parameter holds may refer anywhere in it, so a reference read out of a parameter whose type holds references reaches all of it.
  • An unnamed view (D1084) takes its places the same way, so a call's result given as an argument is held apart from a later argument that is another field, as an address of the field already was.
  • L0315's note says which part the view reaches when that is not the argument itself: ` first views state.round, a part of the argument, first views state.nested, which contains the argument, first views all of state , or held reaches s, and a reference stored in s may point into s.list `.

The alternatives: keeping the whole binding, which refuses two handles over one state and shaped the library around it; telling elements of an array field apart by a constant index, which adds an index to every place for no design the library has, and which D1084's unnamed rule does not do; following a run of fields through a pointer, whose target is no storage of the binding's; and a fact per field of what the binding holds, which would keep apart the fields of a binding that holds a reference into itself but carries a second fact in every state, against the scaling bound, as D1369 declined one per binding. All were declined.

Pinned by runtime/fields-lent-apart, two handles from different fields of one state in either order, through nested fields, chosen on a branch, as arguments of one call, beside a loop walking a third field, beside a list the record holds a view of, and two lists of one record after a push into each; negative/inout-field-beside-a-view-of-its-binding, a field lent while its binding or a field holding it is, and the reverse, one alternative of a branch, two elements of one array field and two fields reached through one pointer; negative/field-lent-beside-what-its-binding-holds, a binding holding a view of its own list, stored in the body, by an inout call or through its address; and the scaling bound's family of many lent fields. hosted/events took its own cells and its handle a field (D1372).

D433 — A pointer arm's binding may be sink, and consumes the matched place

The tour said at [1220] that a pattern binding carries a parameter convention, the conventions of [0900] being the mechanism, and at [0910] that sink takes a place rooted in a binding. A ptr arm's binding was neither: ptr (l): free_tree(memory, l) was L0337, and the route, m := l then sinking m, consumed only a copy and left the matched union live, so the check proved nothing about it.

Chosen: match_binding admits sink beside inout. On a pointer union's ptr arm, ptr (sink l): binds the pointer read-only, as a plain binding does, and makes l a sink place: passing it to a sink parameter consumes l and the place the match read, which flow marks dead on that arm's path until it is assigned again, and consuming the matched place consumes l too, because they are one resource. The subject must be a place a sink argument could name, a binding or a field of one with no dereference or computed index (D220); a computed subject is L0337. sink on a payload or a wildcard binding is L0333, because a payload is part of its subject, which is sunk whole. A plain arm binding passed to a sink parameter stays L0337, and the note names ptr (sink l). The binding lowers as a plain one; only the checker's flow facts differ.

The alternatives: admitting a plain binding as a sink place implicitly, which consumes storage through a name that reads as an in alias; and keeping the refusal with a note naming the subject as the thing to sink. Neither this nor the chosen form is ownership or an affine value ([0910]): the check is still use-after-consume on one place.

Pinned by runtime/match-sink-binding, for unions of one atom and of several, and negative/match-sink-binding-refusals; the grammar's derivation in check.py, the parser's tests and the structural grammar's match-labels corpus hold the new production.

D440 — An untracked step re-enters tracking through a written contract

The tour said at [0470] and [0810] that an integer-made pointer carries no origin, and at [1630] that a pointer crosses an assembly block as usize(p). D248 declined pointer operands and D196 kept mem.offset out of the library. Neither said what a routine that indexes a C table, or hands storage to a system call, promises its callers, and an outside program handed the kernel an immutable module buffer to write without anything objecting.

Chosen: no new conversion. Origin and permission end at an integer step and the compiler does not recover them; what a caller is checked against is the routine's signature. A routine that indexes a raw table writes its result from the table, as platform/posix's argument writes from table; a routine around an assembly block takes the storage as ptr mut u8 or []mut u8, as platform/linux's read does. Callers are then held to that from, mutability and escaping as to any other signature's, and an immutable buffer is refused at the call. The routine's own body is not checked against them: an integer-made pointer satisfies any from clause [0470], so the written contract is the routine author's claim, the unsafe backing obligation [1720] already gives allocator internals. Such a routine is kept small, and private where it can be, so that the claim has one author. This is a deliberate non-guarantee, not a gap a later check is expected to close. L0330's note for a pointer operand names the typed parameter.

A C table whose extent the program knows from C, an argv beside its argc, may keep its origin instead: type the pointer ptr [1]t, take p.val[0..<1] and widen that slice inside unchecked to the extent C gives. The slice derives from p, so indexing and returning it are tracked and a missing from is L0316. The widening is the program's claim about the extent and stays inside unchecked, as [0510]'s narrow extension and core/mem's block_bytes do. It is sanctioned only over storage that holds initialised ts, which a table C filled does; it is not [0510]'s slice_from, whose fault is a typed view over storage that holds no t.

A concept entry whose result has no from, as mem.allocator's resize declares, returns the block it was given as ptr(usize(block)): an allocation borrows nothing, and [0810]'s conversion says so. Returning block itself is L0316, since the result would derive from a parameter the clause does not name, and writing from block is L0316 too, on the edge that returns a fresh allocation (D222). L0316's explanation names this route.

The alternatives: an origin-preserving retype from ptr t to ptr [1]t, which with the unchecked widening is slice_from under another name; pointer or slice assembly operands, which reopen D248's declined row; and a from form meaning "this parameter or nothing", which weakens D222's rule that a caller sees every writable destination. All were declined until a program needs one.

Pinned by negative/assembly-operand-types, whose L0330 note names the typed parameter; runtime/posix-libraries, which reads arguments through argument; and runtime/core-mem-resize, runtime/core-pool-resize and runtime/core-region-resize, whose providers resize this way.

D445 — A parameter may be kept in another parameter's storage

The tour said at [0780] that a parameter is non-escaping unless it says escaping, that escaping admits only allocated or static storage, and that storing one parameter's reference into another parameter's storage needs escaping. So its own push_front refuses a frame node pushed onto a frame list, though the node outlives the list. Prototype 5 met the same refusal at a scale that mattered: a fibre group in a routine's frame keeps each task's state until it is joined, and escaping refused every state holding what the routine's own caller had lent it — main's host handle, a pointer to the caller's result — which outlives the group by construction (V3). Its first draft copied the host handle into an allocation to get past it.

Chosen: a parameter may be marked escaping into p, where p names another parameter of the same routine. The routine may keep the reference in p's storage, and nowhere else. At a call, the argument for it must outlive the origin of the argument for p, which is decided locally, as [0780]'s same-origin update already is: a parameter of the caller, static storage and an allocation outlive anything the caller's frame holds; a local outlives another local of the same frame when it is declared before it; and a frame reference never outlives a parameter's storage. A writable reference kept this way must name every place it is kept, as D222 requires of a result. escaping alone keeps its meaning. The form is enabled, the tour's [0780] teaches it, and D455 decides what the rule left to the checker.

The alternatives: leave escaping as it is, which forces every capability a fibre uses into an allocation or module storage, and module storage cannot hold a value with no zero that is made at run time; infer the relation from the body, which [0790]'s refusal of inferred derivation already declined; lifetime parameters, which are the borrow checker Landin does not have; and a privileged rule for the group's admit, which is a library type the language would have to know. All were declined.

Pinned by runtime/escaping-into-frame-list, push_front's frame nodes on a frame list declared after them; runtime/escaping-into-group-state, a frame group keeping states that hold the caller's parameter, directly and through a function value; negative/escaping-into-later-local, a local declared after the storage it is kept in; and negative/escaping-into-third-place. Prototype 5's V3 records the pressure.

D455 — What escaping into compares, and where its target stands

The tour said at [0780] that a routine may keep a parameter in another parameter's storage when it says escaping into, and D445 said the argument must outlive the origin of the argument for the named parameter. Neither said where the named parameter may stand, what the origin of an inout argument is, what a refused name is, or what the caller knows after the call.

Chosen: the named parameter may stand earlier or later in the list, so two parameters may each name the other, as push_front's do. into is a contextual word, a target only when a second name follows it. The name must be another runtime parameter of the same signature, whose type holds a reference; an unknown name, a parameter naming itself and a target that can hold nothing are L0339. The parameter is not escaping: it may be kept in the named parameter's storage, in storage of its own origin and in the frame, and anywhere else is L0314. The contract is part of the function's type, so a function value, a concept entry and a generic instance carry it and a call through any of them is checked as a direct call is; two types that differ in it do not agree.

At a call, the kept argument's origin is its value's, as escaping reads it. The origin of the argument for the named parameter is read as a call's from result reads it: an inout argument is its place, and any other is what its value refers to. A local is declared before another when it comes first in the same block or an enclosing one, and a frame reference with no declaration to order it, a literal or a copied subject, is refused. An untracked argument is the program's claim [0470], as for escaping, and a holder whose origin is not known is taken to outlive the call. After the call, the frame storage the holder's argument reaches, and an inout place, hold what was kept, so returning or keeping it later is checked against the kept origin. The code generator treats the parameter as escaping, since it outlives the call.

The alternatives: the named parameter only earlier in the list, which refuses mutual keeping such as push_front's; the inout holder's referent as well as its place, which refuses any frame list whose head the checker cannot prove empty, since a place passed inout loses that proof; locals of one block counted as equally long-lived, which D445's "declared before" does not say, and which leaves a frame list's nodes in an order the reader must work out; and into reserved, which would take a word programs use as a name. All are declined.

Pinned by the fixtures D445 names, negative/escaping-into-target for the refused names, negative/escaping-into-function-value for a call through a function value and for two types that differ in the contract, the parser case escaping into names a target, and the structural grammar's contextual-names corpus.

D2177 — L0314 spells escaping inout for an inout parameter

The discrepancy: L0314's note said a retained parameter is declared escaping, and an inout parameter whose parts a callee keeps needs both words, escaping inout value:, which nothing said; it was found by reading core/spill.

Chosen: when the parameter the escaping reference derives from is inout, L0314's note ends with the spelling, escaping inout NAME: [0780]/[0900]. The rule and the message are unchanged.

The alternatives: a fix inserting escaping, which changes the function's contract for every caller and so is not a local repair.

Pinned by negative/escaping-inout-is-spelled-for-an-inout-part.

Decisions: Functions, calls and returns

The call convention for values too large for a register, function values, named returns, and the declared-error channel beside them.

D301 — Static storage satisfies a read-only from clause

The tour said at [0790] that a result's from clause names the parameters it may derive from, and the checker held the clause to the parameters exactly. A provider that lends what the process keeps, the arguments, derives from none of them, so a concept entry written -> (value from self) could not be implemented over storage no frame owns, and the hosted provider kept its argument table as an integer address, whose pointers are untracked.

Chosen: a reference is static when it reaches storage no frame owns, a module binding or what one points to. A result with no writable reference whose edge carries a static reference satisfies a named source it does not derive from, because static storage outlives every source. A parameter the clause leaves out is still refused, and a writable result keeps D222's refusal.

The alternatives: an origin form written at the source, new syntax for a fact the checker already has; a static fact distinct from allocations, more tracking for no difference in lifetime; relaxing D222 for read-only fields of writable aggregates, which needs origins per field; and the integer address, which hid the relation instead of stating it.

Pinned by runtime/static-origin-satisfies-from, negative/frame-origin-under-from, negative/static-origin-beside-unnamed-source and negative/static-origin-writable-from.

D375 — A writable result may carry static storage it reaches only through read-only views

The tour said at [0790] that from names the parameters a result derives from, and D222 refused a writable result that also carried any known independent storage, counting every alternative of an aggregate and every erased value as writable. A text builder holds the caller's writable buffer and an erased policy over an immutable module binding, any(addr doubling); its constructor was refused, though no store can land in a module binding through a read-only view and the binding outlives every source, and the library hid the address behind an integer conversion, whose pointer [0470] does not track.

Chosen: D222 asks about an independent alternative only when a writable reference in the result may reach it. An alternative arriving as a pointer, slice or nominal aggregate whose type reaches no writable reference, through its own descriptor or any it reaches, can be no store's destination, and D301 already holds such storage to outlive every source. An erased value is judged by what it erased: any admits no entry whose self asks more permission than its operand gives, so any of a read-only pointer reaches what the pointer reaches. A call's writable result counts every independent storage its named arguments carry, since the callee's permission, not the argument's type, decides what the result can write. The binding's own mutability does not matter; the view's does, as it does for D301. The writable parts of the result still derive exactly from the clause; an erased view of mutable storage through a ptr mut, or of a binding that holds a writable view, is still refused; and frame storage still escapes.

The alternatives: origins per field, which D301 declined as more tracking than the question needs: the fact here is per alternative and follows the value through joins, copies and erasure; refusing erased values outright, which leaves the integer address as the library's only form; and admitting every static alternative, which hides the mutable destination D222 exists to show.

Pinned by runtime/erased-static-view-under-writable-from and negative/erased-writable-view-under-from.

D94 — An ordinary struct argument is copied into callee storage

The tour said that an unmarked parameter is in [0900], calls evaluate arguments left to right [0410], and an ordinary struct has nominal identity [0710]. The scalar internal convention had no rule for carrying the complete storage of one.

Chosen: a parameter may have an ordinary struct type whose fields are scalar or fixed arrays, without an ordinary-child or variant field. A call may supply a direct module or frame storage name of exactly that nominal type. The source must be definitely assigned in full. Construction, nested-child paths, struct-returning calls and other aggregate expressions remain refused in this argument position.

One aggregate occupies one position in the existing internal argument run. The caller forms a target-neutral Storage_Address carrier; the first six positions use integer registers and later positions use D86's eight-byte stack slots. The carrier is not a Landin pointer and cannot be named by source. The callee preserves every incoming aggregate carrier, derives the complete padded extent from its selected target, and copies an addressed source into a fresh aggregate parameter slot before the body runs. D97 clears that slot directly for a direct zeroed argument. Reads therefore use ordinary field and array operations against independent by-value storage. The callee copies a record whose alignment is at least four bytes by machine words, not bytes, so the storage a carrier addresses must be aligned for its type: frame and module storage are by layout, and storage reached through a pointer, slice or any is by [0430]'s rule that alignment is the program's responsibility. The caller snapshots an argument before the call only when a later argument may write memory; the callee's copy is what keeps the value independent, so a write to the original during the call never reaches it. Pinned by runtime/by-value-records-stay-independent and the backend case by-value parameters move by words.

Why an internal address and defensive copy: flattening fields would make one source parameter consume a target-dependent number of argument positions, while aliasing caller storage would change in from a value convention into a hidden reference convention. The neutral carrier keeps offsets, padding and extent out of verified IR; the callee-side copy makes the observable value independent and leaves the C boundary to classify C aggregates separately.

The alternative: pass a struct argument by reference and let the callee copy on write, or expand the struct into one register per scalar field. The first makes a later argument's side effect visible to the callee, which a later soundness repair met as a defect even under this convention; the second has no answer for a struct wider than the register run.

Pinned by the checker, lowering, malformed-IR verifier and backend public seams; negative/struct-argument-unassigned; the generated token and IR records; and runtime/struct-arguments-cross-calls on Linux x86-64.

D95 — A fixed array argument uses the same by-value transport

The tour said that a fixed array's length is part of its type [0520] and an unmarked parameter is in [0900]. D94's internal carrier and callee copy did not depend on nominal fields, but the checker and IR parameter builder still admitted only its ordinary-struct case.

Chosen: a parameter may have any enabled fixed-array type, and a call may supply a direct module or frame storage name with exactly the same scalar element and length. Every source element must be definitely assigned. An array literal, repetition, nested array field, returning call or other array expression remains refused as an argument.

The array occupies one existing internal ABI position. The caller emits D94's unspellable target-neutral storage-address carrier. The callee preserves that carrier with the struct carriers, derives length * target element size, and copies those bytes into a fresh shaped array parameter slot before running; D97 clears that slot directly for a direct zeroed argument. Register and stack positions therefore have one convention for scalar, ordinary-struct and fixed-array source parameters while their frame storage retains the distinct neutral shape each operation needs.

Why reuse the carrier: passing every element separately would make D18's largest arrays impossible to represent compactly and would make argument position depend on the selected target. Passing an alias without copying would not implement in as a value. D94's one-position transport plus defensive copy avoids both changes without introducing a source pointer.

The alternative: pass a fixed array as a slice, or expand it element by element. A slice is a view and [0520] says an array is a value; element expansion has no answer for a long array and a different answer for every length.

Pinned by the checker, lowering, verifier and backend public seams; negative/array-argument-unassigned; the generated token and IR records; and runtime/array-arguments-cross-calls on Linux x86-64.

D96 — Contextual nested storage may be an aggregate argument

Partly superseded. Its carrier stands: an aggregate argument's storage path is carried as field identities, never an offset, and placed by the backend for the target. Its limit to "a depth-one ordinary child" and its sentence "Deeper paths, construction and other general aggregate expressions remain refused" are superseded by D118, D119 and D241; what follows is history.

The tour said that calls evaluate argument expressions left to right [0410]. D90/D91 made parent.child.array and parent.child complete contextual storage sources, while D94/D95 initially accepted only a direct storage name in an aggregate argument position.

Chosen: a flat ordinary-struct parameter may receive a depth-one ordinary child parent.child, and a fixed-array parameter may receive either parent.array or parent.child.array. Nominal identity or array shape must match exactly, and the selected child or array must be definitely assigned in full. Deeper paths, construction and other general aggregate expressions remain refused.

Storage_Address carries the independent declaration-order parent and child field identities in addition to its module-or-frame storage identity. It never carries an offset. The backend recursively places those fields for the selected target before transporting the resulting address through D94/D95's one ABI position; the callee performs the same defensive copy into independent shaped parameter storage.

Why preserve the path: flattening the child into a new datum would erase D86's nominal boundary, while recording the selected target offset would make checked IR target-specific. The existing contextual source already proves one complete extent, so extending its neutral path carrier to the argument boundary does not create an aggregate expression value.

The alternative: require a nested child or array to be copied into a named local before it is passed. The address carrier already names the parent and child field identities, so the copy would be a second copy of what the callee copies anyway.

Pinned by the checker, lowering, malformed-IR verifier and backend public seams; negative/nested-storage-argument-unassigned; the generated token and IR records; and runtime/nested-storage-arguments on Linux x86-64.

D97 — zeroed may directly initialize aggregate parameter storage

The tour said that zeroed takes its type from context [0540]. D94/D95 provided shaped by-value parameter storage, but required the caller to name existing storage even when the all-zero value needed no source object.

Chosen: zeroed may appear directly where a supported struct or fixed-array parameter supplies its complete type. For the internal convention, the caller passes a zero carrier in the aggregate's ordinary register or stack position, without allocating aggregate storage. At entry the callee recognizes that carrier and clears the complete target-derived extent of its own shaped parameter slot before the body runs. A nonzero carrier still names existing storage and is copied into that slot. This zero carrier is not a source pointer, and it is never used for a C ABI call or an aggregate result destination. A permitted C ABI aggregate argument keeps its existing caller materialization and C classification.

The zero carrier is target-neutral in verified IR, where only a direct all-zero internal aggregate argument may use it. The parameter's existing struct field shapes or array length and scalar element give the backend the padded extent. zeroed does not become a general aggregate expression. D102 and D104 also allow this carrier for their contextual variant-bearing and nested struct arguments, whose complete parameter shapes determine the clear extent.

Why clear in the callee: an all-zero value has no source storage or initializer effects to preserve. The zero carrier keeps argument order and register/stack placement identical to other arguments, while clearing the callee's own slot gives it the same independent by-value storage. A named zeroed local remains an ordinary nonzero storage carrier and is copied.

The alternative: require a named zeroed local before the call, or clear a fresh caller temporary and copy it into the callee. Both spend a caller extent and a whole-object copy for a value whose complete image is known without either operation.

Pinned by the checker, lowering, verifier and backend public seams; the generated token and IR records; and runtime/nested-storage-arguments on Linux x86-64.

D98 — An array literal may directly fill an argument temporary

The tour said that an array literal evaluates its elements in source order [0410] and a fixed-array parameter supplies a complete length and scalar element type [0520]. D95 initially required named storage, and D97 admitted only its all-zero contextual value.

Chosen: an array literal may appear directly in a fixed-array argument position when it has exactly the parameter's length and every element matches the parameter's scalar element type. The caller allocates a fresh shaped array slot, evaluates and stores each element left to right, then passes the slot's Storage_Address through D95's existing one-position convention. The callee copies it into independent parameter storage as usual.

The literal remains contextual: its parameter supplies shape before any element is checked, and no array-valued expression result or target-sized IR run is introduced. One scalar store is emitted per written literal element; D18's unbounded compactness requirement is unaffected because source text already contains exactly that many elements.

Why materialize in the caller: flattening literal elements into ABI positions would change the convention by source form and target, while a callee-only construction would reverse [0410]'s caller-side argument order. The temporary preserves both order and one-position transport.

The alternative: require an array literal argument to be bound to a local first, or introduce an array-valued expression result. The temporary keeps the literal contextual and the IR free of a target-sized run; a local is the same temporary with a name.

Pinned by the checker, lowering, verifier and backend public seams; negative/array-literal-argument-shape-mismatch; the generated token and IR records; and runtime/array-arguments-cross-calls on Linux x86-64.

D99 — Array repetition forms may fill an argument temporary

The tour said that repetition evaluates its repeated expression once [0560], and mixed repetition evaluates its explicit prefix before that one suffix expression [0410]. D98's shaped caller temporary provides the same complete fixed-array context at an argument boundary.

Chosen: full and mixed array repetition may appear directly in a matching fixed-array argument position. A written full-repetition count must equal the parameter length; a mixed prefix must leave at least one destination position. Lowering stores explicit prefix elements in source order, evaluates the repeated expression once, emits one compact suffix fill, and transports the temporary through D95's existing address convention.

The fill retains a one-based first destination identity and the temporary's neutral length and scalar element. Neither lowering nor verified IR expands the repeated suffix, including for D18's target-sized lengths; target byte width and extent remain backend facts.

Why both forms share one rule: their only semantic difference is the source-ordered explicit prefix. Giving arguments a separate repetition representation would duplicate the contextual assignment and initializer semantics without changing the ABI carrier or callee copy.

The alternative: expand a repetition into one store per element in lowering or in the IR. One compact fill keeps the IR target-neutral and the emitted code independent of the length; the expansion would make a 4096-element fill 4096 instructions.

Pinned by the checker, lowering, verifier and backend public seams; negative/array-repetition-argument-shape-mismatch; the generated token and IR records; and runtime/array-arguments-cross-calls on Linux x86-64.

D100 — A scalar-field struct literal may fill an argument temporary

Superseded by D98, D99 and D72. A struct literal or construction fills an argument temporary as an array value does, D72 naming its type; what follows is history.

The tour said that labelled struct construction evaluates fields in source order [0410], omitted fields may use of zeroed [0700], and ordinary structs are nominal [0710]. D97 supplied a zero carrier for an entirely zero aggregate, but labelled construction still needs a shaped caller temporary for its source-ordered field expressions.

Chosen: a bare or correctly nominal construction may appear directly where a flat ordinary-struct parameter has scalar fields only. Labels are checked against the parameter's nominal body, evaluated and stored in source order; of zeroed writes zero or false to omitted fields in declaration order. The caller then transports the complete temporary through D94's existing address convention and the callee copies it by value.

Structs with fixed-array, ordinary-child or variant fields remain outside this literal-argument slice; their labels require additional contextual leaf materialization. The temporary itself retains declaration-order scalar shapes, never target offsets or padding.

Why scalar fields first: it exercises nominal contextual construction and caller-side evaluation order without duplicating D65/D76's array and variant leaf machinery inside call lowering. Those shapes remain valid storage arguments by D94/D96; only direct literal construction is narrower.

The alternative: require a struct literal argument to be bound to a local first, or admit literals with array and child fields in the same slice. The first is the temporary with a name; the second needs the leaf materialization the later decisions add one kind at a time.

Pinned by the checker, lowering, verifier and backend public seams; negative/struct-literal-argument-nominal-mismatch; the generated token and IR records; and runtime/struct-arguments-cross-calls on Linux x86-64.

D101 — Struct literal arguments may contain fixed-array fields

Superseded by D98, D99 and D72. A struct literal argument's array fields take every form any array field takes, in the argument temporary; what follows is history.

The tour said that a labelled array field receives the same contextual array forms as standalone fixed-array storage [0520] [0700]. D100 restricted argument construction to scalar fields even though its caller temporary already carried compact fixed-array field shapes.

Chosen: a flat ordinary-struct literal argument may label fixed-array fields with literals, full or mixed repetitions, zeroed, or matching direct and D96 nested storage paths. Each label commits in source order. Explicit array elements are stored in order, repetition uses one compact suffix fill, zeroed clears the field extent, and storage sources use one compact copy. of zeroed clears any omitted fixed-array field after all labels.

Every operation targets the aggregate temporary by declaration-order field identity. Source copies retain independent parent and child identities. No field offset, padding byte or expanded repeated suffix enters checked IR; the complete temporary then follows D94's ordinary one-position transport and callee copy.

Why this closes only fixed-array leaves: D65 already supplies their finite contextual operation family and compact shape. Ordinary-child and variant fields require recursive construction or case selection and remain separate argument slices rather than being flattened here.

The alternative: require a struct literal's array fields to be written as zeroed only, or bind the literal to a local first. The first makes a small table argument unwritable inline; the second is the temporary with a name, and every array form here is one D65 already gives an ordinary field.

Pinned by the checker, lowering, verifier and backend public seams; negative/struct-literal-argument-array-shape-mismatch; the generated token and IR records; and runtime/struct-arguments-cross-calls on Linux x86-64.

D102 — Variant-bearing struct storage may cross an argument boundary

Partly superseded. Its definite-assignment rule stands: a variant-bearing struct crosses a call only with its variant part assigned, a case selected. Its sentence "provided it contains no ordinary-child field" is superseded by D104 and D119, and "Struct-literal argument construction with a variant label remains a separate slice" by D241; what follows is history.

The tour said that an unfolded variant is part of its enclosing struct's storage [0680] and matching inspects the selected case [1210]. D74--D85 carry that shape through local and module storage, while D94 initially refused it at a parameter declaration.

Chosen: an ordinary struct parameter may contain unfolded variant fields, provided it contains no ordinary-child field. Direct matching storage or contextual zeroed may supply the argument. The complete variant field must be definitely assigned: a declaration-only local cannot cross the call until a case has been selected. Struct-literal argument construction with a variant label remains a separate slice.

The aggregate parameter slot retains the variant tag type, source-order cases and compact payload-field runs. D94 transports one storage address and copies the complete target-derived padded struct extent for a storage source; D97's direct zeroed carrier clears that extent in the callee instead. Tag matching and payload aliases then operate on the independent callee slot exactly as on any local aggregate.

Why opaque transport is sufficient: case classification affects storage layout but not this internal convention's one-position carrier. Reclassifying or flattening payload leaves at the call would duplicate the selected target's layout in neutral IR. Keeping the existing shape and copying its extent avoids that second authority.

The alternative: copy a variant-bearing argument case by case, or refuse it until struct literals can select cases. The whole-storage copy already carries the tag and the inactive bytes; a refusal would keep a device state, the aggregate the driver passes most, out of every call.

Pinned by the checker, flow, lowering, verifier and backend public seams; negative/variant-struct-argument-unassigned; the generated token and IR records; and runtime/variant-struct-arguments on Linux x86-64.

D103 — Struct literal arguments may select variant cases

Superseded by D76, D98 and D99. A struct literal argument selects its case before its payload is evaluated, in the argument temporary; what follows is history.

The tour said that a variant label selects one case and evaluates its payload labels in source order [0690] [0700]. D102 carried existing variant-bearing storage through calls but left direct argument construction refused.

Chosen: a flat variant-bearing struct literal may appear directly in a matching parameter context. Its variant label selects a case in the fresh caller temporary before payload labels are committed. Scalar payloads store in source order; fixed-array payloads use the same literal, repetition, zeroed and storage-copy forms D101 gives ordinary array fields. of zeroed selects the first case for an omitted variant field.

Selection clears the selected payload before payload writes, so omitted payload leaves have the all-zero image while inactive bytes are unspecified. The IR retains field, case and payload-field identities; target tag placement, payload offsets and padded extent remain backend-derived. The finished temporary then uses D102's unchanged one-position by-value transport.

Why construction stays in caller storage: case and payload expressions are arguments and therefore belong in [0410]'s caller-side evaluation order. Flattening them into ABI operands would expose the selected target's unfolded layout and make equivalent named storage use a different convention.

The alternative: require a variant-selecting literal to be bound to a local first, or select the case after the payload labels are written. The first is the temporary with a name; the second writes payload bytes that the selection then clears.

Pinned by the checker, lowering, verifier and backend public seams; negative/variant-literal-argument-payload-mismatch; the generated token and IR records; and runtime/variant-struct-arguments on Linux x86-64.

D104 — A depth-one nested struct may cross an argument boundary

Partly superseded. Its definite-assignment rule stands: a struct with a nested struct field crosses a call only when every field, the nested one whole, is assigned; one assigned nested leaf is not enough. Its limit to "one depth-one ordinary child" and its sentence "Direct outer struct-literal construction with an ordinary-child label remains separate" are superseded by D119 and D241; what follows is history.

The tour said that an ordinary child retains its nominal boundary [0710] and D86--D93 represent one such child by parent and child field identities. D94 carried the child itself but still refused a parameter whose complete type contained that field.

Chosen: an ordinary struct parameter may contain one depth-one ordinary child whose fields are scalar or fixed arrays. Direct matching storage or contextual zeroed may supply the complete outer argument. Definite assignment requires every outer scalar/array field and the complete ordinary child; sparse assignment of one nested leaf is not enough. Direct outer struct-literal construction with an ordinary-child label remains separate.

The parameter slot retains an Aggregate_Field_Shape whose compact payload run is the child's declaration-order scalar and array leaves. D94's caller carrier still occupies one ABI position: the callee copies a storage source's complete recursively placed padded extent or clears it for D97's direct zeroed carrier. Child field and element reads then reuse D88/D89's neutral parent/child identities.

Why preserve one slot: splitting the child into ABI operands would erase its nominal boundary and make operand count depend on composition. The existing recursive target placement already derives its extent from neutral shape, so opaque one-position transport remains sufficient.

The alternative: flatten the child into the outer parameter's field run for the call, or copy the child separately. The parameter slot keeps the child's own shape so the callee's copy is one whole-storage copy, and definite assignment stays a fact about one complete outer value.

Pinned by the checker, flow, lowering, verifier and backend public seams; negative/nested-struct-argument-unassigned; the generated token and IR records; and runtime/nested-storage-arguments on Linux x86-64.

D105 — Struct literal arguments may construct an ordinary child

Superseded by D98, D99 and D72. A struct literal argument's nested struct field takes every form any struct field takes, in the argument temporary; what follows is history.

The tour said that a labelled struct literal evaluates fields in source order [0410] while an ordinary child's identity remains nominal [0710]. D104 carried complete nested storage but left a direct outer construction refused.

Chosen: a flat outer struct-literal argument may name its depth-one ordinary-child field with a bare or matching nominal child literal, contextual zeroed, or matching direct child storage. The child's scalar and fixed-array labels use their existing contextual forms. An explicit child constructor with a different nominal body is a type mismatch even when its fields coincide. of zeroed clears an omitted child as one complete padded subobject.

Lowering first clears a constructed child's complete padded extent and then commits its labels in source order. Scalar and array operations retain both parent and child identities. A storage source instead copies declaration-order leaves into the same destination child; target offsets and padding remain absent from neutral IR. The finished outer temporary uses D104's ordinary one-position transport.

Why clear before labels: this gives padding and an of zeroed omission one canonical all-zero image without introducing a nested aggregate value. Every explicit expression still runs exactly once and in source order before the call.

Pinned by the checker, lowering, verifier and backend public seams; negative/nested-struct-literal-argument-nominal-mismatch; the generated token and IR records; and runtime/nested-storage-arguments on Linux x86-64.

D106 — Aggregate results return into caller-owned storage

The tour said that a function's named return is an ordinary place [0930] and every call evaluates arguments before entering the callee [1920]. D94 established one-position by-value aggregate arguments, but no result convention made a returned struct's lifetime independent of the callee frame.

Chosen: a function with an ordinary, variant-bearing or depth-one nested struct result receives one unspellable internal usize parameter naming caller-owned result storage. It precedes all source parameters in the existing register/stack run. The named result keeps its complete checked shape. It may occupy an independent callee slot, copied into the hidden destination on each successful exit, or use that destination as its storage when D116's observational conditions hold. A typed local initializer may supply a matching aggregate-returning call as its value.

The checked IR item retains Aggregate as the declared result and keeps the complete neutral shape on its result slot. The call instruction itself has no aggregate value: its first operand is an opaque Storage_Address for the already-shaped destination, followed by source arguments. The verifier checks that operand against the hidden scalar parameter. Target offsets, padding and byte extent enter only during backend layout and any copy that is needed.

Why not return a pointer to callee storage: that pointer would escape a dead frame and would turn by-value semantics into an alias. Returning fields in registers would instead require target ABI classification in neutral IR and pre-empt the C boundary. Caller storage preserves value lifetime and the established one-position internal convention without either error.

Pinned by the checker, flow, lowering, verifier and backend public seams; negative/struct-return-unassigned and negative/variant-return-unassigned; the generated token and IR records; and runtime/struct-returns-cross-calls, runtime/variant-returns-cross-calls and runtime/nested-struct-returns-cross-calls on Linux x86-64.

D107 — Fixed arrays use the same caller-owned result convention

The tour said that a fixed array's identity is its element type and length [0520], and D17 keeps that shape independent of any target byte extent. D106's hidden destination therefore has all the information an array result needs as well as a struct result.

Chosen: a function may name a fixed-array return, assign it through the existing whole-array contextual forms, and initialize a matching typed local from its call. One leading unspellable usize parameter points at the caller's shaped array slot. The named result may use that storage under D116's conditions; otherwise each successful exit copies exactly length * element-size bytes from its independent result slot. The call itself still returns no IR value.

Definite assignment records a whole-array fact for the named return; assigning known elements independently also suffices once every position is covered. The neutral result slot carries element type and length, never the selected target's byte count.

Why share D106: a second array-specific return channel would make source aggregate category, rather than lifetime and target classification, decide the ABI. Both are fixed-size by-value storage and need the same caller lifetime.

The alternative: return a fixed array in registers when it fits, or as a pointer into the callee's frame. The register form has a different answer for every length and none for a long array; the pointer form aliases storage that is gone when the callee returns.

Pinned by the checker, flow, lowering, verifier and backend public seams; negative/array-return-unassigned; the generated token and IR records; and runtime/array-returns-cross-calls on Linux x86-64.

D108 — An aggregate-returning call may fill aggregate storage directly

The tour said that an expression body fills its named return [0880], while assignment evaluates its source before committing the destination [0410]. Once D106/D107 give a call caller-owned storage, routing its result through another aggregate value would add no semantics and would lose that direct destination.

Chosen: a matching struct- or fixed-array-returning call may initialize a typed local, assign a direct whole aggregate place, fill a named return in a block, or serve as that return's expression body. Lowering supplies the final place itself as the hidden result destination. Forwarding never materializes an aggregate SSA value or aliases one frame's storage into another. A callee using an independent result slot copies at its successful exits; a callee meeting D116's direct-storage conditions need not copy there.

Child-field destinations remain separate: they require a field-qualified hidden destination carrier before a returned call can fill them directly.

Why permit a boundary without a copy: by-value results require the same observable value and effect order, not a particular intermediate allocation. The independent slot remains available when direct storage would expose a partial result or change the named return's behavior.

The alternative: materialize an aggregate result as an IR value and copy it into the destination afterwards. That is a second copy of every result and an aggregate SSA value the IR was designed not to have; naming the final place as the hidden destination removes both.

Pinned by the checker, flow, lowering, verifier and backend public seams; the generated token and IR records; and the forwarding paths in runtime/struct-returns-cross-calls and runtime/array-returns-cross-calls on Linux x86-64.

D109 — Aggregate calls may return directly into field storage

The tour said that field and nested-element assignments are places [1900]. D88--D90 preserve their declaration-order identities, while D108 initially required an aggregate call's destination to be a whole slot.

Chosen: a matching struct result may fill a depth-one ordinary-child field, and a matching fixed-array result may fill a direct array field or one array leaf inside that child. The hidden Storage_Address carries destination parent and child identities exactly as aggregate arguments do. The backend derives the selected target address before the call; the callee remains unaware that its result storage is a subobject.

Definite assignment records the complete child or array fact after the call. No target offset, byte extent or source-level pointer enters checked IR.

Why destination qualification belongs on the address: copying first into a temporary and then into the field would be correct but would add an avoidable whole aggregate copy. Passing a qualified opaque destination preserves the same by-value result semantics when the callee either commits its independent named result at the exit or meets D116's direct-storage conditions.

The alternative: require a result destined for a field to go through a whole-aggregate local first. The hidden address already carries field identities for arguments, so the same carrier gives a field destination without a copy the reader would otherwise write.

Pinned by the checker, flow, lowering, verifier and backend public seams; the generated token and IR records; runtime/struct-returns-cross-calls, runtime/array-returns-cross-calls and runtime/nested-storage-arguments on Linux x86-64.

D110 — A local may infer aggregate identity from a returned call

The tour said that := infers the binding's type from its initializer [0050]. D93 already preserves nominal child identity from storage; D106/D107 now give a call the same neutral struct body or array shape without making its result an IR value.

Chosen: a local initialized directly by an aggregate-returning call may infer the callee's nominal struct body or fixed-array element type and length. The inferred binding receives its own shaped slot, which is supplied directly as D106's hidden destination. Module inference from calls remains forbidden by [1940], because module images run no call before entry.

Why inference changes no ABI rule: checking copies only source identity into the declaration, before lowering. Runtime uses the same caller-owned destination and D116 commit rule as an explicitly typed local.

The alternative: require the local's type to be spelled when it is initialized by an aggregate-returning call. The callee's signature names the body or the array shape completely; a spelled type would only be compared with it.

Pinned by the checker, lowering, verifier and backend public seams; the generated token and IR records; and the inferred locals in runtime/struct-returns-cross-calls and runtime/array-returns-cross-calls on Linux x86-64.

D111 — A returned aggregate may immediately cross an argument boundary

The tour said that arguments evaluate left to right [0410] and each in parameter receives a value [0900]. D106's result destination and D94's argument carrier can therefore meet in one caller-owned temporary without exposing an aggregate expression to neutral IR.

Chosen: a matching struct- or fixed-array-returning call may be supplied directly to an aggregate parameter. The inner call first fills a fresh shaped caller temporary through its hidden destination. Only after that call completes does the outer call transport the temporary's opaque address and perform its ordinary defensive callee copy. Nominal struct identity and array shape are checked at the source boundary.

When later arguments change blocks, the temporary address uses the same saved scalar carrier as any earlier aggregate argument, preserving block-local IR and source evaluation order.

Why the boundaries remain semantic: the inner return establishes a complete value in the caller and the outer in boundary establishes an independent callee value. The inner boundary need not copy under D116; optimization may combine argument storage only after proving neither identity can be observed. The language and verifier do not depend on either optimization.

The alternative: bind a returned aggregate to a named local before it may be passed on. The fresh temporary is that local without a name, filled by the inner call's hidden destination and copied by the outer callee exactly as a named one would be.

Pinned by the checker, lowering, verifier and backend public seams; negative/returned-struct-argument-nominal-mismatch; the generated token and IR records; and the nested calls in runtime/struct-returns-cross-calls and runtime/array-returns-cross-calls on Linux x86-64.

D112 — Discarding an aggregate call still gives its result a lifetime

The tour said that discarding a result is explicit [1020] [1930]. A scalar call can simply leave its produced IR value unused, but D106 requires valid storage through the aggregate callee's result commit.

Chosen: _ = call() for a struct or fixed-array result allocates a fresh shaped caller temporary, supplies it as the hidden destination, completes the call and then drops the storage. No field is read and no aggregate IR value is created. Calls returning none remain invalid discard sources because they produce no result at all.

Why not omit the hidden destination: the callee's writes and argument evaluation are observable even when the returned value is not. Running a different result convention only for discard would change the call rather than throw away its result.

Pinned by the checker, lowering, verifier and backend public seams; the generated token and IR records; and the explicit discards in runtime/struct-returns-cross-calls and runtime/array-returns-cross-calls on Linux x86-64.

D244 — A call that hands a result back is not a statement

The tour said that discarding a result must be explicit [1020], and wrote the discard as _ = double(5). [0960] adds that a call that can fail and whose result is discarded is an error, to be written try f() or discarded through an else. [1810] made a call a statement because a function returning none has nothing to bind, and in the same paragraph called a dropped result "the one place the kernel accepts an ordinary expression standing alone".

Chosen: a call standing alone must return none. One with a named return, several, a struct, an array or an any result, whether called directly, through a function value or with labels, is refused with L0331 and a note citing [1020]; so is a recovered call, g() else 0, whose recovery still produces a value. [0960]'s "discard through an else" is _ = g() else 0. A standalone try call stays a statement: [1810] says it discards any successful result, and the word is what makes the discard deliberate. That holds for every result shape, and a stored one — a struct, several results or an array — is given a temporary to land in, exactly as _ = try call gives it one; before this decision that path failed inside the compiler.

defer and undo register a call and are unchanged: the call they name runs at a block exit, and its result, of any shape, is dropped there. There is no defer _ = call to write instead, and the statement's own word already says the call is run for its effect.

A competent reader could have kept [1810]'s sentence, under which a dropped result was simply accepted, and every compiler through 0.2.0 did. That reading makes [1020] a rule about bindings only and leaves double(5) and _ = double(5) meaning the same thing, so the underscore would record nothing. The other alternative, refusing a result-bearing defer or undo too, was declined because it would need a second spelling for a registered discard and buys nothing a reader cannot already see.

Pinned by negative/call-result-dropped-by-omission, negative/call-struct-result-dropped-by-omission, negative/call-results-dropped-by-omission, negative/call-array-result-dropped-by-omission, negative/call-value-result-dropped-by-omission, negative/labelled-call-result-dropped-by-omission, negative/recovered-result-dropped-by-omission, runtime/standalone-try-discards-a-stored-result and runtime/deferred-call-drops-its-result; the one bare discard the corpus held, in runtime/r490-generic-recovery-frontier, is now written out.

D113 — An inferred function value is a code address

The tour said that a function is an ordinary value represented as a code address [0870] [1000]. The first executable slice does not need written function types to preserve that identity: a direct function name supplies its complete signature when a local uses :=.

Chosen: a local may infer a function value from a direct function name, store that value, replace a mutable binding with another function value, and call the binding indirectly. The inferred binding retains a first-class signature descriptor as its checking identity, independently of the concrete routine that first supplied it. Neutral IR materializes a Function_Address naming a routine item and carrying its descriptor; Indirect_Call carries a structurally agreeing descriptor, names no callee item, and takes the runtime code address as its first operand. The Linux backend emits RIP-relative address formation and call *address.

Arguments, scalar or aggregate results, stack positions and hidden aggregate result destinations otherwise use the existing internal convention unchanged. D117 adds one written infallible function type. D118 carries that value through parameters, results and static module storage and adds anonymous routines.

Why the indirect instruction retains a signature: a runtime address alone cannot tell the verifier how many operands or what result convention the call uses. Naming a semantic descriptor is target-neutral type evidence, not a claim that the runtime target is statically known.

The alternative: make a function value a closure with captured environment, or refuse to infer one and require a spelled function type. A closure is an allocation the language has no idiom for and [1000] promises a code address; a spelled type would only repeat the signature the named function already carries.

Pinned by the checker, lowering, verifier and backend public seams; negative/function-value-type-mismatch; the generated token and IR records; and runtime/inferred-function-values on Linux x86-64.

D114 — Indirect calls share the complete internal convention

The tour said that a function value has its signature as its ordinary type [1000]. Replacing an inferred function binding therefore requires equal parameter and result shapes, not merely another code address.

Chosen: mutable function values may be replaced only by a function with the same parameter count, declaration-order parameter types and result type. Nominal struct bodies and fixed-array shapes participate in that equality; parameter and result labels do not. An indirect call uses the complete direct-call convention: hidden aggregate result destination first, then source parameters across the six-register and stack run. The runtime code-address operand is verifier metadata and is not a source ABI parameter.

Why signature equality is checked before runtime: a code address carries no machine-readable Landin signature. Delaying disagreement until the call would turn a deterministic type error into register and storage corruption.

The alternative: give indirect calls a narrower convention with no hidden aggregate destination, or let a function value be replaced by any function whose parameters merely agree in width. The first splits the ABI in two for the same signature; the second lets a call read a struct where the callee wrote an array.

Pinned by the checker, lowering, verifier and backend public seams; negative/function-value-signature-mismatch; the generated token and IR records; and runtime/indirect-function-abi on Linux x86-64.

D115 — Aggregate call completion is an ordinary assignment fact

The tour said that a nonliteral condition is not believed and a name assigned in one branch but not another is not assigned after the branch [1910]. A call's hidden result destination does not create an exception to that rule.

Chosen: when an aggregate-returning call completes into a local place, that place gains exactly the same definite-assignment fact as a whole-place assignment. Branch joins intersect that fact normally. A guarded return does not erase a fact on its continuing edge, and it still requires every named return to be complete on the edge that exits.

Why this is not a call-specific flow rule: the hidden destination is only a transport convention. Giving it stronger flow semantics would let replacing a literal assignment by an equivalent call change whether later reads are legal.

The alternative: treat a completed aggregate call as assigning each part separately, or as no assignment fact until read. Per-part facts would have to be derived from the callee's layout for what is one whole write; no fact would refuse every read of a value the call just produced.

Pinned by negative/aggregate-call-result-not-assigned-on-every-path and runtime/aggregate-results-across-branches on Linux x86-64.

D116 — Aggregate-result exits commit a complete value

The tour said that every reachable return requires the named return to be assigned [1890] [1910]. Aggregate caller-owned storage makes the consequence observable at more than the function's lexical end.

Chosen: each accepted early or final exit from an aggregate-returning function delivers the complete named result to that call's hidden caller destination. The ordinary implementation keeps an independent named-result slot and copies its complete padded extent after that exit's cleanups. A compiler may instead construct the result in the caller destination and omit the final copy only when it can establish the same observable behavior: result construction makes no write to the caller destination on a failing path; no callee-visible alias, escaped result address, callback or cleanup can observe a partial or premature result; and source evaluation and cleanup still occur in order. This includes proving that any operation after the first direct write cannot fail or expose that write before a successful exit. When these conditions cannot be established, the independent slot and exit copy are required.

An aggregate call may complete the named result immediately before either exit. Flow checking refuses an exit reached without the complete result; another arm having completed and exited does not lend its fact to that path.

Why every exit commits: redirecting only lexical fallthrough would make an early return expose an unfilled caller image, while returning the callee slot's address would expose dead frame storage. Direct construction can avoid both a second full extent and its transfer when the result is built once and cannot be observed until that exit commits it.

The alternative: copy the named result once at a single merged exit block, or let one arm's completion satisfy another arm's exit. A merged exit runs cleanups in the wrong order relative to [1100]; a lent fact is exactly the soundness hole a path-insensitive join opens. Requiring a distinct slot even when direct construction is observationally equivalent adds storage and a whole-object transfer without protecting a value boundary.

Pinned by negative/aggregate-call-result-missing-at-early-exit and runtime/aggregate-results-across-early-exits on Linux x86-64.

D117 — A function value carries a signature, not a possible callee

The tour said that a function type is an ordinary type, written like its signature, and that a function value is a code address [0870] [1000]. It did not say whether the labels are declarations, how a stored address retains its type, or which written storage context opens the implementation slice.

Chosen: [1800]'s infallible signature is one written function type. Its parameter and result labels describe positions and declare nothing. It may be named by a type declaration and used for explicitly typed local storage; the local may be called indirectly and, when mutable, replaced by any function whose complete signature agrees. D118 extends the same descriptor to module storage, parameters, results and anonymous routines. Function-valued struct fields and declared-error signatures remain later slices.

Every declared function, written function type and inferred function value receives a first-class target-neutral signature descriptor. Agreement compares parameter count and declaration-order types plus the result type; labels and source sites do not participate. Scalar identity, nominal aggregate identity and fixed-array length and scalar element identity do. The verified IR carries the same semantic descriptor on routines, code-address values, function-value slots and direct or indirect calls. An Indirect_Call names no concrete routine: its address operand and descriptor must agree, and the descriptor alone decides the carrier count and result convention.

Why not keep the first function declaration as type evidence: a written type need not have one possible target, and a mutable local may successively hold several. Treating the first callee item as the type makes an incidental initializer an authority over later checking and prevents malformed IR from expressing the actual disagreement. A code address alone has no type metadata; target widths, registers and offsets would make the alternative descriptor an ABI record rather than a language signature.

Pinned by the parser, checker, type, lowering, IR, verifier and x86-64 backend seams; malformed signature and indirect-call cases in the verifier suite; negative/written-function-signature-mismatch; the generated lexical and IR records through positive/written-function-values; and runtime/written-function-values together with the existing inferred-function-value runtime cases on Linux x86-64.

D123 — Infallible function values use one recursive carrier rule

Anonymous functions withdrawn by D1654. A function value names a declared function; the carrier rule stands, and what it says of anonymous routines is history.

The tour said that a function is an ordinary code-address value [0870] [1000], that callbacks carry state explicitly because anonymous functions do not capture [1010], and that parameters and named results carry ordinary values [0900] [0930]. It did not say how a function type nested in another signature keeps its identity, which module images can hold one, or which scope a no-capture body can see.

Chosen: a function may be an infallible parameter or named result. A nested function position contains another structural signature descriptor; agreement recurses through it, still ignoring labels and source sites. At the internal ABI boundary every function value occupies one usize-sized code-address carrier. It therefore uses the existing register/stack position, scalar return register and named-result slot without adding an ABI parameter or flattening its own parameters. Aggregate results called through such a carrier retain D106's hidden destination unchanged.

A typed or inferred module binding may have a static function value. Its image must resolve through module function bindings to one declared or anonymous routine; there is no implicit zero code address, and a static chain that returns to itself is refused. Mutable module and local bindings use the same verified load, store and indirect-call operations.

An anonymous function is a separate no-capture routine. Its signature scope encloses the module rather than the lexical expression scope, so it can use module declarations, its own parameters, named result and body locals, but no parameter, return or local of an enclosing routine. Lowering allocates every anonymous routine item before filling any routine, after declaration items and in source then syntax post-order. Its code address names that deterministic item; the x86-64 backend gives an undeclared item a deterministic assembler-local symbol.

Declared error sets remain absent from this increment and arrive at D130. Function-valued struct fields are not enabled by this decision alone; D131 composes this carrier with the aggregate storage family.

Why one recursive descriptor and one carrier: flattening a callback's own signature into its caller would make source parameter count depend on nesting and would break the existing stack and hidden-result convention. Treating a module relocation or anonymous item as its type would again make one possible target the authority D117 rejected. A recursive language descriptor preserves structural checking while one code address preserves the established ABI.

Pinned by the syntax, no-capture resolution, checking and flow walks; recursive checking and IR descriptors; function parameter/result slots, static function datum targets, calls and verifier malformed cases; deterministic anonymous routine items and x86-64 local symbols; the generated lexical and IR records through positive/infallible-function-values; the negative fixtures function-parameter-signature-mismatch, function-result-signature-mismatch, function-result-unassigned, module-function-replacement-signature-mismatch, module-function-without-image and module-function-image-cycle; and runtime/infallible-function-values on Linux x86-64.

negative/anonymous-function-captures-local pinned the no-capture rule and left with anonymous functions (D1654).

D1654 — A function is declared by name: anonymous functions leave

The tour said at [1010] that an anonymous function is a function value written in place, capturing nothing. D123, D187 and D464 cite it, and lowering gives it an item kind of its own. The library, the examples and the prototypes write none.

Chosen: anonymous functions leave. A function value is a declared function passed by name; since an anonymous function captured nothing, the declared one says the same with a name. [1000] and [1010] become one paragraph. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: keeping them for short callbacks, which a named declaration beside the call already serves. Declined.

Pinned by negative/anonymous-function-is-declared-by-name, whose fix declares the function before the declaration that held it and passes its name (D1888). D123, D187 and D464 are marked amended; [1795]'s and [1820]'s productions lose the form, and so does the tree-sitter grammar.

D1888 — The removed declarations' rewrites

The discrepancy: D1847 makes each removed form's rewrite its refusal's exact fix, and D1654, D1656 and D1658 each leave the rewrite's details open: the name a hoisted function takes, how one evaluation of a shared value survives a line a name, and when m.name means what the selected name meant.

Chosen: an anonymous function becomes a module function named for the declaration that held it, holder_function, numbered holder_function_2 and on while the spelling is a name anywhere in the file, written before that declaration and above the comments that lead it, its lines moved out by the indentation it had. A shared declaration becomes a line a name with the written prefix, public, mut and link(...) included, type and suffix; the value stays the first name's, and a later local starts as = first, while a module value, an image computed once anyway, or a value that is one literal or name is written again. A selected import becomes the whole import and each reference bound to a selected member becomes m.name, m its last segment or as name, offered only where m names nothing else the file declares or imports; where the file already imports the module whole under that name, the selected import's lines go. A rewrite that would lose a comment, or one whose declaration does not have its lines to itself, is no fix, and the refusal says what to write.

The alternatives: a hoisted name from the binding or argument that held the function, which is often the local the hoist would shadow; and repeating every shared value, which runs a call once a name. Both were declined.

Pinned by the five removed forms' negative fixtures and their recorded fixes.

D128 — Multiple named returns form one anonymous structural aggregate

The tour said that a function may have multiple named returns [0920], that the return list is an anonymous struct bound whole or destructured by name [0990], and that every named return is assigned before an exit [0930]. It did not say whether result labels participate in function-value agreement, how the anonymous shape is laid out and transported, or how partial destructuring and control-expression joins retain it.

Chosen: a non-none return list contains one or more named positions. One position keeps the existing result type and carrier. Two or more positions form one anonymous structural aggregate whose fields are those positions in source order. Its value shape includes each field name and complete type, recursively including nominal aggregates, fixed arrays and D123 function signatures. The padded aggregate must fit the selected target. It has no source type spelling and no nominal declaration identity.

Function signature agreement compares the ordered result _types_ and ignores result labels, as [1000] requires. A call through a stored function therefore uses the labels written by that value's static function type while the runtime positions remain compatible. Outside function-signature agreement, two whole anonymous result values agree only when their ordered names and complete field types agree.

The internal ABI transports every multiple result as one aggregate. The caller supplies D106's one hidden destination, and each source named return writes its declaration-order field in the complete checked result shape. The callee uses an independent result slot and exit copies unless D116 permits direct storage. Direct and indirect calls, stack arguments and aggregate fields within the result add no second convention. A function-valued field is a usize carrier that retains its nested signature; aggregate-shaped field copies reuse the compact verified storage-copy operation.

A whole result can initialize or update an inferred local, cross D125's one consumer-owned control join, be read by field, or be destructured. Destructuring evaluates the source once and binds fields by name in any order. field keeps the field name as the local, field: local renames it, field: _ ignores that field, and one bare _ explicitly ignores every unbound field. Omission is also legal. Unknown and repeated fields use the ordinary field diagnostics; new locals enter scope only after the source is resolved and obey [1850].

Definite assignment tracks the named return declarations independently. Every reachable early return and final fallthrough requires every one; a direct expression body fills the complete anonymous aggregate on its fallthrough edge. A returning control edge supplies no joined aggregate but still proves all named returns, exactly as D124 requires.

Why one aggregate rather than one hidden pointer or register per return: the latter makes source arity rewrite the ABI and duplicates D106's caller-storage rule. One structural image gives whole binding, field selection, destructuring and control joins the same value while leaving target classification to the C boundary. Making the result nominal would invent a declaration the source never wrote and would contradict [0990].

The alternative: return several values in registers as a tuple the caller unpacks, or forbid more than one named return. A register tuple is a second calling convention with a size ceiling; one return makes the tour's (count, view) results unwritable.

Pinned by the return-list and destructuring parser/resolver/checker/flow walks; ordered checking and IR signature result runs; caller-owned result slots, direct and indirect lowering, function-valued result fields, verifier malformed result-slot cases and x86-64 aggregate copies; positive/multiple-named-returns; negative/function-type-return-name-duplicate, multiple-return-name-duplicate, multiple-return-unassigned, multiple-result-function-signature-mismatch, result-aggregate-assignment-name-mismatch, result-destructure-duplicate-field, result-destructure-local-name-duplicate, result-destructure-needs-multiple, result-destructure-unknown-field and control-result-field-name-mismatch; the generated lexical and IR records; and runtime/multiple-named-returns on Linux x86-64.

D130 — Errors are an orthogonal atom outcome, not a second result

The tour said that errors are payload-free atoms in one dedicated register, that try propagates them, and that call-site else handles them [0940] [0960] [1030]. It did not fix atom-set identity, recursive private inference, the success sentinel, the neutral IR carrier, or how scalar and aggregate results coexist with that register.

Chosen: [1980]. Atom and error sets are structural sets of declaration identities. A failing signature adds one orthogonal outcome to its existing successful result rather than wrapping, replacing, or adding a named return. Concrete sets are part of recursive function-type agreement; private ! ... is the least fixed point of local failures and tried callees, including mutually recursive routines. Every first-class or public signature stays concrete.

Neutral IR carries source atom identities and set metadata, one call failure slot, a semantic Failure_Test, and a distinct Fail terminator. A recovery joins only its fallthrough value with the success value; return and fail edges need no placeholder. The malformed-IR verifier checks set partitions, membership, widening, signatures, failure slots, and failure exits before a backend can assign bits.

Linux x86-64 uses dense nonzero 32-bit atom codes in declaration-identity order and %r10d as the dedicated call-failure carrier; zero means success. Ordinary atoms still use normal argument positions and %eax results. Scalar/function results remain in %rax, aggregate results remain in caller-owned storage, and neither direct nor indirect failing calls consume a source ABI position.

Why orthogonal rather than a result union: a none function may fail, an aggregate result already has independent caller-owned lifetime, and wrapping every result would change every value convention and indirect signature merely to represent an outcome the tour already assigns its own register. A hidden out-parameter would instead consume an argument position and make the declared channel alias ordinary storage. Both alternatives erase the one visible mechanism [0940] chose.

Pinned by positive/atoms-and-error-signatures, the negative declared-error fixtures, runtime/atom-values-cross-the-abi, runtime/declared-errors-direct-and-inferred, runtime/declared-errors-indirect-abi, the malformed-error verifier case, and the generated lexical, construct and IR records.

D131 — A function-valued field is one signature-carrying address leaf

The tour said that a function is an ordinary code-address value [0870] [1000], that a struct field may have any ordinary type [0670], and illustrated a callback as a function field plus explicit state [1000]. D117 and D123 kept function-valued struct fields as the remaining function storage form while the aggregate path and image carriers were still being established.

Chosen: an ordinary struct field or variant payload field may have a concrete function type. Its runtime representation is D123's one usize code address, while its complete recursive descriptor — including declared errors — remains target-neutral type evidence on the checked and IR field shape. Construction, individual assignment, whole-struct copy, aggregate parameters and results, nested ordinary children, variant payload aliases, and arrays whose element is such a struct all reuse their existing storage and path operations. This does not separately enable a fixed array whose element is a function value.

A selection of that field is an ordinary function value and a call callee. The complete callee selection, including a computed array index, is evaluated and checked for definite assignment before any argument. Every call through a field is indirect at runtime even when its current image names a declared routine; direct calls to declarations keep their existing instruction. Replacing a mutable field requires structural signature agreement, and the root binding still decides whether the field is writable.

A function address has no all-zero value [0540]. A struct, active variant case, or nonempty array of structs containing one therefore has a zero image only when every field selected by that zero image does. An omitted module image, whole zeroed, or trailing of zeroed cannot invent a null callback. A static module struct or selected payload may instead carry a declared function, a no-capture anonymous function, or a static function-binding chain. Neutral IR records one routine relocation on that scalar field; whole module-image copies copy the relocation into distinct storage. The verifier proves the relocation target and every field/element/payload load and store against the field's recursive descriptor before the Linux x86-64 backend emits a symbol or an indirect call.

Why retain a descriptor beside one machine word: flattening the callback's own parameters into its containing struct would make layout depend on what the address can be called with rather than what the value occupies. Erasing the descriptor would instead let a whole aggregate copy or an indexed field load turn a deterministic type mismatch into an indirect ABI mismatch. The same carrier-plus-descriptor rule at every storage depth is D123 composed with D118's path rather than a field-specific calling convention.

Pinned by positive/function-valued-struct-fields; negative/function-field-assignment-signature-mismatch, function-field-cannot-be-filled-with-zeroed, function-field-construction-signature-mismatch, function-field-error-signature-mismatch, function-field-has-no-zero-image, function-field-unassigned, function-variant-payload-signature-mismatch, and module-function-field-without-image; the malformed aggregate-image verifier case; the generated construct, lexical and IR records; and runtime/function-valued-struct-fields on Linux x86-64.

D186 — A caller parameter is an exact compiler-filled utf8 site

Superseded by D192. The string representation was refused because its filenames cannot be omitted from constrained builds. The original reasoning below is retained as history; the caller rules survive, and the fixtures named below now exercise D192's replacement (including the renamed needs-site case).

The tour said that [1040]'s caller parameter is filled with the call site and may be passed on only from another caller parameter. It sketched a distinct integer site, but did not say what a site contains, how it crosses the ABI, whether omission changes positional matching, how forwarding is distinguished from forging, or whether caller behavior belongs to a function type.

Chosen: a caller parameter is written caller name: utf8. Its type is exactly D181's immutable utf8 identity; another text identity or its backing slice is L0301. caller is mutually exclusive with escaping, in, inout and sink. The parameter is an immutable value in the signature scope, and its caller behavior is part of structural function-signature identity even though the label, as for every parameter, is not.

At an ordinary source call, positional arguments skip caller positions and every caller position not explicitly forwarded is filled by the compiler. The value is the UTF-8 spelling source-name:line:column, using the source name in the compilation snapshot and one-based coordinates at the call expression's first token. Its bytes and trailing zero share D181's width-and-content-keyed read-only static pool; the retained utf8 length excludes that terminator. It is an ordinary slice carrier and ABI parameter after injection, so the neutral IR, verifier and backend need no caller-specific instruction or calling convention.

A wrapper preserves an incoming site only with a named argument whose complete expression is the name of one of that wrapper's own caller parameters: wrapped(value, where: where). A positional argument cannot target a caller position, and a literal, local, result, selection or other utf8 expression cannot fill one by name. The extra positional argument is L0327; an invalid named forwarding source is L0327. Omitting the named forwarding argument deliberately reports the wrapper's internal call instead. These rules apply to direct, generic and stored function calls alike. A wrapper that does forward its site reads no pooled bytes at that call, so no site datum is registered for it: the read-only pool holds exactly the sites some instruction addresses.

caller is not added to [1760]'s keyword rule, and this decision is what says so. [1760] promises that a program avoiding a construct never trips over its keyword, and caller is a word an ordinary program writes: a parameter, a binding or a loop label naming whoever called is as plain a name as arena is in core/mem. So two tokens decide the modifier, exactly as D187's unchecked is decided on two and D191's arena on three — caller followed by a second name is the modifier, and nothing else is. A parameter of that name writes : next, so caller: utf8, in caller: u8 and escaping caller: ptr u32 all stay ordinary parameters, and caller = x, caller: loop do and inc caller are untouched. runtime/caller-is-an-ordinary-name pins that from the other side, with a parameter named caller beside a real caller position in one signature.

Changing the site's representation moved [1040]'s example off [1670]. That example called panic_handler(assertion, where) while a site was the tour's distinct integer, and a utf8 site cannot reach a handler [1670] declares as (kind: panic_kind, site: u32) and describes as "Two scalars, no strings". The example now calls a reporting function of the program's own, because the two paragraphs are about different callees: a caller parameter serves the assertion a program writes, and [1670] is the fixed symbol the compiler's own failed check calls with a number it assigns. [1670] is unchanged, and this entry decides nothing about it.

The alternatives: retaining the tour's unstructured integer would make a site target-sized and force every consumer to recover source data through an unstated global table. Treating caller as a default value would omit its function-type behavior and let positional insertion silently retarget later arguments. Accepting any named utf8 would make sites forgeable and would not enforce the wrapper rule [1040] states. A dedicated IR value or backend ABI would duplicate the exact slice representation already required at the source boundary. Reserving caller in [1760] was declined because it would make thirty-seven words out of thirty-six, delete the spelling from every program that never writes a caller parameter, and break [1760]'s stated promise for a word no construct outside [1040] mentions. Deciding the modifier on its spelling alone was declined for the same reason and was what this entry originally said: it refused (caller: u8), which the second alternative of [1800]'s own parameter production derives, and reported it as a keyword that [1760] does not reserve. Registering a site datum for every call whose callee has a caller position was declined once forwarding was distinguished from omission: it left one unreferenced read-only string in every forwarding wrapper.

Pinned by positive/caller-parameters, negative/caller-parameter-forward-needs-caller, negative/caller-parameter-needs-site, negative/caller-parameter-positional, negative/caller-parameter-signature-mismatch, runtime/caller-parameters, runtime/caller-is-an-ordinary-name, the generated lexical and IR records, and the functions.caller guarantee row.

D192 — Caller coordinates are three u32 fields; filenames are optional metadata

The tour said that a caller parameter identifies the source call and can only be forwarded from another caller parameter [1040]. D186 supplied that identity as a utf8 string. The user refused that representation and chose a 12-byte structured value after comparing debugger source-location models.

Chosen: a caller parameter has an ordinary nominal struct type with exactly three ordinary fields, in declaration order: file_id: u32, line: u32, and column: u32. Each scalar is the exact unconstrained u32 identity; scalar aliases are the same identity. A type alias of the struct qualifies too. The contract introduces neither a builtin type name nor a privileged core module; a library declares the struct it uses and wrappers use that same nominal type. Two qualifying struct declarations are still different types [0710].

The value occupies 12 target bytes with four-byte alignment on the enabled Linux x86-64 and synthetic-32 targets. The same three-u32 layout is required of future targets. It crosses the existing aggregate ABI through caller-owned storage, so 12 describes the value, not a promise about total stack use or instruction size. The compiler constructs three scalar fields at an omitted caller position. It creates no per-site static datum and no source string.

file_id is the nonzero source-snapshot number assigned within this whole compilation, including reached modules. It identifies a source, not a basename or a hash of a path. The line and byte column are one-based and identify the call's callee anchor, using [1750]'s source coordinates. Repeated executions and generic instantiations of that source call retain those coordinates; distinct columns on one line remain distinct. IDs are not persistent across builds, and no packed subfield truncates a coordinate. Compiler source-count and source-size limits remain the existing checked host-capacity limits.

D186's contextual two-token modifier, immutable binding, mutually exclusive conventions, skipped positional positions and function-signature identity all survive. Only a named argument whose complete expression is one of the current routine's own caller parameters can fill a caller position explicitly. A copy, construction, literal or field selection cannot forward. Omission at a wrapper reports its own call; forwarding preserves the incoming three fields. The value may otherwise be copied, stored or returned as an ordinary struct, and none of its coordinates borrows source storage.

Filename lookup is optional deployment data. The compiler emits an off-target <output>.sources.json when emitting code that injects coordinates. Each used file has one entry with its ID, exact path bytes encoded as hexadecimal, and its source SHA-256. Path bytes are length-independent data: colons, quotes, newlines and non-UTF-8 filesystem names are unambiguous. The artifact also records the assembly digest and a SHA-256 build identity over the file entries and assembly. An assembly comment carries that identity before the final assembly digest is computed, so source changes that preserve code cannot share an assembly mapping identity. Executable emission supplies the ELF build ID. refine site (D1292) requires the matching assembly or build identity before resolving a triple. A manually linked assembly can use the assembly check. Neither the filename map nor a lookup routine enters the running program; without the map a diagnostic can still print all three coordinates. This is bootstrap artifact packaging, not a frozen debug format or stage protocol. Source debugging's --debug=full also emits this map, with every compilation source, and uses these same file IDs for native debugger line information. The default --debug=none retains the caller-only map. Debugger sections are optional off-target data and can be stripped from the executable without changing caller values or its ELF build identity. The source table continues to require exact assembly or build-ID matching; neither a basename nor a map from a different build is sufficient.

The alternatives: one u32 site token would reduce transport and saved-log storage to four bytes, but even its line would need a lookup table. The chosen structure keeps useful coordinates when all lookup data is omitted. A record containing a filename pointer or text view still retains filename storage; removing its file table would change or invalidate the value. D186's joined string has that same cost and additionally requires parsing. Raw code addresses would couple the language value to relocation and code transformations. These debugger formats inform the shared source model, not the runtime ABI. Removing [1040] or deferring it to source debugging was declined because the structured value solves its cost problem with existing aggregate machinery. Accepting any three words without field names was declined because their interpretation would then be unstated. Privileging a particular core type was unnecessary.

D232's compiler-check handler takes its separate site number. Both features follow [1670]'s no-mandatory-filename rule and share optional source/build identity packaging, without changing this caller-value contract. Since D361 a hosted program with no selected handler carries the file names of its checks in their reports; selecting a handler leaves them out.

Pinned by positive/caller-parameters, runtime/caller-parameters, runtime/caller-is-an-ordinary-name, the negative/caller-parameter-* corpus, driver/caller files are separate, and the functions.caller guarantee row. The runtime case retains coordinates after returns, verifies 12-byte size, and covers direct, forwarded, omitted, indirect, generic and multi-file calls.

D1292 — refine site resolves a site, or a caller's coordinates, against its build

The discrepancy: D192 and D232 keep file names out of a program: a caller's coordinates are three numbers and a panic_handler's site is one, and the table that turns them into a path and a line is written beside the build. The only reader of that table was a Python script in the source repository, so a user of an installed refine held a number and nothing to resolve it with. A hosted trap with no handler prints its own line (D361); a handler's site and a firmware trap did not.

Chosen: refine site [--map=FILE] [--dsym=FILE] PROGRAM SITE and refine site ... PROGRAM FILE LINE COLUMN. PROGRAM is what the compilation wrote: an executable, a firmware image, or the assembly of --emit=asm. The table is PROGRAM.sources.json unless --map names it. SITE is a u32 in decimal or after 0x. The answer on standard output is the recorded path's bytes, :LINE:COLUMN, and for a site the check that failed in parentheses, as the script wrote them, and the status is 0.

The table answers only for the build it was written with, and the command reads that build's identity itself rather than being told it: an ELF's .landin_id section, which every firmware image carries, or else its GNU build ID, which a hosted link is given and strip keeps; a thin arm64 Mach-O's __TEXT,__landin_id section, and with --dsym the dSYM's DWARF file must share the executable's UUID; anything else is read as assembly, whose SHA-256 must be the table's assembly_sha256. A table that is not one is L0688, a build that is not the table's L0689, and a site, a file number or an operand the table does not hold L0690, each with status 1; a file that cannot be read is L0003. Site 0 is the compiler's own guard and is refused by name. Every file is read through Landin.Platform, nothing is written and no tool is run.

"The built program's debug information" is this table and not DWARF: a site is defined by D232 as a source byte and a check family, the table is the one artifact that records it on every target, firmware and a stripped executable included, and DWARF line tables name instructions, not sites. The script is removed; the debugger lanes and the Cortex-M panic control call the command.

The alternatives: the trap report carrying the line, which D361 does where there is a process to write it and which firmware and a selected handler cannot do without the file names D192 keeps out; a command told the identity (--build-id HEX), as the script was, which makes the user run readelf first and lets a wrong one be typed; and keeping the script beside the command, two decoders of one table. The maintainer chose the command.

Pinned by commands/site is a subcommand, on the fake filesystem: the five check families at one source byte, hexadecimal, a path holding a colon, a quote and a non-UTF-8 byte, each kind of build matched and mismatched, a truncated ELF, a dSYM of another UUID, and every refusal. compiler/tests/debugging/check.py and panic.py resolve a stripped executable's and an assembly's coordinates through it, and environments/cortex-m/freestanding.py a firmware image's site. The Mach-O reader has run only on that case's synthetic files; Darwin's lane has not run it.

D231 — Nonreturning calls and signature identity

From [0890], [0940], [0960], [1000], [1050], [1100], [1110], [1240], [1290], [1370], [1670], D11, D124, D148, D187 and prototype 1's start.

Decision: noreturn is an infallible return form. It is not an ordinary value type, a spelling of none, or an atom containing private call status zero. Ordinary declarations, anonymous functions, function types and concept entries may use it. Concrete and inferred error sets are refused: checked failure returns control to a caller and therefore contradicts this form. Generic instances and erased evidence signatures preserve the return form. Structural compatibility requires identical return form, parameters and calling convention; there is no implicit or explicit conversion between noreturn and none functions, or between either and result-bearing functions.

A call evaluates its callee and arguments in their existing order. If that evaluation reaches the call, the continuation ends. Existing local origin, sink and escaping-argument obligations still apply at call entry. Definite assignment merges only continuing edges. A nonreturning call can terminate a value-producing branch or recovery expression without contributing a value; other continuing branches must supply the context's complete value shape. Such a call does not provide a type for an otherwise unconstrained inferred binding. Ordinary none calls do not terminate control flow.

A definition must have no reachable successful return or body fallthrough. Flow analysis recognizes unconditional loop with no reachable exit, calls with this return form, and combinations of these with structured control. A conditional loop is not assumed to diverge from a runtime condition, even if the programmer expects it never to end. Unreachable source remains subject to ordinary name/type checking. Code after a proven terminating edge is not executed. Optimization neither invents divergence nor makes a returning signature nonreturning from its current implementation.

Calling such a routine does not unwind registered cleanup. A deferred nonreturning call is allowed and is evaluated only on its applicable cleanup edge, in the existing reverse registration order. It prevents remaining cleanup and the original transfer from executing. Consequently a written return whose cleanup necessarily diverges does not produce a successful return edge. undo still runs only on failure; it cannot by itself establish that an ordinary successful fallthrough diverges. Recovery handles declared failures, never divergence or a runtime trap.

C declarations and C function types may use this return form within each target's existing C surface. It promises that the external implementation never returns. Cortex retains its general C source refusals; no toolchain helper becomes source-callable through this rule. Interrupt and naked signatures remain exactly () -> none, with their separate machine return obligations. An ordinary nongeneric firmware entry can be () -> noreturn; a none entry retains the firmware entry's return trap. Hosted entry selection remains public main: () -> (code: i32) and the established linkage rules.

IR represents the return form in signature identity and a nonreturning call followed immediately by a terminal Halt. Verification rejects a continuation following that call, a returning body with this signature, or an evidence entry that loses the return form. Halt is a control/trap effect; it is not a value and cannot disappear as dead arithmetic. It traps if an external or otherwise invalid implementation violates the promise by returning. Linux and Darwin use their established undefined-instruction guards; Cortex uses its selected undefined instruction. D11's existing observable trap guarantee continues while the separate [1670] handler mechanism is implemented.

Alternatives and rationale: interpreting every result-free routine as nonreturning would break none callers. Treating noreturn as an ordinary value introduces values that cannot exist. Allowing checked failures would require a second continuation contract and ambiguous cleanup/dispatch rules. Inferring a promise from arbitrary loops or assembly would make source compatibility depend on optimization or programmer-written instruction text. These alternatives are declined.

Pinned by: checking/nonreturning control and identity checks Linux x86-64, Darwin arm64 and Cortex-M0 descriptions through verified IR; positive/r491-noreturn-signatures retains the former refusal's exact source as accepted syntax; D232 supplies panic dispatch.

D263 — A mistake is reported where it was made, not where it shows

The discrepancy: a checker refusal is often found by what it leaves behind. A misspelt argument label also leaves its parameter unfilled, and the call was reported for the missing parameter first and the label second; a local in a body with a named return's name declares a new name, and the only report was that the function could end with the return unassigned, at the function's head.

Chosen: the cause is reported and its consequence is not. A call with an argument label that names no parameter reports the label, with the parameter it is near, and not the parameter it leaves unfilled; a generic call's unmatched argument does the same. A body binding, or a destructured name, spelled like a named return that is then not assigned is reported at that binding as declaring a new name, with the return it hides; the function is not reported for the same return. A scalar type name written where a value belongs is reported as a type, with [0700]'s conversion, rather than as a name that is not declared.

A refusal poisons what it refuses. A write the checker refused, to a binding declared without mut say, is still where the place was assigned, so reading the place afterwards is not reported as unassigned. A binding whose write is refused for its mutability is reported once, at the first write, with the fix that declares it mut; the later writes are the same mistake. A value-producing control expression whose value is missing on more than one path is reported once: its arms and blocks report against the construct, and the construct's value is the one fact D124 decides.

The alternatives: refusing every body binding that shares a return's name, which also refuses a deliberate inner name in a nested block whose return is assigned elsewhere; keeping both reports and ordering the cause first, which still reports one mistake twice.

Pinned by negative/writes-to-an-immutable-binding-report-once, negative/a-refused-write-still-assigns and negative/a-control-value-missing-twice-reports-once, for the poisoning; negative/misspelt-argument-label-is-offered-its-parameter, negative/named-call-unknown, negative/local-shadowing-a-named-return-is-reported-there and negative/scalar-type-is-not-a-value.

D309 — An array is lent whole to a slice parameter

The tour said at [0570] that a slice views an array's elements, and an array literal or a fixed array as a slice argument was refused, L0304 and L0334, so every call that takes a short list, text.format's values among them, named an array and sliced it, writing the count twice.

Chosen: an array literal, or a fixed-array place, is the argument of a slice parameter []T passed in. A literal is formed in written order in the caller's frame each time the call runs and lent read-only, with frame origin, so a result from that parameter cannot leave the caller. A place, a binding, a module array, a parameter, a named return or an admitted array field, lends its own storage for its type's whole length and keeps the place's origin. A []mut T parameter takes a writable place, as a range slice of it would, and never a literal. A utf8 parameter takes neither. A generic routine's slice parameter takes a place as any other routine's does (D372), and a literal when its element type names no formal (D419); one whose element type is a formal still refuses a literal, which D138 types before the parameter is known.

The alternatives: a slice binding, field or return taking a literal, none of which has a call whose run bounds the storage; a literal lent to []mut T, whose writes nobody could see; lending a literal to a generic parameter whose element type is a formal, which needs it typed after deduction; and requiring [0..<n], the count written twice.

Pinned by runtime/array-lent-to-slice on every target, negative/array-literal-lent-escapes and negative/array-lent-refusals.

D310 — A call that returns nothing takes no value in its else

The tour said at [1030] that a call's else stands in for its result when it fails. A call returning none has no result, yet f() else 0 was accepted, and the corpus had come to write it 192 times to ignore an error.

Chosen: the recovery of a call with no results is checked like any statement block: a last line that is a value is L0331, "this call returns nothing, so its else has no result to stand in for", whose note names the block form, else (problem) ... end.

The alternatives: a code of its own, where L0331 already covers using the result of a none call; ignoring the value, the defect itself; and refusing every else on such a call, which is the only way to handle its errors.

Pinned by negative/none-call-else-value.

D376 — else none ignores the failure of a call that returns nothing

The tour said at [1030] that a call whose failure is discarded is an error, and that an else discards it. Once D310 refused a value there, the honest way to ignore a failure was three lines, else (problem), _ = problem and end, which the corpus and the library wrote wherever a failure did not matter: longer than the defect it replaced, by three tokens and two lines.

Chosen: recovery ::= "else" "none" is a recovery of its own. It is admitted only on a call that returns none, where it means exactly the empty bound block: the call's effects up to its failure stay, and the statement after the call runs next, whatever failed. none begins no expression or statement, so an if's own else can never begin with it, and else none is the call's recovery in an if arm as anywhere else [1820]. On a call that returns a value it is L0331, "this call returns a value, so else none leaves nothing in its place", whose note names else value, the bound block and try: a failure is never ignored by leaving a result unset. D310's refusal of f() else 0 on a none call now offers to write none for the value.

The alternatives: else _, which reads as the binding of nothing D261 refuses in else (_); the empty bound block, else (problem) end, which names an error nobody reads and spends a line on its end; a statement prefix such as ignore f(), a keyword for one position the recovery already owns; and admitting else none on a value call by zeroing the result, which hides a missing value behind a plausible one. D406 later admits it where the call is the whole operand of a discard, which leaves nothing unset that is read.

Pinned by positive/else-none-ignores-a-failure, runtime/else-none-ignores-a-failure, negative/else-none-on-a-call-that-returns-a-value and negative/none-call-else-value-becomes-else-none.

D371 — A one-line function-typed module binding is a binding

The discrepancy: cb: () -> (v: i32) = lib.f at a module's top level was read as a function declaration whose body is lib.f, and refused as L0104, "this function is never closed". [1790]'s grammar derives it as a binding of function type, which a body accepts, and at the top level it needed a type alias first, callback: type = () -> (v: i32), which no report said.

Chosen: a top-level name: (...) -> returns = value is a binding when the value is a name, or a name selected from a module, that ends its line on the declaration's line, and the next line does not begin with end. A function always closes with end, so such a line declares no function, and every function the corpus writes is read as before. A function-typed value written over several lines, such as an anonymous function, is still read as a function and still needs the alias.

The alternatives: refusing the form with a note naming the alias, which keeps a source the grammar derives refused; and deciding by whether an end closes the declaration anywhere later, which would let a missing end turn a function into a binding.

Pinned by runtime/function-typed-module-binding-names-a-function.

D382 — An atom outside the error set is named with the fail or call that raises it

Amended by D1652. There is no try for, so no traversal raises an atom; the fail and call labels stand.

The discrepancy: [0940] puts every failing path in the function's ! set, and L0329 refused a body that broke it with "this body can fail with an atom outside its declared error set", pointing twice at the signature. It named neither the atom nor the place it came from, so a fail problem whose binding still held its call's whole error set read as a refusal of the signature alone.

Chosen: the refusal names the first atom outside the set, "this body can fail with denied, which is outside its declared error set", stays on the signature, where the atom would be added, and labels where the atom first entered the body: "this fail raises denied" for a fail, its value an atom or a recovered error binding; "this call can fail with denied" for a try; and "this traversal's providers can fail with denied" for a try for. The note says to add the atom or recover the failure where it is raised. Which programs are accepted does not change. D1200 has since made the report name every atom that entered there, each with its module.

The alternatives: one report for every atom outside the set, which repeats one mistake as often as a callee's set is wide; pointing the primary label at the fail, which hides the signature a reader may mean to widen; and naming every path the atom reaches the body through, which the first already shows how to find.

Pinned by negative/error-outside-set-names-its-raise and negative/fail-outside-declared-set.

D1200 — Every atom outside the error set is named, as the file writes it

The tour said at [0940] that every failing path belongs to the function's ! set. D382 made L0329 name the first atom outside the set and the fail or call it entered the body through, and declined one report for every atom because that repeats one mistake as often as a callee's set is wide. Writing an error set over a library call then took one run for each atom, and the atom was named bare, no_access, where the signature has to write io.no_access.

Chosen: one report for each fail or call that brings atoms outside the set into the body, naming every atom that first entered there: "this body can fail with io.no_access, io.busy and net.refused, which are outside its declared error set". Each atom is spelled as the file holding the signature writes it, with the name its import of the atom's module binds (D201) and bare for an atom of the file's own module. The label and the note list the same atoms; the report stays on the signature. A call whose set is wide is still one mistake and one report. Which programs are accepted does not change.

The alternatives: D382's first atom alone, which hides the rest until the next run; one report naming every atom of the body whatever brought it, which labels only one of the places a reader has to look at; and the bare name, which is not what the signature can write.

Pinned by negative/error-set-names-every-atom, with D382's fixtures for a single atom.

D1103 — An error set names atoms, and a pointer type reached through an alias is refused

The tour said that a function fails with one of the atoms after ! [0940]. The error set is written in the grammar of an atom union, and D189 admits one pointer type in a union of atoms that is the type of a value. A pointer written directly after ! is a syntax error, but an alias reaches one unseen: problems: type = ptr missing, or a named pointer union. The checker then had no atom set for the signature, dropped the signature without a report, and lowering met the routine without one.

Chosen: an error set that holds a pointer type, alone or beside atoms, is refused with L0338 at the set, beside the signature it is written in.

The alternative was to take the atoms of a pointer union as the set and ignore its pointer. It was declined, because the alias then means two different things in a value's type and after !.

Pinned by negative/error-set-names-a-pointer-type.

D406 — A discard ignores a value call's failure with else none

The tour said at [1030] that an else discards a call's failure, and at [1930] that _ = discards a result. D376 admitted else none only on a call that returns none, because on a value call it would leave the result unset, and negative/else-none-on-a-call-that-returns-a-value pinned that refusal on _ = count(false) else none too. Ignoring both the failure and the result of a value call took the bound block, _ = f() else (problem) end, which names an error nobody reads, and a pointer result has no zero for else 0.

Chosen: else none is admitted on a call that returns a value when the call is the whole operand of a discard, _ = f() else none. D376's reason does not reach it: the discard declares the result unread, so nothing is left unset that anything reads. It means the empty bound block: the call's effects up to its failure stay, and the next statement runs. A value call used any other way, bound, assigned, an argument or an operand, an argument inside a discard included, is still L0331, whose note now names both working forms: _ = f() else none to ignore the failure and the result, and else (problem) ... end to handle the error. This reverses one line of D376's pinned negative deliberately; the fixture now refuses the call as an argument inside the discard instead.

The alternatives: only naming the bound block in L0331's note, which keeps an error name nobody reads; a new word, else discard or ignore f(), which D376 already declined for a position the recovery owns; and admitting else none on every value call by zeroing the result, which D376 refused for hiding a missing value behind a plausible one.

Pinned by runtime/discard-else-none-ignores-a-value-call-failure and negative/else-none-on-a-call-that-returns-a-value.

D432 — A destructured name is a local place

The tour said at [0990] that a result list is an anonymous struct that may be destructured, and [1920] that a bare name binds a local. The checker admitted a local, a parameter, a named return and a match binding as a place, but not a name a result binding wrote, so (found, bytes) := f(data) then addr bytes[0] was L0337, as were addr count and passing count to a sink parameter, while the same values held in an ordinary local were accepted. Admitting the address alone would have let addr count escape, because the origin walk gave such a name no frame origin.

Chosen: a destructured name is a local in every place analysis asks: it is addressable, a sink place and a frame-storage root, with a frame witness, so returning addr count is L0314 and a sunk destructured name is dead until assigned, as an ordinary local's would be. It stays read-only. Lowering already gave each such name a frame slot.

The alternatives: keeping the refusal, which contradicts [1920], and admitting the address without the origin, which loses the escape refusal.

Pinned by runtime/destructured-locals-are-places and negative/destructured-local-escape.

D1091 — A selected callee keeps its error set under every call rule

The tour said at [0960] that a call that can fail is written with try or else, at [0940] that every atom a try passes on is in the routine's declared set and that ! ... is whatever its callees can fail with, and at [1290] that this is worked out for each concrete instance. Those rules ran before the bodies they speak of were checked, and read a callee's set from the declaration its name resolved to. A callee that is selected, a concept entry through a type parameter, a function a struct field holds or one an array holds, had no such declaration yet: an untried call passed and stopped lowering with an internal defect, a try of one added nothing to a declared or an inferred set, and a caller that recovered the failure of a ! ... routine was told the call could not fail.

Chosen: the three rules read a selected callee's set from where the language puts it. A function a field or an element holds has the signature of that field's or element's function type, which is known before any body is checked. A concept entry reached through a constrained type parameter is selected in each ready instance before the sets are worked out, for every call of it, tried, recovered or neither, as it already was for a recovered call. L0329 then reports each as it reports a call of a named routine.

The alternative: refusing a failing callee in these positions, which takes try away from generic code and callbacks. It is declined.

Pinned by negative/selected-callee-keeps-its-error-set and runtime/selected-callee-keeps-its-error-set.

D1367 — A value written after the result was assigned is warned of

The tour said at [0880] that a body that is one expression fills the named result with it, and at [1080] that a block's value is its last expression; D124 made a routine's block body one of those blocks. It did not say that a body which assigns its result and then ends with a value gives the value, so a slip that writes a value twice, code = 0 1, two statements on one line by [1750], compiled without a word and returned 1, and r = x followed by x the same.

Chosen: where a routine's block body ends with a value and every path that reaches the value has already assigned a named result, L0693, a warning, is reported at the value, naming the result, with a label at it. The program is accepted: the value is the result, as [1080] says. A body that ends with its value without assigning the result first, as runtime/r491-callee-errors' pick does, is not warned of, nor is one whose earlier assignment some path skips, since the value is then the only result on that path. The check is the definite-assignment walk's own [1910]: the state at the value, the one that decides whether the result is assigned at the end. --allow and --deny take it as any warning.

The alternatives: a warning wherever a value follows a statement on its line, which misses the same slip over two lines and says nothing of what the value replaced; refusing the program, which would change what compiles today for a form that has a meaning; and a sentence in the tour alone, which the tour now carries as well. The maintainer chose the warning.

Pinned by negative/a-value-after-an-assigned-result.

D2178 — L0303's repair for a []mut parameter written inout drops inout

The discrepancy: a []mut f64 parameter written inout makes every caller's slice binding need mut (L0303), and the offered fix was mut on the caller's binding, though a []mut parameter writes its elements without inout [0570]/[0900], which only lets the callee replace the caller's slice.

Chosen: when the place L0303 refuses is lent to an inout parameter whose type is a []mut slice, the note says that inout lets the callee replace the slice and that a []mut parameter writes the elements without it, and the guessed fix removes inout from the parameter, in whatever file declares it. It is a guess, because a callee that does replace the slice needs the caller's binding mut, which the note also names. The fix is not offered for a library parameter, which a program does not edit.

The alternatives: keeping mut on the binding as the fix, which spreads the parameter's mistake to every caller; and an exact fix, which would be wrong for a callee that assigns the whole slice.

Pinned by negative/inout-mut-slice-parameter-drops-inout, whose guessed fix the fixes suite applies and compiles clean.

D2182 — A function value of another signature is told which part differs

The discrepancy: L0301 refused a function value whose signature differs from its place's, saying only that it differs, so a from held against a from, or an escaping into against an escaping, read as identical text on the page.

Chosen: the note names what differs. Where both signatures have as many parameters and as many results, it names the first parameter or result that differs in more than its label, which D117's agreement does not compare, as each side writes it; otherwise, or where the difference is in the error set or the return, it gives both signatures whole. A comparison of two function values says the same, the left operand's signature standing where a place's would.

The alternatives: both signatures always, which leaves a reader to find one word in two long lines; and the first differing character, which can fall inside a type's name.

Pinned by negative/function-value-escaping-into-differs, negative/held-result-refusals, negative/caller-parameter-signature-mismatch, negative/multiple-result-function-signature-mismatch, whose results differ in number, and negative/function-value-signature-mismatch.

Decisions: Control flow

Branches, loops, traversal, the cleanup an edge selects, and what the checker will not believe about a condition.

D7 — Written Boolean literals fix branch reachability

The tour said that a binding declared with no value must be assigned before use [0080] and that every named return must be assigned before the function returns [0930]. Neither says what a checker may conclude from a condition.

Chosen: the written true and false literals select or skip an if arm for definite assignment [1910]. if true then r = 1 end if assigns r; a missing else contributes an unchanged path only when no written true arm covers it. Every other condition, including a name initialized with true, keeps both edges.

The alternative: treating even a written literal as unknown rejects programs whose only executable path assigns the result and makes L0302's reachability claim false. Folding nonliteral constant conditions would make legality depend on how clever the compiler's folding is, so adding an optimisation would change what compiles; that remains declined.

Pinned by positive/assigned-on-every-path, positive/literal-conditions-select-flow, negative/assigned-on-one-path-only, negative/condition-is-not-believed.

D124 — Control values distinguish fallthrough from return-compatible edges

The tour said that a block has the value of its last expression [1080], that an arm which leaves needs no placeholder [1030], and that every named return is assigned before return [0930]. It did not say which flow facts survive when value-producing and returning arms meet, nor how one rule covers an if, an exhaustive match, and a bare block without believing a nonliteral condition [1910].

Chosen: if, exhaustive match, and bare begin blocks are expressions as well as their existing statement forms. A block is its source-ordered statement run followed by an optional final expression. In a value context, every reachable edge that falls through must produce that final value. An edge that returns is compatible without producing one, but [0930] still requires the function's named result on that edge. A reached if with no else has an untaken fallthrough edge unless a written true arm covers the remaining tests; that edge cannot produce a value.

Every control edge carries the independent facts Falls_Through and Returns. Only states on fallthrough edges participate in a definite-assignment join; a returned edge cannot lend its assignments to a surviving sibling. A guarded return carries both facts because its untaken edge continues. Short-circuit and and or retain the left-hand skip edge when the right returns. The same walk applies when control appears inside a condition, index, operand, argument, assignment value, direct function result, or another control block, preserving [0410]'s source order and stopping later actions after an unconditional return.

One surrounding context reaches every fallthrough answer. It includes the complete fixed-array element body and extent, nominal aggregate body or D123 recursive function signature, not merely the broad Fixed_Array, Aggregate or function-value kind. Without a surrounding context the first written answer supplies that complete shape and every other answer must agree. Each arm and bare block retains [1840]'s own lexical scope. This decision introduces no loop syntax or loop edge: loop, while, for, break and continue belonged to later loop work, which has since enabled them.

Why two facts rather than one exited Boolean: one Boolean cannot distinguish "no path reaches the join" from "this construct may return but also has a continuing edge". Treating either as the other loses guarded-return assignment facts or admits a value-less fallthrough. Explicit facts make both the value obligation and the definite-assignment merge consequences of the same edge.

The alternative: give every syntactic arm a value regardless of whether it returns, or merge assignment states before removing returned edges. The first invents unreachable placeholders and contradicts [1030]; the second lets one path prove a read on another. Both were declined.

Pinned by positive/control-expression-values, negative/if-expression-missing-else, negative/control-expression-fallthrough-without-value, negative/control-expression-branch-type-mismatch, negative/control-expression-function-signature-mismatch, negative/control-expression-early-return-needs-result, negative/control-expression-fallthrough-does-not-borrow-returned-facts, negative/bare-block-unclosed, negative/bare-block-scope-does-not-leak, runtime/match-expressions-produce-values, runtime/control-expression-function-values, and runtime/control-expression-edges-keep-source-order on Linux x86-64, together with the parser, checker, flow and IR public-seam cases.

D125 — A control join writes storage owned by its consumer

The tour said that a branch-chosen value has one joined origin [0840], while the aggregate decisions keep layout out of checked shapes and D106 returns aggregates through caller-owned storage. It did not supply a target-neutral value carrier for a join, especially when an array or struct is not one scalar IR value.

Chosen: the operation consuming a control expression owns its join storage. A scalar control uses one unnamed scalar slot and loads it after all fallthrough edges meet. A function value uses the same code-address carrier in a slot that retains D123's signature. A fixed array or enabled aggregate uses a caller-owned slot carrying its complete neutral shape; each selected fallthrough block fills that same destination. A typed binding, assignment, named result, or aggregate call result can be the destination directly. An argument, explicit discard, or other context with no named destination receives one fresh shaped temporary for the duration of that operation.

No branch-local pseudo-value, aggregate SSA value, target offset, byte extent, or implicit full-size copy crosses the join. An early return writes no joined answer and follows D116's active named-result exit. The verifier sees ordinary stores, copies, addresses, branches and terminators over declared slot shapes; the backend alone lays out a selected target's cell. Linux x86-64 consequently passes the one joined aggregate address after the join and derives every copy extent from target facts.

Why the consumer owns it: choosing storage before branching makes the hidden lifetime and cost belong to the source operation that needs the value, allows contextual literals and aggregate-returning calls to construct in place, and reuses ordinary scalar, function and stored-shape representations without making target layout a checker concern.

The alternative: introduce phi values for scalars and a separate aggregate value graph, or construct one full temporary per arm and copy again at the join. The first freezes two representations and needs target-sized aggregate values; the second hides branch-count-dependent storage and copies. Both were declined.

Pinned by positive/control-expression-values, runtime/control-expression-aggregate-joins and runtime/control-expression-function-values on Linux x86-64, together with the IR, lowering, verifier and backend public-seam cases and the generated IR record.

D129 — A cleanup is selected by the edge that leaves its lexical block

The tour said that defer runs at the end of its block in reverse order, that its call is evaluated where it runs rather than where it was written, and that undo is the same machinery selected only by failure [1100] [1110]. It did not say whether a final block value precedes cleanup, how an early return crosses nested blocks, which definite-assignment state the delayed reads use, or what neutral control fact distinguishes a future failure from a trap.

Chosen: reaching defer call(...) registers that call in the current lexical block and performs no part of it. The callee and every argument are evaluated in [0410]'s source order only when the entry runs, so an indirect callee and a named place observe their values at that later point. Resolution is not delayed: the call's names bind in [1840]'s source-ordered scope where the statement is written, and a later declaration is not visible backwards.

Each active block owns a cleanup frame. On ordinary fallthrough its optional final expression first fills D125's consumer-owned value storage, then that frame's reached entries run in reverse registration order, and only then does the edge reach its surrounding join. A successful return runs every reached entry from the innermost active frame outward, reverse within each frame, before D116's result commit or scalar leave. Thus a defer written after a guarded return is absent from the guard's taken edge, while an inner arm or bare-block defer runs before an outer one. An entry is removed before its call runs: if a control expression in that call returns, the still-pending entries run exactly once and the entry already in progress is not entered again.

Definite assignment is checked at those execution points, not at registration. A value may therefore be assigned after the defer and before every applicable exit, and a cleanup argument may itself assign one or more named results before the successful return completes. Conversely, one earlier return edge on which a delayed read is unassigned is refused even when the normal end assigns it.

The neutral selector has five edge kinds: ordinary fallthrough, successful return, failure propagation, structured transfer, and trap stop. A deferred call applies to every language edge that unwinds a block and never to a trap; a failure cleanup applies only to failure propagation. D133 enables that failure-only policy as [1110]'s undo, while every loop transfer belonged to later loop work. No trap unwinds, whether it occurs in the body, in a final expression, or while a cleanup call is running.

Cleanup has no target-specific IR form. Once selected, a call lowers through the existing direct or indirect convention, including register and stack arguments. Fixed-array and enabled aggregate arguments retain their ordinary by-value transport, and a discarded aggregate result receives one caller-owned shaped temporary through completion. The verifier consequently sees only ordinary calls, storage and terminators; the backend owns neither a cleanup stack nor unwind policy.

The alternative: capture the callee and arguments when the statement is reached, which is Go's useful rule but contradicts [1100]'s explicit late read; or introduce a runtime cleanup stack and target-aware unwind instruction. Capturing changes which value a mutable place denotes and can consume it too early. A runtime stack makes registration observable work, duplicates the lexical control graph already known to lowering, and would force freestanding targets to carry unwind machinery for traps the language says do not unwind. Both were declined.

Pinned by positive/defer-evaluates-at-exit, negative/defer-cannot-see-later-local, negative/defer-read-not-assigned-on-return, negative/defer-needs-call, runtime/defer-cleanups-follow-control-edges, runtime/defer-call-shapes, and runtime/defer-does-not-unwind-traps on Linux x86-64, together with the parser, checker/flow, IR policy, lowering/verifier and x86 backend public-seam cases and the generated IR record.

D133 — Undo is selected only while declared failure leaves its block

The tour said that undo is registered lexically, runs in reverse order only when failure leaves its block, includes a failed try and failure from a deeper call, and excludes return, transfer and panic [1110]. It did not say how a caller's recovery divides the failing callee from its own block, how undo and defer registrations interleave, which state delayed arguments read, or how the failure atom survives calls made while unwinding.

Chosen: reaching undo call(...) appends a failure-only entry to D129's current lexical cleanup frame. It resolves the call immediately in source order but evaluates neither its callee nor any argument. The entry becomes active only after the statement is reached. When it is selected, its indirect callee and arguments are evaluated late, left to right, from the state at that failure edge, and the entry is removed before evaluation begins.

A direct or taken guarded fail, or a try whose call reports failure, creates a failure-propagation edge. The latter includes an atom produced by any depth of failing calls. Such an edge does not join a selected if, exhaustive match, or bare begin block: it runs reached entries in every lexical frame it leaves, innermost frame first. Within one frame all cleanup registrations remain in one stack. Reverse registration order selects every applicable entry, so defer and undo calls interleave on failure; normal fallthrough and a successful return select only defer. A caller's call-site else handles the failure without leaving the caller's block and therefore does not select that block's undo entries. Undo entries in the failing callee have already run as the failure left the callee.

Undo never applies to ordinary fallthrough, successful return, structured transfer, or trap stop. No trap is converted to declared failure and no trap unwinds, including one raised while evaluating a cleanup. Loops and their transfers belonged to later loop work, so this decision enables none of them.

Definite assignment uses only the failure edges on which an undo call actually runs. A delayed argument may consequently be unassigned on every normal, successful-return or locally recovered edge, but must be assigned on each propagating failure edge that reaches its registration. The failing atom is formed and stored before cleanup begins, then reloaded for the eventual failure terminator after all normally completing applicable calls. Cleanup evaluation cannot accidentally replace the failure being propagated.

Undo introduces no target-specific IR or runtime registration. A selected entry lowers as the same ordinary direct or indirect call as defer, including register and stack arguments, fixed-array and enabled aggregate values, and function-valued callees. A discarded fixed-array, nominal aggregate, or anonymous multiple-result aggregate receives an ordinary caller-owned shaped temporary. The verifier therefore checks the resulting calls, storage, failure carrier and terminator under existing rules, and the x86 backend owns only their established calling convention.

The alternatives: keep a second undo stack, which would place every undo before or after every defer instead of preserving lexical reverse order; run undo for every non-normal exit, which would make return a failure and could not distinguish a locally recovered call; or capture the callee and arguments at registration. The first changes source order, the second erases the declared failure edge [0970], and the third contradicts [1110]'s delayed compensating action. All were declined.

Pinned by positive/undo-evaluates-on-failure, negative/undo-cannot-see-later-local, negative/undo-needs-call, negative/undo-read-not-assigned-on-failure, runtime/undo-cleanups-follow-failure-edges, runtime/undo-call-shapes, and runtime/undo-does-not-unwind-traps on Linux x86-64, together with the parser, checker/flow, cleanup-policy, lowering/verifier and x86 backend public-seam cases and the generated lexical, construct and IR records.

D148 — Guarantee coverage is classified at observable failure boundaries

The tour said that Landin makes a deliberately smaller claim than memory or resource safety [1720], and named four kinds of answer for the operation table a guarantee register would establish. It did not say what counted as one operation, so two inventories could both look complete while one listed syntax nodes and the other listed only machine instructions.

Chosen: one guarantee row is one observable failure boundary. A source construct may occur in more than one row: pointer access, for example, has a statically checked permission boundary and a separate pointee-validity boundary outside the guarantees. static means the compiler rejects the stated bad case; trap means a value not decidable during compilation stops synchronously; beyond-lifetime means an explicit operation discards origin information and later lifetime use is permitted without analysis; outside means the operation is admitted but the stated property is never claimed. Ordinary accepted behaviour is evidence for a row, not a fifth guarantee class.

Guarantee coverage

The register below covers every construct for which the current fixture matrix claims acceptance or emission. check.py compares that set mechanically, validates each cited diagnostic and fixture, and generates the reading copy compiler/tests/guarantees.matrix. A new accepted construct therefore needs a classified failure boundary before the repository gate can pass.

Operation Class Constructs Behaviour Evidence
functions.nonreturning static 0890, 0940, 1000, 1100, 1240, 1290, 1370, 1930, 1960 D231 separates infallible nonreturning signatures from none, rejects reachable return/fallthrough and preserves termination through generic/evidence calls and applicable cleanup positive/r491-noreturn-signatures, negative/r670-noreturn-fallthrough, abi/r670-noreturn
panic.contract static 0890, 1670 D232 selects only a canonical public ordinary nonreturning entry-module hook; L0506 rejects malformed declarations and unrepresentable u32 site spaces negative/r670-panic-handler, abi/r670-panic
panic.dispatch trap 0300, 0470, 0570, 0890, 1100, 1670, 1675, 1950, 1960, 1995 D232 dispatches kind/site at the failed operation, forbids later computation and cleanup, and terminates reentry; the default needs no reporting storage abi/r670-panic, environments/cortex-m/freestanding.py selected/default/interrupt controls, runtime/fibre-stack-past-limit-traps, runtime/stack-frame-past-limit-traps
firmware.surface static 0760, 1000, 1460, 1500, 1550, 1560, 1570, 1630, 1640, 1650, 1990 D229 checks target, machine signatures, placement and fixed assembly; D248 checks named operands against each target's registers; L0505 holds static images to D537's budget before section GC positive/r660-machine-directives, positive/r670-scalar-assembly, positive/assembly-operand-forms, negative/r660-materialization, negative/assembly-synthetic-target
firmware.return trap 1550, 1570, 1650, 1990 D232 dispatches entry return as unreachable/site zero; D229 naked fallthrough retains its undefined-instruction guard and separate hardware-fault obligations positive/r660-machine-directives, environments/cortex-m/firmware.py boot and naked-fallthrough controls
firmware.assembly-obligations outside 1550, 1560, 1570, 1630, 1990 non-guarantee: fixed text is not a proof of device completion or correct naked stack/register/control-flow behavior; the programmer owns naked machine state positive/r660-machine-directives
packed.extraction trap 0630, 0730, 1120 Unnamed field encodings trap before producing a named value, including under unchecked; an image copy does not extract fields runtime/r640-packed-hole, runtime/r640-packed-small-space
packed.image static 0540, 0730, 0750 Explicit disjoint positions, one target-sized carrier and packed-only unsigned widths; ordinary storage retains its existing representation runtime/r640-packed-fields, runtime/r640-packed-construction, runtime/r640-packed-static
packed.register static 0740, 0850 L0344 rejects unavailable access modes, invalid masks and unsafe synthesized device field operations; a legal explicit image operation retains exactly its carrier width; L0010 names D238's withdrawn volatile pointer type and the explicit operations that replace it negative/r640-register-no-read, negative/r640-register-no-write, negative/r640-register-one-clears-preserve, runtime/r640-register-images, negative/r491-volatile-pointer
packed.insertion trap 0730, 1120 Dynamic field-width and packed-index checks remain enabled under unchecked; no silent truncation or machine shift masking runtime/r640-packed-value-fit, runtime/r640-packed-index-bound
packed.reserved trap 0740, 1120 L0398 refuses a known write-zero/write-one violation; a dynamic violation traps before the single volatile store, including under unchecked negative/r640-register-reserved-zero, negative/r640-register-reserved-one, runtime/r640-reserved-value, abi/r640-reserved-trap
packed.device outside 0740, 0850 non-guarantee: a declared access mode, width and reserved policy do not prove that an arbitrary address implements that peripheral contract runtime/r640-register-images, abi/r640-dma-packed
memory.eligibility static 0430, 0850, 1620, 1995 D227: L0344 for invalid arity, type, permission, fixed ordering or target capability negative/r630-load-release, negative/r630-immutable, negative/r630-m0-rmw, runtime/r630-memory-scalars, abi/r630-native-memory, negative/stack-builtins-argument-contract
memory.alignment trap 0430, 0850, 1120, 1620 D227: misalignment traps before access, even unchecked runtime/r630-atomic-load-alignment, runtime/r630-volatile-load-alignment
memory.external-writers outside 0430, 0470, 0770, 0850, 1620, 1720 D227 non-guarantee: backing validity, races, device completion and cache obligations remain caller/platform responsibilities; no race-based optimizer assumptions abi/r630-native-memory
source.lexical static 0010, 0020, 0030, 0210, 0220, 0230, 0250, 0260, 0270, 0280, 1750, 1760, 1770, 1780, 1830 L0010--L0014 or L0320--L0323 negative/character-literal-empty, negative/character-literal-invalid-codepoint, negative/character-literal-multiple, negative/malformed-float-exponent, negative/malformed-hex-float-exponent, negative/malformed-integer-digit, negative/raw-literal-inconsistent-indentation, negative/text-literal-unknown-escape, negative/unterminated-raw-literal, negative/unterminated-text-literal, negative/unknown-byte
source.structure static 1740, 1800, 1810, 1820, 1840 L0100--L0112 negative/variant-part-end-name-mismatch, unit/parser-nesting-limit
declarations.names static 0040, 0050, 0060, 0080, 0090, 0100, 0110, 0120, 0130, 0140, 1790, 1795, 1850 L0200 or L0201 negative/duplicate-in-a-module, negative/local-used-above-its-declaration
types.values static 0070, 0150, 0160, 0170, 0180, 0190, 0200, 0210, 0250, 1870, 1880, 1890 L0300, L0301 or L0304 negative/character-literal-needs-u32, negative/float-literal-not-enabled, negative/float-type-not-enabled, negative/integer-literal-not-a-float, negative/literal-above-its-type, negative/refused-widths-name-their-owner, negative/type-name-is-not-a-type, negative/wide-integer-not-enabled
float.ieee static 0170, 0210, 0220, 0230, 0240, 0290, 0350, 1940 f32/f64 decimal and hexadecimal literals plus inherently typed infinity and canonical quiet NaN names follow IEEE binary32/binary64 through runtime and module arithmetic and comparison, preserving exact hexadecimal values, nearest-even rounding, gradual underflow, signed zero and unordered NaN behavior; arithmetic NaNs use the canonical quiet pattern, L0300 rejects a finite literal that becomes infinity, and L0301 rejects an invalid named special, a width mismatch, mixed classes and integer-only operators negative/float-remainder-is-integer-only, negative/float-special-name-unknown, negative/float-special-on-integer-type, negative/float-special-width-mismatch, negative/hex-float-overflows-context, runtime/float-decimal-runtime, runtime/float-hexadecimal-runtime, runtime/float-named-specials, runtime/module-float-arithmetic
distinct.identity static 0310, 0430, 0650, 0660, 0700, 1280, 1290, 1730, 1940, 1975 a distinct declaration and each normalized generic application retain nominal identity with exact base size, alignment and bytes; explicit construction and extraction preserve origins, static images and compatible C transport; L0301 rejects identity mixing and inherited operations, L0308 refuses representation fields, L0318 refuses inherited conformance, D428 gives zeroable membership exactly when the base has it while L0328 refuses a bare zeroed of the identity, and L0314 preserves escape refusals; a value inside a range is a distinct type its checking function makes, and L0696 refuses T range a .. b naming it (D1661) runtime/range-checking-constructor-fails, negative/range-subtype-is-a-distinct-type, runtime/r490-distinct-scalars, runtime/r490-distinct-generic-representations, runtime/r490-distinct-generic-dispatch, runtime/r490-distinct-module-images, abi/r490-distinct-c-roundtrip, runtime/r490-review-generic-distinct-bool, runtime/r490-distinct-generic-bool-images, runtime/r490-distinct-generic-pointer-images, runtime/r490-generic-fixed-conversion-discovery, negative/r490-distinct-type-value, negative/r490-distinct-alias-type-value, negative/r490-distinct-generic-type-value, negative/r490-distinct-discard-type-value, negative/r490-distinct-static-address, negative/r490-distinct-identity, negative/r490-distinct-no-operators, negative/r490-distinct-no-fields, negative/r490-distinct-conformance, positive/r490-distinct-zeroable, runtime/distinct-zero-images, negative/distinct-bare-zeroed, negative/r490-distinct-origin
conversion.integer trap 0150, 0190, 0310, 0470, 0700, 1120, 1460, 1670, 1880, 1940, 1950, 1960 explicit conversion among enabled integer types preserves the mathematical value; L0300 rejects a known value outside the destination range and a runtime value outside it traps, without truncation, wrapping or signedness reinterpretation, outside [1120]'s region negative/integer-conversion-known-binding-out-of-range, negative/integer-conversion-known-out-of-range, runtime/integer-conversion-out-of-range-traps, runtime/integer-conversion-signed-overflow-traps, runtime/integer-conversion-unsigned-overflow-traps, runtime/integer-conversions
conversion.float-width trap 0170, 0210, 0230, 0240, 0310, 0700, 1880, 1940, 1950, 1960 explicit f32/f64 conversion widens exactly or narrows to nearest with ties to even, preserving signed zero and the infinity/NaN class; L0300 rejects a known finite narrowing overflow and an equivalent runtime conversion traps negative/float-width-conversion-known-out-of-range, runtime/float-width-conversion-overflow-traps, runtime/float-width-conversions
conversion.integer-to-float static 0150, 0170, 0190, 0210, 0310, 0700, 1880, 1940, 1960 explicit conversion from every enabled integer to f32 or f64 preserves the mathematical value when exact and otherwise rounds to nearest with ties to even; the enabled integer range cannot overflow either float width runtime/integer-to-float-conversions
conversion.float-to-integer trap 0150, 0170, 0190, 0210, 0230, 0240, 0310, 0700, 1880, 1940, 1950, 1960 explicit conversion from f32 or f64 to every enabled integer truncates toward zero and then requires the result to fit; L0300 rejects a known out-of-range, infinity or NaN source and an equivalent runtime conversion traps negative/float-to-integer-known-nan, negative/float-to-integer-known-out-of-range, runtime/float-to-integer-conversions, runtime/float-to-integer-nan-traps, runtime/float-to-integer-out-of-range-traps
conversion.bool-to-integer static 0150, 0180, 0190, 0310, 0700, 1880, 1940, 1960 explicit conversion from bool to every enabled integer maps false to zero and true to one; both results fit every enabled destination runtime/bool-to-integer-conversions
conversion.bool-to-float static 0170, 0180, 0190, 0210, 0310, 0700, 1880, 1940, 1960 explicit conversion from bool to f32 or f64 maps false to positive zero and true to exactly positive one; both values are exact in either enabled destination runtime/bool-to-float-conversions
conversion.integer-to-bool trap 0150, 0180, 0190, 0200, 0310, 0700, 1880, 1940, 1950, 1960 explicit conversion from every enabled integer to bool maps zero to false and one to true; L0300 rejects every other known value and an equivalent runtime conversion traps negative/integer-to-bool-known-out-of-range, runtime/integer-to-bool-conversions, runtime/integer-to-bool-out-of-range-traps
conversion.float-to-bool trap 0150, 0170, 0180, 0190, 0210, 0240, 0310, 0700, 1880, 1940, 1950, 1960 explicit conversion from f32 or f64 to bool maps either signed zero to false and exactly positive one to true; L0300 rejects every other known finite or nonfinite value and an equivalent runtime conversion traps negative/float-to-bool-known-invalid, runtime/float-to-bool-conversions, runtime/float-to-bool-invalid-traps
text.literal-storage static 0260, 0270, 0280, 0430, 0570, 0600, 1770, 1880, 1900, 1940 L0301 for a mismatched identity, writable context, byte escape in text or codepoint escape in bytes; L0303 for a write through a read-only view; quoted and raw literals default to utf8, decode to validated UTF-8 or UTF-16, preserve canonical view identity and static origin, and share width-keyed read-only storage with one trailing zero element excluded from slice lengths negative/cstring-literal-write, negative/raw-literal-needs-read-only-slice, negative/raw-literal-write, negative/text-literal-codepoint-in-byte-context, negative/text-literal-needs-byte-slice, negative/text-literal-needs-read-only-slice, negative/text-literal-write, negative/text-view-byte-escape, negative/text-view-identities-are-distinct, runtime/hosted-text-views, runtime/raw-literal-bytes, runtime/text-literal-bytes
text.conversion trap 0310, 0430, 0570, 0600, 0660, 0790, 0940, 1050, 1650, 1880, 1950, 1960 four exact immutable source-derived conversions connect []u8, utf8 and first-NUL cstring carriers; direct UTF-8 validation traps, checked core/text adapters report invalid_text, empty carriers retain origin, mutable views and pointer-to-cstring are L0301, and byte/decimal helpers allocate nothing and preserve output on refusal negative/pointer-to-cstring-conversion, negative/text-conversion-exact-identities, negative/text-conversion-mutable-source, runtime/core-text-runtime-helpers, runtime/cstring-first-nul-validation, runtime/text-conversion-invalid-traps, runtime/text-conversion-overlong-traps, runtime/text-conversion-out-of-range-traps, runtime/text-conversion-truncated-traps, runtime/text-ordinary-conversions
text.indexing trap 0380, 0430, 0600, 0610, 1050, 1900, 1950, 1960 utf8 indexed by exact usize scans linearly by codepoint ordinal; exact core/text.position supplies an O(1) byte offset; either decodes that codepoint to a u32 value, L0301 rejects every other argument or text identity, L0337 an address of the value, L0303 rejects writing through it, and an absent ordinal, end position or non-boundary position traps negative/utf16-indexing-is-not-utf8-indexing, negative/utf8-index-needs-usize-or-position, negative/utf8-index-position-identity-is-exact, negative/utf8-index-result-is-not-a-place, negative/utf8-index-result-has-no-address, runtime/utf8-indexing, runtime/utf8-ordinal-out-of-range-traps, runtime/utf8-position-at-end-traps, runtime/utf8-position-not-boundary-traps
text.slicing trap 0310, 0410, 0430, 0570, 0600, 0790, 1050, 1820, 1950, 1960 utf8 and utf16 ranges take exact usize code-unit bounds, require scalar-boundary endpoints, preserve the immutable source-derived text identity, include the complete upper scalar for .., and evaluate source then bounds once; cstring and other bound types are L0301, mutation is L0303, L0316 enforces the return origin, and an invalid bound or split scalar traps negative/cstring-range-slicing-has-no-length, negative/text-slice-needs-usize-bounds, negative/text-slice-result-is-read-only, negative/text-slice-result-keeps-identity, negative/text-slice-result-keeps-origin, runtime/text-range-slicing, runtime/utf16-slice-not-boundary-traps, runtime/utf8-slice-lower-not-boundary-traps, runtime/utf8-slice-upper-not-boundary-traps
text.traversal trap 0250, 0410, 0430, 0600, 1130, 1150, 1160, 1320, 1650, 1950, 1960 the exact utf8, utf16 and cstring identities retain one source, use private usize code-unit cursors, and yield immutable copied u32 Unicode scalars in first/at_end/item/next order; cstring stops before its first NUL and validates before decoding, malformed foreign encoding traps even in unchecked, ordinary carriers are L0348, and mutation is L0303 negative/text-traversal-item-is-read-only, negative/text-traversal-ordinary-pointer-is-not-cstring, runtime/cstring-traversal-invalid-traps, runtime/hosted-text-traversal
text.unvalidated outside 0430, 0570, 0600, 0790, 1120, 1560 D949 non-guarantee: compiler.utf8_unvalidated inside unchecked gives a utf8 view of its bytes' base, length, origin and read-only permission and reads none of them, so bytes that are not UTF-8 go unnoticed and later decoding may read them wrongly; outside unchecked it is L0600 negative/utf8-unvalidated-outside-unchecked, negative/utf8-unvalidated-escapes-its-source, negative/utf8-unvalidated-is-read-only, positive/utf8-unvalidated-keeps-origin, runtime/utf8-unvalidated-does-not-scan
arithmetic.known static 0290, 0300, 0390, 1950 L0300 or L0306 negative/compound-assignment-zero-divisor, negative/divisor-is-zero, negative/literal-above-its-type, negative/r480-recovery-zero-divisor
arithmetic.runtime trap 0290, 0300, 0320, 0390, 1120, 1950, 1960 trap, outside [1120]'s region for +, -, * and unary - runtime/compound-assignment-overflow-traps, runtime/checked-overflow-traps, runtime/checked-subtraction-traps, runtime/checked-multiplication-traps, runtime/checked-negation-traps, runtime/signed-division-overflow-traps, runtime/a-zero-divisor-traps, runtime/a-zero-remainder-divisor-traps, runtime/negative-left-shift-traps, runtime/negative-right-shift-traps
arithmetic.total static 0320, 0330, 0340, 0350, 0390 L0301 for an inapplicable operand; admitted nonnegative shifts and wrapping operations are total negative/compound-assignment-float-remainder, negative/condition-is-not-believed, runtime/compound-assignment, runtime/shifts-fill-with-zeros-beyond-the-width
ranges.measurements static 0360, 0370 L0300, L0301 or L0306 negative/lenof-scalar, runtime/measurements-answer-for-the-target
assignment.flow static 0390, 0400, 0410, 0420, 1900, 1910 L0302 or L0303 negative/assigned-on-one-path-only, negative/assignment-to-an-immutable-binding, negative/compound-assignment-immutable, negative/compound-assignment-unassigned, runtime/compound-assignment, negative/r480-recovery-assignment
pointer.permission static 0380, 0430, 0440, 0450, 0460 L0301, L0303, L0337 or L0342 negative/any-readonly-source-for-mutable-entry, negative/sink-through-dereference, runtime/r250-references
inout.exact-alias static 0900 L0337 when one provably identical binding-rooted place fills two inout parameters negative/inout-same-place-twice
inout.possible-alias outside 0430, 0770, 0900 non-guarantee: distinct pointer or computed paths may still alias runtime/inout-pointer-alias-is-unchecked
pointer.validity outside 0430 non-guarantee: a permitted pointer may still be invalid or stale, including an old pool pointer whose address and extent match a later reuse runtime/r250-references, runtime/r420-pool-provider
pointer.integer-origin beyond-lifetime 0470, 0810, 0860, 1690, 1720 non-guarantee: integer-to-pointer conversion carries no origin through a direct or erased value, and D196 records it as the actual derivation cut [0810] describes without privileged core names runtime/r250-references, runtime/any-untracked-pointer-origin, negative/frame-origin-return
pointer.integer-width trap 0470, 1120, 1950, 1960 trap, outside [1120]'s region runtime/pointer-to-small-integer-traps
arrays.initialization static 0520, 0530, 0540, 0550, 0560 L0300--L0304 or L0313 negative/array-initializer-length-mismatch, runtime/whole-arrays-copy-between-storage
arrays.arithmetic static 0590 L0301 refuses mismatched lengths, element types, nonnumeric lifting and every array comparison; D209 retains complete operand values in source order, allowing stable storage to supply them, and retains scalar element semantics negative/r450-array-length-mismatch, negative/r450-array-element-mismatch, negative/r450-array-bool-refused, negative/r450-array-comparison-refused, runtime/r450-array-snapshots, runtime/r450-array-compound-snapshot, runtime/r450-array-empty-operands, runtime/r450-array-float-order
arrays.element-traps trap 0290, 0300, 0310, 0590, 1120, 1960 D209 executes element operations in ascending index order with the scalar overflow and division edges; unchecked removes no division edge runtime/r450-array-later-overflow, runtime/r450-array-unary-overflow, runtime/r450-array-later-division-zero, runtime/r450-array-signed-division-overflow, runtime/r450-array-unchecked-division-zero
layout.explicit-policy static 0750, 0760 fields are placed in the order written (D1660); a struct written largest alignment first is the smaller one, and source identities and initializer evaluation order are unchanged positive/r450-optimal-layout-source, runtime/r450-optimal-layout-composition
raw.prefix static 0420, 0500, 0510 L0202 prevents representation access; core/mem reports full, out_of_bounds, empty or not_empty before an invalid transition negative/core-mem-private-representation, runtime/core-mem-raw-storage
raw.backing outside 0430, 0470, 0510, 1720 non-guarantee: the supplied byte pointer may be invalid, misaligned or smaller than the declared capacity runtime/core-mem-raw-storage
allocation.failure static 0300, 0940, 1230, 1280, 1290, 1310, 1360, 1975 allocators report core/mem.out_of_memory, which a caller must handle or declare; arenas reject exhaustion and unrepresentable request arithmetic before mutation, vectors check extents and growth before provider calls and preserve the old list on failure, and heap refusal, finite pool exhaustion, injected refusal and delegated inner refusal use the same channel runtime/core-mem-allocators, runtime/core-mem-arena-boundaries, runtime/core-vec-pointer-storage, runtime/r420-vec-capacity-boundaries, runtime/r420-vec-growth-boundary, runtime/r420-vec-growth-transaction, runtime/derived-parser, runtime/hosted-heap-provider, runtime/r420-pool-provider, runtime/r420-failing-providers
allocation.backing outside 0430, 0470, 0770, 0820, 1360, 1720 non-guarantee: backing validity and exact capacities remain the caller's responsibility; checked arena constructors refuse tracked frame backing with L0314 and private representations prevent ordinary construction around that check; their unchecked constructors expose the lifetime opt-out; tracked pool base and bookkeeping origins join, but one untracked constituent makes the whole provider untracked; D212 preserves independent direct, helper and side-effect allocator results runtime/r480-arena-independent-results, runtime/r480-arena-nested-exhaustion, runtime/core-mem-allocators, runtime/core-mem-arena-boundaries, runtime/r420-pool-provider, negative/core-arena-frame-escape, negative/core-arena-private-representation, negative/core-pool-frame-escape, negative/core-pool-bookkeeping-frame-escape
allocation.reclamation static 0430, 0470, 0790, 1360 heap release and a pool free of a currently occupied exact address and extent return real live storage; pool reuse is lowest-index first, stale same-address/same-size identity is outside the guarantee, and counted free delegates once with a live count exact only for valid-free use runtime/hosted-heap-provider, runtime/r420-pool-provider, runtime/r420-failing-providers
slices.bounds-known static 0570, 0580, 1950 L0300 or L0306 negative/index-outside-the-length, negative/readonly-slice-write
slices.bounds-runtime trap 0570, 0580, 1120, 1950, 1960 trap, outside [1120]'s region runtime/computed-array-index-traps, runtime/local-array-computed-store-traps, runtime/slice-index-read-traps, runtime/slice-index-write-traps, runtime/slice-half-open-upper-traps, runtime/slice-inclusive-upper-traps, runtime/slice-lower-after-upper-traps
atoms.sets static 0630, 0640 L0301 or L0312; equality compares declaration identities without requiring set inclusion, while ordering and atom/numeric mixing remain refused negative/atom-match-not-exhaustive, runtime/atom-values-cross-the-abi, runtime/r490-generic-atom-identity, runtime/r490-generic-atom-arrays, runtime/r490-generic-atom-fields, runtime/r490-generic-atom-storage, negative/r490-atom-array-wrong-member, negative/r490-generic-atom-field-member
aggregates.fill static 0410, 0670, 0710, 0720 L0301 for unequal omitted-field descriptors and L0334 for a value fill without a destination; one exact contextual value is evaluated after written labels and copied in declaration order; ordinary origin and assignment diagnostics remain runtime/r490-generic-field-fill, negative/r490-fill-mixed-types, negative/r490-fill-array-shapes, negative/r490-fill-atom-sets, negative/r490-fill-pointer-permissions, negative/r490-fill-frame-escape, negative/r490-fill-unassigned
aggregates.variants static 0670, 0680, 0690, 0700, 0710, 0720, 0750, 1210 L0301, L0308--L0313 or L0334 negative/struct-literal-field-not-given, negative/variant-match-not-exhaustive
origins.escape static 0480, 0770, 0780, 0790, 0800, 0830, 0840, 1220, 1675, 1910 L0314--L0316; [0790]'s exact from comparison applies to an actual returned reference, while a provably empty optional-pointer arm has no origin and is not Untracked; a retained provider wrapper keeps its ordinary inner argument's origin without requiring that argument to be declared escaping, tracked pool constructor sources join, destination storage prevents retained frame or foreign non-escaping origins, payload aliases keep scalar storage live through last use, and D222 forbids hidden independent storage in writable from results that a writable reference may reach (D375); a parameter escaping into another is kept only in that storage and its argument outlives that argument's origin (D445, D455) negative/r491-writable-return-hidden-storage, positive/r491-writable-return-explicit-sources, runtime/erased-static-view-under-writable-from, negative/erased-writable-view-under-from, negative/frame-origin-return, negative/borrowed-source-inout, negative/returned-reference-missing-from, negative/core-arena-frame-escape, negative/core-pool-frame-escape, negative/core-pool-bookkeeping-frame-escape, negative/core-fault-frame-escape, negative/core-text-frame-slice-escape, negative/core-diag-frame-message-escape, negative/r440-parser-frame-arena, runtime/diagnostic-loggers-dispatch, runtime/r420-failing-providers, negative/r480-recovery-retains-borrow, negative/r480-recovery-exposed-storage, negative/r480-reader-live-line, negative/r491-retained-reference-stores, negative/r491-live-payload-aliases, runtime/r491-reference-store-origins, runtime/r491-payload-alias-last-use, runtime/escaping-into-frame-list, runtime/escaping-into-group-state, negative/escaping-into-later-local, negative/escaping-into-third-place, negative/escaping-into-function-value, negative/fibre-admit-state-after-group
origins.aliasing-limit outside 0770, 0910 non-guarantee: a pre-existing copy or indistinguishable arena is not tracked positive/reference-origins-and-consume, negative/use-after-sink
functions.abi static 0870, 0880, 0890, 0900, 0920, 0930, 0980, 1000, 1020, 1030, 1460, 1920, 1970 L0301, L0302, L0327, L0331, L0343 or L0502 negative/call-with-too-few-arguments, runtime/r230-composition, runtime/r480-generic-provider-entry
optimization.outcomes static 0290, 0430, 1100, 1120, 1310, 1550 D211 preserves effects, snapshots, cleanup, required traps, calling conventions and observable function identities under every optimization profile; malformed transformed IR is a compiler defect, never a source diagnostic runtime/r450-opt-effects, runtime/r450-opt-discarded-trap, runtime/r450-specialization-recursive-errors, runtime/r450-specialization-threshold, runtime/specialization-speed-growth, runtime/r450-x86-pressure, abi/r450-x86-callee-probes
functions.caller static 0670, 0790, 1000, 1040, 1800, 1920 caller positions have immutable three-u32 struct values (file_id, line, column) and structural signature identity, are compiler-filled without source strings, and accept an explicit argument only as a named forwarding of another caller parameter; L0339 rejects an invalid site type, L0301 a different signature, L0327 an extra positional argument or invalid forwarding source and L0303 rejects mutation, and caller decided on two tokens leaves the spelling an ordinary name negative/caller-parameter-extra-field, negative/caller-parameter-field-order, negative/caller-parameter-field-width, negative/caller-parameter-read-only, negative/caller-parameter-forward-copy, negative/caller-parameter-forward-needs-caller, negative/caller-parameter-needs-site, negative/caller-parameter-positional, negative/caller-parameter-signature-mismatch, runtime/caller-parameters, runtime/caller-is-an-ordinary-name
extern.c-boundary static 0430, 0570, 0750, 0920, 1000, 1570, 1580, 1600, 1975 C convention and variadicness remain recursively distinct from the Landin convention; fixed positions at the selected boundary admit integers, bool, pointers, f32/f64, fixed C callbacks and compatible nonempty layout(c) structs, while L0346 refuses an ordinary Landin struct, a slice, a Landin error channel or a native-convention callback even when its machine shape matches positive/external-scalar-c-boundary, positive/r440-external-float, positive/r440-c-signatures, negative/external-aggregate-boundary, negative/r440-c-slice-parameter, negative/r440-c-error-channel, negative/r440-c-native-callback
functions.linkage static 1000, 1570, 1580, 1600, 1610, 1615, 1800, 1975, 1996 link(symbol: text) changes only the linker spelling: standalone use retains the native convention and body requirement, C imports may have compatible repeated declarations, L0347 refuses an assembly expression, incompatible declarations or multiple definitions, and L0301 refuses treating a native linked function as a C callback; link(thread) gives a module mut binding a zeroed instance in every thread, and L0347 refuses it with a value, without mut, on a routine or beside a symbol or section, L0328 for a type with no zero image positive/r440-c-signatures, positive/r440-compatible-link-declarations, negative/r440-link-assembly-expression, negative/r440-link-does-not-change-convention, negative/r440-link-duplicate-definitions, negative/r440-link-incompatible-declarations, positive/thread-storage-declarations, runtime/thread-storage-holds-its-instance, abi/thread-storage-per-thread, negative/thread-storage-takes-no-value, negative/thread-storage-needs-a-zero-image
host.arguments-startup trap 1580, 1600, 1650, 1660, 1960, 1975 the no-argument Landin entry calls hosted/system's initializer, when the program defines it, to establish the actual argument root before its body; C-owned startup must initialize it explicitly before system.new() or blocking.new(); use before initialization, a negative argc, null argv, or replacement of either established root carrier traps, while an identical repeated initialization is a no-op and file, stream and heap work needs no root abi/r440-native-startup-initialized, abi/r440-native-startup-empty, abi/r440-native-startup-uninitialized, abi/r440-native-startup-replaced
host.io outside 0430, 1580, 1650, 1660, 1680, 1975 non-guarantee: files, descriptors, arguments and streams reflect mutable host state runtime/hosted-io-reads-parser-input, runtime/core-io-erased-system, runtime/derived-parser
capabilities.host-root-exclusion outside 1660, 1680, 1975 non-guarantee: an ordinary hosted routine without an I/O or allocator parameter may call a public host constructor and use that authority; passing a replacement provider does not exclude this path runtime/derived-hosted-memory
host.io-failure static 0940, 0960, 1030, 1975 hosted/system and hosted/blocking report foreseeable host failure as declared atoms which callers handle or declare runtime/hosted-io-reads-parser-input, runtime/core-io-erased-system, runtime/diagnostic-loggers-dispatch, runtime/derived-parser
diagnostics.retention outside 0950, 1680 non-guarantee: core/diag.bounded(N) copies at most N messages of up to diag.message_capacity bytes and counts later or oversized notes in dropped runtime/diagnostic-loggers-dispatch, runtime/derived-parser
diagnostics.delivery-failure static 0940, 0960, 0950, 1030, 1680 a streaming diagnostic write reports io_failed, which a caller must handle or declare; bounded overflow does not use that channel runtime/diagnostic-loggers-dispatch, runtime/derived-parser
execution.resource-exhaustion outside 0950, 1675, 1770, 1970 non-guarantee: the kernel sets no recursion-depth, stack, or host-resource bound runtime/recursive-fibonacci
consume.local static 0910 L0337 for a sink path crossing a reference boundary or using a computed index; L0302 or L0315 for consumed-place and restoration checks negative/use-after-sink, negative/sunk-inout-not-restored, negative/r491-sink-slice-storage, positive/r491-sink-contained-places, positive/r491-sink-call-entry, negative/r491-sink-entry-overlap
consume.copy-before static 0860, 0910, 1720 a value copied before the sink remains independently usable runtime/copy-before-sink-remains-live
errors.control static 0940, 0960, 0970 L0329 for an undeclared or unhandled outcome negative/unhandled-declared-error, runtime/declared-errors-direct-and-inferred, runtime/r490-generic-recovery-frontier, runtime/r490-generic-recovery-alias-chains, negative/r490-generic-error-key-cycle
results.destructure static 0990 L0200, L0302, L0308 or L0331 negative/result-destructure-needs-multiple, runtime/r230-composition
functions.anonymous static 1010 L0696 refuses an anonymous function and names the declared one that replaces it (D1654) negative/anonymous-function-is-declared-by-name, runtime/inferred-function-values
control.flow static 1050, 1060, 1070, 1080, 1090 L0200 or L0201 at a condition-binding scope boundary; L0301, L0302 or L0332 at every condition, reachable join and exit negative/condition-declaration-body-shadowing, negative/condition-declaration-not-bool, negative/condition-declaration-out-of-scope, negative/if-expression-missing-else, runtime/condition-declarations, runtime/control-expression-edges-keep-source-order
control.loops static 1090, 1130, 1140, 1150, 1160, 1170, 1180, 1190, 1320, 1330 L0301 for a non-bool condition, mismatched range, non-traversable source, or missing/ambiguous/non-exact iterable evidence; L0332 for a loop where a value belongs or a break given a value, and L0696 for a complete block or try for; L0303 for a write to a read-only storage element or copied iterable item; a taken transfer runs active defers and targets its named loop or labelled block edge, or the nearest loop, and every exit reaches the statement after the loop negative/loop-condition-not-bool, negative/loop-value-search-rewritten, negative/loop-value-in-every-value-context, negative/loop-complete-runs-after, negative/loop-complete-left-by-a-break, negative/try-for-names-its-replacement, negative/for-range-needs-integer, negative/for-range-endpoints-disagree, negative/for-source-not-traversable, negative/for-collection-element-read-only, negative/for-array-element-read-only, negative/for-any-element-read-only, negative/for-iterable-ambiguous-evidence, negative/for-iterable-item-read-only, negative/for-iterable-missing-conformance, negative/text-traversal-item-is-read-only, runtime/loop-control-flow, runtime/fallible-traversal-by-while, runtime/for-range-traversal, runtime/for-collection-traversal, runtime/for-aggregate-element-traversal, runtime/for-any-element-traversal, runtime/for-iterable-evidence-traversal, runtime/hosted-text-traversal, runtime/r480-recovery-loop-transfer, runtime/r480-loop-fresh-view, runtime/r720-labelled-block-transfers, negative/r720-labelled-block-break-value, runtime/r491-loop-assignment, negative/loop-exit-skips-assignment
cleanup.defer static 1100 the registered call is checked at every ordinary and successful-return edge negative/defer-read-not-assigned-on-return, runtime/defer-cleanups-follow-control-edges
cleanup.undo static 1110, 1200 the registered call is checked at every propagated-failure edge negative/undo-read-not-assigned-on-failure, runtime/undo-cleanups-follow-failure-edges
generics.substitution static 1220, 1280, 1290, 1300, 1310, 1350, 1490, 1500, 1520, 1540, 1650, 1660, 1700 L0300, L0301, L0306, L0307, L0313, L0318 or L0340; a concrete ptr T field retains the exact referent and permission descriptor negative/generic-routine-undeduced-formal, negative/generic-reference-field-permission-distinct, runtime/generic-explicit-static, runtime/generic-reference-fields, runtime/generic-structural-deduction, runtime/core-vec-pointer-storage, runtime/r480-generic-nested-recovery, runtime/r480-concrete-error-deduction, runtime/r490-generic-inferred-recovery, runtime/r490-generic-recovery-frontier, runtime/r490-generic-union-alias, runtime/r490-generic-erased-recovery-views, negative/r490-generic-recovery-conflict, negative/r490-recovery-expanding-generic
concepts.conformance static 1230, 1240, 1250, 1260, 1270, 1340 L0317--L0319 or L0341 negative/conformance-collision, negative/constraint-not-satisfied, negative/compiler-concept-reserved, positive/r490-conformance-input-keys, negative/r490-conformance-input-alias-collision
any.construction static 1370, 1380 L0314, L0318 or L0342 negative/any-source-not-pointer, negative/any-readonly-source-for-mutable-entry
any.dispatch static 1390 malformed table positions cannot be produced by accepted source; verifier failure is a compiler defect negative/any-entry-not-object-safe, runtime/any-heterogeneous-dispatch
modules.availability static 1480, 1660 L0015 names an unavailable hosted or scoped platform import before resolution; project-first overrides cannot bypass target availability the driver case source namespaces enforce target availability; runtime/library-shared-mem, runtime/library-shared-io, runtime/library-shared-map, runtime/library-shared-tree
modules.visibility static 1410, 1420, 1430, 1440, 1450, 1480 L0006 or L0007 for an unresolved root; L0200 for duplicate import bindings, L0202 for private members or representations, L0203 for reserved tool names and L0696 for a selected import (D1658) negative/module-not-found, negative/imported-private-name, negative/core-mem-private-representation, negative/core-text-private-position, runtime/core-mem-raw-storage, negative/selected-import-is-imported-whole, runtime/import-alias-selected-identities, runtime/import-contextual-as
entry.point static 1650, 1970 L0502 before executable emission runtime/constant-return-exits-with-its-code, negative/r440-native-renamed-entry
module.images static 0180, 0340, 0350, 0410, 1460, 1890, 1930, 1940 L0300, L0304 or L0305; module-known bool not, and and or fold left to right into scalar and aggregate images, short-circuit and/or, and execute no initializer CFG negative/module-value-from-a-call, runtime/module-known-short-circuit-bools, runtime/recursive-module-images-are-laid-out-and-distinct
unchecked.region outside 0290, 0300, 0310, 0320, 0430, 0470, 0570, 0580, 0700, 1100, 1110, 1120, 1950, 1960 non-guarantee: inside [1120]'s region the compiler emits no integer overflow edge for +, -, * and unary -, no element-index or slice-range edge, and no destination-range edge for an integer-to-integer or pointer-to-integer conversion; the results are [0320]'s wrapping value, [0430]'s pointer non-guarantee at the computed address, and the low-order bits of the source; every static refusal, every division, shift, bool and float conversion edge and every text boundary edge stays, and a [1100] defer or [1110] undo call keeps the edges of the place its registration is written rather than those of the exit that runs it positive/unchecked-regions, positive/unchecked-marks-only-the-edges-it-removes, runtime/unchecked-arithmetic-wraps, runtime/unchecked-integer-conversion-truncates, runtime/unchecked-slice-index-passes-the-length, runtime/checks-return-after-the-region, runtime/unchecked-does-not-cross-a-call, runtime/unchecked-does-not-reach-an-anonymous-body, runtime/unchecked-keeps-the-divisor-check, runtime/unchecked-keeps-the-shift-check, runtime/unchecked-keeps-text-boundary-traps, runtime/unchecked-keeps-bool-conversion-traps, runtime/unchecked-keeps-float-conversion-traps, runtime/unchecked-pointer-conversion-truncates, runtime/unchecked-does-not-reach-an-outer-cleanup, runtime/unchecked-reaches-a-cleanup-written-inside, negative/unchecked-keeps-a-known-index, negative/unchecked-keeps-permissions, negative/unchecked-keeps-definite-assignment, negative/unchecked-region-end-name-mismatch
pointer.optional static 0430, 0440, 0470, 0480, 0630, 0640, 1210, 1870 L0335 for every use that would read an atom case as an address — .val in a read, in an assignment target and under addr, an integer conversion, any construction, a comparison with another union or a pointer (D429 admits one with the union's own atom), a ptr T position, and ptr(n) into one — L0333 for an inout arm binding, L0338 for a union of two pointer types and L0696 for one of two or more atoms and a pointer (D1659); the zeroed context is L0301; L0333 for an arm outside the union, L0301 for a widening atom outside it, for a narrowing to its atom and for a permission the member does not relax to; L0311 for a case named twice and L0312 for a case no arm and no _ names; the bound pointer carries the subject's origin and an atom case carries none positive/pointer-unions, runtime/pointer-unions, runtime/pointer-union-atom-comparison, negative/pointer-union-dereference, negative/pointer-union-assignment-target, negative/pointer-union-address-of-referent, negative/pointer-union-any-construction, negative/pointer-union-case-named-twice, negative/pointer-union-present-arm-named-twice, negative/pointer-union-is-not-a-pointer, negative/pointer-union-match-not-exhaustive, negative/pointer-union-frame-escape, negative/r440-parser-frame-arena, negative/pointer-union-comparison, negative/pointer-union-integer-conversion, negative/pointer-union-from-an-integer, negative/pointer-union-inout-binding, negative/pointer-union-zeroed, negative/pointer-union-two-pointers, negative/pointer-case-arm-is-not-an-atom, negative/pointer-union-holds-one-atom, negative/pointer-union-atom-outside-the-set, negative/pointer-union-foreign-atom-arm, negative/pointer-union-does-not-narrow, negative/pointer-union-permission-does-not-widen
configuration.fixed static 1480, 1500, 1510, 1530, 1540, 1560, 1590, 1980 L0200 for duplicate option names; L0203 for reserved tool names; L0300, L0301, L0305 or L0306 for invalid fixed evaluation; L0324 for a false compiler assertion; L0390 for invalid option declarations; L0391 for invalid tool directives negative/fixed-conditional-evaluator, negative/r430-assertion-false, negative/r430-option-cycle, negative/r430-option-duplicate, negative/r430-option-reserved, negative/r430-library-injection, positive/r430-fixed-options, runtime/r430-fixed-tools, runtime/r430-static-library

This is a coverage register, not an optimizer contract. D187 adds unchecked.region for [1120], which weakens the four trapping rows it names and no others. D203--D208 add the selected C-call, export, linkage, allocation and hosted-startup boundaries now that the C boundary implements their source and backend paths; its generated binding integration is evidence rather than additional guarantee classes. D209--D210 add arithmetic snapshots, retained element traps and explicit placement without extending the pointer-validity guarantee. Driver and backend inability have diagnostic owners in diagnostics.matrix, but are host failures rather than source semantic operations and therefore are not invented as language guarantees here.

Conformance and evidence coverage

The conformance/evidence coverage register is separate because one semantic operation can travel through several physical mechanisms:

Mechanism Rules Evidence
compiler-zeroable D143 positive/compiler-zeroable-conformances, negative/nonzeroable-constraint
ordinary-direct D142 positive/concepts-and-conformances, negative/conformance-entry-signature-mismatch
ordinary-parent D142 runtime/generic-composed-evidence, negative/composed-conformance-missing-parent
parameterized-provider D142, D144 positive/parameterized-conformance-lookup, runtime/generic-parameterized-evidence
collision D142 negative/conformance-collision, negative/parameterized-conformance-collision
constraint-refusal D142, D143 negative/constraint-not-satisfied, negative/nonzeroable-zero-length-constraint
generic-direct-table D144 runtime/generic-evidence-indirect, negative/parameterized-conformance-entry-signature-mismatch
generic-parent-tables D144, D221 runtime/generic-composed-evidence, negative/r491-static-entry-collision, positive/r491-static-entry-diamond
erased-direct-table D145--D147, D154, D155 runtime/any-heterogeneous-dispatch, runtime/diagnostic-loggers-dispatch, runtime/derived-parser, negative/any-concept-identity-mismatch
erased-parent-flattening D147 runtime/any-composed-dispatch
erased-parameterized-provider D145--D147, D154, D155 runtime/any-parameterized-provider, runtime/diagnostic-loggers-dispatch, runtime/derived-parser
verifier-boundaries D144, D147 unit/evidence-verifier
target-layout-64 D144, D147 unit/evidence-layout, runtime/any-aggregate-storage
target-layout-32 D144, D147 unit/evidence-layout
intrinsic-text-traversal D184 runtime/hosted-text-traversal, negative/text-traversal-ordinary-pointer-is-not-cstring

The alternatives: classifying syntax-node kinds gives internal recovery nodes equal standing with user operations and misses one operation's several safety boundaries. Classifying only IR opcodes omits every statically refused operation. Treating every accepted operation as “safe” would overstate the language exactly where [1720] refuses that claim. Those inventories were rejected in favour of observable boundaries plus mechanical construct closure.

Pinned by compiler/tests/guarantees.matrix, compiler/tests/conformances.matrix, compiler/tests/diagnostics.matrix, the prototype and target matrices, and the full check.py coverage pass.

D156 — Loop transfers are ordinary CFG edges with lexical cleanup

The tour said that [1130] repeats unconditionally, [1140] tests before an iteration, [1180] gives break and continue optional guards, and [1100] executes deferred calls when a lexical block is left. It did not state the definite-assignment approximation at a back edge or whether a transfer selects [1110]'s failure-only cleanup.

Chosen: the first loop increment enables unlabelled loop and while statements and their unlabelled, valueless break and continue transfers. The neutral IR represents them only with its existing blocks, branches and jumps: the loop header is an ordinary backward target, and no loop opcode or backend-specific form is introduced. A guarded transfer branches after evaluating its condition once. A taken transfer is a Structured_Transfer, so it runs active defer entries from inner to outer through the loop-body boundary and never selects undo.

Definite assignment is intentionally conservative. The condition is checked with the incoming facts; the body is checked with those facts, but an assignment made only in an iteration does not establish a fact after the loop. This is sound for a while that may run zero times and avoids claiming a fixed point the checker has not computed. Origins join the incoming and one-body facts because that analysis is monotone union. Labels, break with, complete, value-producing loops and iterable for remain later loop work rather than being approximated in this first increment; D157 subsequently enables the labels and completion edge without changing this representation. D430 reversed this paragraph's assignment rule once the checker computed the loop head's fixed point: the state after a loop is the join of the edges that actually leave it, so an assignment made on every exit now holds after it.

The alternatives: lower a loop to recursion, add a neutral loop opcode, skip cleanup on iteration edges, or treat one body pass as proof of assignment after the loop. Recursion changes stack behavior, an opcode duplicates the existing control-flow graph, skipping cleanup violates lexical registration, and the last choice is unsound for zero iterations. All were declined.

Pinned by negative/loop-condition-not-bool, runtime/loop-control-flow, the syntax, resolution, checking, flow, lowering and verifier seams, and the control.loops guarantee row.

D157 — Loop labels and completion select explicit existing edges

Completion superseded by D1651. Labels and their targets stand; a loop has no completion block, and the second paragraph below is history.

The tour said that [1180] gives loops ordinary-name labels and lets break and continue name one, while [1170] runs complete only when a loop finishes without break. It did not state how an implementation should retain those targets or whether a conditional loop's false edge and a breaking edge share one block.

Chosen: a label is retained on its loop syntax node and on each targeted transfer; it is neither a value declaration nor an IR operand. Resolution, flow checking and lowering select the nearest enclosing loop whose label matches, while an unlabelled transfer continues to select the nearest loop. The selected loop's existing cleanup boundary controls [1100]/[1110] exactly as it does for the nearest-loop form.

A while with complete has two distinct CFG destinations. Its false condition edge enters the completion block, whose ordinary fallthrough then enters the post-loop block. Every break targets the post-loop block directly and therefore skips completion. continue still targets the condition header. An unconditional loop has no natural exhaustion edge and consequently cannot carry complete. Definite assignment remained D156's conservative incoming state after either exit until D430 made it the join of the exits.

The alternatives: introduce labels into ordinary lexical name resolution, encode target depths in the syntax tree, add labelled IR jumps, or route break through complete and suppress it dynamically. The first creates a value namespace where the language promises only control names; the second is fragile under tree rewrites; the last two duplicate structure already stated by explicit CFG edges. All were declined.

Pinned by runtime/loop-control-flow, the syntax, flow and lowering seams, and the control.loops guarantee row.

D158 — Loop values reuse the caller-owned control join

Superseded by D1651. A loop is a statement and gives no value; the reasoning below is history.

The tour said that [1190]'s break with makes a loop an expression, that every break from such a loop yields the same type, and that a finite loop's complete path supplies its exhaustion value. It did not state where that value lives while lexical cleanup runs or how a labelled break crosses an inner loop.

Chosen: a value-producing loop has the same consumer-owned neutral join slot as D125's if, match, and bare-block expressions. Each taken break with evaluates its guard once, evaluates the value only on the taken edge, writes the target loop's join slot, performs D156's structured cleanup, and jumps directly to that loop's post-loop block. A labelled break selects both the cleanup boundary and join slot of the nearest matching loop; an intervening loop owns neither.

Every break targeting a value-producing loop must carry with, and all values are checked against the type and complete identity inferred from the first one or supplied by context. A conditional value loop must have complete, and that block must not fall through: it leaves through a compatible break with. An unconditional loop needs no synthetic exhaustion value because it has no natural exhaustion edge. Scalar, function, pointer and atom results use the join's ordinary slot. Fixed arrays, structs, slices and any use D125's destination-aware block-value path; a targeted break retains the complete destination path while nested control runs, fills it, and only then performs lexical cleanup. This keeps an arbitrarily nested result target-neutral without forming an aggregate IR value.

The alternatives: add a loop-result IR instruction, store the result in a compiler-global temporary, evaluate a guarded value before its guard, or pass an inner loop's destination outward implicitly. Each either duplicates the existing CFG/storage model, changes source evaluation order, or loses the explicit labelled target. All were declined.

Pinned by no fixture since D1651, which withdrew the five that pinned it with the loop value.

D159 — Integer range traversal is retained bounds over ordinary CFG

Completion and values superseded by D1651. The bounds, index and inclusive end stand; exhaustion reaches the statement after the loop.

The tour said that [1150] traverses a..<b and a..b, optionally binds an index, and shares [1170]--[1190]'s completion, labels and values. It did not state when bounds run, the index type, what descending bounds mean, or how an inclusive range ending at the integer maximum avoids an overflow after its last body execution.

Chosen: the first for increment admits ascending integer ranges. The lower bound runs once, then the upper bound runs once; both have one integer type. D219 lets either typed endpoint supply an untyped integer peer, with [0200]'s i32 default when both are untyped. The current element is an immutable copy of that type and the optional index is immutable usize, starting at zero. A half-open range tests <; an inclusive range tests <= and, after its body, checks equality with the saved upper bound before incrementing. Thus an inclusive range whose upper bound is the type's maximum completes without forming an out-of-range successor. A lower bound greater than the upper bound is an empty traversal.

Lowering uses only D156's slots, comparisons, branches and backward jumps. continue targets the shared step block, so both element and index advance exactly once; natural exhaustion selects [1170]'s completion block and break skips it. Bounds are outside the body scope. The iteration bindings are ordinary local declarations inside that scope, so name resolution, definite assignment and lowering use the same declaration side tables as any other local. The parser retains collection traversal too, but checking reports its named deferral until [1160]'s permission-sensitive element binding and iterable evidence are implemented.

The alternatives: re-evaluate the upper bound per iteration, desugar the header into source nodes, widen the element to create an inclusive sentinel, or give continue a separate increment sequence. These change observable order, invent source that was not written, fail for the widest type, or let the two paths drift. All were declined.

Pinned by runtime/for-range-traversal, negative/for-range-needs-integer, negative/for-range-endpoints-disagree, negative/for-iterable-missing-conformance, and the control.loops guarantee row.

D160 — Collection traversal aliases one element of the source's storage

The tour said that [1150] traverses a collection with the same binding shape as a range, and [1160] that the binding carries no marker because the type already decided: over []mut T the element is a writable place, over []T it is not, and over anything else that satisfies iterable it is a copy. It did not say how a fixed array traverses, when the source is evaluated, what an index over a collection counts, or whether a read-only element is a copy or a place.

Chosen: the source is evaluated once, before the first test, to a base address and an element count: a slice supplies both, and a fixed array supplies the address of its storage and its compile-time length. A hidden usize counter runs from zero while it is below that count; the optional index binding is that counter. Before each body run the element's address is formed from the base and the counter, and the element binding is an alias through that address for the whole body: reads and writes go through it, so a body that writes the storage by index sees the change through the element and vice versa. A slice element is writable when the slice is []mut T; a fixed array's element is writable when the array itself sits in a place the body could assign, which is the same question items[k] = v asks of items. Every other element is a read-only place, refused at a write by L0303 with [1160]'s note. An element whose type is a scalar, pointer, atom, function or struct is enabled. An array, slice or any element, and a source that is a struct or any value awaiting [1320]'s iterable evidence, keep the named refusal, L0304.

Lowering keeps this inside the existing alias table that D78's payload bindings and [0990]'s named returns already use: the element declaration maps to a runtime-address alias whose slot is refreshed in the loop body's first block. Scalar reads and writes of the element load and store through that address; struct elements reach their fields through the same rooted storage a slice index produces. No new IR opcode, slot kind or verifier rule was added. Origin analysis gives the element the source's facts, so a reference read out of an element derives from wherever the storage came from. Definite assignment treats every part of a struct element as assigned on entry to the body, as it does a copied struct.

The alternatives: copy each element into a local and write it back after the body, which would make items[k] and item disagree inside one iteration and would silently drop a write when the body leaves through break; hand out a pointer and require item.val, which contradicts [1160]; or desugar the loop into an index loop over source nodes, which invents source that was not written. All were declined.

Pinned by runtime/for-collection-traversal, negative/for-collection-element-read-only, negative/for-source-not-traversable, negative/for-iterable-missing-conformance, and the control.loops guarantee row.

D178 — Aggregate traversal elements keep their storage shape

The tour said that a fixed array's element type is part of its structural identity [0520], that a slice carries its element type and permission [0570], and that collection traversal binds an element place [1150] [1160]. D160 enabled scalar, pointer, atom, function and ordinary-struct elements but left fixed-array, slice and any elements together behind L0304. It did not require those three runtime representations to advance together.

Chosen: the next collection-traversal increment enables an element whose type is a fixed array or slice. The containing fixed array records the complete immediate element shape: an inner fixed array retains its length, scalar or nominal element and nominal identity; an inner slice retains its full reference descriptor. A slice source already carries the equivalent descriptor. The element binding receives that shape before its body is checked, and definite assignment treats the complete fixed-array value or the two slice cells as assigned on every entered iteration.

D160's source and control rules do not change. The collection expression runs once, the hidden usize counter visits addresses in increasing index order, and the binding remains an alias to the selected storage for the complete body. Replacing a whole fixed-array or slice element requires the write permission of the containing collection. Indexing through a slice element separately follows the mut permission carried by that inner slice. continue, labelled or unlabelled break, natural complete, and lexical cleanup retain their D157 and D158 edges.

A break with may copy the fixed-array value or the two-cell slice descriptor from the current alias into the caller-owned loop destination before cleanup. Target-neutral lowering represents the runtime alias with the existing address-shaped slot. A computed scalar index below a fixed-array alias forms an address and uses the existing indirect load or store; recursive neutral shape transport handles the complete fixed-array copy. No new IR operation, verifier rule, backend-only type fact or host-width query is introduced.

An any element and a struct or any source requiring [1320]'s iterable evidence remain the named refusal, L0304. They need erased element identity or evidence-driven value production, neither of which is implied by the fixed-size storage shapes enabled here.

The alternatives: copy an aggregate element into a detached local, flatten an inner array or slice into a scalar placeholder, enable any by treating its two cells as a slice, or invoke iterable evidence during lowering. Those choices lose element aliasing, lose structural identity or permission, confuse two unrelated two-cell representations, or bypass the checked evidence call. All were declined.

Pinned by runtime/fixed-array-reference-shapes, runtime/for-aggregate-element-traversal, negative/for-array-element-read-only, runtime/for-any-element-traversal, the retained negative/for-iterable-missing-conformance, and the control.loops guarantee row.

D179 — An any traversal element keeps erased identity and evidence

The tour said that collection traversal binds an alias to an element of a fixed array or slice [1150] [1160], and that any C is one erased data pointer paired with evidence for exactly C [1370] [1390]. D178 deliberately left that element type separate from fixed-array and slice elements: the same two-word size did not make an any a slice.

Chosen: a collection traversal admits an any C element. A containing fixed array records C in the target-neutral descriptor for its repeated element; a slice already records C in its referent descriptor. The loop binding receives that exact concept identity before its body is checked and aliases the complete two-word element in the selected storage. Dynamic entry selection therefore reads the element's data pointer and its own evidence table, including when one collection holds values erased from different concrete types.

D160's evaluation, permission and control rules remain unchanged. A computed slice source is formed once before its base and length are saved. The hidden usize index still advances in storage order. Replacing an element requires a writable slice or assignable fixed array; reading and dispatch through a read-only slice remains valid. continue, break, natural complete and lexical cleanup keep their existing edges. A break with copies both any cells into the caller-owned loop destination before cleanup, so the result keeps the selected erased identity and evidence.

The address-shaped alias and the existing two-cell storage-copy path are representation mechanisms only. No operation interprets an any data pointer as a slice base, interprets evidence as a length, or admits any C itself as a collection source. A struct or any source requiring [1320]'s iterable evidence remains the named refusal, L0304.

The alternatives: copy the element into a detached local, infer C again from the data pointer, treat the pair as a slice, or enable evidence-driven sources at the same time. Those choices respectively lose element aliasing, discard the erased identity, confuse unrelated representations, or couple a storage walk to an unimplemented evidence call. All were declined.

Pinned by runtime/fixed-array-any-shapes, runtime/for-any-element-traversal, negative/for-any-element-read-only, the retained runtime/for-iterable-evidence-traversal, and the control.loops guarantee row.

D180 — Struct and erased sources traverse through exact iterable evidence

Fallible traversal superseded by D1652. The iterable contract stands; the amendment for try for and fallible_iterable below is history, and a traversal whose steps can fail is a while over tried steps.

The tour said that traversal uses [1320]'s iterable concept [1150], that its item result makes a non-storage element binding a copy [1160], and that evidence tables follow concept declaration order [1310]. D160--D179 had only enabled direct fixed-array and slice storage. Treating an any C source as the other existing two-cell carrier would instead confuse erased data and evidence with a slice base and length.

Chosen: the next collection-traversal increment admits a source whose type is a struct or any C when there is one unambiguous concept named iterable and exactly one conformance to it iterable supplies two associated type inputs and [1320]'s four entries in that order. The entries have the exact infallible signatures shown at [1320]: no convention, permission, error-set, result-origin, cursor identity, Item identity, or erased concept is inferred or converted. Conformance arguments remain label-addressed, while the retained provider table and calls remain in concept declaration order. Missing, multiple, malformed, or non-exact evidence is L0348.

Amended for fallible traversal: the infallible contract above remains exact. try for first seeks one conformance to the unambiguous concept named fallible_iterable, with type formals T, Cur, Item, and Errors and the same four ordered entries. Errors is an atom set, and every entry declares that exact set after !. The provider result, cursor, permission, convention and origin rules above still apply. If no fallible conformance exists, try for may use an ordinary iterable; plain for cannot select a fallible conformance. Missing, ambiguous, malformed, or non-exact evidence is L0348.

The source is still evaluated once. A failure from first, at_end, item or next propagates its original error atom after applicable defer and undo cleanup. It skips all later provider calls and never enters complete. A failure from next occurs after the body and its cleanup, before the next head. The enclosing function must declare or infer those atoms, and its caller may recover them through the ordinary call else. This makes the implicit provider calls visible at the loop site without changing ordinary call error handling.

The source expression is evaluated once and copied into independent traversal storage. Every provider receives a read-only ptr T to that same stored value; there is no further source-sized copy at provider entry. The pointer is non-escaping under [0780], and providers cannot write through it. first runs once against that stored source. Each head calls at_end; false calls item and copies its result into the immutable element binding. Body fallthrough or continue runs applicable cleanup, calls next, copies the returned cursor into the retained cursor, advances the optional immutable usize index, and tests again. break runs applicable cleanup but does not call next; natural completion alone enters complete. Aggregate, fixed-array, slice and any cursors and Items retain their complete checked identity. Aggregate cursor replacement uses separate result and retained storage, so a provider never receives an aliased input/output cursor. An any Item and an any loop result copy both erased cells.

Because [1320]'s item result has no from, its binding has no source-derived origin; an implementation returning such a reference must satisfy the ordinary exact result-origin rule at its own declaration. Assigning to the copied binding is L0303. The stored source is passed as [1320]'s read-only pointer parameter, so no traversal call obtains a new write permission. Ranges and direct array/slice traversal retain D159--D160 and D178--D179 unchanged. In particular, an any C source remains a data/evidence pair for C through every provider call and is never decoded as a slice. Its pointer refers to the retained two-word erased value, not the represented object.

The alternatives: pass the source by value on every call, choose the first conformance in source order, derive Cur or Item from provider bodies, share an aggregate cursor's result and input storage, make Item an alias, call next before cleanup, or reinterpret any as a slice. Those choices respectively require source-sized callee copies on each loop step even when providers only inspect the source, make declaration order semantic, lose associated-type identity, permit hidden result/input aliasing, contradict [1160], move effects across a loop edge, or confuse unrelated representations. All were declined.

Pinned by runtime/for-iterable-evidence-traversal, negative/for-fallible-requires-try, negative/for-iterable-ambiguous-evidence, negative/for-iterable-item-read-only, negative/for-iterable-missing-conformance, retained range and collection runtime fixtures, and the control.loops guarantee row.

D185 — A condition binding belongs only to the body it guards

The tour said that a declaration is allowed in a condition and is a plain type error unless it is bool [1070]. It showed only the inferred if form. It did not say whether a typed or mutable binding is admitted, whether elsif and while use the same form, which scopes see the name, whether the name is visible in its own initializer, or when a loop initializes it again.

Chosen: if, every elsif, and while accept either initialized binding form: mut? name := expression or mut? name : type = expression. A binding with no initializer is not a condition. The initializer is evaluated in the enclosing scope before the new name exists. Its result initializes the ordinary local binding, and that stored value is the condition; after ordinary binding checking it must have the exact type bool, with L0301 otherwise. The binding is definitely assigned on entry to the guarded body.

The binding shares that one body's lexical scope. It is visible throughout the body but not in a later elsif condition or body, an else, a loop's complete, or any following statement. It may shadow an enclosing name under [1850], while another declaration of that name in the guarded body is a same-scope L0200 duplicate. Each condition arm has its own such scope, so the same spelling may independently be declared by sibling conditions. A while evaluates the initializer, stores the binding, and tests it at every visit to the loop head, including after continue; its false edge reaches complete without exporting the binding. Plain expression conditions and exit when guards are unchanged. An unconditional loop has no condition to declare in.

Lowering needs no declaration-expression or loop opcode. The existing Binding node occupies the condition slot, resolution installs it in the guarded Block's scope after resolving its initializer, checking applies the ordinary binding rules before the bool requirement, and lowering stores the initializer in its ordinary local slot before emitting the existing CFG branch.

The alternatives: limiting the form to the one inferred if example would make equivalent condition positions and binding spellings disagree. Extending one binding across later arms, else, or complete would make sibling control paths share a name whose initializer may never have run. Giving the binding a scope nested inside its guarded body would permit an immediate redeclaration to hide it and would require a scope with no source block. Treating the name as visible in its initializer would reverse [0110]. All were declined.

Pinned by positive/condition-declarations, negative/condition-declaration-body-shadowing, negative/condition-declaration-not-bool, negative/condition-declaration-out-of-scope, runtime/condition-declarations, the generated lexical and IR records, and the control.flow guarantee row.

D187 — An unchecked region removes only the edges with one meaning everywhere

Amended by D1654. There are no anonymous bodies for a region to stop at; the region's rules stand for declared functions.

The tour said that [1120]'s checks may be switched off for a region, visibly, and [1720] said the region was not implemented first because what an optimiser may then assume should wait for a compiler that can be measured. It did not say which checks go, which stay, how the region is spelled or closed, whether it is an expression, whether it reaches through a call, or what a removed check leaves in place of the value it was guarding.

Chosen: unchecked begin ... end unchecked is a statement and a lexical block with its own scope. D225 supersedes this decision's original contextual spelling: unchecked and begin are now reserved by [1760], so neither can name a binding or label. The region is not an expression, it has no counter-word, and nesting one inside another says nothing new.

Inside it, and only for instructions lowered from what is lexically inside it, the compiler emits no overflow edge for integer +, -, * and unary -, no element-index or slice-range edge for arrays and slices, and no destination-range edge for an integer-to-integer or pointer-to-integer conversion. A removed overflow edge leaves exactly [0320]'s two's-complement wrapping result; a removed conversion edge leaves the low-order bits of the source's representation; a removed bound edge leaves the access at the computed address, which is [0430]'s existing pointer non-guarantee and nothing worse. arithmetic.total is unchanged: the wrapping operators already mean this, and the region only makes the checked ones agree with them.

Membership follows one rule: a check is removable when, on every target Landin describes, the operation without it has one stated behaviour and that behaviour produces only values the destination type holds. That excludes division and remainder by zero and signed-division overflow, because x86-64 faults and Cortex-M does not; a negative shift count, because x86-64 masks and ARM saturates; every conversion to bool, because [1870] fixes bool's zero-or-one image; every float conversion, because an out-of-range IEEE-to-integer result is a target instruction artefact; and [0600]/[0610]'s text boundary edges, because D181's validated view is what makes D184's decoder infallible and a non-boundary utf8 is not a value the type holds. Those text edges are emitted through the same slice-address operation as an ordinary bound, so lowering marks them required where it emits them.

Everything in D148's static class stays, without exception: types, definite assignment [1900] [1910], reference permission [0430], origins and escape [0770]--[0840], consumption [0910], exhaustiveness, declared errors [0940] and [1950]'s known-value refusals. The region is lexical and never dynamic — a call made from inside it enters a callee checked as that callee is written, and an anonymous function body [1010] written inside it is a separate item whose region depth starts at zero, because a function value runs where it is called and the region's visibility claim would otherwise be false at that call site. The region grants an optimiser nothing: it emits fewer checks and makes no fact available to a later pass. D211 preserves that rule under optimization, and the Darwin arm64 and Cortex-M0 targets keep it as Linux x86-64 does.

Cleanup is the one place the compiler emits an instruction for source written somewhere else, so lexical has to be said of it in particular: a [1100] defer or [1110] undo call is checked as its registration is written and never as the exit that reaches it. A return, break or fail inside a region keeps every edge of a cleanup argument registered outside one, and a registration written inside a region is reached by it as any other statement of it is. The alternative — the mode of whichever exit happened to run the call — would make one defer mean two things depending on which line left the function, which is the opposite of a word whose claim is meant to be readable where it stands.

The neutral IR carries this as one Boolean on an instruction, set only where the membership rule above holds, and the verifier refuses it anywhere else and inside [1940]'s module value. That rule reads an instruction's types and not only its opcode: a float +, -, * or unary - carries no overflow edge to remove, and a conversion carries a removable destination-range edge only from an integer or a pointer to an integer, so none of those is marked. The flag therefore says what it is named for wherever a backend reads it, instead of being true of instructions the Linux backend happens to decide before consulting it and the next backend would not. The recorded IR renders it, because an edge that is not emitted is otherwise invisible in a dump.

The alternatives: this decision originally retained contextual spelling; D225 later reserves unchecked with the other control words to remove their name ambiguity. Making the region an expression would add a fourth block form to [1810]'s list, which names only if, match and bare begin. A dynamic region reaching through calls would make the word's claim unreadable at the place it is written and would need a second lowering of every callee. A counter-word re-enabling checks inside a region would make the outer word mean less than it says, and [1120] spells none. Removing the divisor, shift, bool, float and text edges would make the same source mean different things on the Darwin arm64 and Cortex-M0 targets, whose parity with Linux was to be proved rather than assumed. Letting the region license an optimiser assumption is [1720]'s open question and not this one. All were declined.

Pinned by positive/unchecked-regions, positive/unchecked-marks-only-the-edges-it-removes, runtime/unchecked-arithmetic-wraps, runtime/unchecked-integer-conversion-truncates, runtime/unchecked-slice-index-passes-the-length, runtime/checks-return-after-the-region, runtime/unchecked-does-not-cross-a-call, runtime/unchecked-does-not-reach-an-anonymous-body, runtime/unchecked-keeps-the-divisor-check, runtime/unchecked-keeps-the-shift-check, runtime/unchecked-keeps-text-boundary-traps, runtime/unchecked-keeps-bool-conversion-traps, runtime/unchecked-keeps-float-conversion-traps, runtime/unchecked-pointer-conversion-truncates, runtime/unchecked-does-not-reach-an-outer-cleanup, runtime/unchecked-reaches-a-cleanup-written-inside, negative/unchecked-keeps-a-known-index, negative/unchecked-keeps-permissions, negative/unchecked-keeps-definite-assignment, negative/unchecked-region-end-name-mismatch, the generated lexical and IR records, and the unchecked.region guarantee row.

D234 — A labelled bare block is left by a break that names it

Value refusal superseded by D1651. The block and its other refusals stand; with after any break is refused by the parser as L0332, and no loop it crosses has a complete to skip.

The tour said that labels use the ordinary name form on loops and bare blocks only, and that break and continue take one [1180]; [1090] showed only the unlabelled block. D157 retained loop labels on loop syntax and on each targeted transfer. A labelled block was outside the grammar: scope: begin parsed as a binding and its end closed the enclosing function, a defect a review found, and break scope met L0110.

Chosen: labeled_block ::= identifier ":" "begin" block "end" identifier is a statement. Its closer repeats the label with the same diagnostics a labelled loop's closer has. break name, with or without when, targets the nearest enclosing loop or labelled block carrying that name — equal nested labels resolve to the nearest, as D157 already does for loops — and control continues after the block's end name. Every scope the transfer leaves runs its applicable cleanup exactly as a loop break runs it: [1100]'s defer entries run innermost first and [1110]'s undo does not, and a loop crossed on the way out is left without its complete. An unlabelled break or continue still targets the innermost loop; a labelled block never captures one. The label is retained on the block node and on the transfer, like D157's, and lowering reuses the loop exit edge and cleanup boundary: no IR instruction, backend or debug-information change.

Three refusals keep the construct a statement. continue name naming a block is L0110, because a block has no next iteration. break name with v targeting a block is L0332, the report a value given to a statement loop gets. A labelled block in expression position is L0102. The reason is that a label exists only to be left early by break name, [1190] makes break with the value of a search loop rather than of a block, and a block expression (D125) gets its value from its final expression, which an early exit would skip.

Definite assignment after a labelled block is the meet of its fallthrough and every edge leaving it by break; unlike a loop, an assignment in the body is not held back, because the body runs once. The reference-origin and borrow checks merge the same edges; the check that a borrowed view is not read after a mutating call now assumes any break may resume after the block's end, which can only report more.

The alternatives: a labelled block that yields break name with v, as in languages whose blocks are search expressions, was declined because [1190] already gives that job to loops and a second value exit would duplicate D158's join for no program that needed it. Removing labels from bare blocks was declined under the inherited rule that a program not needing a construct is evidence, not automatic removal; the construct costs no new IR. Letting an unlabelled break leave the innermost labelled block was declined because it would change what every existing break inside a labelled block means.

Pinned by positive/r720-labelled-bare-blocks, runtime/r720-labelled-block-transfers, negative/r720-labelled-block-break-value, negative/r720-labelled-block-partial-assignment, negative/r720-labelled-block-break-origin, negative/r720-labelled-block-borrow-after-break, negative/r720-labelled-block-not-an-expression, the driver case labelled block refusals for the closer and continue reports, and the control.loops guarantee row.

D430 — An assignment on every edge that leaves a loop holds after it

Amended by D1651. The join stands without the edge through complete: the edges that leave a loop are its false test or exhaustion and its breaks.

The tour said at [1910] that a name must be assigned on every path before it is read, and at [1130] and [1170] that break leaves a loop and complete runs when a conditional loop runs out. D156 and D157 kept only entry and condition facts after a loop, "to avoid claiming a fixed point the checker has not computed", so loop do r = n; break end loop left r unassigned, and a local assigned the same way was "read here and no path that arrives assigned it", which was untrue of the one path there was. A wait loop needed a helper with return.

Chosen: the checker iterates a loop's head to its fixed point, so the state after the loop is the join of the edges that actually leave it, each taken from the converged head: a while's false test and a for's exhaustion, through complete when there is one, and every break with the cleanups it runs. A name assigned on every one of them is assigned after the loop, a named return as well as a local. This is sound for zero iterations because the false-test edge carries only the facts the head had before any body ran. Consumption (D223) was already the join of the actual exits. The IR verifier's own slot walk is path-based and needed no change. Where a path does leave a name unassigned, L0302 now says that a path that arrives has not assigned it, rather than that none did.

The alternatives: relaxing only an unconditional loop's break edges, which keeps complete unequal to the break it parallels; and keeping the ceiling with a refusal naming break with or an assignment before the loop, which refuses programs the checker has already proved.

Pinned by runtime/r491-loop-assignment (the negative fixture that pinned the ceiling, turned) and negative/loop-exit-skips-assignment.

D1651 — Loops are statements: break with and complete leave the language

The tour said at [1190] that break with makes a loop an expression whose value every break gives, and at [1170] that complete runs when a conditional loop runs out without a break. D157, D158, D159, D234 and D430 implement them. The library, the examples and the derived programs use neither: a count over the checked corpus found them only in the fixtures that pin them.

Chosen: both leave. A loop is a statement and has no value; a search loop writes its result to a mutable local or a named return and leaves with a plain break, or is a helper that returns it. A loop has no exhaustion block, so every exit of a while or for, its false test, its exhaustion and each break, reaches the statement after it. Labels on loops and bare blocks ([1180], D234) stay, and so does when on every exit ([0970]): break name and continue name keep their targets and cleanup, and break name when c its guard. What D157 says of labels stands and its completion edge goes; D158 goes whole; D159 keeps its bounds and loses its completion and value clauses; D234's refusal of break name with v becomes the refusal of with after any break, naming the local that replaces it; D430's join of the edges that leave a loop stands without the edge through complete. with and complete leave the keyword lists. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: keeping both, as the inherited rule that non-use is evidence, not automatic removal, kept D234's labelled blocks; and removing labels with them, since with no loop value a label only breaks outward, which a helper's return does. The maintainer kept labels and declined both.

Pinned by negative/loop-value-search-rewritten, whose fix writes a search loop's result to a mutable local before each plain break and moves a literal complete value to the declaration; negative/loop-complete-runs-after and negative/loop-complete-left-by-a-break, the complete block moved after a loop no break leaves and refused without a fix where one does; negative/loop-value-in-every-value-context and negative/r720-labelled-block-break-value, the loop and the break refused where a value belongs; the parser case removed loop words are names; and, unchanged, runtime/loop-control-flow, positive/r720-labelled-bare-blocks and runtime/r720-labelled-block-transfers. The forms are refused as D1867 says and rewritten as D1868 says.

D1652 — A fallible traversal is a while over try next: try for leaves

The tour said at [1320] that try for walks a fallible_iterable, each step a call that may fail into the enclosing function. D180, D293, D382, D497, D1037 and D1308 cite it. The library has no try for; one match is a comment.

Chosen: try for leaves. A fallible traversal is written as a while whose body takes each item with try next(…), or with a call-site else, which already says where a failure goes. for keeps its forms over ranges, slices and an iterable; whether containers keep the traversal protocol at all is the library review's decision, not this one. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: keeping try for beside for, a second loop form for one kind of step; and removing the whole traversal protocol now, which waits on whether the library's containers iterate. Both were declined.

Pinned by negative/try-for-names-its-replacement, the refusal naming the while that replaces it, and runtime/fallible-traversal-by-while, which walks the sources the removed fixture walked with while and try, with the cleanups and failures it had. Of the six decisions named above, D180 and D382 cited try for and are amended; the other four matched only the words "entry for". The rewrite takes each provider by name, which only the author knows, so the refusal carries no fix (D1868).

D1867 — The parser refuses a removed loop form by the shape it was written in

The discrepancy: D1651 and D1652 remove break with, complete and try for, and take with and complete out of [1760]'s keywords, while D1847 asks for a refusal that names the replacement and carries the rewrite. Once the words are names, a program written in the removed forms would otherwise meet a label it never declared, a statement made of a name, or a loop where an expression was required, none of which says what to write.

Chosen: the parser reads each removed form by its shape and refuses it there, so the language server, the report and refine fix see one refusal. with after break, or after break label, followed on its line by something that begins an expression is the removed value: a label is followed only by when or by nothing, so break with alone still names a loop labelled with. complete alone on its line inside a loop body is the removed block; complete = true, complete(x) and a complete: label are the name. A loop written where a value belongs is read whole and refused once, as L0332 against the loop, and the break withs that gave it its value are part of that one report (D263's rule of one report a construct). A break with whose loop or labelled block is a statement is L0332 on its own. A complete block and try for are L0696, the code for a form the language removed, whose note names the replacement; later removals take it as well. A refused loop is a hole in the tree, so nothing after the parser checks a form the language no longer has, and the checker and lowering lost their paths for loop values, completion blocks and fallible traversal. An unconditional loop's complete, which the parser refused before, is refused the same way.

The alternatives: keeping with and complete reserved so the forms stay unambiguous, which D1651 declined; refusing in the checker, which has types to spell a declaration but would keep the removed forms in the tree every later stage walks; and one code for every removal, break with included, which D1651 gave to L0332.

Pinned by the parser case removed loop words are names and D1651's and D1652's fixtures.

D1868 — A removed loop form is rewritten where the rewrite keeps the program's meaning

The discrepancy: D1847 makes a removed form's rewrite its refusal's exact fix where the rewrite is mechanical, and D1651 names the search loop's replacement without saying when writing it is mechanical.

Chosen: a loop is rewritten when it is the whole value of name: T = loop or of name = loop assigning a name, every break that leaves it gives a value, each such break begins its line, and the loop never names name. The declaration becomes mut name: T before the loop, or the assignment loses its target; each break with v becomes name = v and a plain break, and a break with v when c becomes if c then name = v break end if, its value's continuation lines indented with it, which evaluates c and then v as before. A conditional loop is rewritten only when its complete block is exactly break with and a literal, which gives the literal to the declaration: a literal reads nothing and does nothing, so evaluating it earlier changes nothing. An inferred name := loop names no type to declare and is not rewritten. A statement loop's complete block becomes a bare block after the loop's closer when no break leaves the loop and nothing in the block leaves it: then every exit that is not a return or fail is exhaustion, which is when the block ran, and the bare block keeps its scope. A break that names an enclosing loop or block skips both the old block and the new one. try for is not rewritten: its replacement calls the providers by name. The rewrites need the source's bytes, which the syntax stage hands the parser.

The alternatives: hoisting any complete value, which moves a call or a read before the loop; a flag for every complete block, which is mechanical but writes a name the author did not choose into every loop; and a likely fix for the rest, which refine fix would not apply and the refusal's note already describes.

Pinned by negative/loop-value-search-rewritten and negative/loop-complete-runs-after, whose recorded fixes compile with an empty report, and negative/loop-complete-left-by-a-break, which has none.

D1653 — The simplification keeps the forms it left out, and two wait on the library review

The tour said each of the forms below and the third roadmap's candidate list proposed removing or reducing it, with a count of its use over the checked library, examples and corpus.

Chosen: these stay as they are: labels on loops and blocks ([1180]); a declaration in an if or while condition ([1070]); every array fill, [of v] and [e1, …, of v] as well as [n of v] ([0560]); every struct literal of fill, not only of zeroed ([0720]); inout and sink bindings in a match arm ([1220]); block comments ([0020]); an atom union written in place ([0640]); positional arguments followed by named ones ([0980]); inclusive .. in for and slices ([0360]); held in a from result; arithmetic on whole arrays ([0590], D209, D240); array fields in packed structs ([0730]); and hexadecimal float literals ([0230]). when on an exit ([0970]) was never a candidate and stays. The iterable protocol and concepts with several inputs ([1320], [1270]), and zeroable as a user-visible bound ([0550]), wait on the library review, which decides whether containers iterate and what generic containers need. The order in which an aggregate assignment writes, D29 against D209, is taken as one rule by its own change. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: removing each, as the candidate list recommended for labels, the declaration in a condition, the fills, block comments, whole-array arithmetic and the packed array fields. The maintainer declined each for this roadmap; a later proposal needs evidence beyond the counts the list already gave.

The library review decided both: containers iterate through a library iterable (D1957), and zeroable stays (D1958).

Pinned by the fixtures that pin each form today, which stay: runtime/loop-control-flow and positive/r720-labelled-bare-blocks among them, and the control.loops guarantee row.

D431 — A final control whose only answers diverge is a statement

The tour said at [1800] that a final expression fills the named return, at [0890] that a noreturn routine never returns, and at [1560] that compiler.unreachable() is a call that never returns. Because a call is also an expression, a routine whose last item was a match with an arm box: compiler.unreachable() was taken as a value-producing match, and an arm that assigned the return as a statement was L0332, "this control block can fall through without producing a value"; the same held for if and any noreturn callee. Binding the match as a value was the route, which nothing said.

Chosen: a routine's final if or match whose every answer is a call that does not return, or a nested if or match of the same kind, answers nothing, and the checker takes it as the statement it then is: its arms are checked as statements, and each arm that falls through must have assigned the named returns, as after any statement. The parser cannot know this, since noreturn is a signature's, so the checker decides it. A final control with one real answer stays a value, its diverging arms needing no value [1560].

The alternatives: keeping the refusal and naming the route, r = match ..., which leaves a trap that the tour's own wording contradicts; and a syntactic rule for compiler.unreachable() alone, which a user's noreturn routine would not meet.

Pinned by runtime/trapping-arm-leaves-a-statement and negative/trapping-arm-unassigned-return.

D436 — A guarded trap is written as a one-line if

The tour said at [1810] that only exits carry when, and return when gives a guarded return one line. A library check that traps was thought to take three lines, if … then compiler.unreachable() end if, and a guarded trap form was asked for.

Chosen: none is added. if broken then compiler.unreachable() end if on one line is already a statement, and refine fmt keeps it on one line, since it never joins or breaks lines; docs/format.md says so. A trap is not one of [1810]'s exits, whose when names where control goes next.

The alternatives: compiler.unreachable() when broken, a statement form with its grammar, flow edge, formatter and highlighter changes, for a line the language already writes. A library helper such as require(condition) meets a different limit: its trap reports the helper's site rather than its caller's, which a caller site argument to compiler.unreachable would answer; D1262 has since added it.

Pinned by the "Blocks" rule in docs/format.md, which the test program holds the formatter to.

Decisions: Concepts, generics and runtime dispatch

Concepts, the evidence that satisfies them, the instances a generic call deduces, and the erased pair behind any.

D135 — Parameterized type declarations collect their formals before their bodies

Amended by D1663. A fixed actual is any expression an array length folds, not only an integer literal or a forwarded fixed formal.

The tour said that type and fixed parameters are compile-time [1290], that a type takes them through its own declaration rather than a function [1350], and that fixed marks compile-time knowledge [1490]. It did not settle the binder spelling, the scope that owns those names, or whether textual order could make a fixed formal's declared type resolve differently.

Chosen: a parameterized type declaration is written name: type (t: type, fixed n: u32) = rhs, with fixed before its name. fixed is reserved. Its arguments are positional: a type application is name(type_argument, ...), where an argument is a type or an integer for a fixed formal. A fixed formal may supply an array bound, so [n]t is an alias body. The grammar admits that formal list before an alias type, atom-union body or struct body. The hosted-parity audit closed the earlier parameterized atom-union exclusion by applying the existing structural-set and alias-substitution rules. D142 later adds one direct concept constraint to a type formal without changing this positional substitution. The same compile-time-only binders are admitted in declared-routine syntax and resolution; D138 enables exact direct-call deduction, and D139 separately enables target-selected module declaration lists.

One type-declaration scope contains all of the formals. The resolver collects the complete formal list into that scope before it resolves any fixed formal's declared type or the declaration right-hand side. Thus a formal may name one written later, but the formals do not escape to the module or another declaration.

Union members are normalized recursively under the current substitution, including declared atom singletons, qualified names and fully applied aliases. Repeated atoms and source order do not change the interned structural set. Symbolic declaration checking validates independent members while leaving the result undecided; it never invents a partial atom-set key or records a concrete instance answer on template syntax. Proven pointer presence and up to two distinct atom identities survive symbolic alias substitution solely as diagnostic lower bounds, so unconditional pointer-count violations, and two atoms known beside a pointer (D1659), are refused even in unused declarations. An invalid concrete substitution names its application as the primary source and its template member as the related source. The resulting alias participates in the ordinary error-set, assignment and generic-key rules. A one-atom pointer union uses D189's existing descriptor, including the empty atom of a substituted optional-pointer alias. Two pointer members are still refused. Two or more atoms beside a pointer were refused by name here; D235 later gave them a two-cell union, and D1659 refuses them again as L0696, at the application when a parameterized alias such as opt(t) = a | b | ptr t makes the union.

A fully applied alias is normalized during checking. Its enabled result is a scalar, fixed-array, atom-set, pointer or nominal aggregate descriptor; an alias around a parameterized struct instance keeps that instance's identity rather than introducing another one. A fully applied struct instead interns D137's nominal instance. A struct type formal accepts every enabled concrete identity: scalar, structural atom set, exact fixed array, nominal instance or structural function signature. The substituted field or payload position then decides whether that identity is legal there. A fixed formal has an integer type and accepts an integer literal; a nested application may forward its caller's fixed formal. Substitution therefore covers fixed bounds and every concrete field and payload shape the ordinary struct already admits.

A parameterized declaration named without arguments, an application with the wrong arity or argument kind, a fixed actual outside its declared integer type, a bound outside D136's fixed-expression forms, and recursive alias expansion are refused. The substituted extent of an array or nominal instance must fit the target usize. The declaration, its body and its formals are a compile-time template: formals have no runtime type, IR slot or ABI position, and no instantiation writes a type, length, layout or other per-application metadata onto a template syntax node.

A template is still a declaration and is validated even when never applied. The checker uses symbolic formals, not a guessed instantiation, to reject an unresolved or non-type free name, a fixed formal whose declared type is decidably non-integer, an unsupported decidable field or alias-result shape, duplicate field or case names, an unconditional alias-expansion cycle and D137's unconditional by-value nominal recursion. A question whose answer genuinely depends on an actual remains for application checking. Its primary is the application and its related label is the template field or expression; two distinct bad applications therefore remain distinct. Declaration order does not move an unconditional defect onto an outer application.

Why one declaration scope: resolving while reading would make a correct alias depend on its formal order, while making each formal a module declaration would leak its name and create collisions unrelated aliases cannot share. A function-shaped type maker would instead introduce execution where [1350] requires substitution. All were declined.

Pinned by negative/r490-union-alias-application-reports, negative/r490-union-alias-unused-pointer-shapes, positive/parameterized-atom-union, runtime/r490-generic-union-alias, negative/r490-union-alias-nonatom, negative/r490-union-alias-direct-array, negative/r490-union-alias-unused-nonatom, negative/r490-union-alias-two-pointers, negative/pointer-union-holds-one-atom, negative/r490-union-alias-deduction-conflict, the checking case union aliases keep exact instance keys, and the parameterized-alias and parameterized-struct parser and resolution public-seam cases; the checking and lowering public-seam cases; positive/parameterized-type-alias-scalar, positive/parameterized-type-alias-fixed-array; the repository core/vec module and runtime/core-vec-pointer-storage; the positive/parameterized-struct-basic, positive/parameterized-struct-instances; the negative/parameterized-alias-*, negative/parameterized-struct-* and negative/nominal-struct-recursive-layout fixtures; the generated lexical, construct and IR records; and runtime/parameterized-type-alias-fixed-array and runtime/parameterized-struct-values on Linux x86-64.

D1663 — A fixed actual folds as an array length does

The tour said nothing about how far a type application's fixed actual folds. D135 kept it to an integer literal or a forwarded fixed formal, while an array length folds D136's closed forms, an integer compiler fact (D1321) and sizeof or alignof of a scalar (D1321, D1340), so [compiler.word_size]u8 was a type and buf(compiler.word_size) was refused.

Chosen: one rule: a fixed actual is any expression an array length folds, with the same refusals and the same target-dependent identity (D139). D135 and D1321 are amended by this decision when the change that lands it marks them. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: keeping D135 as it stood, two rules for one kind of value. Declined.

Pinned by positive/fixed-actual-folds-as-a-length, which applies a type to compiler.word_size, sizeof of a scalar, a module integer and arithmetic on one, and negative/fixed-actual-refusals, which gives a call, a bool and a width-dependent operator the refusals an array length gives them. D135 and D1321 are marked amended. How a type argument is told from a fixed one is D1889.

D1949 — An any C converts to any P for a concept P that C builds on; fibres and threads share one task concept

The tour said at [1370] that an any C is a provider of C and of every concept C builds on ([1340]), and that an any is not erased again: so an any turns passes to a routine generic over scheduler, but is not an any scheduler value. The library's fibre group keeps both an any scheduler and an any turns with a flag for that reason, and core/fibre's task and hosted/thread's job have the identical entry, each with its own bridge.

Chosen: an any C converts implicitly to any P wherever P is a concept C builds on, directly or through others; the converted value keeps the same data pointer and takes P's part of the table, so nothing is erased twice and the pointee and its origin are unchanged. The fibre group holds one any scheduler, and asks for turns where it needs them. core/fibre's task is the one task concept, which hosted/thread uses for what it runs, with one bridge from a routine and a state. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: keeping the two fields and filing the conversion for a later language change; and keeping task and job apart because a thread is an execution context and a fibre is not (D446). Both were declined: the conversion is additive, and the two concepts' entries are the same.

Pinned by runtime/any-converts-to-parents, which converts an any along a chain of three concepts in a binding, an assignment, an argument, a result and a struct field, over two types whose providers answer differently, on every target the gate runs, and negative/any-converts-only-to-parents, which refuses the conversion to a child's any and to a sibling's; how the table carries the parent's part is D1968. The one task concept and the group's one scheduler are D2049.

D1968 — An erased table names its parents' tables after its entries

The tour said at [1370], as D1949 decided, that an any C converts to any P for a concept P that C builds on, keeping its data pointer and taking P's part of the table. It did not say where that part is. D145's erased table flattens C's entries and every parent's into one run, each concept once, so a parent's entries sit inside it only when nothing is shared; with two parents that build on one concept, the second parent's run has a hole.

Chosen: after its entries, an erased table of C has one cell for each concept C builds on, directly or through others: depth first, the represented type's constraint before the parents in written order, each concept once. The cell holds the address of the same type's erased table of that concept, which a conversion loads in place of the pair's table word, one load whatever the depth. The cells are made only for a concept some any in the program is converted from, so a program that converts nothing has the tables it had; the tables they name are then built too, and every table of that concept has them. A conversion where the program builds no table of C traps as D377's erased call does, since no value can reach it. The IR's Evidence_Parent names the cell by position, and a backend turns the position into an offset; the verifier holds each cell to an erased table of the same represented type, and each read to a cell its table has.

The alternatives: laying each parent's flattened run out whole inside the child's table so that a conversion offsets the table pointer, which duplicates entries along every shared ancestor and lets an any P point into the middle of another concept's table, which D374's pruning and the debugger read as a table start; and a conversion routine per pair of concepts, a call where a load does. Both were declined.

Pinned by runtime/any-converts-to-parents, whose shape table names both of its ancestors and whose conversions read the cells, and the verifier's case for malformed parent cells.

D2049 — One bridge makes a task for fibres and threads, and a fibre group holds one scheduler

The tour said at [1370], as D1949 decided, that core/fibre's task is the one task concept, which hosted/thread uses with one bridge from a routine and a state, and that the fibre group holds one any scheduler. It did not say how one bridge serves a group whose fibres share one execution context and a group whose threads run in parallel, which keep a task's first failure differently.

Chosen: core/fibre declares bridge(state_type), a public struct of the routine, the state, the address of the group's record of its first failure and a keeper, a routine (kept: usize, problem: failure.reason) -> none that the bridge calls with the failure; it conforms to task. The fibre group's keeper writes the ledger when nothing has failed before, and the thread group's takes an atomic claim first, as its own bridge did, so core/fibre imports no core/atomic, whose read-modify-write Cortex-M0 lacks (D510). hosted/thread imports core/fibre, which adds no byte to an image that starts no fibre group (D1950), and its private job concept, its launch and its launch_run leave; a slot holds an any fibre.task. The fibre group keeps one any scheduler: turns_over stores the any turns it is given as the scheduler it converts to, so the flag saying which of two fields ran, the second field and the unused provider that filled it leave. Nothing a program wrote changes: task and both groups' routines keep their signatures, and the bridge is new.

The alternatives: one bridge whose keeper is always the atomic claim, which Cortex-M0 cannot run; the keeper as a concept, which makes the bridge generic over a second type for one call; and keeping launch in both modules, each conforming to task, which keeps two bridges of one shape. All were declined.

Pinned by the fibre and thread fixtures, which run unchanged: runtime/fibre-join-first-failure, runtime/fibre-turns-interleave, runtime/thread-join-first-failure and runtime/example-primes-on-threads among them, on every target the gate runs, and the freestanding lane's fibre images on Cortex-M0.

D1957 — The library declares iterable, and its containers conform

The tour said at [1320] that for x in s over a program's own type uses the iterable concept, which the compiler recognises by name; no library module declares it, no library type conforms, and a container hands out a slice for for to walk. D1652 removed try for, so nothing recognises fallible_iterable, which [1320] still shows.

Chosen: a core module declares iterable, and for uses that declaration; a container whose items are not one slice, a map or a tree, conforms, and one that is a slice keeps handing it out. [1320] names the module, and fallible_iterable leaves the tour: a fallible source is walked by D1652's while. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: a program declaring its own iterable, the tour saying so; and removing the protocol, for walking slices and ranges only. Both were declined.

Pinned by what D2048 names: runtime/for-over-map-and-tree, negative/for-takes-only-core-iter-iterable and the traversal fixtures that import core/iter. The breaking list names the forms it changes.

D2048 — core/iter declares iterable, for takes no other, and the map and the tree conform

The tour said at [1320], as D1957 decided, that a core module declares iterable and for uses it, and that a map and a tree conform. It named neither the module, nor what a program's own concept of that name becomes, nor what each container hands out.

Chosen: the module is core/iter, which declares iterable and nothing else, so a type conforms to iter.iterable and the map and the tree import it without bringing anything more. The checker takes only that declaration: a program's own concept named iterable is an ordinary concept, and a for over a type that conforms to it and not to iter.iterable is L0348 naming core/iter. The map conforms with its cursor as the cursor, holding the slot of the entry handed out next, and map.entry(key, item) as the item, a copy of the key and the item, walking the live entries in insertion order as next_entry does. The tree conforms with an ordinal as the cursor and tree.node_id as the item, walking every published node in the order the nodes were added, which puts a branch after its children; a node is not the item, because it holds its name borrowed from the tree and [1320]'s item returns no view. The contract check of the concept's shape stays, for the library's own declaration. The checker's refusal of two concepts named iterable leaves, since one module declares it.

The alternatives: declaring the concept in core/mem, which every container imports already, or in core/cmp, beside the other evidence concepts, both of which give a module a concept outside its subject; core/iterable, which makes the conformance iterable.iterable; and accepting a program's own concept beside the library's, which keeps two identities and the ambiguity D180 refused. All were declined. The module's name is an implementation choice under D1957's answer, made without a question.

Pinned by runtime/for-over-map-and-tree, which walks a map with a removed entry and a tree of two leaves and a branch on every hosted product target, an image past Cortex-M0's 32 KiB profile, and runtime/library-shared-iter, which conforms to iter.iterable and walks it on Cortex-M0 and RV32; negative/for-takes-only-core-iter-iterable and negative/r491-iterable-contract, a program's own concept refused naming core/iter; and the traversal fixtures, runtime/for-iterable-evidence-traversal among them, which conform to iter.iterable.

D1958 — zeroable stays a bound a program writes

The tour said at [0550] that zeroable is the one compiler-owned concept, which generic code requires where it needs a zero image, as [1350]'s cleared does. The simplification left it for the library review to decide with the generic containers (D1653); the library writes it nowhere since core/spill replaced core/small.

Chosen: it stays as [0550] says. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: removing it as a written bound, the compiler keeping its knowledge of zero images ([0540]) to itself. Declined: it is the honest way for a container that needs a filler to say so.

Pinned by positive/compiler-zeroable-conformances, positive/r490-distinct-zeroable, negative/nonzeroable-constraint, negative/nonzeroable-zero-length-constraint and negative/r490-atom-aggregate-zeroable, which stay.

D1889 — A type argument written as an expression is a fixed actual

The discrepancy: the parser read a type application's arguments as types or integer literals, so buf(sizeof u32) and buf(n * 2) did not parse whatever D1663 allowed, and compiler.word_size read as a qualified type name, which configuration never records as a fact.

Chosen: an argument that begins with -, sizeof, alignof or compiler., or holds + - * / % outside its brackets, is parsed as an expression; any other is a type, and a lone name read so is checked as the fixed formal or module integer it names when it names one. Configuration records a fact written in a type argument as it records one in an array length.

The alternatives: parsing every argument as an expression and reinterpreting types, which would make ptr t and [n]t expressions. Declined.

Pinned by positive/fixed-actual-folds-as-a-length.

D137 — A parameterized struct application is one canonical nominal instance

The tour said that ordinary structs are nominal [0710], that type and fixed parameters are compile-time substitution [1290] [1350], and that target layout is not host type identity [0750]. It did not say whether two applications of one struct declaration are the same nominal type, whether an unused formal participates, or where the instantiated field shape lives.

Chosen: a fully applied struct interns one checker-owned identity keyed by the source template declaration and the complete ordered tuple of normalized actuals. Aliases are erased before they enter the tuple. Scalar identities, structural atom sets, exact fixed arrays including nominal elements, nominal instances, structural function signatures and mathematical fixed magnitudes are the only key forms. Equal keys reuse one identity. A different actual or template remains a different nominal type even when every field, byte of layout, and used formal is otherwise equal. Identity is target-independent. Normalizing a nominal identity for a function-signature part or type-actual key does not request that identity's layout. When a formal carrying that descriptor is later substituted into a by-value field, payload or nominal array element, the checker reconstructs the binding from the interned template and actual tuple and materializes the required layout then. This promotion is recursive through nested nominal and nominal-array actuals, checks D18 at that value use, and treats a currently building identity as L0313. It applies even to an element of a zero-length array.

The checker substitutes the tuple while walking the source body and builds one layout for that canonical instance against the selected target when a value site requires it. Scalar, function, fixed-array, ordinary-child and existing variant payload shapes use the same field descriptors and contextual value paths as a nonparameterized struct. The body and formal nodes receive no instantiated answer, no synthetic declaration is created, and the template and its formals create no IR item, slot or ABI position. Lowering maps only concrete nominal identities and their instantiated neutral shape trees.

Every template is first walked symbolically. An identity-only nonconcrete struct or nominal-array actual retains a transient obligation containing its source template and symbolic binding run rather than collapsing to an unqualified unknown. If another template substitutes that obligation at a by-value position, the checker follows it through any number of used-formal wrappers; reaching an active nominal obligation is L0313. The obligation is local to declaration validation: it interns no guessed actual, writes no AST metadata and disappears with the checking run. A plain unused formal, phantom actual or function-signature mention never promotes it. Free names, decidable fixed-formal and field-shape errors, duplicate fields and cases, and unconditional by-value recursion are therefore rejected even when no instance is requested. A truly actual-dependent failure is primary at each application and relates the field or expression in the template. An invalid layout state stores no application provenance. The checking run caches the dependent diagnostics from the first failed layout attempt for a canonical key and gives each repeated use its own primary at that application's source span without walking the template body again. An attempt with no application provenance may be retried when a later application needs a site-specific primary. The key retains one identity and tuple. Fixed actuals remain integer literals or forwarded fixed formals. Parameterized atom unions are enabled under D135's structural-set and alias-substitution rules; its later hosted-parity audit superseded this decision's earlier deferral. D138 and D139 separately define generic routine instances and fixed conditional module declarations.

An alias expansion that reaches no type remains L0307. A nominal field, nominal array element or variant payload that would require a finite instance to contain itself by value is instead L0313, whether the cycle crosses aliases or templates. Function-signature references do not form such a value-layout edge: a function field is the already enabled one-usize carrier. This applies to parameter and result positions, recursively nested function signatures, and ordinary nonparameterized structs as well as parameterized instances. An ordinary signature lookup may therefore take the canonical empty-actual nominal identity before that struct's layout is ready and follows ordinary alias chains without settling them by value. Mutually recursive ordinary structs connected only by such signature references each have a finite pointer-carrier layout, independent of declaration order. When a declared or anonymous routine's multiple named results form D128's caller-owned aggregate, its direct result parts materialize before their target placement is measured; that ABI use does not promote a nested callback signature into a by-value edge. A failed application remains cached at its syntax node, so one written application has one primary while a second written application receives the canonical failure's diagnostic with its own primary. A zero-length nominal array at a field or payload still validates its element identity and is not an escape from the recursion rule.

Why the complete tuple: dropping an unused actual makes adding the first field that uses it silently change existing type identity. Structuralizing the instantiated body makes two declarations equal contrary to [0710]. Putting layout in the key makes a source type change with the selected target. Mutating the AST or synthesizing declarations makes one application overwrite another or leak compile-time binders into runtime representation. All were declined.

Pinned by the checking, lowering and verifier public-seam cases; positive/parameterized-struct-basic, positive/parameterized-struct-instances, positive/parameterized-struct-identity-only, positive/parameterized-struct-lazy-value-layout; positive/ordinary-struct-function-signature-recursion, positive/ordinary-struct-function-signature-alias-first, positive/ordinary-struct-function-signature-alias-last, the two positive/ordinary-struct-mutual-function-signatures-* order fixtures, and positive/multiple-named-generic-nominal-results; the negative/parameterized-struct-* (including the unused indirect, mutual and multi-wrapper recursion cases) and negative/nominal-struct-recursive-layout fixtures; the generated IR and diagnostic catalogue; and runtime/parameterized-struct-values and runtime/parameterized-struct-lazy-value-layout on Linux x86-64.

D138 — Direct generic calls deduce one checker-owned routine instance

The tour said that type and fixed parameters are compile-time-only [1290], that a call supplies runtime arguments [1920], and that specialization is an implementation choice rather than generic meaning [1350]. It did not say where facts about two concrete uses of one routine body live or which context may participate in deduction.

Chosen: a generic routine template has no standalone function value or IR item. A direct call first synthesizes each runtime argument without an expected parameter type, except an untyped numeric literal, which D372 types from its parameter after the others; an argument that needs a context and fills a parameter whose written type names no open formal, which D419 leaves to the instance's ordinary call check; and a named construction, whose written type D420 matches. The checker then recursively unifies each written runtime parameter pattern with that independently synthesized normalized descriptor. Scalar and atom-set constants agree exactly. A direct type formal binds the complete scalar, structural atom-set, fixed-array, nominal, pointer/slice reference, any-concept or concrete function-signature descriptor; every repeat must agree exactly.

A pointer or slice pattern first matches its reference kind and ordinary view, then recursively matches its complete referent descriptor. When that written pattern is the outer runtime parameter type, a mutable argument may satisfy a read-only pointer or slice pattern under [0440]; the specialized parameter remains read-only. Permission in nested patterns still matches exactly, and a read-only argument never satisfies a mutable pattern. Deduction does not treat a text view or pointer union as an ordinary reference. Referent identity includes nested references, nominal identity, fixed-array extent, function signature and erased concept as applicable. A direct formal or stored nominal actual containing any C agrees only with that same C.

A fixed-array pattern recursively matches its exact element descriptor and bound. A direct fixed formal in the bound binds the argument length. A computed D136 bound never contributes an equation to solve: the checker defers it until another direct occurrence or an explicit static tuple has bound every formal it references, then folds and compares the result exactly. A formal that occurs only inside n * 2 or another computed expression remains undeduced. Nominal elements participate by identity. Pointer and slice elements retain their permission and complete referent descriptor; an any C element retains C. Fixed-array referents, generic actuals, results and stored fields carry the same immediate element shape. A shared target size never makes two element types equal; D178 and D179's existing stored-shape paths also apply through these positions.

A parameterized nominal pattern requires an argument instance interned from the same source template, then recursively matches every stored normalized actual in declaration order. This includes phantom type and fixed actuals that do not appear in the struct body. Ordinary aliases erase consistently; a parameterized alias pattern is expanded symbolically and its result is unified without inventing an actual. A function-signature pattern recursively matches parameter and result counts and types plus its infallible, concrete or still-inferred error form; parameter and result labels do not participate [1000]. A nested type formal may therefore bind from a nominal actual tuple, fixed-array element, function parameter, function result, reference referent or concrete function error set.

Validation of a parameterized struct leaves a field written ptr T or ptr mut T symbolic when T is still a type formal. Each concrete application then constructs the ordinary complete pointer descriptor, retaining the exact referent descriptor and permission; scalar, pointer and any C actuals are not collapsed into one placeholder reference type.

Every static formal must be bound. Deduction uses no return context, conversion, constraint search, arithmetic inversion or user-code execution. A call either leaves all static formals for deduction or names every type/fixed formal in its one named call list; a partial explicit tuple is refused. A saturated explicit static tuple bypasses binding and runs the same recursive walk as exact validation. Type actuals are resolved as type views, while a fixed actual is an integer literal or a forwarded caller fixed formal and must fit its substituted declared integer type. Fixed ranges are validated after the complete tuple is known. After deduction or explicit saturation, substitution builds the concrete runtime signature and ordinary call checking applies that signature. A generic routine may write a concrete declared atom error set; substitution carries it on the instance signature and bounds callers exactly like an ordinary declared set. For private ! ..., the template itself still has no signature. Each concrete routine identity instead publishes an initially inferred signature, then contributes its directly failed atoms and its instance-view call targets to the whole-program least fixed point. Calls from or to ordinary routines and same- or different-key generic instances use one graph; direct and mutual same-key recursion therefore close without syntax recursion. try, recovery and inference all resolve a call through the active view's recorded instance target rather than the deliberately absent template signature. Equal keys share one inferred set, while unequal keys retain separate signatures and may settle to different sets. An empty result becomes infallible; a nonempty result becomes a concrete atom set before body checking resumes and before lowering. Call recovery, try, fail, defer, and undo then use only that finalized ordinary descriptor. D215 closes error inference and generic discovery together: a recovered atom set and its aliases become deduction inputs only after their component's effects are complete. New instances may expose further components; the final inventory is frozen only after this frontier closes. A circular key/effect dependency that cannot supply a complete actual is L0340, without a provisional atom set or instance key.

The checker interns an opaque routine identity from the source template and complete normalized actual tuple. Equal keys reuse one identity; unequal keys remain distinct. The instance publishes its substituted signature before its body is checked, so recursion at the same key is legal. Re-entering the same active template with a different tuple is refused as non-finite expansion. Each instance owns a layered fact view keyed by that identity and the original source declaration or node. An unwritten fact falls back to module and nongeneric facts, while writes remain in that one view; no instance answer is put on syntax and no AST is cloned or synthesized. Template defects independent of actuals, including an impossible literal operand, are checked without a guessed instance; dependent operations wait for a concrete view.

Lowering selects that same view and creates one deterministic local routine item per ready identity in checker interning order. A generic call records its target identity in its caller's view, so nested and recursive calls remain stable. The template, type formals and fixed formals create no item, slot, runtime signature part or ABI position. This executable increment carries every enabled direct-formal descriptor through routine parameters, results, locals and calls, including atom sets, function signatures and nominal aggregate transport/layout. Recursive structural deduction changes no descriptor, transport, layout or ABI rule: static arguments have no runtime synthesis, flow fact, cleanup or ABI position, and lowering maps only written runtime arguments to runtime formals. A fixed formal used as an expression in the concrete body has its declared integer type and lowers to the instance actual as a target-neutral constant; it is not a slot or hidden parameter. A direct type formal still cannot bind a function descriptor whose error graph is currently inferred, because it is not yet a complete actual key. A generic template itself remains unavailable as a function value: only a direct call chooses the concrete instance signature.

Why an instance view: writing t = u8 on the template declaration or its nodes makes a later t = i32 call overwrite the first. Resetting shared tables around a recursive walk makes nested instances depend on traversal order. Cloning syntax invents declarations and provenance for a compile-time substitution. A checker-owned identity plus overlay avoids all three.

A runtime parameter written as an atom set that names no formal deduces nothing, so an atom argument widens into it as [0640] allows in an ordinary call; an atom set bound to a formal still matches exactly. This amendment came with net.shutdown(host, connection, net.sending), which was L0340, and is pinned by runtime/generic-atom-widening and negative/generic-atom-outside-set. D372 amends the literal and the lent array the same way.

Pinned by the checking public-seam case routine instance views keep source facts, the lowering case generic routines lower once per key, negative/generic-routine-repeated-deduction-conflict, negative/generic-routine-undeduced-formal, negative/generic-routine-infinite-expansion, negative/generic-inferred-error-unhandled, negative/generic-inferred-template-not-function-value, negative/generic-try-infallible-instance, negative/generic-routine-unused-unconditional-defect, negative/generic-computed-pattern-undeduced, negative/generic-explicit-computed-pattern-mismatch, negative/generic-structural-repeated-conflict, negative/generic-wrong-nominal-template, positive/generic-structural-deduction, positive/generic-zero-nominal-array-signatures, negative/generic-reference-field-permission-distinct, runtime/core-mem-raw-storage, and runtime/generic-identity-deduction, runtime/generic-fixed-array-deduction, runtime/generic-direct-descriptor-deduction, runtime/generic-reference-results, runtime/generic-reference-carriers, runtime/generic-any-nominal-transport, negative/generic-any-nominal-deduction-conflict, negative/generic-reference-nested-permission, negative/generic-reference-referent-identity, negative/generic-reference-array-extent, negative/generic-reference-pattern-permission, negative/generic-reference-result-frame, negative/generic-reference-result-wrong-from, negative/generic-reference-result-immutable, negative/generic-reference-result-escaping, negative/generic-reference-carrier-live-view, negative/generic-any-carrier-frame-escape, negative/generic-slice-field-permission, negative/generic-slice-field-wrong-from, runtime/generic-structural-deduction, runtime/generic-zero-nominal-array-signatures, runtime/generic-declared-errors, runtime/generic-routine-inferred-errors, runtime/generic-try-effective-signature, runtime/generic-same-key-recursion, runtime/r420-small-vector, and runtime/diagnostic-loggers-dispatch on Linux x86-64. The malformed-error verifier case uses a generic-instance item to pin that only the finalized concrete signature and ordinary failure opcode reach neutral IR.

D1100 — A type parameter applied to a value converts to the instance's type

Amended by D1661. There is no range subtype among the actual types, so no conversion through a type parameter carries a range check of its own; the rest stands.

The tour said that a conversion is a type applied to a value [0310], [0700], and that a generic routine takes its type as an ordinary parameter [1290]. It did not say whether the parameter may stand where a conversion names its type: t(0) or t(x) in a routine whose t is a type parameter. The checker asked the formal's declaration for a value it does not have, and an instantiated routine that wrote the form ended in an internal compiler defect.

Chosen: in a generic routine, a type parameter applied to exactly one value is a conversion to the actual type of the instance being checked, and means what that type written in its place means. D266 already lets a conversion's head be a type as written; the parameter is that head, and the instance supplies what it writes. Every rule is therefore the actual type's own: which source types it converts from, the range check and its trap, a known value folded and refused when it does not fit, a distinct type converting only from its base and its base only from it, text to its bytes with the origin kept, and unchecked wrapping where it wraps a written conversion. A body is checked for each instance (D771), so an instance whose actual type has no conversion from the value is refused there, in the body, as every other instance-time refusal of a generic routine is; where no other refusal names it, the report says which type the parameter is in that instance. An instance that never converts what its type cannot is not refused for another instance's sake.

A type parameter still constructs nothing: applied with labels, t(a: 1), or to another count of values where its actual type is no scalar, it is L0301, "t is a type parameter, which converts one value and constructs nothing". A struct is built where its type is known.

A generic routine is always checked and lowered as an instance with its actuals known, so there is no path on which the conversion's type is unknown where it is lowered; an any C value dispatches entries and has no type parameter to apply.

The alternative was to refuse the form, which D1100 first chose: a type parameter names a type in a type position only, and a value takes its type through a typed binding, zero: t = 0, or a concept entry. Its reason was that one spelling is accepted for some actuals and refused for others with nothing in the signature saying which. It was declined by the maintainer: that is already true of every operator and every written conversion in a generic body, value + value and i64(value) among them, since the body is checked per instance, and the refusal left numeric generic code no way to convert except through a concept written for it. Admitting construction, t(a: 1), as well was declined because a construction names its fields, which no two actuals share.

Pinned by runtime/type-parameter-converts-a-value, runtime/type-parameter-conversion-traps and negative/type-parameter-conversion-refused.

D1101 — A generic signature's array bound is D136's, validated at the signature

The tour said that fixed parameters are compile-time values [1290] and D136 closed the expressions an array bound may hold, which D438 widened by an immutable module integer. D138 matches a call against a bound that computes with fixed formals only after another occurrence has bound them. That matching had its own evaluator, which knew literals, fixed formals, unary - and the five arithmetic operators and answered every other form with a silent mismatch. So [count << 1]u8 in a signature was reported nowhere and its call reached lowering unmatched, and [count * width]u8 with width a module integer, which D438 admits everywhere else, could not be called at all.

Chosen: a bound in a generic routine's signature is validated where the routine is declared, called or not, by D136's one evaluator with every fixed formal unknown, as a type template's bound is. A form D136 refuses is reported there once, and a call of that routine is not a second error. When a call evaluates a computed bound, whatever is not a fixed formal or arithmetic over them is folded by the same evaluator, so an immutable module integer counts in a signature's bound as it does in any other.

The alternative was to report the refused form at each call that fails to match, which leaves an uncalled routine's signature unchecked and repeats one mistake at every call. It was declined, as D136 declined it for a type template.

Pinned by negative/generic-signature-bound-operator and runtime/generic-bound-folds-a-module-integer.

D142 — Concepts and conformances are collected before constrained instantiation

The tour said that a concept is a named requirement bundle [1230], a conformance registers a type [1240], a leading binder quantifies a parameterized type [1250], the key is (type, concept, input types) [1270], and every collision is an error [1280]. It did not settle the enabled grammar, the scopes, how an uninstantiated parameterized collision is found, or where a constraint lookup is performed without already having a generic evidence table.

Chosen: concept and is are contextual words. A concept declaration carries one nonempty collected type-formal list, zero or more direct parent concept names, and an ordered run of named complete function signatures. A concept entry's error set is infallible or concrete, never inferred. A direct is concept_name may constrain a type formal in a type, routine, concept or conformance binder. The concept and conformance scopes collect their complete static binder before resolving any target, input or signature type.

A conformance carries an optional leading type/fixed binder, one target type, one direct concept name, and a labelled run. Labels supply every concept input formal after the represented type and every direct concept entry exactly once. The whole-program key is the normalized represented type, concept identity and ordered normalized input-type tuple; function labels are payload, not key. Concrete supplied functions have exactly the substituted concept signature. Composed concepts require separate conformances to every named parent; having the child never synthesizes a parent.

The program is the closed graph of modules reachable from the entry directory after first-matching ordered-root selection. Every conformance in that graph is collected whether used or public; unreachable directories and later root matches contribute nothing. A conformance declares no module name, so public on one is refused rather than changing registration visibility.

A parameterized conformance quantifies one complete nominal type family. Its target is that declaration fully applied to the binder in the same positional order and kind, with every binder used once. This closed family form covers the container conformances that forced [1250], avoids arithmetic inversion and specialization, and lets collection reject a second family for the same target template and concept even if no generic call requests an instance. A concrete exception under such a family is also a collision. Lookup substitutes the family binder, checks its own constraints, and interns the resulting concrete key. There is no search by return context, conversion, precedence, weak entry, or orphan rule.

Collection retains parameterized supplying functions and the concrete binder tuple selected by lookup. The generic evidence schema turns that retained selection into evidence and validates the substituted generic entry at that ABI boundary (D144); collection emits no table and adds no generic dispatch operation.

Why the family restriction: arbitrary overlapping type patterns require a general unification and specialization order the language has neither stated nor wanted. Silently checking only requested overlaps would contradict [1280]'s whole-program rule. One complete nominal family gives parameterized containers their required quantifier while keeping collision collection finite and independent of use.

The alternative: resolve concepts and conformances in declaration order, or infer a conformance from a type's shape. Order-dependent resolution makes a program's meaning depend on file layout; inference is the structural typing the tour declined at [1340].

Pinned by positive/concepts-and-conformances, positive/parameterized-conformance-lookup, negative/conformance-collision, negative/parameterized-conformance-collision, negative/constraint-not-satisfied, negative/conformance-entry-signature-mismatch, negative/composed-conformance-missing-parent, negative/signals-provider-without-turns, whose missing parent is named through its module, and negative/concept-composition-cycle, plus parser, resolution and checker register cases.

D143 — zeroable is one closed compiler concept family

The tour said that the compiler alone supplies zeroable conformances because only it knows bit patterns [0550], while [0540] separately distinguishes having a zero image from accepting the contextual word zeroed. It did not say whether zeroable needs a source declaration, whether users may add a missing entry, or how zero-length and nested enabled shapes enter the set.

Chosen: zeroable is the sole compiler concept identity and needs no source declaration. A source declaration cannot impersonate that identity, and every source conformance naming it is L0319: users can neither synthesize a false entry nor override a true one. Lookup supplies a conformance for every enabled scalar; for a fixed array exactly when its element is zeroable, even at length zero; and for a nominal aggregate exactly when its recursively active all-zero field and first-variant-case payload shape has a zero image. Atoms, functions, pointers and slices are outside the family. The algorithm is the same checker predicate that admits an all-zero aggregate image, so contextual zeroed and the generic concept cannot drift.

The set is closed and named. No source query enumerates it, no declaration is synthesized, and no reflection hook asks whether an arbitrary representation happens to be zero. A successful constrained lookup interns only the concrete semantic key for later evidence work.

The alternative: let a source declare its own zeroable conformance, or derive zeroability from sizeof alone. A declared conformance could claim a zero image a type does not have; a size says nothing about pointers, atoms or function values inside it.

Pinned by positive/compiler-zeroable-conformances, negative/nonzeroable-constraint, negative/nonzeroable-zero-length-constraint, negative/compiler-conformance-reserved, the checker register case, and the existing aggregate zero-image fixtures.

D144 — Evidence order is semantic and physical layout is target-derived

The tour said that generic code receives a table of concept functions and that the evidence also carries the represented type's size and alignment [1310]. It did not state table identity, member order, hidden-argument order, composition, the physical cell layout, or how the first backend may share code without making an x86 representation the semantic schema.

Chosen: one evidence identity realizes one concrete D142 conformance key: the normalized represented type, direct concept identity and ordered input-type tuple. Parameterized families materialize only concrete keys selected by lookup; an ordinary collected key may be emitted without waiting for a call. The target-neutral logical run is the represented type's size, its alignment, then every direct concept function in concept declaration order. Conformance labels select providers and never reorder that run. Parent concepts retain the separate conformances D142 requires rather than flattening their entries into a child table. The compiler zeroable conformance consequently has only the two layout members and synthesizes no source provider.

Size is the complete padded target-byte size of one represented value and alignment is that value's target-byte alignment. Both are runtime usize values. A direct function member retains its substituted concrete signature and names the ordinary provider routine or selected generic provider instance; its concrete error set uses D109's existing orthogonal call outcome. The semantic schema contains no byte offset, register, relocation spelling or host-sized integer.

Every physical member is one target pointer-width cell, and the table is aligned to the target pointer alignment. Therefore Linux x86-64 places size, alignment and the first function at offsets 0, 8 and 16, while synthetic-32 places them at 0, 4 and 8. A table with N direct functions occupies (N + 2) * pointer_bytes. Landin.Evidence owns semantic positions; Landin.Targets alone derives these offsets, extent and alignment.

A ready concrete generic instance retains a hidden evidence position only for a table read by a direct constrained member selection in its checked body. Constructing any uses a static erased table and does not select a hidden generic evidence parameter. Selection uses the instance fact view after checking; the compiler keeps the direct table and each distinct table in its represented-formal constraint/parent closure only when that body selects its position. Equal conformance identities belonging to different type formals remain separate positions if the body selects both; selecting only one formal retains only its position. Retained positions follow depth-first concept declaration order within each formal, then generic-formal order. A concrete call supplies exactly that run, even when the caller itself is generic. This preserves D142's separate parent conformances while making inherited entries reachable without flattening a child table. The existing caller-owned aggregate result address remains first, retained evidence pointers follow, and written runtime parameters remain after them in source signature order. A body with no entry selection has no hidden evidence positions. Conformance lookup and checking still require the full constraint closure, independent of this physical run. Static type and fixed formals still create no runtime position. Inside the active routine view, T.entry(...) loads the declaration-order function word from that hidden table and makes the ordinary verified indirect call. D221 requires that selected name to identify one declaration across the distinct closure; the table traversal order grants no name-resolution precedence. Size and alignment remain table members even where the current concrete view answers sizeof T or alignof T directly by resolving the formal through that routine instance's type actual. The node's complete concrete descriptor lives only in the active instance overlay. Later shared and any consumers therefore use the same semantic measurement and provider schema; D147 gives the erased consumer a flattened table view without changing these direct generic offsets.

The Linux baseline may alias two concrete generic symbols to one emitted body only when a bounded IR comparison proves their signatures, slots, operand graph and allowed operations have one physical meaning on that target. Evidence identity may differ because it arrives through the hidden parameter; signed arithmetic, aggregates, static table addresses and every unproved operation prevent folding. A failed sharing proof emits separate concrete bodies and cannot affect source correctness. This is baseline code folding, not the direct-call specialization policy.

The alternatives: putting function words first was viable, but makes the two representation facts every evidence consumer needs a variable-position suffix; the fixed prefix was chosen. Reordering by conformance labels would make source-equivalent labelled payloads ABI-different. Flattening parents would make a child ABI change when a separately registered parent changed. Encoding .quad or eight-byte offsets in IR would turn the first backend into the language definition. Calling providers directly from constrained generic bodies would leave a table that no executed path proved. All were declined.

Pinned by runtime/generic-evidence-indirect, runtime/generic-composed-evidence, runtime/generic-any-construction-evidence, runtime/generic-parameterized-evidence, runtime/allocator-vec-pressure, and negative/parameterized-conformance-entry-signature-mismatch; the target case evidence ordering and layout; the lowering case generic instances keep selected evidence, erased construction adds no hidden evidence, and shared conformance keeps selected formals; the backend case generic evidence is ordered indirect and shared; IR verifier evidence identity, entry and signature checks; and the recorded target and lowering artefacts.

D145 — any C has direct-concept identity and explicit pointer erasure

The tour said that any C is a copyable data-pointer/table pair [1370], that construction is explicit and takes its concept from context where it can [1380], and that calls select table entries [1390]. It did not state whether any is reserved, whether parents imply conversions, how an omitted context is selected, whether a value may be copied into the pair, or how concepts with additional input types are written.

Chosen: any becomes the thirty-fourth reserved kernel word. any C is a structural type whose identity is exactly the direct source Concept_Id of C; aliases preserve it, while parent composition creates no subtype or conversion. The enabled source form admits a concept with exactly its one represented type formal and an empty D142 input tuple. There is no implicit conversion either from a concrete value/pointer or between two any types. D1949 amends the parent rule: an any C converts to any P for a concept P that C builds on.

any(pointer) evaluates exactly one pointer expression and never copies the unknown-sized pointee. In a destination, argument or result context, that context supplies C and lookup selects the exact concrete D142 conformance key, materializing a parameterized family and generic provider when needed. Without a context, construction succeeds only when exactly one already collected source concept has an exact conformance for the pointer's referent; zero or multiple candidates require an explicit any C context. Compiler concepts do not participate. The construction node retains its concrete conformance solely so lowering can form a static table address; later copies carry no static concrete type fact. The enabled construction forms runtime storage; a module static image cannot yet carry the two relocations and is refused rather than fabricated. An erased call of a concept no conformance answers is D377's, which amends this decision, and an any C handed to a routine generic over a provider of C is D492's.

The alternatives: erasing a by-value object would either copy an unknown size or create hidden storage. Choosing the first conformance by declaration order would make unrelated declarations alter meaning. Treating a parent as an implicit conversion would add concept subtyping the language has never claimed. Encoding input tuples without source syntax would guess part of the D142 key. All were declined.

Pinned by runtime/any-inferred-construction, runtime/any-parameterized-provider, negative/any-source-not-pointer, negative/any-construction-needs-context, and negative/any-concept-identity-mismatch.

D377 — An erased call no value can reach is not refused

The tour said at [1380] that an any value is built explicitly from a pointer, and at [1390] that its calls go through the table. D145 made a construction select one exact conformance, and refused, as L0342, an erased call whose concept no conformance in the closed program answers: "this closed program has no concrete runtime table". No any of such a concept can be built, so no value can reach the call, yet the program was refused, with no remedy named. A library routine that takes any C from its caller, text.growing's allocator among them, made every program that imported its module but declared no conformance of C unbuildable, which kept the arena in core/mem.

Chosen: an erased call of a concept that no conformance in the closed program answers is checked against the entry as the concept writes it, its represented type standing for nothing in particular: D146 keeps that type in self alone, which the receiver supplies, so the arguments, results and error set the caller is held to do not depend on it. The program contains no table for the concept, and the call site traps as D232's unreachable does, before evaluating anything, so a receiver made outside the language, from raw storage through an untracked pointer [0470], stops there rather than calling through no table. Every refusal that guards a value stays: constructing an any C still needs exactly one conformance of its pointer's referent, and an entry that is not object safe, a name inherited twice or a name the concept lacks are refused whether or not a conformance exists.

The arena is then a provider of its own, core/arena, beside core/pool, core/region and core/fault: its handle is arena.arena, its state arena.space, made by arena.over or arena.over_unchecked, with arena.used and arena.reset. mem.aligned_offset, the arithmetic every bump provider needs, stays in core/mem. A program that imports core/text and no allocator builds, and the growing builder's doubling traps in it at a call no value reaches.

The alternatives: an empty table, which gives the call an address to load a function from and a backend a table no construction can name; a refusal naming its remedy, importing a provider the program does not use only to be buildable; refusing only reachable calls, which needs the whole-program call graph before checking, where today the check is local; and keeping the arena in core/mem, which hides the defect behind an import every program happens to make.

Pinned by runtime/erased-call-no-conformance-answers, runtime/erased-call-no-conformance-traps, negative/erased-construction-without-conformance, runtime/core-text-format-firmware, which imports core/text and no allocator, runtime/library-shared-arena and every other consumer of core/arena.

D146 — Erased entries have one object-safe self pointer

The tour said that a mutable entry writes self: ptr mut T, that no extra permission marker belongs in the pair [1370], and that dispatch inserts the data pointer first [1390]. It did not bound other occurrences of hidden T, say whether binding mutability gates a call, settle inherited-name collisions, or state how origin analysis sees the pair.

Chosen: every entry exposed by the direct concept's distinct finite represented-formal-constraint/parent closure must have first runtime input parameter named self, of exact direct type ptr T or ptr mut T, where T is that entry's concept's represented formal. D289 admits a third form, self: T taken by value when the conformance's T is a record, which dispatch passes as that record's address carrier and which asks no mutable permission. inout, sink, ptr ptr T and a parameterized referent that merely contains T are not that receiver ABI. Hidden T may occur nowhere in another runtime parameter or result: a caller that knows only any C has no source type with which to supply or receive it. The concrete provider keeps that substituted ordinary signature. value.entry is only the immediate callee operation; the two-word pair has no bound-method closure representation, so the selection cannot be stored as a standalone function value. An entry name must be unique across the closure when it is selected; an inherited collision is diagnosed rather than receiving source order precedence.

Construction requires its pointer permission to satisfy every exposed self: a read-only pointer cannot create a capability whose table includes mutable self. Once created, the pair needs no permission bit. Binding mutability says whether the two pair words may be replaced; it does not revoke write authority already carried by a valid mutable data pointer, just as an immutable binding may hold a ptr mut T.

The pair is reference-bearing for local origin/escape analysis. Construction copies the complete origin fact of its pointer operand; copies, aggregate storage, control joins, arguments and results carry that fact unchanged or through the existing conservative join. A dynamic call maps implicit formal one to the pair receiver and written argument one to formal two, so escaping, from self, borrow and return checks reuse the ordinary call rules. An integer- created untracked pointer remains untracked rather than regaining evidence.

The alternatives: storing a mutable bit would make the promised pair a third semantic field or give one any C two runtime types. Requiring a mutable pair binding to call a mutable entry would conflate replacement of the pair with authority already inside it. Calling an entry that mentions hidden T elsewhere based on one arbitrary conformance's signature would make another conformance ABI-incompatible. All were declined.

Pinned by runtime/any-heterogeneous-dispatch, runtime/any-return-origin, negative/any-readonly-source-for-mutable-entry, negative/any-entry-not-object-safe, negative/any-entry-not-bound-value, negative/any-self-not-exact, negative/any-self-convention, and negative/any-frame-origin-escape.

D147 — An any pair points at a flattened dispatch table

The tour said that the pair is two words [1370], that calls go through its table with data first [1390], and that erased and generic evidence are one semantic mechanism [1690]. D144 deliberately kept parent conformance tables separate and fixed direct table member offsets, so it did not say how one erased table pointer reaches inherited entries.

Chosen: the target-neutral pair order is data pointer then table pointer. Both are target pointer-width cells, the pair aligns to pointer alignment, and its extent is twice pointer width: data/table offsets are 0/8 and size/alignment 16/8 on Linux x86-64, and 0/4 with 8/4 on synthetic-32. The pair is transported by the existing shaped-value/caller-owned-result ABI and may be copied whole or stored as an aggregate field; neither word is a source-selectable field and zeroed cannot construct it. After D145/D146 checking, target-neutral IR may use the same private two-usize shaped carrier as a slice uses physically, just as it erases a checked pointer to one usize; that carrier creates no source array/index operation, while evidence descriptors and verifier checks still own every table function position and signature.

A concrete conformance used by any receives a distinct erased evidence identity. Its table repeats D144's size/alignment prefix and then flattens object-safe provider function words: direct concept entries first, followed depth-first by each distinct represented-formal constraint and named parent in declaration order. When the represented shape and ordered provider words match the adjacent direct table, both identities label the same physical cells; this includes a parentless conformance. Otherwise the erased table occupies separate cells. The parent conformance identities and their D144 direct tables remain separate; additional flattened entries repeat relocations rather than flattening semantic conformance identity. Consequently D144's generic table offsets remain unchanged; a generic instance's hidden arguments follow its selected evidence run. An inherited call uses its flattened semantic position.

Construction evaluates and stores the data pointer, then stores the selected static flattened-table address. Dispatch loads the pair's table, loads the verified function position, loads the data pointer, and makes the ordinary indirect call with data as runtime argument one and written arguments after it. Concrete provider signatures may differ in the referent identity of self, but D146 proves that this erased position is uniformly one pointer carrier, a record taken by value travelling as its address carrier (D289), and that every remaining parameter/result has one non-hidden source identity.

The alternatives: adding all parent table pointers to the value would break the two-word representation. Changing D144's direct table suffix would move existing generic ABI positions. Walking parent links would add links and loads while still needing an erased receiver rule. A flattened erased table keeps those concerns separate and was chosen.

Pinned by runtime/any-heterogeneous-dispatch, runtime/any-composed-dispatch, runtime/any-aggregate-storage, the target case evidence ordering and layout, the backend case any dispatch uses a flattened real table, the existing evidence verifier checks, and the generated target/lowering artefacts.

D215 — Error-dependent generic discovery closes before inventory freeze

The tour said that private inferred errors close over callees [0960] and that generic calls deduce their type from their arguments [1300]. D138 requires complete normalized instance keys. The inherited implementation nevertheless froze its signature inventory before the recovered error's type could discover an ordinary generic call. The hosted-parity audit reproduced the resulting compiler defect on the accepted derived hosted application without changing the program's inferred error spelling.

Chosen: error inference and generic discovery advance together. A recovery binding has the finalized complete set of its callee; an inferred local alias retains that type, and neither an unknown type nor a provisional set is cached as its answer. The checker closes effect components whose dependencies are known, then resumes dependent discovery in each caller's own instance view. Equal complete sets share a key; unequal sets retain separate instances. Ordinary and mutual recursive error components, same-key generic recursion, nested recovery, erased-provider discovery and traversal-header deduction use this same process. An undecided local alias is followed to its initializer's effect edge, including inside a recursive component; it need not first be demanded by a generic actual. Contextual erased-provider selection waits for the nominal actual reached through the same initializer dependency. Replayed recovery facts retain the caller's view without issuing an already finalized handler's diagnostic again. Deferred discovery retains its template-expansion ancestry so D138's non-finite different-key expansion refusal cannot be bypassed by recovery.

A circular key/effect dependency is refused with L0340 only after the available inference and discovery frontier stops advancing: completing a generic actual would require the inferred effects of the unresolved instance selected by that actual. The report names the deduction site and the generic declaration. This is the same complete-key boundary as D138's existing refusal of a still-inferred function descriptor as a direct type actual; it does not reject ordinary error recursion or recursive recovery into an infallible generic observer.

The alternatives: guessing an atom set makes an intermediate descriptor part of an instance identity; suppressing the inventory assertion conceals stale graph and cache state; requiring explicit errors everywhere removes an ordinary inferred composition. All are declined. General symbolic evaluation of a generic body to infer its own incomplete key is not part of deduction. Finalized concrete signatures remain the only error representation reaching verified IR, and the final signature-count assertion remains in place.

Pinned by runtime/r490-generic-inferred-recovery, runtime/r490-generic-recovery-frontier, runtime/r490-generic-alias-rethrow, runtime/r490-generic-recursive-alias, runtime/r490-generic-recovery-alias-chains, runtime/r490-generic-erased-recovery, runtime/r490-generic-erased-recovery-views, negative/r480-nested-infallible-recovery, runtime/r480-concrete-error-deduction, negative/r490-generic-error-key-cycle, negative/r490-generic-error-key-cycle-reordered, negative/r490-generic-error-key-cycle-nested, negative/r490-generic-inferred-function-actual, negative/r490-generic-recovery-conflict, negative/r490-inferred-recovery-immutable, negative/r490-recovery-expanding-generic and the checking case recovery deduction interns final sets.

D295 — try of a callee whose error set is inferred waits for the set

The tour said at [0960] that try propagates a call's declared failure, and a call that cannot fail has none to propagate, which L0329 refuses. A callee written ! ... has its set inferred; written as the argument of a generic call, the argument is synthesized while the instance is chosen, before the fixed point has solved the callee's set, and an unsolved set looked like an empty one.

Chosen: a try whose callee's set is still being inferred is asked again once every set is final, and refused then only if the solved set is empty.

The alternatives: solving every inferred set before any generic argument is synthesized, which D215's discovery order does not allow because a generic instance can add to a set; and treating an unsolved set as able to fail, which would accept try of a callee that turns out infallible.

Pinned by runtime/try-inferred-in-generic-argument and negative/try-infallible-inferred-in-generic-argument.

D221 — A static concept entry has one declaring concept

The tour said that composed concepts retain separate evidence tables and that static selection reaches their entries [1310]. D144 specified table order; D146 required unique selected names for erased dispatch. Neither stated whether static selection used that same uniqueness rule. The checker chose the first matching parent, so reordering parents could change the selected provider.

Chosen: [1920] requires a selected static entry name to have one declaration in the direct concept's distinct represented-formal-constraint/parent closure. A direct child entry does not override an inherited entry. Two distinct concepts remain distinct declarations even if their signatures or providers agree. A shared ancestor reached through a diamond is one declaring concept and remains unambiguous. The collision matters when the entry is selected; declaring or conforming to a closure whose colliding entry is unused remains legal.

This is a lookup rule. It changes neither D144's separate parent tables and physical entry order nor D146/D147's erased receiver and flattened-table rules. Prototype 3's allocator and composed map concepts retain their uniquely named entries, as do prototype 2's diagnostic and prototype 4's world capabilities.

The alternatives: declaration-order precedence would make a parent reorder select a different operation. Treating a direct entry as an override would add an unstated override mechanism. Rejecting the entire concept closure would forbid programs that never select its colliding name. All are declined; the selection reports L0341 instead of choosing a provider.

Pinned by negative/r491-static-entry-collision, positive/r491-static-entry-diamond and small checker controls for parent order, represented constraints, direct/inherited collisions, distinct names and unused colliding closures. runtime/generic-composed-evidence retains the independent execution obligation for the unchanged parent-table ABI.

D289 — An erased entry may take a record self by value

The tour said at [1390] that dispatch inserts the data pointer as the first argument, and D146 required every erased entry's first parameter to be exactly self: ptr t or self: ptr mut t. A handle is passed by value (D288), so every entry of the allocator and I/O concepts would have been refused behind any, or each provider would have needed a pointer-receiver twin of every entry.

Chosen: an entry whose first parameter is self: t, taken by value, is object-safe when the conformance's t is a record. Dispatch passes the pair's data pointer as the record's address carrier, the one D94 gives a by-value aggregate argument, and the callee copies the handle from it, so the provider changes state only through the pointers the handle holds. A scalar t taken by value has no such carrier and is L0342. A by-value entry writes nothing through the pair, so it asks no mutable permission: a read-only pointer builds the any, and any(addr host) over an immutable binding is accepted, while D146's construction rule still holds for a ptr mut t entry. The pair still erases a pointer, never a value (D145), so any(host) of the handle itself is L0342. Hidden t still appears nowhere else in the entry, the pair carries the origin of its pointer operand as D146 says, and a result lent from self keeps the erased value's origin. With this, any mem.allocator and the four I/O concepts are object-safe over a record provider.

The alternatives: pointer receivers on the handle types, which contradict the by-value entries a generic caller uses; compiler-generated thunks that load the handle and call a by-value provider, a second calling path for one entry; and an adapter type per concept, which gives every provider two conformances. All are declined.

Pinned by runtime/any-by-value-self, negative/any-self-by-value-scalar, negative/core-io-world-readonly-receiver, runtime/io-handle-beside-erased-view and runtime/diagnostic-loggers-dispatch.

D492 — An any C is a provider of C and of the concepts C refines

The tour said at [1370] that any C holds a value of some type that satisfies C, and at [1290] that every constrained type actual has one whole-program conformance. D145 gave any C the identity of C alone, with no conversion to a parent's any, and nothing conformed any C to anything, so a routine generic over a provider refused an erased capability as L0318. Prototype 4's io.lines_over(network, ...) over an any net.network, prototype 5's session and [1660]'s roots handed on assumed it was accepted; a program wrote an adapter that held the any and forwarded each entry, as io.writer_of does for a world.

Chosen: an any C is a provider of C and of every concept C's erased table flattens (D147): its represented formal's constraint and its parents, transitively, compiler concepts excepted. The conformance is the compiler's, interned in the whole-program register with the key (concept, any C) when a constraint first asks for it, and a program that declares one is refused as L0319, as one declaring a zeroable conformance is. It provides no other concept, not even one every provider of C happens to conform to: that is L0318, whose note says to erase the provider as an any of the wanted concept where it is made. A conformance a program declares for any C to a concept outside that closure stays the program's.

The conformance has no provider routines and no table. In an instance whose type formal stands for any C, a selection t.entry(first, ...) is an erased call through its first argument: D146 makes self an entry's first parameter, so with t the pair it is self: any C, the pair itself, or self: ptr any C or ptr mut any C, a pointer to it, read when the call is made, as a provider called through a table would read it. The call dispatches through C's flattened erased table at the entry's flattened position, described by the first conformance of C as an erased call's own dispatch is, and is answered late (D377) when C has none yet; a concept no conformance answers traps there as D377 says. No hidden table is passed for the formal, so its selections reach no direct table (D484). The lowering, the IR, the verifier and every backend see the erased call they already had.

Permission and origin are the pair's own, as a value's. A ptr mut provider parameter wants a writable pointer to the pair, so the address of an immutable any binding is refused as L0340, whatever write authority its data pointer carries (D146): writing through that pointer may replace the pair. A result from host carries the pair's origin (D146), so a line reader over an erased network made from a local does not outlive its frame. An entry that is not object-safe is refused where it is selected, as an erased call's is.

Optimization is honest by construction (D211): the call is erased, never an evidence call, so dispatch specialization never makes it direct, and a build report lists it in left_indirect as a call through any. An instance at any C is one instance whichever provider the value holds.

An any C is already its own provider, so it is not erased again: any(pointer) whose pointee is an any is refused as L0318. A pair over a pair would dispatch twice through two tables, and an any P made from a pointer to an any C, P a parent of C, would be the conversion D145 declines.

The alternatives: compiler-generated forwarding routines filling a direct table per concept, which give every backend, the debugger and the build report routines with no source and add a second calling path; an adapter per concept in the library, which every consumer of a new concept repeats; converting any C to any P, which D145 declined; letting a program declare the forwarding conformance, two forms for one meaning and a forwarder that may dispatch elsewhere; and refusing the generic actual, as L0318 did, which left the sketches unwritable. All are declined.

Pinned by runtime/any-generic-provider-entries, runtime/any-generic-provider-network, runtime/any-generic-provider-world, negative/any-provider-declared-conformance, negative/any-provider-unrelated-concept, negative/any-provider-pair-permission, negative/any-provider-erased-again, positive/any-provider-without-main, where a program with no main keeps every table but this conformance's, and examples/derived_server's session, which hands its erased network to the line reader and the buffered writer.

D372 — A generic call types a literal from its parameter and lends an array

The discrepancy: D138 synthesized every argument before the parameter was known, so an untyped integer literal was i32: mem.allocate(arena, 8, 1) was L0340 until it said usize(8) and usize(1), and io.variable_at(world, 1) the same. A fixed array lent whole to a generic routine's slice parameter, io.buffered_over(host, file, storage), was L0340 too, though D309 lends one to every other slice parameter.

Chosen: an untyped integer or float literal argument waits until every other argument of the call has been matched. Its parameter pattern is then normalized with what they bound: a pattern that names an integer type gives an integer literal that type, a float type a float literal, and the literal is checked there as [1880] checks any literal in context. A pattern still unbound, or of another class, leaves [0200]'s default, which then decides the pattern as before. Because every literal waits for every other argument, second(4, u16(30)) and second(u16(30), 4) both make t u16. A fixed-array place, a binding, a parameter, a named return or an admitted field, matches an outer slice pattern []t through its element, and the instance's ordinary call check then lends it as D309 does, refusing a read-only place where []mut t is written. An array literal for a pattern that names a formal is still typed before the parameter is known; D419 lends one to a parameter whose type names none.

The alternatives: naming the conversion in L0340's note and keeping D138's order, which leaves the commonest generic call in the library needing one; typing a literal from an earlier argument only, which makes the result depend on argument order; and inferring from the return context, which D138 excludes.

Pinned by runtime/generic-arguments-are-typed-and-lent-from-the-parameter, negative/generic-literal-is-checked-against-its-parameter, negative/read-only-array-lent-to-a-generic-writable-slice and negative/generic-routine-repeated-deduction-conflict, whose conflict is now between two typed places.

D374 — A table names only the entries something can project

The tour said at [1310] and [1390] that evidence is a table of the conformance's functions and that a call through any reads its entry there, and D144 and D147 fixed every entry's place. Nothing said a table must name the routines no call reads. Every emitted table named every provider, so a program that called one entry of a conformance linked all of them: calling io.close kept the whole files conformance, about 7 KiB, and three entries of the memory network kept about 40 KiB, so neither fitted a 32 KiB Cortex-M0 image.

Chosen: every backend, on every target, keeps entry N of a table only when code that can run projects entry N from a table of the same concept, direct tables and erased tables apart. The concept, not the table a projection names, is the unit, because a projection's table at runtime may be any table of its concept: an any C value carries whichever conformance built it, and an instance's hidden table is any of its concept's. Code that can run starts from the roots: a routine with a reference no call makes (a function value, an image, an export, an import, a link name, a placement, a non-ordinary convention or the C ABI), one without parameters, as a firmware entry is, and the panic handler the backend calls. A routine a routine that can run calls, takes the address of, or names in an assembler.block's text can run, and an entry's target can run once that entry is kept; a routine that only routines that cannot run call cannot run either, so what it projects keeps nothing. An entry left out is a zero word in its place, so a table's size, its order and every offset D144 and D147 give stay as they were, and the two identities of one physical table keep the same entries. The routine a zero word replaced is linked only if something else reaches it, and D303's L0500 count follows the kept entries. Calling through a left-out entry cannot happen, since nothing reads it.

Amended for assembly: this decision first made every routine of a program with an assembler.block able to run, since its text may name anything. Every hosted Linux image holds blocks, the process entry's and the system call's, so a hosted image left out only the entries nothing at all projects, and no hosted fixture could pin the rest. A block names a routine exactly as D296 roots one: when the routine's name or link name, or either with a _ before it, is a run of symbol characters in the text. Only a block in a routine that can run reaches what it names, as only such a routine's call does. Its operands are integer scalars (D248), so a routine's address reaches a block only through a function value, which already reaches the routine where it is taken. A spelling the backend invents for a routine whose name another item already holds is not a name the text can rely on, and names nothing here. The alternatives were keeping every routine live under a block, which left hosted pruning to the entries nothing projects, and rewriting the process entry alone, which leaves the system call's block, and any program's own, to keep everything.

The alternatives: pruning on Cortex-M alone, which would link different routines for the same program on different targets and answer L0500 differently; keeping an entry per table, by the table a projection names, which drops an entry an any value of another type still reads; compacting the tables, which moves the offsets D144 fixed and makes them depend on the program; leaving it to specialization, which removes only the projections it proves and keeps every entry of the tables it still passes; and counting every routine but an entry's target as able to run, which lets a routine that only an unkept entry's target calls keep every entry it projects. All are declined.

Pinned by end-to-end/link-static-unprojected-evidence-entry, whose unprojected entry alone names a C import a static link would refuse, runtime/network-datagram-memory-firmware, which overflows the Cortex-M0 image at every profile when every entry is kept, runtime/region-bounded-pool, whose region's in-place growth, called only from an entry nothing projects, would keep every allocator's grow and overflow the Cortex-M0 image at none/off were each routine a call reaches a root, runtime/evidence-projected-entries-kept, whose projections read an entry from the other type's table and a parent's entry from a child's erased table on every target, and runtime/hosted-assembly-reaches-no-evidence-entry, whose only projection of an entry naming a C import is in a routine only an unprojected entry names, so that a static Linux link refused it, at every profile, while a block kept every routine live.

D484 — A direct table's entry no selection names is not lowered

The tour said nothing, and D296 made a reached conformance reach every provider. A call such as io.out(host) reaches the generic instance of io.out and through it the provider's process table, so every provider of process was lowered and emitted, and every routine those providers call, though only out is ever read. D374 then left those entries zero words and the linker dropped the routines, but the compile time and the assembly were spent. Over a provider that delegates, the cost doubles: a hello-world over hosted/blocking (D476) lowered blocking's and the system's argument, input and error entries and the core/io instances between them, 4,923 lines of assembly where the program needs 3,815.

Chosen: a direct table's entry is reached only by a reached selection that names it: a constrained generic body's t.entry, in the instance's own view, which is the only way code reads a direct table, so the selection names the exact conformance the instance receives. A reached instance makes the tables of its evidence exist without reaching any of their entries. An erased table, built where an any is constructed or an erased entry selected, still reaches every entry and D145's parents, because an any value may have any entry read, and so does a for's iterable conformance, which names no entry. A direct table's entry that nothing reaches is absent: its provider is not lowered, the IR entry names no routine and no signature, it keeps its place so D144's and D147's offsets stand, and every backend emits it as D374's zero word, which a projection elsewhere in its family can therefore not keep. The verifier refuses a projection of an absent entry.

The alternatives: leaving the routines to the linker, which D296 already declined for the time they cost; lowering every provider and having the backends skip the routines D374 finds unable to run, which still lowers their IR; and building direct tables of the reached entries alone, which moves offsets. All are declined. D296's "a reached conformance reaches its providers" now holds of erased tables and of for's.

Pinned by the driver case an unprojected entry is not lowered, a library conformance whose unselected provider and the routine only it calls are absent from the assembly and whose IR entry names nothing, while an erased table of the same conformance lowers both; and the lowering record compiler/tests/lowering.ir.

D1358 amends where an erased table is built: for an any construction, and for an erased selection only when the compilation builds no table of its concept, since a selection names its table for the shape alone.

D419 — A parameter whose type names no generic formal is an ordinary context

The discrepancy: [1880] lists the type of the parameter an argument fills as a context, and D138 synthesized every argument of a generic call without one, so every form that needs a context failed in a generic call even where the parameter's written type names no formal. io.format, the buffered writer's printf, refused the inline list text.format takes: io.format(out, "{} was born in {}.\n", [any(addr name), any(addr year)]) was L0304, because io.format is generic over its provider although its values: []any text.formattable does not depend on it, and the inferred binding the refusal offered was then L0342. any(addr host) for an any io.writer parameter, ptr(integer) for a ptr mut u8 one and a struct literal for a struct one were refused the same way.

Chosen: a runtime parameter of a generic routine whose written type names no formal of the routine, other than formals an explicit static list already fixed, is an ordinary context, as [1880] defines one. An argument that needs a context and fills one, an array literal or repetition, ptr(integer), any(pointer), a struct literal or construction, or zeroed, takes no part in deduction and contributes no equation: the instance's ordinary call check types it against the concrete parameter, exactly as a non-generic call does. An array literal for a closed slice parameter []E is therefore lent on D309's terms: each element is checked against E, so any(addr x) takes its concept from []any C; it is formed in written order in the caller's frame, lent read-only with frame origin, so a result from that parameter cannot leave the caller; []mut E and utf8 still take none. A parameter whose type names an open formal keeps D138's context-free deduction, and pick([1, 2]) against values: []item is still L0304: its refusal now names the binding that gives the literal a type, values := [...] when no element needs a context and values: [N]E = [...], with the count written, when one does. An any(pointer) with more than one exact concept, L0342, names the pointee and every concept it conforms to, so the any C to write is one of them.

The alternatives: keeping the refusal and naming the typed local in it, which leaves io.format needing a hand-counted [2]any text.formattable that text.format does not; typing every argument after deduction, which makes a deduced binding depend on argument order, as D372 declined; and a shorter erasure in an any C context, an implicit any of a pointer [addr name, addr year], any(name) of a non-pointer place meaning any(addr name), or a bare place [name, year]. Each revises [1380]'s "building one is explicit"; the last also hides a borrow, the pair carrying the pointee's frame origin into from and escape checks with no addr in sight, and the second makes any(p) mean one thing for a pointer and another for a value. All are declined: the context now supplies C, and the cost left is any( and ) around a visible addr. D309 declined lending a literal to a generic parameter because it would need typing after deduction; a closed parameter types it before deduction and needs nothing from it, which answers that reason rather than reviving the alternative.

Pinned by runtime/generic-closed-parameter-takes-context and runtime/buffered-writer-format on every hosted target and, at every optimized profile, Cortex-M0, negative/generic-closed-parameter-refusals, negative/generic-literal-lent-escapes, negative/array-lent-refusals and negative/any-construction-needs-context.

D420 — A named construction carries its type into deduction

The discrepancy: D72 lets T(field: ...) fill an argument, and D138 synthesized a generic call's argument with no context, where a construction was L0334, "this position does not take one". So first_of(holder(held: 1)), for first_of: (provider: type is lender, host: provider), needed value: holder = holder(held: 1) first, although the construction names its type.

Chosen: a named construction is self-typed. In a generic call its written type's body is the descriptor deduction matches with the parameter's pattern, binding a formal there as a struct place would, and the instance's ordinary call check then builds it in the caller's frame as it builds any struct argument. An untyped struct literal (f: ...) still needs a context: D419 gives it a closed parameter's, and a parameter whose type is a formal gives it none.

The alternatives: naming the binding in L0334's note, which leaves a form that names its type needing a context that only the order deduction runs in denies it; and typing a bare literal from a formal's other occurrences, which makes deduction depend on argument order. Both are declined.

Pinned by runtime/generic-closed-parameter-takes-context on every target.

D771 — A generic routine's body is checked for each instance a call makes

The tour said at [1350] that a generic type's template is checked even if nothing applies it, and nothing of a generic routine's body. A reader took the first for routines too: a live vec.at view held across vec.push in a generic routine nothing called checked clean until a caller was added.

Chosen: a generic routine's body is checked with each instance's actuals, as D138 makes them, and not as its template. Before any call its names are resolved, its signature's names are held to naming something, and an operand no actual could make valid is refused; everything else waits for an instance, among it the types of its expressions, its error handling and whether a view keeps its source still, so a generic routine nothing calls is not refused for any of them. What waits is every check of the body's expressions and statements, those that do not depend on the actuals too: a try that also has else is L0329 only once a call makes an instance. [1290] says so, and [1350] says that its rule is a generic type's.

The alternatives: checking the body once with its formals symbolic, as a generic type's template is walked, which needs every check that asks a type, a callee's signature or an origin to answer for a formal: the borrow check asks what a generic callee's result derives from, which the instance decides; and checking it at a guessed instance, which reports what no real call might meet. Both were declined until a program needs a template refused before anything calls it.

Pinned by negative/generic-borrow-checked-at-instance, the view held across the push refused once main calls the routine.

D881 — A missing composed conformance names the concepts it refines that the type has

The tour said at [1290] that a constrained type actual needs a conformance, and D444 that a provider running every task to its end has nothing to yield to and provides fibre.scheduler alone. fibre.turns_over over a fibre.whole was L0318 "this concrete type has no conformance to turns", which said neither which type nor that it does provide fibre.scheduler, which fibre.turns refines and which is the reason the group is refused.

Chosen: when the missing concept refines others, L0318's note names, after [1290]'s rule, each refined concept the type does conform to, in the order the concept's declaration lists them: "fibre.whole conforms to fibre.scheduler, which fibre.turns refines, and not to fibre.turns itself". A type that conforms to none of them, a concept with no parents, and a key with more than one input are noted as before.

The alternatives: naming every concept the type conforms to, which for a library scalar is a list of a dozen that says nothing about the one missing; and naming the parents whatever the type conforms to, which tells the reader nothing they could not read from the concept.

Pinned by negative/fibre-turns-over-scheduler-only, whose fibre.whole and blocking.host are each named with the fibre.scheduler they provide.

D1088 — A concept entry's range subtype is part of its signature

Superseded by D1661. An entry's types are compared as a routine's are, and none is a range subtype; what follows is history.

The tour said at [1240] that a conformance function has exactly the entry's signature, and D188 that a range subtype's bounds travel with a signature so that an indirect call cannot lose the check. An entry written level: percent was read as its base type: the function with that very signature was refused, with a report printing two identical signatures, the function over plain u8 was accepted, and a call through the concept passed 250 unchecked.

Chosen: an entry's parameters and results keep their range subtype, as a routine's do. Conformance compares it, so the base-typed function is L0341 and the report prints the bounds, level: u8 range 0..100; and a call through a type parameter or an any checks its arguments and gives its results with the subtype, exactly as a call of the routine does.

The alternative: refusing a range subtype in a concept entry, which would make a concept unable to state a contract a routine can. It is declined.

Pinned by negative/range-subtype-is-a-distinct-type, which refuses the form since D1661.

negative/concept-entry-range-subtype-is-its-signature and runtime/concept-entry-range-subtype-is-checked pinned this until D1661.

D1363 — A conformance may hand its entries to a field

The tour said at [1240] that a conformance names the function that supplies each entry, and at [1250] that a family's supplying functions are generic. A provider built over another, which supplies a concept by handing every entry to a field's provider, therefore wrote one routine per entry, each with the entry's whole signature, failures and origins, and its only line called the same entry on the field: hosted/blocking handed 34 entries of eight concepts to the hosted/system handle it holds, hosted/events copied 33 of them and handed fibre.scheduler to its round through generic helpers, and prototype 5's firmware board handed four to the any fibre.turns it lends. A concept that gained an entry had to be followed in each by hand.

Chosen: a conformance may end with through and the name of a field of its target: host is io.environment through services. The name may instead name a routine (self: T) -> (r: F) that takes the target T by value, gives one result and cannot fail, when T has no field of that name: a provider whose inner handle is computed rather than kept, as hosted/events' system handle was until D1372, writes host is io.environment through services with services that routine. A name that is both a field and such a routine is L0341, and so is a target with neither. Its entry list becomes optional, host is io.files (close: events_close) through services names some entries and leaves the rest to the field, and a concept's other inputs [1270] are still labels: view is indexable (idx: usize, item_type: u32) through inner. through is a contextual word [1760], an ordinary name everywhere else.

The field's type must itself conform to the concept, with the same inputs, as a constraint's type actual would [1290]: a declared conformance, a family's [1250], or an any's own (D492), and so must a routine's result type. One that does not is refused as L0318 at the name, whose note says the type conforms to the concept itself, and names what it does conform to when that is a concept the wanted one refines. The conformance follows the field's type: change it, and the conformance is the new type's, or refused.

Each entry the list does not name is the concept's entry as written, with the target in place of the represented type, as a written supplying function must have it [1240]: the field's provider has the same entry with the field's type there, and the concept fixes the failures for both [1260]. An origin keeps its meaning: from self is what the holder refers to, and the field's referents are among them, so the field provider's own from self neither widens nor narrows it. The field stands in for the holder wherever the concept takes the represented type as a parameter of it, inout or not, or as a pointer to it: self.field, inout self.field, addr self.val.field. An entry that takes the represented type anywhere else, a result, a sink parameter, an element of a slice or a field of a struct, cannot be handed to the field and is L0341 naming the entry; a routine in the list supplies it instead. A routine's result is a copy made for each call, so it stands in for the holder only where the concept takes the holder by value; a pointer or inout position is L0341. A routine whose result is not from its parameter gives storage independent of the holder, so through it an entry whose result is writable and from the holder is L0341, as D222 refuses such a result written by hand; a read-only one, as io.variable_at's, is accepted. A family [1250] may take the field form: the field is looked up again in each instance, and a field whose type is one of the binders needs that binder constrained by the concept or one that refines it, or the declaration is L0341. A routine supplies a concrete target only.

The table entry the field supplies is a routine the compiler makes, one per conformance entry the program reaches: it takes the holder's arguments, puts the field, or the routine's result, in the holder's place and calls that provider's entry, or, when it is an any, dispatches on that any's table as an erased call does (D492). Through a generic table or an any of the holder, a call therefore makes one more direct call than to a provider written for the holder, and one more dispatch when the field is an any: the same as the routines it replaces. Specialization that proves the table calls the routine directly; it is not inlined, because a table holds its address. The routine carries the conformance's source position, so a debugger and a build report name the conformance.

The alternatives: the field named alone inside the parentheses, (services), which needs no new word but reads as a positional argument or an input type; and a field named entry by entry, (variable_count: services, ...), which changes no grammar but still writes every entry, and a field and a routine of one name would make it ambiguous. A field alone, the form first chosen, would have given hosted/events a services field, which its over could not fill: the system handle's cells were writable module storage, and a handle returned from the caller's state cannot also hold them (D222). D1372 gave it that field, over cells in its space. D492 declined compiler-made forwarding routines for an any's own conformance because that one needs none; a field's table has to hold an address that does the forwarding.

Pinned by runtime/field-conformance, positive/field-conformance, negative/field-conformance-names-no-field, negative/field-conformance-field-lacks-the-concept, negative/field-conformance-field-lacks-an-entry, negative/field-conformance-target-is-not-a-struct, negative/field-conformance-entry-a-field-cannot-supply, negative/field-conformance-binder-does-not-supply, negative/field-conformance-through-names-nothing, negative/field-conformance-field-and-routine, negative/field-conformance-routine-takes-more, negative/field-conformance-routine-cannot-reach-a-pointer and negative/field-conformance-routine-hides-storage, and by hosted/blocking, hosted/events and the firmware counterpart, which hand every entry they only pass on through their fields.

D1364 — An entry is called through a concrete type's name

The tour said at [1290] that a generic function calls a concept's entries through its type parameter, t.less(...), and at [1280] that the program has one register of conformances. Through a concrete type's name the same call, system.host.make_temporary(services, ...), was refused as L0338, a type name used as a value, whose note spoke of constructing a struct, so hosted/blocking kept a private generic routine whose only line was the call.

Chosen: T.entry(...) where T names a concrete type, a declared one unqualified or through its module or a predeclared scalar, is a selection like t.entry(...): of the conformances of T in the register, the one whose concept declares an entry of that name supplies it, and the call is a direct call of that conformance's function, a field's included (D1363). Only a concept's own entries count: each conformance supplies its concept's, and a parent's come from the parent's conformance, which is T's too. A family's conformance [1250] counts once a lookup has made it for T, which this one asks for. No conformance declaring the entry, T having none at all among them, is L0308 naming the concepts T conforms to; two, two concepts or one concept twice with other inputs [1270], is L0341 naming the second, and a type parameter constrained by the one meant calls it unambiguously. The selection is called where it is written, as an erased one is (D146): f := box.count is L0338, whose note now says to call the entry. The call is checked against the concept's entry as written.

The same selection through a type parameter whose constraint declares no such entry is now L0308 naming the constraint, where it was L0338 with a note about distinct types.

The alternative: core/io's make_temporary taking an any io.entropy as it is, which would answer one routine and make every caller erase its source. With D1363 the library has no consumer left of either, so the choice rests on the language: a type parameter's selection and a concrete type's differ only in where the evidence comes from.

Pinned by runtime/type-name-entry-call, negative/type-name-entry-has-no-conformance, negative/type-name-entry-no-conformance-declares, negative/type-name-entry-two-conformances, negative/type-name-entry-is-not-a-value and negative/type-parameter-entry-not-declared.

D1368 — A report made in an instance names it

The tour said at [1290] that a generic routine's body is checked for each instance a call makes, and that an error that depends on the instance is reported once a call picks it. The report named neither the instance's type arguments nor the call, so two instances refused on one line could not be told apart, and identical reports of several instances, which the checker merges into one, said nothing of the others.

Chosen: every report made while an instance's body is checked carries one note more, after its others, written in the instance made(t: pair) the call at main.ldn:8:10 made: the routine, each type or fixed formal with its actual, spelt as the reported source would write it, and where the first call that asked for the instance stands. A report that stands for the same report of other instances ends , and 2 more instances. An instance no call asked for, a conformance's generic provider, is named without a call. The note is the catalogue's for every code, beside a row's own notes and its route (D761), so no row's label count changes, and docs/diagnostics.md says so once, above the codes' sections. The merge itself is unchanged: one report for one mistake in the template, however many instances meet it.

The alternatives: a related label at the call, which would change the label contract of every code a generic body can raise; and one report per instance, which turns one mistake in a widely used routine into many reports. The maintainer chose the note.

Pinned by negative/instance-reports-name-their-instance.

Decisions: Modules and compile time

The module graph, what an import binds, and what is settled before ordinary resolution begins.

D139 — Fixed conditionals select module declarations without execution

The tour said that fixed marks compile-time knowledge [1490], showed a conditional on compiler.arch [1500], and forbade compile-time calls [1540]. It did not say where a conditional may occur, whether a false arm is parsed, or how target selection reaches whole-program resolution.

Chosen: fixed if expression then declaration* (elsif expression then declaration*)* (else declaration*)? end if is a module-declaration form only. It may nest, every arm may be empty, and an arm opens no scope: its selected declarations splice into the one module scope across all input files. It has no public modifier or trailing name, and is not a block, struct, signature or template-local form.

The parser retains every arm in immutable syntax and reports lexical, parser, refusal and recovery faults in false arms. A configuration stage runs after target selection and before resolution. It records an activity view rather than pruning syntax. Resolution, checking, template validation, identity interning and lowering use only that view; a name in an inactive arm has no semantic diagnostic or declaration identity, while an active use of it is unresolved normally. Nested conditionals in an inactive arm are parsed but not evaluated.

The original fixed expression is closed. It admits bool and mathematical D136 integers, the compiler-owned architecture values x86_64, arm64, rv64, cortex_m0 and synthetic_32, literals, parentheses, unary -, D136 arithmetic, integer comparisons, bool or architecture equality, and not, and, or. compiler.arch is the only intrinsic and is recognized only by this stage; its target identity comes from the selected Target_Facts constructor, never a target label. Structural validation visits both logical operands even when evaluation then short-circuits. Calls, runtime or module names, measurements, controls, aggregates, arrays and width-dependent operators are rejected and never execute. Every active if and elsif condition is validated and evaluated even after a true arm; the final answer must be bool.

Why an activity table: deleting branches would destroy parser diagnostics and mutate a shared syntax authority; making ordinary resolution decide the condition would introduce a compiler module and runtime execution before the hosted modules and toolchain directives. A selected immutable view preserves the whole-program declaration set without pulling options, build modes, widths, byte order or general builtin modules forward.

D202 extends this same configuration stage with global typed options, target scalar measurements, compiler facts and module tool directives. Its explicit rules supersede this first slice's exclusions of those forms; user execution and runtime-name lookup remain excluded.

A fixed if that begins a statement stays L0110, and its note names the two routes: a routine declared per system in a module-level fixed if, and an ordinary if on a module bool that D437 lets hold a fact, on_linux: bool = compiler.os == linux. Selection inside a body would make every walker of a body, from resolution to lowering and the editor tools, honour an activity view; the module bool already covers every case whose arms are valid source on every system, and the per-system routine covers the rest, which is how the library writes them.

Pinned by the target-description constructor and configuration-stage public-seam cases; positive/fixed-conditional-selects-declarations, positive/fixed-conditional-nested-inactive, positive/fixed-conditional-exclusive-duplicates, positive/fixed-conditional-cross-file-forward, and positive/fixed-conditional-symmetric-boundaries; the arithmetic and short-circuit/later-elsif call boundary case negative/fixed-conditional-evaluator; the active duplicate and active-reference-to-inactive cases negative/fixed-conditional-active-duplicate, negative/fixed-conditional-active-reference-inactive, negative/fixed-conditional-active-generic-error and negative/fixed-conditional-inactive-parser-error; the lowering and verifier cases, generated lexical, construct and IR records; negative/fixed-if-in-a-body; and runtime/fixed-conditional-runtime and runtime/fixed-conditional-generic-runtime on Linux x86-64. The selected nested generic and inactive-template boundaries are positive/fixed-conditional-generic-activity and the lowering seam records that only a selected generic instance receives an item.

D150 — The reached module graph has one deterministic identity order

Amended by D1658. There are no selected imports; the identity order stands for plain and aliased imports.

The tour said that a module is one directory [1410], an import searches ordered roots and binds its final segment [1420], imports are per file [1450], and the compiler receives roots rather than acquiring packages [1480]. It did not settle the file prelude, qualification in non-value positions, discovery order, cycles, visibility failures, compatibility invocation, entry selection or what “whole program” means to the conformance register.

Chosen: import is reserved and every source file begins with zero or more plain import a/b declarations before its module declarations. Each path is a nonempty slash-separated identifier tuple. D201 extends this original slice with aliases [1430] and selected imports [1440]. A plain import binds only the last segment in this file's import scope. Locals and signature declarations shadow that binding; it shadows the same spelling in the module scope for qualified lookup. Duplicate final-segment bindings are refused. Imports do not enter sibling files, inject members or re-export anything.

The namespace's first selection resolves a public declaration in the selected module and is available in every declaration-reference position, including a concept constraint and a declared error set. A private member is distinguished from a missing one and related to its declaration. Public declarations may mention private identities, but those identities stay unnameable across the boundary, and a value carrying one does not expose that private type's fields. A contextual literal cannot construct a private nominal from another module, including through a public wrapper's field; otherwise it could forge an initialized-prefix invariant. Array-field selection through a nested path obeys the same visibility rule. Variant cases inherit the containing type's visibility. A namespace itself is no runtime or type value. public on a conformance is refused; every unmarked conformance in the reached graph still enters the single D142 register.

The request supplies one entry directory, or the entry module's source files (D383), and ordered roots. A module contains the bytewise-sorted direct regular .ldn children; other entries are ignored and an empty module is legal. Each import segment must match a listed directory entry exactly. Roots are tested in request order and the first complete directory wins without merging; D563 amends this for a first directory that holds no source while a later root's holds the module. Discovery visits the entry first, imports in source order and newly selected modules FIFO. A selected directory is loaded once, so cycles are legal. Symlink identity and root defaults are outside this guarantee. The explicit-file request remains a compatibility mode forming one synthetic module when no roots are supplied. Named files are a module apart from the directory they lie in: an import that selects that directory is refused (D1055), and a module the compiler adds itself is not added when its directory is the entry module's (D1056).

If a root or intermediate directory cannot be listed, the import reports that failure before considering later roots. An absent directory or missing exact segment remains a search miss, so a later root may supply the module.

Only after graph closure do configuration, resolution, checking and lowering run over that canonical source order. “Whole program” is exactly this reached graph, so unused reached conformances collide and unreachable or shadowed-root conformances do not participate. Only the designated entry module supplies [1970]'s hosted main.

The alternatives: recursively sweeping subdirectories would erase module boundaries; merging roots would replace [1420]'s precedence with accidental filesystem composition; injecting imported members would erase [1440]; making conformances public would make generic behavior depend on lexical imports; and choosing a reached library main would make the entry depend on traversal. Loading by filesystem enumeration or hash order would also make declaration identities and diagnostics host-dependent. All were declined.

Pinned by unit/module-graph, unit/module-conformance-register, negative/core-mem-private-representation, negative/core-arena-private-representation, negative/core-spill-private-representation, negative/core-spill-forged-storage, negative/core-text-frame-slice-escape, runtime/core-vec-pointer-storage, and the parser, resolution, driver and hosted-entry cases.

D201 — Import suffixes bind file-local names without new identities

Selected imports withdrawn by D1658. The alias rules stand; what follows about selected names is history.

The tour said at [1430] that an alias resolves namespace collisions, [1440] that an import may select names without a wildcard, and [1450] that imports belong to one file. It did not settle whether either suffix also binds the original namespace, how selections collide, or when an unused selection is checked.

Chosen: an import has at most one suffix: contextual as and one alias, or a nonempty parenthesized list of identifiers. A selection has no trailing comma, wildcard or member renaming. An alias binds only the written alias; a selection binds only the named public declarations. A plain import keeps D150's final-segment namespace binding.

All three forms share the file import scope. Repeating a bound spelling, including within one selected list or across different forms, is a duplicate with both sites reported. Parameters and locals may shadow these bindings. A namespace binding shadows a module declaration only for qualified lookup; a selected declaration also shadows it for unqualified lookup. No import enters a sibling file or re-exports a declaration. Selected members are resolved after the reached modules' active declarations have been collected, so declaration order and import cycles introduce no forward-reference exception. A private or missing selected member is refused at its import even if unused; the private-member diagnostic relates its declaration.

A selected binding refers to the original declaration rather than copying it. Its nominal identity, generic formals, mutability, error atoms and private representation restrictions therefore remain those of its defining module. The same binding is available in every declaration-reference position.

The alternatives: also binding the original namespace would make aliases retain the collision they are meant to solve. Copying selected declarations would create new nominal or conformance identities. Checking only used names would let a misspelled import remain latent. Combining aliases and selections, member renaming, trailing commas and wildcards would add syntax the tour does not promise. All were declined.

Pinned by runtime/import-alias-selected-identities, runtime/import-contextual-as, negative/import-alias-original-unbound, negative/import-alias-reserved, negative/import-option-collision, and the parser/resolution import cases.

negative/import-selected-private, negative/import-selected-missing, negative/import-selected-duplicate, negative/import-selected-immutable, negative/import-selected-private-representation, negative/import-selected-reserved, negative/import-selected-namespace-unbound, negative/import-alias-selected-collision and negative/import-selected-alias-collision pinned selected names and left with them (D1658).

D202 — Hosted tool configuration is fixed before ordinary resolution

The tour said at [1480] that the compiler receives ordered roots, at [1500]-[1530] that targets, assertions and declared typed build switches configure compilation, and at [1540]/[1560] that tool directives execute no user code. [1590] places a static-library directive beside its declarations. It did not settle switch discovery, override precedence, configuration namespaces, target-fact units, the assertion fold or library argument order.

Chosen: the driver preserves the explicit ordered roots of D150, with no implicit environment roots. It completes the reached graph before configuration, resolution and checking. Every source remains part of one whole program; this introduces neither a cache format nor a stable interface. For a static Linux request, checking includes the same available implicit platform/linux startup module as compilation, before collecting options or selecting fixed arms. A standalone check without a library supplying that module remains permitted; executable and assembly emission still require it under D363. A libc request does not add the static startup module.

Contextual option name: type = expression declares one globally unique configuration value. An option is unconditional at module level, without public; an option in any fixed arm is refused even if that arm is inactive. The complete option set must exist before selecting arms. Its declared type is bool or an enabled integer scalar, with target bounds for usize/isize. Within a closed configuration expression, integer option values participate as D139's mathematical integers; the declared scalar bounds apply when an option's value is established, rather than at each arithmetic intermediate. An option cannot reuse a compiler-owned configuration atom name: x86_64, arm64, rv64, cortex_m0, synthetic_32, little, big, debug or release. D855 extends this to every configuration atom, the systems' and rv32's among them. That collision is L0390; a reserved tool namespace name is L0203. An option inside any fixed arm or with a type other than bool or an enabled integer scalar is likewise L0390, even when its default is a fixed value. An invalid tool directive argument count, library argument form or library name is L0391. In configuration, L0305 remains a failure to produce a value with the closed fold; elsewhere it also covers a required module initial image that cannot be supplied implicitly, including a function value with no initializer. All options are collected before evaluating their defaults. Defaults may refer forward to options in any reached source; cycles and invalid defaults are refused even when the request overrides the option. A dependent default uses the referenced option's effective overridden value.

An option's bare name is available in fixed conditions, option defaults and compiler assertions. It has no runtime storage or module export. An active use outside those configuration positions receives L0201 explaining that boundary, rather than claiming the option was never declared. An active module declaration or import binding cannot reuse an option's name in the module that declares the option, including a different source file of that module. Ordinary bindings in unrelated modules may use the spelling. Bare option references in closed configuration positions still select the global option, even where an unrelated module has a same-spelling ordinary binding. Runtime lookup remains ordinary lexical/import lookup, and type operands in admitted deferred measurements resolve as types. Local bindings may use option names because configuration directives do not occur in bodies. The three bare tool namespace names are unavailable as declaration or import bindings, including parameters and locals, without becoming lexical keywords. Fields and member labels do not declare a tool namespace. Explicit imports of exactly landin/compiler, landin/assembler or landin/linker, including alias and selected forms, receive a named refusal before filesystem lookup: these built-ins already inhabit the configuration scope. No root can replace one of them with source.

An option/binding collision is reported once per option at the option's declaration, with the conflicting binding as a related source. Refused import names and module declarations suppress follow-on unresolved-name or configuration-only reports, including qualified and selected-import uses of a refused module declaration. Independent resolution mistakes receive their own reports. This recovery changes no accepted configuration.

--option=NAME=VALUE supplies a bool literal or signed decimal integer text. Unknown or duplicate override names, malformed values, wrong types and target range violations are errors. --build-mode=debug|release supplies a separate request fact, default debug; it does not change runtime checks or optimization. compiler.arch retains D139's constructor-selected architecture; compiler.word_size counts bits and compiler.byte_order is little or big. D204, D226 and D256 add the C ABI bools compiler.c_sysv_lp64, compiler.c_darwin_lp64 and compiler.c_aapcs64_lp64; D265 adds compiler.c_riscv_lp64d, and D255 adds compiler.feature.NAME, a bool for each feature of the selected CPU feature level. D264 adds compiler.os in its own equality domain, with linux, darwin, freebsd and freestanding values. These facts are fixed configuration values, which D437 also lets a module value read. Word size is eight times sizeof usize, including on a synthetic 32-bit target hosted by a 64-bit compiler.

The existing closed configuration fold gains those facts, options, and sizeof/alignof of the enabled scalar types, measured in target bytes. It retains D139's mathematical integer arithmetic, typed equality and bool operations, structural validation of both short-circuit operands, and absence of user calls. Both operands are type-checked even when evaluation will skip one; dead arithmetic is not evaluated. Nominal or aggregate measurements and runtime/module-name lookup are outside this fold and receive a precise refusal; D412 later admits a declared type's measurement in compiler.assert, folded after checking. A module-only compiler.assert(expression) requires bool and diagnoses false at its source. All active assertions use that same fold; inactive assertions have no effect.

A tool directive is a direct compiler, assembler or linker member call with positional arguments, without recovery. linker.library takes one fixed text literal, decoded by the ordinary text decoder. Its nonempty name contains only ASCII letters, digits, underscore, hyphen and dot, cannot begin with a hyphen and cannot consist only of dots. Active library directives produce separate tool arguments after the program assembly in canonical source/declaration order. Repeated requests are preserved: archive resolution may need a library more than once. D523 amends how each reaches the driver: under --link=libc it is the driver's own -lNAME on every hosted target, resolved as the driver resolves it for C, a shared library or an archive, and Darwin's former -print-file-name resolution to an archive file is gone; D524 adds linker.directory and -L for where to look. No target changes the source order or repetition of library operands. This is the ordering exception to [0130] and [1740]'s order-independent module name lookup: moving an active directive can change archive resolution. Inactive directives add no arguments. D227 enables scalar atomic operations; D229 enables Cortex-M0 body assembly, placement annotations and explicit firmware requests, and other targets refuse placement and firmware. D248 checks assembly on every target with registers and states where this compiler lowers it. assembler.block is a body operation, not a module initializer; Cortex firmware refuses linker.library. No fourth namespace or general build language is introduced. The checked-in device fixtures' vendor provenance and fixture policies are off-target generator inputs/comments, not compiler-recognized directives. Its checked-in declarations derive into D228 images and D227/D228 scalar accesses without enabling new syntax.

The alternatives: conditional switch declarations make switch discovery depend on their own values. Last-override-wins hides repeated configuration; ignoring an overridden default hides misspellings and cycles. Reusing option names for ordinary bindings in their declaring module gives fixed and ordinary lookup different meanings without a module boundary; that broader namespace split remains declined. Refusing the spelling in every unrelated module couples application options to library-private declarations and imports. Exempting only compiler-added startup modules makes the same source change its namespace rules when explicitly imported; a module boundary instead gives one rule independent of how source was reached. General compile-time evaluation would reverse [1540]; moving scalar target queries through host layout would reverse the target-facts boundary. Searching for built-ins on disk would let root order replace compiler meaning. Deduplicating or sorting libraries changes archive resolution, while whole-executable static linkage takes hosted-runtime policy from the driver. All were declined.

Pinned by positive/r430-fixed-options, positive/r430-inactive-tools, runtime/option-names-stay-in-their-module, runtime/r430-fixed-tools, runtime/r430-static-library, negative/r430-assertion-false, negative/r430-assertion-type, negative/r430-assertion-call, negative/r430-assertion-nominal, negative/r430-option-cycle, negative/r430-option-duplicate, negative/r430-option-conditional, negative/r430-option-type, negative/r430-option-range, negative/r430-option-reserved, negative/import-option-collision, the resolution cases options collide only in their declaring module and configuration conflicts have one cause, and the driver case implicit startup graph is checked, negative/r430-fixed-dead-types, negative/r430-library-injection, negative/r430-library-runtime, negative/r430-library-arity, negative/r430-tool-member, negative/r430-builtin-import, and the driver's option permutation, target-fact, ordered-library and pre-root builtin-import cases, plus negative/option-outside-configuration, negative/tool-namespace-bindings and negative/function-tool-refusals for the ordinary-resolution boundary.

D412 — A compiler assertion measures a declared type's layout

The tour said at [1510] that compiler.assert checks a fixed condition before the program runs, and D202 closed that fold over the scalar types' measurements: compiler.assert(sizeof record == 24) was L0305, "D202: fixed measurements need a scalar name, not a declared type", with a note that no user routine runs, which was beside the point. A C programmer's _Static_assert on a record's size or a field's offset became a check at run time.

Chosen: sizeof and alignof of any type and D411's offsetof stand in a compiler.assert. Configuration still validates such an assertion when it selects arms, but folds it only after checking has laid out the declared types it measures: resolution resolves the measured types and paths, the checker checks them as it checks any measurement, and the same closed fold then reads their sizes, alignments and offsets from the checked target layout beside the options and compiler facts it always read. This is measurement, not compile-time execution: no user routine runs, and the checker already computes target-aware layout (D44). A fixed condition and an option default still measure scalar types only, because a declared type's layout depends on the arms they select; a declared type there is L0305 with a note that says so.

The alternatives: admitting layout measurements in fixed conditions would make the arms that declare a type depend on its own size. Folding every assertion after checking would delay the scalar and fact assertions that today fail before a program is resolved. A separate assertion form for layouts would split one directive in two for a reason the reader does not see.

Pinned by positive/c-packed-records, runtime/flexible-member-trailing-bytes, negative/layout-assertion-false, negative/r430-assertion-nominal and the driver's invalid options are refused.

D242 — A refused import answers for its name

Amended by D1658. There are no selected imports; a refused plain or aliased import still answers for its name.

The tour said that a file may import selected public members of a module [1440] and that a file's import scope gives one name to one thing [1450], and [1860] says a name that names nothing is refused because it is a misspelling. Nothing says what the name of a refused selected import is afterwards. It is not a misspelling — the program wrote a name its module does say, or one the module keeps to itself — and the import already reported exactly that.

Chosen: the refused import answers for the name. The file's import scope records that the name was refused there, and a later use of it is resolved to nothing without a report. The import's verdict and its exact report stand, the program is refused, and the exit status does not change. A name a refused import wrote is neither bound nor available: visibility is unchanged, so this decides what the compiler says and not what it accepts.

A competent reader could have reported every use, which is what the compiler did: the report is individually true, and a reader who saw only the third one would still learn something. That was declined because the first report is the only one that names the mistake, the rest say "misspelling" of a name that is spelled correctly, and a program importing one private helper used ten times received eleven errors of which ten were misleading. Binding the name to an error declaration instead, so that the checker reported type errors at each use, was declined for the same reason and a worse one: it would move a visibility question into the type stage, where [1410]'s answer is not available. Leaving the refusal to suppress all later reports about the name, including a genuine second import of it, was declined because [1450]'s duplicate-import rule is about the scope and not about this name's fate; Has_Import therefore keeps its meaning and only the misspelling report is withheld.

Pinned by negative/imported-private-name and runtime/import-alias-selected-identities.

negative/r740-refused-private-import-adds-no-cascade, negative/r740-missing-import-adds-no-cascade, negative/import-selected-private, negative/import-selected-missing and negative/import-selected-namespace-unbound pinned refused selected names and left with them (D1658).

D1658 — A module is imported whole: import m (a, b) leaves

The tour said at [1440] that import m (a, b) binds selected names of a module into the file. D150, D191, D201 and D242 cite it. The library writes none, against 188 plain imports.

Chosen: selected-name imports leave. A file imports a module whole and names its members m.a; as still renames the module. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides.

The alternatives: keeping selected names, which makes a name's module invisible where it is used and shares its refusals with every other import. Declined.

Pinned by negative/selected-import-is-imported-whole, whose fix imports the module and qualifies each use (D1888). D150, D191, D201 and D242 are marked amended, and the fixtures that pinned selected names' own refusals are gone with them.

D247 — A routine and a struct each hold at most 16,384 of what they declare

The tour said nothing about size. A program may be as large as its host allows, and a routine may declare, and a struct may hold, as many names as it writes. The compiler checks a whole program at once, so what one routine or one struct costs is paid in one process.

Chosen: one routine makes at most 16,384 declarations, counting its parameters, named returns and every local and binding in its body, and one struct body or variant case has at most 16,384 fields. A program over either bound is refused with L0325 before any checking begins: a routine at its name, and a struct or case at its first field past the bound, related to the body. Every place over a bound is reported, in source order, and nothing else is checked. The declaration limit bounds declaration-indexed checking and flow facts, and the field limit bounds field-indexed struct work. Neither limits the number of IR values in a routine. The bounds are Landin.Stages.Checking.Declaration_Limit and Field_Limit. They are an implementation limit, like L0111's nesting depth, and not a rule of the language: a larger compiler may raise them without changing what any program at or under them means.

Pointer-provenance verification uses a separate representation: it indexes stores and reads and follows uninitialized paths for each read slot. Its scratch grows with blocks, slots, IR values and uses, not their block-by-slot product. Every input-sized scratch array, including reachability and work queues, has scoped heap ownership with checked allocation sizes and cleanup on early return or allocation failure. Successors are read directly from validated terminators; no returned graph or automatic construction queue is needed. Zero-use items avoid slot/value dataflow storage while retaining signature, true reachability and ordered pointer/storage checks. This adds no block, value or slot limit: existing accepted workloads and the source bounds above remain unchanged. An unrepresentable scratch size or an allocation failure retains host-resource exhaustion reporting, exit 71. Heap ownership does not establish a bound for the compiler's total memory or remove the other per-routine automatic arrays described below.

The numbers are measured, not chosen for their shape. Origin tracking keeps, for each declaration the routine can name, a fact with one bit for each of them, so a routine's storage still grows with the square of its declarations, though a branch or loop now shares every fact it does not change: at 16,384, with a loop, the release compiler peaks at 130 MiB, and at 65,535 at 1.3 GiB. A struct's field shapes are copied through layout, lowering and emission; 55,000 fields exhausted an 8 MiB host stack. 16,384 of each leaves a factor of three below the struct's failure and ten below a gigabyte for a routine on the host that measured them. A program that stays under both checks without exhausting that host at any size the scaling benchmark generates.

A competent reader could have set no bound and let the host fail. That was the behaviour before, and it is not a diagnostic: exit 71 says nothing about which routine or struct did it, and on a smaller host it arrives at a smaller program. A single bound on the whole program's declarations was declined for declaration-indexed checking and flow facts and field-indexed struct work, which grow with individual routines or structs. The whole-unit IR optimization scratch addressed here is heap-backed and no longer imposes a whole-program stack bound. Specialization, simplification and rewriting still use automatic arrays indexed by a routine's IR values; L0325 does not bound their lengths. Bounds high enough never to matter, 65,535 or 2**20, were declined because a program just under them would still exhaust an ordinary host, which is the failure the bound exists to replace. Making the storage sparse so that no bound is needed was deferred: the reference pass's per-declaration derivation bits are its representation, and replacing them is a change to that pass rather than to its bound.

Pinned by unit/checker-size-bounds, the checking case size bounds refuse past their limit, which generates a routine and a struct at each bound and one past it: a program that meets either is too large to keep in the corpus, as L0111's is. Pointer scratch is pinned by the verifier cases scratch arithmetic and zero uses and address initialisation is checked, including injected allocation failures, and the optimization case cyclic islands, which retains the 10,000-block reachability verdicts.

D262 — An import with no root to find it under is refused at the import

The discrepancy: [1420] finds an import under the roots --root names, and a compilation of named files has none. The import was read, bound nothing and was never reported: every use of its name was then reported as "not declared in any scope", with [1860]'s note that it is a misspelling, which it is not.

Chosen: with no root, an import that names a module outside the compiler's library is refused at the import, once, as the module not found, with a note saying to compile the module's directory with --root. Its names are refused as D242 refuses a name an import could not supply, so no use of them is reported again. D202's import compiler, import assembler and import linker name the toolchain, need no root and are unchanged. Since D275 an import of core, hosted or platform needs none either: it resolves from the library the compiler found beside itself. Since D363 the refusal is made when the files are loaded, offering a library namespace near the one written, and an import of the library when none was found names where refine looked and --library.

The alternatives: searching the source's own directory as an implicit root, which makes a file's meaning depend on what sits beside it; leaving the import silent and improving the use's message, which reports the same mistake once for every use.

Pinned by negative/import-without-a-root-is-refused-there.

D363 — An import is refused where the files are loaded, and told where the library is

The discrepancy: D262 refused an import of named files in resolution, which saw no library, so import cor/io was told to give --root where the same import under --root was offered core; and with no library found beside a copied refine, import core/io was refused the same way, naming --root and never --library, while --emit=asm left platform/linux out of a static program's assembly and said nothing.

Chosen: named files' imports are refused when the files are loaded, with D262's sentence and note: an import of anything but the library is not found for want of a root, and offered a library namespace its first segment is near, as a rooted import is. An import of core, hosted or platform when no library was found, named files or rooted, says so and names where refine looked, the prefix's lib/landin beside its executable and the checkout a build tree's executable sits in, with a note naming --library=DIR. A static Linux link with no platform/linux is refused for --emit=asm and --emit=ir as for an executable, rather than written without its entry, and -v names the library a request reads, or none.

The alternatives: passing the library's namespaces to resolution so it could offer them, a host fact in a stage that reads no host; a separate refusal code for a library that was not found, when the rule is still [1420]'s; and letting --emit=asm write the program without platform/linux, which an old-against-new comparison of two compilers silently differed by.

Pinned by negative/import-without-a-root-is-refused-there and the newcomer cases a misspelt namespace is offered the library and a library found nowhere says where it looked.

D324 — A module value reads another module's values as its own

The tour said at [1940] that a module value is known when the program starts, and an imported module's fixed values were not reached: linux.eintr, alignof libc.file_status, a qualified atom and a combination of another module's flags were L0305 or L0304, so libraries repeated each other's constants or wrapped them in functions.

Chosen: a name another module exports, written through that module's name, limits.size, colours.green, sizeof shapes.pair, is the same name and is known exactly when its unqualified spelling is in its own module, folded by the same walk under the same cycle guard and imaged by the same paths. A chain may cross modules, and a cycle is refused at each declaration on it, in whichever module that declaration is. sizeof and alignof of an imported type are measurements, not reads. An imported mut value is known by its starting image, as a local one already was, since nothing runs before the entry point to write it. A distinct type's combined flags are imaged through its base, which also fixed such a value being emitted as zero within one module. A field, an element, a call and an address are still refused from any module, each saying why.

The alternatives: copying the other module's literal, facts that drift; private functions per constant, a call per use and no static image; a separate pass for imported constants, a second folder; refusing an imported mut value alone, which makes qualification change meaning; and refusing a value cycle across modules as an import cycle, though mutual imports are legal.

Pinned by runtime/module-values-across-modules on every target, Cortex-M0 included, negative/module-value-cycle-across-modules and negative/module-value-imported-field.

D437 — A module value reads a compiler fact

The tour said at [1500] that compiler.arch, compiler.os, the C ABI bools, compiler.word_size and compiler.feature.NAME are fixed facts, and at [1940] that a module value is known when the compiler reads it. D202 and D255 read a fact only in a fixed configuration expression: baseline: bool = not compiler.feature.popcnt was L0203, so each arm of a fixed if declared its own copy of a value that restated the condition, and is_linux: bool = compiler.os == linux drew a second report, L0201, on linux.

Chosen: a module value's image may read a compiler fact, and reads the value the configuration stage found once it selected the arms. A bool fact, a feature, a C ABI bool or compiler.c_runtime, is that bool. compiler.word_size is an integer that takes its type from context as a literal does, and is held to that type's range as any module fold is. An atom fact, compiler.arch, compiler.os, compiler.byte_order or compiler.build_mode, has no value outside configuration, so a module value reads it only compared with == or <>, and the other operand is a configuration atom as it is in a condition: on_linux: bool = compiler.os == linux means the system even in a file that imports a module named linux. A fact folds into the static image as the literal it stands for; it has no origin, storage or address. It may stand anywhere in a module binding's image, an array or record image included.

A routine body, an anonymous one included, still reads no fact outside an array length (D1321): L0203, whose note names the module value that holds it, which the body reads and branches on with an ordinary if. An atom fact alone, compiler.os, is L0203 in either place, and compiler.os == linux in a body is that one report rather than a second on linux. Options stay configuration-only (D202); reading one as a module value is a separate decision no program has asked for. D438 decides whether a value derived from a fact sizes an array.

Why: a fact is a value the build holds before resolution begins, so reading it runs nothing and [1540]'s line stands; it is [1940]'s "known when the compiler reads it" exactly. fixed if remains the way to select declarations that differ by more than a value.

The alternatives: keeping the refusal with a note naming the fixed if route, which leaves one declaration per arm for one bool; and admitting facts anywhere an expression may appear, bodies included, which lets a routine read the configuration directly where D139 kept selection at module level. Both were declined.

Pinned by runtime/module-values-read-compiler-facts on every target, Cortex-M0 included, negative/atom-fact-without-a-comparison, negative/feature-outside-configuration and negative/system-outside-configuration.

D439 — A system's own module is empty elsewhere, not conditionally imported

The tour said at [1420] that an import binds a module found in the ordered roots, and at [1500] that fixed if selects module declarations. A module only one system needs, platform/linux, cannot be imported only there: fixed if compiler.os == linux then import platform/linux end if is L0110, since D139's arm holds declarations, so D279 imports it on every hosted system and it declares nothing off Linux.

Chosen: that shape is the way. A system's own module is imported unconditionally and declares its routines inside its own fixed if; on another system it declares nothing, and a call to one of them there is L0201 saying the module declares it only for another target: a call this system does not have, not a misspelling, which a misspelling's near names would suggest. Firmware still refuses such a module by its namespace (D267).

Why not a conditional import: D150 completes the module graph before configuration runs, and D202 collects every option from the modules that graph reached before it evaluates any. An import guarded by an option would decide which modules are reached from values those modules declare, which is circular; one guarded only by compiler facts would need facts evaluated per file while loading, and would make the module graph's identity depend on the target. No second system-specific module needs one yet.

The alternatives: a conditional import of either kind; and scoping platform/linux to Linux by an assertion, which without a conditional import breaks hosted/system on Darwin and FreeBSD (D279). Both were declined.

Pinned by negative/rooted-negative-selects-its-target, a platform/linux call written for Darwin, and negative/module-member-for-another-target.

D2267 — Every hosted system's own interface is imported on all of them

From D267, D439 and D2188.

The discrepancy: D439 lets a provider written once import a system's own module everywhere because that module declares nothing elsewhere, and D267 scoped platform/posix, platform/libc, platform/linux and platform/kqueue to the POSIX systems and D2188 platform/windows to Windows. A provider written for every hosted system, Windows among them, imports both families, and with no conditional import one of the two was always refused.

Chosen: the POSIX layer, the interfaces beneath it and platform/windows are available on every hosted system, and each declares nothing off its own: the POSIX layer's files and platform/libc's common ones hold their declarations inside fixed if compiler.os <> windows, as platform/linux already did inside its own fixed if, and platform/windows inside fixed if compiler.os == windows. A Windows program that calls posix.open is told by L0201 that the module declares it only for another target, as D439 says of a Linux call on Darwin. Firmware still refuses all of them by namespace (D267). The hosted providers keep their POSIX bodies under the same condition and give their Windows arms in files of their own, so a reader of either system's code reads one condition.

The alternatives: a compiler rule that an out-of-scope module is imported empty, which saves the indentation but hides in the scope table what a module's source should say, and loses D439's diagnostic; and platform/posix written over Windows, a POSIX emulation that D2188 and platform/posix's own header rule out.

Pinned by driver/source namespaces enforce target availability, which imports platform/posix and platform/kqueue on Windows and platform/windows on Linux and Darwin and refuses each in firmware, and every Windows fixture over a hosted provider.

The tour said nothing of thread-local storage, and its table of C facilities sends C's thread-locals through the binding generator. D207 and D288 keep the last error by ownership "until thread-local storage exists", and D471's limit cell and D491's report stack are one per program because a program is one execution context.

Chosen: link_attribute gains thread. A module mut binding written link(thread) mut cell: T has one instance in every thread, each zeroed when its thread begins, so it takes no initializer and its type must be zeroable. A thread's reads and writes reach its own instance. On a hosted target the storage is the system's own: ELF thread-local storage in the local-exec model on Linux and FreeBSD, which a static Linux program sets up itself and the C library sets up otherwise, and Darwin's thread-local variables. On a target with no threads it is ordinary module storage, shared with interrupt handlers as any module storage is. It does not combine with symbol or section, so no C thread-local is named through it. What an instance's address may outlive, since the instance ends with its thread, is settled by the item that implements the form, in a record of its own.

The alternatives: a reserved word, thread mut cell, which takes the name from every program; mut(thread), a form of mut only module bindings could use; cells the compiler owns and the library reaches through a builtin, which keeps a storage class out of the source that declares it; and keeping the last error by ownership, which leaves a system.new() handle shared by two threads racing on its cell. All were declined.

Pinned by positive/thread-storage-declarations; the negative fixtures D505 names; runtime/thread-storage-holds-its-instance on every target, firmware's ordinary storage included, and runtime/thread-storage-under-libc; and abi/thread-storage-per-thread, four C threads counting at once in instances of their own on every hosted target.

D505 — A thread's instance lives as long as its thread, and is tracked as module storage

The tour said nothing. D496 leaves what an instance's address may outlive, since the instance ends with its thread, to the item that implements the form.

Chosen: an instance's address is valid while its thread runs, and every frame of that thread is inside that time, so the origin rules treat it as a module binding's: addr, an inout argument, a pointer kept in a local, and a result that returns it are all admitted as they are for module storage, and no new refusal applies. The thread's instances can keep the address only as an integer, since thread storage holds no pointer and no pointer union (L0328). What outlives the thread is another thread's storage or memory a thread hands another, and a pointer there is the program's to keep valid, as D446 leaves every reference shared with a thread to the program. A module binding can hold such a pointer only through a pointer union or an integer, since a module image holds no address and a module pointer has no zero image (L0328). The refusals of the declaration are L0347's, which already says what a link annotation may place, and L0328's, whose zero-image rule a binding with no value already meets; neither takes a code of its own.

The alternatives: refusing addr of thread storage, which also refuses every inout argument and so system.over of a thread's own space; tracking the instance as the outermost frame of its thread, which refuses returning its address from the routine that names it; and refusing a store of it into a module binding without link(thread), which the reference facts could carry beside D375's external alternative but which meets only a pointer union written at module level. All were declined; D772 later took the last.

Pinned by positive/thread-storage-declarations, the forms D496 admits; runtime/thread-storage-holds-its-instance, whose instance is written through an inout argument and through a pointer addr made, on every target; and the negative fixtures thread-storage-takes-no-value, thread-storage-is-mutable, thread-storage-takes-no-link-symbol, thread-storage-takes-no-section, thread-storage-places-no-routine and thread-storage-needs-a-zero-image.

D563 — An empty first directory does not hide a later root's module

The tour said that an import searches ordered roots [1420] and that the compiler receives roots rather than acquiring packages [1480]. D150 made a module a directory's direct .ldn sources, an empty module legal and the first complete directory the import's, so with --root=a --root=b an import x found a/x whenever that directory existed. When a/x held no source and b/x was the module meant, the program compiled against an empty module and said nothing: a device's register modules are directories beneath the device's own, so import rp2040 with the generated register modules' root first selected no description and built for the constrained reference.

Chosen: first-root precedence stands, and the directory the first root supplies is still the import's. When that directory holds no direct regular .ldn source and a root after it holds a directory of the same path that does, the import is refused as L0532, at the import, naming the empty directory, the later root and its directory, and saying to name that root first or give the empty directory a source. A later directory that is empty too is passed over for the next; an empty module that no later root rivals stays legal, and so does one rivalled only by empty directories. A first directory holding a source wins as before, whatever later roots hold. An import of the library searches the library alone (D275), so it has no rival. This amends D150's discovery paragraph.

The alternatives: passing over an empty directory for the next root, which makes adding a source to one root silently change which module another program reads, and gives an empty directory a meaning no other place in discovery has; merging the two directories, which D150 declined; and leaving the import alone with a warning, which still builds the wrong firmware.

Pinned by negative/empty-first-directory-hides-a-later-root, whose first root's device holds only a register module's directory, and the driver case an empty first directory names a later root, which holds the refusal, the next root's module beyond an empty second directory, and the empty module that stays legal with no rival, with an empty one, and when the first directory has a source.

D1055 — An import of a named entry's directory is refused

From [1410], [1420], D150 and D383.

The tour said that a module is one directory [1410]. D383 lets a rooted request name the entry module by its source files instead, "one module, as without a root", and D150 loads a selected directory once, so a cycle through the entry is legal. The loader knew the entry's directory only when the request named it. Named by its files, the entry was no module of the graph by any directory, so when a module it imported imported it back, the directory was selected as a new module and the same files were read and compiled a second time: two copies of every module binding and routine, the entry's main using one and the importer the other. refine run --root src src/app exited 2 and refine run --root src src/app/main.ldn exited 0 for one program, each with nothing reported.

Chosen: named files stay one module apart from their directory, as D383 says, and an import that selects a directory holding a named entry source is refused as L0616, at the import, naming the directory, the source and the request that would load it once: the directory as the entry, under --root. The directory is compared by spelling and by host identity. A named entry that nothing imports back is unchanged, with or without a root.

The alternatives: treating the named files' directory as the entry module, so the import resolves to it, which is right only when the files named are all of the directory's sources and would otherwise make an import of app mean a module holding part of app, against [1410]; doing that when they are all of them and refusing otherwise, which gives one request two outcomes by what else lies in the directory; and leaving the second copy with a warning, which still builds a program that differs from the same sources named by their directory.

Pinned by negative/import-of-named-entry, and the driver case an import of a named entry is refused, which also holds the directory form of the same program and a named entry nothing imports back.

D732 — A module the compiler adds is spelt as an import of it would be

The tour said nothing of how a source is named. The compiler adds two modules no import names: the hosted entry's platform module and, on a firmware target, the reference description (D543). Each was read from the library's own path, which is absolute, while an import of the same module through a root that names the library was spelt as that root spells it. A build report, a diagnostic and a source map without --debug therefore named one file two ways, depending on whether the program imported it, and a script reading the report's sources had to recognise an absolute path inside the checkout as a repository one.

Chosen: an added module's directory is the library's place in the search order joined with the module's path, so when a root names the library it is spelt through that root, exactly as an import of it is; when none does, it is the library's own path, as before. Which file is read does not change, only how it is named. D422's library names in maps and debugging information are decided by the module's path, and do not change either.

The alternatives: naming every library source absolutely, imported or not, which makes a report differ between two checkouts of the same tree; and stating the two spellings in the build report's documentation, which leaves every reader of a report to undo them.

Pinned by the driver case added modules are spelt as imports, whose firmware program imports nothing and whose root names the library by an alias, and the fixture execution case that holds the debugger workloads to their recorded source closures, which reads every source relative to the root.

D1056 — A module the compiler adds is not added when the program already holds its directory

From D150, D363, D543 and D732.

The tour said nothing. The loader adds the hosted entry's platform module, and on a firmware target the reference description, when no module of the program has that logical path. The entry module has no logical path, so when the entry was that directory, as it is for whoever checks the library's platform/linux on its own, the same directory was added again, which the module table refuses: refine check --root . platform/linux ended as an internal compiler defect. Named by its files, the module was read twice and its start symbol reported as colliding with itself.

Chosen: before adding such a module the loader asks whether its directory is part of the program already, by spelling and host identity, as an import does: as the entry module, as the directory of a named entry source, or under another import name. When it is, nothing is added and the graph notes the logical path as supplied, which is what a static link's check for its start module reads.

The alternatives: refusing the request, which would keep the library's own modules from being checked alone with the default link; and giving the entry module the logical path, which would make one directory both the unnamed entry and an importable module.

Pinned by the driver case the implicit module may be the entry.

D772 — A thread's instance's address is not kept in a module binding every thread reads

The tour said nothing. D505 tracks an instance's address as module storage's and declined refusing its store into a module binding without link(thread) until a program needed it. A store into a module pointer union, the one place module storage can hold a pointer, was admitted, and another thread could read the address after its thread ended.

Chosen: the reference facts carry, beside D375's external alternative, whether that alternative is a thread's instance: addr of link(thread) storage or of a field, element or slice of it, and every value the body takes from one by a copy, a join or a view. An assignment whose destination is rooted in a module binding without link(thread) and whose value carries such an alternative is L0314, relating the binding; the note says to keep the address in a local or pass it on. The rule holds on every target, firmware's ordinary storage included, so a program means the same everywhere. A call's result does not carry the fact, since a signature says only that a result outlives the call, and neither does an argument for an escaping parameter, which the callee may keep anywhere: both stay the program's, as D505 leaves every pointer one thread hands another.

The alternatives: a signature mark for a result that is thread storage, which every routine returning module storage would have to write or have inferred; refusing a thread's address for an escaping parameter, which refuses handing a thread's own buffer to a group or a call that keeps it only while the thread runs; and leaving the store to the program, which D505 took and this replaces. All were declined.

Pinned by negative/thread-storage-address-kept-in-module, a store of addr and one through a local that holds it; and runtime/thread-storage-holds-its-instance and positive/thread-storage-declarations, whose addresses stay in frames and arguments, still admitted.

D855 — An option takes no configuration atom's name

The discrepancy: D202 refused an option named after a compiler-owned atom and listed the atoms of its day, x86_64, arm64, rv64, cortex_m0, synthetic_32, little, big, debug and release. D264's systems, linux, darwin, freebsd and freestanding, and D660's rv32 came later and were never added, so option linux: bool = true was accepted, and the option was then read in the atom's place: compiler.os == linux compared a system with a bool.

Chosen: an option cannot take the name of any configuration atom a fixed fact is compared with: an architecture's, a system's, a byte order's or a build mode's. The refusal is D202's L0390, and its note lists every atom, read from the one table the configuration stage and name resolution both ask, so an atom a later target adds is refused without a second edit.

The alternatives: letting an option shadow an atom outside compiler. comparisons, which still makes compiler.os == linux mean something other than what it says; and a code of its own for the systems' names, when the rule and its route are D202's.

Pinned by negative/option-takes-no-atom-name, a system's, the freestanding system's and rv32; and negative/r491-option-compiler-atom, whose note now lists the whole set.

D880 — A refusal spells a type and a concept as the program reading it writes them

The tour said nothing of how a diagnostic names a type. The checker's refusals named a concept by its bare declared name and most named no type at all: io.format given an f64 was "this concrete type has no conformance to formattable", which names neither the f64 nor the text.formattable the program wrote, and L0342's list of a pointee's concepts said formattable and equatable for what a program writes text.formattable and cmp.equatable. A private type reached through a public alias, atomic.cell(u32) or blocking.host, could only have been named by the library's own cell_value or blocking_value.

Chosen: a refusal names a type or a concept as the source it is reported in would write it. A declaration of that source's own module, or one a selected import binds, is its name alone; one of a module the source imports is qualified by the name the import binds, the module's last path segment or the alias an as gives (D201); one of a module the source does not import is qualified by the last segment, as an import would bind it. Outside its module, a private type is written by the first public alias of its module, in declaration order, whose type is the private one applied to the alias's own formals in order, so cell_value(u32) is atomic.cell(u32). A pointer with one atom for its empty case is (atom | ptr T) (D189). A type whose identity is not yet interned, as one refused while its own actual is being built, keeps the words "this concrete type". The rule is one spelling, Landin.Checking.Spelling, which every refusal of the shape reads: L0318's missing conformance, L0319's erased provider, L0342's list of concepts, L0344's refused pointer and L0348's missing iterable conformance. A spelling made for no source, as the language server's hover and a pointer union's interned name are, is unqualified, as before.

The alternatives: qualifying every name by its module's whole path, core/text.formattable, which no program writes; spelling a type by the declaration that made its identity, which names the library's private cell_value for the public cell a program wrote; and recovering the spelling from the source text at the refused node, which knows nothing of a type that reached it by deduction, the f64 an any(addr ratio) erased among them.

Pinned by negative/format-float-names-its-type, whose refusal names f64 and text.formattable; negative/any-construction-qualifies-library-concepts, whose list holds the program's own display and the library's text.formattable; negative/atomic-builtin-on-cell-names-its-operations, whose pointer is ptr mut atomic.cell(u32); negative/r630-optional's (absent | ptr u32); and the re-recorded refusals of negative/atomic-cell-holds-unsigned-scalars, negative/generic-closed-parameter-refusals and negative/for-iterable-missing-conformance.

D1089 — A module value is typed before it is folded, in any order

The tour said at [0130] that order does not matter in a module, and [1940] that one module value may name another written below it. The fold read a float literal's width from what checking its declaration had noted, so a value checked before the float it names took that float for unknown: an impossible conversion passed and ended in an internal defect at emission, and a range subtype's value that was known and in range was refused as unknown. Swapping the two lines swapped the outcome.

Chosen: while module declarations are checked, a module binding the fold reaches is given its types first, by the check its own turn would make, which then is not made twice. A chain that comes back to a binding already being typed folds as it did, and [1940]'s report of a value worked out from itself is unchanged.

The alternative: a pass typing every module initializer before any is folded. Typing one already folds others, for the bound of an array type and for a known conversion, so the order would only move. It is declined.

Pinned by negative/module-float-declared-below-is-known and runtime/module-float-declared-below-is-known.

D2174 — An unresolved prefix names the import the file is missing

The discrepancy: [1450] gives every file of a module its own imports, and a file using a name its sibling imports was L0201 with [1860]'s note to check the spelling; refine-build met twenty splitting one module in two. A qualified name whose module the file does not import, mem.out_of_memory without import core/mem, was L0201 naming out_of_memory in a type position, or L0304 "this type argument names no type", neither saying that mem is a module the file could import.

Chosen: a prefix of a qualified name that resolves to nothing is asked two questions before it is called a misspelling. If another file of the same module imports the name, L0201's note says which file and that each file has its own imports; if exactly one library module the program reaches has the name as its last segment, and the file imports that module under no name, the note names it. Either way the message names the prefix, the refusal is L0201 also where L0304 stood, and the first such prefix in the file carries the import as an exact fix, after the file's last import or at its start, so that the fixes of one file never write it twice. The answer comes from the module table and the resolution table, without the host; a library module the program does not reach is not known, and its prefix keeps the misspelling note.

The alternatives: reading the library's directories from the checker, which would make a stage ask the host; offering the fix at every use, which the fixes of one file could not all apply; and keeping L0304 at the type argument, whose rule is about a form, not a name.

Pinned by negative/sibling-file-import-is-named, negative/library-module-prefix-names-its-import, in a parameter's type, a type argument and a failure set, and negative/library-module-concept-prefix-names-its-import, a prefix the resolver reads; each fixed program compiles with no report.

Decisions: The toolchain, C and the machine

The C boundary, the machine directives, the entry point, and the contract an optimization has to keep.

D267 — Library source namespaces declare target availability

Chosen: core/* is the shared freestanding library. Every public interface of core/cmp, core/diag, core/fault, core/io, core/map, core/mem, core/panic, core/pool, core/region, core/sort, core/spill, core/text, core/tree and core/vec is available on every target. Target-specific implementation does not change its interface or introduce hosted authority. The memory-backed I/O provider remains part of core/io; importing it does not select hosted I/O or allocation.

hosted/* is available only where the target has a hosted system. The current modules are hosted/heap and hosted/system, written once over platform/posix (D297). platform/libc declares the C library, platform/linux Linux's system calls and the static process entry (D279), and platform/posix the POSIX facilities over both; all three are scoped to the hosted POSIX systems and refused by name on firmware. hosted/system needs no alias beside core/io (D347). platform/* holds scoped freestanding interfaces. platform/c admits only enabled SysV AMD64 LP64, Darwin AAPCS64 LP64, AAPCS64 LP64 and RISC-V LP64D C signature ABIs and, since D920, Cortex-M's AAPCS32 at every level; equal pointer width does not enable it. RV32's ilp32, Xtensa's windowed ILP32 and synthetic-32 remain refused. platform/cortex_m admits the Cortex M-profile family, including armv6-m, armv7-m, armv7e-m and armv8-m.main feature levels, and refuses hosted architectures. Existing compiler.assert source guards remain. No generic package manifest is introduced.

Availability is a property of the written source namespace, independent of module selection. Since D275 these namespaces resolve from the compiler's own library whenever it has one, so a project root no longer supplies them. It is checked for rooted imports and explicit-file compatibility requests before name resolution. An unavailable import reports L0015 once at the import, names the module and states its target requirement; checking stops without later missing-name errors. Names hosted and platform remain ordinary identifiers. Imports are the source prelude, not declarations within fixed arms; inactive declarations cannot make an import available or unavailable. Runtime helpers are selected only by reached operations; moving modules does not add an implicit import.

Alternative: using pointer width to admit C aliases would enable an ABI whose transport is not implemented. Relying only on provider bodies would let a harmless project override bypass a firmware refusal. Namespace checking preserves root selection while making availability explicit.

Pinned by negative/library-platform-cortex-m-reference-hosted, the driver case source namespaces enforce target availability, the firmware refusal negative/library-hosted-system-rv32, and the separately sized shared-library consumers.

D575 makes platform/cortex_m itself available on every target, D687 platform/riscv and D1021 platform/xtensa; D1022 refuses a platform module that has no scope.

D575 — platform/cortex_m declares nothing off an M-profile target

The tour said at [1480] that platform/cortex_m is available on M-profile targets, and D267 refused it by namespace elsewhere, with a compiler.assert in the module besides. Landin has no conditional import, so a program written for every target could not call cortex_m.wait_for_interrupt from a fixed if compiler.arch == cortex_m0 arm: importing the module at all refused the hosted targets, and prototype 5's tick wrote its WFI in an assembly block of its own.

Chosen: the module platform/cortex_m is available on every target and declares its operations only on an M-profile one, inside one fixed if compiler.arch == cortex_m0, as platform/linux declares nothing off Linux (D350). A hosted program may import it and call it from an arm that selects Cortex-M; a call outside such an arm on a hosted target is L0201, saying the module declares that routine only for another target. Its submodules keep D267's scope: platform/cortex_m/reference is a device description (D543), and a description has no meaning on a hosted target, so it is still refused there by name as L0015.

The alternatives: a conditional import, which the language does not have and D350 declined for platform/linux; a compiler fact for the M profile beside compiler.arch, which the arm already states; and keeping the namespace refusal and writing the shared program's firmware arm in assembly, which duplicates the library's operations.

Pinned by runtime/atomic-tick-firmware, which imports platform/cortex_m on every target and waits for an interrupt through it on Cortex-M0, negative/library-platform-cortex-m-hosted, a hosted call outside an arm refused as L0201, and negative/library-platform-cortex-m-reference-hosted, the description still refused by namespace.

D12 — The first hosted path accepts one main shape

The tour said that hosted main follows the system C ABI, calls the no-argument form ordinary and keeps the C argc and argv form available [1650]. Its derived hosted capability example shows public entry: () -> (code: i32) acquiring the roots, with the application's public main: () -> (code: i32) delegating to it [1660]. D208 specifies how hosted startup initializes the argument root before that no-argument main begins. The example does not say which shape the first native slice must implement.

Chosen: [1970]. The minimal Linux x86-64 path accepts one public no-argument main and returns its host status through the one named i32 return code. This is an implementation boundary for that slice; it does not remove [1650]'s C form from the language.

The alternative: implement the C argc and argv shape in the first slice too, permit a different public function to be selected by the build, or treat the return's name as immaterial. Each is workable, but makes the first executable slice carry an entry-selection or argument representation rule it does not need; freestanding builds already have the explicit-entry rule [1650].

Pinned by runtime/constant-return-exits-with-its-code, runtime/add-exits-with-its-sum, and the driver suite's L0502 refusal of a hosted program without public main: () -> (code: i32).

D203 — C convention and variadicness are recursive signature facts

The tour said at [1000] that function values have structural signatures, at [1570] that a convention is selected explicitly, and at [1580]/[1600] that imports and exports meet C. It did not separate convention from bodylessness, visibility or linker spelling.

Chosen: [1800] and [1975] separate those facts. Named private and public C definitions use extern(c); C function types carry that prefix too. Only a final ellipsis after fixed parameters marks varargs. A symbol literal follows the C convention when one is written, or stands alone before a native function name; the standalone form retains the native convention and ordinary body requirement. The decoded link name is a logical external identity with the safe ASCII shape [A-Za-z_.$][A-Za-z0-9_.$]*. Whitespace, @ suffixes and arbitrary assembler expressions are excluded. [1975] maps that identity through the platform prefix before target-assembly quoting; no source spelling bypasses that mapping. ELF preserves it and Darwin adds exactly one underscore. C signatures cannot declare Landin failures. Agreement recursively includes convention and variadicness, independently of labels and symbol names. Variadic calls are positional-only and limit the unnamed tail to scalars, pointers and fixed C callbacks. Fixed callback signatures and nonempty C array fields delimit the selected subset explicitly rather than borrowing C extensions accidentally.

The alternative was to infer C transport from an import flag, public name, or a matching machine shape. That loses the convention as soon as the function is stored or passed indirectly and silently miscalls nested callbacks. A new error bridge or implicit callback thunk would change the language contract; both are declined.

Pinned by positive/external-scalar-c-boundary for the retained bodyless import form, positive/r440-c-signatures for C types, definitions and the standalone native link form, and negative/r440-link-does-not-change-convention for the independence of linkage and convention. The target-contract suite pins ELF/Darwin spelling, leading underscores and punctuation; the lowering seam keeps an explicit native _entry identity equal across both 64-bit targets. negative/r440-c-variadic-identity and negative/r440-checker-recursive-inner-signature pin variadicness and convention as structural identity, down to an inner callback's element; negative/r440-c-error-channel, negative/r440-c-variadic-aggregate-tail and negative/r440-c-variadic-label the refusals at the C boundary; and negative/r440-link-assembly-expression that a link override is a symbol spelling.

D204 — C layout and transport follow one selected target ABI

The tour said at [0750] that C layout keeps C offsets, and at [1580] that a foreign declaration describes the actual C value. It did not specify the data model, recursive aggregate classes or target guard on C scalar aliases.

Chosen: [1975]'s Linux SysV AMD64 LP64 matrix, signed C char, recursive nonempty C structs and separate INTEGER/SSE banks define this boundary. compiler.c_sysv_lp64 (and D226’s compiler.c_darwin_lp64 and D256's compiler.c_aapcs64_lp64, and D265's compiler.c_riscv_lp64d) is a fixed bool supplied by the selected ABI; platform/c asserts it and supplies ordinary aliases rather than new scalar kinds. Register exhaustion rolls an aggregate wholly onto the stack; MEMORY results use the C hidden destination. The internal Landin convention is unchanged.

The alternatives: using host Ada layout breaks cross compilation. Guessing LP64 from 64-bit pointers admits other data models. Flattening every aggregate into integer words breaks SSE and mixed values; passing large records by the internal pointer carrier is not C by-value passing. Universal boxed records would impose unnecessary storage and indirection on the small target. All are declined in favor of target-selected layout and signature-selected transport.

Pinned by positive/r440-c-aliases, positive/r440-external-float and runtime/r440-c-aliases for the ordinary aliases and admitted f64 signature. abi/r440-native-aggregates, abi/r440-native-banks and abi/r440-sret-pointer-observation pin aggregate transport in both directions, the independent register banks and the hidden result pointer; abi/r440-native-callbacks, abi/r440-native-varargs and abi/r440-varargs-pointer-callback pin callbacks and the variadic tail.

D205 — Headers describe ABI shapes, not lifetime policy

The tour said at [1580] that declarations were handwritten and no header was read. That workflow cannot meet a complete C binding's pressure without repeating signatures manually.

Chosen: the deterministic Clang-AST generator described at [1975], refine bindings (D820), extracts C declarations and emits explicit adapters for forms outside the native grammar. Policy fills semantic gaps and extraction schemas; it does not replace signatures by hand. Enums retain C integer values; C unions and bitfields are not Landin tagged variants or hardware packed fields. Globals and TLS use accessors; nullable callbacks require their own code-pointer representation. Native receiving-varargs definitions are refused in favor of schema-defined generated C entries. Ownership, nullability, from, retention, foreign unwinding and callback-state validity are never inferred from an ordinary C prototype.

The alternatives: parsing headers inside refine couples the language frontend to C preprocessing. A C/LLVM backend replaces the chosen native backend rather than solving bindings. Adding native union, bitfield, TLS and va_list syntax merely for adapters widens the language and burdens the freestanding path. Handwritten signature replacement disguises the old workflow as generation. These alternatives are declined.

Pinned by refine bindings, the bindings suite, the Clang-backed bindings/test.py and abi/r440-bindings-generated, with negative/r440-c-variadic-definition for the receiving variadic definition that has to go through a generated adapter instead.

D207 — Foreign failure detail stays in the provider

D288 keeps the remembered value in a cell the handle names rather than in the provider value, which a callee could only change in its own copy. Handles from system.new() record into the calling thread's cell, a link(thread) binding of hosted/system's (D503, D509); system.over gives a caller a cell of its own in a declared system.space. The thread-local meaning the alternatives below protect is therefore kept for every handle: a thread reads only its own failures, whichever handle it calls through. Until thread storage existed it was kept by ownership, and code that shared the process's one cell shared its last error as it shared its descriptors.

The tour said at [0950] to represent foreseeable conditions directly and at [1660] to pass host authority explicitly. Prototype 2's diagnostic sink and prototype 4's replaceable world both need detail without a second error system.

Chosen: [1975]'s immediate errno capture, explicit system state and system.last_errno preserve the exact terminal libc detail while ordinary not_found, no_access and io_failed remain payload-free atoms. On Darwin and FreeBSD the provider reads the calling thread's errno_cell through platform/libc immediately after the failing call and before any other host call (D276); on Linux a system call's result is minus its errno, so the detail is captured from the result itself (D279). A successful operation clears the remembered detail; a local refusal invents no errno. Interrupted open/read/write attempts retry only under the selected platform's no-progress guarantee, and writes resume after the completed prefix. Close consumes its handle once even if it fails; EINTR does not authorize retry.

The alternatives: reading errno after cleanup can report the cleanup's failure instead. A global last-error value loses the capability boundary and thread-local meaning. Retrying every EINTR can close a reused descriptor or repeat completed output. Adding exception payloads changes the error model rather than preserving foreign detail. All are declined.

Pinned by runtime/r440-errno-detail and runtime/r440-io-partial-progress for the explicit-state and progress contracts; by abi/r440-errno-interposition and abi/r440-errno-thread-local on Darwin and FreeBSD, which hold errno and the partial-I/O policy under C interposition and across threads; and by runtime/linux-system-calls and abi/linux-file-identity on Linux.

D208 — Hosted argument capabilities retain one C startup root

The tour said at [1650] that the hosted world retains the incoming argument table and that C's argc/argv entry remains available, and at [1660] that the entry point mints the host capability. It did not say how a C-owned entry starts Landin exports, when the argument root exists, or how long its backing lives.

Chosen: hosted/system defines the public C entry void _landin_host_initialize_arguments(int argc, char **argv); in source, which D311 gives the environment's table as a third argument, and under D276 the ordinary no-argument Landin main calls it before its body when the program defines it. A C-owned startup calls it with its real carriers before system.new() or any thread that may acquire the argument capability. Exports and callbacks never call it implicitly. File, stream and heap work needs no argument root, and retaining core/io alone does not initialize one. Under a static Linux link, platform/linux's _landin_start is the process entry (D279, D280); it calls the hosted main as C's runtime would, so main still initializes the root as here.

The first nonnegative-count, non-null-table call establishes one exact (argc, argv) root without copying or allocation. An identical later call is a no-op; an invalid call, use before initialization, or replacement of either root carrier traps. The C owner retains the table and strings for as long as any derived Landin world, view or callback can use them. The published sequence omits argv[0]; its count is max(argc - 1, 0), and retained-state indexed lookup checks both the bound and selected pointer.

The alternatives: initialize every export or callback, fabricate an empty argument table, copy the vector into hidden allocated storage, permit root replacement, or gate every hosted file, stream and heap operation on argument startup. The first has no authentic carriers and breaks reentrant callbacks; the second mints a false capability; the third adds an allocator and an unstated release lifetime; the fourth can dangle already published views; and the last prevents startup-independent file and stream work. All are declined.

Pinned by abi/r440-native-startup-initialized, abi/r440-native-startup-empty, abi/r440-native-startup-uninitialized and abi/r440-native-startup-replaced, which pin one initialization across callbacks, an empty table that is still nonnull, the trap before C initializes the root and the refusal to replace a live one.

D211 — Optimization changes implementation, not authority or outcomes

The tour said at [1310] that specialization was optional but promised one erased body for every representation, automatic specialization of a sole instance and disappearance of evidence. Those promises did not distinguish semantic instantiation, proof, profitability and the physical hidden ABI.

Chosen: semantic instantiation remains necessary without optimization. Optional dispatch specialization requires proof that every retained incoming path supplies the concrete table, including separate parent/concept evidence. Expected-instance metadata alone is not that proof. Address-exposed instances and unknown incoming evidence remain unspecialized; heterogeneous any calls remain indirect. Public/exported identities, function addresses, image relocations and evidence-provider references all participate in exposure. Recursive evidence proof is conservative and cannot assume its own conclusion. No speculative guard, clone or fallback runtime allocation is required.

The bootstrap specializes proved entry calls in existing concrete bodies. It retains their hidden aggregate-result destination and the evidence parameter positions selected for that body under D144, error convention and calling convention. Dispatch specialization does not remove a used evidence position. A replaced indirect call must have exactly the provider's physical argument/result meaning. Evidence size and alignment remain available with specialization off. Physically equal bodies may share only after complete retained machine meaning, relocation, convention and observable address-identity checks; IR spelling equality alone is not permission to fold different code.

Profitability uses E = min(32, proved entry-call sites) and L = min(4, maximum source nesting depth at those sites). Let T = min(16, ceil(sum of represented target bytes / target pointer bytes)). The benefit score is B = 8 * E * (1 + L) + T. Under size and none, growth G is the sum of the instance's weighted IR operations: calls cost 6, other memory/control operations 2 and other scalar operations 1. These are policy estimates, not machine bytes. Under speed G = 0: the rewrite only turns an evidence load and its indirect call into a direct call inside an instance that exists either way, and adds no operation. Size and none keep the charge because there the unspecialized instances of a template may share one evidence-driven body, which specializing them splits into one body each. For multiple eligible normalized instances of one template, speed requires B >= G; size and none require B >= 4 * G. One eligible normalized instance bypasses profitability, never proof. all bypasses profitability for every eligible instance; off performs no dispatch specialization. Count instances, not repeated calls to one instance. Caps and target-byte arithmetic make the policy deterministic without a runtime profiler or per-object machinery.

--optimize=none|size|speed defaults to size and independently selects baseline simplification, selection and allocation. --specialize=off|auto|all defaults to auto. --build-mode=debug|release selects source configuration, not these axes. The explicit reference profile is none/off; none/all is meaningful. Malformed or repeated controls are misuse. Optimization controls require a source compilation and cannot accompany help/identity; a build report without emission holds only what was checked (D383). Checking without emission still checks the same language.

--build-report=PATH requests deterministic typed JSON separate from source diagnostics, written only after successful emission/tool completion through the platform interface. A write failure fails the request. Collisions with source snapshots, assembly, executable or source-map paths are refused before artifact writes. The source adapter retains exact path bytes in hexadecimal, source-content SHA-256 and item origins; equivalent inputs and controls produce byte-identical reports without clocks or temporary output paths. Routine metrics are emitted instruction sites and frame/register/spill/save and static stack-traffic counts, and each routine's own stack, every one filled with one meaning on every backend (D791). Actual assembled text bytes are measured externally by compiler/tests/quality/check.py, not fabricated from an IR count. Each item carries its name, the spelling its symbol has (D417, D421), and left_indirect lists every evidence call the emitted program still makes through a table: its routine, its source line and column, the provider the table holds when it is concrete, and why it stayed indirect in words, a call through any, --specialize=off, an instance whose address is taken or whose callers' tables are unproved, or auto's cost test. For a successful Cortex-M0 executable link, firmware adds measured flash_used and static_ram_used as the highest ELF PT_LOAD physical payload end from flash origin and RAM memory end from RAM origin, respectively. The paired limits and remaining bytes describe the selected 32 KiB flash and 12 KiB static RAM budget, with the other 4 KiB reserved for stacks. These occupied extents include alignment gaps, flash copies of initialized RAM, retained runtime helpers and linker veneers. runtime_members lists the selected libgcc archive member names from the linker map, without toolchain paths. Assembly-only reports have no firmware field.

Every optimization preserves observable side effects, error/cleanup order, traps, exact integer widths and floating-point signed zero/NaN behavior. A comparison that contradicts its operand type gives the proof pass no numeric bound outside that type; an unreachable branch does not change the program's outcomes. No floating reassociation, fast-math, invented no-alias fact or undefined-behavior license follows from unchecked. D187 removes only its named lexical check edges and establishes no positive fact for a later pass. Unused operations that may trap or touch memory cannot disappear merely because their value is unused. Inputs and outputs of each transformation remain verified IR.

The alternatives: universal monomorphization, metadata-only devirtualization, a profile-guided runtime, erasure of evidence used by the checked body, or new optimizer freedom inside unchecked. They respectively make code duplication semantic, confuse expected and incoming evidence, add target machinery, break indirect and aggregate calls, or change existing programs' outcomes. All are rejected. Charging no growth at every objective was also rejected: at size and none it would give up the one shared body the unspecialized instances can use, for a direct call the objective did not ask to buy. Charging the whole instance at speed, as the bootstrap first did, declined every template used at two or more types whose entry calls were few, although the rewrite there grows nothing.

Pinned by runtime/generic-evidence-indirect, runtime/optimizer-unsigned-empty-branches, the ir opt case contradictory bounds, runtime/specialization-speed-growth, runtime/generic-composed-evidence, runtime/generic-erased-aggregate-try, runtime/any-generic-storage, the opt driver fake-platform cases and compiler/tests/quality/check.py. The fixture harness requires each original runtime and ABI oracle under none/off, size/off, size/auto and speed/auto; focused generic/erased cases additionally run none/all and speed/all.

D339 — At speed a small direct call is a copy of its routine

The tour said at [1550] that the compiler optimizes a verified, target-neutral representation, and D239 left inlining to D211's optimizer, with nothing in source to ask for it or refuse it, at a time when no pass inlined a call. Copying small routines into their callers by hand, with every check kept, then took a fifth to a third of the time of programs that spend it in calls: binary-trees' allocator chain and its child count, a word counter's three-line test of a byte, a map's lookups.

Chosen: at --optimize speed, before simplification, a direct call is replaced by a copy of the routine it names when that routine has a body in the program and nothing takes its address (no function value, image or evidence entry names it, and it is not an entry, an import or an export), it is not the routine making the call, it uses the ordinary convention and Landin's own transport, it returns, it is not variadic, it has no placement and no assembly block, every aggregate it is passed or returns has a nominal shape, and it weighs at most 64 of D211's weighted operations as lowering made it, counted since D2100 as the routine will run. The copy's own calls stay calls: one level. A routine grows by at most the larger of 512 and its own weight; calls inside loops are copied first, then the lightest. none and size copy nothing, and neither does Cortex-M0, whose backend does not read the objective. One pass measures every routine and one copies, so the work is linear but for ordering each caller's calls.

A copy does what the call did. Its arguments were evaluated where the call stands, left to right; each is stored into the copy of its parameter, and a by-value aggregate is copied, or cleared for D97's zero carrier, as the routine's entry would have done it. When the routine only reads the aggregate and nothing could write the caller's storage while the copy runs (no addr of it is kept, no slice is over it, and no address of it reaches a parameter that may escape), the copy reads it where the caller keeps it, as Landin.IR.In_Place would have the routine read it. A parameter given a constant is read as that constant. Each return copies a stored result to the storage the call named, as the routine's way out does, and goes on with the rest of the caller's block; the caller's values that crossed the call wait in slots, or are made again when they are constants. A routine that can fail is copied only where its call is followed by lowering's failure test, nothing else reads the call's status, and the value the call stored is read only on the succeeding way: each fail stores its atom and goes the test's failing way, and each return the other way, which is the choice the test would have made, so propagation and call-site recovery are unchanged; a routine that declares errors and never fails stays a call. Every operation of a copy is the routine's own, with its source site and its check, in the order the routine ran them, so each trap is where and when the call's would have been and D232's site is the routine's; a check is removed only when, as anywhere, it is proved unable to fail. Cleanup is the routine's own code and runs where it ran, before the caller's recovery.

Each copied block, slot and source alias names the copy it belongs to, which names the routine, the call it replaced and that call's scope. A native debugger reads it as DWARF4's DW_TAG_inlined_subroutine: the routine is described once more, abstractly, with DW_AT_inline, its parameters, locals and lexical blocks; each copy, inside the caller's lexical block that held the call, has that abstract origin, its address ranges and the call's file, line and column, and its own parameters, locals and blocks with locations in the caller's frame. A stop in a copy is a frame of the routine inlined into its caller's frame, which shows its own variables as it would across a call; a backtrace has both frames; a breakpoint on one of the routine's lines can stop in a copy, and a step enters and leaves one as it would a call. The routine's own out-of-line description is unchanged, and at none and size, where nothing is copied, so is every debugger session.

The alternatives: copying at size, which grows the code an objective asked to keep small, for gains measured at speed, and would change the size debugger sessions; copying through the copies' own calls, more than one level, which compounds growth and compile time and nests inlined frames, for gains the measurements credit to the first level; and a source annotation, inline or noinline, which D239 withdrew and which stays withdrawn, the choice being the optimizer's from size and objective. Also declined: copying a routine whose address is taken, D211's exposure rule; merging a copy's first block into its caller's, so that forwarding could reach across it, because a block's scope is how a debugger tells which routine an address belongs to, and constants reach the copy as constants instead; and a bound measured after simplification, which would need the routines simplified first. The bound was measured: 40 left part of binary-trees' allocator and a word counter's test calls, and 96 began to copy routines with loops whose branches then predicted worse, slowing fannkuch-redux and a map's lookups; 64 kept the first gains without the second losses, and the few per cent it costs elsewhere come with fewer instructions run, from where code now sits.

Pinned by runtime/inline-copies-fail-and-clean-up, runtime/inline-copies-trap-in-place at every profile, the ir opt inlining cases, the leaf-ready stop in compiler/tests/debugging/registers.ldn through GDB on Linux and LLDB on Darwin at speed, and the scaling measure's speed lane.

D226 — Darwin C transport is a separate platform contract

Chosen for Darwin arm64: [1975] enables Apple's arm64 C subset with its own compiler.c_darwin_lp64 fact, aggregate/HFA transport, x8 indirect results, fixed stack scalars and HFAs packed at natural size while any other stack composite takes whole eight-byte slots, and stack-only variadic tails. The scalar alias layer admits either supported LP64 ABI explicitly. The binding generator verifies the selected Apple triple, macros, sysroot and C layouts. Logical link names keep the isolated target contracts' platform-prefix rule. Static archive directives resolve exact files through the selected driver before Darwin linking.

The alternatives: treating LP64 as SysV would misplace floats, aggregates, results and variadic arguments. Passing ordinary -lNAME could select a dylib. Cross-linking Mach-O on Linux would not establish native execution evidence. None is adopted. C boundary eligibility, origins, errors and cleanup semantics remain unchanged; source debugging and full hosted parity have separate gates.

Pinned by compiler/tests/darwin/transport.ldn, varargs.ldn, the native platform program and the generated-binding/archive execution runner, together with the shared native aggregate and callback differential cases, and abi/darwin-stack-composite-slots for which stack arguments pack. They run natively on a Mac. The gate runs abi/darwin-stack-composite-slots on Linux and compiles, links and executes it on macOS arm64 in its darwin-parity job through compiler/tests/darwin/check.py --parity.

D227 — Explicit memory events, synchronization and external writers

Chosen for the concurrency memory model: [1620] supplies the scalar primitives below. Their names are compiler members, not ordinary callable values. Each call evaluates its runtime arguments once, from left to right. Ordering operands are the fixed compiler atoms compiler.relaxed, compiler.acquire, compiler.release, compiler.acq_rel and compiler.seq_cst, usable only in these positions. No runtime ordering, consume, optional pointer, signed/float/bool carrier, subtype, distinct wrapper, aggregate atomic or implicit library lock is enabled. The pointed-to scalar must be exactly u8, u16, u32 or u64; writes require ptr mut T. Initialization may use ordinary storage before publication. All participants subsequently use the same width and address for an atomic object until synchronized retirement; an overlapping ordinary or differently sized access is not an atomic access to that object.

Call Result Permitted orderings
compiler.atomic_load(p, order) loaded T relaxed, acquire, seq_cst
compiler.atomic_store(p, value, order) none relaxed, release, seq_cst
compiler.atomic_exchange(p, value, order) previous T all five
compiler.atomic_add(p, value, order) previous T; stored sum wraps at T's width all five
compiler.atomic_compare_exchange(p, expected, desired, success, failure) observed T; stores desired iff observed equals expected success: all five; failure: relaxed, acquire or seq_cst, no stronger than success
compiler.volatile_load(p) one loaded T no order argument
compiler.volatile_store(p, value) none; one written T no order argument
compiler.compiler_barrier() none compiler ordering only
compiler.thread_fence(order) none acquire, release, acq_rel, seq_cst
compiler.device_barrier() none target's full system data ordering barrier
compiler.completion_barrier() none target's full data completion barrier

Compare-exchange is strong: no spurious failure; its returned old value tells the caller whether the comparison succeeded. Failure acquire is legal only with success acquire, acq_rel or seq_cst; failure seq_cst only with success seq_cst. Atomic addition has no overflow trap even outside unchecked. All memory accesses require natural alignment equal to the scalar width. Misalignment traps before the access, also in unchecked; pointer validity, live writable backing and memory attributes remain caller obligations [0430]. Static type, permission, arity, ordering and target refusals use L0344. There is no declared error result, recovery arm or runtime library fallback.

Linux x86-64 and Darwin arm64 implement all rows through eight bytes, for ordinary coherent RAM. The Cortex-M0 contract admits one-, two- and four-byte loads/stores and barriers, and refuses exchange, add and compare-exchange: ARMv6-M has no exclusive instruction pair. It does not silently substitute interrupt masking, an unavailable libatomic helper, or a stronger core. The Cortex-M backend emits that admitted subset. Synthetic-32 admits no memory intrinsics. RV32 admits aligned one-, two- and four-byte atomic loads/stores and thread fences at every level, and refuses every eight-byte atomic access with L0344: no RV32 core has one. Its exchange, add and compare-exchange are its level's (D690): admitted at rv32imac, whose A extension has them, and refused with L0344 at rv32imc, which the ESP32-C3 executes. It gains no implicit libatomic or interrupt-masking fallback. Device addresses must use volatile accesses, never CPU atomics. Even a CPU instruction that is atomic in RAM says nothing about peripheral bus semantics.

Events and happens-before

A CPU execution context is a thread or interrupt handler, not a new Landin function type. Within a context, evaluation order establishes sequenced-before. Two memory actions conflict when their byte extents overlap and at least one writes. A data race is a conflicting pair in different CPU contexts, not ordered by happens-before, unless both are accesses to the same atomic object. Naturally aligned ordinary and volatile instructions are not atomic-language operations. Volatile supplies no inter-thread synchronization.

Every atomic object has one total modification order, consistent with happens-before. A read takes its value from an actual modification, including initialization; it cannot read a modification that happens after it. Atomic write/write, write/read, read/write and read/read coherence preserve the order of modifications across happens-before. A read-modify-write reads the immediately preceding modification and inserts its successful write indivisibly. A failed compare-exchange is a read and creates no modification.

A release write synchronizes with an acquire read that reads that write or its release sequence: the contiguous following read-modify-write modifications of that object. An intervening plain atomic store ends that sequence. A release fence before a write synchronizes with an acquire read of that write or its release sequence; a release write similarly synchronizes with an acquire fence after such a read. Release-fence/write/read/acquire-fence is also a synchronization path. A fence alone, with no such observation, does not synchronize contexts. Acq_rel combines acquire and release; relaxed gives atomicity and coherence but no synchronization edge. Seq_cst loads acquire, stores release, and successful read-modify-writes do both; a failed comparison uses only its failure read ordering. A seq_cst fence has acquire and release semantics in addition to the SC constraints below.

Happens-before is the transitive closure of sequenced-before, these synchronizes-with edges, and explicitly specified platform synchronization. For hosted threads, successful creation synchronizes with the first action of the new thread: actions sequenced before creation happen-before its actions. The thread's completion synchronizes with successful return from joining that thread: its actions happen-before actions sequenced after the join. Failed creation or join establishes no such edge. These edges also order ordinary memory; accesses made concurrently between creation and join still need their own synchronization. The interrupt exclusion protocol below supplies another platform edge. Happens-before is acyclic. Sequentially consistent operations and fences additionally have one total order consistent with happens-before and each object's modification order. For precision, A is coherence-before B on one atomic object when A precedes B in modification order, A supplies B's read value, or A reads a modification that precedes B in modification order; take the transitive closure of these edges. Successful RMWs have both read and write roles, without a self edge. For every coherence-before pair A, B, the SC total order S must satisfy:

  • If both A and B are SC, A precedes B in S.
  • If A is SC and B happens-before an SC fence Y, A precedes Y in S.
  • If an SC fence X happens-before A and B is SC, X precedes B in S.
  • If an SC fence X happens-before A and B happens-before an SC fence Y, X precedes Y in S.

Together with coherence, these rules determine the eligible SC read sources, including intervening non-SC modifications; fences alone do not manufacture a synchronizes-with edge. No read can justify its own producing write through a cycle of value dependencies. The implementation may strengthen orderings; programs cannot require that a weak outcome actually occur.

A race is outside the deterministic-value guarantee, not C/C++ undefined behavior and not permission to infer race freedom. Ordinary accesses may be coalesced or kept in registers between synchronization boundaries; a racing poll without a boundary has no eventual-visibility promise. Where a racy machine access occurs, its bytes come from actual writes or the prior storage contents; tearing can combine bytes. There is no invented value or write, retroactive removal of earlier observable behavior, or assumption that the racing path is unreachable. Subsequent use of a raced invalid address remains [0430]'s ordinary unsafe-pointer boundary. Races supply no additional optimizer license, and unchecked still removes only D187's named checks.

Volatile, compiler knowledge and hardware ordering

A scalar volatile primitive performs exactly one access of the written width: no removal of a discarded load, duplication, merging, widening or splitting. Two such accesses are sequenced in source evaluation order at the compiler boundary. In the selected ordinary RAM, each admitted naturally aligned scalar load or store is a single-copy, nontearing CPU access at that width. This does not make a sequence atomic or establish happens-before. MMIO bus atomicity and peripheral tearing are separate device premises; no RAM instruction guarantee is transferred to an arbitrary bus bridge. Unsupported wider accesses refuse. A register image read-modify-write remains two separate events and can lose an intervening hardware or interrupt update. D228 defines packed image fields and explicit register-image access modes without changing this memory model. The generated register(t, ...) and volatile ptr surfaces remain separate from these scalar intrinsics. A fresh local image construction cannot preserve previous device bits without an explicit read. Whole-image stores do not imply such a read. Unnamed encodings remain raw bits until extraction, which validates membership; they never authorize unreachable-code assumptions.

All explicit memory primitives above are full compiler memory boundaries. Ordinary stores before one must be materialized, and ordinary loads after one must use memory anew wherever external writes can reach the storage. This includes module data, address-taken locals, ordinary slices, escaped buffers, byte/integer-created aliases and aliases through calls or evidence. An immutable view controls writes through that view; it never proves that DMA, another alias or another context cannot change its backing. The compiler must not infer disjointness from different pointer element types. A retained scalar value loaded earlier remains that value, rather than changing in place.

Opaque foreign/assembly calls have the same memory effect; known calls and specialized/evidence-dispatched bodies must preserve every such effect. Aggregate copies are ordinary byte transfers, not atomic snapshots. They may tear, but must not cross a boundary or overwrite bytes outside their destination. No optimizer may move, remove or merge the observable accesses or boundaries because a result is unused, a function was specialized, or a source region is unchecked. Proven private computations can still be optimized.

A compiler barrier emits no required CPU instruction and orders no bus traffic. A thread fence orders coherent CPU memory, with the observation rules above. A device barrier also orders explicit accesses in the target's full system scope; a completion barrier waits for the target-defined completion of prior explicit accesses. Neither establishes that a device has finished a command, flushes a cache, or substitutes for a documented status/acknowledgment protocol. The target guide specifies the selected instructions and memory attributes.

Interrupts and DMA through an ordinary slice

On the selected single-core M0, a critical section saves PRIMASK, disables maskable interrupts, and restores exactly the prior PRIMASK on every exit. Its entry and exit are opaque compiler memory boundaries. Ordinary accesses shared only with those excluded handlers are serialized: a completed handler precedes subsequent protected CPU accesses; protected writes precede a handler admitted after restoration. Nested sections preserve the prior mask. This contract excludes NMI, HardFault, unmasked priorities, other cores and DMA. A handler must not spin waiting for interrupted code to release a lock. Interrupt entry belongs to the compiler-owned firmware rules, and the ordinary target CPU module to the freestanding core; this decision introduces neither a scheduler nor a second Io implementation.

Prototype 1 deliberately keeps escaping buf: []mut u8, retained as ordinary []u8. The origin check prevents a tracked frame buffer from escaping; it proves neither the physical lifetime after origin erasure nor DMA coherence. The driver must keep the allocation alive, the descriptor valid, and all conflicting CPU writes stopped while DMA owns each byte. Before enabling DMA, materialize initialization and descriptors, perform required cache maintenance, then a device barrier. A documented completion/count observation must certify that the corresponding device writes precede that observation; then perform a device barrier and any required cache maintenance before ordinary CPU reads. The barrier invalidates compiler knowledge of the buffer, even through the retained immutable slice and even when no Landin call wrote it.

An interrupt notification alone is not DMA completion. Masking interrupts can delay the notification while DMA continues writing. The selected synthetic device model copies a byte before count/status, and is cacheless; its ordered count observation supplies the device premise only for that model. A circular counter is not a stable snapshot: the caller must ensure the consumed interval cannot be overwritten during the copy, and must prevent/latch overrun rather than confusing a full wrap with empty. A concurrently overwritten byte has the external-write/race limit above. The complete derived driver instantiates these obligations; its explicit synthetic drain/count contract and failure evidence are indexed in compiler/tests/driver/DERIVATION.md. That device protocol is not an additional language guarantee. Ordinary slices are retained.

For noncoherent cached RAM, receive handoff must remove dirty CPU copies (clean as needed to preserve unrelated data, then invalidate), complete that maintenance before enable, and invalidate stale or speculatively fetched copies after completion before reading. Transmission cleans CPU data to the point observed by DMA before enable. Cache-line rounding requires exclusive control of every affected line: invalidating unrelated dirty bytes loses CPU writes, while cleaning a stale line after receive can overwrite device data. Maintenance must cover all relevant cache levels and aliases and complete at the platform's DMA visibility point. CPU coherence between threads alone does not establish device coherence. Cacheless M0 needs no cache operations; this is not evidence for cached platforms. Privileged cache operations and hosted DMA mapping are not portable user-mode intrinsics; no cache builtin is enabled on any target. A platform provider establishes these obligations before a cached device profile is claimed: core/cache states them as a concept over whole lines, refusing a range that would need rounding with cache.misaligned (D970); its cacheless provider is the barriers alone on every target; and the one admitted cached profile, the STM32H753's (D974), maintains its Cortex-M7's caches through platform/cortex_m/l1 (D972).

Alternatives and rationale: importing C/C++ race undefined behavior would add optimization assumptions unsupported by this unsafe language. Treating volatile as acquire/release would confuse CPU accesses with device protocols. Automatically masking interrupts for atomics cannot synchronize other cores or DMA and would hide privilege and latency. Replacing the buffer with an ownership or volatile-buffer type would evade prototype 1's alias pressure. These alternatives are rejected. Full compiler boundaries and initially stronger native ordering are conservative implementation choices, not promises of competitive code generation or wait-free progress.

Guarantee classes: arity/types/orders/target eligibility are static; misalignment is trap; integer-created pointer origin remains beyond-lifetime; races, backing lifetime, device premises, overrun and cache provider correctness are outside. Accepted calls retain their specified observable event semantics. Models check bounded consequences under stated assumptions; native executions check emitted instructions. Neither emulator success nor failure to observe a weak outcome proves this entire model.

Pinned by runtime/r630-memory-scalars, abi/r630-native-memory, abi/r630-dma-slice, negative/r630-load-release, negative/r630-cas-failure-stronger, negative/r630-m0-rmw, runtime/r630-atomic-load-alignment, runtime/r630-volatile-load-alignment and ir opt/memory events. The mandatory Cortex-M probe path retains independent CPU/interrupt/DMA controls and the bounded cache/store-buffer models.

D229 — Compiler-owned firmware and explicit machine boundaries

From [1460], [1550]–[1570], [1630]–[1660], [1940], D202, D227 and D228.

Decision: [1990] defines the enabled Cortex-M0 source/request contract. The compiler owns reset, the linker script and the vector image; source annotations contribute typed handler references and placement. D543-D547 make the memory map, the vector slot exclusions, the script and the boot image follow the selected device description, with the constrained profile kept as the reference description. This is a toolchain slice, not a new initialization language or package system.

Choice Alternative and reason for declining it Executable pin
Explicit source entry and compiler-owned initialization Treating the Cortex-M backend's external test harness as language startup hides initialization and cannot validate the compiler/toolchain request cortex ABI/firmware path, firmware.py cold boot/reset
Kept compiler vector image with typed slot references A heterogeneous raw array conflates SP, reset, reserved zero slots and handler conventions; unrestricted vector replacement could bypass reset initialization cortex ABI/machine directives, generated SVC/IRQ and RAM vectors
Distinct interrupt/naked signatures with no failures Ordinary-call conversion loses EXC_RETURN and invents a caller for failures machine signature/call/conversion refusals and nested execution
Ordinary frames in handlers; programmer-owned naked bodies Omitting ordinary leaf/handler frames contradicts the frame contract; applying that prologue to naked code contradicts no-prologue semantics independent C/assembly frame control, generated MSP/PSP and nested-handler controls
Conservative opaque assembly with restricted ordinary registers/control flow Unstated clobbers corrupt live values; treating a compiler boundary as a hardware barrier invents ordering/completion generic opaque-memory and ordinary-live-value execution, generated interrupt/DMA trace
Flash immutable images, RAM data/BSS and explicit RAM code load images Leaving initialization to test setup or treating load addresses as execution addresses conceals relocation failures poisoned boot, copied RAM handler, veneer and libgcc execution
Section retention separate from calling convention Keeping every handler changes reachability and code size; dropping relocation targets breaks vector/data images kept/discarded sections, first-class handler and text relocations
Explicit constrained script, bounded materialization and one-frame check A larger board hides overflows; a general script/build ecosystem exceeds this slice; materializing giant unreachable images before GC wastes unbounded resources; D537 replaces the 8 MiB bound with the profile's capacities flash/stack overflow, L0505/L0507 and misplaced-vector controls

The physical startup/exception premises are outside language memory safety; shape, convention, placement and assembly restrictions are static checks; accepted runtime checks still trap under D187. D228's raw-image preservation, invalid-encoding checks and exact volatile widths are unchanged. D227 retains ordinary DMA slices and requires actual device completion before consumption; masking does not stop DMA and a notification alone is insufficient.

Pinned by: compiler/ada/tests/src/landin-tests-cortex_suite.adb and environments/cortex-m/firmware.py, its retained source, assembly, linker, GDB and device inputs, plus the unchanged independent and generated lanes of the Cortex-M execution profile, layout, memory model, packed encodings and backend.

D230 — Scalar transport through the ordinary assembly boundary

Superseded by D1662. There is no positional value; inout value: u32 at r0 = operand is written instead, and what follows is history.

From [1360], [1550], [1570], [1620], [1630], [1990], D202, D227 and prototype 1's X8.

Decision: [1990]'s bounded two-argument assembler.block(text, operand) transports one u32 through r0. It is an ordinary body expression and remains an opaque read/write, call and trap boundary even if its result is discarded. The operand's effects complete before assembly begins; the result is saved before subsequent Landin evaluation. All ordinary register/frame restrictions still apply. This form is available inside an interrupt's ordinary framed body, but neither an interrupt signature nor a naked body acquires parameters. D248 makes this form the shorthand for inout value: u32 at r0 = operand without an operand name, so its text names r0 directly. Hosted targets refuse it by name, because r0 is Cortex-M0's; they check the operand form instead.

This permits platform/cortex_m to implement PRIMASK save/disable/restore with ordinary Landin functions. It does not add a CPU intrinsic namespace, an assembly template language, pointer operands or a new calling convention. The saved mask is explicit caller state; nested sections restore their own prior mask. The selected ARMv6-M PRIMASK bit affects configurable exceptions only. It does not exclude NMI, HardFault or DMA. WFI can wake spuriously or with an enabled pending masked interrupt; callers must recheck the condition they wait for. Hardware barriers and compiler boundaries retain D227's separate meanings.

Alternatives and rationale: the former result-free surface could disable interrupts but could not return the prior mask without an undocumented memory or register convention. A new intrinsic namespace would contradict X8's ordinary-module boundary. General constraints/clobber lists would add a new register-allocation interface when a single low-register carrier suffices. Implicit memory-output tricks would bypass the frame/storage restrictions. Those alternatives are declined for this slice; D248 later adds typed operands without constraint strings and keeps this form as their shorthand.

Guarantees and pins: positive/r670-scalar-assembly pins target-fixed parsing without enabling hosted assembly. Checking and IR verification reject malformed carrier, target and naked combinations (cortex ABI/machine directives and cortex ABI/assembly IR). Compiler-generated core-cpu.ldn observes nested masks, deferred restoration, actual interrupt execution and the interrupted hardware/software state in QEMU. The independently asserted peripheral trace in freestanding.py uses the same ordinary-slice completion protocol as firmware.py. Assembly instructions and indirect writes remain programmer obligations; no ownership or interrupt-safety proof is introduced.

Pinned by negative/assembly-positional-value-is-an-operand, which refuses the form since D1662.

positive/r670-scalar-assembly, the Cortex source/IR cases and the compiler-generated core-cpu.ldn and ordinary-slice DMA execution in environments/cortex-m/freestanding.py pinned this until D1662 removed the form; their transports are now written as the inout operand at r0.

D232 — Compiler-check panic dispatch and optional site identity

Chosen: [1670] is a source-level hook on every implemented target. core/panic declares public atoms out_of_range, overflow, bad_conversion, unreachable, D451's stack_exhausted, and their union panic_kind. They use the ordinary nonzero u32 atom ABI, in declaration-identity order across the final compilation; their integers are not fixed enumerator encodings. Zero remains private call success and is not admitted into this source atom domain.

A module-level declaration named panic_handler in the entry module selects replacement. It must be a public, defined, nongeneric, ordinary Landin routine with two by-value parameters, the exact canonical five-atom domain (D451) and plain u32, and infallible noreturn. Equivalent aliases of that domain are accepted; independently declared same-spelled atoms are different. Parameter names are not part of identity. C, interrupt, naked, external, generic, failing, returning, inout/sink, constrained or distinct site types, caller-inserted parameters, extra-parameter and explicit-link-symbol forms are refused. Normal resolution rejects duplicates. A declaration with that name in another module or a local scope is not the entry hook. These rules also apply to checking requests; L0506 identifies an invalid handler contract. Source replacement is supported by this selection, not by weak symbols or accidental link ordering. The handler remains an ordinary D231 function value for calls and evidence.

No selected declaration means the compiler supplies the terminal default: Linux ud2, Darwin brk #1, Cortex udf #1. Calling this known terminal implementation is folded to that instruction, with no mandatory thunk, data, strings or allocation. Since D361, on a target with a hosted system the default first writes the failed check's kind and source site to standard error; firmware keeps the bare instruction. A selected handler receives exactly (kind, site) at the check's failed edge, through the unchanged ordinary target ABI. The failed computation never resumes: its later stores, argument evaluations, recovery, defer and undo actions do not run. The handler's own terminal computation may perform ordinary actions. This is D11's evaluation-point and no-continuation guarantee, not unwinding or a checked error outcome. Foreseeable allocator exhaustion remains out_of_memory under D193.

The complete enabled check disposition is:

Check family Kind and site
Checked integer add/subtract/multiply/negation; zero divisor for division or remainder; signed division overflow overflow at the arithmetic operation. Wrapping operations and D187's suppressed overflow checks do not acquire a panic. The defined lowest-signed remainder by minus one remains zero.
Fixed-array and slice bounds/order; a compiler-emitted range check; negative shift count out_of_range at the indexing, slicing, range check or shift. Large nonnegative shifts retain their defined result.
Integer, bool, float and pointer-address conversion fit; nonnull pointer construction; malformed text decoding bad_conversion at the conversion/decoding operation, with D187's existing exceptions unchanged. Ordinary floating arithmetic retains its existing IEEE behavior.
Volatile/atomic scalar address alignment; atom-domain validation; packed encoded membership, packed field-width fit or reserved-bit pattern validation bad_conversion at the operation that validates the value. Raw packed copying still preserves every bit without extracting or validating fields.
A callee returns despite noreturn unreachable at the call, before any continuation.
compiler.unreachable() [1560] unreachable at the call, including inside unchecked (D278).
compiler.unreachable(where) [1560] unreachable at the call that filled the caller parameter where (D1262).
In a program that prepares a stack, a routine's frame or a call's area that would go below the current stack's limit (D471); compiler.stack_prepare with a slice too small for its first frame and the margin (D450, D472) stack_exhausted (D451) at the routine, or at the call to the builtin, including inside unchecked.
Compiler-owned firmware entry returns unreachable, synthetic site zero. Normal entry cleanup runs before an ordinary entry return reaches this guard.
Recursive/concurrent panic entry, or a selected handler somehow returns Terminal default instruction; no second handler invocation.
Naked assembly fallthrough Terminal default instruction: the programmer has not supplied the required machine transfer or a safe ordinary-call frame.

Hardware faults, invalid raw-pointer/lifetime assertions, foreign ABI violations other than the explicit noreturn guard, assembler faults and private Arm helper faults do not become language checks. They keep their machine or programmer obligations. The compiler does not catch faults and reinterpret them as bounds/alignment panics, split volatile accesses, or synthesize atomics on Cortex. Startup's unhandled-exception loop remains a separate hardware fault sink. There is no user-code module initialization.

Each selected image has one private four-byte zero-initialized panic-entry latch. The handler claims it before executing source actions. A second entry traps, including a check in a transitively called helper and an explicit recursive call. Linux uses a locked exchange and Darwin an exclusive acquire/release loop for this private latch; the scope is the whole process image, not one thread. Cortex uses ordinary word accesses: on its single core, an interrupt before publication takes over the nonreturning computation; after publication it sees the latch and traps. This introduces neither exclusive accesses nor hidden interrupt masking on ARMv6-M. No latch is needed for the inlined default. The selected handler must establish any desired reporting capability itself and locally handle any declared failure; no reporting library or heap is imported automatically.

The compiler-owned reset initializes the latch with other BSS before enabling configurable interrupts and calling firmware entry. Panics in an interrupt use the same handler on the interrupted stack and do not return through EXC_RETURN. The existing [1990] assumption of no NMI/fault during reset initialization remains: a custom early NMI/HardFault cannot assume initialized storage or this latch before BSS has been cleared. This is not a new promise about reset-time hardware faults. Call-bearing ordinary frames, including a handler that calls, retain the previous-frame/incoming-return record and target alignment. Eligible leaves use SP-relative homes and preserve incoming LR in its register.

Site zero is reserved for synthetic guards without a source operation. Other sites use a deterministic, collision-free compilation-local space. In canonical source order, each source byte position, including its one-past-end position, reserves five numbers in the above atom-name order (D452). The first source begins at one; the next begins after the previous source's complete range. A site's number is base + 5 * first_byte_offset + family_offset, where family offsets are zero through four. Multiple machine guards for one source operation and family share a site. Distinct families at that position have different sites. Unused positions cost no image bytes. A source-space total that cannot fit u32 is refused as L0506, never truncated or hashed. Sites are not persistent across changed source inputs, even comment-only changes.

Numbering precedes and is independent of optimization. Specialization and inlining retain the originating source operation, not the clone's allocation order or the caller's coordinates. Dead operations leave gaps. Body sharing must preserve observable kind/site immediates; the existing native-body and atom-domain/shape equality checks therefore cannot merge differently numbered selected-handler edges. Default terminal checks may retain their established body sharing. Kept data and selected handler references remain reachable.

--panic-map adds optional fields to <output>.sources.json: source-byte ranges and line-start offsets alongside D192's exact path bytes, source hashes and assembly/build identity. It requires emission. refine site PROGRAM NUMBER (D1292) resolves a nonzero site only with matching assembly, ELF build identity or Mach-O identity. Zero is explicitly synthetic, not a filename guess. Stripping source/debug tables does not change the scalar site; constrained builds need no map, filenames, formatting, heap or reporting storage. The optional identity section is accounted for in an image that requests it. Caller coordinates remain their separate three-scalar D192 contract; they do not become panic numbers. Cortex source debugging is separate evidence.

Alternatives declined: linker interposition does not validate a source signature; a new panic intrinsic namespace is unnecessary; per-emission dense numbering changes with optimization; address-based sites change with placement; hashes admit collisions; mandatory filenames or a runtime lookup table impose cost on every constrained image. The byte-position scheme spends unused u32 numbers to remove a mutable check-discovery ordering and needs no runtime table. A returning or failing handler would contradict D11 and [1670].

Pinned by driver/panic handler contracts, abi/r670-panic, core-panic.ldn, the off-target identity refusal tests, and the inherited default-trap fixtures.

D537 — One image budget on every target, before emission

From [1990], D18, D229 and D536.

The question: D229 bounded firmware alone, at 8 MiB of materialized images, a number chosen to stop the assembler rather than to say anything about the image. A hosted program had no bound, so a line asking for more than the target can address reached the assembler and then the linker's relocation overflow, and Cortex-M's 8 MiB stood beside a 32 KiB flash.

Chosen: one check, before anything is emitted, holds every target's static images to a budget in target bytes. It counts every datum the compilation lowers, before optimization and before section GC: a program with a public main lowers what that reaches, and one without, a firmware image or an object, lowers everything. Written images, those with bytes in the object, count against the initialized budget; mutable written images also against the writable one; zero images the loader or startup clears count only against the address space.

Target Written images Mutable written images Zero images
linux-x86-64, freebsd-x86-64 2 GiB, the small code model's reach 2 GiB 2^64 - 1 bytes
darwin-arm64 2 GiB, a Darwin static image 2 GiB 2^64 - 1 bytes
linux-arm64, freebsd-arm64 4 GiB, ADRP's reach 4 GiB 2^64 - 1 bytes
linux-rv64 2 GiB, AUIPC's reach 2 GiB 2^64 - 1 bytes
cortex-m0 without a firmware request 2^32 - 1 bytes, the address space 2^32 - 1 bytes 2^32 - 1 bytes
cortex-m0 firmware, reference profile 32 KiB, its flash 16 KiB, its RAM 2^32 - 1 bytes

A firmware image takes its profile's capacities as the check's argument, so a profile with more flash raises its budget without another rule. A scalar datum counts as written whatever it folds to. The refusal is L0505, which names the bytes the images take, the budget they exceed and what sets it, the code model, the address space or the profile's flash or RAM.

This states the per-target limits that the roadmap's emission policy left open. The check is not a placement verdict: code is not counted, and the linker remains the authority for the map, the stack reservation and a zero image past a code model's reach.

Why counted before GC: the assembler is given every image the compilation holds, whether or not the linker keeps it, so the bound on its work must count them all. A firmware image also refuses at the compiler a data image its flash cannot hold, where the linker would have.

The alternatives: keep 8 MiB, a number that bounds no target's image; bound only firmware, which leaves a hosted program's line asking for gigabytes to the assembler; count after GC, which needs the link this check runs before; or count zero images against the code model, which refuses BSS that only a placement outside the code model's reach would trouble.

Pinned by backend scale/images past their budget run no tool on every native target, cortex ABI/firmware path, negative/r660-materialization, negative/image-budget-past-reach, and environments/cortex-m/firmware.py's flash-overflow, bounded-materialization, flash-budget and ram-budget controls.

D248 — Assembly operands name their registers

From [1560], [1570], [1620], [1630], [1990], D227, D229, D230 and prototype 1's X8.

The tour said that inline assembly is for what has no builtin [1630], and [1990] enabled it on Cortex-M0 alone, with one u32 through r0 (D230). A routine that needs a second value, a register other than r0, or a hosted target had nothing to write. GCC's answer, a constraint string per operand and a clobber list of register names in quotes, puts a target-specific language inside a string literal, which is exactly what a type checker cannot see into.

Chosen: [1990]'s operand form. An operand has a direction, a name, an integer type and a register, and the register is a name the target's table answers for or the class general; D630 adds float types and the class float. The block's value is its named outputs, as a function's is its named returns. Every ordinary block overwrites the target's call-clobbered registers and flags; a callee-saved register is declared, which makes the routine save it; frame, stack and link registers are never named, and the language reserves no register beyond them. Every block keeps the opaque read/write, call and trap boundary on every target, so the verified IR sees one instruction with declared register effects. D230's form was kept as the shorthand for inout at r0 until D1662 removed it.

Choice Alternative and reason for declining it Executable pin
A register is a name in the target's table; general is the one class, spelled the same everywhere GCC's constraint strings ("=r", "+a") and at "r0": a register in text is invisible to the checker and a misspelling is a string mismatch. Register names as argument labels leave no room for a direction or a class, and inout would need one label twice negative/assembly-register-is-text, negative/assembly-register-not-on-target, negative/assembly-register-twice
The type selects the register's width in the text GCC's width modifiers (%w0, %k0) are a second language in the template positive/assembly-operand-forms
Outputs are the block's value, bound like a call's named returns Outputs that write existing places need rules for when the place is evaluated, its permission, definite assignment and aliasing with an input; a value reuses binding, assignment, destructuring, discard and D244 unchanged negative/assembly-outputs-dropped-by-omission, core-cpu.ldn
Operands are exact integer scalars one register wide Pointer operands would convert implicitly across the boundary where X6 says origin ends, and a pointer output would hide ptr's zero trap; usize(p) and ptr(u) say it where it happens. bool and distinct types would each need a check or construction inside the block negative/assembly-operand-types
Float operands are D630's: f32 and f64 at a float register or the class float, refused on a profile with none The first form transferred them to Language evolution while Cortex-M0, which has no float register, was the only target; the hosted targets' float registers and the M7's float unit are what brought them back negative/assembly-float-operand, runtime/assembly-float-square-root
Every block overwrites the call-clobbered set and flags; callee-saved registers are declared with out _ or as an operand Clobber-nothing by default (GCC, Rust) makes a forgotten clobber a silent miscompile and buys precision no allocator here uses; a separate clobber list states what out _ already does negative/assembly-reserved-registers-x86-64, negative/assembly-reserved-registers-arm64, negative/assembly-discard-names-register
Frame, stack and link registers and the platform's are never named, and the language reserves no other Letting a block name the frame pointer loses backtraces and the stackful-fibre route [1680]; reserving a register for the language is what the ambient environment cost and lost negative/assembly-reserved-registers-cortex, negative/assembly-reserved-registers-x86-64, negative/assembly-reserved-registers-arm64
The memory effect is fixed: every block reads and writes memory, may call and may trap GCC's "memory" clobber and Rust's nomem and readonly let a block promise less. The default is always correct, no optimisation here would use the promise, and the case assembly exists for, a critical section, is the one a narrower promise breaks; a measured need in optimisation reopens it core-cpu.ldn
Every output gets a register distinct from every input unless it is inout Rust's lateout shares an input's register with an output; it saves a register and asks the programmer to know when an input is dead negative/assembly-register-twice
general counts only the registers the block does not otherwise name Counting the whole class accepts a block the compiler cannot give registers to, and leaves the failure to emission negative/assembly-general-exhausted
D230's (text, u32) form was the shorthand for inout at r0, Cortex-M0 only, until D1662 removed it Withdrawing it leaves two spellings through a transition and platform/cortex_m unwritable until lowering exists; giving it a hosted meaning would invent a register convention negative/assembly-positional-value-is-an-operand, negative/assembly-positional-after-operand, positive/r670-scalar-assembly
The operand form was specified and checked on every target before any lowered it, refused by one stated lowering limit until each did Parsing alone would collapse every rule into one refusal; accepting before lowering exists would emit a program with a silent hole the runtime assembly-* fixtures, negative/assembly-synthetic-target

The text rules that were Cortex-M0's are uniform where they can be: size, ASCII, lines, no directive, separator or label, no comment but the target's own line comment (D597), and straight-line control in an ordinary block except for Cortex-M0's svc exception entry. The instruction allowlist is an armv6-m implementation limit; at higher M-profile levels and on hosted targets the checker refuses control transfer by mnemonic and leaves which instructions exist to the assembler. Each hosted architecture's system call returns to the next instruction and is admitted (D281); a hosted naked body may transfer control (D279) and label its targets (D598). Implicit register effects and indirect writes into compiler storage remain programmer obligations that no check can prove.

Pinned by positive/assembly-operand-forms, the negative fixtures named above, negative/assembly-operands-on-another-call, negative/assembly-template-names, negative/assembly-naked-operands, negative/assembly-hosted-straight-line, negative/assembly-arm64-statement-separator, the runtime assembly-* fixtures, backend/assembly blocks keep their registers, negative/assembly-operand-without-register and negative/assembly-output-with-value.

D1662 — Assembly names its operands: the positional assembler.block(text, value) leaves

The tour said at [1630] that inline assembly names each operand's register, and D248 kept the Cortex-M0 positional assembler.block(text, value) only until lowering existed on every target. It does. The library writes none; two probe programs under environments/cortex-m/probes/ do.

Chosen: the positional form leaves; the operand form, inout value: u32 at r0 = …, is the only one, and the probes are rewritten to it. The maintainer chose this on 2026-11-21, answering the candidate list the third roadmap's simplification phase decides. D1927 gives the refusal's fix. D230 is superseded and D248's shorthand row withdrawn; the IR's assembly operand is then always named but for a discarded output, and the verifier holds it to that.

The alternatives: keeping the positional form for its two call sites. Declined.

Pinned by negative/assembly-positional-value-is-an-operand and its recorded fix; environments/cortex-m/probes/core-cpu.ldn, runtime/assembly-operand-free and positive/r670-scalar-assembly, rewritten by refine fix, pin the rewrite.

D1927 — The positional assembly value's fix writes its operand and doubles the text's braces

The discrepancy: D1847 makes a removed form's rewrite its refusal's exact fix where the rewrite is mechanical, and D1662 names the operand form without saying what happens to a brace the text already holds, which the operand form reads as {name}.

Chosen: the parser refuses a second positional argument of assembler.block as L0696, naming the operand it stood for, and its one exact fix inserts inout value: u32 at r0 = before the value and doubles every { and } in the text literal, the operand form's escape for a literal brace. The rewrite means what the shorthand meant: the same register in and out, the block's value its one output, and an operand name that declares nothing in any scope, so value shadows nothing even where the value is itself named value. The parser refuses it on every target, since the grammar derives it as an ordinary argument and only the parser knows assembler.block from its spelling; where no source text is at hand the refusal carries no fix.

The alternatives: a fix only for texts with no brace, which would leave a text that writes one, in a comment for example, to a hand edit for no reason; and a checker refusal, which would let the removed form through on a target whose fixed if branch the checker never enters. Both are declined.

Pinned by negative/assembly-positional-value-is-an-operand and its recorded fix.

D597 — Assembly text takes its target's own line comment

From [1630], [1990], D248 and D587.

The tour said that a block's text is the platform assembler's [1630], and [1990] refused every comment in it. A port of an assembly source could not keep the comment that names a constant's macro beside the instruction that uses it: RP2040's second stage, ported from pico-sdk's boot2_generic_03h.S, listed every macro in Landin comments above its block, away from the number each one is.

Chosen: a line of block text may end in the target's own line comment, from its marker to the end of the line, in an ordinary and a naked block alike: @ on Cortex-M0, which is Thumb's, // on arm64, which GNU and Apple's assemblers both read, and # on x86-64 and RV64. Each was checked against the assembler its target links with: GNU as 2.46 for Thumb and the cross binutils for arm64 and RV64, the pinned GCC's for x86-64, and LLVM's integrated assembler for Darwin and FreeBSD. The admission removes the comment, with the blanks before it, before it reads the line, so an instruction, register, label or {name} in a comment meets no check, and the IR holds the text without it, so emission writes none and does not depend on what a comment says. Every other form is refused at the block, naming the target's own: /*, another target's marker, ; and arm64's %%, which separate statements, and on Cortex-M0 and arm64 a line that begins with #, which GNU as reads as a comment there but [1990] does not give the text. A digit separator stays refused, now by the admission rather than the assembler: block text is the assembler's syntax, so the refusal names the number without its separators. L0330 carries each refusal.

Choice Alternative and reason for declining it Executable pin
Each target's own marker, the one its assembler reads One marker on every target: # is an immediate on Arm, // is no comment in GNU as for x86-64, and @ is a symbol modifier in x86-64's foo@PLT and Apple's @PAGE, so no character is a comment everywhere and nothing else at once runtime/assembly-comments
The comment is removed before the admission reads the line Leaving it to the assembler would have the register, label and slot checks read the comment as instructions, so a register named in one would have to be declared and a {name} in one would be a slot targets/assembly comments are each target's own
The emitted assembly holds no comment Keeping it makes emission and every hash of it depend on what a comment says, and the assembler-site placement match a line by its comment cortex ABI/assembly comments are not emitted
Other comment forms are refused, naming the target's own Admitting // on Thumb, which GNU as 2.46 also reads, or /* */ everywhere gives one target two spellings and a port a form some assembler a target links with may not read negative/assembly-foreign-comment, negative/assembly-hosted-straight-line
A digit separator stays refused, by the admission, naming the number to write Admitting _ and removing it would make block text a second syntax beside the assembler's, which a reader could no longer take to the assembler's manual negative/assembly-digit-separator

Pinned by runtime/assembly-comments, positive/assembly-comments-naked, negative/assembly-foreign-comment, negative/assembly-digit-separator, negative/assembly-hosted-straight-line, negative/assembly-arm64-statement-separator, targets/assembly comments are each target's own, cortex ABI/assembly comments are not emitted, and RP2040's boot2.ldn, whose assembled stage keeps its bytes and checksum.

D1117 — On x86-64 the straight-line rule reads past instruction prefixes

The tour said nothing; [1990] has an ordinary block unable to branch, call, return or change control mode, and the rule was applied to the first word of each line. On x86-64 an instruction may be written behind prefixes, each a word of its own, and the far transfers have mnemonics of their own, so rep ret, the two-byte return AMD's guides once recommended, repz ret, data16 ret, notrack jmp, bnd call and lret were accepted: a return in the middle of a routine, before the block's output is stored and before the frame is released.

Chosen: on x86-64 the mnemonic the rule tests is the first word that is not a prefix: rep, repe, repz, repne, repnz, lock, data16, data32, addr16, addr32, notrack, bnd, xacquire, xrelease, wait, fwait, a segment override, a rex spelling or a {...} pseudo-prefix. The refused mnemonics gain lret, ljmp, lcall, and xbegin and xabort, which transfer to an abort address. A prefix on an instruction that transfers nothing, lock addq, stays accepted. The other targets have no prefix syntax and compare whole mnemonics as they did.

The alternative: an allowlist of x86-64 instructions, as armv6-m has, which would close the class rather than its known members; it is a table of an instruction set the project does not otherwise keep.

Pinned by negative/assembly-x86-64-prefixed-transfers, six refusals and the accepted prefix.

D598 — A naked body on a hosted target may label what it branches to

The tour said at [1630] that a naked body owns its control flow, so its block may use labels and branches, and [1990] says a naked body's text may contain labels. On Cortex-M a naked body's labels were admitted; on the hosted targets D279 let a naked body transfer control but L0330 refused its labels as "ordinary assembly is straight-line and defines no label", which called a naked body ordinary, and D516 declined labels because the clone trampoline was written branch-free without them.

Chosen: a naked body on every target may define labels, as Cortex-M's always could: a line may begin with an identifier of ASCII letters, digits and underscores, numeric local labels such as 1 among them, and a colon, and the rest of the line, if any, is an instruction checked as any other. An ordinary block still defines no label, and its refusal now says a naked routine's body may. A label that is not such an identifier is refused as "a naked label requires an ASCII identifier", on every target alike. The clone trampolines stay as they are; nothing requires them to branch.

The alternatives: keeping hosted naked bodies label-free and writing that rule into [1990] beside the tour's, which keeps two rules for one construct and leaves a backward branch to computed offsets; and admitting labels in ordinary blocks too, which [1630]'s straight-line contract for an ordinary block, and the compiler's knowledge of its control flow, exclude.

Pinned by runtime/assembly-naked-labels, a counting loop with a forward exit, a backward branch and a label sharing its line with an instruction, called through the C import of its symbol on every hosted target, and negative/assembly-hosted-straight-line, an ordinary block's label refused naming the naked body that may have one.

D1054 — A tab around a line of assembly text is margin, as a blank is

From [1630], [1990], D248, D597 and D598.

The tour said at [1630] that a block's text is the platform assembler's, and [1990] admits LF, horizontal tabs and printable characters and then states the rules of a line: no directive, no label in an ordinary block, no control transfer. The admission read each line after removing the blanks around it and no tab. A line that began with a tab therefore began, to every rule, with the tab: it was no directive because its first character was not ., its mnemonic was the empty text before the tab, and its label was looked for at the tab. "\t.incbin \"/any/file\"" was accepted and assembled, copying a file of the build host into the program; "\tjmp there" and "\tthere: nop" left an ordinary block. Cortex-M's admission held the same test in a copy of its own, protected at the default armv6-m level only because its instruction allowlist refused the empty mnemonic.

Chosen: the blanks and tabs around a line are margin, on every target and at every level, and every rule of a line reads the line without them: the directive, comment-form, separator and digit-separator refusals, the label, the mnemonic and Cortex-M's operand rules. A tab inside the line separates a mnemonic from its operands as a blank does. One function removes the margin and one makes the refusals every target makes before it reads a label or a mnemonic, and the hosted rules and Cortex-M's both call them, so the two cannot differ again. The text an accepted block emits is unchanged.

Two more spellings met the same rules from the side, and are refused with them. GNU as reads name : as the label name:, so a label's colon is looked for past the blanks and tabs after the line's first word; an operand's colon, %fs:0 or :lo12:, comes after more than blanks. And name = value defines a symbol as a label does, one that could stand for a symbol the program imports, so an ordinary block refuses it as "ordinary assembly is straight-line and defines no symbol"; a naked body, which may define labels (D598), may assign one. No instruction of a supported target has = in or straight after its mnemonic.

The alternatives: refusing a tab in block text, which [1990] admits and which assembly sources indent with, so a port would have to rewrite its indentation; and keeping two tests with the tab added to each, which is the copy that let the firmware rule fall behind the hosted one's history once already.

Pinned by negative/assembly-tab-led-line, a tab-led file directive, branch, label and symbol directive, a label with a tab before its colon and a symbol assignment on x86-64, negative/assembly-tab-led-line-cortex, the same at --level=armv7-m where no allowlist stands behind the rule, and the targets case a tab is a margin of assembly text, which holds the refusals on every architecture and at every Cortex-M level, and that a tab between a mnemonic and its operand, a segment or relocation colon and Arm's =value operand are still accepted.

D630 — Float assembly operands are a second class, float

From [1560], [1630], [1990], D248, D256, D265, D615, D616 and D617.

The tour said at [1630] that an operand is an integer scalar that fits one register and that float operands were planned, and D248 transferred them to Language evolution while Cortex-M0, which has no float register, was the only target that had assembly. Every hosted target has float registers, and Landin has no builtin for an operation such as the square root, which is what [1560] leaves to assembly; a block could name xmm0 or d0 in its text but could carry no value through one, and could not name arm64's or RV64's callee-saved float registers at all.

Chosen: an operand's type may be f32 or f64, placed at a fixed float register or at the class float, spelled the same on every target as general is. A fixed float register is the architecture's full-width name, and the operand's type selects its spelling in the text, as w9 and x9 do for an integer:

target float operand registers text spelling float chooses from, and every block overwrites saved by the routine when named
hosted x86-64 (Linux, FreeBSD) xmm0–xmm15 %xmmN at both widths all none
hosted arm64 (Linux, Darwin, FreeBSD) v0–v31 sN for f32, dN for f64 v0–v7, v16–v31 v8–v15
RV64 Linux f0–f31; the text's ft, fa and fs aliases are those registers fN at both widths f0–f7, f10–f17, f28–f31 f8, f9, f18–f27
Cortex-M with FPv5-D16 (D615) d0–d15; the text's s(2n) and s(2n+1) are d(n)'s halves s(2n) for f32, dn for f64 d0–d7, and FPSCR's flags d8–d15

An integer is placed at an integer register or general and a float at a float register or float; each misplacement is L0330, naming the register and the type. The two classes count apart, each only the registers of its own row the block does not otherwise name, and every output keeps a register distinct from every input unless it is inout. A text register at any width or view counts as its full-width register, d8 and q8 as v8 and ymm3 as xmm3, so the callee-saved float registers that D248 left never named are declared as the saved integer registers are, by an operand or by out _ at v8, and the routine then saves and restores them. A profile with no float registers, Cortex-M at armv6-m and any description that selects no float unit, refuses a float operand as L0304, whose standing is now that profile's recorded boundary rather than a transfer, and the refusal names the profile. It is reported in place of a refusal of the block's text there, since a float instruction is no instruction on that profile either and the operand says why. The float unit's rounding mode and exception flags, MXCSR, FPCR and FPSR, fcsr and FPSCR, are the programmer's to restore, beside x86-64's direction flag. On Cortex-M a routine that holds a block keeps d8-d15 in its frame whatever the block declares (D617); a block that names one now declares it, as on the hosted targets. Each backend lowers a float operand by moving it between its frame home and its register at its own width, and the verified IR keeps one instruction with declared register effects, whose empty register is the class its operand's type selects.

The alternatives: fixed float registers only, with no class, which makes every block choose its own register and leaves nothing for the compiler to keep apart from the registers the text names; and GCC's constraint letters ("x", "w", "f"), which put a second target-specific language in a string, as D248 declined for integers. A third alternative, keeping float operands transferred, leaves the square root and every other float instruction without a builtin unreachable with a value.

Pinned by runtime/assembly-float-square-root, whose square roots of nonconstant inputs at both widths meet their oracles on every hosted lane and on the M7's mps2-an500 lane through its compiler.feature.fp_dp arm, and are refused as L0304 on the reference and the AN505's lane, which the inventory's first execute lane entry of a refuse row records; runtime/assembly-saved-float-registers, a value held in a declared callee-saved float register across a call to a routine that overwrites them all, on the M7 lane too; runtime/assembly-keeps-call-preserved-floats; negative/assembly-float-register-alias, where a Cortex-M7's s17 names d8 and an f32 at d1 is an f64's register; positive/assembly-float-operand-forms; negative/assembly-float-register-banks, negative/assembly-float-exhausted, negative/assembly-float-register-twice and negative/assembly-float-operand; targets/assembly registers are spelled and chosen; and backend/float assembly operands keep their banks, whose arm64 block sets an integer output aside past a float output's register and whose verifier refuses each operand at the other bank.

D252 — A source has one layout, and the compiler lays it out

From [1060], [1750] and [1780].

The tour said that space separates tokens and means nothing else [1750], that no newline is ever required [1060], and that a comment is space [1780]. It said nothing about how a program should be laid out, so every program chose, and core and the examples agreed with each other only as far as their writers happened to.

Chosen: one layout, decided by the compiler and not by the program: refine fmt. It decides space and nothing else. It never adds, removes or changes a token, never changes a comment's bytes or moves one past a token, and never breaks or joins a line; what it decides is where each line starts, the space between two things on one line, that a run of blank lines is one and none begins or ends a file, and that line ends outside raw literals and block comments become one LF. Line ends inside those protected bytes remain unchanged. It reads the scan and the tree and nothing later, so a program is formatted whether or not its names and types are right, and one that does not parse is refused with its report and not touched. The rules, each with a program as written and as formatted, are docs/format.md's, which the test program holds the implementation to; they were measured on core and the examples before any was written, and where those disagreed the majority was taken. Formatting changes byte offsets, so a caller location (D192), a panic site (D232) and debug information follow the formatted source; nothing else a program does can change. How the layout reaches the file is D358's, how it reaches a reader who will not have the file written is D359's, and where a parenthesized operand begins is D360's, and how an if inside a line is laid out is D424's.

The alternatives: a style with options, which is a second opinion the language would then have to settle between two programs that follow different ones; the one layout is what makes a formatted file mean one thing to a reader. A printer that breaks and joins lines at a width, which lays out every expression from scratch and so moves every comment's line, every caller location and every debugger breakpoint whenever a name's length changes; no width is enforced here, and one that is would bring such a printer with it. Keeping each file's own line ends outside raw literals and block comments, which leaves three spellings of ordinary line boundaries in one repository; [1750] admits three on input and ordinary layout needs only LF on output. Leaving the layout to the tools of the editor that happens to be open, which is what the language had before and what core shows.

Pinned by positive/comment-forms, positive/space-forms, positive/line-ends-crlf, positive/line-ends-lone-cr, positive/line-ends-mixed and positive/no-final-line-end, which the formatting/every source keeps what it says case requires to be formatted, negative/unclosed-block-comment and negative/latin1-byte-in-name, which it requires to be refused, and formatting/the page is the layout.

D358 — refine fmt writes a source into its own file

The discrepancy: D252 decides what refine fmt writes and not how it reaches the file. The formatter wrote a sibling file and renamed it over the source, which gives the source a new inode: whatever the old one carried and the new one was not given is lost. So it refused every file with an extended attribute or an ACL, and on Linux, where a process without privilege cannot list the trusted.* namespace, it first proved that namespace visible by setting a name in it, which only a privileged process may. Every ordinary user's file was refused, on tmpfs and ZFS alike, with a report that said only that it could not write a file the user could write.

Chosen: the formatted bytes are written through the descriptor that read the original source, retained throughout formatting (D907), into the same inode, so it keeps its owner, group, extended attributes and ACLs, those the caller cannot list among them, and every name a hard link gives it, which sees the formatted bytes too. Writing in place is not atomic, so before the first byte changes the original bytes, read back through the descriptor that will be written, are copied into a new file beside it, .fmt-original- and an exclusive per-invocation suffix, and the copy and its directory are synced. Then the new bytes are written from the start, the file is cut to their length and synced, and the copy is removed. A failed write puts the original bytes back from memory and removes the copy; a write that cannot do even that keeps the copy and names it, which is also what a crash during the write leaves. A path names a symlink's target; a file that is not ordinary or that no one may write is refused. A renamed-in save is never written: a changed pathname observed before writing refuses the operation; one changed after that check still names a different inode from the retained descriptor, and the command reports that its layout was not installed at that name, retaining its recovery copy. Concurrent writes through another descriptor to the same inode are unsupported; neither an identity check nor an advisory lock excludes that writer. What a write itself takes away is checked first: the set-user-ID and set-group-ID bits a write clears are set again and read back, so a file whose bit the caller could not set again, as its owner and for set-group-ID in its group, is refused before it is written, and so is a Linux file with capabilities, which a write removes and only a privileged process can give back. Nothing needs privilege. Each refusal names its cause, and says whether the original bytes are back or where their copy is.

The alternatives: keeping the rename and refusing what it would lose, which refused everyone, because an unprivileged process cannot see what it would lose. Keeping the rename and copying every attribute to the new file, which cannot copy what it cannot see, nor give a file its owner back when the caller is not that owner, and still parts hard links and anything that followed the old inode. Writing in place with no copy, which a full disk or a crash part way leaves torn with nothing to recover. Keeping the copy only in memory, which a crash loses. The copy beside the file, rather than in a temporary directory, is on the same file system and survives where the file does, which is the case it exists for; it needs write permission in the directory, as the rename did.

Pinned by compiler/tests/test_formatter_write_safety.py, run without privilege in the gate on each Linux and Darwin host's /tmp and on Linux's tmpfs /dev/shm, whose cases format an ordinary file, a symlink's target, every special mode bit, a file with an extended attribute or an ACL and a hard-linked file in place, refuse a read-only file and a directory without room for the copy by name, and drive the adapter's own faults: a failed write undone, a failed undo that keeps and names its copy, a copy that cannot be kept, a mode a chmod did not restore and a file with capabilities; and driver/fmt is a subcommand, whose refusal names its cause.

D907 — A command publishes its outputs without destroying conflicting inputs or saves

The discrepancy: commands guarded different subsets of their inputs, reopened names after reading, followed links in staging or cleanup, and discarded earlier artifacts before later verification could fail. A request could consume its header, policy, response file, script, library or selected tool and replace it with an output; a failed build could remove the prior executable, and an interrupted link left its child tool running.

Chosen: one publication contract in Landin.Platform. Commands register protected input paths and original read identities, and prepare every output's expected version, including its absence, before producing its replacement. Compiler reads supply bytes and identity from the same open descriptor. Consumed response files, selected tools, supplied tool inputs and known resolved libraries join the source closure; bindings also records Clang's consumed-header paths. Dependency filenames establish an external tool's known input closure, not identities from its read descriptors. This does not sandbox arbitrary wrappers, interpreters or implicit toolchain internals. Unsupported indirect file directives refuse with an absolute-path or standalone-input route rather than changing their meaning silently. Executable launch still resolves a pathname: observing its identity does not pin execution against a noncooperating replacement of that namespace. Tool capture bytes stay in retained descriptors. Private scratch directories retain directory authority for reads, writes, tool output and cleanup, so replacing an ancestor does not redirect those effects or authorize deleting the replacement directory. Uncertain cleanup retains and names its recovery.

Generated files are verified in exclusive private staging beside the destination. The output directory is pinned; lookups below its chosen root, staging writes and tool output use that directory authority without following links. A dangling link is an occupied entry. The actual old destination is captured into recovery storage and checked against its expected version and protected inputs. The new version is installed only into an absent public name, using no-replace rename or, for regular files, no-clobber hard-link publication. A changed captured entry is restored without overwriting a newly occupied name, or retained under the recovery path the refusal names. Rollback applies the same rule to this invocation's installed entries; it never unlinks a public name on the strength of an earlier identity check. Prior versions remain recoverable through verification of the artifact group, an ESP image included. Manifest-listed stale outputs receive the same checks. Unchanged bytes keep their original file. Directory artifacts, including a Darwin debug bundle, have checked trees. Earlier retained transactions are diagnosed rather than removed to make progress. Separate transactions in one process cannot reserve the same destination name or an alias of that directory entry while its arena remains active. The refusal asks the caller to retry after the owning transaction completes; distinct hard-link names remain separate destination entries.

A cooperative producer retains a write lease on its first sealed destination record. An inspector can prepare an unrelated target while that producer's tools have extra temporary entries in staging: every destination record must still validate, its names must be separate from the requested target, and the recovery inventory must contain only registered names. The inspector leaves the peer's staging untouched. Unexplained staging without a live producer lease refuses. The lease is an observation of a cooperative producer, not a lock on public destinations or a promise of future liveness; publication still checks the actual expected version and never uses a process identifier as authority to signal another process.

An initially absent bindings output tree is reserved as an absent directory artifact before generation. Its missing ancestors are staged privately too, starting at the first absent component below an existing parent. Invalid input or a failed tool creates none of those public names. The reservation refuses an entry already present at preparation, and publication refuses a tree that appeared afterwards; it never adopts and replaces that tree. An existing bindings output directory retains per-file publication so unrelated files beside the generated ones remain its owner's. Creating staged directories uses the same retained directory authority as staged file writes.

After the last publication in an arena finishes successfully, its remaining descriptors and bookkeeping are released. Native staging helpers refuse unrecognized or retired spellings containing a .refine-publication-* component instead of using ordinary-path fallback. Scratch helpers similarly reserve the .refine-private- marker. These are spelling guards, not filesystem canonicalization through aliases. Repeated removal of an absent scratch root performs no write; no unbounded retired-path history supplies later write authority.

Compilation artifacts and reports require an existing, available parent. A missing parent is named with the route of creating it or choosing an output pathname under an existing directory. The command does not create missing parent directories. These destination-parent and direct source/output-pair preflights describe unknown identity as uncertain separation rather than proof of collision, retaining conservative refusal. This does not alter the separately specified bindings output-tree creation or formatter write behavior.

Formatting is the inode-preserving mode, D358: its original read descriptor protects renamed-in saves without losing invisible metadata or changing hard-link behavior. --check and --stdout acquire no writable lease. Noncooperating writes through another descriptor to the same inode remain unsupported. Identity is not a content-version lock. Private storage is not isolation from hostile processes with the same credentials or privileged processes.

Interrupt, termination and hangup cancellation is recorded by signal-safe notification while the command holds something to recover (D1046). The supervisor forwards it to the active tool's process group, permits bounded shutdown, stops remaining ordinary group members and reaps its direct child before cleanup. That unreaped child reserves the identifier while signaling is possible. Tools that escape their group or change credentials are outside this supervision contract. Filesystem and Ada cleanup run in ordinary control flow. Cancellation returns 128 plus the host signal number after recovery, and at once when nothing is held (D1046); inherited ignored signals remain ignored. Spawning refuses before creating a child when SIGCHLD is ignored or SA_NOCLDWAIT would discard its exit status. The refusal asks for a default, waitable child-exit policy rather than changing the inherited disposition. Native callers must leave that policy unchanged and must not reap these children through another waiter or signal handler. An observed loss of wait-status ownership clears the saved identifier before exception cleanup.

This is loss-preserving publication, not kernel conditional-inode rename. A destination can briefly be absent; a group is not an atomic snapshot for concurrent readers. Ordinary failure/cancellation recovery is distinct from power-loss durability. Files and directory entries are synced where supported; uncertain or conflicting recovery is retained and reported, never described as an untouched preflight refusal.

The alternatives: check-then-overwrite rename or unlink, which only narrows the race; exchange rename, which retains the displaced entry but does not compare its expected identity; copying unknown metadata to a new inode, which D358 rejected; and a tool publishing after its compiler has exited. Linux and Darwin no-replace extensions supply no expected-inode comparison; FreeBSD 14.4 lacks their directory no-replace equivalent. Unsupported operations refuse rather than use unchecked replacement.

Pinned by compiler/ada/tests/native/publication.c, compiler/tests/test_tool_cancellation.py, compiler/tests/test_formatter_write_safety.py, the bindings and devices publication cases, and the driver and command input-preservation cases.

D1057 — What a tool said is shown a line each under the report of its failure

From [1550] and D907.

The tour said nothing. L0501 carried an assembler's or linker's captured output inside its message, after a line feed, and a message is one line: every control byte in one is shown as \xNN, so that a file name cannot forge a line of a report. A link with a screen of undefined references was therefore a single line with \x0A between its parts.

Chosen: a diagnostic may carry a transcript beside its message: the lines a tool wrote, in order, without the empty lines at their end. The message is the one line that says which tool and how it ended. The text and the short presentation print each transcript line under it behind the margin | , each escaped on its own, so no line of a tool's output can pass for a line of the report; the JSON presentation carries the lines as the array tool_output, a member present only when there is a transcript.

The alternatives: leaving line feeds unescaped in every message, which gives a file name with a line feed in it a line of its own; and notes, one for each line, which would call a linker's words the compiler's advice and number them among a code's notes.

Pinned by the driver case tool output keeps its lines, in all three presentations, with a forged report line and an escape sequence in the tool's output.

D1058 — A depfile names the file the build wrote, and holds no path Make cannot read back

From D907.

The tour said nothing. --depfile writes one Make rule. Its target was computed apart from the artifact's own name, so --emit=ir wrote a.ir and a rule for a.s. Its paths were written with $ doubled and a backslash before a blank, a tab, #, : and \, which left ;, | and the wildcards as Make reads them, and doubled a backslash Make does not unescape: a source named main.ldn;echo>PWNED;.ldn, which a module directory may hold since every .ldn in it is a source, gave the next make a recipe to run.

Chosen: the rule's target is the artifact's name, whatever --emit chose. A path the depfile would hold is refused, as misuse and before anything is written, when it holds a byte Make gives no spelling that every GNU make reads back as that name: ;, |, =, &, %, *, ?, [, a backslash, and a leading ~; and in the target also # and :. The refusal names the byte and the path, and says to rename it or build without --depfile. $, a blank, a tab, and in a prerequisite # and :, are written in Make's spelling as before. The set was measured against GNU make 4.4.1 by writing each printable byte into a prerequisite and a target and reading the rule back from make -p.

The alternatives: escaping more, which Make has no syntax for: there is no quoted prerequisite, and a backslash before an ordinary character stays in the name; and writing such a name anyway, as GCC's -MMD does for ;, which leaves the injection.

Pinned by the driver case a depfile names what Make can read.

D1059 — A tool's text inputs are each scanned once, and a build names a bounded number

From D907.

The tour said nothing. Before a tool runs, the driver follows the absolute .include, INCLUDE, INPUT and GROUP references of an assembly operand, a linker script and a text library, to protect what they name. A file reached twice was read and scanned twice, bounded only by a nesting depth of sixteen, so fifteen files that each named the next six times were 6 ** 14 reads, which a source tree could arrange with linker.library and a text file standing for the library.

Chosen: an input is scanned once in a build, remembered by the path it was named by and by its host identity; an assembly input and a linker input are remembered apart, since they are read by different rules. One build scans at most 4,096 inputs and 64 MiB of text, and is refused as L0003 past either. The nesting bound stays.

The alternatives: the nesting bound alone, which bounds a chain and not a fan; and a bound on time, which no other part of the compiler has.

Pinned by the driver case assembly directives cannot hide, whose fifteen-level fan succeeds as an assembly operand and as a library, and whose 4,100 inputs are refused.

D1060 — An assembly input's file directives are found wherever the word stands

From D597 and D907.

The tour said nothing. The scan for .include and .incbin in an assembly operand, and in the assembly the compiler emits, was a tokenizer of its own: it took #, @ and // for comments on every target, read a string to the next quote and a ' as opening one, split tokens at blanks and a few marks, and skipped a file holding a NUL as an object. D597 records that no character is a comment on every target, and each of those choices hid a directive: behind a label, x:.incbin "f"; after x86-64's @function or arm64's #1; after .ascii "\"" or .byte 'a; in a file with a NUL in a comment; and in a macro whose argument is the directive's name. A hidden absolute directive named an input that was not protected, so an output of that name replaced it.

Chosen: the scan decides nothing an assembler might read otherwise. It skips only what every assembler the targets link with skips: a /* */ comment, a double-quoted string with its backslash escapes, which the scan ends at the end of its line at the latest, and the character after a '. Everywhere else the word .include or .incbin, in either case and not continuing a symbol, is the directive: behind a label or a separator, and also behind what one target reads as a comment marker. It names its file plainly, a double-quoted absolute path without a backslash on the same line, or the input is refused as L0003. An input that uses .macro, .irp, .irpc or .altmacro is refused, since a macro can form the word from its arguments where no scan finds it. An assembly input is text whatever bytes it holds. The assembly the compiler emits holds no file directive at all, and one found there is refused: no backend writes one and [1990] keeps directives out of block text. A linker script keeps its own tokens, where # and /* */ are comments to the linker as they are to the scan.

This refuses inputs that were accepted: an assembly operand that defines a macro, and one that mentions a file directive in a line comment.

The alternatives: following each target's assembler exactly, which is the lexer of GNU as for five architectures and of LLVM's assembler for two more, held to them by nothing; documenting that only a plain directive at the start of a line is seen, which leaves the protection the scan exists for to the goodwill of the input; and expanding macros, which is the assembler.

Pinned by the driver case assembly directives cannot hide, each hiding place refused before any tool runs, a hidden absolute directive's file protected from the output, and a string holding the word accepted, and tool file directives protect their inputs, the plain forms.

D1061 — A standard output that cannot be written is the host's failure

The tour said nothing. refine version > /dev/full, or any command whose standard output was closed or full, ended as "internal compiler defect" with status 70, the status kept for the compiler finding itself wrong: the write raised past every handler but the last.

Chosen: a command's output is written and flushed where the failure can be told, and a failure is reported on standard error as "refine: cannot write to standard output" with status 71, the status of a host that failed the compiler, which the language server's channel already uses. What the command reported is still written to standard error, and a refine run whose output was lost does not start its program.

The alternatives: ignoring the failure, as many tools do, which tells a script that reads refine version --json nothing when it reads an empty answer; and status 1, which is a program's refusal.

Pinned by the fixture execution case a lost standard output is the host's fault, on the real executable.

D1046 — A signal ends a command with one report and status, at once unless it holds something to recover

D907 said that an interrupt, termination or hangup is recorded by a signal-safe notification and answered in ordinary control flow. Only the tool supervisor and the publication steps looked at the record. refine check has neither, so the signal cost the whole remaining check before the process ended, and a stage that did not end left a process that no polite signal could stop: timeout without -k waited for ever. refine fmt of a directory went on to read, format and report every remaining source.

Chosen: an interrupt, termination or hangup always ends a command the same way: its last line is refine: cancelled by signal N and its exit status is 128 plus the number, whether or not it held anything, so a script reads one outcome. When the command holds nothing a signal could leave half done, the handler does both itself, there and then, with write and _exit alone: a long refine check stops within the moment the signal takes to arrive, and says nothing else. Something is held from before it exists until it is gone: an open publication and its workspace, a private directory, a tool's capture and the unreaped tool, and the rewrite of a source refine fmt is replacing; reading, parsing, checking and lowering hold nothing. While something is held the signal is recorded as before, and the command answers it where one stage hands over to the next: between the frontend's stages, when the outputs are reserved, after the optimizer and after emission, as well as in the tool supervisor and every publication step; refine fmt stops before its next source. A stage is never interrupted, so what is recovered is whole. A recorded signal that is not answered within ten seconds ends the process by that signal, as SIGKILL would, with no last line, leaving the workspace its destination records describe: a stage that never reaches a boundary cannot hold the process, and ten seconds is longer than stopping a tool and putting the outputs back takes. A caller that started refine with SIGALRM ignored has no such limit. The closed-pipe signal is D1047's and keeps its quiet end.

The alternatives: ending a command that holds nothing by the signal's default action, with no last line, which this entry first chose: it costs nothing and stops as promptly, and it gives a caller two outcomes to tell apart, a status that names the signal after a recovery and a death by the signal without one, for what it asked once; the maintainer declined it for the one report. Asking for the record inside every stage, which reaches each loop of the compiler through an interface the stages do not have, where a handler that writes and exits reaches every instruction at no cost; asking only between stages when nothing is held, which costs the rest of the running stage and never ends one that does not end; ending at once whatever is held, which leaves a workspace that refuses the directory's next build after every interrupted link; a second signal as the way past an unanswered first, which a timeout never sends and an impatient second Ctrl-C would turn into that leftover workspace; and no limit, which leaves the non-terminating stage unstoppable.

Pinned by compiler/tests/test_tool_cancellation.py, whose unheld controls end at once with the line and the status for each signal, and by the closed-pipe signal itself for that one, whose grace control is ended by a recorded signal it never answers only after the period, whose unheld-check commands end a long refine check so for each signal, and whose held-run commands remove a run's directory, together with its controls of a recorded signal while a tool runs; and by the compiler's cases stages/a pipeline stops where it is asked and driver/a recorded signal stops the frontend between stages.

D1047 — The file-size and closed-pipe signals reach the recovery written for their errors

D907 said that a preparation refused for a resource limit removes the workspace it made, and D526 that refine run removes its directory on every way out. Both were written for the error a write returns. A write past the file-size limit returns that error only when SIGXFSZ is ignored or caught; its default action ended refine inside the write, so refine fmt left a source cut at the limit and a build left its workspace, and every control of the limit had ignored the signal first. SIGPIPE on refine's own report did the same to a run's directory.

Chosen: refine ignores SIGXFSZ for the length of a command, so the write fails with the error and the recovery written for it runs; a tool and the program refine run starts are given the inherited disposition back. SIGPIPE is one of the signals D1046 records: with nothing held it ends the process by its default action, as before and without D1046's line, and while a run's directory exists the write fails instead, the directory is removed, and refine exits with 128 plus the signal's number.

The alternatives: catching SIGXFSZ and recording it as a cancellation, which abandons a build for a limit only one of its outputs met; blocking it around each write, which every new write would have to remember; and ignoring SIGPIPE throughout, which turns refine check | head from a quiet end into a reported write failure.

Pinned by compiler/tests/test_formatter_write_safety.py's test_file_size_signal_does_not_cut_the_source, compiler/tests/test_compile_publication.py's host-file-size-signal and host-closed-pipe-run, and compiler/tests/test_tool_cancellation.py's limit and pipe controls.

D1048 — A published file has the mode a fresh build gives it

D907 said nothing of an output's mode. A staged file was created for its owner alone, and that file is the one installed, so every output refine wrote itself, the assembly, the reports and the depfile, was published unreadable to anyone else whatever the umask, beside an executable the linker had created by it; and an output whose bytes had not changed kept its old file with its old mode, so an executable restored without its execute bit stayed unrunnable after a build that reported success.

Chosen: a staged file is created with mode 0666 less the caller's umask, the workspace being what keeps it private until it is installed. An unchanged output keeps its file, as D907 says, and is given the mode the build made; a file whose mode is not the caller's to change is replaced by the staged one instead, and a rollback puts the old mode back. A replaced file's own mode is not carried over.

The alternatives: giving a replacement the mode of the file it replaces, which keeps a deliberately widened mode and equally keeps the lost execute bit this is meant to repair; and comparing modes when deciding whether an output changed, which gives up the unchanged file's identity for a difference fchmod settles.

Pinned by compiler/tests/test_compile_publication.py's host-output-modes and host-unchanged-output-mode.

D1049 — Only a directory of the invoking user's is inspected as an earlier publication

D907 said that earlier retained transactions are diagnosed rather than removed. The inspection took every entry of the output directory whose name begins .refine-publication-, and refused the output when one could not be opened. A workspace is made for its owner alone, so in a directory several users write to, one user's running or retained build refused every other user's; a file, a link or an empty directory of that name did the same on purpose; and the inspection waited without limit for a lock anyone could hold.

Chosen: an entry that is not a directory, and a directory another user owns, is passed over: it cannot hold the invoking user's earlier output, and installation never replaces what is in the directory whatever such an entry holds. The invoking user's own directory that cannot be opened is refused, in words that say so. The inspector's shared lock is asked for without waiting, for two seconds, and a lock still held then refuses the output with the route of retrying; a destination record larger than a megabyte is refused unread.

The alternatives: refusing with a better message, which leaves the directory unusable to everyone but the entry's owner; and waiting for the lock with a longer limit, which a held lock outlasts.

Pinned by compiler/tests/test_compile_publication.py's host-foreign-entries; no control runs as a second user.

D1583 — A running build's workspace lock is waited for while that build is alive

D1049 said that the inspector's shared lock is asked for without waiting, for two seconds, and that a lock still held then refuses the output. Builds of different outputs into one directory, as make -j and the harness's runtime fixtures start them, inspect each other's live workspaces, and a running build held its workspace's lock across the fsync of the workspace directory, which a loaded host's journal can stretch past two seconds. One build then refused the other's output with L0005 in words that read as a stale lock: gate run 44424959169's first attempt, and scripts/measure.py's concurrent builds, which were moved into a directory each until this was decided.

Chosen: a build holds the lock only around the rename that publishes a destination record and around the removal of its workspace, and syncs the directory after releasing it. An inspector that has waited two seconds asks whether a destination record of that workspace carries the write lease its producer keeps while it runs, the same query D907's inspection makes; while one does, it waits on for up to a minute, cancellable, and a lock held past that is refused as the running build's. A workspace with no live producer is refused after two seconds as D1049 says, in words that say no running build holds it.

The alternatives: a longer bound for every lock, which D1049 rejected because a held lock outlasts it; no bound while the producer is alive, which a stopped build would turn into a hang; and an inspection without the lock that retries when a record appears during its scan, which re-opens the race the lock was added to close.

Pinned by compiler/tests/test_compile_publication.py's host-concurrent-compiles, a live producer's lock held for four seconds and twelve compiles into one directory started together three times, and its host-foreign-entries, a lock with no producer still refused.

D1050 — A tool runs in a directory of its own beside the stage

D907 said that tool output uses the pinned staging directory, and the tool was started in it. Whatever a tool wrote beside itself, a core file, a profile, a wrapper's log, was then an entry of the stage no destination record explains: the build that had just published its outputs ended as an error, and its retained workspace refused every later build into that directory.

Chosen: a workspace has a third directory, work, and a tool is started there and names its outputs ../stage/NAME. The stage holds only what the records explain, as before. work is scratch: when the workspace is retired everything in it is deleted, through descriptors and never through a link, and an inspector takes no notice of it.

The alternatives: deleting unexplained entries of the stage, which gives up the rule that nothing unexplained is removed where outputs are staged; and a directory under TMPDIR, which may be another file system and makes every staged name an absolute path through a public ancestor.

Pinned by compiler/tests/test_compile_publication.py's host-tool-litter, and compiler/ada/tests/native/publication.c.

D1051 — A destination the publication rules refuse is refused in their words, and before anything is generated

D907 said that a dangling link is an occupied entry and that lookups do not follow links. A destination refused by those rules was reported with the text of an unrelated system error set for the purpose, a symbolic-link loop, a resource temporarily unavailable, not a directory, each with advice for a condition that did not exist. A report or depfile option naming an existing directory was not refused at all until the program had been compiled, and the directory had first been read whole into memory as the tree of a directory artifact.

Chosen: each refusal names what was found and the rule: a symbolic link, FIFO, device or socket where an output would replace a file; a file that cannot be read and so could not be put back; an output whose directory is itself a symbolic link, with the route of naming the directory it points to; a relative output when the working directory no longer exists. The caller says whether an artifact is a directory tree; only a Darwin debug bundle is. An existing directory is read only for that, and a file artifact named where a directory stands is refused when it is prepared.

The alternatives: limiting how much of a directory is read, which bounds the cost of the slip and still compiles the program before refusing it.

Pinned by compiler/tests/test_compile_publication.py's host-refusal-reasons, host-directory-for-a-file and host-removed-working-directory, and compiler/ada/tests/native/publication.c.

D1052 — A name and the same name continued in ASCII are two names on every filesystem

D907 said that unknown identity is uncertain separation, refused conservatively. On a filesystem whose name rules the adapter does not know, which is every one but six on Linux, and for any name outside ASCII on every host, two absent names could not be told apart. An executable build always has NAME and NAME.s, so a program whose name holds a byte outside ASCII or ends in a dot or a space could not be built at all there. A bare tool name was also reserved as a file of the working directory, so such an output was refused as naming a tool it did not name.

Chosen: a name and that name followed by ASCII bytes, at least one of them neither a dot nor a space, are distinct under every rule: folding and normalization work character by character and an ASCII character neither combines with what precedes it nor folds to nothing, and dropping trailing dots and spaces cannot remove a tail that holds another character. A name holding ~ or :, the marks of a generated short name and of a stream, stays indeterminate, and the refusal now says that the filesystem's rules are unknown and which characters matter. A bare tool name is looked for along PATH and nowhere else, so once PATH answers it reserves that file and not the working directory's entry of the same name; and a refusal that could only not prove an output separate from a tool's name says that, instead of that the output names the tool.

The alternatives: a table of Unicode forms in the compiler, which follows no filesystem's version of them; and asking the filesystem by creating both names, which the identity adapter does not do to a directory it is only asked about.

Pinned by platform/native name rules on unknown filesystems.

D1053 — A path the host cannot hold is an outcome, not a defect or another file

The discrepancy: three answers of the native adapter were not the caller's question. A path holding a NUL was cut at it when given to the system, so the file read, written or removed was not the one named. A directory was listed through Ada.Directories, which reads every entry's status and time, so one file dated outside Ada's calendar or one link that loops made the whole directory unlistable and its modules unimportable. And a process whose working directory had been removed raised an exception the driver reported as a compiler defect, even when every path was absolute.

Chosen: a name holding a NUL names no file: it does not exist, reads as not found, and is not written, removed or given to a tool. A listing asks the system for names and each entry only for its kind; it holds the regular files and directories, a link counting as what it leads to, and leaves out an entry that is neither or whose kind cannot be told. The working directory is empty when the host cannot name it, as the interface allowed a host to leave it, and only a relative output needs it (D1051).

The alternatives: refusing a NUL where arguments become paths, which leaves every other source of a path to remember the same; and keeping Ada.Directories and skipping the entry that raises, which its interface does not identify.

Pinned by platform/native round trips bytes, and compiler/tests/test_compile_publication.py's host-nul-in-path and host-removed-working-directory.

D359 — refine fmt --check names every line, and --stdout prints the layout

The discrepancy: refine fmt --check said that a source was not in the layout and pointed at its first line that would change, and nothing printed the layout. A reader who could not, or would not, have the file rewritten learnt the layout one difference at a time, guessing each.

Chosen: --check reports L0008 for every line the layout changes, in line order, and each report shows the line as the layout writes it, or says that the layout removes the blank line or changes only its line end. The layout breaks and joins no line (D252), so every line that holds a token or a comment is one line of the formatted text, found through the edits, which only ever replace space; a run of blank lines keeps as many of its first lines as the formatted text has between the same two lines. --stdout writes the one source it is given to standard output in the layout, or as it is when it is in the layout already, and writes no file; a source that does not parse is reported, and nothing is printed. --check and --stdout are refused together, and --stdout with more than one source, because concatenated sources are no source.

The alternatives: a unified diff, which a reader has to apply in their head and which no other report of the compiler resembles; one report for a whole file with the formatted text in its note, which is --stdout's job done worse; printing every source under --stdout one after another, which a caller then has to split again.

Pinned by driver/fmt is a subcommand, the formatting suite's requirement on every source it formats that the reported lines rebuild the formatted text line for line, and scripts/tests/test_cli_native.py's refine fmt case.

D1847 — refine fix applies every exact fix, and a removed form's rewrite is its refusal's

The discrepancy: an Exact fix is one a tool may apply unasked, and no command applied one: refine fmt changes no token, and the JSON report's exact fixes reached a file only through an editor's language server. The language's simplification removes forms and promises a rewrite for every removal that is mechanical and a refusal naming the replacement for every one, and a second place to describe each rewrite would be a second place for it to be wrong.

Chosen: refine fix takes check's operands and options, checks the program as check does, and applies each diagnostic's first exact fix to the bytes the check read. It checks the result again and applies what that check offers, until a check offers no exact fix that applies, because a stage that refuses stops the stages after it and their fixes appear only once the refusal is mended. Every pass reads the sources through an overlay of the bytes the passes before it made, so nothing reaches a file until the last pass; a source is held in the overlay as it is, and checked again, before the first fix is applied to it, so each fix meets the bytes its check read. Then each changed source is written in place as refine fmt writes one (D358), once its bytes are read again and found to be those the first pass read; a source changed meanwhile is left as it is and named with L0005, and so is one the request read as a consumed response file. A Likely fix is never applied: it is a guess at what was meant, which an editor offers and a person takes. Of two exact fixes whose edits overlap, or that both insert at one offset, the first in the report is applied and the second is left to the next pass, which offers it again if the program still needs it. Standard output lists each fix applied, one line each, PATH:LINE:COLUMN: CODE: and the fix's sentence, at its diagnostic's place in the bytes that pass read; the report and the status are the last check's, what is left once the fixes are in. With --check nothing is written, the report and status are the first check's, and a fix that would be applied makes the status 1. A program whose passes still apply fixes after 64 of them has two fixes undoing each other, a defect, and is reported with nothing written, as is a check of fixed bytes that fails as a defect. An edit may name any source the program read, a library module's too, since the library is rewritten with the language; an installed library that cannot be written is named as any unwritable source is.

A removed form's refusal names its replacement, and where the rewrite is mechanical it carries the rewrite as one exact fix, whose edits may reach every place in the program the rewrite changes. So the human report's help, the JSON report, the language server's quick fix and refine fix apply one rewrite, written once, in the stage that refuses the form; a rewrite that needs a choice the source does not make is a likely fix or a note, and refine fix leaves it to the reader.

The alternatives: a migration table of its own, keyed by the language version a program was written for, which describes each rewrite a second time and leaves the editor's refusal with nothing to apply; applying likely fixes behind an option, which writes a guess unasked; writing after every pass, which leaves a program half fixed when a later pass stops; and editing only the sources named as operands, which a rooted program's imported modules are not.

Pinned by the commands case fix applies exact fixes, which applies a closer's exact fix and then the mut fix the parser's refusal had hidden, lists both, leaves a likely respelling unapplied and writes nothing under --check; the fixes case fixes apply from the end, which holds the one routine that applies edits, shared with the harness; and every fixture's pinned fix, which that routine applies.

D2186 — refine fix --code applies only the named codes' fixes

The discrepancy: D1847 applies every exact fix a check offers, and nothing selects which. Migrating the corpus off a removed form applied the fixes of unrelated warnings too, such as removing the unused locals positive/r491-contextual-statements keeps on purpose (L0349), and --allow all, which keeps warnings' fixes out, still lets an error's own exact fix in, so a negative fixture's refusal would be mended together with the removal's rewrite.

Chosen: refine fix takes --code=CODE, repeatable. With any given, a pass applies a diagnostic's first exact fix only when its code is one named, and the passes end when no named code's fix applies; --check selects the same way. The report and the status are the check's as before, so a fix left out is still reported. A code that is not live in the catalogue, or whose diagnostics never carry a fix, is refused as a misuse (L0002) naming refine explain CODE, so a misspelt code does not apply nothing silently.

The alternatives: an option selecting removed forms alone (L0696), which leaves out the closer and keyword removals refused under other codes and every future migration that is no removal; selecting by severity, which separates a removal's rewrite from a fixture's own refusal no better than --allow all does; and a list of codes to skip, which a migration that wants one rewrite spells longer.

Pinned by the commands case fix applies exact fixes, which applies a closer's fix alone under --code=L0109 and leaves the mut warning's in the report, and refuses --code=L0002; and scripts/tests/test_cli_native.py's test_fix_applies_only_the_codes_named.

D360 — A parenthesized operand begins at its parenthesis

The discrepancy: the syntax tree keeps no node for parentheses that only group, and D252's rule that a continued operation stands under its left operand found that operand's first token inside the parentheses. A line that continued (a or b) stood one column past the (, and in a condition under a rather than two spaces in. docs/format.md said neither.

Chosen: a left operand that parentheses enclose begins at its (, so a line that continues the operation stands under the (, or two spaces in from a condition's line. Inside parentheses an operation's first operand still begins one column past the (, because there it does.

The alternatives: documenting the column one past the ( outside the parentheses too, which puts a continuation under a token that is not the start of what it continues.

Pinned by docs/format.md's Parentheses rule, which formatting/the page is the layout holds the formatter to.

D253 — An editor is answered past a broken body, and a build is not

The discrepancy: nothing in the language says what a tool may report about a program that does not parse, and the compiler reports only what the scan and the parse found: each stage stops on a refusal, so a hole does not cascade into reports about everything it swallowed. That is right for a build and wrong for an editor, where nearly every edit leaves some body half written and a server that stopped at it would say nothing about the rest of the program while a person types.

Chosen: refine is unchanged, and a server answers past a hole only where a hole cannot take a name away from anything else: inside a routine body, because nothing a body declares is visible outside it. When every error in a source lies inside the bodies of module routines whose name and signature parsed, the server checks a stand-in: the same bytes, each such body blanked with its line ends kept and loop do end loop written into it, which every signature accepts because it never finishes, so every offset, line and column is the source's own. The unchanged stages check the stand-in. The server reports the source's own syntax errors, then whatever the stages report that touches no stood-in body, and no warning, because D251 admits one only on a program the compiler accepted. A body is not stood in for when it belongs to a generic or a routine whose error set is inferred, because the body is what decides them; when it is not closed by the end the parser matched; when a line inside it begins in the first column, where recovery may have read a declaration as a statement; or when it is too short to hold the stand-in. Any other hole, and any error outside a body, leaves the source reported exactly as refine reports it.

The alternatives: teaching every stage to skip a subtree with a hole in it. That is a mode in each of five stages, and in a checker that sweeps every node of a tree in more than a dozen places, none of which has ever seen a hole; a stand-in is legal source that the stages already check, so it cannot reach a path they have not taken. Letting refine report past a hole too, which moves the report of every program the parser refuses and makes a build's verdict depend on how well recovery guessed. Answering nothing past a syntax error, which is what an editor had before.

Pinned by server/a broken body is stood in for, server/only a body is stood in for, server/analysis continues past a body, server/analysis agrees with refine and server/refused sources are served.

D1068 — An editor's build option reaches the modules that declare it

The discrepancy: D202 has --option= name an option that a reached source declares, and any other name is L0002: a build is of one program, and an option nothing in it declares is a mistake in its command. A server is given one options setting for a session and analyses every module the editor opens with it. Applied as a build applies it, the setting refused every module that did not declare each named option before the module was checked: its sources were published with no diagnostics, as if they were clean, navigation answered nothing in them, and the L0002 report, which has no place in a source, was shown again at every publication. Setting an option for one program cost the rest of the workspace its checking.

Chosen: refine is unchanged. In a server an option is applied to each module whose reached sources declare it, and a module that declares no option of that name is checked without it. That an option went unused is said once in a session for each option, through window/logMessage, naming the first module met that does not declare it, so that a misspelt name can be found and the usual case interrupts nobody. A value an option's type cannot hold is refused as before, in the modules that declare the option. A report with no place in a source is shown through window/showMessage when a module's report first holds it, and not again while every later report of that module still does.

The alternatives: keeping the refusal and showing it once, which leaves the module unchecked and presented as clean. Leaving an undeclared option out without a word, which hides a misspelt name for good. Settings for each module, which the protocol's one initializationOptions does not carry and which every editor package would have to learn.

Pinned by the server session option-not-declared: a module that declares neither of two configured options is checked and reports its own error, each option is logged once, a module that declares one is checked with it, and a value that does not fit is refused at the option that declares it; and by server/a report with no place is shown once, where an unreadable source beside the opened one is said once across three publications.

D1069 — A buffer is the file it names, however the path to it is spelled

The discrepancy: an editor's unsaved buffer is read in place of its file (D253's server reads through an overlay of the host), and the overlay knew a buffer by the bytes of the path its URI names. The loader builds a source's path as a root and an import path. Where a symbolic link lies between the two spellings, a root named through a link or an import directory that is one, the loader read the saved file from disk and the buffer was ignored; an edit of the buffer rechecked no importer, since what an importer had read was recorded under the loader's spelling; and diagnostics, definitions and quick fixes for that source named the loader's spelling, a URI the editor did not have open, beside the buffer with the unsaved changes.

Chosen: a path that is not held as it is spelled is still the held buffer when the host proves it names the same thing: both paths are one existing file, by device and inode, or they are the same entry name in two spellings of one existing directory, which is a buffer not yet saved. The overlay reads, tests and lists by that rule. What a module's report rests on is recorded both by path and by the identity of each file and directory read, so a change to a file rechecks the modules that read it under any spelling. A report about such a source is published under the URI the editor opened. No path is rewritten: a source no document holds is published under the path the loader built, as before, and a host that cannot prove an identity compares the bytes of the name.

The alternatives: resolving the roots and each document's path once, where they arrive. That answers a root named through a link and not a link inside the workspace, since the loader still builds a root and an import path, and it publishes every unopened source under a resolved spelling nobody wrote, /private/tmp for /tmp on macOS. Leaving the match to the bytes, which shows an importer checked against a file that is not what is on the screen, with nothing to say so.

Pinned by the server sessions symlinked-import, symlinked-import-directory and symlinked-root, where the link is the source's file, the import's directory and the root: an importer is rechecked against the unsaved buffer of a source it reaches through a symbolic link, and a definition in that source is answered with the URI the editor opened.

D1070 — A buffer in a directory not yet on disk is a source of that module

The discrepancy: a module is a directory [1410], and a file under a root is analysed as a source of the module its directory makes. The overlay knew a held buffer only as a file. An editor creates the directory of a new file at its first save, so the first source of a new module was in a directory the host did not have: the loader refused the entry module as not a directory (L0007), nothing was ever published for the buffer, and the refusal was shown at every pause.

Chosen: to the overlay, every directory above a held path is a directory whether or not the host has it, and is listed in its parent. A directory that only held paths make is listed from them alone; one the host has and cannot list stays unlistable. So the buffer is analysed as its module, and an import of that module from another finds it.

The alternatives: analysing such a buffer alone, as an untitled one is, which refuses its imports under the roots it lies under and hides it from the modules that import it. Telling the person to save, which is what the refusal amounted to.

Pinned by the server session unsaved-module-directory: a buffer in a directory that does not exist is checked and reports its own error, and an importer of a module that exists only as a buffer is accepted.

D260 — A parse reports a mistake once, inside the construct it is in

The discrepancy: nothing in the language says where a parser resumes after a mistake, and the compiler resumed wherever a declaration could begin. One misplaced word in a body, v: u32 mut = 41, ended the body there: the function was reported never closed although its end main was two lines down, and every later line of the body was read as a declaration of the file and reported again. Of 1,829 refused single-token changes to the bodies of the positive programs, 596 gave one report on the changed line.

Chosen: recovery keeps to the structure the program writes, and only after a mistake, so a program the parser accepts is read exactly as before. A function's closer is found before its body is read, where a reading by the grammar alone did not close it (D1362): the first end name after it that begins a line no deeper than the declaration's, or shares its line, or, for a body written deeper than its function and with no such end name, a bare end alone on the first line after the body's first that is no deeper than the function (D1074). Nothing in the body is read past that closer: to the body it is the end that closes whatever is open, and recovery that would skip further stops there, so a mistake is never reported in another routine. Inside the body, a statement reports at most once, and what follows on its line, including a construct opened there, is the rest of that mistake; lines inside a bracket it opened are part of it too, as are the lines after it that begin with an operator only a binary expression takes, and the lines after it indented deeper than its own, which are the body of the construct it failed to open, such as the arms of a match whose word is out of place. The first line no deeper begins anew, so a mistake inside a construct that line opens is its own. A refused declaration at a file's top level is the same: the lines indented under its header and the end that closes them are passed over. A header that lacks then or do where it belongs begins its body after one written later on its line. A transfer's label is written on its line, so a name on the next line begins the next statement. A value with more of its block after it is reported as not being a statement, and the block goes on. A closer that no open construct takes, such as end written twice, is one report and is passed over. An end beginning a line, with a word that no construct around it takes exactly, closes the innermost construct that wanted a word, and is reported with the closer it needed. "Never closed" is said of a construct only when the closer that ends it belongs to a construct around it; a file that ends inside several constructs is one report, at the innermost, naming the others. Declaration recovery passes over brackets as well as parentheses. A report that a token is missing goes on the token written in its place when that token is on the same line, and says what it is: "followed by then, not the name thne". At a line's end, and before end of file, it stays where the token belonged.

The alternatives: resuming at the next line whatever it holds, which reads a continued expression as a new statement. Treating indentation as structure, which [1750] rules out: the fence is found by indentation, but only to choose between closers the grammar already accepts, and a program that parses is never read differently. Reporting every mistake a statement holds, which reports the first mistake's consequences as if they were others.

Pinned by the mutation suite, parser/calls respect the nesting limit, negative/misspelt-keyword-is-offered-the-keyword, negative/arms-of-a-refused-match-head-are-not-reported, and negative/a-nested-mistake-after-a-refused-statement-is-reported, whose second, independent report the indentation does not quiet.

D1220 — An analysis that exhausts the server's stack or memory is that document's defect

The discrepancy: D253's server answers a defect of the compiler and goes on: a request's is its InternalError, a notification's and a publication's is said through window/showMessage. One defect was left out. The server passed Storage_Error on from each of those three places, so a document whose analysis recursed without bound, or asked for more memory than there was, ended refine lsp and with it every other document's diagnostics, until the editor started it again on the same text. And a publication's defect was said at every publication for as long as the text met it, the same text published again included.

Chosen: Storage_Error from an analysis is answered as any other defect of it, with the words it exhausted the stack or the memory the server has after the usual ones, and the session goes on: the unwinding has given back the stack, and an analysis keeps nothing once it has ended. A publication's defect is said once for a text, the module's open documents at their versions, by the rule a report with no place in a source already follows; an edit is another text and says it again. Nothing is promised where the host ends the process instead of reporting the exhaustion to it.

The alternatives: ending the server, as before, on the ground that memory may truly be gone: the next allocation then fails too and ends it as it would have, and a recursion's stack is not gone at all. Analysing on a stack of the server's own with a size it chooses, which makes the bound the server's rather than the host's and puts a task under every analysis; it stays open, with a bound on the recursions themselves. Saying a publication's defect once for as long as it lasts, whatever is typed, which leaves a reader who has gone on editing with diagnostics from an earlier text and nothing since to say so. Whether those earlier diagnostics should be cleared or marked while the defect lasts is not decided here.

Pinned by the server suite's an exhausted analysis leaves the session and a publication defect is said once for a text.

D1250 — A publication's defect replaces what the module had shown

The discrepancy: D1220 said a publication's defect once for a text and left open what became of the diagnostics the module had published before it. They stayed: the server did not know what the failed analysis would have read, so it dropped nothing, and a reader who went on typing saw the findings of an earlier text, positions and all, with nothing but a message since dismissed to say they were no longer the compiler's.

Chosen: while a module's publication ends in a defect, each of its open documents is published, at its version, with one diagnostic, the defect's report as window/showMessage words it, an error from refine with no code at the document's first position; every other source the module had reported on is cleared, or refreshed by another open module that reports on it too. The same holds each time the text is published again, while D1220's message is still shown once for a text. The first publication that completes publishes the module's findings as it always does, and so they return. What the module watched on disk is kept through the defect, so that a change there analyses it again.

The alternatives: leaving the earlier diagnostics, as before. Marking them stale, each republished with words or a tag saying it is from an earlier text: the protocol has no such state, positions in a text since edited are wrong whatever the words say, and the sources of the module that are not open would have to be read again to place them. Clearing with no diagnostic in the document, which leaves a document with a defect looking exactly like a sound one once the message is dismissed.

Pinned by the server suite's a publication defect replaces what was shown; a scripted session cannot hold it, since a session runs through the executable too and nothing a transcript writes makes the compiler fail.

D1074 — A program the grammar derives is read by the grammar alone

The discrepancy: D260 found a function's closer by indentation before its body was read, and said that a program that parses is never read differently for it. That did not hold. A function whose end stood deeper than its header was refused when a later routine closed with end at the margin, because that later end was taken for its closer; re-indenting the lines of the library and the fixtures, and changing nothing else, refused 201 of 3,042 files. refine fmt indents a signature's second line, which switched that search on, and so rewrote a file that compiled into one that did not. A bare block followed by an if, match or unchecked statement was refused, its end held back for an end if that nothing open could take. And a recovery clause, a bare block or an anonymous function left without its end as the last construct of a routine was accepted: the closer found for the function read as end to everything in the body, the construct took it, and the function took it again, so the routine compiled with the rest of its body inside the construct.

Chosen: a file is read first by the grammar alone. No closer is looked for beforehand: a function is closed by the end its body leaves, and a bare block's end is its own whatever follows it. When that reading has nothing to report it is the parse, so in a program the grammar derives the place a line begins decides nothing, as [1750] says. When it has anything to report it is given up at that point, having reported nothing, and the file is read again with D260's recovery, which makes every report; a file with a mistake costs at most one more reading up to its first mistake. That reading closes each function the grammar derived where the grammar did (D1362).

Three things change in the recovering reading. A construct that closes with a bare end and meets the closer found for its function, in a body that has reported nothing, is reported as never closed, and the closer stays the function's; after a report in the routine it is taken quietly as before, being what that mistake did to the rest of the body. A bare block leaves an end for a construct around it only when end if, end match or end unchecked is written on one line and an if, match or unchecked is open around the block. And the bare end a function is fenced by is looked for only as far as the first line no deeper than the function: when that line is anything else, what follows is another declaration's, and the function is closed by whichever end its body leaves.

refine fmt parses what it laid out, and a layout that no longer parses is a compiler defect that leaves the file as it was, beside the one for a changed token.

What the grammar derives is accepted as derived even where a person would read the layout otherwise: a routine whose last block lost its end, followed at the margin by a function-typed binding and a stray end, is one routine with that binding inside it.

The alternatives: bounding the closer's search and letting a function take any end while its body has reported nothing, which still reads a program by its indentation wherever the search finds a closer. Keeping the search and reporting only its disagreements, which makes the layout part of the language against [1750]. Reading every body twice, once each way, which doubles the parse of every program to serve the ones with a mistake. Reporting a forgotten end from the layout alone, a body's last lines being deeper or shallower than the construct, which is the same dependence turned into a report.

Pinned by runtime/closers-are-read-by-the-grammar, each of whose routines was refused or read otherwise for its layout; negative/a-forgotten-end-is-not-the-functions, whose three reports are recorded; parser/indentation decides nothing, which reads every fixture program again with no indentation and with every line at a drawn depth; and formatting/the layout keeps what parses.

D261 — A refused statement is reported as the smallest change that mends it

The discrepancy: a parser reports what it needed where it stopped, which is often not what a person wrote wrong. v: u32 mut = 41 needs a name after mut, and "a name belongs here" at = names neither the word nor the fix; r = reported at the next line's else sent a reader to the wrong line.

Chosen: the first error the parser reports on a line of a routine body is tried against one-token changes of that line alone, in the order they are offered: a word written twice in a row with one copy removed; mut, try, inc, dec or public moved to the line's start; two neighbouring tokens swapped; the token the parser asked for written where it stopped, before any other token or at the line's end; and last, any token removed. The ones that keep every token written come first, because they keep what the person wrote. A change counts when the line parses on its own as one statement, or as its block's value where it ends the block of a routine that returns one, and when the routine with it, and with its earlier refused lines mended (D1361), parses to the end of the line and reports no more after it than before. Changes that leave the same tokens are one repair. The report moves to the token the first repair touches, says what the change is, gives the line as the source would read with only that edit, and offers up to three repairs. A deletion that leaves only a comment is not a repair: it erases the intended statement rather than expressing it in Landin.

A repair is Likely. It is Exact, which a tool may apply unasked and an editor prefers, only when every change that mends the line writes the same line and that line removes one copy of a token written twice in a row: x:: u32 and 1 + + 2 have one reading, and nothing is guessed. A stand-in for a name, a value or a type is never Exact, and nor is the removal of a bracket (D1075).

When parsing has already refused a statement or module declaration beginning with an identifier, a plausible misspelling of its leading keyword is reported at that identifier with a Likely respelling. Successfully parsed identifier expressions, calls and bindings retain their meaning. A refused value after a bare return names the route through assignment to the named result followed by a bare return, rather than a generic final-value rule.

A line is not tried when it is a closer or a divider, a match arm, the line a routine's signature is written on, longer than forty tokens, or when the report spans a construct of its own.

A line the grammar read as continuing the one above, after an operator, an =, a ,, an opener, a ., or a word that asks for a value after it (when, addr, not, and, or), is tried differently, because a statement ends where its grammar does and a line break says nothing to the parser. If that line parses on its own as the statement it begins, or begins one that goes on past it, or is the first arm under a match, the line break is the candidate: the line above is tried with the value it asked for written at its end, or a name after a . or addr. The repair counts when the routine, with only that line changed, parses to its end with no report before the changed line's end and no more after it than before. The report is the missing value, L0102, or the missing name, L0100, at the token that asked for it; the report the parser made on the following line is not given. Only a program the parser has refused is tried, so a value the grammar accepts on the next line, at any indentation, keeps its meaning.

A report that carries a fix of its own is not tried, except where the line break is the mistake, and there the structural repair replaces the report's fix. local = then r = local reads local = r = local, whose = the parser offers to make ==; but local == r = local is still refused, so that fix mends nothing, and every fix offered must leave a program that compiles. Where no line break is involved, as in if x = 1 then, the report's own fix stands, and the structural search is not run. Nor is it tried when a value was asked for and a word that begins only a statement stands there: b = inc a is reported as a statement where a value belongs, because removing inc would mend the line by changing what it does. For the same reason no repair removes a word that says what a statement or an operand does: inc, dec, return, fail, defer, undo, in and inout.

Where a form is plainly another construct written in its wrong place, the parser names that construct instead of what it stopped on, and reads on as if it were written right: sizeof(t) is a measure with a call's parentheses, name: concept (...) a concept missing its type =, else (_) an error binding that binds nothing, (a, b) = value a destructuring written with an assignment's =, f().x a selection from a call, and general after an operand's : the register class where its type belongs. addr takes a named place, so addr 3 and addr make() are said at the value; end struct names the kind of thing closed rather than the struct; brackets written before a generic function's list, id: [t: type] (x: t), are its formals out of place; an operand first in a call has no block text before it. No repair removes addr, lenof or the name a lenof measure is given, since each would change what the line measures or points at. A : or := that begins a line belongs to that line, so the name at the end of the line above is a value, and an assignment operator beginning a line is a binding or an assignment whose name was left out. A closing word written again, as end if if or end end match, is one copy and is said once; the copy after end if opens nothing, because an if needs its condition on its line, so removing it is Exact. These are the grammar's own constructs, recognised by their tokens. Another language's spelling of a construct is D367's, and a report that names one is not tried: removing one & of && mends the line into a bitwise operation nobody wrote.

The alternatives: Exact whenever one repair alone mends the line. It was the first rule and was withdrawn: a repair found by parsing alone still guesses what was meant, and the guess is unique only because the search stopped; an Exact fix is applied by editors and agents without asking, so a wrong one silently changes what a program does. Searching every keyword and punctuation mark at every position, which finds more repairs at about a hundred parses a token. Running the trial inside the parser in the statement's own block, which reaches into every token access of the parser.

Pinned by the mutation suite, which applies every offered repair and requires its line to parse; negative/misspelt-leading-for-is-named, negative/misspelt-leading-return-is-named, negative/misspelt-leading-public-is-named, negative/misspelt-leading-import-is-named, negative/return-named-expression, negative/misplaced-mut-is-moved-to-the-front, whose recorded report offers the move first and the removal second; negative/missing-colon-is-written, negative/stray-end-in-a-statement-is-removed, negative/doubled-operator-is-removed, negative/doubled-equal-is-removed, negative/doubled-colon-is-removed, negative/doubled-mut-is-removed, negative/measure-in-parentheses-is-written-bare, negative/concept-without-type-is-given-it, negative/unnamed-error-binding-is-removed and negative/missing-right-operand-is-reported-at-its-operator, negative/closing-word-written-twice-is-removed, negative/value-left-out-before-a-line-break-is-written-there, whose every offered repair the fixes suite compiles clean; negative/statement-where-a-value-belongs-is-named, negative/names-assigned-as-a-list-are-refused-there, negative/selection-from-a-call, negative/register-class-as-operand-type-is-named, negative/name-left-out-after-a-dot-is-written-there, negative/match-subject-left-unfinished-is-reported-there, negative/value-left-out-before-a-multiline-statement-is-written-there and negative/binding-missing-its-name-is-reported-on-its-line, negative/addr-of-a-call-result-is-refused-there, negative/addr-of-a-literal-is-refused-there, negative/generic-formals-in-brackets-are-reported-once and negative/operand-with-no-block-text-is-refused-there, whose one report is recorded; negative/struct-closed-by-end-struct-is-given-its-name, whose repair the fixes suite compiles clean; positive/value-continued-at-any-indentation, which holds a continued value the grammar accepts to being accepted; server/repair-actions, which holds the preference an editor sees to the two levels; and server/formatting.

D1077 — A bidirectional control in a comment or a literal is warned about

The discrepancy: [1750] admits any well-formed UTF-8 inside comments and literals, and the scanner checked nothing more. U+202A to U+202E, U+2066 to U+2069, U+200E, U+200F and U+061C reorder what an editor or a review page shows around them, so a comment can appear to end before code that is inside it and a literal can appear to hold other text than its bytes: what a reviewer reads is not what is compiled. Nothing was reported. The compiler's own notes and help lines, which quote source, passed the same characters to the terminal.

Chosen: a comment or a literal holding one of those eleven characters is reported once, at its first, as the warning L0628. The program is accepted and means what its bytes say; --allow=L0628 is for a source that writes right-to-left text on purpose and --deny=L0628 refuses. A text or character literal can carry the character as an escape, \u{...} where text is meant and \xNN bytes in a []u8, which is not warned about. Every report writes these characters, where it quotes them, as the \xNN of their bytes, as it writes a control character.

The alternatives: refusing them, which would change [1750] and refuse right-to-left text in a comment that holds a mark to keep its punctuation in place. Warning only where the controls of a line do not balance, which is the rule of the Unicode algorithm restated in a scanner and still shows a reviewer reordered text. Saying nothing and leaving it to editors, which is where it stood.

Pinned by negative/a-bidirectional-control-is-warned-about, whose report is recorded, and diagnostics/bidirectional controls are escaped.

D1075 — Removing one of two brackets is a guess

The discrepancy: D261 makes a repair Exact when every change that mends the line writes the same line and that line removes one copy of a token written twice in a row. Two closing brackets in a row met the rule, and r = scale(a * b - c)) was offered scale(a * b - c) as a fix a tool may apply unasked. The line is as much scale(a * (b - c)) with its ( lost, which computes something else; the search writes only the token the parser asked for, never an opener, so it found one repair without there being one reading.

Chosen: the removal of (, ), [ or ] is Likely, however few repairs were found. Exact remains for a token whose second copy cannot be one half of a pair: x:: u32, mut mut, a closing word written again.

The alternatives: searching for the opener as well and calling the removal Exact when no placement of one parses, which is a parse for every position of a line to learn what the brackets' own shape already says. Requiring the line's brackets to balance before the removal, which a doubled closer never does.

Pinned by negative/a-doubled-closing-bracket-is-a-guess, whose recorded report offers both removals as guesses and the removal of a doubled : as exact.

D1076 — The repair search reads a routine for its first refused line alone

Choice superseded by D1361. Its measurement stands: a routine read again for every change to every refused line costs the square of its length. D1361 restates every refused line within a bound instead, by the alternative recorded below. The reasoning is retained as history.

The discrepancy: D261 tries the first error of every refused line of a routine, and a change that parses alone is read again inside its whole routine. A repair counts only when the routine then parses to the end of its line, so in a routine of many refused lines only the first could ever be restated: the routine is refused before every later one whatever is done to it. The search read the routine for every change to every one of them all the same, and 1,500 lines of r = r + + 1 took six minutes to report.

Chosen: a line is not tried when the parser reported an error earlier in its routine. No change to it can count, so none is read, and its report stands as the parser made it. What D261 answers does not change; a routine is read again a few times for its first refused line, and a file as often as it has refused routines.

The alternatives: reading the routine with the other refused lines blanked, which would restate more of them and is a change to what D261 answers rather than to what it costs. A count of readings or of bytes after which the search stops, which bounds the cost by refusing work that could have counted, where this refuses only work that could not. A fixed number of repaired lines to a routine, which is that with another unit.

Pinned by parser/the repair search reads a routine once, which held the count of readings to the routines tried, and was renamed parser/the repair search is bounded by routine by D1361.

D1361 — Each refused line of a routine is tried with the earlier ones mended

The discrepancy: D261 restates a refused line as the smallest change that mends it, and counts a change only when its routine then parses to the end of the line. A routine refused earlier is refused there whatever is done to the line, so D1076 tried only a routine's first refused line, and every later one kept the parser's own report until the first was mended: three mistakes in one routine were one repair and two bare reports.

Chosen: a refused line is tried in its routine as the routine's earlier refused lines would be mended. Each earlier line stands as its first repair when it was restated, as its report's own fix when that fix is one edit on its line, such as == for an = in a condition, and otherwise blanked. A blanked line takes with it what D260 keeps quiet after it: the lines continuing it, the lines indented deeper, and, when those are a body it opened, its else and elsif dividers and the end at its own depth, which left behind would close a construct around it. The blanking stops at a line the parser reported on, which is tried as a mistake of its own. What counts as a repair is otherwise D261's, so a repair is judged in the text the earlier fixes leave, and applying the first fix of each report leaves every one of those lines parsing.

Every trial reads its routine again, a few times a line, so the search is bounded by the routine: the first sixteen refused lines of a routine are tried and a later one keeps the parser's own report. Across the mutation suite no line took more than five readings. The 1,500-line routine of r = r + + 1 lines that D1076 measured took a minute with every line tried, and takes about two seconds with this bound, a debug build of the compiler against two thirds of a second when one line was tried.

A blank can leave a closer where the layout misled it: a construct closed deeper or shallower than its opener keeps its end, which then closes a construct around it. The trial then reports before the line it tries, which cannot count, so the line keeps the parser's report. A blank never makes a repair count that the text could not.

The alternatives: blanking every earlier refused line whatever was found for it, D1076's recorded alternative. It gave the same reports on every fixture tried, but judges each fix on its own, so the fixes offered for one routine need not apply together. Blanking only the refused line, which leaves its body and its closer to be read as statements and a stray end, so that no later line counts. A budget of bytes read again for a file, which bounds the cost evenly but makes which lines are restated depend on how long the file is. Eight lines to a routine, which costs a little less and leaves a ninth mistake bare.

Pinned by negative/two-refused-lines-of-a-routine-are-each-restated and negative/three-refused-lines-of-a-routine-are-each-restated, whose recorded reports restate every line and whose fixes the fixes suite compiles clean; negative/a-later-refused-line-is-tried-as-the-earlier-are-mended, whose later lines are tried past an earlier report's own fix and past a line no change mends; negative/a-nested-mistake-after-a-refused-statement-is-reported, whose second report is now restated too; and parser/the repair search is bounded by routine, which holds the lines restated and the readings to the bound.

D1362 — A routine the grammar derives is read as derived beside a mistake

The discrepancy: D1074 reads a file by the grammar alone first and, when that reading meets a mistake, reads the whole file again with D260's recovery, which places every function's closer by where it is written. So a correct routine laid out unusually, a bare block's end at the margin inside a routine closed by a bare end, took the block's end for its own, and the file gained a report of its own beside the real one, "this bare block is never closed", whether the routine came before the mistake or after it.

Chosen: D260's reading closes a top-level function where a reading by the grammar alone closed it, when one did, and reads it as that reading did, so its layout decides nothing. The first reading by the grammar notes the closer of every function it reads to its end and the token it stops at. A function past the latest such stop is read by the grammar from the first token of the file's declaration that holds it, itself or the fixed if around it, and that reading goes on to its own first mistake, noting the same; a file is read so at most once more, beyond D1074's readings. Only a function the grammar refused is fenced by where its closers are written, as D260 has it. And D260 passes over the lines indented under a refused declaration as the body its header failed to open; after a function that was closed at the closer it was fenced by, nothing of it is left, so the next line begins anew however deep it is written. Without that, a routine whose header was written one column deeper than the refused routine's was passed over whole, and its body's lines were read as declarations. A function in which a mistake is written is refused by its own reading, so a file with mistakes in two routines reports each, once, in its own routine, and nothing in the others.

A reading by the grammar that stops outside every body may have stopped at what is left of the function it closed last: a stray end, or an opener that was lost, closes the function early by the grammar, and its last lines are then read as declarations. That function is not taken as derived, and is fenced as before. Seven of the mutation suite's mutants do this.

The alternatives: fencing by indentation only from the routine that holds the grammar's first mistake, since the routines before it are derived, which still adds a report to an unusual routine after the mistake. Reading every routine by the grammar alone as its own small file, which needs the boundaries D260's reading finds and reads every routine a second time. Trusting every function the grammar closed, which read the seven mutants' last lines as declarations outside their body.

Pinned by negative/a-mistake-is-reported-alone-whatever-the-layout-around-it, whose routines before and after the mistake each gained a report on the base; parser/indentation decides nothing, which writes a routine with a mistake before and after every fixture program that parses, its lines moved as for its own check, and requires that mistake's report alone; and the mutation suite, whose share of one report on the changed line is unchanged.

D264 — Hosted system identity selects libc records, independently of C transport

From [1500], [1550] and [1975].

The discrepancy: FreeBSD shares Linux's SysV AMD64 and standard AAPCS64 calling conventions, but its libc uses __error, BSD open flags and a 224-byte stat record on both architectures. The C transport fact cannot select that record without changing the meaning D256 gave it.

Chosen: freebsd-x86-64 and freebsd-arm64 are distinct LP64, little-endian target descriptions using the existing ELF backends, DWARF, 16-byte stack alignment and frame pointers. They share the existing C ABI facts and feature levels of their architectures, including arm64's unsigned plain char and reserved x18. compiler.os is a fixed configuration value in its own equality domain, with linux, darwin, freebsd and freestanding as compiler-owned values. It names the target's hosted system, never the compiler host, and is available only in fixed configuration. platform/libc uses it to select FreeBSD's native libc record; calling conventions remain selected by C ABI facts. By the same fact platform/libc links its errno cell to __error and gives O_WRONLY | O_CREAT | O_TRUNC = 0x601 (D276). The selected FreeBSD driver is Clang with an explicit FreeBSD sysroot and ELF linker; x86-64 assembly uses GNU as so the selected level constrains user assembly too. FreeBSD executable feature levels make no loader-refusal promise: the execution lane confirms the selected features before running higher-level code.

The alternatives: inferring libc record layout from the C calling convention, which reads and writes outside the actual record. Reusing the Darwin ABI fact because the errno spelling agrees, which misplaces variadic arguments. D256 declined an OS fact for C transport; the new fact serves the now demonstrated libc-record distinction and changes none of that transport. A backend copy would split instruction selection without changing the ABI.

Pinned by runtime/target-hosted-system-facts, negative/system-compared-with-architecture, negative/system-outside-configuration, abi/core-io-file-identity, targets/descriptions do not follow the host, targets/backends are stated per target, toolchain/a target names its toolchain, runtime/assembly-operands, the two backend register-verifier cases and compiler/tests/freebsd/check.py's recurring runtime, C peer and source-debugger sessions. FreeBSD's errno header, open flags and stat record state the libc contracts; the independent C peers check their selected headers.

D255 — A build assumes a CPU feature level, and a level changes no layout

From [1500] and [1550].

The discrepancy: [1500] selects declarations by architecture, and a target description named one processor: cortex-m0 was ARMv6-M, and the hosted targets emitted for the oldest processor of their architecture. A program could not be built for a processor with more, nor ask whether the one it was built for had something, so every instruction a newer core adds was out of reach without leaving the language for assembler.block.

Chosen: a build assumes one CPU feature level of its target's family, selected with --level=NAME and by the language server's level option. A level is a set of features; the levels and what each holds are:

family level features
x86-64 x86-64-v1, the default none
x86-64-v2 cmpxchg16b, lahf, popcnt, sse3, ssse3, sse4_1, sse4_2
x86-64-v3 those, and avx, avx2, bmi1, bmi2, f16c, fma, lzcnt, movbe, xsave
x86-64-v4 those, and avx512f, avx512bw, avx512cd, avx512dq, avx512vl
arm64 armv8-a, the default none
armv8.1-a lse, crc32, rdm
M profile armv6-m, the default none
armv7-m thumb2, idiv
armv7e-m thumb2, idiv, dsp
armv8-m.main thumb2, idiv
RV64 rv64gc, the default i, m, a, f, d, c, zicsr, zifencei
rv64gc_zba those, and zba
rv64gc_xtheadba baseline, and xtheadba
rv64gc_zba_xtheadba baseline, zba and xtheadba
RV32 rv32imc, the default i, m, c, zicsr, zifencei
rv32imac those, and a
Xtensa xtensa-esp32, the default none
xtensa-esp32s3 salt

The x86-64 levels are the x86-64 psABI's microarchitecture levels; the Arm ones are the architecture versions of the A-profile and M-profile manuals, in GCC's spelling. RV64 levels are the supported ISA strings of D265; g expands to I, M, A, F, D, Zicsr and Zifencei, and c adds compressed instructions. Zba and XTheadBa are independent sets, not successive ranks. RV32's levels are D660's microcontroller ISA strings, rv32imc below rv32imac, each with Zicsr and Zifencei. Xtensa's levels are D903's two Espressif configurations, whose instruction sets do not nest. Synthetic-32 describes no processor and has no level. Each default is the level every backend emitted for before levels existed, so a build that selects none is the build it was. cortex_m0 names the M-profile backend's family, not its core: a build at armv7-m is still cortex-m0's description and ABI. Darwin's lowest processor, Apple's M1, has more than armv8-a; assuming less than a machine has is sound, so the default stays and a build for Apple silicon may select armv8.1-a.

A program reads its level as compiler.feature.NAME, a fixed bool fact [1500] that holds when the selected level has the feature NAME, spelled as in the table. Two features are not a level's: fp and fp_dp hold when the selected device description's float unit has single, and double, precision, and no level holds either (D615). A feature of another family is false rather than refused, so fixed if compiler.feature.lse then needs no architecture test before it, and a name no family has is L0305. compiler.feature is a member chain the grammar already derives; it adds no reserved word and no configuration atom, so no option name collides with one. Like every other fact it is read in a fixed configuration expression and, since D437, in a module value.

No fact names the selected level. platform/linux's entry check states each level's name and, in this table's order, the features it holds a processor to, beside the CPUID and HWCAP masks that find them; a level fact would remove neither the masks nor the order. The targets case the library and the compiler state D255's levels reads this table and holds both the compiler's level model and that library source to it, so the three cannot drift apart unseen.

A level changes which instructions the backend selects, which Cortex assembly text the checker admits, which instructions the toolchain accepts, and whether D227's read-modify-write builtins are admitted, and nothing else. The Cortex text check uses the level so its default-only instruction allowlist does not refuse valid instructions of higher levels. The admission of exchange, add and compare-exchange is the one checking rule a level decides (D690): RV32 admits them at a level holding a and refuses them below it, with L0344, and on every other target the level leaves it as the target has it. No other type check depends on a level, and the IR does not. The assembler is held to the level at every level, the default included, so an assembler.block can use no instruction the build does not assume. At x86-64-v3 a variable shift of 32 or 64 bits is BMI2's shlx, shrx or sarx, which shifts by any register rather than by %cl; narrower shifts, which BMI2 has no form for, and every guard [0320] and [1950] ask of a shift are unchanged. At armv8.1-a an atomic add, exchange or compare-exchange is one LSE instruction, ldadd, swp or cas in its ordering's form, rather than an exclusive-monitor retry loop; each orders exactly as the loop does at the same ordering (D522). At each Thumb-2 level, armv7-m, armv7e-m and armv8-m.main, a 32-bit quotient is sdiv or udiv and its remainder mls, after the same zero-divisor and minimum-over-minus-one guards, rather than a call to the runtime's __aeabi_idivmod; a 64-bit one still calls the runtime. There a product of 32 bits or fewer is smull or umull, a checked one held to its high word, and a 64-bit one umull with mul and mla for its cross products, rather than a call to __aeabi_lmul (D605). At armv8-m.main an acquire or seq_cst load is lda, ldab or ldah and a release or seq_cst store stl, stlb or stlh, with no dmb beside it (D606). RV64 indexed address calculation uses Zba's sh1add, sh2add or sh3add when its scale fits, XTheadBa's th.addsl when selected without Zba, and the same shift/add sequence at baseline; bounds and overflow checks are unchanged. Beyond that: every level of a family shares one layout, one calling convention and one C ABI, so code built at two levels of one family links together. A description's float unit is not a level and does change the calling convention (D615). A level is not a target. Comparing two descriptions still says which backend and which ABI, and type checking, but for that one admission, and the target-neutral IR do not depend on a level. A name that is no level of the selected family is L0009. A build at a level the machine running it lacks is not detected by the program; on Linux x86-64 the executable carries the level in its ISA note and the loader refuses it. Linux arm64 and RV64 Linux emit no loader-enforced ISA-level note and have no such loader-refusal protection. Selecting a supported level for its execution environment remains the caller's responsibility.

The alternatives: a target per level, --target=x86-64-v3, which multiplies every operating system by every level and makes comparing two descriptions answer a question about the processor when every caller asks which backend. A level in the target description, which is the same thing inside the compiler. Ordering levels and comparing them, compiler.level >= v3: the psABI's levels nest, but ARMv8-M's baseline lacks what ARMv7-M has and RISC-V's extensions combine freely, so a set is what a level is. Taking Apple's floor as Darwin's default, which changes the code every existing Darwin build emits.

Pinned by targets/levels are stated per family, targets/the library and the compiler state D255's levels, targets/names select their descriptions, driver/a level is selected within its family, positive/feature-level-selects-declarations, negative/feature-unknown-name, negative/feature-outside-configuration, negative/feature-compared-with-architecture, end-to-end/feature-level-default-lacks-bmi2, end-to-end/feature-level-x86-64-v3-has-bmi2, end-to-end/feature-level-armv8-1-a-has-lse, end-to-end/feature-level-linux-arm64-default-lacks-lse, end-to-end/feature-level-linux-arm64-armv8-a-selects-without-lse, end-to-end/feature-level-linux-arm64-armv8-1-a-selects-lse, end-to-end/feature-level-armv6-m-lacks-idiv, end-to-end/feature-level-armv7-m-has-idiv, end-to-end/feature-level-of-another-family, x86 opt/a level selects its shifts, fixtures/profiles are explicit, backend/a level selects its instructions, driver/the arm64 default is armv8-a, fixture execution/an assembly block is held to its level, runtime/variable-shifts-at-every-width, which executes at x86-64-v3 too, runtime/r630-memory-scalars, which the Linux arm64 and Darwin lanes execute at armv8.1-a too, runtime/assembly-block-at-its-level, which selects a BMI2 assembly block by compiler.feature.bmi2 and runs at both x86-64 levels, runtime/assembly-block-at-its-arm64-level, which selects an LSE block by compiler.feature.lse and runs at both arm64 levels, and runtime/division-by-arguments-at-every-width, runtime/a-zero-divisor-traps and runtime/signed-division-overflow-traps, which the Cortex-M corpus executes at armv7-m on QEMU's Cortex-M3, runtime/checked-products-of-arguments, runtime/checked-unsigned-product-overflow-traps and runtime/atomic-accesses-at-every-ordering, which it executes at armv7-m and at armv8-m.main too, and the whole corpus, which it executes again at armv8-m.main on QEMU's Cortex-M33 (D607). In each image a Thumb-2 level ran, the corpus finds no call of __aeabi_lmul, __aeabi_idivmod or __aeabi_uidivmod, and in each of these fixtures the instructions its row in compiler/tests/cortex-m/corpus.json says the level selects, and none of the default's.

D605 — A Thumb-2 level multiplies in hardware

From [0290], [0300] and D255.

The discrepancy: D255 gave the Thumb-2 levels hardware division and nothing more, so every product at armv7-m, armv7e-m and armv8-m.main still called __aeabi_lmul, as ARMv6-M must, though Thumb-2 multiplies 32 bits by 32 into 64 in one instruction.

Chosen: at each Thumb-2 level a product of 32 bits or fewer is smull or umull of the extended operands into r1:r0, the whole product the helper returned, and a checked one is held to that high word as it was: to the low word's sign for a signed product and to zero for an unsigned one, then to [0300]'s narrower width. A 64-bit product, checked or wrapping, is umull of the low halves with each cross product added to its high word by mul and mla, after the same bound a checked one is held to first, which still asks __aeabi_uldivmod for it, because no M profile divides 64 bits. A wrapping product of 32 bits or fewer is still muls, and armv6-m keeps its lowering byte for byte. A routine whose only call was the helper becomes call-free there, and so may be a leaf, whose frame is the backend's own; no layout or calling convention changes.

The alternatives: a checked 64-bit product held by its partial products' high words, which would remove __aeabi_uldivmod from it at the Thumb-2 levels as well, and a different check from the default's; it waits for a measured need. Keeping the helper beside hardware division, which is what D255 alone left; the maintainer chose the instructions.

Pinned by backend/a level selects its instructions, which holds each level's products to their instructions and every guard to the default's count, runtime/checked-products-of-arguments, products at the edges of what fits at every width with an i32 product of 2^31 overflowing to the handler, and runtime/checked-unsigned-product-overflow-traps, each executed at armv6-m, armv7-m and armv8-m.main; the corpus finds smull, umull and mla and no call of __aeabi_lmul in the first's main at the Thumb-2 levels, and the call and none of them at armv6-m.

D606 — Armv8-M acquires and releases in one instruction

From [1620], D255, D499 and D522.

The discrepancy: D522 gave Cortex-M0 ARMv7's mapping, the one for a core with no acquire or release instruction, and an Armv8-M core has them: LDA, LDAB and LDAH, and STL, STLB and STLH.

Chosen: at armv8-m.main, ARMv8's mapping from the same collection: a relaxed load or store is plain, an acquire or seq_cst load is lda, ldab or ldah and a release or seq_cst store stl, stlb or stlh, in the access's width, and none has a dmb beside it. Every thread fence is still dmb sy, the only option Armv8-M's DMB has, and the device and completion barriers, the alignment check and the compiler boundary are unchanged. Each access orders as D227 asks and as ARMv7's mapping did: an acquiring load before every later access, a releasing store after every earlier one, and a seq_cst store before a later seq_cst load, since a load-acquire is never reordered before an earlier store-release, so the seq_cst accesses keep their single order. The barrier ARMv7's mapping put after a seq_cst store also held it before later relaxed accesses, which no ordering asks for. armv7-m and armv7e-m, whose cores have no such instruction, keep ARMv7's mapping. No feature names the instructions: every Armv8-M level has them, and a program has nothing to choose between.

The alternatives: keeping a dmb sy after a seq_cst stl, which orders more than C11's seq_cst asks; D522 took each architecture's published mapping, and ARMv8's has none. A feature in D255's table that names them, which every Armv8-M level would hold and no declaration would be selected by. Read-modify-write through ldaex and stlex stays refused at every level (D510): D690 lets a level decide that admission, and no Thumb-2 level's exclusives are lowered yet.

Pinned by backend/atomics are fenced as their orderings ask, which holds each ordering's access at armv8-m.main to its instruction, and runtime/atomic-accesses-at-every-ordering, executed at armv6-m, armv7-m and armv8-m.main, in whose main the corpus finds lda, ldab, ldah, stl, stlb and stlh and no dmb at armv8-m.main, and the plain accesses and dmb and none of those at armv7-m.

D607 — The Armv8-M corpus runs on a lane description of the AN505

From [1990], D255, D543, D545 and D589.

The discrepancy: the corpus ran each level on a QEMU machine with the constrained reference's map, flash at zero and RAM at 0x20000000, which the micro:bit and the AN385 have. QEMU's Cortex-M33 machine, mps2-an505, boots in Secure state from VTOR 0x10000000 and locks up on an image linked at zero, so the reference's images do not run on it.

Chosen: the corpus links each image with its own harness startup and the linker script refine derives from a description (D545, D589), so the AN505 is given a description of its own in Landin source, environments/cortex-m/lanes/descriptions/mps2_an505: a cortex-m33 with the reference's 48-word table, its 32 KiB of flash at 0x10000000, the Secure alias of the board's first SSRAM, and its 16 KiB of RAM at 0x38000000, the Secure alias of its second, the upper 4 KiB the stack. It describes an emulator's map for the lane and no chip, lives with the lane's sources, and a program reaches it only through the lane's entry-module file, as the M7's lane reaches its own (D619). Its facts are recorded apart from it in environments/cortex-m/descriptions.json under lanes, and the profile refine derives is held to them as each device's is. The capacities are the reference's, so a program fits the AN505's map exactly when it fits the reference's, and one inventory row says each fixture's verdict at every level. Run with --lane mps2-an505, the corpus builds and runs every execute row at armv8-m.main alone on the AN505, compiles every refuse row there to its codes and builds every restriction to its stop (D986); run.py's mps2-an505 lane is that run.

The alternatives: a harness linker script of the lane's own, which the compiler would not derive and nothing would hold to the facts every other profile is held to. The AN505's whole 4 MiB banks, which would run the programs the reference cannot hold at one level only, with a limit that held at some levels and not others; larger images remain open work. Moving the reference itself, which every firmware build that imports no description uses.

Pinned by environments/cortex-m/test.py's test_a_level_must_change_the_executed_image, the mps2-an505 lane of environments/cortex-m/run.py, and the derived profile's comparison with its record in every corpus run.

D256 — Linux arm64 is the standard AAPCS64, a third C ABI with unsigned plain char

From [1500], [1580] and [1975].

The discrepancy: [1975] selected two hosted C ABIs, both with signed plain char, and platform/c made c_char an i8. Linux on arm64 uses the standard Procedure Call Standard for the Arm 64-bit Architecture, which is neither: Apple's variant puts every unnamed argument on the stack and packs named stack scalars at their natural size, the standard does neither, and its plain char is unsigned. A second arm64 description could not reuse compiler.c_darwin_lp64 without making that fact mean "arm64".

Chosen: linux-arm64 selects the standard AAPCS64 LP64, whose fixed bool is compiler.c_aapcs64_lp64. It is false on every other target, and compiler.c_darwin_lp64 is false on linux-arm64, so each C fact still names exactly one ABI and compiler.arch == arm64 is what the two arm64 targets share. [1975] states the transport: Darwin's banks, homogeneous floating aggregates, sixteen-byte indirect bound and x8 result, with unnamed arguments assigned as named ones are and every stack argument in whole eight-byte slots. Darwin's unnamed variadic tail instead places every promoted argument in its own eight-byte stack slot in argument order, which abi/darwin-varargs-stack-slots pins against a C peer reading it. platform/c's c_char is the selected ABI's plain char, u8 under compiler.c_aapcs64_lp64 and i8 otherwise, chosen by a fixed if on that fact. x18 stays reserved, so one register rule, and one rule for assembly blocks, holds for compiler.arch == arm64. Both arm64 targets share D255's arm64 levels, so compiler.feature.lse means the same on each.

The alternatives: reusing compiler.c_darwin_lp64 for both arm64 targets, which misplaces variadic and stack arguments on Linux. One fact true on both with a separate Apple fact beside it, which changes what an existing fact means to every program that already reads it. A compiler.os fact, when the transport is decided by the ABI and FreeBSD's arm64 shares this one. Keeping c_char an i8, which disagrees with every header compiled for the target. Allocating x18 on Linux, which AAPCS64 permits and which would make an assembly block's register rules depend on the operating system.

Pinned by targets/descriptions do not follow the host, targets/backends are stated per target, targets/target contracts, targets/levels are stated per family, toolchain/file operands keep their identity, driver/fixed facts come from the target, and end-to-end/refine-identity.

D265 — RV64 Linux uses LP64D and ISA extension sets

From [0750], [1500], [1550], [1580], [1975], D248 and D255.

The discrepancy: equal LP64 widths establish no C transport. RISC-V's floating aggregates, integer splits and variadic calls differ from both SysV and AAPCS64; an assumed extension cannot be inferred from an ISA rank or from the compiler host. A C910 implements vendor address instructions without implying standard Zba or modern vector support.

Chosen: linux-rv64 is RV64GC Linux, little-endian LP64D, with the explicit fixed fact compiler.c_riscv_lp64d and compiler.arch == rv64. [1975] states its calling, layout and register contracts. D248's ordinary assembly boundary uses canonical integer operands and recognizes raw ABI aliases as those same registers, without reserving caller floating registers; [1990] lists the saved floating registers that integer operands cannot declare. platform/c exposes the LP64 aliases and unsigned plain c_char; [1975]'s existing C subset, including callbacks and outgoing variadic calls, is enabled. On Linux, platform/libc selects libc's __errno_location, Linux open flags and the 128-byte generic stat layout by compiler.os and the C ABI, separately checked against C headers. D255's supported ISA strings are exactly rv64gc, rv64gc_zba, rv64gc_xtheadba and rv64gc_zba_xtheadba. They all keep LP64D and the same layout. Unknown, foreign, incompatible or unimplemented strings are L0009; no arbitrary parser acceptance promises backend support. The tools receive both the selected -march and -mabi=lp64d. The ISA set appears in ELF attributes and constrains user assembly; it promises no loader refusal. Instruction selection uses target XLEN and independent extension sets, and RV32's emitter is this one at XLEN 32 (D671), sharing it without inheriting RV64's data model. The RISC-V psABI and GCC target options state the ABI and ISA selection. The standard Zba ISA and XTheadBa specification state the address instructions. Linux's generic stat and glibc record state the hosted record layout.

The alternatives: reusing an LP64 C fact, which silently changes aggregate and variadic transport. Ranking extension strings, which would invent implications between standard and vendor extensions. Requiring Zbb or RVV on a C910 without confirming execution, which assumes instructions the chosen hardware need not support. Emitting C or LLVM would replace the native backend boundary rather than implement it.

Pinned by targets/descriptions do not follow the host, targets/levels are stated per family, targets/ABI and symbol contracts are explicit, targets/assembly registers are spelled and chosen, backend plans/RISC-V instruction selection, backend plans/RISC-V LP64D carriers, runtime/rv64-feature-fact, runtime/rv64-indexed-address, runtime/rv64-assembly-level, runtime/c-aliases-unsigned-char, abi/lp64d-integer-extension, abi/lp64d-main-return, abi/lp64d-varargs and abi/core-io-file-identity. The recurring RV64 lane reports runtime, C ABI, source-debugger and ISA-level verdicts separately; none is supplied by an empty selection or an unconfirmed execution level.

D660 — RV32 is a firmware target with ILP32 and its own levels

The tour said nothing of RISC-V microcontrollers. D265 described RV64 Linux and promised that RV64's instruction selection would serve a future RV32 emitter without inheriting RV64's data model; the RISC-V microcontrollers, RP2350's Hazard3, ESP32-C3 and ESP32-C5, are RV32.

Chosen: --target=rv32 selects a description of its own, compiler.arch == rv32: little-endian ELF32, 32-bit pointers aligned to four, the RISC-V psABI's ILP32 layout, which is natural alignment with an eight-byte i64, u64 and f64 and a 16-byte long double at sixteen, a stack aligned to sixteen bytes as the psABI keeps it even without D or Q, and s0, x8, as the frame pointer. Its C ABI is the soft-float ilp32, compiler.c_riscv_ilp32, a fixed bool fact as D265's c_riscv_lp64d is; C signatures, records and variadic calls stay disabled; D920 enabled Cortex-M's AAPCS32 and left RV32's refused. rv32 is firmware only, like cortex-m0: no hosted system, a device profile, firmware entry, placement, vector slots and a derived script, debug lines and no full debugging, and images bounded by the 32-bit address space. Every check that was "is this Cortex-M" asks either "is this firmware", which rv32 also is, or "is this Thumb", which it is not: the Thumb text rules, the positional u32 shorthand naming r0 and the __aeabi_ reservation stay Cortex-M's, and _landin_firmware_ is reserved on both. Aligned one-, two- and four-byte atomic loads and stores are admitted at every level and eight-byte atomics at none, and a stack placement is a multiple of sixteen bytes.

D255's RV32 family has two levels, rv32imc, the default, which every RV32 core executes, and rv32imac, which adds A; each holds Zicsr and Zifencei, which the firmware's CSR accesses and fences need. An RV64 or Arm level on rv32, or an RV32 level on linux-rv64, is L0009. Landin.Targets.RiscV_ISA names the width a string's prefix gives, so one model holds both families. The tools receive -march=LEVEL_zicsr_zifencei and -mabi=ilp32, which select GCC's rv32im/ilp32 or rv32imac/ilp32 libgcc multilib. As D532 for Cortex-M, refine looks for the pinned riscv64-elf-gcc, GNAT's riscv64-elf archive 16.1.0-1, and then riscv64-unknown-elf-gcc, the name Debian's and Ubuntu's gcc-riscv64-unknown-elf gives the same bare-metal GCC; --toolchain=NAME tries NAME alone, and L0500 names both and what installs each. The firmware link is Cortex-M's: no start files or libraries but libgcc, collected sections, no build ID, relocations kept, the derived script and a map. An ordinary block names RV64's integer registers, at XLEN 32, and no float register. Its emitter is RV64's at XLEN 32 (D671).

The alternatives: an RV32 level of the linux-rv64 target, which would change the layout and the C ABI with the level and break D255's rule that a level changes no layout; a target per chip, which multiplies descriptions of one machine; a stack aligned to four, which the psABI does not give; and hard-float ilp32f, which no chosen core has.

Pinned by targets/descriptions do not follow the host, targets/backends are stated per target, targets/names select their descriptions, targets/levels are stated per family, targets/the library and the compiler state D255's levels, targets/alignments are stated per target, toolchain/RV32 names its level and ABI, driver/linux names every distribution's driver and driver/rv32 checks, lowers and emits.

D903 — Xtensa levels share the windowed ABI and retain distinct instruction configurations

From [1500], [1550], [1975], D255 and D660.

The discrepancy: Xtensa core generation names do not specify the optional instructions or calling convention a particular chip implements. ESP32's LX6 and ESP32-S3's LX7 differ in both directions: the former has double-precision acceleration instructions absent from the latter, while the latter has integer salt/saltu and PIE vector instructions absent from the former. A higher core number therefore establishes neither binary compatibility nor a different data layout.

Chosen: one firmware target, xtensa, with compiler.arch == xtensa and the two D255 levels. Both use little-endian ELF32 and windowed ILP32: four-byte pointers, usize, C int and C long, eight-byte alignment for 64-bit scalars, sixteen-byte alignment for 128-bit scalar storage and the stack. C char is unsigned, and C double and long double are eight bytes. compiler.c_xtensa_windowed_ilp32 identifies that ABI. As on RV32, though not since D920 on Cortex-M, public C signatures, C records and variadic calls remain disabled; the identity describes the runtime boundary and does not admit those source forms.

The pinned vendor C compilers do not admit unsigned __int128. The sixteen-byte scalar-storage alignment is Landin's layout fact, not a claim of a vendor C 128-bit integer mode; independent vector-storage alignment and the supported C scalar carriers are checked separately.

Calls use call8 or callx8, entry and retw. Arguments use six words, a2 through a7 in the callee and a10 through a15 in the caller, with aligned multiword arguments. An argument that cannot fit the remaining registers goes wholly to the stack, and subsequent arguments follow it. Results through sixteen bytes use a2 through a5; larger results use a hidden first pointer. Float carriers use integer registers even though both chip configurations include single-precision floating-point hardware. a0 and a1 are the link and stack registers; the backend keeps a7 as its frame pointer and reserves optional FP, boolean, MAC and vector banks from ordinary allocation. Every windowed frame includes the ABI's spill space. Compiler-owned startup initializes window state and provides all six CALL4/CALL8/CALL12 overflow and underflow vectors. Ordinary interrupt handlers admit CPU lines at levels one through three, which both exact configurations mask while PS.EXCM is set. The compiler saves all physical address registers and the floating state before calling a handler, with ordinary interrupts masked for its duration. Higher-priority, debug and NMI entries stop; they cannot borrow that shared context or the interrupted stack. Read-only byte-addressed data remains in data SRAM even when the selected layout is RAM. CALL0 objects are not compatible peers merely because their scalar layouts match.

Before an Xtensa pre-reset device stage, architectural entry establishes WINDOWBASE/WINDOWSTART, VECBASE and the declared internal DRAM stack with its ABI spill backchain, with ordinary interrupts masked and window exceptions enabled. The stage may use that stack for windowed ROM calls; static data and BSS remain uninitialized, and the naked stage form does not admit ordinary Landin calls. Compiler reset repeats architectural initialization after the stage. Other families retain their stack-free pre-reset stage contracts.

A naked Xtensa assembly block admits at most 32768 decoded ASCII bytes, enough for a self-contained stage that compares its pinned ROM routines' instructions and literals before calling them. Ordinary blocks and all other target families retain the 4096-byte bound. The larger text allowance admits no directives, data emission or additional description declarations.

The default and explicit baseline levels select the ESP32 configuration; S3 selects its own. salt is the exposed distinguishing fixed feature. The configurations both include density, loops, integer multiplication and division, NSA, min/max, sign extension, MAC16, release synchronization and S32C1I; optional instructions remain subject to their selected assembler configuration, not a generic Xtensa instruction list. A source can query compiler.feature.salt without changing layout or the ABI. Unknown or foreign-family levels are L0009, including the server's initialization refusal. A common-baseline artifact is compatible only after its linked instructions and runtime helpers have been checked against both exact configurations. An S3 execution of that artifact proves no ESP32-only instruction or arbitrary ESP32 helper compatible.

The toolchain selects Espressif's chip-specific wrappers from esp-16.1.0_20260609, GCC 16.1.0 and Binutils 2.46.0. The selected wrapper supplies the configuration plugin to both compiler and assembler and selects the matching runtime multilib; generated instructions and source assembly therefore reach the same assembler configuration. The assembler ABI tag is --abi-windowed and the compiler ABI is -mabi=windowed. Both default and explicit levels must reject valid Xtensa instructions absent from the selected configuration. Assembly operands use integer registers; a0, a1 and a7 are reserved. Atomic loads and stores through four bytes and fences are admitted; atomic read-modify-writes and eight-byte atomics are refused.

Sources are Espressif's pinned GCC layout and ABI definitions, argument and frame implementation, configuration overlays and tool wrappers.

The alternatives: CALL0 throughout, which avoids window vectors but requires matching C peers and runtime helpers; one target per chip, which multiplies equal layouts and ABI facts; treating S3 as a complete ISA superset; or selecting a generic assembler with neither exact configuration.

Pinned by targets/Xtensa configurations are exact, driver/Xtensa selection and assembly, driver/Xtensa profile contracts, server/Xtensa initialization selects exact levels, backend/Xtensa verifier refuses invalid registers and xtensa backend/windowed routines carry paired scalars.

D1110 — On Xtensa a routine's outgoing area is part of its frame

From D903 and D472.

The discrepancy: D903's "every windowed frame includes the ABI's spill space" and D472's "window exceptions use the existing ABI spill areas and recorded backchains" held only while a routine's stack pointer stayed where its prologue left it. The window handlers keep a caller's a0 to a3 in the sixteen bytes below the callee's stack pointer: the overflow handler stores them there when the caller's window is taken, and the underflow handler reads them from there at the callee's retw. A call whose arguments need more than six words lowered the stack pointer for its outgoing area and raised it afterwards, and each move rewrote only the caller's stack-pointer word. A caller whose window was taken while the area was reserved, which happens once the call nests six frames deep on the 64-register cores, was restored from sixteen bytes that had never been written, and returned through whatever a0 they held.

Chosen: the stack pointer does not move after the prologue. A routine's outgoing area, the largest any of its calls takes, sixteen-byte aligned, is the lowest bytes of its frame: the prologue reserves it with the word homes and the source homes, sets the base of the homes above it, and checks the whole against the stack's limit where a program prepares stacks (D471), so a call's area has no check of its own. A call stores its stack words at the stack pointer, where the callee's frame address is and where D673 has it read them, and a routine none of whose calls takes a stack word has the frame it had. The sixteen bytes below the stack pointer are therefore one place from the prologue to retw, whenever the caller's window is taken, and a compiler-owned interrupt, which starts its handler's stack 32 bytes below the interrupted stack pointer, is below the area as it is below the homes. The build report's frame and stack figures count the area, and L0507 holds it to a firmware stack with the rest of the frame.

The alternatives: carrying the caller's three other words with the stack pointer, copying them from below the frame's stack pointer to below the lowered one after each move down and back before each move up, which was the first answer and held under the same control, but costs twelve instructions at every call with more than six argument words and leaves the stack pointer moving, which each later use of the area would have had to reason about again; and movsp, which raises an exception the compiler-owned vectors would have to handle by the same copy. Both were declined; the maintainer chose the frame layout over the copy.

Pinned by xtensa backend/an outgoing area is part of the frame, the area in the one prologue that needs it and no write of the stack pointer after any prologue, and the window-arguments control of environments/xtensa/backend.py, a caller six frames above a routine that passes eight argument words, executed on both chips' machines.

D661 — An rv32 program that reaches no description is given the RISC-V reference

The tour said nothing; D543 gives a Cortex-M program that reaches no description the library's platform/cortex_m/reference.

Chosen: on rv32 the loader adds platform/riscv/reference as D543 adds the Cortex-M reference, and its submodules are available on rv32 alone (D267). It is a test profile and names no chip: device riscv-reference, core sifive-e31, the core QEMU's sifive_e machine carries, the Cortex-M reference's capacities in that machine's map, 32 KiB of flash at 0x2040_0000, where its mask ROM enters an image, and the 16 KiB DTIM at 0x8000_0000, its upper 4 KiB the stack, and a 16-slot table. It is the profile the rv32imac emulator lane executes the corpus on, so the corpus's capacity verdicts mean the same on both targets. environments/cortex-m/descriptions.json records it under devices with its target, which the Arm lanes pass over.

The alternatives: no reference, so that every rv32 program imports a description, which leaves the freestanding corpus nothing to run on; the C3's map, which is a chip's and needs its image format; and a lane description of the emulator alone, which the corpus would then hold apart from the profile a program with no description gets.

Pinned by targets/RISC-V cores take their own slots and driver/rv32 checks, lowers and emits, and by the emulator lane that runs on it.

D662 — A RISC-V core's interrupt model decides what a slot is

The tour said at [1990] what a Cortex-M vector slot is; D544 made the core and the description decide which slots a handler takes. RISC-V has no NVIC: a trap's mcause says which interrupt it is, and the cores refine builds for deliver interrupts in three ways.

Chosen: a description may name four RISC-V cores, each of family RV32: hazard3 (RP2350), sifive-e31, esp-rv32imc (ESP32-C3) and esp-rv32imac-clic (ESP32-C5), at rv32imac, rv32imac, rv32imc and rv32imac. Each has a closed interrupt model, which decides mtvec's mode: vectored on the E31 and the C3, clic on the C5, and xh3irq on Hazard3, whose external interrupts all arrive as code 11 and are resolved through meinext. A slot is the mcause interrupt code; exceptions take no slot. The core's own slots are machine software, timer and external, 3, 7 and 11, on the E31; 3 and 7 on Hazard3, whose 11 is meinext's dispatch; the C3's CPU lines 1 to 31; and the C5's CLIC lines 0 to 31 at ids 16 to 47, ESP-IDF's CLIC_EXT_INTR_NUM_OFFSET of 16 with its 32 CPU lines. A description's interrupt n is slot 16 + n only under the NVIC and Xh3irq; under vectored mtvec and the CLIC a description names peripheral sources, which an interrupt matrix or a PLIC routes to a CPU line, and only the line is a slot. The table is no longer than 16 slots on the E31, 32 on the C3, 48 on the C5, CLIC_INT_INFO.NUM_INT, and on Hazard3 the slot set's 512, 16 + 496 of Xh3irq's IRQs. A RISC-V image begins with one word, the jump to reset at _landin_firmware_entry, and the table follows at the first address its alignment allows: its length rounded up to a power of two, and no less than 64 bytes on the E31, Hazard3 and the CLIC, and 256 on the C3, as ESP-IDF aligns its table; the reference's is 64 bytes past its origin. A RISC-V core has no float unit refine builds, so compiler.float_unit on one is L0545, and the D543 rule that the core caps the level reads the RV32 family, rv32imc below rv32imac; a RISC-V core on cortex-m0, or an Arm one on rv32, is L0515, naming the target its core needs.

The alternatives: numbering RISC-V slots as the NVIC's 16 + IRQ on every core, which names peripheral sources the C3 and C5 never deliver as causes and hides the CPU line a handler really takes; admitting every code below the count, which D544 already declined; and one RISC-V core kind with the model a description field, which would let a description pair a core with an interrupt controller it does not have.

Pinned by targets/RISC-V cores take their own slots and the description checks of negative/description-unknown-core.

D257 — A build targets the compiler's own host, and another target is named

Amended by D2427. A compiler built on FreeBSD x86-64 defaults to freebsd-x86-64.

Amended by D2469. A compiler built on FreeBSD arm64 defaults to freebsd-arm64.

From [1500] and [1550].

The discrepancy: [1550] says Landin relies on the assembler and linker of the platform, and says nothing of which platform a build that names none is for. The driver and the language server answered linux-x86-64 everywhere, so a plain refine --emit=exe on a Mac or on Linux arm64 compiled for a machine it was not running on and handed that assembly to a driver that could not finish it: a cross-compilation nobody had asked for.

Chosen: a build that names no --target=, and a language server whose editor names no target, is for the compiler's own host, and every other target is named. The host is the triplet the compiler itself was built for, which the Ada compiler fixes when it builds refine: an x86_64 Linux build defaults to linux-x86-64, an aarch64 Linux build to linux-arm64, and an aarch64 Darwin build to darwin-arm64. A compiler built for any other host has no default: a compilation that names no target is L0004, and a server there checks for synthetic-32, which emits nothing, and asks for a target. A request that compiles nothing, --identify or --help, needs none. refine --identify lists what is described, not the default, so its text is the same on every host. Nothing asks the running machine: a compiler built for x86-64 still defaults to linux-x86-64 under an emulator on an arm64 host, which is the compiler's host as its build says.

The alternatives: keeping linux-x86-64 as the default everywhere, which makes every native build off x86-64 Linux a silent cross-compilation. Asking the operating system at run time, uname or its equivalents, which is the host detection Landin.Targets exists to keep out of the compiler and which answers differently under emulation than the compiler's own build does. Refusing every build that names no target, which makes the common native build longer to write and gives cross-compilation no distinction.

Pinned by targets/names select their descriptions, driver/targets have a default, which reaches every host's default through the driver and the refusal of a host with none, and compiler/tests/test_default_target.py, which every gate host runs against its own refine.

D338 — A branch whose arms only compute is a choice

The tour said at [1550] that the IR is verified and target-neutral, and D211 that an optimization keeps every trap, effect and order. Neither said whether the IR may compute both arms of an if and keep one, and the IR had no operation that chooses: every if stayed a branch, and a branch on data the processor cannot predict is mispredicted about half the time.

Chosen: the IR has Choose, whose bool operand picks one of two scalar values of its result's type, neither carrying a function, atom set or pointee, in routines only. Lowering never makes one. Under size and speed, Landin.IR.If_Conversion rewrites a block that ends in a branch whose two sides meet again, each side at most one block that ends in a jump, when neither arm can do anything a program could observe if the other arm were taken: it loads and stores only private slots, scalars that nothing names but their own loads and stores, and otherwise computes with operations that cannot trap — constants, comparisons, bitwise and wrapping arithmetic, float arithmetic, total conversions, and integer operations whose checks were proved or lie in an unchecked region. Integer division never qualifies, because x86-64 refuses a zero divisor in the hardware itself. The block then computes both arms, chooses each stored slot's value and jumps to where the arms met. One trapping operation qualifies: a checked integer addition or subtraction that updates a slot from the value it had before the arm, x = x + k or x = x - k, when the other arm leaves the slot alone. It becomes x + (if c then k else 0), which traps exactly when the arm would have and at the same point in the program's order, since nothing observable lies between the branch and the arm or the arm and its end; an update that cannot trap takes the same form. Each arm is held to six operations besides its constants, loads and stores, and a conversion to four chosen slots. A branch whose condition is computed from a slot an arm stores stays a branch: the choice would wait for a comparison that waits for the choice before it, a chain a predicted branch does not wait on. x86-64 selects cmov or setcc, arm64 csel, fcsel or cset, both testing the flags of a comparison right before the choice when it has no other use; RV64 and Cortex-M0, which have no conditional move, use the condition's own zero or one for a choice of one or zero and otherwise branch around one load inside the choice.

The alternatives: leaving every if a branch, which makes a count such as the Benchmark Game's fasta lookup pay a mispredicted branch for almost every element; converting arms that contain a check, a call or a memory access, which speculates a trap or an effect D211 forbids; and a target query in the IR pass that keeps the branch where the target has no conditional move, which makes the IR depend on the machine when the backend can branch inside the choice instead.

Pinned by runtime/choices-over-nan-comparisons on every target at the six profiles, runtime/benchmark-game-fasta, the ir opt cases if-conversion chooses between arms that only compute and if-conversion keeps a branch whose arm could be observed, the verifier case a choice is held to its operands, and the x86 opt and arm64 selection cases a counted comparison is a flag add and a choice is a conditional move.

D361 — A hosted trap with no handler says what and where before it ends

The tour said at [1960] that a trap stops at its operation and that how the surrounding system reports it is not program behaviour, and D232 gave a program with no panic_handler the bare terminal instruction. On a hosted system that instruction reached a reader as the shell's "Illegal instruction": nothing named the kind or the site, so an index past an array looked like a processor fault and finding the line took a --debug full build and a debugger.

Chosen: with no selected handler, on a target with a hosted system, each failed check first writes one line to standard error and then executes D232's terminal instruction, so the process ends as it did and a debugger still stops on that instruction. The line is FILE:LINE:COLUMN: trap: KIND, the kind one of core/panic's five atom names and the site the failed operation's own, the one D232's site number and the panic map name: under D339's inlining at speed a copied check reports the routine's line, as the call's would have. Each file is named by its path relative to its module's root: a file of the entry module by its own name, main.ldn, and a file of any other module under its module path, core/vec/vec.ldn. No part of how a path was spelled on the command line, of the build directory or of where the library is installed enters the line, so equivalent closures emit the same bytes on every host and under every spelling, as compiler/tests/test_determinism.py requires of assembly that carries no source map. A diagnostic still names a file as it was read, because a diagnostic is read where the build ran; a trap report is read wherever the image runs. A site with no source, D232's site zero, writes trap: KIND.

Each distinct line is one read-only string the link may merge, in a section of its own on ELF, so a link keeps only the lines a retained routine reaches. A failed check passes the line's address and length to one compiler-owned routine, emitted only when some check uses it, which writes them with one call and executes the terminal instruction: Linux's write system call, which a static image has, on x86-64, arm64 and RV64 alike; write from the C library on Darwin and FreeBSD, whose images always link it, on a stack of the report's own in a program that prepares a stack (D491). The routine keeps a frame record and frame information, so a backtrace from it reaches the failed operation. It touches no heap, latch or reporting library, and no source is imported for it. Firmware keeps D232's bare instruction and no filename enters a constrained image; a selected handler is unchanged and receives (kind, site) as before. The line is the default's report, as the instruction after it is: its text is the compiler's, not Landin program behaviour [1960], and a program that needs a report of its own selects a handler. The file names a hosted image carries are these reports' alone: with its debugging sections stripped no other name of a source is deployed, and no directory a source was read from is deployed at all, since a report carries only the logical name. A program that must carry none selects a handler, so no filename is mandatory, as [1670] requires.

The alternatives: a signal handler installed at startup that maps the faulting address to a site, which keeps each check's code as small as a bare instruction but needs a per-system handler, its frame layout and an address table, and reports faults that are not checks; passing D232's (kind, site) and decoding the site at run time, which needs every source's line table in the image; writing the line in pieces, which two threads trapping together interleave; naming an entry-module file as it was read, as a diagnostic does, which the first version did and which made assembly without a source map change with the spelling of the source path; and keeping the bare instruction, which leaves the newcomer the shell's sentence.

Pinned by runtime/inline-copies-trap-in-place at every profile and runtime/computed-array-index-traps, each with trap_report: on every hosted target, the newcomer case a trap names its site, scripts/outside_user.py --stock, which the gate's outside-user-stock job runs on a stock Ubuntu, compiler/tests/test_determinism.py, whose equivalent closures spell each source path two ways, and the stripped-image check the GDB and LLDB sessions share, deployed_source_names in compiler/tests/debugging/check.py.

D365 — --emit=ir writes the IR the backend receives

The tour said at [1550] that the compiler optimizes a verified, target-neutral representation, and Landin.IR.Dump printed one only inside the test program: learning why a value lived in a stack slot meant reading the lowering, temporary trace code or a diff of two assemblies.

Chosen: refine compile --emit=ir writes Landin.IR.Dump's text of the program as the backend would receive it, after every pass the request's --optimize and --specialize run, to -o or a.ir, and stops there. The text is the dump the test program records, which docs/ir.md explains: not a stable interface, never read back and printing no origin. Each evidence entry's line in it also ends kept or dropped, D374's answer for this program as every backend gives it, which the recorded dump, written before any backend decides, leaves out. --link still decides whether platform/linux joins the program, and --debug and --panic-map, which describe machine code, are a misuse with it.

The alternatives: a separate command or a --dump-ir flag beside --emit, a second way to say what is emitted; dumping after lowering only, which shows nothing the passes did; and a serialized format, which Landin.IR's header refuses to freeze.

Pinned by the newcomer case the IR is written on request.

D367 — A form from another language is refused naming the Landin form

The discrepancy: a spelling another language gives a construct, elif, fn, x as i32, total++, *u8, &&, || or !=, got the report of what the parser needed where it stopped: elif was "this does not continue the expression before it", x++ "an expression belongs after this operator" and && the same, and fn add(...) "a binding names its type after :". None named the word to write, and for && and ++ D261's search could mend the line by removing one copy, which turns a logical operator into a bitwise one. An audit of agent sessions counted such spellings among the refusals people and agents make, fn twice, as, ++ and *u8 once each, and later sessions met elif.

Chosen: one table, Landin.Diagnostics.Syntactic.Foreign_Form, names each foreign spelling, the Landin form it stands for, the paragraph that defines that form and the negative fixture that pins its one report. The parser reads nothing differently: it refuses the line exactly as before, and only when the tokens its report stands on spell a row, in the position the row names, does the report say "Landin writes ..." and the Landin form, stand on the foreign spelling and cite that paragraph in plain words. The code and the second place the parser named are its own. Where one edit writes the Landin form, the report offers it as a Likely fix; D261's search leaves such a report standing. The rows are elif and elseif at the start of a line in a body, fn name( beginning a declaration, value as type, name++ ending its line, name-- ending its line, prefix ! where an operand is refused, and touching // or /* where a comment is refused. They name dec name, not, -- and --( ... )-- respectively; comments receive guidance without an edit that guesses their extent. An offered decrement edit requires an empty touching -- comment. Other rows are *T where a type belongs, && and || between operands, and !=, which replaces the note [0350]'s check used to append. ..= where a range's upper bound is refused names .., which already includes its end [0360], and its fix writes it. check.py holds every row to a spelling the keyword rule does not spell, a paragraph a document defines, and a fixture whose recorded report names both the foreign and the Landin spelling.

A foreign form with no single Landin construct to name keeps the generic report: a ++ b for concatenation has none, since text is built through a builder or text.format, and [0400]'s answer is for name++ alone.

The alternatives: keeping the generic report, the earlier choice, which leaves the newcomer to guess the word and lets D261 mend && into &; accepting the foreign spelling as a synonym, which gives every construct two spellings and the formatter a choice; and a list of spellings searched at every refusal, which would name a form in a position where it was not meant.

Pinned by negative/foreign-elif-is-named, negative/foreign-elseif-is-named, negative/foreign-fn-is-named, negative/foreign-as-is-named, negative/foreign-postfix-increment-is-named, negative/foreign-postfix-decrement-is-named, negative/foreign-prefix-not-is-named, negative/foreign-slash-comment-is-named, negative/foreign-block-comment-is-named, negative/foreign-star-pointer-is-named, negative/foreign-double-ampersand-is-named, negative/foreign-double-bar-is-named and negative/foreign-bang-equal-is-named, each one recorded report, the ones with a fix applied by the fixes suite; and the parser case inequality typos name the operator.

D368 — A keyword in a binding's place is one report

The discrepancy: from := 1 in a body was L0110, "this begins no statement", with [1810]'s list of statements, and never said that from is a keyword. Its later use, code = from, was a second report, L0102, so one mistake read as two.

Chosen: a statement that begins with a keyword followed by :, :=, = or an updating assignment is refused at the keyword as L0100, "from is a keyword, and no keyword is available as a name", as [1760] refuses a keyword written as a declaration's name. The parser notes the word, and a later place in the file where that keyword stands where a value belongs is read as the same mistake and adds no report, as D242 treats a name an import refused.

The alternatives: saying it at the use as well, which is the second report of one mistake; reading the keyword as a name after the refusal, which makes every later keyword in the file a candidate name; and a reserved-word list in the note, which [1760] already is.

Pinned by negative/keyword-as-a-binding-name-is-reported-once.

D1190 — A keyword written as any name is one report, and offers a longer spelling

The discrepancy: D368 made one report of a keyword that begins a statement in a binding's place, and noted the word only there. A keyword written where a declaration reads its name, mut fixed := start, was refused by [1760]'s own report without being noted, so each later fixed = fixed + 1 was a second L0100 and each use as a value an L0102. A field named from was not read as a field at all: the struct's body ended at it, and the report was L0101, "a struct needs at least one field", or L0103, "this struct is never closed", at the header, with the keyword named second or not at all. Neither report said what to write instead.

Chosen: every place that reads a name reports a keyword there once for the file, as L0100, and notes the word. A keyword followed by : where a struct's field or a call's label belongs is read as that name, so the field and the argument are read on and the struct keeps its fields and its end. A noted keyword met again where a name belongs, a field selected, a label, a declaration or a statement that assigns or updates it, adds no report, as D368 already held for its use as a value. A closing word, end, else, elsif or complete, is never noted, since a later one far more likely closes something. The report's note says the word is that keyword everywhere and offers the longer spelling [1760] itself gives as an ordinary name, fixed_value for fixed.

The alternatives: offering a synonym per keyword, which needs a table of guesses at what was meant; a fix that renames the word, which would have to rename every use to leave the program meaning what it did; and reading a keyword as a name wherever a name belongs after the refusal, which D368 declined.

Pinned by negative/keyword-as-a-declared-name-is-reported-once, negative/keyword-as-a-field-name-is-reported-once and negative/keyword-as-a-binding-name-is-reported-once.

D369 — A match arm written as a value names if and elsif

The discrepancy: match x over an integer with an arm 1: code = 1 was L0100, "a match arm begins with a case name", with D77's arm grammar as its note, and said neither that the arms of a match name cases nor how values are compared instead.

Chosen: an arm that begins with a literal or a minus sign is refused as L0100, "a match arm names a case or an atom, never a value; compare a number with if and elsif", whose note shows the if that compares. The arms after it are the rest of that mistake, as D260 passes over the arms of a refused match. The checker's refusal of a match over an integer subject with named arms keeps its own note, which says the same.

The alternatives: admitting integer arms, a switch the tour does not have and [1210]'s exhaustiveness could not check; and naming a lookup table, which is one route among several and not the construct the arm stands for.

Pinned by negative/match-over-an-integer-names-if-and-elsif.

D370 — Statements under a bare else name the bound recovery

The discrepancy: a statement call whose recovery is a block, io.write(host, io.out(host), "hello\n") else with code = 1 on the next line and end after it, was L0105 at the =, "assignment is a statement, never an expression", with the help "compare with ==". A bare else takes the value that stands in for the call's result [1030], which neither the report nor its help said, and the repair is else (problem).

Chosen: a bare else that ends its line, followed by a line that begins a statement rather than a value (a binding, an assignment, inc, dec, return, fail, defer, undo or a discard), is refused at the else as L0100, naming the block: "a recovery that runs statements opens a block after else: write else begin". Its note names both blocks, else begin and the else (problem) that names the error, and its Likely fix writes begin after the else: the statements written name no error, and since D1261 a name they never read is warned about, so the repair is no longer (problem). The block is read as that recovery to its end, so the mistake is one report.

The alternatives: admitting a block after a bare else, which gives one recovery two block forms that differ only in whether the error is named; and keeping L0105 with a second sentence, which still stands on the = a line below the mistake.

Pinned by negative/statements-after-a-bare-else-name-its-binder, whose fix the fixes suite compiles clean.

D860 — A second statement under a match arm names the bare block

The discrepancy: an arm with two statements and no begin, empty: and then code = 1 and code = 3 on the lines under it, was L0103 at the second statement's =, "a match arm puts : after its case": the parser read the statement's name as the next arm's case. [1210] says an arm runs one statement or one expression and that several make the arm a bare block, and nothing in the report said so.

Chosen: after an arm, a line that begins with what only a statement begins with (a statement's keyword, a discard, or a name followed by =, :=, an updating assignment or a call that no : follows) is refused at its first token as L0103, "a match arm runs one statement, and this is a second", labelled at the case the arm began with, and its note names the bare block: begin after the arm's :, its statements, then end. Each such line is read as a statement and adds no report of its own, so the next arm is still an arm. Indentation decides nothing here: the line is a statement by its tokens, wherever it stands.

The alternatives: admitting several statements by indentation, which [1210] and D77 decline, the arm's extent being its one statement; and a fix that writes begin and end, which needs the arm's last statement, which the parser cannot know without reading indentation as structure.

Pinned by negative/match-arm-second-statement-names-the-bare-block.

D861 — A type alone after -> names the return with a name

The discrepancy: add: (a: i32, b: i32) -> i32 =, another language's unnamed result, was first L0104, "this function is never closed", although end add closed it, and only second L0103, "returns are named, or none", which is the mistake. The failed returns left the type and the = unread, so the body never opened.

Chosen: a type where [1800]'s returns belong, beginning with a name that no : or , follows, with ptr or with [, is refused there as L0103, "a return is named as well as typed", whose note writes the named form, (result: i32) when the type is one name and (result: type) otherwise. The type is read as one return's, so the body opens at = and the function is closed by its own end: one report. Named returns written without their parentheses, -> code: i32, were the same two reports, and are one, L0103, "named returns are written in parentheses", the list read as though they were there.

The alternatives: a fix that writes (result: i32), which would also have to rename every use the body makes, since the body cannot name a result it never declared; and a name taken from the function's own, which guesses.

Pinned by negative/unnamed-result-names-the-named-form.

D862 — A quoted import path says the path is written bare

The discrepancy: import "esp32c5/clic" was L0100, "a name belongs here", at the quote, with [1760]'s rule for names as its note, and said nothing of an import taking a path of names, import esp32c5/clic.

Chosen: an import whose path is a text or raw literal is refused at the literal as L0100, "an import's module path is written without quotes", whose note shows import core/text. The import binds nothing, so the refusal is one report.

The alternatives: reading the text as the path, which makes two spellings of one import; and splitting the literal into names for the resolver, which would bind what the program did not write.

Pinned by negative/quoted-import-path-is-written-bare.

D863 — addr of a measure is the address of a value

The discrepancy: any(addr lenof people) was L0103, "people does not belong here", with the help "remove people": lenof is spelled as a name, so the parser read addr lenof as the address of a binding called lenof, and the repair dropped the measured operand, which changes the program's meaning.

Chosen: addr followed by [0370]'s lenof and a name, or by D411's offsetof and a dotted name, is refused at the measure as L0100, "addr takes a named place, and a measure is a value with no address", as a literal after addr is, and its note says to bind the measure to a name first. The report's own words begin "addr takes", which D261's repairs already leave standing, so nothing offers to drop the operand.

The alternatives: taking the address of a temporary holding the measure, which [0380]'s place rule refuses for every other value.

Pinned by negative/addr-of-a-measure-is-refused-there.

D864 — No repair moves lenof or its operand

The discrepancy: count = lenof line + was L0102, "line and + are written the wrong way round", whose note offered count = lenof + line, a line that then reads lenof as an undeclared name, L0201. y = x + was answered "a value belongs after +".

Chosen: D261's swaps and its call-with-parentheses trial leave a lenof and the token after it where they were, as its removals already did, so a trailing operator after a measure is answered as one after any other value, "a value belongs after +", with the value written there as its likely fix.

The alternatives: dropping every swap when the parser asked for a value, which loses the swaps that mend other lines, as a word written after the operand it belongs before.

Pinned by negative/trailing-operator-after-a-measure-names-the-value, whose fix the fixes suite compiles clean.

D865 — when after a statement that is no exit names the exits

The discrepancy: code = outcome when outcome > 30 was L0110, "this begins no statement", at when, whose note listed the statements; nothing said that [0970]'s when qualifies only an exit, or that an assignment on a condition wants an if.

Chosen: a when left over after a statement is refused as L0110, "only an exit takes when: return, fail, break or continue", and its note says any other statement runs on a condition inside if condition then and end if.

The alternatives: admitting when on every statement, a second conditional form beside if that the tour does not have; and a fix rewriting the line as an if, which spans lines the parser has not read.

Pinned by negative/when-on-a-statement-names-the-exits.

D2168 — A routine that returns nothing is named -> none by both refusals met on the way

The discrepancy: f: (inout row: [2]u32) = was L0103, "a signature says what it returns after ->, not =", whose note described the returns but named no spelling for none; the next try, f: (inout row: [2]u32) -> () =, was L0100, "a name belongs here", at ), with [1760]'s rule for names as its note. The spelling, -> none, came from grepping the fixtures.

Chosen: with = where -> belongs, the L0103 note says to write -> none before = for a routine that returns nothing, or to name the returns, and the body after = is read as before. -> () in a function, a function type or a concept entry is L0100, "a routine that returns nothing is written -> none, not -> ()", at the parentheses, read as none, with the exact fix that writes none in their place: empty parentheses can mean nothing else.

The alternatives: admitting -> () as a second spelling of none, which [1800]'s one form declines; and a fix inserting -> none before =, which guesses, since a body that assigns returns meant a list.

Pinned by negative/a-signature-without-returns-names-none and negative/empty-returns-are-written-none, whose fix refine fix applies.

D2169 — A refused concept entry leaves the concept closed by its own end

The discrepancy: a concept entry taking a type formal of its own, pull: (self: t, other: type is drain, s: other) -> none, was L0010 at type, which is right, and then L0104, "this concept is never closed", though the concept's end stood on the next line: the refused formal left is drain unread, and the entry's broken rest ended the concept's entries.

Chosen: the L0010 refusal of type in a parameter takes the constraint after it, is and a concept name, as the rest of the refused formal, and after an entry that reported, what it left on its line is passed over, so the next entry or the concept's end begins the next line. One report.

The alternatives: admitting the entry's type formal, which [1290] leaves a recorded boundary; and passing over the rest of the concept after any refused entry, which would hide the mistakes of the entries below it.

Pinned by negative/a-refused-concept-entry-leaves-the-concept-closed.

D2170 — Each segment of an import path is refused as an identifier

The discrepancy: import tools/refine-build/lines and import github.com/tools/refine-build/lines were L0110, "this begins no declaration", at the path's rest, with [1740]'s note; import 701_dev/pkg/lines was L0011, "this is not an integer any base spells". None said that a segment is an identifier, or which character broke it.

Chosen: a - or . that joins a segment to more on its line is L0100, "each segment of an import path is an identifier, and - is not part of one", at that character; a segment beginning with a digit is L0100, "... and this one begins with a digit", at the digit: the scanner, which knows from the tokens before it that a number stands in an import's path, still records its fault and leaves the wording to the parser, as D528 does for a capitalised word. The note says what a segment is, lower-case letters, digits and _ beginning with a letter, as in import refine_build/lines. The rest of the path is passed over and the import binds nothing. Each import reports once for itself, as a declaration's header does, where a second refused import had been quiet after the first.

The alternatives: admitting hyphens or dots in paths, which a module path's mapping onto directories and [1760]'s names decline; and leaving the digit to L0011, whose sentence and note are about integers.

Pinned by negative/an-import-segment-is-an-identifier-hyphen, negative/an-import-segment-is-an-identifier-dot and negative/an-import-segment-is-an-identifier-digit.

D2171 — lenof before a text literal names the binding to measure

The discrepancy: f(lenof "abcde") and f(usize(lenof "abcde")) were L0103, "a call's arguments are never closed", at the literal, though every parenthesis was closed: [0370]'s lenof measures what a name begins, so the parser read lenof as a name and the literal as a second argument with no ,. f(lenof s) of a slice s was accepted.

Chosen: the grammar does not admit it, and it stays out: lenof before a text or raw literal on its line is L0100, "lenof measures what a name begins, and a text literal has no name", over both, and its note says to bind the text, word := "abcde", and write lenof word. The literal is read and the expression is an error, so nothing else is said.

The alternatives: admitting lenof of a text literal, a compile-time count that D31 gives only an array literal in parentheses, and that a named text already has; and keeping the call's report with a note, which would still point at a closed call.

Pinned by negative/lenof-of-a-text-literal-names-a-binding.

D2172 — An else begin the arm goes on after is the call's, and said at the else

The discrepancy: inside an if arm, count: usize = text.encode(scalar, room) else begin fail bad_escape end closes the if at that else, as [1820] says, and nothing was reported there: the refusal came later, as L0110 "elsif continues no branch that is open here" on the next arm, or as L0201 on names the arm declared, and none named the else or else (problem).

Chosen: a bare else begin after a call, in the middle of an arm's line, whose arm goes on past the block's end — on a line no shallower than the else's, or with the if's elsif or else — is refused at the else as L0110, "this else recovers the call, and written bare it ends the if arm it stands in", whose note names else (problem) ... end and parentheses as the ways to keep it the call's. It is read as the call's recovery, so the arm, its names and the elsif after it go on as written. The block closes on the else's line, or with an end alone on a line as deep as it. An arm that ends with the block, its if's end on the next line, is read as [1820] says and not refused: nothing there shows which was meant.

The alternatives: binding a bare else begin to the call in an arm always, which makes if c then a() else begin b() end end if mean something else; refusing every mid-line else in a multi-line arm, which refuses layouts that show nothing; and attributing the later L0110 or L0201 to the else, which needs the resolver to know the parser's reading.

Pinned by negative/else-begin-in-an-if-arm-is-said-at-the-else.

D866 — A _ arm on a variant part is one refusal naming the cases left

The discrepancy: _: fail no_space after drains(onto): ... was L0333, "this case does not belong to the variant part matched here", beside an L0312 for each case _ was to cover, while the tour's [1210] said that _ "covers whatever is left" without saying where. D77 had declined a wildcard on a variant part, which neither the tour nor the refusal said.

Chosen: D77 stands. The first _ arm of a match on a variant part is refused as L0333, "a variant part is matched case by case, and _ is no case", labelled at the subject, and its note names the cases no other arm names, to be listed on one arm as D405 allows, full, spare:, or says to remove the arm when every case has one. The missing-case reports it stands for are not made. [1210] says that _ covers what is left of an atom set or a pointer union and that a variant part takes none.

The alternatives: admitting _ on a variant part, which D77 declined because [1210] already makes a missing case a compile error; and keeping a missing-case report for each case, which says the same mistake once per case.

Pinned by negative/match-wildcard-on-a-variant-part-names-the-cases.

D373 — A note explains in words, and a cited label stands beside them

The discrepancy: a diagnostic's note is what a reader who does not know the rule reads, and many quoted a register label or a grammar summary and nothing else: L0100's was D77: match expression case : arm end match, a for loop's never-closed report said only [1150], and the parser cited productions, returns ::= ( named_return (, named_return)* ) | none, that a newcomer cannot read.

Chosen: every note the compiler emits says what the rule is in plain words. A paragraph or decision label may stand beside those words, first as the code's catalogue row does, but never instead of them, and no note quotes a grammar production, its ::=, ? or *. Where a note needs the shape of a construct, it shows a short example of the source, as for item in source do. check.py reads every note literal out of the compiler and refuses one that is a bare label or quotes a production.

The alternatives: dropping the labels, which are how a reader who wants the rule finds it; and moving the explanation to refine explain alone, which a reader at the report has not yet run.

Pinned by check.py's note check and its control in scripts/tests/test_check_controls.py, and every recorded negative report the change rewrote.

D761 — A refusal whose notes are fixed facts says its route in a third note

The discrepancy: L0304, the checker's half of [1830], carries two notes every occurrence must have, the tour paragraph and the form's standing, and the catalogue held every code to one exact count of notes. A refusal that knew the form to write instead, the binding a generic slice parameter's literal needs (D419), the copy a match alias of an array needs, or the _ = a construction statement needs, could carry it only in its message, after a semicolon, where the report's first line became a sentence and a half.

Chosen: a catalogue row says, beside its count of notes, whether an occurrence may carry one more: the route, the form to write instead, after the fixed notes. L0304 is the one row that admits it, and every reporting package holds a diagnostic to the count or the count and the route. The message says what was refused and the route note what to write, beginning instead,. Every other code has a note of its own to say its route in, and the catalogue suite refuses a route on any row but L0304's.

The alternatives: keeping the route in the message, which every such refusal did and which is what made the message long; making the route a help line, which is a fix an editor applies, and a route that names a binding to introduce elsewhere is not an edit the refusal knows how to make; and an interval of notes for every row, a second number on 128 rows for one that needs it.

Pinned by negative/array-lent-refusals, negative/generic-closed-parameter-refusals, negative/r720-match-alias-array-not-copied and the catalogue suite's rows are whole.

D856 — A refusal whose notes are fixed takes no note of its own

The discrepancy: the checker builds L0304's two notes out of its own tables and ignored a note its caller gave beside them, so two refusals, a substituted array element with no stored shape and offsetof through something that is not a struct, wrote notes that never reached a report, and nothing said so.

Chosen: a note given to L0304 is a compiler defect when the diagnostic is built, as a related label on the refused span already is. What a refusal knows to write instead is its route (D761). The offsetof refusals give theirs as routes; the array element's note restated the refusal and was dropped.

The alternatives: printing the given note after the two facts, which the catalogue row's count refuses and which makes the third note mean two things; and keeping the silent drop, which is how the two sites went unseen.

Pinned by diagnostics/a fixed-note code takes no note and negative/offsetof-refusals, whose routes now print.

D857 — A misspelling is offered the name it begins before one as far

The discrepancy: a near name is ranked by distance, then by scope, then by spelling, and refine --target=linux-x86 was offered linux-rv64: both it and linux-x86-64 are three edits away, and r sorts first.

Chosen: among candidates at one distance and one depth, the one whose first bytes, as many as were written, are nearest what was written comes first, and spelling breaks what is left. A name the misspelling begins is at no distance from its head, so linux-x86 is offered linux-x86-64; one it nearly begins comes next. Distance and scope still decide first, so a nearer name, or one an inner scope declares, keeps its place. A target named by its system alone, --target=freebsd, is too far from any target to be near one, and when no target is near the driver offers every target the name begins as a system, with macos read as darwin.

The alternatives: ranking every name the misspelling begins before any other, which offers a long completion over a one-edit neighbour; and admitting a name the misspelling begins beyond the bound, which offers every declaration that shares a short head; a target's system is the one head that is a whole word, and only the driver's offer reads it.

Pinned by fixes/nearness is bounded and ordered and driver/targets are selected by name, which names linux-x86, macos and freebsd.

D870 — An exit written as a call's else value names the block that holds it

The discrepancy: [1030] says a recovery "either supplies a value in place of the result, or leaves: return, fail, break or continue", and x := f() else return and f() else return, written as a newcomer writes them to give up on a failure, were L0102, "return begins a statement, and a statement has no value", with the note "a statement stands on its own line". After else continue the line repair restated it as "a value belongs before continue" and offered else 0 continue, and else break was the bare "an expression belongs here". None named the block a leaving recovery is written in, nor try.

Chosen: the grammar is unchanged: the one-value recovery takes an expression, and an exit is a statement. An exit after a call's else is refused at the exit as L0102, "a recovery that leaves holds its return in a block: write else begin return end", whose note names else value, the bound block and try, and whose Likely fix writes begin before the exit and end after it. The exit is read as that block's one statement, so the line is one report. A bare else that ends its line before a return or a fail is still D370's, which reads the lines under it as the bound recovery.

The alternatives: admitting else return, else break, else continue and else fail atom as recovery forms of their own, four forms beside else begin ... end that differ from it by two words, which would also make if c then f() else return end if read two ways in an if arm [1820]; and keeping the old report with a second note, which still called the exit a statement on a line of its own.

Pinned by negative/recovery-exit-is-held-in-a-block, whose fix the fixes suite compiles clean.

D871 — A failing call that ends a body with returns is refused for its failure alone

The discrepancy: a failing call written as the last line of a routine with returns, often meant as a statement, is the body's value [1080]. Its first refusal was L0301, "this is u8 and i32 belongs here" or "the required aggregate type and shape", against the returns, and L0329's "use try or else" came second, because a report's code orders reports that stand on one span.

Chosen: when the last value of a body with returns is a call with a concrete, nonempty error set, neither tried nor recovered, its result is not held to the returns, and L0329 is its one refusal: "this failing call is neither tried nor recovered with else, and ending the body it is read as the routine's value", whose note names try, else and the discard _ = for a result that is not the routine's value. Once the failure is handled the result is checked against the returns as before. A callee whose set is still being inferred keeps both reports, since whether it can fail is not yet known where the body is checked.

The alternatives: reordering reports by stage rather than by code, which would move every other report on a shared span; and keeping L0301 with a note naming the failure, which leads with the type when the call is what was wrong.

Pinned by negative/failing-call-ending-a-body-is-its-value.

D872 — A failure in the hosted main is refused naming else and a routine with a set

The discrepancy: try inside the hosted main was L0329, "this body can fail with bad, which is outside its declared error set", whose note said to add the atom to the routine's ! set; main may have none [1970], so that fix was refused next as L0502. An unhandled call there was told "write try to propagate or else to handle", and try has nowhere to propagate to.

Chosen: in the entry module's public main of a hosted program, the atom outside the set is "main can fail with bad, and the hosted entry declares no error set", and the note says that try has nowhere to pass it: handle it with else where it is raised, or move the work into a routine whose ! set holds it and handle that call's failure with else in main. An unhandled call there keeps its message and takes the same note. A firmware program has no hosted main, and its reports are unchanged.

The alternatives: admitting ! on main with a default exit code for a failure, a hosted entry contract of its own that [1970] does not have; and naming L0502 in the note, which explains why the first suggestion failed rather than what to write.

Pinned by negative/hosted-main-failure-has-no-error-set and negative/erased-typed-call-unhandled, whose main the two notes now answer.

D873 — An assignment after defer or undo is named as one

The discrepancy: defer finished = true was L0103, "defer registers a call, not a constructed value", with the note "write the call that runs when its block is left": an assignment was called a constructed value, and the way to defer one was not said.

Chosen: a place followed by = or a compound assignment after defer or undo is refused over the whole assignment as L0103, "defer registers a call, and this is an assignment", whose note says to write the assignment in a routine of its own, taking the place as inout, and to register a call to it [1100] [1110]. Which programs are accepted does not change.

The alternatives: admitting an assignment as a cleanup, which [1100]'s rule that a cleanup reads its arguments when it runs would have to be restated for, and which defer of a call already expresses; and a fix writing the routine, an edit outside the line that names a routine the refusal cannot know the name of.

Pinned by negative/cleanup-of-an-assignment-names-a-routine.

D874 — An atom else filling a several-atom pointer union names the one-atom route

Superseded by D1659. There is no several-atom pointer union to fill, and what follows is history.

The discrepancy: D235 keeps a call returning a plain pointer from filling a union of several atoms and that pointer through an atom else, which would need a new lowering, and its refusal was the generic L0301, "this does not have the required pointer type and shape". It named neither the union nor D235, nor a form that fills it.

Chosen: an else value of such a call, when the call fills a several-atom pointer union, is L0301 at the value, "an else value stands in for this call's plain pointer, and does not widen it into absent | denied | ptr mut u32", spelling the union. Where the value is one atom, the note names the one-atom union of that atom and the pointer, absent | ptr mut u32, to recover into first: D189 admits that recovery, and D235 widens its value into the larger union. Otherwise the note says to recover the pointer with an else that leaves and widen it afterwards. Which programs are accepted does not change.

The alternatives: admitting the recovery by lowering it through the one-atom union, the new lowering D235 declined; and naming only D235, which says why and not what to write.

Pinned by negative/pointer-union-holds-one-atom, which refuses the union since D1659.

D383 — refine check takes what compile takes about the program

The discrepancy: check and compile read one program, and only compile took --firmware-entry, --link and --build-report; a Cortex-M probe could not be checked with the entry it is compiled with, and a program's source closure was learnt only by emitting assembly. With --root the operand had to be the entry module's directory, so a single file that imports from a root was L0007 under both commands.

Chosen: check takes every option that says which program is compiled and how: --target, --level, --root, --library, --option, --build-mode, --optimize, --specialize, --link, --firmware-entry and --build-report, and none that says what is written, --emit, -o, --debug, --panic-map, --keep-asm, --depfile, --toolchain, --linker and --dry-run. Under check, --link selects the C runtime the program is configured with (compiler.c_runtime) and is refused for a target it would be refused for under compile; --firmware-entry requires Cortex-M and is refused, as L0502, when it names no entry routine; and --build-report writes the report of what was checked, its target, level, controls, link, sources and items, with the specialization, routine and layout evidence only emission produces left empty. A report that would overwrite a source is refused. With --root, the operand is the entry module's directory or the entry module's own source files: named files are one module, as without a root, and their imports are found under the library and then the roots in order, as a rooted directory's are. A path that is neither a directory nor a source file is still L0007.

The alternatives: a separate --sources query for the source closure, a second command for what a check already knows; refusing --link under check because nothing is linked, which makes a build script spell its check and its compile differently; and reading a rooted file's whole directory as its module, which turns a file the reader named into one they did not.

Pinned by commands/check takes what compile takes, driver/invalid entry modules are diagnosed, negative/rooted-source-file-reaches-its-roots and negative/module-directory-invalid.

D384 — A command-line refusal says where things go

The discrepancy: refine --root=X compile was refused as "command-specific options must follow the command", naming neither the option nor its command; refine -o x.s main.ldn as "-o requires its own command", not saying which. Under --root ., import lexer/lexer was L0006 with the note "roots are searched in supplied order", which named neither the directories tried nor that an import path names one. L0500 named the Debian and Fedora packages and nothing for Nix, and nothing said that most of refine needs no C driver at all.

Chosen: an option written before its command is refused with the option as it was written, the commands it belongs to and where it goes: "--root=X is an option of check and compile, and follows its command: refine compile --root=X ...", and ", not of check" when the command named does not take it. With no command, an option the implied check does not take is refused as "-o x.s is an option of compile; name the command first: refine compile -o x.s ...". --library's note in L0006 says it follows the command. A rooted L0006 names every directory looked for, in root order. L0500's note names nix-shell -p gcc beside apt and dnf for the compiler's own Linux host, and says, for every target, that refine check, fmt and lsp, and compile --emit=asm or --emit=ir, need no C driver.

The alternatives: accepting command-specific options before the command, which makes refine --emit=asm check ambiguous about which command was meant; and listing every root's whole search in a second note, which the one sentence already holds.

Pinned by commands/options before their command, driver/linux names every distribution's driver and negative/module-not-found.

D385 — refine fmt takes a directory and marks where a line differs

The discrepancy: refine fmt --check core was refused as "fmt formats files, not directories", so checking a tree meant listing its files by hand; and D359's note quoted the wanted line whole, so one leading space too many was hard to see.

Chosen: a directory operand of refine fmt, --check or --stdout is the .ldn files under it, depth first in the order the host lists names, which is sorted. A name beginning with a dot is not entered, as a checkout's .git is not; a directory reached twice through a link is listed once; a source a directory reaches and an operand also names is formatted once, while one operand given twice is still refused. A directory holding no source is refused as L0002. --stdout still prints one source, so a directory holding more than one is refused with it. An L0008 for a respaced line marks the bytes that differ, from the first the layout changes to the last, or the byte an insertion goes before, and its note says from which column; a blank line removed or a line end changed is still marked whole.

The alternatives: a --recursive flag, which makes the common case the longer spelling; formatting every file under a directory whatever its name, which rewrites what is not Landin; entering dot-named directories, which reaches a checkout's .git; and a unified diff in the note, which D359 already declined.

Pinned by driver/fmt is a subcommand and scripts/tests/test_cli_native.py's fmt cases, which take a directory and read the column a line differs from.

D414 — A packed record or one with a flexible member crosses C by pointer

The tour said at [1580] that layout(c) structs cross the C boundary by value, and the C classifiers place each by its fields' aligned offsets. Neither D410's byte-packed record nor D413's record with a flexible array member has a by-value transport the classifiers model: SysV sends a record with an unaligned field in MEMORY, AAPCS64 differs, and a flexible member's elements are not part of the value at all.

Chosen: a C signature takes or returns such a record, or a record that holds one by value, only through a pointer. By value it is L0346, "this signature takes by value a C record that C reaches only through a pointer", whose note names ptr to the record. A pointer to either is an ordinary C pointer, and C reads and writes the record through it with the layout D410 and D413 give it.

The alternatives: implementing each C ABI's by-value rule for packed records would add a classifier path per target for a transport C programs avoid, since a packed record is a wire or register image passed by address. A flexible member's record by value is C's own truncation of the trailing elements and a mistake in either language.

Pinned by negative/c-packed-by-value, negative/flexible-member-by-value and abi/c-packed-records.

D415 — public is not an export: only what is named for the linker is global

The tour said at [0090] that public exports a name from its module, and at [1610] that link never implies export. Every backend made every public routine and datum a global symbol under its bare name, so a library name met the C library's and every linked object's: a public errno in platform/libc would have shadowed glibc's thread-local one and was renamed, platform/posix's and platform/linux's routines carried _landin_posix_ and _landin_linux_ link names so that none replaced C's read, and moving the arena gave core/arena a public reset the Cortex-M test harness's own reset met as the linker's "multiple definition". Nothing in the language said which names reach the C namespace. A private routine with a link name was global on arm64 and RV64 and local on x86-64.

Chosen: [1975]'s list is the whole of a program's global symbols: the hosted or firmware entry, C imports and public C definitions under their declared spelling, every routine and datum with a link name whether public or not, every public definition in a machine convention, and every Cortex-M placement. Every other routine and datum is a local symbol under its own name, on every backend: x86-64, arm64 and RV64 ELF, Darwin's Mach-O and Cortex-M0. A collision with the C library or a linked object cannot happen, so none is detected, and the debugger, a backtrace and nm keep the source name. An export is what something outside the program can call, so it, and not a public routine, is what D296 roots and what marks a routine's address exposed; a public routine the program alone calls may be folded with another of the same code or specialized like a private one.

The alternatives: module-qualified global names for every routine, _landin_core_arena_reset, which are stable but still global for no reason and rename every symbol a debugger shows; and refusing a public name that collides with the selected C library, which needs a list of glibc's, libSystem's and FreeBSD libc's exports per target and still misses a linked object such as the Cortex-M harness.

Pinned by abi/library-names-beside-libc, whose library's errno, reset, read and environ link beside the C library's and a C peer's global reset; abi/public-routine-is-local, whose C peer's weak reference to a public routine's name finds nothing; and the backend suite's symbol case, which holds every backend's assembly to the same global and local symbols.

The tour said at [1610] that a link name stands before a function's name, and D229 enabled one on Cortex-M module data. A hosted datum with a link name was L0347, with a note about Cortex data linkage, so data could not be exported at all, and platform/posix's poll flags took a poll_ prefix rather than meet C's names.

Chosen: a module datum takes link(symbol: ...) on every target, which makes it a global symbol under that name (D415) whether it is public or not. On a hosted target the name has [1975]'s external shape, as a routine's has, is never main, the hosted entry's, and like every link name is distinct from every other explicit one; L0347 refuses anything else and says so. Cortex-M data keep [1640]'s identifier shape and reserved prefixes.

The alternatives: exporting public data by its own name, which D415 declines for routines too; and leaving data unexportable, so a C peer that reads a Landin table has to be handed its address by a call.

Pinned by abi/link-symbol-exports, whose C peer calls a C definition and reads and writes two data under their link names; abi/r440-native-link-namespace, whose exported datum holds a qualified spelling; and negative/hosted-datum-link-main, a datum linked as main.

D417 — Two items of one spelling: the one that is not an export takes its module's path

The tour said nothing of how a program holds two items of one spelling. The backends renamed each colliding item landin_<declaration number>_<name>, a number that moved whenever any module earlier in the program gained or lost a declaration, and nothing documented it. Local symbols (D415) do not remove the need: one assembly file is one symbol namespace, and a routine named read beside a C import of read would capture the import's calls.

Chosen: an item that is not an export and whose spelling another item of the program holds takes its module's logical path with every / as ., or main for the entry module, then . and its name: core.arena.reset, main.read. An identifier holds no ., so only an explicit link name can hold that too; then, and for every instance of one generic routine after the first, the item takes the first free of .1, .2 and so on after it, in item order. The qualified spelling depends on the declaration alone, never on what else the program contains; whether an item needs it, and an instance's number, do. An export never yields.

The alternatives: keeping the declaration number, which is the composition dependence this replaces; qualifying every symbol, which D415 declines; and spelling an instance's type arguments into its symbol, which needs a mangling of every type and stays composition-dependent for an instance of a local type in two programs.

Pinned by abi/r440-native-link-namespace, whose routine foo beside C's foo takes main.foo.2 once a C function and an exported datum hold main.foo and main.foo.1, and the backend suite's namespace case. The firmware entry is an export too: the RV32, Cortex-M and Xtensa backends reserved the hosted entry's spelling but not the firmware entry's, so a library routine named start turned an entry start into main.start. They reserve both now, and the driver suite's the firmware entry keeps its symbol pins all three.

D1291 — --debug=lines names each module binding, with its type

The discrepancy: D417 links a module binding that shares its spelling with another module's routine under its module's path, main.geometry beside l1.geometry, and firmware's --debug=lines described routines and nothing else. So the only geometry a debugger knew by a source name was the routine: GDB's *(unsigned*)&geometry read the routine's code and printed $1 = 2961355840 without a word. And a binding no routine shadowed was a symbol with no type: print NAME answered "'NAME' has unknown type; cast it to its declared type".

Chosen: --debug=lines describes each module datum a declaration names, as a variable of the compilation unit: its source name, its declaration's file, line and column, its type, and the one address expression DW_OP_addr SYMBOL, the symbol being whatever D415 and D417 linked it as. Its type is described as --debug=full describes one, by the same encoder: scalars, pointers, structs with their fields, arrays, and D423's enumeration for an atom-set value. A debugger resolves a bare name in an expression to the variable before a routine of that name, so print geometry is the binding's value, ptype geometry its type and &geometry its address, and break geometry is still the routine. No link name changes, and nothing is added to a loaded segment.

lines still describes no routine's parameters, locals or slots and emits no location list: those need the placement plan --debug=full reads, which no firmware backend offers. A unit with no module binding has the debugging sections it had, byte for byte. Hosted targets refuse lines and already describe module data under full; they are unchanged.

The alternative: a D417 that preferred the entry module's items, so the binding kept its bare spelling and the routine alone was qualified. That changes link names an image's C objects and scripts may already use, only moves the collision to whichever item loses, and leaves print NAME without a type. The maintainer chose the debugging entry.

Pinned by debugging/lines name module bindings: a scalar, a struct and an array binding with their types and four-byte addresses on cortex-m0, and a unit with no binding unchanged. Under QEMU, GDB 16.3 read geometry beside an imported l1.geometry as u32 2961355841 after the program wrote it, a struct as {x = -8, y = 9}, a [4]u8, a bool and a u64, on cortex-m0 (microbit) and on rv32 (sifive_e); those sessions are not a lane. Xtensa takes the same description, and no debugger has read it there.

D421 — A generic instance is a symbol named after its routine

The discrepancy: D417 said how the second instance of one generic routine is spelled, but no backend gave an instance its routine's name. An instance declares nothing of its own, so every backend emitted it under an assembler-local label, .Llandin_anonymous_473, which reaches no symbol table: perf attributed 45 per cent of a binary-trees profile to bare addresses, mem.new and region_alloc among them, and an evidence provider that binds an instance's tables was as anonymous.

Chosen: an instance's symbol is spelled from the generic routine it was made from, and an evidence provider's from the routine whose evidence it binds. Neither is an export, so under D415 each is a local symbol, and the spelling follows D417: the bare name when nothing else holds it, otherwise the qualified one and then .1, .2 in item order. Only an anonymous function and literal data keep a local label. The build report's items carry the same spelling as name.

The alternatives: spelling the type arguments into the symbol, which D417 declines for its mangling and composition dependence; and a global symbol, which D415 declines for everything that is not an export.

Pinned by the backend suite's generic evidence is ordered indirect and shared, whose two instances of is_less are main.is_less and its alias main.is_less.1, and opt driver/build reports name calls left indirect.

D422 — A library file is recorded under /landin-library/

The discrepancy: debug information and the source map named each source by the path it was read from, and the library is read from where it was installed, so a program's debug information, its source map and the build identity hashed from them differed between two installations of one compiler. D361's trap report had already stopped naming the installation.

Chosen: a file of a core, hosted or platform module is recorded in DWARF's file table and the source map as /landin-library/, its module path and its own name: /landin-library/core/vec/vec.ldn, the name D361's report gives it behind one fixed prefix. Every other file keeps the path it was read from, and the compilation directory is still the one the build ran in, which is how a debugger finds a program's own sources. A debugger finds the library's by mapping the prefix to the directory refine version names: set substitute-path /landin-library DIR in GDB, settings set target.source-map /landin-library DIR in LLDB. The build report keeps every path as it was read, because it describes the build rather than the image.

The alternatives: relative library paths, which a debugger resolves against the compilation directory and so finds nothing; recording the installed path, which is the dependence this removes; and an option naming the prefix, a second spelling of one image for no reader's benefit.

Pinned by the GDB sessions of compiler/tests/debugging/check.py, whose source maps must name library files so and whose stops still read library lines, the Cortex-M source sessions, which map the prefix to their copied library, and scripts/cortex_debug.py's snapshot check.

D423 — An atom set is an enumeration to a debugger

The discrepancy: an atom is a u32 carrying a code the program gives it, D130's dense codes in declaration order, so a debugger showed look.what = 6, and the number meant a different atom in another program. The derived parser kept its token kind a u8 with numbered constants so that its sessions could read a stable number at all.

Chosen: every DWARF type of an atom-set value, a slot, a field, a module datum or a parameter, is an enumeration over the set's atoms with the code this program gives each, its carrier the type it refers to, on every target whose debug information describes types: Linux x86-64, Linux arm64, Linux RV64, FreeBSD and Darwin, which share one encoder. Cortex-M0's --debug=lines described no types then, and is unchanged for every routine; since D1291 it describes a module binding's. The set has no name in the IR, so the enumeration has none either; GDB and LLDB print a value as its atom's name. The derived parser's token kind is now an atom set, and its sessions read number and newline.

The alternatives: naming the type after its source declaration, which the IR does not keep and an anonymous set does not have; and a fixed code per atom across programs, which would give up D130's dense codes.

Pinned by the parser workload's GDB and LLDB sessions, which read parser.look.what by name.

D424 — An if inside a line is laid out from its if

The discrepancy: D252's layout stood an if that began inside a line on its line's indentation unless its first value shared the if's line, so a multi-line if expression's else and end if stood at the statement's margin, a then beginning a line looked like a statement, and one inside a call's parentheses closed at the margin too. Writers took the value into locals instead.

Chosen: an if that begins inside a line is laid out from its if: a then that begins a line, each elsif and else and its end if stand under the if, and each arm's body four columns in from it. The table D252 measured is the case of it whose arms each fit one line. An if that begins its line is laid out as before.

The alternatives: keeping the margin, which is what made the expression unreadable; and indenting the arms from the line, which separates an argument's if from its own parentheses.

Pinned by docs/format.md's rule An if inside a line, which formatting/the page is the layout holds the formatter to.

D426 — The binding generator writes packed and flexible-member records, and types their pointers

The tour said nothing of the binding generator, and D410 and D413 gave a byte-packed C record and one with a flexible array member a Landin form, which D414 lets C reach only through a pointer. The binding generator still refused both, so a header declaring either had no generated binding, and a pointer to any selected record was generated as ptr u8.

Chosen: a struct carrying its own __attribute__((packed)), with every field of alignment one as D410 requires, is written layout(c, packed), and a struct whose last field, after at least one other, is T name[] or GNU's T name[0] is written with a last [0]T field, its member at its element's alignment, or at one inside a packed record. #pragma pack, packed on a single member, aligned beside packed, a packed field of alignment above one under the native policy and a flexible member elsewhere or alone stay refused, each naming the decision it would break; auto keeps a packed record that breaks D410 C-owned and opaque, and a flexible-member record has no opaque form. Where the header passes either by value, D414 decides: an imported function gets a generated wrapper taking and returning it through ptr record or ptr mut record, a global gets typed address, read and write adapters, and an opaque record's field gets accessors through typed pointers; an export, a callback or an incoming-varargs handler carrying one by value is refused. A pointer to a selected packed or flexible-member record is ptr [mut] record, so its fields are reached without a cast; a pointer to any other record stays ptr u8, so no binding generated before changes. bindings.json records packed, flexible_member and pointer_only for every native record.

The alternatives: byte pointers for these records too, which leaves a caller casting to reach any field of a record that can only be reached through a pointer; typing every record pointer at once, which changes every binding generated so far; and implementing each ABI's by-value transport, which D414 declined.

Amended for every record pointer: keeping ptr u8 for an ordinary layout(c) record left its callers converting. The VFP bindings consumer passed its own vfp_sample to the generated vfp_apply as ptr(usize(addr sample)), through an integer address because ptr takes no pointer (L0301), and a pointer C returned had to be converted the same way before any field could be read. A pointer to any record the policy selects and the generator writes as a Landin record, ordinary, packed or flexible-member alike, is now ptr record or ptr mut record wherever the generator writes one: an imported function's parameter and result, a callback type's, a global's value and its address, a native record's field and an opaque record's member accessors. A caller passes addr sample and reads result.val.gain. This gives up, deliberately, the compatibility the sentence above kept: every binding whose header passes a pointer to an ordinary selected record changes when it is regenerated, and a caller that held the byte pointer now holds a typed one. A pointer to an opaque, incomplete or unselected record stays ptr u8, as an opaque object's own handle does, since no Landin record describes it; what this decision refuses stays refused. The alternatives were keeping the byte pointer, which is the conversion this removes, and typing a pointer to a record the policy does not select, which would write a record no policy asked for.

Pinned by abi/r440-bindings-generated, which the Linux arm64 and Darwin bindings runners regenerate for their own ABIs and whose program passes addr of an ordinary record to generated imports, reads and writes fields through the pointers they return and gives a generated callback type a Landin routine; abi/cortex-vfp-bindings, which does the same on the Cortex-M AN500 lane; and bindings/test.py's packed, flexible-member, ordinary-record-pointer and refusal cases.

D441 — escaping stays part of C-symbol compatibility

The tour said at [1610] that a link symbol denotes one compatible function, and [1975] that pointer permission, escaping and written from contracts remain Landin checks. An extern(c) import sharing a Landin definition's symbol had to repeat the definition's escaping, a word C does not have, and L0347 said only that the symbol collided.

Chosen: the comparison keeps escaping. A Landin caller of the import is checked against what the import says, so an import without escaping would let a caller pass addr local to a definition that keeps the pointer, a frame escape no check sees [0780]. When two declarations of one symbol differ in nothing but escaping, L0347 says so, names the parameter and says to repeat it on both.

The alternatives: ignoring escaping in the comparison, which opens the hole above; and letting an import add escaping but never drop it, which is sound but no help to the import that left it out. Both were declined.

Pinned by negative/c-symbol-differs-only-in-escaping.

D1113 — link(symbol: "main") on the hosted entry is the linkage it has

The tour said nothing; [1970] selects the entry module's public main: () -> (code: i32), and the checker and the backends already took an entry that "retains main linkage", with no link name or with main, as that entry. The spelled form was accepted by checking and then ended the lowering stage with an internal defect on the Linux targets, exit status 70 and no source position: the name was recorded as a link symbol of the entry, where it met platform/linux's bodyless C view of main ([1970], D279) as a second declaration of one symbol with another signature, which the IR's verifier refuses. Firmware programs write the prefix, since that is how a firmware routine gets the symbol, so a program moved to a hosted target met it.

Chosen: on a hosted target the selected entry's link(symbol: "main") is redundant and is not recorded as a link symbol: the entry is lowered, named and called exactly as it is without the prefix. A second definition or an incompatible import of main is still refused against the selected entry, and another symbol on main still leaves the program without an entry, L0502. Firmware keeps the prefix's meaning.

The alternative: refusing a link name on the hosted entry with a located diagnostic. That turns away a spelling that says only what is already true, and one the entry's own selection rule was written to admit.

Pinned by positive/hosted-main-names-its-own-link-symbol, checked and lowered for every hosted target.

The tour said at [1970] that a hosted program's entry is one public main of one shape, and D280 that a static Linux link refuses, before any tool runs, a C library asked for and a C symbol nothing in the program defines. Neither said whether refine check or --emit=asm, which link nothing, give those refusals, and neither did: a program checked clean and was refused when compiled, and an assembly file with a public main of another shape failed its link only with "undefined reference to main".

Chosen: a public main in a hosted program's entry module that is not [1970]'s entry, a result named other than code among them, is refused with L0502 by check, by --emit=asm and by --emit=exe alike, at the main it names. A C-convention main is [1650]'s own form and is not asked about, and a program with no public main still checks and emits assembly, as a library does. check on a target that links statically gives D280's refusals of a C library asked for with linker.library and of a C symbol nothing in the program defines, as compiling does. It loads no platform/linux for them, which defines no C symbol a program could import, so a check still needs no library; the refusal for want of platform/linux stays with the compilation that starts at it.

The alternatives: leave a check and an assembly silent, which is the mismatch above; treat a public main of another shape in the entry module as an ordinary public function, as an imported module's is, which keeps assembly emission and fails every executable built from it; or load platform/linux for a check, which gives the same answer for twenty times the time of a small check and asks a check for a library it otherwise does not need.

Pinned by end-to-end/check-refuses-a-public-main-that-is-not-the-entry, end-to-end/assembly-refuses-a-public-main-that-is-not-the-entry and end-to-end/check-refuses-a-static-c-import.

D446 — A fibre switches only inside its provider, and is no context of its own

The tour said nothing about fibres; the execution model in the roadmap names them the route to concurrency and refuses stackless coroutines. D227 says a CPU execution context is a thread or an interrupt handler, and its races are between contexts. Prototype 5 found that nothing said where a fibre can lose the core, so a fibre that read the provider's last errno, bumped a module counter or pushed onto a ring could not say whether it raced (V4, V5, V6).

Chosen: fibres are cooperative. A fibre gives the core away only inside a call to an entry of the provider that runs it, and a provider states which of its entries may switch, as hosted/system states which retry; a query that does not wait, last_errno among them, never switches. The fibres of one provider are one CPU execution context in D227's sense: a switch is sequenced-before within it, and it is a full compiler memory boundary, as D227's explicit primitives are, so no ordinary access is carried across one in a register. A fibre does not move between threads. Threads are not a provider of the fibre concepts: a provider of them runs at most one of its fibres at a time, and state shared with a thread is the atomic wrapper's or a lock's.

The alternatives: preemptive fibres, which make every access a race and need the locks a cooperative design avoids; each fibre its own context, which calls a one-at-a-time ring a race; a switch the optimizer may see through, which lets a register keep a value across it; and threads as one more fibre provider, which makes code that is right under one provider racy under another with nothing in its source to say so. All were declined.

Pinned by runtime/stack-switch-round-trip, a module value written on one stack and read on the other across every switch at every optimization profile, on the targets whose backend emits the switch (D453); prototype 5's V4, V5 and V6 record the pressure the provider rules answer.

D447 — What a switch owes the machine and the debugger

The tour said nothing about fibres. The roadmap's execution model holds that call-bearing frames keep a frame pointer, the callee-saved discipline is explicit and no capability rides in a reserved register, so that a backend never forecloses switching stacks. Prototype 5 found what a switch itself must then do: where a fibre's stack ends, where interrupts land on Cortex-M, and what a debugger sees (V9, V11, V12).

Chosen: a stack's limit is checked by every routine that runs on it: in a program that prepares a stack, each routine compares its frame with the current stack's limit in its prologue and enters the program's [1670] handler past it (D471), and the limit travels in the frames a switch saves (D472); which panic kind that is, D451 says. The compiler reports, for each routine a program admits to a group, the deepest stack of the call graph it can close, and names where an any call, recursion or a foreign call opened it. On Cortex-M, fibres run on the process stack pointer and handlers on the main stack, so handlers' own frames and every nested exception are paid once, by the main-stack reservation, and a fibre's stack holds its own calls and the one hardware exception frame the core pushes when it interrupts the fibre (D461); the reset stack stays on the main stack. A fibre's first frame ends the frame-pointer chain and says so in its unwind information; switch is written so that, stopped anywhere in it, the frames above are the leaving fibre's; and the records are ordinary data a debugger script walks to show a suspended fibre's frames. No debugger is taught about fibres.

The alternatives: guard pages, which caller-supplied backing has no way to provide on a device and which a host provides only to storage it maps itself; a stack-depth bound the compiler enforces, which an any call makes impossible at the one place it is wanted; one stack pointer on Cortex-M, which charges the deepest interrupt nesting to every fibre's backing on a 16 KiB part; and debugger extensions per tool, which would have to be kept for GDB and LLDB alike. All were declined.

Pinned by the Cortex-M firmware lane's fibre case, which takes an interrupt in a fibre and steps a debugger through both switches (D460, D461); prototype 5's V9, V11 and V12 record the pressure. A fibre's record kept the limit and only a switch checked it until D471 and D472, whose fixtures pin the check that replaced it. The stack report suite pins the depth report as D467 and D468 say it. The scripted debugger sessions of runtime/stack-switch-frames on every target (D469) pin the frames of a backtrace through a switch, and the capacity control of the Cortex-M lane's evidence (D470) the fibre's backing on the retained profile.

D450 — The stack switch is two compiler builtins

The tour said at [1620] and [1630] that something is a builtin when the compiler has to know it, which made the atomics builtins and left masking interrupts to assembly. D444 puts the switch under core/fibre and D446 and D447 require of it a full compiler memory boundary, the target's callee-saved set, the frame-pointer chain, unwind information that ends a fibre's chain, the stack's limit and, on Cortex-M, the process stack. The library has no assembly, a naked routine cannot be called from Landin, and an assembler.block sits inside a frame whose layout the compiler chooses, so a library prepare would have to guess that layout.

Chosen: two compiler members, ordinary calls in source like the atomics, each evaluating its arguments once from left to right.

  • compiler.stack_prepare(stack, entry, argument) takes a []mut u8, a function value of type (argument: usize) -> noreturn and a usize, and returns the usize stack pointer a later switch resumes. It aligns the top of stack down to the target's call alignment and lays out a first frame that, when resumed, calls entry(argument) with the frame-pointer chain and unwind information ending there, and the stack's limit, its base and D472's margin. A slice too small for that frame and the margin traps stack_exhausted (D451).
  • compiler.stack_switch(save, resume) takes a ptr mut usize and a usize. It saves the callee-saved registers, the frame pointer and the current stack's limit on the current stack, stores the stack pointer through save, and resumes the context resume names, its limit included, returning there. It is a full compiler memory boundary. It took a third argument, the leaving stack's limit, which it checked the stack pointer against, until D472 retired it.

On Cortex-M a prepared stack runs on the process stack pointer, and a switch between the reset stack and a prepared one changes CONTROL's stack selection; handlers keep the main stack (D447), and D460 says how a saved context records which stack pointer it resumes. The builtins name no library type: core/fibre builds its records, scheduler and group over them, and keeps the integer-made pointers that carry its state inside itself [0810]. Both are admitted on every target with a native backend; synthetic-32 admits neither.

The alternatives: the switch in assembly inside core/fibre, which would admit assembly into core and guess a frame layout the compiler owns; naked routines made callable, which would give every naked routine an ordinary calling convention it does not have; and one builtin taking a library record, which would make the compiler know core/fibre's types. All were declined.

Pinned by runtime/stack-switch-round-trip, a prepared stack entered, left and re-entered, and runtime/stack-prepare-too-small-traps on the targets whose backend emits the builtins (D453), and the backtrace through a switch by the sessions of runtime/stack-switch-frames (D469).

D451 — A stack past its limit is a fifth panic kind

The tour said at [1670] that a failed check calls a handler with one of four kinds, and D232 made those four core/panic's canonical domain. D447 left open which kind a stack past its limit is.

Chosen: core/panic gains stack_exhausted, and panic_kind is the union of five. D232's handler contract takes the five-atom domain; a handler written with panic.panic_kind accepts it unchanged, and one that matches the kind completely gains an arm. The hosted default handler reports it as it reports the others, and firmware keeps its bare instruction. A prepare too small for its first frame (D450) and a routine whose frame would go below its stack's limit (D471) raise it.

The alternatives: out_of_range, which is true of the pointer but tells a handler nothing it can act on and leaves the site number to tell the two apart; and a separate handler for stacks, which would be a second hook with its own contract. Both were declined.

Pinned by runtime/fibre-stack-past-limit-traps and runtime/stack-prepare-too-small-traps for the hosted default's report, runtime/stack-exhausted-reaches-the-handler for a selected handler, and negative/panic-handler-four-kinds for the five-atom contract.

D452 — A panic site reserves five numbers per source byte

The tour said nothing about site numbers; D232 reserved four numbers at each source byte, one per kind in the atom-name order, so that distinct kinds at one position have distinct sites. D451 added a fifth kind.

Chosen: each source byte, including its one-past-end position, reserves five numbers, base + 5 * first_byte_offset + family_offset with family offsets zero through four in core/panic's order, stack_exhausted fourth. Every other rule of D232's site space is unchanged, and a site number is still not persistent across changed source inputs.

The alternatives: keep four and give stack_exhausted another kind's offset, which lets an addition that starts where a stack builtin's call starts share its site; and number stack_exhausted sites from a separate range, which makes the map two spaces for one rule. Both were declined.

Pinned by abi/r670-panic, whose peer pins sites from source byte positions, commands/site is a subcommand for the map's decoder, and the Cortex-M panic controls in environments/cortex-m/freestanding.py.

D453 — The stack builtins' refusals, and a backend that does not emit them yet

The tour said nothing; D450 admits the builtins on every target with a native backend and none on synthetic-32, and D227 gave the memory intrinsics' refusals one code.

Chosen: the stack builtins are refused with L0344, as the memory intrinsics are: an argument outside D450's contract, a missing argument, a recovery, and a target that does not admit them. A target whose backend does not emit them yet refuses both by name, "not yet emitted on" the target, rather than admitting a call its backend cannot carry; each backend lifts the refusal for its targets as it lands, which leaves D450's admission the rule once all have. D564 amends where a target's refusal is made: only where the program reaches the call. An argument that is not a usize is the ordinary type disagreement, L0301, as an atomic's value operand is.

The alternatives: a code of the stack builtins' own, which would split one contract family over two codes; and admitting them on every native target at once with a backend defect where they are not emitted, which breaks a program at emission that checking accepted. Both were declined.

Pinned by negative/stack-builtins-argument-contract and negative/stack-builtins-target-synthetic-32. The Cortex-M corpus refused the stack fixtures with L0344, and a negative fixture refused them on linux-arm64, until each backend emitted the builtins; both were retired then.

D564 — A target-limited builtin is refused where the program reaches it

The tour said nothing; D453 refused a stack builtin by name on a target that does not emit it, and D227 a memory intrinsic, or a width, that a target does not have, wherever it was written: in a routine of an imported module the program never calls as well, so a module that offered a switch refused every program that imported it on such a target, and D463 put core/fibre's switch in a submodule of its own for that reason alone.

Chosen: this amends D453. A refusal that names the target, L0344's "needs a native backend", "is not yet emitted on" and "memory operation or width unavailable on target", is made by the checker as before, with the same message, site, second place and note, and held against its call rather than reported; the call is otherwise checked and typed as an admitted one. Once the lowering knows which code the program keeps, which D296's walk from the entry module's routines decides, it reports each held refusal whose call is in kept code, and lowers nothing when any is. A compilation with neither a main nor a firmware entry to root the walk keeps everything, so a module checked on its own still reports every one; a firmware image reports those its image reaches (D1358). A refusal of the call's own form, an argument outside the contract, a missing argument or a recovery, is reported where it is written, as every other checker refusal is. A held refusal joins the report only when the checker accepted the rest of the program.

The alternatives: the submodule rule written into core/README.md for every module that calls such a builtin, which makes the library's layout answer for the checker; and a reachability walk of the checker's own, which would be a second account of what a program keeps beside the lowering's. Both were declined.

Pinned by negative/target-builtin-refused-only-where-reached, which on synthetic-32 imports core/fibre/stacks and a module with a routine that prepares a stack, neither called, and is refused once, at the switch main reaches; and negative/stack-builtins-target-synthetic-32, whose two builtins main calls.

D460 — On Cortex-M0 a saved context records which stack pointer it uses

The tour said nothing; D447 and D450 run a prepared stack on the process stack pointer and keep the reset stack and handlers on the main one, and left open how the one usize a switch saves says which of the two it resumes.

Chosen: the saved word is the stack pointer itself, and the frame it points at records the selection. A switch pushes r4 to r7 and the return address, then a scratch word and the current stack's limit (D472), then CONTROL's value with r8 to r11 above it: forty-eight bytes, CONTROL lowest. Resuming reads the CONTROL word at the resumed address, writes the address into PSP when that word's SPSEL bit is set and into MSP when it is clear, writes CONTROL, executes an ISB, which makes the written pointer the current one, and pops the frame. compiler.stack_prepare aligns the slice's top down to eight and lays a frame whose CONTROL word is two, SPSEL set and privileged, with the argument in r4, the entry in r5, zero in r11 and the other registers, the stack's limit, and the start routine as the return address; a slice whose aligned top leaves less than those forty-eight bytes and D472's margin traps stack_exhausted. So a prepared stack always runs on PSP, and the reset context, saved by its first switch with CONTROL as reset left it, resumes on MSP. CONTROL's other bits travel with each context, as the limit does. A switch in handler mode, where the stack pointer is always MSP and SPSEL cannot be written, or in unprivileged thread mode, where neither CONTROL nor MSP can, is outside the contract and is not checked: D446 makes a provider's entries the only places a fibre switches, and they run in thread mode.

The alternatives: a tag in the saved word's low bit, which makes the value no longer the stack pointer D450 returns and puts every library computation on it a byte off; telling the two apart by address against the reset stack's bounds, which the compiler does not know where startup is not its own, as in the corpus's harness; and a switch that always loads PSP, which cannot resume the reset context unless the reset stack moves to PSP too, the one-stack design D447 declined. All were declined.

Pinned by runtime/stack-switch-round-trip, runtime/stack-frame-past-limit-traps, runtime/stack-prepare-too-small-traps and runtime/stack-exhausted-reaches-the-handler, executed by the Cortex-M corpus at every profile, and the firmware lane's fibre case in environments/cortex-m/firmware.py, which reads CONTROL, MSP and PSP at each stop and walks the debugger's frames at every instruction of both switches.

D461 — A fibre's backing on Cortex-M0 holds one exception frame

The tour said nothing. D447 said that with fibres on PSP interrupt frames are paid once, by the main-stack reservation, and a fibre's stack holds its own calls alone. Emitting the switch found that this overclaimed: ARMv6-M's exception entry pushes the interrupted context's eight words, r0 to r3, r12, lr, the return address and xPSR, onto the stack the interrupted code was using, so an interrupt taken while a fibre runs stacks that frame on the fibre's PSP, and only then does the handler run on MSP.

Chosen: a fibre's backing holds, beyond its own deepest calls and the forty-eight-byte frame a switch saves (D460), one exception frame: thirty-two bytes, and four more when the core aligns the frame to eight bytes, which ARMv6-M always does, so thirty-six at most. It is paid once per fibre, not once per level of nesting: a nested exception is taken in handler mode and stacks on MSP, as every handler's own frames and calls do. The main-stack reservation pays for those. D447's sentence now says so, and a measurement of a fibre's stack charges it the thirty-six bytes.

The alternatives: none in software. The core stacks the frame before a handler's first instruction runs, so only a fibre on MSP avoids it, the one stack pointer D447 declined because it charges every level of nesting to every fibre's backing.

Pinned by the firmware lane's fibre case: at the handler's first instruction MSP is exactly the stack pointer start saved when it switched away and EXC_RETURN says a PSP thread was interrupted; the eight stacked words are at PSP inside the fibre's backing with the fibre's own return address; the painted backing below them is untouched through the handler and a call it makes, whose frames stand below the saved pointer on MSP; and the fibre resumes at PSP plus thirty-two, or thirty-six when the frame was realigned.

D462 — The stack builtins' fixtures run on firmware as they are

The tour said nothing. runtime/stack-switch-round-trip printed its line through hosted/system, and runtime/stack-exhausted-reaches-the-handler ended the process through posix.exit; firmware has neither, and the Cortex-M corpus executes no fixture whose oracle is its output.

Chosen: both are freestanding, so every target runs one source. The round trip's status says what its line said: the order the two stacks ran in, the module value folded on both and the local kept across both switches; its backing is two KiB, which the corpus's twelve KiB of static RAM holds. The handler fixture's fibre recurses past its stack's limit, and its handler records the kind and resumes the context main saved when it switched to the fibre, so main returns the stack_exhausted arm's code. A handler that switches away does not return, so D232's rule for a returning handler is not engaged; the panic latch stays claimed, and a later check in that image reaches the terminal default instruction. That is a property of the fixture and not a recovery idiom: [1670]'s handler still ends the program's checked computation.

The alternatives: Cortex-M counterparts under compiler/tests/cortex-m/cases, which the corpus applies only to fixtures with a status oracle and which would keep two sources of one rule; and refusal rows, which would leave the Cortex-M0 builtins without a corpus execution. Both were declined.

Pinned by the two fixtures, on the x86-64 targets they name and in the Cortex-M corpus.

D1293 — A handler reports its verdict by resuming main

The discrepancy: a fixture that pins what a selected panic_handler received has to observe the handler, and a handler cannot return (D232). runtime/compiler-unreachable-dispatches entered itself again on the kind and site it expected, which stopped at the terminal default trap, and spun otherwise, which traps: yes refuses as a timeout; but a program that never dispatched to the handler stopped at that same trap and passed. D462's resume was the exact form, and was thought to need the stack builtins on targets whose backends did not yet emit them.

Chosen: D462's resume is the portable report and no mechanism is added. D450 admits the stack builtins on every target with a native backend and every backend now emits them, RV32 and Xtensa included, so the one source runs on every hosted lane and every firmware corpus. A fixture that pins a handler runs the computation whose check fails on a prepared stack; the handler stores its verdict in a module value and resumes the context main saved when it switched there, and main returns the verdict as its status, which a hosted lane reads as the process's and a firmware harness as the value main returned. The verdict is 42 for exactly the expected kind and site and a distinct code otherwise, so a missing dispatch, another kind, another site and a call that returned each fail the status. The handler does not return, so D232's rule for a returning handler is not engaged, and its latch stays claimed as D462 says. A check that fails on main's own stack, before any switch, has no saved context to resume; a fixture of one keeps traps: yes.

The alternatives: a core/panic routine that ends the program with a status, which firmware cannot give without a harness of its own and which would be a library contract made for fixtures; a harness key reading a module value at the terminal trap through a debugger, which the firmware lanes have and the hosted lanes, run without one, do not; a provider per target, platform/posix.exit hosted and something else on firmware, which is two sources of one fixture; and a builtin that reports, which is a language feature for a test's sake. All were declined.

Pinned by runtime/compiler-unreachable-dispatches, which returns 42 for unreachable at its call's site on every target it names, and in the Cortex-M corpus on each of its lanes, the two RV32 machines included.

D467 — The depth report covers every emitted routine, from its caller's stack pointer

The tour said nothing. D447 has the compiler report, for each routine a program admits to a group, the deepest stack of the call graph it can close. What a group admits is a run-time fact: a task is an any fibre.task value, and prepare takes its entry as a function value, so no compile-time set of admitted routines exists to report on.

Chosen: --stack-report=PATH writes, beside emitted assembly or an executable, one JSON row for every routine the backend emitted, with whether its address is taken, so whoever starts a fibre reads its entry's row. A routine's frame is the backend's own figure: how far its code takes the stack pointer below where its caller's stood before the call, so x86-64's return address, every frame record, the frame, and the largest area it reserves around one call or pushes for a moment. Its depth is its frame plus the deepest of its callees' depths, of what compiler.stack_switch saves on the leaving stack where it switches, and of a failed check's call where one calls out. A switch is not a call into the context it resumes. A selected handler runs on the stack that failed, and a check failing in its own calls enters it once more as far as its frame before trapping, so the handler is measured with its own frame as that cost and every other routine with what that measured; D361's report costs what its routine takes. The hosted entry's call to the argument initializer is counted from its whole frame. What compiler.stack_prepare lays at a stack's top and how far below the top the entry starts are the target's, reported once; on Cortex-M0 the exception frame is D461's. A report holds frames and depths and no backing arithmetic: alignment of the top, the starting record, D461's thirty-six bytes and the margin above a stack's base (D472) are the consumer's sums. Calls are read from the unit the backend was given, so a call it closed by inlining is not one.

The alternatives: reporting only routines whose address is taken, which leaves a fibre's callees to be found by hand and gives nothing to a program that starts no fibre; a per-call-site argument area, which the backends do not record and which the largest area bounds; frames from the build report's frame_bytes, which on three targets leaves out the frame record and every call area; and a section of the build report, which a check without emission also writes and which has no frames to give. All were declined.

Pinned by the stack report suite: a closed graph on every target, a switch costs its frame, a failed check counts, the same program gives the same report and a stack report needs emitted code.

D468 — What opens a call graph

The tour said nothing. D447 names three things that open a graph: an any call, recursion and a foreign call.

Chosen: a report lists each opening once, with its kind, the routine it is in and where, and each routine the openings its calls reach; such a routine is not closed, and its depth is what the rest closes. The kinds are: any, a call through an erased table; evidence, a generic's call through a table a caller handed it; function value, a call through any other function value; foreign, a call to a declaration no emitted routine defines under its link name, or through a C function value; recursion, each call inside a cycle, whose depth is not followed; helper, a routine that calls the target toolchain's runtime, as Cortex-M0's __aeabi_* division does; and assembly, a naked routine, whose text owns the stack, or a [1630] block whose text pushes, pops, enters, leaves, calls or names a stack pointer. A call through a routine's address or a constant table computed in the same routine is a call to that routine; a value traced through slots names only the opening's kind, because a slot may be written through its address. A failed check's own openings are the report's trap: the handler's, or D361's report calling the C library's write off Linux on the stack it was called on, which D491 leaves only in a program that prepares no stack.

The alternatives: a bound that assumes some cost for an opening, such as the largest frame of a family's providers for an any call, which is a guess about what a run-time value holds; a recursion bound from source annotations, which the language has none of; and reading every assembly block as open, which would open every hosted program at its system calls. All were declined.

Amended by D570: a call through any, a generic's table or a function value is no longer an opening when the program holds a routine it can reach: it reaches every such routine, which is not an assumed cost but the set the program fixes. The kinds stay for a call that reaches none, and for a C function value.

Pinned by the stack report suite's each opening is named and a helper opens the graph.

D469 — The switch and start routines have names a debugger shows

The tour said nothing. D447 has a debugger's walk pass through a switch and end at a fibre's first frame, and D450's backends emitted the two routines that carry it, one switch routine and one start routine per program, under local labels: an ELF .L label, which no Linux symbol table keeps (FreeBSD's kept them until D475), and on Mach-O a linker-private l name, which the link drops. A backtrace through a switch therefore showed ?? for both, on every target but Cortex-M0, whose label prefix happened to be kept.

Chosen: both are local function symbols with their sizes, landin.stack_switch and landin.stack_start, which Mach-O spells with its underscore and LLDB shows without it. No Landin routine can be spelled with the dot, so no routine of a program takes either name; an explicit link name beginning landin. moves the prefix, as one beginning with a local label's prefix moves that. On Mach-O each still begins an atom of its own. The start routine's symbol begins at its opening nop, and a prepared first frame returns past the nop, so the return address less one that a debugger looks up lies in the start routine's symbol as well as in its unwind description. Neither routine has a DWARF subprogram, as no routine the compiler writes for itself has: a debugger names the frame from the symbol and shows no line or variables for it. Their unwind information is D447's, unchanged.

The alternatives: names spelled as a Landin routine could be, such as landin_stack_switch, which a program's own routine of that name would collide with in the one object a program assembles to; global symbols, which a program linked with C would export; and DWARF subprograms, which would claim source lines the routines do not have. All were declined.

Pinned by runtime/stack-switch-frames, the scripted debugger sessions' workload on every target with a native backend: GDB on Linux x86-64 and arm64 in compiler/tests/debugging/check.py, on RV64 in compiler/tests/rv64/check.py and on Cortex-M0 in environments/cortex-m/source_debug.py, and LLDB on Darwin in compiler/tests/debugging/darwin.py and on FreeBSD in compiler/tests/freebsd/check.py, every one holding the frames to compiler/tests/debugging/switch_frames.py.

D471 — Every routine checks its frame against its stack's limit

The tour said nothing. D447 had a fibre's record keep the lowest address its stack may reach and every switch check against it, and D465 kept a fixed 1 KiB room above that address for what runs between two switches. The depth report (D467) then measured the round's own path from a yield to its switch at up to 2,384 bytes on RV64 and about 2,088 at none on x86-64 and arm64, and a task's own calls are bounded by nothing: a task whose recursion went past its stack between two switches overwrote its own record on RV64 and ended in a segmentation fault rather than stack_exhausted.

Chosen: a program whose whole program holds a compiler.stack_prepare checks every ordinary routine's frame in its prologue. After the frame record and before the frame is reserved, the routine compares the stack pointer less its frame with one cell, the current stack's limit, and when it is below traps stack_exhausted at its own site, its declaration's: through the selected handler or the hosted default report, from its frame record, with nothing of its frame reserved or written. A call's argument area larger than the target's unchecked figure (D472) is checked the same way before it is reserved, at the routine's site. The cell holds zero on the stack the program started on, so routines running there never trap, and a switch installs the resumed context's limit (D472). These are not checked: a routine that makes no call and whose frame is no larger than the unchecked figure, which the margin pays for; a naked routine, whose text owns the stack; the selected handler, which instead stores zero in the cell, so that it and what it calls run on what a failed check left without a check that would enter it again, D232's latch still refusing a second entry; and on Cortex-M0 an interrupt handler, which runs on the main stack that no prepared stack's limit describes: it keeps the interrupted context's limit below its frame record, zero in the cell while it runs, and puts the limit back as it returns. On Cortex-M0 a call-free routine whose frame is larger than the unchecked figure keeps the frame record its check needs. A program with no compiler.stack_prepare has no check and no cell, and its code is byte for byte what it was. The cell is the running thread's (D497). A check is one load, one compare and one branch, with the instructions that form the frame's address and the cell's and the test of that address's borrow (D1111): five instructions on x86-64, whose load is %fs-relative; six on Linux and FreeBSD arm64 and eight on Darwin, which read the thread pointer first (D506); and nine on RV64 and on Cortex-M0, whose branch to the trap is a far one.

The alternatives: the check at the switch alone, with a room sized per target from the depth report, which bounds the provider's path but not a task's own calls, and leaves an overflow writing below the stack before any check; a guard page, which D447 declined for caller-lent backing; a check in every routine of every program, which charges the many programs that never prepare a stack; checking after the frame is reserved, which on Cortex-M0 lets an interrupt stack its exception frame below the limit before the check, and on the hosted targets lets a large frame's page probes write there; and the limit in a reserved register, which no backend keeps (D447). All were declined.

Pinned by runtime/fibre-stack-past-limit-traps, a task's own recursion through core/fibre's round trapped at descend's site on every hosted target at every profile; runtime/stack-frame-past-limit-traps, a frame larger than its stack trapped before any of it is written, on every target, Cortex-M0 included; runtime/stack-exhausted-reaches-the-handler, the handler entered from a recursion's prologue, with the paint below the stack whole. A program that prepares no stack emits what it did: every fourth runtime fixture's assembly, for six targets at every profile, was compared before and after this decision, 3,949 files, and differed only for the fixture that prepares a stack and, in debug builds, in the hash of the library sources this decision edited.

D1111 — A frame larger than the stack pointer's own value is past the limit

The tour said nothing, and D471 said "compares the stack pointer less its frame with one cell". Every backend formed that difference in the machine word and compared it unsigned, so a frame larger than the stack pointer's value left a difference that had wrapped past zero and was above every limit: the check answered that the frame fitted, and the routine moved its stack pointer to the wrapped address. The precondition is a prepared stack within one frame of address zero, which is not rare: a static Linux executable's module storage, where a fibre's stack usually is, lies 4 MiB above zero on x86-64 and arm64 and 86 KiB above it on RV64, and the STM32H753's ITCM is writable memory at zero. There the process died of a segmentation fault where stack_exhausted was specified, a selected handler was never entered, and arm64's and RV64's page probes first stored zeros through the module data below the stack.

Chosen: the difference's borrow is part of the comparison, on every target and for a call's argument area as for a frame. x86-64 subtracts in a register and branches on the carry before it compares, where lea set no flag; arm64 subtracts with flags and makes the comparison conditional on no borrow, reading as below otherwise; RISC-V branches when the difference is above the stack pointer it was taken from, as Xtensa's windowed prologue does, whose frame holds the argument area (D1110); and Cortex-M branches on the carry of the subtraction it already made. That is no instruction more on arm64, one on RISC-V, Xtensa and Cortex-M and two on x86-64. A program that prepares no stack still has no check, and its code is what it was.

The alternatives: comparing the stack pointer less the limit with the frame, which needs the same second test, because a routine running inside the margin may have its stack pointer below the limit already; adding the frame to the limit instead, which wraps at the other end of the address space, where some parts have their RAM; and keeping the wrapping comparison for frames below a page, on the ground that no stack lies in page zero, which is true of a hosted process and false of firmware. All were declined.

Pinned by backend/a limit check tests the borrow, the test's place in the emitted text of the four hosted and Cortex-M emitters for a frame an immediate holds and one it does not, and xtensa backend/the stack switch masks before its context, the same in Xtensa's prologue. The review's programs, D471's own fixture with a frame larger than its static stack's address, end with the handler's status on Linux x86-64, arm64 and RV64 and with the trap on Cortex-M3 and RV32 under QEMU. runtime/stack-frame-past-address-zero-traps executes it on the hosted targets: a fibre's stack in module storage and a sixteen-megabyte frame, which ends with the handler's status and ended by a segmentation fault before. The frame that wraps on a hosted target is larger than any firmware stack, so its corpus row records the selected profile's limit and no firmware lane executes it.

D472 — A saved context carries its limit, a margin above its stack's base

The tour said nothing. D450's switch took the leaving stack's limit as an argument and checked the stack pointer against it; D471 needs the current stack's limit in a cell every routine reads, which a switch must change.

Chosen: compiler.stack_switch(save, resume) has two arguments. The switch saves the cell's value in the frame it pushes on the leaving stack and, once the resumed stack is current, loads the value saved in that frame into the cell: x86-64 pushes it as an eighth word, a 64-byte frame; arm64 stores it at 144 in a 176-byte frame, below its frame record (D475); RV64 in the frame's lowest word, which was unused, keeping 208; and Cortex-M0 pushes it with a scratch word between r4 to r7 and the rest of D460's frame, 48 bytes. The switch checks nothing: the routine that calls it checked its frame, and its save is inside the margin. compiler.stack_prepare lays the stack's limit in the same place of the first frame, the slice's base plus the target's margin, and traps stack_exhausted when the slice cannot hold the first frame and the margin.

The margin pays for what runs below a checked frame with no check of its own: a call area or a call-free routine's frame, each up to the unchecked figure; the frame record a callee pushes before its check; the switch's save; and a failed check's call of the handler or the default report, and the handler's own depth; on Cortex-M0 also D461's thirty-six bytes, which an interrupt may stack at any instruction. The worst before a handler's own frames is two unchecked figures, a frame record and the call, except on Xtensa: it checks every ordinary frame, including call-free routines, and a frame holds its routine's outgoing area (D1110), so no area is unchecked. The failed callee's 32-byte ENTRY and a 16-byte ABI spill cushion are 48 bytes, well below its conservative 416-byte allowance, which still counts a 256-byte area. Window exceptions use the existing ABI spill areas and recorded backchains without reserving another frame, and the stack pointer they are found from stays where the prologue left it.

Target Margin Unchecked Switch frame Before the handler Left for the handler
x86-64 640 64 64 152 488
arm64 640 64 176 144 496
RV64 768 64 208 144 624
Cortex-M0 384 64 48 188 196
Xtensa 1024 256 336 416 608

RV32 keeps RV64's 768 (D675), and a Cortex-M profile with a float unit adds 72 bytes each for the extended exception frame and the larger switch frame (D620), 528 in all.

The default report needs 8 to 24 bytes of that. What is left is sized from the depth report's trap figure, which counts a handler's frame twice (D467), for the corpus's selected handlers that run on an overflowed stack, at every profile: those of runtime/stack-exhausted-reaches-the-handler and runtime/stack-frame-past-limit-traps, which match the kind and switch away, took at most 384 bytes on x86-64 and arm64 and 544 on RV64, at none, and 160 on Cortex-M0. On both Xtensa configurations these handlers take at most 544 bytes across the six profiles, leaving 64 bytes within their 608-byte handler allowance. The complete window context is 336 bytes. A 1536-byte margin left existing 2 KiB prepared stacks too little room for ordinary frames. Compact ordinary word homes and a 1024-byte margin retain the measured handler bound while admitting those unchanged consumers. A margin of 1 KiB, which covered handlers three times their size, made runtime/fibre-turns-interleave's 4 KiB stacks too small at none, and so was declined. The report's margin_bytes and unchecked_bytes give the two figures beside the trap depth, so a reader sees whether a program's handler fits; one that does not is refused (D474). The default report always fits. A switch between two contexts that were never prepared, both on the stack the program started on, carries zero, as that stack's limit is.

The alternatives: the limit an argument of the switch, as D450 had it, which every provider has to keep and pass correctly and which the cell would repeat; the limit in a fibre's record, which ties the builtins to a library type, as D450 declined; a margin computed for each program from its handler's measured depth, which makes a prepared stack's room depend on code anywhere in the program and is not known where the prepare is emitted; and one margin for every target, which charges Cortex-M0's small stacks for RV64's frames. All were declined.

Pinned by the stack report suite's a switch costs its frame, the switch, first-frame, margin and unchecked figures on every target; runtime/stack-switch-round-trip, a limit restored across every switch, Cortex-M0 included; the debugger sessions of runtime/stack-switch-frames (D469) and the firmware lane's fibre case, which step through the changed switch at every instruction; and negative/stack-builtins-argument-contract, whose switch with a third argument is refused.

D474 — A selected handler must fit a prepared stack's margin

The tour said at [1670] that a program may select its own handler, and nothing about the stack it runs on. D471 enters the selected handler on the stack whose check failed, and D472 sized each target's margin for the corpus's handlers and said that one which does not fit runs below its stack's base, where it overwrites whatever the backing's owner keeps there.

Chosen: a program whose whole program holds a compiler.stack_prepare and whose entry module selects a panic_handler (D232) is refused with L0508 when the handler does not fit the target's margin. What it needs is D472's worst before the handler, 152 bytes on x86-64, 144 on arm64 and RV64, 188 on Cortex-M0 and 416 on Xtensa, which the report gives as handler_entry_bytes, and the depth report's trap figure, which counts the handler's frame twice for a check failing in its own calls (D467); the margin is 640, 640, 768, 384 and 1024 bytes. The refusal gives both, the margin and the target, and the handler's deepest path, at the handler. A handler whose calls reach an opening of D468, any, evidence, function value, foreign, recursion, helper or assembly, has no depth to compare and is refused too, though since D570 a call through any, a table or a function value opens it only when the program holds no routine it can reach, naming the first opening's kind and routine and pointing at it, with how many more there are. The depth is the emitted code's, on the target and profile being compiled, so the rule is decided after emission and before anything is written, for --emit=asm and --emit=exe alike, a dry run included; --emit=ir has no frames and does not raise it, refine check and the server decide it from the frames the backend would emit (D572), and a handler that fits at one profile may not at another. A program that prepares no stack is not refused, however large its handler: no fibre can exist there, and its handler runs on the stack the program started on. A program that selects no handler is never refused: D361's report takes 8 to 24 bytes and Cortex-M0's trap instruction none beyond D461's exception frame, which the figure before the handler holds, so the default fits every margin with at least 464 bytes to spare on the hosted targets and 196 on Cortex-M0. Off Linux the default report calls the C library's write, whose stack the compiler does not know, on a stack of its own (D491), so the margin pays only its frame. The handlers of runtime/stack-exhausted-reaches-the-handler and runtime/stack-frame-past-limit-traps, which match the kind and switch away, need at most 536 bytes on x86-64, 528 on arm64, 688 on RV64 and 348 on Cortex-M0, at none.

The alternatives: a warning, which leaves the overwrite in a program that compiled; measuring the handler in refine check, which has no frames and would have to guess the backend's; a margin computed for each program from its handler, which D472 declined; refusing an open handler's program only where the opening is reached on the trap's path, which is every path the handler takes; and the rule in every program, which refuses handlers that never run on a prepared stack. All were declined.

Pinned by the stack report suite's a handler that fits is emitted, a handler that switches away and the default report on every target with a native backend, each within its margin; a handler past the margin is refused, a handler with a 512-byte frame refused on every one of those targets with its own figures; an open handler is refused, a handler that reaches a recursion, named where the call is, and the same handler through an any value emitted on x86-64 and arm64, where it fits; and without a prepared stack any handler is emitted, both handlers accepted with no compiler.stack_prepare; negative/stack-handler-exceeds-margin and negative/stack-handler-opens-its-graph, whose handler calls a C routine, on Linux x86-64; and the two runtime fixtures above, which run on every target and fit.

D475 — The switch routines' names stand alone, and the switch keeps a frame record

The tour said nothing. D469 named the switch and start routines with local function symbols on the reasoning that an ELF .L label is in no symbol table. On FreeBSD it was in every one: Clang's integrated assembler treats a name beginning .L as its own temporary and drops a definition or refuses a reference so spelled, so FreeBSD arm64 assembles with -Wa,-L to keep the explicit link names of abi/r440-native-link-namespace, and the FreeBSD lanes' driver passed it on x86-64 too. That keeps every private label the compiler writes, and LLD kept them in the image. The debug range of the last body ends where the switch routine begins, so FreeBSD's LLDB named every frame inside the switch .Ldebug_end_11_0 + N on both architectures, and the debugger lanes refused the session. The same names made the routines visible to the Darwin lane's assembly contract, which holds every routine to opening with the frame record stp x29, x30, [sp, #-16]! and mov x29, sp: the arm64 switch routine opened by pushing its whole 176-byte frame, and the start routine has no record at all.

Chosen: every FreeBSD link passes -Wl,--discard-locals, which drops the local symbols whose names begin .L from the image and keeps the global ones, so an explicit .L link name still resolves and a debugger finds only the routines' own names at their addresses. The objects keep their labels, as -L asks; the image is what a debugger reads. Linux assembles with GNU as without -L and its output is unchanged; on Mach-O no L label reaches an object and the link drops every linker-private l name.

The arm64 switch routine opens with the frame record, then lowers sp by 160 and stores x19-x28 and d8-d15 from the frame's bottom, the stack's limit at 144 and a pad word; the frame stays 176 bytes, and a prepared first frame lays the same bytes, its record x29 zero and x30 past the start routine's nop. Its unwind rule is x29 plus 16 from the record's opening, and the switch points x29 at the resumed stack's record before loading that stack's sp, so the debugger's frames become the resumed context's at that instruction, whether it reads the unwind information or the frame record; the rule returns to sp once the saved registers are released. The start routine alone is exempt from the contract, by its name: its return address is undefined so that a walk ends there (D447), which a record would contradict.

The alternatives: dropping -Wa,-L, which loses the explicit .L names Clang's assembler cannot otherwise express; refusing such names on FreeBSD, which makes a link name's legality depend on the target's assembler; placing the routines where no debug range ends, which leaves hundreds of labels in the image for the next routine to meet; and DWARF subprograms for the two routines, which D469 declined; for the frame record, an sp-based unwind rule kept beside it, which a debugger that follows the record instead would turn one instruction late, and exempting the switch routine from the contract too. All were declined.

Pinned by the toolchain suite's FreeBSD link arguments, compiler/tests/debugging/switch_frames.py's shadowing_symbols, which the FreeBSD lanes, the Linux GDB session and the Darwin LLDB session apply to every switch image before a debugger starts, and the unit tests beside it, which carry the shadowed table this was found in; for the record, compiler/tests/darwin/check.py's assembly_contract over every Darwin runtime fixture, scripts/tests/test_darwin_assembly.py's test_only_the_start_routine_opens_no_frame, and the switch sessions on arm64, whose turn switch_frames.py now expects at add x29, x10, #160.

D491 — Off Linux the default report writes on a stack of its own

The tour said nothing. D361's report reaches standard error on Darwin and FreeBSD through the C library's write, and D472 sized every margin as though the report took 8 to 24 bytes. What write takes was never counted, and on FreeBSD it is not small: the image binds write lazily, so the first report enters the run-time linker's _rtld_bind_start, which saves the argument registers, and on x86-64 the vector state, and looks the symbol up. In the FreeBSD guests that took 1,664 bytes on arm64 and 1,152 on x86-64 (an EPYC 7302 under KVM), against the 496 and 488 the margin leaves. A task that recursed past its stack therefore reported far below its stack's base. With the backing a local that landed in the frames of the stack the program started on, unseen; with the backing in module storage it landed in the .got.plt and data the link lays just below .bss, and runtime/events-stack-past-limit-traps, so written, ended in SIGSEGV inside the run-time linker's symbol lookup on FreeBSD arm64, its stack pointer 848 bytes below the backing, where LD_BIND_NOW=1 made the same image trap as it should.

Chosen: off Linux, in a program that prepares a stack, the report routine pushes its frame record on the stack it was called on, as before, and then moves the stack pointer to the top of a 16 KiB stack of its own in zeroed storage, aligned for C, before it calls write. The report never returns, so nothing moves the pointer back. The frame address still names the record on the failed stack, so a debugger that stops on the terminal instruction unwinds to the failed check as before. The stack that failed pays only the report's frame, which D472's figures already count, so the margin and D474's verdicts are unchanged, and the stack report's trap in such a program is closed while foreign_write still says that the C library is called. A program that prepares no stack keeps the report on the stack it is called on, which is the one the program started on, and its trap stays open, as D468 has it. Linux's report is a system call, which needs no stack, and is unchanged, as are Cortex-M0's bare instruction and every program that prepares no stack. The storage is one per program, which a thread claims before it uses it (D498). 16 KiB is ten times what either FreeBSD guest measured and holds the largest vector state x86-64 saves.

The alternatives: linking FreeBSD images with -z now, which binds the image's own write at load but not the C library's internal calls, such as the __error a failed write reaches, which bind lazily on the same stack; a direct system call on FreeBSD, which the OS boundary keeps in the C library; a margin large enough for the run-time linker, which charges every prepared stack kilobytes for a cost that depends on the processor's vector state and on the loader's code; and switching back to the stack the program started on, whose pointer no context keeps once a fibre runs. All were declined.

Pinned by runtime/events-stack-past-limit-traps, its backing in module storage, trapping stack_exhausted at every profile on FreeBSD x86-64 and arm64 and on Darwin; the stack report suite's the default report writes on its own stack, which holds Darwin and both FreeBSD targets to moving before the call, and closing the trap's depth, in a program that prepares a stack, and Linux, RV64 and Cortex-M0, and every program that prepares none, to emitting no such stack.

D497 — A thread's limit cell is its own, in its system's thread storage

The tour said nothing. D471 keeps the running stack's limit in one cell because a program is one execution context, "a thread, when one is admitted, needs a cell of its own", and D472's switch saves and loads that cell.

Chosen: the cell is per thread. On Linux and FreeBSD it is ELF thread-local storage the image addresses in the local-exec model, so on x86-64 the check compares the stack pointer with an %fs-relative word. A static Linux program sets up its own thread pointer and block: its entry for the first thread, and the thread facility for each thread it starts, through clone's CLONE_SETTLS. Under --link=libc and on FreeBSD the C library sets up the storage of every thread. Darwin has no ELF thread-local storage: there the cell is the slot of a pthread key the program creates before it runs Landin code, which the check reads inline through tpidrro_el0, and the program's start compares that read with pthread_getspecific and ends with a report if they disagree. A thread whose cell holds zero never traps, as D471's first stack never does: the thread a program starts on, and a C thread calling into Landin. D472's frames are unchanged; a switch saves and loads the running thread's cell. A program that prepares no stack and starts no thread still has no cell and no check.

The alternatives: Darwin's thread-local variables for the cell, which call the loader's accessor in every checked prologue; a register reserved for the cell, which the execution model refuses; and one cell per program with threads refused beside a prepared stack. All were declined.

Pinned by every runtime fixture that prepares a stack, whose checks read the cell of the thread they run on, runtime/stack-switch-round-trip, runtime/fibre-stack-past-limit-traps and runtime/stack-frame-past-limit-traps among them, on every hosted target; and abi/report-latch-one-line, two C threads that begin with zero cells and trap on stacks of their own, each against its own limit (D504, D506).

D498 — One report stack serves every thread, claimed before it is used

The tour said nothing. D491 moves the default report off Linux to a 16 KiB stack of its own in a program that prepares a stack, one per program, "a thread, when one is admitted, needs its own"; D361's report touched no latch.

Chosen: the stack stays one per program. Before the report moves to it, it claims a latch of its own with an atomic exchange; a thread that finds the latch claimed writes nothing and waits, without returning, for the report that claimed it to end the process. The report's frame on the failed stack, and therefore D472's margins and D474's verdicts, are unchanged. Linux's report, a system call that needs no stack, takes no latch: each trapping thread's line is one write. D232's panic latch is the selected handler's and is unchanged.

The alternatives: a report stack for each thread, cut from its backing, which costs every thread 16 KiB for a report that ends the process. It was declined.

Pinned by abi/report-latch-one-line, which writes one line where two threads fail at once on Darwin and FreeBSD (D507).

D499 — An atomic is fenced as its ordering asks

The tour said nothing. D227 states each operation's ordering, and every backend emitted a full fence before and after every atomic whatever it was, so a relaxed load cost about 50 ns more on x86-64 than a plain word and the vDSO cache stayed a plain word (D317).

Chosen: each backend lowers an atomic by its ordering, by the mapping of its architecture's memory model: on x86-64 a load and a relaxed or release store are a plain move, a seq_cst store an exchange, a read-modify-write a locked instruction with no fence, and only a seq_cst fence an mfence; on arm64 acquire and release accesses are ldar and stlr or their exclusive and LSE forms, and fences dmb ishld or dmb ish; on RV64 the mapping the RISC-V memory model gives, with .aq and .rl on its atomic instructions; and on Cortex-M0 a dmb only where an acquire or a release needs one, or at armv8-m.main the lda and stl that acquire and release (D606). Every atomic stays a full compiler memory boundary, and the alignment check is unchanged.

The alternatives: fixing x86-64 alone and leaving arm64 and RV64 fully fenced until the optimization phase. It was declined.

Pinned by the backend case atomics are fenced as their orderings ask, which holds every operation at every ordering to its instructions on each backend, runtime/atomic-orderings-between-processes, which passes messages between a process and its copy through release and acquire, and runtime/atomic-store-buffering-between-processes, which runs store buffering between them through seq_cst; D522 gives each architecture's mapping.

D522 — Each backend's ordering mapping is its architecture's published one

The tour said nothing, and D499 named each architecture's memory model without choosing among the mappings each admits.

Chosen: the mappings of the C/C++11 orderings the architectures' authors publish: x86-TSO's and ARMv8's from Sewell's collection (<https://www.cl.cam.ac.uk/~pes20/cpp/cpp0xmappings.html>), ARMv7's from the same collection for Cortex-M0 at the levels with no acquire or release instruction and ARMv8's at armv8-m.main (D606), and Table A.6 of the RISC-V unprivileged ISA's memory model appendix for RV64.

  • x86-64. Every load is a mov; a relaxed or release store is a mov and a seq_cst store xchg; exchange, add and compare-exchange are xchg, lock xadd and lock cmpxchg at every ordering; an acquire, release or acq_rel fence emits nothing and a seq_cst fence mfence.
  • arm64. A relaxed load or store is ldr or str, an acquire or seq_cst load ldar, a release or seq_cst store stlr. A read-modify-write's exclusive loop reads with ldaxr when its ordering acquires and ldxr otherwise, and writes with stlxr when it releases and stxr otherwise; at armv8.1-a it is swp, ldadd or cas with no suffix, a, l or al. An acquire fence is dmb ishld, every other dmb ish. Darwin and FreeBSD share it.
  • RV64. A relaxed load or store is plain; an acquire load is followed by fence r, rw and a seq_cst one also preceded by fence rw, rw; a release or seq_cst store is preceded by fence rw, w. An AMO carries .aq, .rl or .aqrl, seq_cst taking .aqrl; an LR/SC loop, compare-exchange and the one- and two-byte masked loops, puts .aq on the LR for an acquire, .aqrl for seq_cst, and .rl on the SC for a release. The four fences are fence r, rw, fence rw, w, fence.tso and fence rw, rw.
  • Cortex-M0. A relaxed access is plain; an acquire or seq_cst load is followed by dmb sy, a release store preceded by one and a seq_cst store has one on each side; every thread fence is dmb sy, the only option ARMv6-M's DMB has. At armv8-m.main an acquire or seq_cst load is lda and a release or seq_cst store stl, each in the access's width, with no dmb; the fences are unchanged (D606).

A compare-exchange is lowered by its success ordering, never weaker than its failure ordering (D227), so the acquiring read a failed comparison may ask for is already there. The device, completion and compiler barriers, the alignment checks and the panic latch's sequences are unchanged; every atomic remains a full compiler memory boundary, which the IR and the allocators already kept without the instructions.

The alternatives: on x86-64, a seq_cst store as mov followed by mfence, the collection's other choice; on arm64, a read-modify-write followed by dmb ish, the full barrier of GCC's older __sync builtins, which C11's seq_cst does not ask for; and on RV64, fence rw, rw for an acq_rel fence, which is what a core without FENCE.TSO executes fence.tso as. Each was declined for the published mapping. A relaxed load on x86-64 measured 0.9 ns a read against 49.5 before, and 0.6 for a plain word, in a loop of 10^8 reads at --optimize speed on an AMD EPYC 7302.

Pinned by backend/atomics are fenced as their orderings ask, backend/a level selects its instructions, runtime/atomic-orderings-between-processes, and runtime/atomic-store-buffering-between-processes, whose rounds read both old values in about one round in twenty when their seq_cst stores and loads are made relaxed on that host, as a seq_cst store lowered as a plain mov would. QEMU on an x86-64 host does not keep an arm64 stlr before a later ldar, as the register records, so the store-buffering fixture does not target FreeBSD arm64, whose only lane is QEMU's system emulation, and compiler/tests/cross-lanes.json lists it under QEMU's user emulation; RV64's mapping fences a seq_cst load fully, which QEMU keeps.

D504 — A static Linux program lays its first thread's storage before anything is checked

The tour said nothing. D497 has a static Linux program set up its own thread pointer and block for the first thread, and every routine of a program that prepares a stack reads the running thread's cell through the thread pointer, which the kernel starts at zero.

Chosen: platform/linux's naked _landin_start calls _landin_start_thread with the initial stack before anything else. That routine walks the auxiliary vector to the program headers, keeps what the TLS segment says (its image, the bytes of it that are initialized, its size rounded up to its alignment, and where in a block the image and the thread pointer go on this architecture), maps a block for the first thread with _landin_start_map, and returns its thread pointer; an executable with no TLS segment gets its control words in 48 bytes of module storage and maps nothing. The entry makes the pointer the thread's: arch_prctl(ARCH_SET_FS) on x86-64, msr tpidr_el0 on arm64 and mv tp on RV64, the last of which only a naked routine may write. _landin_start_main then lays the block, zeroing it, copying the initialized image and, on x86-64, storing the pointer in the word it names, before it holds the processor to its level and calls main. A routine whose symbol begins _landin_start runs before the pointer exists and is not checked against a stack's limit, which on Linux are exactly these; _landin_start_thread therefore calls nothing but the map routine, whose system call it makes itself. For the threads the program starts, the module gives thread_block_bytes, the bytes a block and room to align it take, and thread_block_lay(block), which lays a block in the caller's memory and returns the value clone takes with CLONE_SETTLS. Under --link=libc none of this runs: the C library lays every thread's storage and thread_block_bytes is zero.

The alternatives: the whole setup in each architecture's naked entry, three copies of the header walk and the layout in assembly; a first block the compiler emits sized from its own thread storage, which a C object's would overrun and which changes every static program's entry; a source attribute exempting a routine from the check, a language form for one library's start; and a provisional thread pointer at a zeroed block of a fixed size, which a segment larger than that block reads past. All were declined.

Pinned by runtime/thread-storage-holds-its-instance on Linux x86-64, arm64 and RV64, statically linked; every runtime fixture that prepares a stack on those targets, runtime/stack-switch-round-trip and runtime/fibre-stack-past-limit-traps among them, whose prologues read the cell from the first thread's block; and runtime/thread-storage-under-libc, the same instances laid by glibc.

D506 — Darwin's cell is a key the image's initializer makes and checks

The tour said nothing. D497 puts Darwin's cell in a pthread key's slot the program creates before Landin code runs, read inline through tpidrro_el0, and has the start compare that read with pthread_getspecific.

Chosen: a program that uses the stack builtins on Darwin carries a compiler-owned routine, landin.thread_start, in its image's initializers (__mod_init_func), which the loader runs before main. It makes the key with pthread_key_create, keeps eight times the key, the slot's offset from the slots' base, in a word of module storage, stores a probe, its own frame address, with pthread_setspecific, requires the inline read and pthread_getspecific both to give the probe, and stores zero again. A read is mrs of tpidrro_el0, its low three bits cleared, as the system's own accessor clears them, plus the offset word: a check is eight instructions, against six on Linux and FreeBSD arm64. A key that cannot be made, or a read that disagrees, ends the process with status 127 and one line on standard error, as a processor below the executable's level does on Linux. A thread a C library starts begins with its slot zero, and so with no limit.

The alternatives: making the key in the entry's prologue, which is itself checked; a key number fixed in advance, which the system does not promise is free; and trusting the low bits of tpidrro_el0 to be zero, which the system's own code does not. All were declined.

Pinned by every Darwin runtime fixture that prepares a stack, runtime/stack-switch-round-trip, runtime/stack-frame-past-limit-traps and runtime/fibre-stack-past-limit-traps among them, in which the check reads the slot the initializer made; and abi/report-latch-one-line, whose C threads start with their slots zero.

D507 — The report's latch is one exchanged word, and the loser spins

The tour said nothing. D498 has the default report off Linux claim a latch with an atomic exchange before it moves to the report stack, and a thread that finds it claimed wait without writing or returning.

Chosen: the latch is one zeroed 32-bit word beside the report stack, in exactly the programs that have that stack: those that prepare a stack, on Darwin and FreeBSD. The report exchanges one into it, with xchg on x86-64 and an acquire-release exclusive pair on arm64, whose baseline has no LSE, and moves to the report stack when it read zero. A thread that read one spins on pause or wfe, writing nothing, until the claimant's trap ends the process. The frame record is pushed on the failed stack first, as D491 has it, so a debugger stopped in either thread unwinds to its failed check.

The alternatives: waiting through the system's wait on an address, which needs a stack the loser does not have; ending the process from the loser with _exit, which can end it before the claimant's line is written; and a latch in every program, which D498 declined. All were declined.

Pinned by abi/report-latch-one-line, two threads past their prepared stacks at once on Darwin and FreeBSD writing exactly one line between them; and the stack report suite's the default report writes on its own stack, which still holds every other target to no such stack.

D508 — A thread's instance is described where the target's assembler can spell it

The tour said nothing. A module datum's DWARF location is its address, and a thread's instance has none of its own.

Chosen: a link(thread) datum's location is its offset in its module's thread block and DW_OP_form_tls_address, which a debugger resolves for the thread it has selected: x@dtpoff on x86-64, .dtpreldword on RV64 and the variable's descriptor on Darwin. arm64 ELF has no directive for the offset in GNU as, and its datum is described with no location, as GCC describes one. GDB resolves the offset through the C library's thread descriptors, so under --link=libc it prints the selected thread's instance and in a static Linux program, which has none, it says it cannot find the thread's storage.

The alternatives: the instance's address in the first thread, which names the wrong storage in every other thread; and no description at all, which hides the binding from every debugger. Both were declined.

Pinned by nothing that runs yet: a scripted session that prints a thread's instance is a register row of its own.

D516 — A naked routine is called through a C import of its symbol

The tour said at [1570] that a naked routine's function value is not called or converted, and D450 declined making naked routines callable, which would give every one an ordinary convention it does not have. A thread clone makes on a static Linux program returns from the system call on its new stack, into no frame a Landin routine could have, so the call has to be in a naked body; and an ordinary assembly block may not leave its routine.

Chosen: a bodyless extern(c) declaration with an explicit link(symbol: ...) may name the symbol a naked routine with a body defines under the same written link name, as a C header declares a routine written in assembly: ordinary code calls the naked text through the import's C signature, and the text owns honouring it. The checker admits the pair beside each other, as it admits C's view of main (D279), and the verified IR's agreement of a symbol's declarations takes the pair as one; any other pairing of a naked definition and a declaration of its symbol is still L0347, a public naked routine's own spelling among them since D770. The naked routine is reached through the import, rather than kept as every machine-convention definition is, so a program that never calls the import carries neither. platform/linux's clone_thread is such an import, and its text has no label: the creator and the new thread run the same instructions after the call and each picks its next step with a conditional move, or on RV64 a mask, since a hosted body then admitted no label.

The alternatives: a compiler builtin that starts a thread, which puts one system's call in the compiler; storing the naked function value and reading its bits as an address to make a C function value, which works only by evading the rule that nothing converts a function value to an address; and labels in a naked body, which the branch-free text does not need. All were declined; D598 later admitted labels in every naked body, which the trampoline still does without.

Pinned by every static Linux fixture of hosted/thread, among them runtime/thread-creation-and-join-order-writes, on x86-64, arm64 and RV64.

D670 — RV32 assembly reads RV64's text rules at XLEN 32

The tour said nothing of RV32 assembly, and [1990] stated its text rules for the hosted targets and Cortex-M0. D660 gave an ordinary RV32 block RV64's integer registers at XLEN 32 and no float register, but left the text rules to Cortex-M0's allowlist or the hosted check, and the hosted check's precondition named only x86-64, arm64 and RV64, so any RV32 block was an internal defect.

Chosen: RV32 text is checked as RV64's is: at most 4096 ASCII bytes in LF lines, # comments, no directive, separator or digit separator, and in an ordinary block no label and no control transfer by mnemonic; which instructions exist is the pinned assembler's to say under the level's -march. Two mnemonics take firmware's standing rather than Linux's: wfi, which resumes at the next instruction once an interrupt is taken, is admitted in an ordinary block, as Cortex-M's is; and ecall, which on firmware is an exception that takes no slot and enters the unhandled loop, never to return, is refused there, where D281 admits it on RV64. A naked body owns its control flow on RV32 as everywhere. [1990]'s table has an RV32 column: RV64's integer rows and no float register.

The alternatives: Cortex-M0's bounded allowlist, which RV32 has no need of because GNU as enforces the level's instruction set as it does for Thumb-2; and RV64's rule unchanged, which refuses the idle loop's wfi and admits an ecall that cannot return.

Pinned by driver/rv32 checks assembly text, which admits a naked jump and an ordinary wfi and general operand and refuses an ordinary j, an ordinary ecall and a float operand as diagnostics, and backend/rv32 verifier refuses invalid registers.

D1320 — An ordinary RISC-V block's text names x0 to read and to write

The tour said nothing of x0. [1990]'s table listed x0–x4 and x8 as never named on RV64 and RV32, so sw zero, 4(t0) and csrrw zero, cycle, zero were L0330, and the refusal's note sent a zero source through a scratch register loaded with li t1, 0 and a CSR write through the csrw pseudo-instruction, which assembles to the same csrrw x0.

Chosen: an ordinary block's text on RV64 and RV32 may name x0 or zero as a source and as a destination. x0 reads as zero and discards writes, so naming it overwrites nothing the routine keeps and cannot break the register-allocation contract an ordinary block's other rules protect: the compiler neither saves it nor chooses it for general. An operand still never names it, to read or to write: an in operand at x0 would lose its value and an out would always read zero, so in v: u32 at x0 stays L0330, whose note now says why and that the text names zero itself. The scratch-register and csrw notes are gone. A naked body named x0 before and still does.

The alternatives: x0 admitted as a source only, which keeps refusing csrrw zero, ... and an add zero, ... that discards a result, though no write to x0 changes anything; an operand at x0 admitted too, which would let a declared input or output silently mean nothing; and the refusal kept with its notes.

Pinned by rv32 firmware/an ordinary block names x0 both ways, which emits both forms for rv32 and refuses an operand at x0, and runtime/assembly-zero-register, which stores and adds through zero on RV64 under QEMU and on the RV32 lanes.

D671 — RV32 is RV64's emitter at XLEN 32, with eight-byte values in pairs

The tour said nothing of a 32-bit RISC-V emitter. D265 promised that RV64's instruction selection would take XLEN from the target and serve RV32 without inheriting RV64's data model, and the emitter it described had 64 and sd written into it.

Chosen: one emitter, Landin.Backend.RiscV, asks the target its XLEN and selects at it: an immediate, a memory access, an extraction, the overflow test's sign bit and every word of a frame, a switch frame, an evidence table and a slice image are XLEN wide, and RV32 has no float register, no .option pic, no thread pointer and no default report, which are Linux's. Every value keeps its home in the frame, as on RV64, so an eight-byte value is a register pair only while one operation reads or writes it: the low word in the register named and the high word in a fixed partner, x27 beside the x5 every value passes through and the next argument register beside an argument's, so the moves, loads, stores, unaligned byte accesses, choices and fills that never look inside a value move both words by the same code. x27 is therefore saved by every RV32 routine, as RV64 saves its fixed scratch registers. The operations that look inside an eight-byte integer are selected for the pair x10:x11 and x12:x13: addition and subtraction with the carry or borrow recovered by sltu, the checked forms testing the high word's carry or sign as RV64 tests its one word; bitwise operations word by word; comparison of the high words, signed or not, then of the low words unsigned; shifts split at 32 with the crossing bits moved by a shift of one and then of 31 less the amount, so a shift by zero moves none, and an amount past the width giving zero as RV64's does; and negation, extension, narrowing and range checks in words. A product is the low 64 bits of M's mul and mulhu partial products, one sequence for both signednesses; a checked product first proves that the magnitudes' whole product has no word above 64 bits and fits the result's sign, inline. A packed member of an eight-byte carrier is shifted and masked as a pair. A quotient and a remainder are libgcc's __divdi3, __udivdi3, __moddi3 and __umoddi3, after the language's zero-divisor and minimum-over-minus-one guards, which are the language's and not the helper's.

The alternatives: a second RV32 emitter, which D265 declined and which would hold every lowering twice; lowering eight-byte operations to word pairs in the IR, which would make the verified IR depend on a target's width; and libgcc's __muldi3 for every product, which M makes needless.

Pinned by backend/rv32 lowering is RV64's at XLEN 32, which holds the pairs, mulhu, __udivdi3 and __umoddi3, the frame record and the absence of every RV64-only form, and the corpus on the RV32 lanes.

D672 — RV32's floats are libgcc's soft float, called as the psABI's ilp32 passes them

The tour said that f32 and f64 are IEEE binary32 and binary64 with round-to-nearest-even, and nothing of a core without F or D, which every RV32 level is (D660).

Chosen: an f32 or f64 operation on RV32 is a call of libgcc's helper, whose operands and result travel in a0-a3 as the soft-float ilp32 passes them, an f64 as a word pair: __addsf3 to __divdf3 for arithmetic, __eqsf2 to __gedf2 for comparison, whose answer's sign is the relation and which an unordered pair fails, so a NaN compares as on RV64, __extendsfdf2 and __truncdfsf2 between the widths, and __floatsisf to __floatundidf from integers. Negation is the sign bit's flip, as on RV64. A conversion to an integer is decoded and truncated toward zero in integer words, as on Cortex-M0, so a NaN, an infinity and every value out of the type's range trap as RV64's invalid flag does and no helper's out-of-range answer is reached; an f64 that rounds to an infinity as an f32 traps as RV64's overflow flag does, and a float converted to bool admits the two zeros and positive one. A body that may call a helper has its frame checked against the stack's limit as a calling one's is (D471), and the build report counts the helpers each routine calls, which opens the depth report's graph as Cortex-M0's helpers do. The helpers' names are reserved on RV32 as __aeabi_ is on Cortex-M0: no link symbol or datum takes one, and the emitter gives none to an item.

The alternatives: the F and D extensions, which no RV32 level holds; inline soft float, which would duplicate libgcc in every program; and libgcc's __fixdfdi family for conversions to integers, whose answer for an out-of-range or NaN operand is not the language's trap.

Pinned by backend/rv32 lowering is RV64's at XLEN 32, whose program calls __muldf3, __adddf3, __ltdf2 and the width conversions and no __fix helper, driver/rv32 checks assembly text, which refuses a link(symbol: "__adddf3"), and the corpus on the RV32 lanes.

D673 — RV32's language convention carries an eight-byte argument in two registers

The tour said nothing; RV64's language convention carries each argument in the next of a0-a7 and the rest in eight-byte stack words, and an RV32 register holds four bytes.

Chosen: on RV32 each argument takes the next of a0-a7, an eight-byte one the next two with its low word first; the first that does not fit, and every one after it, takes an eight-byte word of the area at the callee's CFA, low word first. A result is a0, or a0:a1, and the failure carrier stays x31. At XLEN 64 the rule is RV64's, unchanged.

The alternatives: the psABI's ilp32 with its even-register alignment and an argument split between a7 and the stack, which is C's and which the language's private convention need not reproduce; and one stack word per eight-byte argument, which spills every wide argument.

Pinned by backend/rv32 lowering is RV64's at XLEN 32, whose eight-byte arguments travel in pairs, and the corpus's stack-arguments-cross-calls on the RV32 lanes.

D674 — Without A the panic latch is claimed as Cortex-M0 claims it

The tour said at [1995] that a handler runs once and a second failure traps hard; RV64 claims the latch with lr.w.aq and sc.w.rl, which rv32imc does not have.

Chosen: at a level with A, RV32 claims the latch with RV64's reservation loop; at rv32imc with a load, a test and a store, as Cortex-M0 does on its one core. An interrupt that fails between the load and the store may enter the handler a second time, as on Cortex-M0.

The alternatives: masking interrupts around the claim, which a handler that runs with interrupts masked does not need and which would make the latch depend on mstatus; and refusing a handler at rv32imc.

Pinned by runtime/stack-exhausted-reaches-the-handler on the RV32 lanes, whose rv32imc lane claims the latch by load and store and whose rv32imac lane by LR/SC.

D675 — RV32's fibres switch in RV64's frame at XLEN 32

The tour said at [1995] how a prepared stack is switched to; RV64's switch saves the return address, x8, x9, x18-x27 and the LP64D float registers with the stack's limit in one 208-byte frame.

Chosen: RV32's switch saves the return address, x8, x9 and x18-x27 in four-byte words above the limit's word, 64 bytes for the stack's sixteen, and no float register, which no RV32 level has; the limit's cell is one word in module storage, since firmware has no thread pointer (D497). Capabilities.Stack_Switching holds for RV32. A prepared stack's first frame is the same frame. An interrupt handler is not checked against the limit: the compiler's trap entry that calls it keeps zero in the cell while it runs. RV32's margin, unchecked area and handler entry are RV64's figures: every word of an RV32 frame is half RV64's and an eight-byte home the same, which leaves room within RV64's 768-byte margin for the libgcc leaf helper a checked frame calls below it.

The alternatives: figures measured from RV32's own corpus, which waits for its lanes and would only lower a bound that already holds; and a switch frame that keeps RV64's eight-byte slots, which wastes half of it.

Pinned by targets/backends are stated per target, backend/rv32 lowering is RV64's at XLEN 32, whose switch saves s0-s11 and ra in 64 bytes, and runtime/stack-switch-frames and runtime/stack-switch-round-trip on the RV32 lanes.

D676 — RV32 places firmware's items as Cortex-M0 places them

The tour said at [1640] what link(section: ...), keep and an alignment ask of an item, D547 what link(region: ...) does, and [1990] how Cortex-M0's image honours them; RV64 has no firmware and gave every item its own input section whatever it asked.

Chosen: at XLEN 32 an item's input section is the one its placement names, as on Cortex-M0: a region's, .landin_region.REGION.KIND.landin_N, whose kind says whether the region runs or reads it in place, copies it from its load image or clears it; an explicit section, retained with R when the item or any item naming the same section keeps it; or its own, with the placement's alignment after the directive. An immutable datum is read-only data. A description's stage before reset (D653) is .text.landin_firmware_reset_stage under the reset word's symbol, which the compiler's entry word enters. An item that asks for nothing keeps RV64's section.

The alternatives: RV64's sections everywhere, which would leave a region placement where the derived script does not look; and placement in the compiler's firmware text, which belongs to the routine that is placed.

Pinned by the RV32 lanes' firmware programs and the ESP descriptions' stages before reset.

D677 — RV32's C transport is the planner's ilp32 at XLEN 32

The tour said at [1975] that a C signature follows the platform's C ABI, and D660 named RV32's as the psABI's soft-float ilp32, with C signatures disabled on RV32 as on Cortex-M.

Chosen: Landin.Backend.RiscV_ABI plans ilp32 as the integer calling convention LP64D already holds, at the target's XLEN: four-byte carriers in a0-a7, then four-byte words of the outgoing area, an argument aligned there to its own alignment up to sixteen; a scalar or record of up to eight bytes in one or two registers, low word first, split between a7 and the area when one register is left; a larger record by address, and a larger result through a hidden pointer in a0; a variadic eight-byte value in an even pair; and no float bank, so an f32 is a word and an f64 two. The planner is held to GCC by direct checks, as D616 held the M7's: each row is where riscv64-elf-gcc 16.1 at -march=rv32imc -mabi=ilp32 reads or writes the same C signature's arguments and results. Executable C interoperation stays disabled on RV32, though D920 enabled Cortex-M's.

The alternatives: a planner of its own for ilp32, which would hold the shared rules twice; and leaving RV32 unplanned until C signatures are enabled, which would leave the ABI the description names unmeasured.

Pinned by backend plans/RISC-V ilp32 carriers.

D678 — RV32 keeps its firmware text near the size of Thumb's

The tour said nothing. RV64's selection saved every fixed scratch register at every routine through a computed address and reached every label through a full PC-relative jump, so RV32 images were about 1.8 times Cortex-M0's and a corpus that fits 32 KiB in Thumb did not.

Chosen: at XLEN 32 a routine saves and restores its callee-saved registers at the frame's stack pointer, where each is one compressible instruction, and only those its text names, by number or, in an assembly block, by ABI alias; their homes stay in the frame (D1688 lays the frame out without them). Where every region of the profile is at most 1 MiB, a jump is j and a branch is written as itself, which GNU as lengthens with a JAL past 4 KiB, since a routine is one input section within one region. A word loaded from the home the line before stored it from is not loaded again. A dead value's home is reused at every objective, as Cortex-M0 reuses it, where RV64 gives each value its own home at --optimize=none, since firmware's stack is a few KiB.

Over a representative 24 fixtures, the runtime corpus's largest among them, RV32's .text went from 1.66 times Cortex-M0's at armv6-m to 1.04 at --optimize=none and from 1.69 to 1.02 at the default, and its average frame from about twice Cortex-M0's to 1.1 to 1.35 times it.

The alternatives: RV64's forms, which are correct and twice the size; a branch-shortening pass over each routine, which the assembler already performs; and sp-relative homes for every value, which would need the stack depth at every instruction and is left to a later item.

Pinned by backend/rv32 lowering is RV64's at XLEN 32, whose jumps inside a profile's 1 MiB regions are JAL's own and whose saves are sp-relative, and by the RV32 lanes' corpus fitting the reference's 32 KiB.

D1405 — RV64 jumps near within a routine whose text is provably within JAL's reach

The tour said nothing. D678 gave RV32's firmware near jumps from its profile's bounded regions; RV64's text has no such bound, so every jump in a routine was lla x26 and jr x26 and every branch its inverse around them, 21.8% of RV64's instructions at speed in the measurement of generated code (compiler/tests/measure/findings.md).

Chosen: a routine's jumps never leave it, and each routine is a section of its own, so at XLEN 64 a routine's jump is j and its branch is written as itself, which GNU as lengthens past 4 KiB with a JAL around it, when the routine holds no assembly block and its lines assemble to less than 1 MiB, each counted at the most it can assemble to: a li at 32 bytes, its whole 64-bit expansion, any other instruction at 8, an alignment at its padding, labels and debugging directives at nothing, and any other directive as unbounded. Otherwise the routine keeps the far form. A near routine neither saves, restores nor describes x26, whose home stays in the frame, so frames and stack reports are unchanged. RV32 and Xtensa emit the same bytes as before. Over the seven hosted workloads RV64's .text falls 19.9% at speed and 19.4% at size, and under QEMU mandelbrot 2000 executes 14.32 G instructions where it executed 15.83 G, fannkuch-redux 10 11.31 G where it executed 12.70 G.

The alternatives: the fixed far form, the measured cost; emitting each routine twice, near and then far when the near form fails; and a limit the tests could lower, which would ship a knob only a test turns. A jump past 1 MiB the bound missed fails the link with relocation truncated to fit, so an error in the bound cannot pass silently.

Pinned by backend/RV64 jumps are near within a routine.

D679 — No RISC-V epilogue reads below the stack pointer

The tour said nothing; [1990] says an exception stacks its frame on the interrupted stack, and RISC-V Linux has no red zone below sp for a signal either. RV64's epilogue loaded the return address, moved sp to the frame pointer and then loaded the caller's x8 from 16 bytes below the new sp, so an interrupt between the move and the load, which stacks its own frame there, replaced x8 with one of the interrupted registers: on a Hazard3 board the caller's epilogue then returned into the boot ROM.

Chosen: at both XLENs the epilogue loads the return address, raises sp only to the frame record, loads x8 from it at sp and then releases the record, with the CFA moved to sp before x8 changes. Nothing is read below sp at any instruction. The other backends' epilogues and every other sequence that raises sp already read only at or above it: arm64's mov sp, x29 and post-indexed ldp, x86-64's movq %rbp, %rsp and popq, Cortex-M0's mov sp, r6 with its loads at sp and sp + 4, the RISC-V switch's loads after mv sp, x11, and an assembly block's set-aside word read before its sixteen bytes are released.

The alternatives: restoring x8 before ra and sp from a scratch register, which takes one more register at every exit; and masking interrupts around the epilogue, which a signal on Linux ignores.

Pinned by backend/epilogues read nothing below sp, which walks RV64's and RV32's emitted routines and refuses the old sequence, and the Hazard3 board run.

The tour said at [1590] that linker.library asks the linker for a static archive, and D202 made that exact: Linux and FreeBSD pass -l:libNAME.a, and Darwin resolves libNAME.a through the driver's -print-file-name and passes the file. A same-named shared library was never a substitute.

Chosen: under --link=libc, which Darwin and FreeBSD always use, each active linker.library("NAME") reaches the C driver as -lNAME, in D202's source order with its repeats, after the program's assembly. The driver resolves it as it would for C, a shared library before an archive of the same name in one directory where its linker prefers one. The C runtime's own libraries, m among them, therefore link as the driver links them for C: a dynamically linked Linux executable no longer takes glibc's static libm, whose ifunc members ask the dynamic loader for CPU features no static member provides. The default static Linux link still refuses the directive (D280); firmware refused it too (D229) until D923 made it a static archive there. --dry-run and -v show the -l operands. This amends D202's archive-only resolution on every hosted target, and Darwin's -print-file-name query goes with it.

The alternatives: keeping -l:libNAME.a and naming the C runtime's own libraries as exceptions, which keeps a list that differs by system and still drags an archive into a dynamic link for any other library that ships both; a second directive for shared libraries, which asks a newcomer to know which form their library ships before it links; and resolving archives to files on every target, which is D202's Darwin rule and fails the same way. The maintainer chose -lNAME.

Pinned by runtime/c-library-directories, which calls sqrtf and pow from libm under --link=libc beside two C archives on the hosted lanes; end-to-end/link-library-directories-dry-run, which shows the -l operands; the driver cases libraries keep their written order and library directories reach the link, the latter on Darwin too; and the toolchain case libraries and directories reach the driver.

The tour said nothing of where a library is looked for, and D202 left the search to the driver: an archive in a project's own directory was found only through GCC's LIBRARY_PATH, which no document mentions, and -L was an unknown option.

Chosen: linker.directory("DIR") is a tool directive taking one fixed text literal, decoded by the ordinary text decoder and nonempty. A relative directory is resolved against the directory of the file that declares it, so a project's lib beside its source is found wherever the build runs; an absolute one is used as written. -L DIR, repeatable on compile, run and check, names one relative to the working directory, as a C compiler's does. Both reach the driver as -L with the absolute path, before the program's assembly: the command line's first in their order, so whoever builds can put another copy of a library ahead without editing the source, then the directives in source order, then the driver's own directories. Each named directory is also the executable's runtime search path, -Wl,-rpath,DIR, in the same order on every hosted target, so a program linked against a shared library in a named directory starts where it was built, as refine run runs it; the executable then records that path on the machine that built it. A directive in an inactive arm adds nothing, and repeats of one directory are kept. A directive naming a directory that does not exist is L0391 at the directive, and such an -L is a usage error, both before any tool runs. Wherever linker.library is refused, linker.directory and -L are too: the static Linux link, with D280's L0500 naming --link=libc, and, until D923 admitted all three there with no runtime path, firmware. refine check gives these refusals as compiling does (D443).

The alternatives: an environment variable, which D275 declined for the library root and which the newcomer trial found only by chance; only the option, which puts into every build command what the source already knows; only the directive, which leaves the person building no way to choose another copy; the directives ahead of the command line, which lets a source overrule its builder; and no runtime path, as in C, which leaves a program built against a shared library in a named directory refusing to start with the loader's message. The maintainer chose both forms and the runtime path.

The implementation settles three details. -L takes its directory after a space, after =, or glued as a C compiler takes it, -Lvendor. The directive's text is any nonempty text without a NUL byte, and a report names a relative directory joined to its declaring file's directory as that file was named, the link the same directory made absolute. -Wl splits its argument at commas, so a directory holding one reaches the linker as -Xlinker -rpath -Xlinker DIR instead.

Pinned by runtime/c-library-directories, which links one archive built beside its source through linker.directory and another through -L on every hosted lane; end-to-end/link-library-directories-dry-run for the order; negative/linker-directory-missing and negative/linker-directory-empty; end-to-end/link-library-directory-option-missing, end-to-end/link-library-directory-option-elsewhere, end-to-end/link-static-linker-directory and end-to-end/link-static-library-directory-option for the refusals; and the driver cases library directories reach the link and library directories are refused, and the commands case -L names a library directory.

The tour said nothing, and a missing library was L0501 carrying the linker's own text, "cannot find -l:libraylib.a", which names neither where it looked nor how to add a place.

Chosen: only when the link fails, refine looks for each requested library: in each named directory, in D524's order, for libNAME.so and libNAME.a, or libNAME.tbd, libNAME.dylib and libNAME.a on Darwin, and then through the driver's -print-file-name, which knows the driver's own directories and not the named ones. Apple's driver answers that query from its own directories and not from the SDK it links against, so on Darwin the SDK's usr/lib, which xcrun --sdk macosx --show-sdk-path names and SDKROOT overrides, is searched last; a host whose xcrun cannot answer settles nothing, and the library counts as found. A library found nowhere is L0509, given instead of the linker's text. It names the library at its directive, every named directory with where it was named, and says that the C driver's own directories were searched as well; its note names linker.directory and -L. A failed link whose libraries are all found stays L0501 with the tool's output. A successful link searches nothing, so it runs no more tools than before.

The alternatives: searching before every link, which costs a tool run per library per build to learn what a successful link already shows; reading the linker's message, which differs between GNU ld, lld and Apple's ld and between their versions; and keeping the linker's message alone. All were declined.

Pinned by end-to-end/link-missing-library, whose stand-in driver fails the link and finds nothing, and the driver case a missing library names where it looked, which also holds that a library found in a named directory or by the driver leaves the linker's L0501, and that the driver is asked only after a failed link; and a Darwin library search reaches the SDK, which holds a library the SDK holds to being found and an xcrun that cannot answer to settling nothing.

D526 — refine run compiles to a temporary executable and runs it

The tour said nothing of running a program, and refine run main.ldn answered that run is not a command, steering a newcomer to checking. Bare refine main.ldn exited silently having only checked, so the executable looked for had never been written.

Chosen: refine run [options] SOURCE... [-- ARGUMENT...] takes compile's options except --emit, -o, --keep-asm, --depfile and --dry-run. Its -- ends refine's operands and begins the program's arguments, which the program receives exactly; a source spelt with a leading hyphen is written ./-name.ldn. It runs only the compiler's own host: another --target is a usage error naming refine compile --target. The executable is written into a new directory only its user may enter, under TMPDIR or /tmp, and is named after the entry source without .ldn, so its argv[0] and a trap report name the program. The program runs in the caller's working directory with refine's environment, standard input, output and error, and no time limit; while it runs refine ignores the terminal's interrupt and quit signals, which reach the program, and passes on a termination or hangup sent to refine itself (D730). The directory is removed when the program ends, and on every way out before it: a refusal, a failed link, a program killed. refine exits with the program's status. A program ended by a signal makes refine write one line naming the signal and exit with 128 and its number, as a shell reports it. A program refused before it runs exits with refine's own statuses, which a script cannot tell from the program's.

Bare refine FILE, after a check that found no error, writes one line to standard error: that it checked and wrote nothing, with refine run FILE to run it and refine compile FILE -o NAME to build it, each repeating the options that chose the program (D731). -q silences it, and refine check stays silent, since it is the form tools call.

The alternatives: writing the executable beside the source, which leaves files in a project and fails in a read-only one; a cache of executables, which the compiler keeps no other of; running another target through an emulator, which is a runner's choice and stays the test harness's; re-raising the program's signal in refine, which hides the line saying what ended it; and a status of refine's own for a refused program, which collides with a program's own statuses as surely. The maintainer chose run and the line for the bare form.

The implementation settles two details. The private directory is refine-run- and six random characters, and a source spelt with a leading hyphen names its executable without the ./. A program that cannot be started at all is refine's own status 1, with a line saying why.

Pinned by the commands cases run compiles and runs, run reports a signal, run removes its directory, run refusals and the bare form says it only checked; end-to-end/run-another-target; and the outside-user check's refine run of the first program.

D730 — refine run passes a termination or hangup on to its program

D526 said that refine ignores the terminal's interrupt and quit while the program runs, so they reach the program and refine stays to remove its directory. A termination or hangup sent to refine alone, as kill or a closed session sends it, ended refine at once: its directory stayed under TMPDIR, and the program, which had not been sent the signal, ran on without its parent, once for thirteen hours at a full core.

Chosen: while the program runs, refine catches SIGTERM and SIGHUP and sends each to the program. The program ends by it, as it would have had it been sent the signal itself, and refine then removes the directory, writes the line naming the signal and exits with 128 and its number, as for any program a signal ended. Both are blocked from before the program is started until refine knows its process, so one sent while it starts is passed on once it has. A signal refine was started with ignored, as nohup starts a command, stays ignored, and the program inherits that. Before the program runs and after it has ended, each has its usual action.

The alternatives: removing the directory in refine's own handler and then ending, which leaves the program running; killing the program with SIGKILL, which denies it the chance to end as it chooses; and putting the program in a process group of its own, which a terminal would then not signal. The termination of refine while it compiles, before the program exists, still ends it at once and leaves the directory, for the seconds a compilation takes.

Pinned by the platform case native attached runs pass termination on, which sends refine's own process each signal from the program and requires the program to have ended by it and the test program to have survived it, and the commands case run reports a signal, which holds the directory's removal and the line for a program ended by SIGTERM.

D731 — The bare form's line repeats what chose the program

D526 said that bare refine FILE closes with refine run FILE to run it and refine compile FILE -o NAME to build it. Both dropped every option the check was given, so after refine --target=rv32 --level=rv32imac DIR they named a hosted build of another program, and run was offered on targets nothing runs on the host.

Chosen: the commands the line names repeat the options that chose the program and how it is compiled, in the order given: --target, --level, --root, --library, -L, --option, --build-mode, --optimize, --specialize, --link and --firmware-entry. A report the check was asked for is not asked for again, and the line then says it wrote no program rather than nothing. run is offered for a hosted target, which has a host to run on; on another host refine run refuses it and names refine compile --target (D526). For a firmware target, which nothing runs on a host, the line offers compile alone, with --firmware-entry=NAME when the check named no entry, since a firmware build needs one. The line depends on the request alone and never on the host it is made on, so a recorded fixture's closing line is the same on every lane. A word a shell would split or expand is written in single quotes.

The alternatives: offering run only on the compiler's own host, which makes a fixture checked for another target record a different line on each host; dropping the line for anything but the host's own build, which leaves a cross-compiler's user with no next step; and naming every option the check was given, reports among them, which writes them a second time.

Pinned by the commands case the bare form says it only checked, and the recorded closing lines of the positive and end-to-end fixtures checked on another target.

D565 — What an option needs of its request is the command catalogue's

The tour said nothing of the command line. refine's commands parse their options from Landin.Commands.Catalogue and hand the driver a request it parses again, and the driver kept its own usage text, its own list of the options it reads and of the values each takes, and its own rules for which options a request can hold together, each with sentences of its own: --debug with nothing emitted was "describe what is emitted" to one and "not an option of check" to the other, and an option given twice was "option may be given once: --target" to one and "--target may be given once" to the other.

Chosen: the catalogue says, for each option, what it needs of the rest of its request: nothing, a source to compile (--optimize, --specialize, --build-report, --firmware-entry, --link), emitted machine code (--debug, --panic-map, --stack-report), an executable (--keep-asm), or something emitted at all (-o); and it writes the one sentence for a request that does not meet it, for an option given twice, for a value an option does not take, naming the values it does, and for a compilation option beside --help or --identify. refine compile and refine run hold their requests to those requirements as they parse, and the driver holds the request it is handed to them, so both refuse one combination with one sentence. The options the driver reads are the catalogue's compile options less the commands' own, and its usage is the catalogue's overview. A command-line change is a change to the catalogue.

The alternatives: a second parser that only translates, which leaves the driver's own callers, the test program's driver cases among them, reading a request nothing checked; and generating the driver's parse from the catalogue, which a hand-written classification of each option's value does not need. Both were declined.

Pinned by the commands case option requirements are one, which holds the commands' parse and the driver to the catalogue's sentence for each requirement, a value and a repeated option, and the driver's usage to the catalogue's; and the debugging, stack report and driver cases whose refusals now read it.

The tour said at [1760] that identifier letters are lower-case ASCII. The lexer ended an unknown run at the next lower-case letter, so InitWindow was two reports and eight raylib declarations were 58, and none said that a C name Landin cannot spell is linked by link(symbol: ...) ([1610]).

Chosen: a word of ASCII letters, digits and underscores that begins with a letter or underscore and holds a capital is one L0012 spanning the word, and the parse continues as if it were an identifier of that spelling, so the word is not reported again. When the word is the name of a function declared extern(c) without link(symbol: ...), the note shows that declaration with link(symbol: "InitWindow") and the name in lower case with underscores, init_window. Elsewhere the note offers the lower-case spelling. A run holding a byte no rule spells keeps its own report. Each place the word is written is its own report, the declaration's and every use's, and a word whose lower-case spelling is a keyword, End, is told that spelling is reserved. The scan reads the word as an identifier and leaves its report to the parse, which alone knows whether the word names such a function, so the command line and refine lsp say the same.

The alternatives: a report per run of capitals, which is what the trial met; admitting capitals in a C function's name, which gives Landin two identifier rules; and folding the case of an extern(c) name silently, which links a symbol the source does not spell. All were declined.

Pinned by negative/c-name-with-capitals, raylib's InitWindow and CloseWindow, negative/identifier-with-capitals and negative/upper-case-name, and the cases lexer/capitalised words are one fault, lexer/reserved words and near misses and catalogue/capitalised words have exact reports.

D529 — L0346 names the record that is not layout(c)

The tour said at [1580] that a C signature's records are layout(c) structs, and L0346 gave that whole rule, eleven clauses, as its note to a parameter whose only fault was a record without layout(c).

Chosen: a C signature whose parameter or result is a record without layout(c) is L0346 naming the part and the record, "C cannot take tint: color is not layout(c)", with a note saying to declare the record layout(c) struct and why its layout is otherwise Landin's own, which C does not share ([0750]). The other faults of a C signature keep their notes. The row keeps one note and one secondary label. A result is "C cannot return result", and a layout(c) record holding such a struct by value is the same refusal at its field, "a C record cannot hold offset: vector2 is not layout(c)"; a parameter's and a field's note also offer ptr to the struct. A struct behind a pointer crosses as it did, and a pointer union, a variant or a layout(packed) register image keeps [1580]'s whole rule.

The alternatives: a label at the record's declaration, which changes the catalogue row's shape for one cause, and the general note with the record named after it, which still leaves the reader the eleven clauses. Both were declined.

Pinned by negative/c-record-not-layout-c, a plain struct passed to C by value, negative/c-record-holds-no-plain-struct, its result and its field, and negative/external-aggregate-boundary.

D555 — refine reads a device's SVD with its own strict XML reader

The tour said nothing of how a chip is learnt. D542 makes a device a description in Landin source whose interrupts are generated from the device's CMSIS-SVD file, and the register modules were generated by a Python script that only the repository could run, while no feature of the compiler may need Python and no new runtime dependency is admitted without the maintainer.

Chosen: refine reads the SVD itself, through Landin.Xml, a reader of XML 1.0's well-formed documents in the subset an SVD is written in: an optional byte order mark and XML declaration whose encoding is UTF-8, elements, attributes, character data with the five predefined entities and character references decoded and line ends read as XML says, CDATA sections, comments and processing instructions. It refuses, never raises, and places each refusal by line and byte column: a document type declaration and every entity but the five, bytes that are not UTF-8 and characters XML does not admit, an end tag that closes something else, an attribute given twice, < in an attribute value, ]]> in character data, -- in a comment, text outside the root element, and nesting deeper than 64 elements. A refused SVD is L0525.

The alternatives: an XML library, a dependency the maintainer has not agreed and one that reads more than an SVD is written in; a forgiving reader, which would generate modules from a file nobody can say was read as written; and keeping the generator in Python, which makes learning a chip the repository's privilege rather than the compiler's.

Pinned by the xml suite: elements are read, references are decoded, every refusal is placed, which names each refusal with its line and column, and hostile bytes never raise.

D556 — refine svd reads an SVD and a selection policy

The tour said nothing. An SVD describes every register of a chip, most of them with less care than a generated access deserves, so what is generated is a reviewed selection, and the review belongs to one exact file.

Chosen: refine svd --policy=POLICY.json --out-dir=DIR DEVICE.svd. The command is named for the format it reads, as fmt and lsp are for what they serve. The policy is JSON, read by the reader refine already has for its language server, and it has schema 2. It names the SVD it was reviewed against by device, svd_version and svd_sha256, and an SVD that is not that file is L0527: a review covers one file, not its successors. It gives the notice lines each module begins with, which is where a derivative carries the licensor's notice; the layout under the output directory, as modules, prefix, correspondence, manifest and description, each with a default; the selection, each peripheral's registers in the order they are generated; one access policy per selected register, its read normal, modify or refused, its write normal, one_clears or refused, its reserved bits zero or preserve and an optional write_mask; numeric_enums, the fields whose vendor enumeration is read as a number; reset_mask_overrides, the reset knowledge a reviewer promises instead of the SVD's; and reset_corrections, a reviewed reset value with the source it was read from; and field_corrections, a field's reviewed bits or that it is to be omitted, or a field the SVD lacks, added with its bits and access (D652), with its source, which the correspondence records beside the SVD's; and interrupt_corrections, an interrupt to add or move to a value, or to omit, with its source, which interrupts.ldn says in a line of its own (D542). Any other member is refused, except provenance, the reviewer's notes, which is not read. A policy refine cannot read is L0526, and one that selects what the SVD lacks L0530.

The alternatives: a policy written in Landin source as tool directives, which would make a review note a program the compiler checks and the editor tooling reaches, but which no program imports and whose directives would be a second language beside D542's; a policy in the SVD's own XML, which a reviewer edits in the vendor's file; and command-line selection, which leaves no reviewed record of what was chosen.

Pinned by devices/policies/rp2040.json and devices/policies/stm32h753.json, the devices suite's every refusal is named and a correction is recorded, and devices/test.py, which regenerates both devices from their policies.

D557 — What the projection reads, and what it writes

The tour said at [0740] how a register image is declared and D227 and D228 how a register is read and written; nothing said how a vendor's description becomes either.

Chosen: each selected register's properties are inherited from the register, its peripheral, the peripheral that one is derived from, and the device, in that order; size, reset value, reset mask and access are read so. A peripheral derivedFrom another takes its registers and keeps its own name and base address, once: a derived peripheral that gives registers of its own, or is derived from a derived one, is refused. An alternateRegister is a register of its own at the address it shares, which must be its alternate's, and the correspondence records it. A field lies where its bitRange, its bitOffset and bitWidth, or its lsb and msb say. A register may leave its access to its fields, which must then each say theirs. A field with enumerated values becomes an encoded type unless the policy reads it as a number; one without becomes uN. Numbers are decimal, 0x hexadecimal or # binary. Names are lowercased; fields take f_, atoms the register's and field's names, and two vendor names that become one Landin name are refused. Only 32-bit registers are generated.

L0528 refuses, for a selected register, what is not read: dim arrays of peripherals, registers or fields, a register in a cluster, a register or field derived from another, derived enumerated values, an alternateGroup, a default enumerated value, a number with a multiplier or don't-care bits, another width, and a core other than the six D542 names. An enumerated value named otherwise than an identifier cannot be an atom: every selected field with one is named in one refusal, each with its first such name, and with the policy's numeric_enums as the way out, rather than one field a run. L0529 refuses what cannot be generated as it is said: overlapping fields, a field outside its register, an enumerated value that does not fit or is given twice, a property given nowhere it is inherited from, an address that is not a word-aligned 32-bit address, and an alternate at another address, which for an alternate that names an element of a register array is the element's own, the array's addressOffset and its position's dimIncrements. D1062 adds what an SVD omits, overstates or says twice, and D1063 a name Landin reserves.

What is written is the text the RP2040 fixture was first generated in, byte for byte: one module per selected peripheral, PREFIX/NAME/device.ldn; the correspondence, every selected register and field as the SVD gave it beside what was generated, as JSON indented by two spaces with sorted keys; the manifest, each of those files' SHA-256; and interrupts.ldn in D542's text. An SVD without deviceNumInterrupts has as many slots as its highest interrupt needs.

The alternatives: expanding arrays and clusters now, which neither selected device needs and which would be generated untested; merging a derived peripheral's registers with its parent's, a form neither SVD uses; and a new text for the modules, which would have cost the byte-for-byte comparison with what was reviewed.

Pinned by the devices suite's a device becomes modules, which holds each form's text, and every refusal is named; devices/test.py's regeneration of the RP2040 fixture and the STM32H753 byte for byte and its mutated-SVD refusal controls.

D558 — refine svd replaces its outputs whole or not at all

The tour said nothing. A generator that dies halfway through leaves a module set that matches no SVD, and its next reader cannot tell.

Chosen: D907's shared publication group replaces these outputs. Nothing is published until every destination is checked: the output directory must be one, no destination may be a directory or have a file where a directory is needed, no staged or kept copy of an earlier run may be beside one, and the manifest found there may name only paths below it. Each new file is written in exclusive private staging beside its destination and read back, and only then is each destination replaced, its old bytes kept until every replacement is done. A failure restores what this invocation replaced without clobbering a concurrent change, or names the kept copy it could not put back. A file whose bytes are already the new ones is left alone. The manifest is how refine knows which files are its own: a file the old manifest names that this run does not make is removed with the rest, while it is still the bytes the manifest records (D1064). A refusal before writing is L0531; a write that fails is L0005. This recovers from a failure; it is not a snapshot for a concurrent reader.

The alternatives: writing in place, which the interrupted run defeats; replacing a whole directory by a rename, which would take the developer's own files beside the generated ones, and memory.ldn is one; and leaving a deselected module behind, which a program could still import.

Pinned by the devices suite's outputs are replaced whole and devices/test.py's a changed output is put back and a stale one removed.

D1062 — What an SVD omits, overstates or says twice is refused where it says it

The tour said nothing. D557 lists what cannot be generated as it is said, and its list was of what the two first devices' files could get wrong. A vendor's file that is well-formed XML can also leave out a child its schema requires, give a number no register holds, or give one name twice, and the projection read each without asking: an absent child ended the command in an internal defect that named no element, two of an SVD's 64-bit numbers were added before their sum was compared, so a wrapped sum passed as a bit position, a 32-bit address or a vector count, and the first of two elements of one name was taken in silence.

Chosen: each is L0529, placed at the element. A child the projection reads as a number and the element lacks is refused naming both, whichever caller reads it: an interrupt's value, read for every peripheral of the file whether or not it is selected, and an array's dimIncrement were the two unguarded. Each number is bounded before it meets another: a bitWidth is 1 to 32 and a bitOffset at most 32 less it, an addressOffset and a dimIncrement are each 32-bit before one is multiplied by an element's position and added to the other and to the base, and deviceNumInterrupts is at most 65536, one more than the highest number an interrupt may have. A selected name has one reading: two peripherals of the name a policy selects or a peripheral derives from, two registers of a selected name, and a selected name that is both a register and an element of an array, or an element of two arrays, are refused at the second. A field that gives its position in more than one of the three forms gives the same bits in each. A field has at most two enumeratedValues, the one read and the one written that CMSIS-SVD admits; a third is L0528.

The reader and the projection also take time that grows with the file and not with its square: an element's attributes, a field's enumerated values and a device's interrupts are each looked up in an ordered set, where each was compared with every one before it, and a few hundred kilobytes ran for minutes.

The alternatives: taking the first of two, which generates a plausible module at an offset nobody reviewed; preferring bitRange over a disagreeing lsb and msb, the same silence; arithmetic in a wider type, which moves the wrap rather than removing it; and a cap on attributes and values instead of the sets, which refuses a file for its size rather than reading it.

Pinned by the devices suite's what an SVD omits or overstates is refused, an ambiguous SVD is refused and a large SVD costs in proportion, which fails when four times the attributes, values or interrupts take more than ten times the processor time.

D1063 — A name refine svd writes unprefixed is not one Landin reserves

The tour said nothing. D557 keeps the names a module declares from the keyword rule by construction, f_ before a field and a suffix after a register, and D701's module of interrupt-matrix sources declares each interrupt under its own lowercased name, as a peripheral's module is imported under its own. An interrupt named END or TYPE was written as public end: u32 = 1, the command reported success, and every program importing the module was refused.

Chosen: such a name is refused when it is generated. A reserved name is a keyword, as Landin.Tokens has them, or one of the toolchain's three namespaces. An interrupt that would be a source of that name is L0528, and the policy's interrupt_corrections can omit it; as a slot of a core without a matrix its name is a string and is written. A selected peripheral whose lowercased name is reserved is L0528, and a part of the policy's prefix that is reserved is L0526, because no import can name either.

The alternatives: a prefix on every source, as fields have, which renames the sources of the four ESP devices already generated and every program that reads them, for names no vendor's file has yet; and writing the module and leaving the refusal to the compiler, which is the success that was false.

Pinned by the devices suite's a reserved name is refused.

D1064 — refine svd's outputs are distinct paths, and it removes only what it wrote

The tour said nothing. D558 has the old manifest say which files are refine's own, and D556 lets a policy name the correspondence, the manifest and the description. The manifest's path was compared with the other outputs' before the modules' root was put before it, so under a root other than . a manifest named like a module replaced the module and the command reported success; an output named below another failed only at publication, after directories were made; and whatever regular file an old manifest named below the root was removed, the hash beside its name unread.

Chosen: every output's path is compared as it is written, the modules' root included. Two outputs at one path, or one at a path another lies below, are refused before anything is prepared: L0526 when the clash is between the policy's modules, prefix, correspondence, manifest and description. A file the old manifest names that this run does not make is removed only while its SHA-256 is the one the manifest records; one that differs, cannot be read, or whose entry is not a hash is L0531, naming the file, and nothing is replaced. The developer removes the file or its entry.

The alternatives: leaving a changed stale file in place and going on, which leaves a deselected module a program can still import while the command reports success; removing it as before, which trusts a manifest's keys over the bytes they name, and a manifest carried over from another layout names a developer's files; and checking only that a stale path is not a hand-written memory.ldn, one case of the class.

Pinned by the devices suite's outputs do not overlap and outputs are replaced whole.

D559 — Vendor inputs are pinned by URL and SHA-256 and fetched

The tour said nothing. The RP2040's SVD and pico-sdk's headers were vendored beside the generated modules.

Chosen: no vendor input is in the tree. devices/inputs.json pins each SVD and each vendor header the generated modules are checked against by the URL it is fetched from and its SHA-256, and scripts/fetch_inputs.py, standard-library Python, fetches each into $LANDIN_INPUTS or ~/.cache/landin/inputs, verifies it every time it is used, and never caches bytes of another hash. An input a job must not fetch is pinned the same way and marked "fetch": "by hand": one its publisher will not serve to a script, ST's RM0433, or one whose URL serves whatever release is current, the RP2350 datasheet and the ESP32-C3 and -C5 manuals, so a job depending on its hash would fail the day a new release appeared. A person downloads it and puts it in the cache, and the fetcher verifies that copy, never downloads one, and without one says where to put it. No test reads a manual; the literals reviewed from one stay in the tests, each citing its section and page, and its pinned hash names the document they were reviewed against. A licence's notice stays in the tree, as a notice: the generated modules are derivatives of the SVD, BSD-3-Clause asks that a redistribution of source in any form keep the licence's whole text, and Apache-2.0 that a recipient be given a copy, so devices/notices/LICENSE.pico-sdk and devices/notices/LICENSE-Apache-2.0.stm32h7 are kept and each module's notice names its own. check.py runs devices/test.py offline: the lock and the policies agree, every generated file is the one its manifest hashes and carries its notice. The regeneration and the vendor-header checks need the inputs, so the gate's cortex-m job fetches them and runs them.

The alternatives: a licence line in every module and no licence text, which keeps neither licence's condition; vendoring the inputs, which the maintainer declined; and fetching inside check.py, which runs offline.

Pinned by scripts/tests/test_fetch_inputs.py, devices/test.py's offline tests, and the gate's cortex-m steps that fetch and regenerate.

D820 — refine bindings is the binding generator

The tour said at [1580] that a separate, deterministic generator reads headers and writes the declarations. It was a Python script in bindings/, so binding a header needed Python, which no feature of the compiler may.

Chosen: the generator is a command of refine's own, as the SVD importer is (D555):

refine bindings --clang=CLANG [--target=NAME] [--sysroot=DIR] --policy=POLICY.json --out-dir=DIR [--include-dir=DIR]... [--system-include-dir=DIR]... [--define=NAME[=VALUE]]... [LOGICAL=]HEADER.h ...

It is named for what it makes, as svd is for what it reads, because what it reads is C, which names nothing a command could be called. The headers are its operands, each LOGICAL=PATH, or PATH named by its last component. --target is refine's own target name, defaulting to the host's as for every command, and selects its rows: linux-x86-64, linux-arm64 and darwin-arm64 have one each, and cortex-m0 two, AAPCS32's base procedure call standard and its VFP variant (D935); the policy's abi.target must name one of the target's Clang triples. --clang names the Clang by path or by a name found on PATH, and is required, as the policy, the output directory and a hosted target's sysroot are (D937): the generator's contract is that nothing it reads is chosen for it. Paths are made absolute against the working directory without resolving links.

Within each generated Landin signature, parameter and result names avoid every identifier used by its types and every other binding in the signature. Available normalized parameter names are retained; conflicts gain trailing underscores, with existing suffix names reserved first. Result origin clauses and parameter metadata use the allocated Landin names; policy names and c_name remain the header's. This applies to direct declarations, adapters, callback types and incoming handlers. The complete policy reference is a generated reading page, bindings.html, named by installed command help.

Apart from these signature collision repairs, the four outputs retain what the Python generator wrote: for every header and policy bindings/test.py binds, and for the committed fixture's on each of the three targets, the same declarations in the same order, the same adapters and the same metadata with sorted keys, and the same refusals; each output now says only that refine bindings made it. The policy is unchanged. Clang is asked what it was asked before, in the same order and with the same arguments, the empty file of D821 aside, and generation lives in Landin.Bindings, a function of what Clang printed, so the whole generator runs against a fake Clang. What it reads it reads with Landin.Json, and a reserved word is one of Landin.Tokens', which check.py holds to the keyword production. Outputs are replaced as D558 replaces refine svd's, every new file written and read back before any is replaced and a failure putting back what was replaced, rather than by the Python generator's backup directory. A refusal is a diagnostic: a request written wrong is L0002, a header or policy that cannot be read L0003, a policy that is not one L0579, a Clang that cannot be used as asked L0580, a selection that cannot be bound L0581, outputs in the way L0582, and a replacement that fails L0005.

The alternatives: keeping the Python generator, which the row asked to retire; Python's own option spellings, --header and a Clang triple for --target, which would be the only command whose target is not one of refine's names; a header parser of refine's own, which [1975] refuses; and naming the command for its input, refine c or refine header, which says less than what it makes. All were declined.

Pinned by the bindings suite's a header is bound through a fake clang, requests are refused by code, another triple is refused first, plain char must be the row's, each target is one row and a failed replacement puts back; bindings/test.py, every case against the pinned Clang, with abi/r440-bindings-generated regenerated byte for byte; and the gate's bindings job. Signature collision consumers are pinned by bindings/test.py's test_signature_names_avoid_parameters_and_referenced_types, test_incoming_handler_prototype_avoids_typedef_shadowing and, on the adapter-backed Cortex-M paths, test_cortex_adapter_names_stay_consistent.

D1065 — An attribute Clang adds to one of its builtins is not the header's

The tour said at [1580] that the generator reads headers. D820 refuses a selected function that carries an attribute, because an attribute may change how the function is called and none is guessed. For a declaration whose name and type are one of its library builtins Clang records what it knows of the function as attributes of its own, marked implicit, on a declaration it makes itself and the header's then inherits them from: BuiltinAttr on every one, NoThrowAttr, ConstAttr, PureAttr, FormatAttr and AllocSizeAttr on those they describe. They were read as the header's, so strlen, malloc, abs, sqrt, memcpy and printf, declared with no attribute at all, were each refused on every hosted target for an attribute no header wrote.

Chosen: those six kinds are passed over on a selected function when Clang added them: the node is marked implicit, or is inherited and no declaration of the function writes an attribute of that kind itself. They say what a function does and nothing of how it is called. The same kind written in the header, on any declaration of the function, is refused as before, and so is every other kind Clang adds: ReturnsTwiceAttr, which it knows of setjmp and vfork, is a way of returning no Landin call can keep. A builtin Clang knows not to return, exit or abort, has noreturn in its type rather than as an attribute, and stays refused with every noreturn function.

The alternatives: passing over every implicit attribute, which admits returns_twice; -fno-builtin for the AST run, which stops Clang adding them and also changes what it says of every other declaration, in a command whose outputs are compared byte for byte; and passing over the six kinds wherever they stand, which admits a header's own format or pure and is a wider change than the defect.

Pinned by bindings/test.py's test_attributes_clang_adds_to_its_builtins_are_not_the_headers.

D1252 amends this: the kinds are passed over where a header writes them too, and a function that does not return is bound.

D1252 — An attribute that says nothing of the call is passed over, and noreturn is bound

The discrepancy: D820 refused every attribute on a selected function and D1065 passed over six kinds only where Clang had added them. A C library writes them: glibc declares strlen with __THROW, __attribute_pure__ and __nonnull, so the system's own <string.h> could not be bound and the README sent its reader to declare the function again in a header of their own. exit and abort, declared with no attribute, were refused for a noreturn the header had not written, because Clang puts what it knows of those builtins in the type.

Chosen: fifteen attribute kinds, by Clang's names, are passed over on a selected function and on its parameters, wherever they stand and whoever wrote them: NoThrowAttr, LeafAttr, PureAttr, ConstAttr, NonNullAttr, ReturnsNonNullAttr, WarnUnusedResultAttr, FormatAttr, FormatArgAttr, SentinelAttr, RestrictAttr (C's malloc), AllocSizeAttr, AllocAlignAttr, ColdAttr and DeprecatedAttr. Each says what a call may assume or what a C compiler should warn of; none says how the function is called, what symbol it has, how it is linked or how a type is laid out. The list is closed and is the kinds that have been read: every other kind is refused by name as before, among them AsmLabelAttr, VisibilityAttr, WeakAttr, AliasAttr, AlwaysInlineAttr, GNUInlineAttr, OverloadableAttr, PassObjectSizeAttr, ReturnsTwiceAttr and UnavailableAttr, and so is any attribute Clang writes into the function's type, a calling convention above all. BuiltinAttr stays D1065's, passed over only where Clang added it. Nothing of a passed-over attribute reaches the binding.

A function C says does not return, by noreturn in its type, by _Noreturn or by [[noreturn]], is declared -> noreturn ([0890]) and its metadata entry says "noreturn": true; no other entry gains the member, so every binding made before generates byte for byte. It is bound with a void result, as a direct import. One with a result type, an export, an incoming_varargs handler and a form that needs an adapter are refused, each in words that say so.

The alternatives: refusing every written attribute, as before, with the function declared again by hand, which makes the reader the one who decides the attribute is harmless and leaves no record that they did. A policy member naming the attributes a selection admits, which asks each user to make the same fifteen judgements. Passing over every attribute that is not known to change a call, which guesses at each kind Clang gains. Binding a noreturn function as one returning none, which is sound to call and makes every caller write a path after the call that cannot run. Giving the symbol an AsmLabelAttr names to the binding, so that glibc's scanf would link __isoc99_scanf, stays open.

Pinned by bindings/test.py's test_written_attributes_that_say_nothing_of_the_call_are_passed_over, which also holds that the pinned Clang reports each of the fifteen kinds, test_attributes_that_change_a_call_stay_refused and test_a_function_that_does_not_return_is_noreturn.

D1066 — A C name that is one of Landin's scalar names takes c_

The tour said at [1790] that the scalar names are predeclared and are not keywords, so a module may declare one again. D820 gives a C name that is a keyword c_ before it. A C typedef named usize, u8 or u32 was written under that name, and every other line of the same module that the generator wrote meaning the scalar then meant the typedef: an opaque pointer's ptr mut u8, and the usize an adapter's size, alignment and index are declared with beside C's __SIZE_TYPE__.

Chosen: the thirteen scalar names, as Landin.Types spells them, are avoided as the keywords are: such a C name becomes c_usize, and a policy's landin_name may not be one. Nothing else in a binding changes, and a header without such a name generates what it did.

The alternatives: writing every generated use of a scalar so that no declaration of the module can capture it, which Landin has no spelling for; refusing such a typedef unless the policy renames it, which refuses typedef unsigned char u8;, the commonest of them and a harmless one; and leaving it, which reads a 64-bit size_t result at the typedef's width.

Pinned by bindings/test.py's test_a_typedef_named_as_a_landin_scalar_does_not_redefine_it.

D1067 — A C record's layout is counted in the target's bytes

The tour said nothing of how large a C record may be. D18 bounds one array by the greatest byte count the target's usize holds, and layout arithmetic counts target bytes in Landin.Targets.Byte_Count everywhere but here: the generator laid records out in the host compiler's Natural, so a record of 2 GiB or more, which LP64 C admits, ended the command in an internal defect that named neither the record nor the field.

Chosen: sizes, alignments and offsets are Byte_Counts, and each sum and product is compared with the target's greatest object before it is formed. A record or array past that is L0581, naming the array type or the record and the field that passes it; one within it is laid out, asserted against C and recorded, whatever the host's integers hold. The greatest object and the width of a pointer are read from Landin.Targets' facts for the row's target, where the generator spelled its own 4 and 8.

The alternatives: a 64-bit count with no bound, which wraps where this refuses; and refusing at the host's 2 GiB with a diagnostic, which makes a property of the machine running the compiler a limit on the target's C.

Pinned by the bindings suite's a record is laid out in target bytes, whose refusals are a fake Clang's because the real one refuses such a record first, and bindings/test.py's test_a_record_past_two_gibibytes_is_laid_out.

D821 — Clang runs in an environment of its own, through Landin.Platform

The tour said nothing. The Python generator ran Clang with an environment of PATH, HOME and the temporary directory alone, so that no CPATH, C_INCLUDE_PATH or driver override a shell set could change what a header means, and refine's tool runner gave every tool the caller's environment.

Chosen: Landin.Platform's tool runner has Run_In_Environment, which runs a program with exactly the environment it is given: an item NAME=VALUE sets a variable, and an item NAME passes the caller's own value on, or nothing when the caller has none. refine bindings gives every Clang run PATH, HOME, TMPDIR, TMP, TEMP and SystemRoot as the caller has them, LC_ALL=C and TZ=UTC, and nothing else, with --no-default-config and -nostdinc as before. Its work, the copied headers, the preprocessed translation unit and the enum probe, is in a private directory refine makes and removes. The target's macros are probed from an empty file in that directory rather than from standard input. Landin.Platform's filesystem also says whether a path is a symbolic link, so the output directory, and each output, is refused when one is.

The alternatives: inheriting the caller's environment, which would let CPATH supply a header the request never named; clearing it entirely, which leaves Clang no PATH to find its own tools by; and wrapping Clang in env, a second program between refine and the one it means to run.

Pinned by the bindings suite's a header is bound through a fake clang, which holds every Clang call to that environment, and bindings/test.py's ambient include variables are excluded from every clang invocation.

D935 — refine bindings binds C for Cortex-M under AAPCS32, in both procedure call standards

The tour said at [1580] that the generator writes the declarations a header's C needs, and nothing about a target without LP64. The generator knew three LP64 rows, and its macro check, its builtin sizes and its metadata were LP64's.

Chosen: --target=cortex-m0, refine's one M-profile target name, has two rows, because a description's float unit changes the C convention while the target name stays (D615): AAPCS32's base procedure call standard, Clang triple thumbv6m-unknown-none-eabi with -mfloat-abi=soft, and its VFP variant, thumbv7em-unknown-none-eabihf with -mfpu=fpv5-d16 -mfloat-abi=hard, the one float unit D615 admits. The triples are the spellings Clang prints for -print-target-triple, which the generator compares with the row's. The policy chooses the row: abi.target names its triple, and abi.calling_convention, aapcs or aapcs-vfp, the name bindings.json records as calling_convention, is required for cortex-m0 and must be the triple's, so the VFP variant is never chosen by a triple's hf alone; on the other targets the key may be given and must be the row's. abi.data_model is ilp32 for both rows and for no other, and plain_char is unsigned. Both rows assert compiler.c_aapcs32 and are freestanding (D937, D938). Clang's answer for an empty file is held to __ILP32__, a four-byte long, pointer, size_t and ptrdiff_t, __arm__, __thumb__, __ARM_EABI__, __ARM_ARCH_PROFILE 'M', __ELF__, __ARM_PCS, __ARM_SIZEOF_MINIMAL_ENUM 4 under the -fno-short-enums every run gets, __STDC_HOSTED__ 0, an unsigned plain char and little-endian storage, and __ARM_PCS_VFP is required exactly for the VFP row, with __ARM_FP 0xe there and no __ARM_FP for the base one. A long and a pointer are the row's word in every layout the generator computes, so a native record's generated offset assertions are ILP32's. long double, a double under AAPCS32, stays refused as on every target. NVIC_EnableIRQ and its kin are CMSIS macros naming __NVIC_EnableIRQ; the generator binds no macro, so a policy selects the function and gives it a Landin name.

The alternatives: a refine target per convention, which refine does not have: the float unit is the description's and a level is not a target; --float-abi on the command line, which would make the command line rather than the reviewed policy say which ABI a binding is for; choosing the row by the triple alone, whose suffix is the whole difference; and Clang's shorter spellings thumbv6m-none-eabi and thumbv7em-none-eabihf, which it accepts and prints otherwise, so the triple check would compare two spellings of one target. All were declined.

Pinned by the bindings suite's each target is one row, cortex-m macros are aapcs32's, ilp32 is the aapcs32 policy's and a cortex-m header is bound freestanding, and bindings/test.py's test_cortex_targets_bind_ilp32_in_both_conventions, test_cortex_rejects_an_lp64_or_other_convention_clang and test_cortex_policy_is_ilp32_and_names_its_convention.

D936 — A Cortex-M binding asserts its float unit beside compiler.c_aapcs32

The tour said nothing. One fact, compiler.c_aapcs32, holds under both procedure call standards, so a binding asserting it alone would let a program built for a description with a float unit import bindings whose adapters take floats in core registers, while the program passes them in the float unit's.

Chosen: a base binding asserts compiler.assert(not compiler.feature.fp) and a VFP one compiler.assert(compiler.feature.fp_dp) on the line after its ABI fact, so the program built for the other convention is refused when it is compiled. The VFP assertion is fp_dp rather than fp because its adapters were compiled for FPv5-D16 and may use its double-precision instructions.

The alternatives: a second fact per convention, which the compiler does not have and which compiler.feature already decides; and leaving the mismatch to the linker's Tag_ABI_VFP_args attributes, which refuse only at link time and only where a link checks them. Both were declined.

Pinned by the bindings suite's a cortex-m header is bound freestanding, and bindings/test.py's test_cortex_targets_bind_ilp32_in_both_conventions and test_cortex_bindings_refuse_a_program_of_the_other_convention, which compiles both committed bindings for cortex-m0 without a float unit and with the AN500 lane's FPv5-D16 description, and each is refused with L0324 by the other.

D937 — A freestanding target's C headers are Clang's own, as the request names them

The tour said nothing. The generator passed -nostdinc and a required --sysroot, and a binding that needed <stdarg.h> named Clang's resource directory with --system-include-dir.

Chosen: cortex-m0 is freestanding. It has no system root: --sysroot is refused for it, and stays required for the hosted rows, which refine now says once it knows the target. Clang gets -ffreestanding, so __STDC_HOSTED__ is 0 and Clang's <stdint.h> uses no library's, and still -nostdinc, so its freestanding headers, <stdint.h>, <stddef.h>, <stdbool.h> and <stdarg.h> among them, are reached only through the --system-include-dir naming $(clang -print-resource-dir)/include, a root like any other the request names. A host C library's header is not found.

The alternatives: -nostdlibinc, which keeps Clang's resource directory implicitly, an unnamed root that the marker check and the file-prefix maps would have to learn and that D820's contract, nothing it reads chosen for it, excludes; and requiring an empty --sysroot as for a hosted target, which names a directory a freestanding target does not have. Both were declined.

Pinned by the bindings suite's a cortex-m header is bound freestanding and requests are refused by code, and bindings/test.py's test_cortex_headers_are_clangs_freestanding_ones_alone.

D938 — Freestanding adapters allocate nothing and reach no C library

The tour said nothing. Generated adapters allocated C-owned objects and nullable-callback cells with calloc and free, and reached a _Thread_local object through the C library's thread pointer.

Chosen: on cortex-m0 a C-owned union, bitfield or opaque record gets its copy, size, alignment and member accessors and no allocate or release: its caller supplies the storage by its size and alignment, from an arena or a fixed buffer, and the metadata's lifecycle records the two as null. adapters.c then includes no <stdlib.h>. A nullable callback, whose cell's allocate and release are calloc and free, is refused with L0581, which says to select it with nullable: false and give its positions nonnullable policy; a non-null callback is an ordinary extern(c) callable. A _Thread_local object, which Arm code reaches through __aeabi_read_tp, is refused with L0581 too. By-value wrappers, wrappers of internal inline definitions, object accessors and incoming-varargs entries, whose <stdarg.h> is freestanding, are generated as on a hosted target. adapters.c is compiled for the row's triple before publication, as on every target.

The alternatives: a C allocator the generated C would call, which a freestanding image does not have; and nullable-callback cells without allocate and release, as an object has, which initialize already allows for caller storage. That one is declined until a firmware consumer passes a nullable callback; until then the refusal says what to do instead.

Pinned by bindings/test.py's test_cortex_adapters_are_freestanding.

D939 — Cortex-M bindings are checked against pinned CMSIS headers

The tour said nothing. The pinned device inputs were SVDs and register headers (D559); no CMSIS-Core header was pinned.

Chosen: devices/inputs.json pins, by URL and SHA-256, the CMSIS headers two Cortex-M bindings read. From pico-sdk's commit a1438dff, the SVD's: the CMSIS stub's RP2040.h, system_RP2040.h, core_cm0plus.h, cmsis_version.h, cmsis_compiler.h, cmsis_clang.h, cmsis_gcc.h and m-profile/cmsis_clang_m.h, m-profile/cmsis_gcc_m.h and m-profile/armv7m_mpu.h, the compiler headers of both Clang and GCC, as rp2040-cmsis/. For the pinned stm32h753xx.h, the CMSIS-Core 5.9 it includes, core_cm7.h, cmsis_version.h, cmsis_compiler.h, cmsis_gcc.h, mpu_armv7.h and cachel1_armv7.h, from STM32CubeH7's commit 8ec3113d, whose device submodule is the pinned cmsis-device-h7 81db1ec6, and that commit's system_stm32h7xx.h, as stm32h753-cmsis/. Arm's CMSIS licence text is devices/notices/LICENSE-Apache-2.0.cmsis. Two ABI fixtures hold the four outputs: abi/cortex-cmsis-bindings, for the base standard, selects IRQn_Type and the static inline __NVIC_EnableIRQ, __NVIC_GetEnableIRQ, __NVIC_DisableIRQ, __NVIC_GetPendingIRQ, __NVIC_SetPendingIRQ, __NVIC_ClearPendingIRQ, __NVIC_SetPriority, __NVIC_GetPriority and SysTick_Config from RP2040.h; and abi/cortex-vfp-bindings, for the VFP variant, selects the STM32H753's IRQn_Type, five NVIC functions and SCB_GetFPUType, and, since neither CMSIS core has an inline function taking a float or a double, the float and double interface of the fixture's own landin-vfp.h. The register structs the headers declare volatile are not selected and refuse nothing. Their adapters are compiled with -fno-short-enums, which the pinned arm-eabi-gcc, whose default enums are short, needs as Clang's -fno-short-enums does; the generated compatible-type assertions refuse the build without it.

The alternatives: vendoring the headers, declined as D559 declines it; Arm's CMSIS_5 tag 5.9.0 for core_cm7.h, rather than the copy ST releases its device header against; and the STM32H753's own headers for the VFP interface, which have none. All were declined.

Pinned by bindings/test.py's test_cortex_fixtures_are_exactly_regenerable, which fetches the inputs, regenerates both fixtures byte for byte and compiles their C for each row, and test_cortex_adapters_build_with_the_pinned_arm_gcc.

D585 — The gate builds the flake on every run that does not reuse a pass

The tour said nothing. nix build .#refine, the documented default, failed unnoticed from 2026-10-08, "build/nix/release/generated is not a valid directory", because nothing in CI built the flake: it was built by hand, and Nix CI was deferred.

Chosen: the gate has a flake job. It runs nix build .#refine .#refine-bin, nix flake check --no-build --all-systems, which evaluates every package and the development shell of every system, and nix develop --command ./scripts/toolchain.sh on Linux x86-64. It runs on every gate run that does not reuse a pass, manual dispatch included, so a change anywhere in the source that breaks nix build .#refine, as the failure above was, fails the commit that makes it. Under a reused pass it is skipped with the other lanes, and the reuse list requires it, so the run reused built the flake from the same tree, or from one that differs only in the four documents no lane reads. That is the whole of Nix CI: no derivation is cached, and the only other job that uses nix, rv64-qemu, takes its emulator from the flake.

The alternatives: building only when flake.nix, flake.lock or environments/pins.sh changed, decided by a diff against the event's base or by GitHub's record of the last build from the same three files: either leaves a source change that breaks the source build unseen until those files next change or the record expires, and a diff also skips wrongly after a run whose flake build failed. The maintainer chose to build on every run. And the whole of Nix CI, cached derivations and the test suite under nix, which the maintainer limited to building the flake.

Pinned by the gate's flake job, and scripts/tests/test_gate_inputs.py's Workflow case, which holds the reuse list to every job the aggregate needs, flake among them.

D586 — An explanatory edit may take its base from any branch's full run

Amended by D1648 and D1650: the key leaves out more than the four documents' content: the guides and the tree D1648 names, and the boards' cycles baselines.

The tour said nothing. The explanatory exception took its base only from a full run of a push to main, so a documents-only commit that closed an item after its branch's full gate cost one more full run before main could reuse it.

Chosen: under the explanatory exception the base is any complete successful push run of this repository from the preceding seven days, of main or of another branch, and a push to any branch of this repository may itself use the exception, as a push to main and a same-repository pull request by an author with write access could. Everything else stands: the tree differs from the base only in the content of the four top-level documents no lane reads, which scripts/gate_inputs.py lists; the base is an ancestor of every tip; every commit since it says Gate: explanatory; every required job, every matrix leg by its name, succeeded in a complete listing; and a run that itself reused a pass never supplies one. A branch's run is as trustworthy a base as main's because only someone with write access can push to a branch, and the tree key covers the workflow that run executed and every tool pin: a run of a weakened workflow can be reused only by a tree that still carries it, as with identical-tree reuse.

The alternatives: closing every item before its gate, which the process asked and which a finding after the gate defeats; and keeping main as the only base, which spends a full run on prose.

Pinned by scripts/tests/test_gate_inputs.py's test_a_full_run_of_another_branch_is_a_record and test_a_branch_push_may_use_the_exception, and the Decide cases that hold ancestry, declarations and the complete listing.

D1373 — The roadmap's own files leave an explanatory edit's key

Amended by D1648: docs/site/ is left out the same way.

The tour said nothing. D586 left the content of four top-level documents out of the tree key an explanatory edit is compared by, and ROADMAP.md's register was a table in one of them. The third roadmap keeps it as a file a row under roadmap/register/, with a generated overview, the maintainer's questions and the frozen inputs beside it, so an item's close, which deletes, restates or schedules rows and regenerates the overview, changed paths the key counts and could never reuse its candidate's gate.

Chosen: the gate's tree key leaves out the roadmap's whole directory, its paths as well as its content, and scripts/gate_inputs.py names it. A row added, edited or deleted, the register's regenerated overview, a question and an input are each an explanatory change like an edit to the roadmap itself. No lane reads the directory; check.py, which does, runs in the documents job on every event, reused or not. Everything else in D586 stands, and a candidate's own key, which identical-tree reuse compares, still counts every path.

The alternatives: keeping the key as it was, which makes nearly every item close a new tree needing its own full gate and boards run, and was the first answer given; and listing the register's files one by one, which a new row would escape.

Pinned by scripts/tests/test_gate_inputs.py's test_the_roadmap_tree_does_not_count_at_all and its Readers case, which names every tracked file that mentions roadmap/ and why no lane the key lets skip reads it.

D1648 — The derived guides no lane reads, and the site's renderer, leave an explanatory edit's key

The tour said nothing. D586 and D1373 left four top-level documents' content and the roadmap's own directory out of the key an explanatory edit is compared by. Two of one item's three merges of main in the survey of 2026-11-20 brought only docs/process.md, docs/environments.md and docs/site/*.py with the roadmap, and each cost a full gate and a boards run. The maintainer chose this on 2026-11-20.

Chosen: the content of the guides docs/benchmarks.md, docs/capabilities.md, docs/diagnostics.md, docs/documents.md, docs/environments.md, docs/ir.md, docs/measurement.md, docs/process.md, docs/server.md and docs/targets.md joins the four documents', and the tree docs/site/, paths too, joins the roadmap's, as scripts/gate_inputs.py's DOCUMENTS and CONTENT_FREE_TREES name them. Each was shown to be read by no lane the key lets skip: pages.yml, scripts/site.sh and check.py read them, and the files that name them otherwise do so in comments and messages. docs/commands.md and docs/library.md stay in the key, because test_cli_native reads them in the compiler-checks and release lanes, and so do docs/format.md and docs/from-c.md, which the Ada test program reads. docs/diagnostics.md is in the set because the explanations refine explain prints are generated from it into an Ada body that is not, so a change to what it says changes the key through that body. Everything else in D586 and D1373 stands: an edit is explanatory only when every commit says so.

The reason: these files explain; a sentence in them that changes a claim is checked by check.py, the pages workflow and review, not by a compiler lane, as for the four documents.

The alternatives: adding only docs/site/; and keeping D586 and D1373 as they stood.

Pinned by scripts/tests/test_gate_inputs.py's test_the_unread_guides_and_the_site_do_not_count, test_the_guides_a_lane_reads_count and its DocumentReaders cases, which name every tracked file that mentions one of them, the scripts tests a lane runs included, and why no lane the key lets skip reads it.

D1375 — Generated code is measured against committed baselines, size exactly in both directions

The tour said nothing of measuring what refine emits; D791's build report counts emission sites, and scripts/quality.sh measured five Linux x86-64 workloads at four profiles and held nothing over time.

Chosen: docs/measurement.md is the contract. Every supported target is measured at every level refine targets --json gives it and all nine optimization and specialization profiles, over the hosted set (the five Benchmark Game ports, runtime/measure-fibre-switches and runtime/measure-thread-switches) and the firmware set, each keeping its fixture's oracle. Size is the byte count of each allocated section of the linked image, read by scripts/measure.py's own ELF and Mach-O readers, and has no tolerance: a section that differs from the base commit's baseline in either direction fails unless the candidate's committed baselines record exactly the measured figure, so the diff of the baseline files names every key a commit changes. The base is the merge base with main, or the first parent on main, and a checkout too shallow to hold it refuses rather than compare with nothing. Each baseline records the linker's version line; a moved linker is named and judged by the figure alone. Images whose allocated sections are byte-identical are measured once.

The alternatives: failing growth alone, which lets a later change grow back into a recorded improvement unnoticed; a tolerance on size, which deterministic emission does not need; and keying a size by runner, which would re-baseline at every runner image.

Pinned by scripts/tests/test_measure.py's Compare and Images cases, and the gate's measure-size job.

The tour said nothing. The Cortex-M lanes link refine's assembly with a harness of their own, and the boards' bundles use refine's firmware link.

Chosen: a firmware workload's size is measured on the image refine itself links with compiler/tests/measure/entry.ldn, an entry that runs the fixture's hosted-form main and keeps its status, at the target's reference profile, the one a program importing no description gets. On Xtensa the reference's boot layout gives initialized data no load address, so a workload with initialized data links nowhere a board could boot it and its build report refuses, a defect the register records; Xtensa workloads link against the ESP32's and ESP32-S3's own descriptions instead, the boards'. Timing uses the image the timing lane runs.

The alternatives: the lanes' harness-linked images, which no user links; and the lanes' emulator profiles, which describe no chip.

Pinned by the gate's measure-size job, and the baselines it holds, compiler/tests/measure/baselines/xtensa.size.json among them.

D1377 — refine targets --json gives each level's features

The tour said nothing; refine targets listed the levels by name.

Chosen: each target's JSON object has features, an object from each level's name to the features it assumes, as compiler.feature. spells them. A tool that runs a level's code, scripts/measure.py among them, asks its processor for these rather than keeping a list of its own.

The alternatives: a feature table in each tool, which the test program's Host_Has_Level already had and which a new level would leave stale.

Pinned by commands/help and queries.

D1378 — Wall time is compared in pairs on one processor; emulator counts exactly

The tour said nothing.

Chosen: time is measured in four classes, which the runner table in docs/measurement.md assigns to each target and level. wall, on the native hosted runners, builds the candidate's compiler and its base's in one job and runs each configuration's two images interleaved, a fresh copy each run, judging the ratio of medians against the class's noise study, a pair past it timed again three times as often and judged on that, and one past twice it after a single sample judged at once, and a pair whose candidate image is the base's own bytes is not timed, and each image runs once untimed before its samples; committed wall figures are a trend, not a threshold, because a hosted runner's processor model changes from run to run. instructions, under QEMU's user mode for RV64 and on the Cortex-M lanes' machines, counts what the image's own code executed through compiler/tests/measure/qemu/count.c, at the fixture's own arguments, and is held exactly on every push, its study having found no spread. cycles reads a board's counter over a RAM run. size-only is where no deterministic count exists: Espressif's QEMU has no plugin interface, and FreeBSD arm64's guest is a whole emulated system. Wall time and cycles run on the weekly schedule and on a dispatch alone.

The alternatives: committed wall baselines keyed by processor, which would rarely meet a run on the same processor; emulator wall time, which measures the emulator; and counting at the timing arguments, which costs hours of emulation for a figure that is exact at any size.

Pinned by scripts/tests/test_gate_inputs.py's test_timing_runs_on_the_schedule_and_a_dispatch_alone, scripts/tests/test_measure_count.py, and the gate's measure-size and cortex-m-programs jobs.

D1649 — A dispatch times a key once on its branch

The tour said nothing. D1378's timing ran on the schedule and on every dispatch whatever its scope, so a dispatch after a merge that changed nothing the timing reads timed the same compiler again: three measure-time jobs, about 58 runner-minutes, and the boards' time steps, which take a leg from about 11 minutes on the rig to about 30. The maintainer chose this on 2026-11-20.

Chosen: a dispatch leaves out measure-time, the timing images and the boards' time steps when a successful dispatch of this repository on the same branch, under a week old, whose measure-time legs ran and passed in a complete listing, was made on a commit with the same gate key, and the two commits' bases, which the timing pairs the compiler with and holds the cycles to, found as measure.py base finds them against main as it now stands, have the same key too. The key is the one an explanatory edit is compared by, which leaves out only what no lane reads, so the compiler, the bundles and the measuring scripts timed are the ones this dispatch would time; no declaration is needed, because nothing the timing reads differs. gate_inputs.py physical decides it, and the aggregate accepts the skip on a dispatch alone and names the run. The schedule always times. A run that failed only in timing is still re-run in its failed jobs, not dispatched again.

The reason: a timing judges the compiler's code against the base's baselines; the same inputs give the same judgement, and timing them again spent runners and rig time on noise, which failed five of nine dispatches in the survey.

The alternatives: a scope=timing dispatch run once per item with boards dispatches untimed; and timing on every dispatch with only the re-run of failed jobs.

Pinned by scripts/tests/test_gate_inputs.py's TimingReuse cases and BoardVerdict's test_a_dispatch_may_take_its_timing_from_a_timed_run.

D1650 — The cycles baselines leave the key

The tour said nothing. A commit that recorded only the boards' cycles baselines, compiler/tests/measure/baselines/*.cycles.json, ran every software lane again, about 520 runner-minutes, though only environments/boards/timing.py reads those files, in the aggregate of an event that times the boards, from the base commit. The maintainer chose this on 2026-11-20.

Chosen: the gate's key leaves those files out, paths too, by scripts/gate_inputs.py's CONTENT_FREE_PATTERNS, so a commit that records them alone and says Gate: explanatory reuses the software pass. The size and instruction baselines, which lanes read, stay in the key. A candidate's identical-tree key still counts them, and the dispatch that judges the new baselines still runs.

The reason: no software lane reads them, and the evidence they change is the boards' timing, which a dispatch gives.

The alternatives: also letting the aggregate judge the previous dispatch's kept figures against the new baselines without measuring again, which was not asked for; and keeping the files in the key.

Pinned by scripts/tests/test_gate_inputs.py's test_cycles_baselines_do_not_count_and_other_baselines_do and its DocumentReaders case.

D1379 — The instruction counter declares the plugin calls it makes

The tour said nothing.

Chosen: count.c declares the dozen QEMU plugin calls it uses, in two forms, plugin interface 2 to 6 and 7, and scripts/measure_count.py builds it for the version the running QEMU accepts, asking the QEMU itself. It includes no <qemu-plugin.h>, which needs glib's headers and which the Cortex-M lanes' Debian QEMU does not ship; measure_count.py check-header holds the declarations to a QEMU's own header where one is installed. An RV64 program is counted with an environment of QEMU_CPU alone, since the runtime's start walks every variable and each cost 128 instructions, and in an address space QEMU reserves with -R, without which a differently placed heap moved one run in about fifty.

The alternatives: building against each QEMU's header, which Debian's does not have and which would need glib in every job.

Pinned by scripts/tests/test_measure_count.py.

D1380 — The stack report names each frame quantity as the build report does

The tour said nothing. D791's build report calls a routine's whole stack stack_bytes and its prologue's reserve frame_bytes; the stack report's frame_bytes was the whole stack.

Chosen: the stack report is landin-stack-report-2: each routine row carries frame_bytes, what its prologue reserves, and stack_bytes, its whole stack, with the build report's names and meanings, and depths add stack_bytes. A consumer that read version 1's frame_bytes asks for the version.

The alternatives: carrying only stack_bytes, which loses the figure the build report already compares.

Pinned by stack report/the build report counts on every target.

D1381 — The stage report says what scanning and parsing each source cost

The tour said nothing; the stage report gave each stage's time for the whole program.

Chosen: the stage report gains sources, in source order, each with its file, bytes and the processor time of its scanning and parsing steps; a source reused from the parse cache shows zero. Later stages walk every source several times with whole-program work between, so they are not divided among sources. The report stays landin-stage-report-1, since a field was only added, and nothing is measured when no report is asked for.

The alternatives: a version bump, which no reader needs.

Pinned by opt driver/stage reports measure each stage.

D1382 — A board's cycle count is the program's own reading around main

The tour said nothing; the rig's RAM runs judged a status alone.

Chosen: a timing RAM run starts the core's counter from the probe and lets the program read it: the measurement entry reads it just before main and just after it returns, and the probe stops the program at the return with a breakpoint, an Arm bkpt written over the return's udf, a hardware breakpoint on RISC-V and _landin_firmware_stopped on Xtensa, and reads the two words. The counters are DWT CYCCNT on the M33 and M7, mcycle on Hazard3 and the ESP32-C5, the vendor mpccr on the ESP32-C3, CCOUNT on Xtensa, and the RP2040's 1 µs timer at its 12 MHz crystal. A figure is the lower median of three runs; one past 2³¹ fails. A key names the board, its clock and where the code ran.

The alternatives: the probe zeroing and reading the counter, which on the ESP32-C3 counted the probe's own latency, the counter running while the hart is halted; and the probe polling for completion, which adds its interval to every figure.

Pinned by scripts/tests/test_board_timing.py and compiler/tests/measure/noise/cycles.json.

D2227 — The STM32H753 is timed from its tightly coupled memories

The tour said nothing; D900's RAM layout places the STM32H753's vectors, text, data and stack in the AXI SRAM, its executable data region, which the M7 reaches uncached over its AXI port. Timed there, the same code moved by 2 bytes at a time ran the sieve at speed in 7,317 to 10,652 cycles and SipHash in 510,115 to 541,009, repeating every 32 bytes, and a load soon after a store to the stack stalled. All ten slowdowns the board's baselines recorded with equal or fewer instructions were these.

Chosen: the maintainer's choice of 2026-11-23. The board's timing images run their text and read-only data from the ITCM, past its first eight bytes (D1115), and their data, BSS and stack from the DTCM, both single-cycle and never cached. environments/boards/timing.py build links them with refine's derived RAM script, its sections moved and checked against D546's contract; the vectors stay at the RAM layout's boot address, read only on an exception. From the TCMs the offset sweep's range falls under 0.6%, nine of the ten recorded pairs are gains or equal and the tenth, SipHash at none, is 0.45% slower, under the port's tolerance. The ITCM is where the board's own description places its text; the DTCM holds no DMA buffer in a timing image.

The alternatives: aligning loop heads or routines on Thumb-2, which would have to choose the good 32-byte phase rather than an alignment and gains nothing in the TCMs or with the caches on; spacing a load from the store before it in selection, which costs instructions everywhere for an uncached stack alone; widening the board's tolerance past placement's 46%, which hides regressions with the artefact; text alone in the ITCM, which kept fannkuch-redux 10% slower at none from the stack's stalls; a description of the board for timing, a second device profile for one harness; and changing D900 for every RAM build, which would move DMA buffers out of the controllers' reach.

Pinned by scripts/tests/test_board_timing.py's test_the_h753_times_text_from_itcm_and_data_and_stack_from_dtcm and compiler/tests/measure/baselines/stm32h753.cycles.json, whose keys name text:itcm,data:dtcm,stack:dtcm.

D1403 — Each backend places its own values over one liveness analysis

The tour said nothing; D211 leaves where a value lives to the optimizer.

Chosen: Landin.IR.Liveness is the one analysis every allocating backend reads: each slot's live interval in the order the backends lay a routine out, with the whole routine as its conservative fallback, and each block's loop depth. Placement stays each backend's own. Which registers a value may take at a position depends on what selection writes there, and the two allocators that exist differ exactly in that: x86-64's asks of each operation which caller-saved registers selection writes in it, while arm64's knows only that a call or an assembly block overwrites x0-x7 and d18-d31. What a save costs, which registers carry arguments and which scratch registers selection keeps differ as well. One allocator would carry all of that as parameters and decide nothing itself. The RISC-V allocation, the next to be written, shares arm64's placement where the two agree rather than writing it again; Cortex-M's low and high registers and Xtensa's native selection are placed by their own work.

Amended on 2026-11-20: Xtensa's placement reads its routine's words, the scratch words its selection writes among them, over the routine's own text rather than this analysis, and places them in the machine layer that knows what each Xtensa instruction writes (D1627).

The alternatives: one allocator over a register description for every backend, which would first have had to describe each selection's scratch use per operation, and would have put the cheapest measured gains, arm64's allocator at size and RV64's near jumps, behind a rewrite of two allocators that work; and, for Xtensa, an allocator over the RISC-V form, which leaves its machine layer's loads and stores of every logical word in place.

Pinned by ir opt/slot intervals, ir opt/slot interval fallback and ir opt/loop depths.

D1404 — arm64 keeps values in registers at size

The tour said nothing. arm64's allocator placed slots and values in registers at speed alone; size reused scalar homes, and the measurement of generated code (compiler/tests/measure/findings.md) found its .text at 1.71 times speed's and its executed instructions at 2.2 to 3.7 times.

Chosen: size runs the allocator as speed does, with two differences, both x86-64's at size: a slot's references are counted once each rather than weighted by the loops around them, and a source variable given a register holds it for the whole routine, while the single-block spans go to compiler temporaries alone, so that a debugger finds every variable anywhere in its routine. An integer narrower than the register holding it is the register's low bytes, as DWARF has it; the LLDB sessions read a value at its type's width, as LLDB prints it, since its GetValueAsSigned read an i32 of -1, held zero-extended, as 4294967295. A routine with an assembly block still keeps its slots in their homes. Over the seven hosted workloads .text at armv8-a size falls from 497,380 to 327,272 bytes, and under QEMU the instructions executed at size fall to 0.30 of what they were for mandelbrot 200, 0.37 for fannkuch-redux 8, 0.38 for fasta 250,000 and 0.66 for binary-trees 12; speed is unchanged.

The alternatives: homes at size, the measured cost above; and speed's intervals for source variables at size, which saves a few more registers and loses variables from the debugger outside their intervals.

Pinned by arm64 selection/size keeps a loop in registers, backend/arm64 scalar homes reuse and promote, the Darwin LLDB sessions and compiler/tests/measure/baselines/.

D2164 — arm64 makes a stored value in its slot's register

The tour said nothing. arm64 gave a value its slot's register only where the store opened the slot's interval; a value stored into a slot already held over a loop was made in a register of its own and moved, so SHA-256's round ended add w24, w19, w23 then mov x6, x24 for each of its three sums.

Chosen: at speed, a value whose last use stores it into a slot that holds a register over the store is made in that register when, from the value's definition up to the store, no load of the slot and no use of another value sharing the register reads what the slot held, and the routine has no assembly block. The store then moves nothing. A debugger stepping between the definition and the store sees the variable's new value a few instructions early. Under QEMU at armv8-a, with D2165, speed executes 14.1% fewer instructions on mandelbrot, 12.0% on SipHash-1-3, 10.4% on fasta, 7.8% on fannkuch-redux and 5.5% on SHA-256, and every hosted image's .text is 0.5% to 1.6% smaller.

The alternatives: a copy-coalescing pass over the whole routine, which the allocator's one scan has no place for; and the same rule at size, whose source variables hold their registers for the whole routine for the debugger (D1404).

Pinned by arm64 selection/a stored value is made in its slot and compiler/tests/measure/baselines/.

D2165 — arm64 complements a 32-bit value in its 32-bit view

The tour said nothing. ~x of a u32 or i32 was mvn of the whole register and a ubfx to clear the upper half.

Chosen: a 32-bit complement is one mvn of the w views, which zero-extends what it writes; narrower and 64-bit complements keep their form.

The alternatives: folding ~a & b into bic, which needs the complement's emission held back for its one use; left for a measured need.

Pinned by arm64 selection/a stored value is made in its slot.

D1503 — RISC-V keeps values in registers its emitted text does not write

The tour said nothing. RV64 and RV32 gave every slot and value a frame home at every objective; the measurement of generated code (compiler/tests/measure/findings.md) found 37.8% of RV64's instructions and 53.9% of RV32's to be stack loads and stores, and RV64 executing five to seven times arm64's instructions on the same runs.

Chosen: at size and speed RISC-V places slots and values in registers over Landin.IR.Liveness as D1403 has each backend do. Its selection names nearly every integer register as scratch somewhere (x20, x21 and x23-x25 carry each comparison's operands and flags, x9, x18 and x19 form frame addresses and masks, x10-x17 carry calls), so instead of describing what each operation writes, a routine is emitted once with every value in its home while the text each position writes is recorded, a call writing every register the calling convention does not preserve. The allocator then offers x10-x17, which cost no save, and x9, x18, x19 and x22, which every routine saves already (D678 prunes an unnamed one at XLEN 32, where they are offered only where enough scalar traffic pays for the save), to a location only where that record writes none of them over its interval; x20, x21, x23-x27 and the temporaries are never offered (D1687 now offers x20, x21 and x23-x25). A parameter takes only the argument register it arrives in, since the entry stores each parameter while later ones still wait in theirs. The routine is emitted again with that plan and its writes recorded again; if any meets a register a location holds there, which selection's own writes of a result at its operation do not, the routine keeps its first emission. The placement is arm64's (D1404), each eligible slot over its interval by weight, then each value from its definition through its last reader, sharing a slot's register where it is that slot's content, and at size a source variable for the whole routine; the usage both read before placing, the order, last readers, eligibility and weights, is one package, Landin.Backend.Placement. At XLEN 32 an eight-byte slot or value takes a pair, x10-x11 to x16-x17, x18-x19 or x9-x22. Held operands are read where they are, and an arithmetic, comparison, constant or float result is written to its own register directly. A narrower scalar stays zero-extended in its register, as a load leaves it, and RV64's debugging information names the register, held after the interval's last position through the rest of its block until something writes it, as arm64's is. Over the seven hosted workloads RV64's .text falls 15.8% at size and 19.4% at speed, and under QEMU the instructions executed at speed fall to 0.55 of what they were for mandelbrot, 0.67 for fasta, 0.72 for fannkuch-redux and 0.82 for binary-trees, and at size to 0.56 to 0.87; RV32's firmware .text falls 17.5% at size and 18.4% at speed at rv32imac.

The alternatives: a fixed set of registers selection never names, which would first have rewritten selection's comparisons, address forming and call sequences to free one; per-operation write sets written beside selection, as x86-64's allocator asks of each operation, which every change to selection would have to keep true by hand; trusting the second emission without checking it, which leaves a write the record missed to corrupt a held value silently; and homes, the measured cost above.

Pinned by backend/RISC-V keeps values in registers, the RV64 GDB sessions, the RV32 lanes' corpus and compiler/tests/measure/baselines/.

D1687 — RISC-V branches on a comparison's operands where they are

The tour said nothing. RISC-V has no condition flags, and selection emulated Arm's: every comparison copied its operands into x20 and x21 for the branch that followed, a float comparison set x20, x21 and x23-x25 from seven instructions, and every addition or subtraction, checked or not, computed its carry and overflow into x23 and x24 and left its result in x20 against zero in x21. After D1503 these were 22% of RV64's instructions over four hosted workloads, and they kept five registers from the allocator.

Chosen: a comparison records its operands where they are and emits nothing; the branch that follows reads them there (blt a0, a1), a literal other than zero is loaded into x29, and zero is zero. A comparison's result is computed directly, with slt, sltu, seqz or snez and at most an xori, and a float comparison's with the one feq, flt or fle its condition needs, operands swapped for greater; only a carry or overflow test still branches. An addition or subtraction records its result against zero, and computes a carry, the unsigned check, or an overflow, the signed one, only where a check reads it, into x30: a borrow is sltu of the operands before the difference, a carry sltu of the sum below the operand it does not overwrite, and an operand the result overwrites is first copied to x7 or x28. An addition by a literal that fits twelve bits is addi. Every temporary selection writes after an operation's own result, at its position, is one no location is offered, since the recorded writes (D1503) cannot tell it from the result's own write. A line that writes a recorded operand, calls, or is a label marks the comparison stale, and a branch on a stale one is a compiler defect rather than a wrong program. x20, x21 and x23-x25 are offered to the allocator after x22, x20-x21 and x24-x25 as RV32 pairs.

Over the seven hosted workloads, with D1688 and D1689, RV64's instructions executed under QEMU fall to 0.73 of what they were at speed, 0.68 at size and 0.73 at none (fasta 0.56, fannkuch-redux 0.59, mandelbrot 0.71, binary-trees 0.75), and the four workloads' lines naming x20, x21 or x23-x25 as a destination fall from 22% to 1.1-1.4%, now held values.

The alternatives: keeping the emulation and only offering the registers between comparisons, which leaves the copies; computing every condition into a register first, as the float form did, one instruction more per branch; and fusing the comparison into the branch in the IR, which would ask the same of every backend for RISC-V's want alone.

Pinned by backend/RISC-V compares without copies, the RV64 fixtures under QEMU, the RV32 lanes' corpus and compiler/tests/measure/baselines/.

D2112 — On RISC-V a comparison only its branch reads is the branch

The tour said nothing. After D1687 only the checks inside an operation branched on their operands: an if or a loop's test made its truth value with slt, sltu or xor and seqz, at most with an xori, and the block's branch tested it with bnez and jumped with j to the other arm, so RV32's pick spent slt x16, x9, x18; bnez x16, .L2_2; j .L2_3 on if a < b. Every jump to the block laid out next was an instruction.

Chosen: when the value after a comparison in its block is the branch that is the comparison's only reader, the comparison is that branch, on its operands where they are (bge x9, x18), and the truth value is never made; a float comparison is its one feq, flt or fle and the branch on that. An edge to the block laid out next falls through: a branch whose target is next is the inverse branch to the alternative, exact for an unordered float pair since it inverts the test of the truth value rather than the relation, and a jump to the next block is no instruction. This holds at every level and objective, as D1566 has it on Cortex-M, and the far forms (D678) are unchanged, since a branch is lengthened after it is chosen. A wide comparison on RV32 and a soft-float one, whose answers are a sequence or a helper's, keep their truth value.

Every RV64, RV32 and Xtensa configuration is smaller: the seven hosted workloads' RV64 images by 1.6% at size to 2.3% at none, and their instructions executed under QEMU fall 2.7% at size, 3.4% at none and 4.4% at speed (fannkuch-redux 7.8%, thread and fibre 5.4%); the firmware set's RV32 images fall 1.4% to 2.3% (fannkuch-redux 6.5%, merge-sort 5.1%). Of RV64's 3.4% fewer instructions over every configuration, the fusion is 2.0% and the fall-through 1.4%.

The alternatives: a peephole over the emitted text, which would have to prove the truth value's register dead where the IR already says it is read once; fusing in the IR, which D1687 declined as asking the same of every backend; and threading the forwarding blocks lowering leaves, a jump to a block that only jumps, which is target-neutral and belongs to the IR's simplification.

Pinned by backend/RISC-V compares without copies, the RV64 fixtures under QEMU, the RV32 lanes' corpus and compiler/tests/measure/baselines/.

D1688 — A RISC-V routine's frame holds only the saves its text names

The tour said nothing. RV64 saved x9 and x18-x26 in every routine and RV32 x9 and x18-x27, through a frame laid out before the text that decides what is named; D678 pruned RV32's unnamed saves after the fact but left their homes in the frame, up to 44 bytes more than the saves needed.

Chosen: a routine that is not naked and holds no assembly block is emitted, the callee-saved registers its lines name apart from their saves and restores are collected as the lines are written (x26 after its far jumps are settled), and when that is fewer than its plan saves, it is emitted again with only those saves and a frame laid out for them. The second emission is kept when it names no register outside its saves and, for a routine holding registers, its writes still hold (D1503); otherwise the first is written again. At none a routine that holds nothing and calls nothing saves nothing.

With D1687 and D1689, RV64's .text falls a further 20.5% at none, 26.3% at size and 24.3% at speed, and RV32's 5.9-6.2%, 9.3-10.1% and 9.9-10.8%; RV64's frame for a leaf routine falls from 112 bytes to 32, arm64's. Three corpus programs that overran the RV32 lanes' 32 KiB at none now fit, and their D698 limits are removed.

The alternatives: predicting the saves before emission, which would describe selection's every register use beside it, the cost D1503 avoided; and laying RV32's frame out again only, leaving RV64 to save ten registers a routine.

Pinned by backend/RV64 jumps are near within a routine, stack report/a closed graph on every target, the RV64 GDB sessions and compiler/tests/measure/baselines/.

D1689 — RISC-V divides by a constant power of two with a shift or a mask

The tour said nothing. RISC-V divided an unsigned value by a constant 2 ** k with divu, several cycles on every core the rig holds, where Cortex-M shifts (D1626) and Xtensa shifts and masks, and formed every remainder from a quotient, a mul and a sub.

Chosen: an unsigned division of a value no wider than XLEN by a constant 2 k is srli by k, and its remainder andi with 2 k - 1 where that fits twelve bits, else slli and srli by XLEN - k, at both XLENs and every objective; neither can trap. Any other remainder is rem or remu, which truncates as the quotient does and is zero for the one signed quotient that overflows, so its check stays the quotient's alone.

The alternatives: a target-neutral rewrite in simplification, which D1626 declined for the backends that divide in hardware; and a multiply by a reciprocal for every constant divisor, a larger change left to a measured need.

Pinned by the RV32 lanes' corpus, the RV64 fixtures under QEMU and compiler/tests/measure/baselines/.

D1563 — Cortex-M reaches its homes from sp, and a value's home is a word

The tour said nothing. Cortex-M formed every home's address in r6, from r11 or sp, before loading or storing it: the measurement of generated code (compiler/tests/measure/findings.md) found 30.5% of the firmware set's instructions at armv6-m speed-auto forming addresses and 35.2% loading and storing homes.

Chosen: where sp's distance from the frame is known, which in a leaf is always and in a framed routine from each block's start until an assembly block names sp, a home is read and written with sp's own offset form: Thumb-1's word form up to 1020 bytes, and at the Thumb-2 levels the byte, halfword and word forms up to 4095. A scalar value's home is at least a word, and one narrower than a word is written zero-extended, through r7 unless the register already is, so that a word load reads what a byte or halfword load would have, which armv6-m can do from sp and a narrower load cannot. A source slot keeps its own width, since its cell may be reached by address. Elsewhere a home's address is formed in r6 as before.

The alternatives: byte and halfword homes formed in r6 at armv6-m, which kept the address forming this removes for every bool and narrow value; a frame pointer in a low register, which costs one of the eight.

Pinned by backend/Cortex scalar homes reuse adjacent address, cortex ABI/scalar spill homes and compiler/tests/measure/baselines/.

D1564 — Thumb-2 branches directly and makes constants without literals

The tour said nothing. Every level inverted a conditional transfer over an absolute jump through r7, and a constant MOVS could not make came from a literal island.

Chosen: at the Thumb-2 levels a transfer is one B or conditional B, whose narrow or wide encoding the assembler chooses within its 16 MiB and 1 MiB reach, and a constant is MOV.W's modified immediate, MOVW, or MOVW and MOVT, without a literal. ARMv6-M keeps its lowering and the literal reach controls.

The alternatives: literals at size, a word and a load against MOVW and MOVT's eight bytes, declined for one form at every objective.

Pinned by cortex ABI/local branches, the devices lane's cached consumer, which reads a register's address from a MOVW and MOVT pair as from a literal, and compiler/tests/measure/baselines/.

D2407 — ARMv6-M reaches a nearer distant edge with B

The tour said nothing. ARMv6-M's conditional branch reaches 256 bytes and its B 2 KiB, and an edge past the conditional branch's reach inverted the condition over a load of the target's address and a bx r7, twelve bytes with the address word, wherever it was.

Chosen: an edge past a conditional branch's reach but within B's, by the same count of emitted lines, four bytes a line, that already chooses the direct branch, keeps the inverted branch over its skip label and replaces the long jump with B. Laying firmware loops out tested at their foot (D2408) put a loop's step after its body, which sent a body's early exits to the step from further away, and without this ARMv6-M's images grew by up to 1.3% at size.

The alternatives: the long jump wherever the conditional branch does not reach; and exact byte counts, the assembler's own choice of encoding.

Pinned by cortex ABI/local branches and compiler/tests/measure/baselines/.

D1565 — A Cortex-M call loads its scalar register arguments directly

The tour said nothing. Every call stored its register arguments in an eight-byte-rounded area below sp and loaded them back with LDMIA.

Chosen: a call whose register arguments are scalars reserves only its stack arguments' area and, last, loads each register argument from where its value is, which reads no other register; a call that passes a C record in core registers stages them as before.

The alternatives: the staging for every call, its cost the area's reservation, two stores and a load per argument.

Pinned by cortex ABI/outgoing calls and stack report/a closed graph on every target.

D1566 — A comparison only its branch reads sets the branch's flags

The tour said nothing. A comparison made its truth value in a home with two branches, and the branch that read it compared it with zero; a jump to the block laid out next was a jump.

Chosen: when the value after a comparison in its block is the branch that is the comparison's only reader, the comparison's flags choose the edge, and an edge to the block laid out next falls through, at every level and objective.

The alternatives: the truth value kept and compared with zero, two branches and a home's store and load more for every loop test; the fusion at size and speed alone, which leaves none paying for what costs nothing to save.

Pinned by cortex ABI/local branches and the Cortex-M corpus.

D1567 — Cortex-M keeps values in low registers its emitted text does not write

The tour said nothing. Cortex-M gave every slot and value a home at every objective.

Chosen: at size and speed Cortex-M places slots and values as RISC-V does (D1503): the routine is emitted once with every value in its home while the core registers each position writes are recorded, a call writing r0-r3, r12 and lr; a location takes one of r4-r7, r3 or r1 only where that record writes none over its interval, r4-r7 offered first in a routine that calls, which saves them anyway, and last in a leaf, which saves each it names; the routine is emitted again and keeps its first emission if any write meets a held register. A parameter may take any of them, since the entry stores the incoming registers before it reads any. An eight-byte scalar keeps its home, as does a float where the float unit computes it (D1771 now holds that float in a VFP register). A narrower scalar is held zero-extended. Held operands are read in place by word arithmetic, comparisons, branches, indirect accesses and indexing, and their results, constants and loads are written to their own register. Cortex-M's debugging information describes no local, so a source variable's register is held over its live interval at size too, where D1503 holds it throughout; Landin.Backend.Placement.Measure takes that as a parameter.

The alternatives: a fixed register set selection never names, which r0-r7's use as scratch leaves empty. High registers at the Thumb-2 levels (D1772), float values in VFP registers (D1771) and pairs for eight-byte values were not taken here.

Pinned by the Cortex-M corpus at every level, the firmware and evidence lanes, and compiler/tests/measure/baselines/.

D1568 — At the Thumb-2 levels a truth value comes from an IT block

The tour said nothing. A comparison's truth value was made with two branches at every level.

Chosen: at the Thumb-2 levels a word comparison whose value is kept makes it with ITE and two conditional MOVs; ARMv6-M keeps its branches.

The alternatives: the branches at every level, one more instruction and a taken branch for each kept comparison.

Pinned by the Cortex-M corpus at armv7-m, armv7e-m and armv8-m.main.

D1569 — Cortex-M's code labels are assembler-local

The tour said nothing. A block's label and the emitter's own labels were symbols, L3_1 and Lcm_step_17, so a listing split a routine at each, and an image's identity moved with the program's item count: an import that reached nothing changed every label's number and so the linked ELF's symbol table.

Chosen: they are .L labels, outside the object's symbol table. A data object keeps its local symbol.

The alternatives: the lane guide saying where a routine's instructions are found and the record comparison saying what it is sensitive to, which leave every listing split and every record fragile; labels numbered within their routine, which keeps them in the symbol table.

Pinned by the firmware lane's unused-import case, which links the same program with and without an import it reaches nothing of and requires the same file.

D1570 — A framed routine saves the float registers its blocks declare

The tour said nothing. With a float unit, a framed routine holding any assembly block saved and restored all of d8-d15, although a block declares each call-preserved float register its text names (D630).

Chosen: it saves the run from the lowest to the highest of d8-d15 its blocks declare, an s16-s31 declaration counting as the d register that holds it, and none when they declare none.

The alternatives: a list of exactly the declared registers, which VSTM cannot store in one instruction when the run has gaps; all eight, sixty-four bytes of stack and sixteen transfers for one register.

Pinned by the firmware lane's float cases and the Cortex-M corpus at armv7e-m with a float unit.

D1571 — A Thumb-1 branch to a trap is a BL

The tour said nothing. At ARMv6-M a branch too far for B to a routine's trap inverted its condition over a load of the trap's address into r7 and BX, ten to twelve bytes.

Chosen: a trap never returns, so a Thumb-1 branch too far for B reaches one with BL, four bytes, which writes only lr; a routine whose only BLs are to its traps is still a leaf, the build report counts no call for them, and register allocation sees no write but lr.

The alternatives: a trap stub within B's reach of every branch, which needs a placement pass the emitter does not make; the inverted branch over a load, its cost above and a write of r7 the allocator must avoid.

Pinned by the firmware lane's leaf and trap cases and the Cortex-M corpus at armv6-m.

D1624 — Two shifts that rotate are one rotate on x86-64 and arm64

The tour said nothing; [0320] has shifts and no rotate. A rotate written as (x << n) | (x >> (w - n)) was two shifts, an | and the registers both shifts held: SipHash-1-3's round spent about 90 instructions where C spends 14, its temporaries spilled to the frame.

Chosen: at size and speed, on x86-64 and arm64, simplification turns an |, ^ or +% of x << n and x >> m into Rotate_Left of x by n, when x is one unsigned value of 32 or 64 bits, n and m are constants, n is in 1 to the width less one and n + m is the width; either shift may come first. x86-64 selects rol and arm64 ror by the width less n. Both shifts are then dead, and a shift whose amount is unsigned, or a constant past zero, is removed as any unused pure value is, since only a negative amount traps. On 16 bytes SipHash-1-3 at speed falls from 1,041 to 730 instructions, its round from about 90 to 15, all in registers, and a SHA-256 of 64 MiB from 10.8 G to 8.9 G instructions.

The alternatives: fusing the pair in each backend's selection, which must keep x alive to the | against liveness that ends it at the second shift; forming it on every target, where RV64 and RV32 without Zbb, Thumb-1 and Xtensa would select the shifts again; a rotate in the language, a source change for what the optimizer can recognize; and narrower widths, which neither instruction set rotates at their width.

Pinned by runtime/shifts-that-rotate at every profile on every hosted target, x86 opt/shifts that rotate and arm64 selection/shifts that rotate.

D1625 — x86-64 keeps floats in XMM registers at size

The tour said nothing. x86-64 offered XMM8 to XMM15 at speed alone, so at size every float lived in its home: mandelbrot executed 2.3 times the instructions at size that it executes at speed, for a .text 1.6% smaller. A float an element, field, pointer or module value load produced went through a general register and its home at every objective, and fasta's search compared each element from memory.

Chosen: size allocates XMM registers as speed does, with size's own rules for source variables (D1404); SysV saves no XMM register, so a float in one costs no prologue, and its operations are shorter than their frame forms. A float an element, field, indirect or datum load produces may take one, as a slot's load does, and is loaded straight into it. At size mandelbrot executes 0.435 of the instructions it did and its .text shrinks; fasta and binary-trees execute 8% fewer.

The alternatives: speed alone, the measured cost above; and an XMM register for a source variable over its interval at size, which loses it from the debugger outside it.

Pinned by compiler/tests/measure/baselines/ and the x86-64 debugger sessions at size.

D1626 — Cortex-M divides by a constant power of two with shifts

The tour said nothing. Cortex-M0 has no divide instruction, so an unsigned % 8 called __aeabi_uidivmod and / 16 __aeabi_uidiv.

Chosen: an unsigned division by a constant 2 ** k, k from 1 to 31, is lsrs by k, and its remainder lsls and lsrs by 32 - k, at every Cortex-M level and objective: neither can trap, as a nonzero divisor's division cannot.

The alternatives: a mask, which needs the constant in a register on Thumb-1; and a target-neutral rewrite in simplification, which RISC-V, Xtensa, x86-64 and arm64 do not need for speed, each dividing by a constant already or in hardware.

Pinned by the Cortex-M corpus and compiler/tests/measure/baselines/.

D2088 — x86-64 offers %r10 and %r11 where selection does not write them

The tour said nothing. x86-64 allocated nine general registers; %rax, %rcx, %rdx, %r10 and %r11 were selection's scratch everywhere, where C's code uses fifteen. SHA-256's compression round kept three of its eight words in the frame, and SipHash-1-3's byte loop reloaded its slice's pointer and length from the frame for every byte.

Chosen: at size and speed, %r10 and %r11 are caller-saved locations like %rsi to %r9. A value or slot may hold one only where no operation in its interval writes it: a call, switch, copy, clear, fill, variant selection or assembly block, as for every caller-saved register; a packed field or element access, which reaches its word through %r10 and masks through %r11; preparing a stack, which forms its limit in %r11; a fail, and a leave from a routine that may fail, which write the failure code in %r10; and a C entry, which transports its arguments through both. The frame's stack probe runs before any parameter moves, so it excludes nothing. A store that stages a value from memory stages it through %rdx instead of %r11, since no element or indirect store address names %rdx, and selection refuses as a compiler defect a packed access the allocator did not see. At speed a SHA-256 of 64 MiB falls from 8.90 G to 8.69 G instructions, two of its eight words left in the frame, SipHash-1-3 from 7.30 G to 6.76 G and fannkuch-redux by 4.8%, and every hosted workload's .text shrinks at both objectives.

The alternatives: %rcx and %rdx, which shifts, division, cmpxchg, string moves and most addressing sequences write; narrowing %r8 and %r9's packed-atom rule to packed parts, which gave SHA-256's eight words registers its round's temporaries then lacked, 8% more instructions at speed; and capping how many registers slot intervals take, which cost reverse-complement 2.6% to 6.3%.

Pinned by the runtime corpus at every profile on x86-64 and compiler/tests/measure/baselines/.

D2156 — x86-64 reads a value where its one use lies

The tour said nothing. With no register free, SHA-256's round moved each round constant, schedule word and majority's a & c into the accumulator, to a frame home and back into an add: three instructions where one reads memory.

Chosen: at size and speed, a value whose one use is the next operation, an integer operation selection makes with its binary or unary forms (add, subtract and their wrapping forms, the bitwise operators, imul, rotate, complement) or a store to a slot, has no location when no register is free for it. A load that is no packed part is read there as that operation's memory operand, and any other integer operation leaves its result in the accumulator where it computed it. A load that is such an operation's right operand is read as its memory operand even with a register free. The operation then takes none of the registers the folded address names, and selection reads the operand before it writes the accumulator or the result's register. At speed SHA-256 of 64 MiB falls from 8.50 G to 8.09 G instructions.

The alternatives: offering %rcx and %rdx, which selection's address and shift sequences write; and a peephole over the emitted text, which cannot see liveness.

Pinned by x86 opt/operands in place and compiler/tests/measure/baselines/.

D2157 — x86-64 computes a stored value in its slot's register

The tour said nothing. A value stored into a slot held in a register was computed in a register of its own and moved there: SHA-256's e = d +% first and a = first +% second, and mandelbrot's real and imaginary parts, each ended in a mov.

Chosen: at size and speed, a value takes the register its slot holds when its first store writes it into a slot held in a register over the value's whole span, or it starts a chain of values, each the next one's left operand, that ends in such a store; the span is at most 32 positions; nothing else loads or stores the slot within it; no load of the slot read in its register is still to be read; and no operand but the left one lives in that register. General and XMM slots alike. The store then moves nothing, and later uses read the slot's register. With D2158 SHA-256 at speed falls to 7.88 G instructions, and every other hosted workload executes fewer. A debugger shows the variable's new value a few instructions before its store.

The alternatives: arm64's D2164 form, which requires the store to be the value's last use and follows no chain, where mandelbrot reads both parts after their stores; and coalescing in a pass of its own.

Pinned by x86 opt/operands in place and compiler/tests/measure/baselines/.

D2158 — An x86-64 add into a third register is one lea

The tour said nothing. An add into a register holding neither operand was a mov and an add.

Chosen: at size and speed, a 32- or 64-bit add with no overflow check reading its flags, of a register and a register or an imm32, into a register holding neither operand, is one lea.

The alternatives: none worth a register: lea sets no flags and costs what add does.

Pinned by x86 opt/operands in place.

D2159 — x86-64 float slots take XMM1 to XMM7 over call-free intervals

The tour said nothing. Float slots took XMM8 to XMM13 alone, so mandelbrot's six slots filled them and left nothing for a constant D2149 would hold, while XMM1 to XMM7 went unused.

Chosen: at size and speed, a float slot that finds XMM8 to XMM13 taken may take XMM1 to XMM7 when no call or stack switch lies anywhere in its interval, its last position included: only a C call's setup writes those registers. A value takes one only as such a slot's, read in place, by D2157, or inheriting a left operand there when no call lies up to its last use. D2149's x86-64 float budget is 13 for a loop without a call. Mandelbrot at speed falls from 2.331 G to 2.238 G instructions and reverse-complement from 2.151 G to 1.910 G. DWARF names an XMM register by its number.

The alternatives: offering XMM1 to XMM7 to values too, which would need the argument moves at a C call made in parallel.

Pinned by x86 opt/float slots below XMM8 and compiler/tests/measure/baselines/.

D2092 — x86-64 reads float constants from a read-only pool

The tour said nothing. x86-64 has no load-immediate into an XMM register, so at size and speed a float constant was built in every block that used it through %rax, movabsq and movq: mandelbrot's in_set loop rebuilt 2.0 and 4.0 on every iteration, four of its 25 instructions.

Chosen: at size and speed the object holds one read-only pool, an entry per bit pattern and width, each in a mergeable .rodata.cst4 or .rodata.cst8 section of its own, so the link keeps only the entries a retained routine reaches; the entries are emitted in pattern order. A float constant every use of which is an operand of a float add, subtract, multiply, divide or comparison has no location, and those instructions read it as a RIP-relative memory operand. Any other float constant held in an XMM register is loaded from the pool with one movss or movsd. A zero there stays xorps, and none builds constants as before. mandelbrot executes 8.0% fewer instructions at speed and at size, fasta 0.9% fewer.

The alternatives: holding the constant in an XMM register across the loop, which the block-local value model cannot express without hoisting; and building it in a general register as before, the measured cost above.

Pinned by x86 opt/float constants come from a pool and compiler/tests/measure/baselines/.

D2096 — A hosted loop is tested at its foot

The tour said nothing. Every backend lays blocks out in the IR's order, which is lowering's creation order: a loop's test at its head, the body, the code after the loop, then the step. Each iteration jumped to the step and the step jumped back; SipHash-1-3's and SHA-256's loops reached the step through a jmp to a block of one add and a jmp. x86-64 at speed sent jumps past blocks that only jump on but still emitted 415 of them across the hosted workloads, and arm64 executed them.

Chosen: at size and speed, for a hosted target, Landin.IR.Layout runs after every other pass. A jump or branch to a block holding only a jump goes to where that chain of jumps ends, unless a branch's two edges would then reach one block, and the blocks nothing reaches any more are dropped. A loop, a back edge's natural loop, whose head ends in a branch with one edge out of the loop is laid out as its other blocks in order, then the last of them to jump straight back to the head, then the head, then the block the head exits to, then the other blocks that stood among the loop's; inner loops are placed first, a loop's blocks stay together, and blocks are renumbered to the new order. The body falls into the step and the step into the test, which branches back to the body's top: one taken branch and no unconditional jump an iteration, and one jump on entry. x86-64 aligns the block a foot test branches back to by 32 bytes at speed. On x86-64 every hosted workload executes 0.5% (binary-trees) to 8.9% (fasta) fewer instructions at speed and 0.8% to 8.5% fewer at size, in a smaller .text but for the fibre switches at speed, 64 bytes of padding larger; on arm64 SipHash, SHA-256 and fannkuch-redux execute 3% to 5% fewer. Firmware targets kept lowering's order until D2408.

The alternatives: a per-backend layout permutation, which DWARF's range and location lists, liveness and loop-head alignment would each have had to follow; duplicating the test at the loop's foot, which grows code; x86-64's own jump threading alone, which kept the dead blocks and left arm64 without it; and speed alone, which forgoes size's smaller and faster code.

Pinned by x86 opt/loop nesting, x86 opt/speed places code, x86 opt/caller-saved slots, the debugger lanes on linux-x86-64 and linux-arm64, and compiler/tests/measure/baselines/.

D2408 — A firmware loop is tested at its foot

The tour said nothing. D2096 laid out hosted targets' blocks alone, so on Cortex-M, RV32 and Xtensa each iteration of a loop jumped to its step and the step back to the test at its head, the head was fallen into on entry, and D2308's word alignment, which pads only a head nothing falls into, reached few firmware loops.

Chosen: at size and speed, Landin.IR.Layout lays out every target's blocks, firmware's as hosted's: blocks that only jump on are jumped past and dropped, and a loop is tested at its foot. The block a foot test branches back to is entered by the jump to the test, so D2308 puts it on a word on Thumb-2 and compressed RV32 at speed. On the Cortex-M lanes at speed against the item's base, ARMv7-M executes 9.6% fewer instructions on the sieve, 4.5% on binary search, 1.9% on merge sort, 1.2% on fannkuch-redux, 0.3% on SipHash and 0.2% on mandelbrot, 4.7% on mandelbrot with the double-precision float unit, and ARMv6-M, with D2407, 6.7%, 3.2%, 2.1%, 1.2%, 0.2% and 0.0%. Every firmware image at size and speed is smaller: Thumb-2 by 0.6% to 5.0%, ARMv6-M by 0.6% to 5.4%, RV32 by 0.2% to 1.9% and Xtensa by 0.4% to 1.1%. On the boards at speed the sieve takes 6.7% (ESP32-C3) to 18.7% (ESP32) fewer cycles, binary search 3.0% to 16.3% and merge sort 2.5% to 11.1%; the ESP32's and ESP32-S3's fannkuch-redux take 1.1% more, the STM32H753's SipHash 1.3% more, which moves with its code's placement, and the ESP32-C3's and the Hazard3's mandelbrot at size 0.3% more.

The alternatives: a per-target choice of which loops to turn, which the measurements gave no case for; and keeping lowering's order on ARMv6-M, whose distant edges grew until D2407.

Pinned by cortex ABI/Thumb-2 selection forms, cortex ABI/local branches, the boards' cycles and compiler/tests/measure/baselines/.

D2148 — A slot's one constant store reaches the loads it dominates

The tour said nothing. Values are block-local, so for t in usize(0)..<64 kept 64 in a slot stored once, and x86-64 reloaded it from the frame every round of SHA-256 (movq -552(%rbp), %r9).

Chosen: at size and speed, a slot that nothing names but its own loads and stores, and whose one store writes an integer, bool or atom constant, is read as that constant wherever the store's block strictly dominates the load. The temporary then loses its store, and the bounds proofs see a constant. A float stays in its slot, where a register holds it, rather than being made again from the constant pool. SHA-256 on x86-64 falls from 8,495.6 to 8,424.3 million instructions.

The alternatives: general constant propagation across blocks, more machinery for the same loops; and the same fold in each backend.

Pinned by ir opt/constant slots.

D2149 — A loop's invariant values are made once before it

The tour said nothing. Every iteration of a loop made again each float constant and each invariant computation it used: mandelbrot's in_set loaded 2.0 and 4.0 from the constant pool every iteration.

Chosen: at speed, on hosted targets, Landin.IR.Hoisting takes each natural loop whose head has exactly one predecessor outside the loop, reaching it by a jump. A float constant, or arithmetic that cannot trap over constants and private slots the loop never stores, is made at the end of that predecessor and kept in a new private slot. A loop moves values only while its live-in slots and the moved values fit a budget of the target's: 4 integer and 13 float on x86-64 (D2159), 12 and 16 on arm64, 10 and 8 on RV64. x86-64 moves no float out of a loop that calls, since no XMM register survives a call; RV64 also moves a nonzero constant the loop compares with, since its branches compare two registers. Firmware targets are left alone. Mandelbrot executes 9.0% fewer instructions on arm64 and 8.2% on RV64.

The alternatives: moving values with no budget, which cost x86-64 8.9% on mandelbrot and 1.2% on fasta; making a block before a loop with several outside predecessors; and hoisting in each backend's register allocation.

Pinned by ir opt/loop invariants.

D2150 — A loop holds the address of an array it indexes

The tour said nothing. arm64 formed a frame array's address (sub x10, x29, #256) and a module array's (adrp and add) at every access in SHA-256's rounds.

Chosen: within D2149's integer budget, an element access that indexes a whole array of plain scalars goes through an address slot set once before the loop: on arm64 for a frame array that is no parameter and for a module datum, on x86-64 for a module datum only, since x86-64 reaches a frame array from rbp within the access itself. SHA-256 on arm64 falls from 466.6 to 437.9 million instructions and reverse-complement by 3.2%.

The alternatives: frame arrays on x86-64, which cost fannkuch-redux 0.65%; either kind on RV64, which measured no gain.

Pinned by ir opt/loop invariants.

D2100 — D339 weighs a straight routine as it will run

The tour said nothing; D339 bounds a copy at 64 of D211's weighted operations as lowering made the routine. Lowering makes every temporary a scalar slot, stored and loaded at two each, which allocation then holds in a register: hosted/heap's align_up, a mask with its division in a second routine, weighed 65 and stayed a call, so the heap carried the mask written out by hand in host_alloc.

Chosen: a load or store of a scalar slot that no operation names as storage (no address is taken of it, nothing copies, clears or writes it in place) weighs nothing, for the bound and for the caller's growth budget alike; every other operation weighs what D211 says. A routine whose blocks hold a cycle is weighed as before, every operation at D211's weight, which is the measure D339's bound was chosen on. The heap's align_up now carries the mask itself, its division in align_any, and is copied where it is called at speed; host_alloc keeps the mask on its own path, since size copies no call and the call cost binary-trees 2.5% of its instructions there. At speed on x86-64 binary-trees 15 executes 3.0% fewer instructions and the fibre switches 3.6% fewer; the hosted images grow by under 2%.

The alternatives: the new count for every routine, which copied fannkuch-redux's reverse_prefix, a loop, into its caller's loop: 8.7% fewer instructions and 3 to 7% more cycles, 5% more branch misses, the loss D339 recorded at a bound of 96; refusing every routine with a loop, which lost the small loops D339 already copied and left binary-trees slower than before; weighing routines after simplification, which D339 declined as needing the program simplified twice; and copying in callee-first order, so that a routine is measured with the copies it received, which the row that asked for this named but which keeps nothing in one pass: every routine is measured before any is copied, and the weight alone kept align_up.

Pinned by the ir opt inlining cases, whose weight is Landin.IR.Inlining.Weight, and compiler/tests/measure/baselines/.

D2101 — The build report names each call D339 kept and why

The tour said nothing. Nothing said which calls --optimize speed copied and why the rest stayed calls: learning why align_up stayed one took tracing the inliner with a rebuilt compiler.

Chosen: the build report's copies lists every direct call the inliner considered, which it does only at speed on a hosted target: the caller and callee items, the call's source span, its loop depth, the callee's weight as far as the inliner counted it, copied or kept, and the first rule that decided it: copied, no-body, address-exposed, callee-shape, assembly, weight, recursive, arguments, failure-shape, crossing or budget. The compiler guide's build report section says what each means.

The alternatives: an annotation in --emit=ir, which a reader must match back to source by hand and which a linked build does not write; and only the calls kept, which leaves a reader no way to confirm a copy.

Pinned by ir opt/the build report says why each call stayed one and the host reports JSON case.

D1767 — Cortex-M makes a word constant where an operation reads it

The tour said nothing. Cortex-M gave every integer constant a value of its own at its definition, in its home or a held register (D1567), so a loop's bound, a shift's count or an index's stride was loaded from memory or kept a register for every iteration, and a comparison of two constants zero against each other survived to the text.

Chosen: at size and speed, in a routine without an assembler.block, an integer constant of at most a word that validates no atoms emits nothing at its definition: an operation that reads it makes it there, as an immediate where the operation has one. Thumb-2's eight-bit immediates take an addition, subtraction, comparison or bitwise operation's constant on either side where the operation commutes, and Thumb-1's three-bit addition and subtraction, and its eight-bit one into the same register; a constant no wider than a byte and not negative as its own type reads it compares as one. A shift by a constant count below the width is one lsls, lsrs or asrs with nothing to test, and a division or remainder by a constant tests neither for zero nor for minus one where the constant is neither. Any other reader loads it with movs, mov.w, movw and movt or a literal, as it loaded a home, and the allocator offers such a constant no register.

The alternatives: keeping each constant in a register over its interval, which holds a register the allocator has six of for one movs; and folding constants into operations in the IR, which every backend would then have to take apart again where its forms differ.

Pinned by cortex ABI/Thumb-2 selection forms, the Cortex-M corpus at every level and compiler/tests/measure/baselines/.

D1768 — At the Thumb-2 levels a test against zero is CBZ or CBNZ

The tour said nothing. A branch on a truth value, and a comparison of a word with zero that only its branch reads, was a cmp and a conditional branch at every level.

Chosen: at the Thumb-2 levels such a test of a low register is emitted as its comparison and branch and recorded; once the routine's text is complete it becomes one cbz or cbnz where the label is ahead, no literal pool or assembly lies between, and four bytes for each line between, with four more, stay within the 126 bytes CBZ reaches. Every other one stays as it was.

The alternatives: relaxation by the assembler, which GNU as does not do for CBZ; and counting exact sizes, which needs the assembler's own choice of each instruction's width.

Pinned by cortex ABI/Thumb-2 selection forms and the Cortex-M corpus at the Thumb-2 levels.

D1769 — Cortex-M reads and writes a frame part and a slot in place

The tour said nothing. A field of a frame slot was read through its address formed in r2 (mov r2, sp, adds r2, #N) and a load from a slot or a field went to r0 and was copied to the value's register; a slice's element stride was multiplied in, one or a power of two alike.

Chosen: a frame slot's aligned, unpacked part is read and written where D1563's homes are, from sp where an offset form reaches it, and a slot or part is loaded into its value's own register and stored from it, except from r6, the address register. A slice's stride of one adds nothing and a power of two shifts.

The alternatives: an address-mode folding pass over the IR's paths, which no other backend needs.

Pinned by the Cortex-M corpus at every level and compiler/tests/measure/baselines/.

D1770 — Cortex-M converts between integers of at most a word with one comparison

The tour said nothing. Every integer conversion went through the 64-bit form: the operand extended into r1:r0, the high word compared with its sign, and the low word shifted out and back to test its fit.

Chosen: a conversion between integer types of 8, 16 or 32 bits reads its operand where it is and tests only what the source can hold and the result cannot: an unsigned upper bound with cmp and bhi, a signed narrowing with sxtb or sxth against the source, a sign with cmp and blt; a widening or a same-signed one of no smaller width tests nothing.

The alternatives: the 64-bit form for every width, which the eight- byte conversions keep.

Pinned by the Cortex-M corpus at every level and compiler/tests/measure/baselines/.

D1771 — With a float unit Cortex-M holds floats in VFP registers

The tour said nothing. With a float unit every f32 and f64 was read from its home into s0 to s2 or d0 to d2 for each operation and its result stored again, and a comparison made a truth value before its branch read it (D1567).

Chosen: the recorded writes of D1567 include d0-d15, a call writing d0-d7, and the allocator offers a float slot or value d7 to d3, then d2 to d0, then d8 to d15, which the routine saves: a framed routine through its run of D1570, a leaf with vstr and vldr from sp. An f32 takes the even half of its register. A float a call passes or returns keeps its home, as D616 has it. Arithmetic, negation and comparison read held operands in place and write a held result directly; a move between a held float and core registers is one vmov; a constant VMOV encodes is made in its register with it; at size and speed a float home is read and written from sp where VLDR's and VSTR's offset reaches. At none, where every float moves through its home, it stays addressed through r6: the STM32H753's M7, running from uncached AXI SRAM, ran the firmware mandelbrot at none in 15,674,563 cycles with the sp form, its VFP load straight after the core stores to the same doubleword, and in 13,261,199 with the two address instructions between them, against 13,556,897 before. A comparison only its branch reads branches on the flags itself, as D1566's do. On the AN500 description at armv7e-m and speed the firmware mandelbrot executes 649,506 instructions under QEMU against 4,117,064, and in_set is 60 instructions against 241.

The alternatives: the caller-saved d0-d7 alone, which left the mandelbrot loop's temporaries in their homes; and a separate float allocator, where one placement over both files keeps a single record.

Pinned by cortex ABI/a float unit selects VFP code, cortex ABI/C records cross by value at both variants, the AN500 lane's corpus and compiler/tests/measure/baselines/.

D1772 — At the Thumb-2 levels speed holds values in r8, r10 and r12

The tour said nothing. D1567 offered r1, r3 and r4-r7 at every level, and the Thumb-2 levels, whose 32-bit encodings reach the high registers, still held nothing in them.

Chosen: at the Thumb-2 levels and speed the allocator also offers r12, which a call writes and no routine saves, then r8 and r10, which a routine holding either saves as a pair, in its frame above the incoming register homes, with strd and ldrd. size keeps the low registers, since a high one's 32-bit forms cost it bytes, and armv6-m is unchanged.

The alternatives: r9, which a platform may reserve, and r11, the frame record's; pushing r8 and r10 with r4-r7, which moves every frame offset the debugger and the stack report read.

Pinned by cortex ABI/Thumb-2 selection forms, the Cortex-M corpus, the frame-stepping and source-debugging lanes and compiler/tests/measure/baselines/.

D1773 — At the Thumb-2 levels a packed field is UBFX and BFI

The tour said nothing. A packed field was extracted and inserted through the 64-bit shift pair with its bit offset in r4, at every level.

Chosen: at the Thumb-2 levels a field of a carrier of at most a word, with no atoms to translate and a value of at most a word, is read with one carrier load and ubfx, and written by testing the value's fit with lsrs, then one load, bfi and one store: the same carrier accesses the peripheral traces record. An indexed packed element keeps its shifts.

The alternatives: shifts and masks of one word, which Thumb-1 still needs for want of the instructions.

Pinned by cortex ABI/Thumb-2 selection forms and the packed and peripheral lanes.

D1774 — Cortex-M drops a register move that changes nothing

The tour said nothing. Copies through held slots left moves into a register's own source, a move repeating the one before it, and a move back of what the move before it copied.

Chosen: once a routine's text is complete those three are dropped, when no label or instruction but a debugging directive lies between the pair.

The alternatives: teaching each copy where its value already is, which is the allocator's coalescing and a larger change.

Pinned by the Cortex-M corpus at every level and compiler/tests/measure/baselines/.

D2108 — A refused allocation is allocated again, and the report names it

The tour said nothing. D1503 and D1567 emit a routine with homes, allocate over the registers that text writes, emit it again and check that no write the second emission made meets a register the plan holds; where one does, the first emission is kept with every value in its home, and nothing said so. Over the runtime corpus at armv7-m speed-auto twelve routines fell back this way, every one because the second emission wrote r6 where the first had not.

Chosen: Cortex-M's recording keeps every emission's writes, so a refused plan is followed by another allocation over all of them, up to three rounds, before the routine keeps its homes. A routine that keeps them on Cortex-M or RISC-V carries kept_homes in its build report row, naming the register and the position, the IR value whose emission wrote it. The twelve routines are allocated, with 15% to 35% fewer static instructions each.

The alternatives: recording the refusal alone, which leaves the twelve in their homes; and a debug option instead of a report field, which a measurement script cannot read from a gate's artifacts.

Pinned by the host reports suite's whole discriminated plans and the Cortex-M corpus.

D2109 — A loop's end that is a length less one bounds its index

The tour said nothing. The simplifier proves an index below a slice's length when a loop's comparison names that length, but for at in first..<lenof s - 1 names the slot its end was stored in, so s[at] kept its check each iteration: fasta's select_symbol spends the run in one such loop.

Chosen: a slot stored once, by a store that strictly dominates the check, with a checked x - k for a constant k above zero, holds a value below x; an index below the slot's content is then below x when x is a constant or a fixed term the check names. A fact on the slot that held across its store would have been dropped, since the store lies below the comparison, so the content the fact names is the stored one. An unchecked subtraction proves nothing, nor does a slot stored twice.

The alternatives: rewriting the loop's end in lowering, which would leave the same shape written by hand unproved.

Pinned by the IR optimization suite's proved checks, with four controls, at size and speed.

D2207 — A counted index proves the arithmetic on it

The tour said nothing. A loop's test bounded its index from above, but nothing bounded it from below, and no arithmetic carried a bound: SHA-256's schedule, for t in usize(16)..<64 reading w[t - 15], kept each subtraction's underflow check and each index's bounds check, and its load loop, reading block[4 * t + k] for t below 16, each multiplication's and addition's overflow check, 3,072 of about 7,400 x86-64 instructions a 64-byte block.

Chosen: a checked x + k, x - k or x * k, for a constant k (at least zero, or above zero for *), that did not trap lies within x's least and greatest moved by k; a checked multiplication by a constant is proved when both moved bounds fit its type. A slot that nothing names but its own loads and stores is counted when it has two stores, a first and a step, the step its own load plus a constant at least zero, and the first store's block strictly dominates the step's and its load's. Every value it then holds where the first store strictly dominates is at least the first value's least, provided the step does not wrap. The walk learns that at the step, after the loop's body it bounds, so a proof resting on a counted slot's least waits to the walk's end and is applied only if the step is checked, and traps rather than wraps, or the bounds where it stands leave room for its constant. A first value that rests on another counted slot counts nothing, nor does a step written in an unchecked region the bounds cannot vouch for.

The alternatives: a general range analysis to a fixed point over the loop, which would bound more and cost a solver where one dominator walk now serves; rewriting for loops' indices in lowering, which would leave the same loop written with while unproved.

Pinned by the IR optimization suite's proved checks, with four controls, at size and speed.

D2367 — A conversion is proved by its operand's bounds

The tour said nothing. A narrowing integer conversion kept its range check wherever its operand's bounds already lay inside the result's range: SHA-256's program fills its bytes with u8((i *% 131 +% 7) & 0xff), and each byte paid a move, a compare and a branch for a check that could not fail, 3 of its 14 x86-64 instructions.

Chosen: a checked conversion from one integer type to another is proved when the least and greatest its operand can be, by what produced it and by the facts on its slot, both lie within the result's range. A mask by a constant bounds an unsigned value by that constant, so u8(x & 0xff) and u16(x % 1000) convert unchecked; a signed operand's least stays its type's, so u8(i & 0x7f) of an i32 keeps its check.

The alternatives: proving only masks, which a remainder or a shift would have asked for next; and folding the conversion into the mask in lowering, which would leave the same value reached another way checked.

Pinned by the IR optimization suite's proved checks.

D2368 — A copy of a length stored once is that length

The tour said nothing. for i in usize(0)..<lenof bytes copies the slice's length into the loop's end once, and a slice that scalar replacement split, its length stored once from a call's result, gave the copy no term naming that length: the end and the length were two unrelated slots, and every bytes[i] kept its bounds check, 2 of the 14 instructions above.

Chosen: a load of an eligible slot stored once, whose store strictly dominates the load, stands for the slot that store copied when that one too is eligible, stored once, and its store strictly dominates the copy's. Both hold the one value wherever the copy's store dominates, so a comparison with the loop's end bounds the index by the length.

The alternatives: giving every value a term, which would number what value numbering already numbers; and forwarding the length's value into the loop's end across blocks, which this pass's per-block forwarding does not do and its proofs do not need.

Pinned by the IR optimization suite's proved checks.

D2447 — An identity may make the instruction it needs

The tour said nothing. SHA-256's majority (a & b) ^ (a & c) ^ (b & c) and choice (e & f) ^ (~e & g) cost x86-64 8 and 6 instructions a round where (a & (b ^ c)) ^ (b & c) and (e & (f ^ g)) ^ g cost 6 and 4, but each shorter form reads a value the source never computed, and simplification rewrote an instruction only in place.

Chosen: after simplification, a pass rewrites (x & y) op (x' & z), op ^ or |, as x & (y op z), and (x & y) ^ (~x' & z) as (x & (y ^ z)) ^ z, on every target, where each AND and the complement have no other reader and x' is x or a load of the same slot part with nothing between the two loads that could write it: no store, call, assembly block or control transfer. The later AND becomes y op z in place; the choice's one new instruction, x & that, comes just before the result, which the arena rebuild inserts with the instruction it precedes. The earlier AND, the complement and a load another load stands for go.

The alternatives: writing the identities into value numbering, which numbers a value and never reshapes one; reusing a freed instruction's position, which serves the majority but not the choice, whose g is loaded after every position the rewrite frees; and inserting through the whole arena per instruction, where one rebuild serves every insertion.

Pinned by the IR optimization suite's bitwise identities and the runtime fixture bitwise-identities.

D2448 — Two rotations joined by a bitwise operation turn one chain

The tour said nothing. SHA-256's big1, rotl(e, 26) ^ rotl(e, 21) ^ rotl(e, 7), turns three copies of e, so two-address x86-64 copies e before each rotation: 8 instructions where rotl(rotl(rotl(e, 5) ^ e, 14) ^ e, 7), a chain over one temporary, takes 6.

Chosen: rotl(a, m) op rotl(b, n), op ^, | or &, each rotation read only there and its amount a constant of its own, is rotl(rotl(a, m - n) op b, n), the amount taken modulo the width, and rotl(a op b, n) when m = n. A rotation commutes with every bitwise operation, so the rewrite is exact; it applies where rotations exist, x86-64 and arm64 (D1624), and keeps the instruction count but where it saves a rotation.

The alternatives: leaving the copies to register allocation, which cannot remove a copy two-address code needs to keep e; and selecting x86-64's three-operand rorx, which BMI2 alone has.

Pinned by the IR optimization suite's bitwise identities and the runtime fixture bitwise-identities.

D2208 — x86-64 selects a proved unsigned product as imul

The tour said nothing. An unsigned checked product needs mul's high half for its carry, so x86-64 moved one operand into %rax, multiplied and moved the low half out, and kept that form when the check was proved and removed (D2207): SHA-256's load loop spent four instructions on each 4 * t.

Chosen: at size and speed a multiplication the simplifier proved cannot overflow is selected as the two- or three-operand imul, at either signedness, since the low half of the product is the same, as a wrapping product already is; a byte's product keeps the one-operand form, which imul has no other form for.

The alternatives: a shift for a power-of-two constant, which reads the same as imul once the constant is an immediate and is left to the selection of immediates.

Pinned by SHA-256's measured load loop and the runtime fixtures' products at size and speed.

D2247 — A constant left operand of a commutative integer operation goes right

The tour said nothing. Lowering keeps the source's order, so 4 * t reached selection with its constant on the left, where no backend writes an immediate: x86-64 and arm64 made the 4 in a register first, and the same product written t * 4 elsewhere was numbered apart.

Chosen: at size and speed the simplifier swaps the operands of an integer +, +%, *, *%, &, |, ^, == or != whose left operand is a constant and whose right is not. Overflow, and so its trap, is the same either way round. A float keeps its order, since which NaN an operation returns can depend on it, and so does every operation that does not commute.

The alternatives: teaching each backend to commute at selection, which arm64 already did and x86-64 did only for registers, and which leaves the numbering below seeing two operations.

Pinned by the IR optimization suite's block value numbering, with a subtraction and a float product as controls.

D2248 — Equal integer constants are one class to block numbering

The tour said nothing. Block value numbering compared operations by the classes of their operands, and every constant was a class of its own, so SHA-256's load loop, writing 4 * t four times, kept four products of one value.

Chosen: an integer constant with the type and value of an earlier one in the same block takes that one's class, so operations reading them are numbered as one. The constant itself is not replaced: each stays where it is read, made there or written as an immediate, so no register holds a constant across the block for this.

The alternatives: numbering constants like any operation, which would replace them and stretch one constant's interval over the block on targets where it needs a register.

Pinned by the IR optimization suite's block value numbering.

D2249 — x86-64 widens a loaded byte where it was loaded

The tour said nothing. At size and speed a byte or halfword loaded into a register is zero-extended there (movzbl, movzwl), and a 32-bit write clears the upper half, yet u32(s[i]) extended it again.

Chosen: an unsigned widening of a byte or halfword that an element or indirect load put in the same register moves nothing.

The alternatives: tracking which registers hold zero-extended values across every operation, which would cover arithmetic results too and is left until a measurement asks for it.

Pinned by the x86-64 optimization suite's arithmetic shapes.

D2369 — x86-64 narrows an unchecked integer in its register

The tour said nothing. A narrowing conversion moved its operand into %rax and stored the accumulator's low part into the result's register, two moves where the operand's register already held the bits.

Chosen: at size and speed an unchecked narrowing from a value in a general register into one moves nothing when both are one register, and is one 32-bit move between them otherwise. The bits above the result's width are left as the store through the accumulator left them.

The alternatives: clearing the upper bits with movzbl or movzwl, which no reader of a narrow value needs and which would cost the move this saves.

Pinned by the x86-64 optimization suite's arithmetic shapes.

D2250 — x86-64 compares and scales a slice edge where it lives

The tour said nothing. A slice element's address copied its upper edge into %rax to compare it with the length, and its lower edge into %rcx to scale it, both already in registers at size and speed: two moves an access.

Chosen: at size and speed an edge held in a register is compared and used as the address's index in that register.

The alternatives: none worth keeping; the copies bought nothing.

Pinned by the runtime fixtures and the measured hosted programs at size and speed.

D2251 — A proved product by a power of two is a shift

The tour said nothing. A product the simplifier proved cannot overflow was imul on x86-64 (D2208) and mul on arm64, the latter with its constant made in a register first.

Chosen: at size and speed such a product, or a wrapping one, by 2 to the k: on x86-64 shl when the result is in the operand's register, and at speed lea with a scale of 2, 4 or 8 into another, which takes a cycle where imul takes three; on arm64 lsl, with no constant made.

The alternatives: a shift in the IR, which would need a new constant value and a shift rule that no target's checked shift has.

Pinned by the x86-64 optimization suite's and the arm64 selection suite's arithmetic shapes.

D2252 — x86-64 puts an index's constant offset in the displacement

The tour said nothing. SHA-256's schedule reads w[t - 15], w[t - 2], w[t - 16] and w[t - 7]; once D2207 proved them, each was still a movq and a subq into a register of its own before the load, eight instructions of 31 an iteration.

Chosen: at size and speed an element index that is a value plus or minus a constant, proved not to wrap, whose one use is the proved element access right after it, is not made: the access reads the value's register and adds the constant, times the stride, to its displacement. A stride too wide for that adds the constant in the accumulator instead. arm64 has no address with both a register index and a displacement, and keeps its two instructions, its array's base being in a register already (D2150).

The alternatives: an IR element access carrying a constant offset, which every backend and the verifier would have to learn for one target's address form.

Pinned by the x86-64 optimization suite's arithmetic shapes.

D2253 — arm64 widens a value in the register its operand leaves

The tour said nothing. An integer conversion that changes no bits, u32(b) of a loaded byte, was given a register of its own, so it was a mov from the one its operand died in.

Chosen: at size and speed an integer conversion takes the general register its operand dies in, when nothing else holds that register from there through the conversion's last use. Selection reads the operand before it writes the result, so the widening moves nothing.

The alternatives: the same preference for every operation whose operand dies, which the x86-64 allocator has for a left operand and which arm64's selection does not uniformly allow.

Pinned by the measured hosted programs on arm64 at size and speed.

D2254 — x86-64 reads a field behind an address slot in its home at its displacement

The tour said nothing. A field or constant element behind an address slot the allocator left in its frame home, SHA-256's words[k] of an inout array, was reached as movq of the address, addq of the offset and an access through the sum, though the access it was folded into takes a displacement.

Chosen: at size and speed the address is read into %rcx and the offset is the folded access's displacement, as it already was for an address slot in a register.

The alternatives: none; the addition bought nothing.

Pinned by the x86-64 optimization suite's arithmetic shapes.

D2307 — RISC-V and Cortex-M make a stored value in its slot's register

The tour said nothing. arm64 (D2164) and x86-64 (D2157) made a value stored into a slot already held in a register in that register; RISC-V and Cortex-M made it in a register of its own and moved it, so a loop's i = i +% 1 was add x15, x17, x14 then mv x17, x15. arm64's rule, ported as it stood, made RV64 execute 7% to 110% more instructions: the value writes the slot's register inside the slot's interval, the check of the second emission against the plan (D1503, D1567) refused that write, and the routine kept its homes (D2108).

Chosen: at speed, on RISC-V at either XLEN and on Cortex-M, a value whose last use stores it into a slot held in a register over its whole interval, from before the value is made through the store, is made in that register when nothing in between loads the slot or reads another value sharing its register; a pair at XLEN 32 takes the slot's pair. The plan marks the value, and the check takes the value's own write at the position it is made as the slot's new contents: a slot held there, and a value whose last use that position is, the slot's old contents read in place, may meet it. Every other write is still refused. The store then moves nothing. Selection already reads a result's operands before it writes the result, since without optimization a result and its operands share x5 or r0. Under QEMU at speed RV64 executes 6.4% fewer instructions on SipHash-1-3, 6.1% on mandelbrot, 4.5% on fasta, 3.3% on fannkuch-redux, 1.3% on SHA-256 and 0.2% to 0.8% on the rest, every output the same; the Cortex-M firmware workloads 0.2% to 6.3% fewer at Thumb-2 levels, 12.2% on mandelbrot with a float unit, and up to 5.1% at Armv6-M. .text at speed is 0.4% to 1.1% smaller on RV64, 0.1% to 1.1% on Cortex-M and 0.3% to 1.4% on RV32; size and none are unchanged.

The alternatives: dropping the check for such routines, which would let a selection scratch write into the slot's register pass unseen; and a check that excused any write of a location's register by a value holding it, which would miss an allocator that gave two live locations one register.

Pinned by backend/RISC-V stores into slot registers, cortex ABI/stored values are made in slot registers and compiler/tests/measure/baselines/.

D2308 — Thumb-2 and RV32 start a loop's head on a word where nothing falls into it

The tour said nothing. The RP2350's Cortex-M33 and Hazard3 fetch from SRAM a word at a time without a cache, so a 32-bit instruction at a halfword address in a loop costs a fetch more each pass. D2247 to D2254 took two instructions out of firmware fannkuch-redux ahead of its flip loop, the loop's ldrb.w head and its bl moved to halfword addresses, and at speed it ran 0.64% slower on the M33 and 0.63% on the Hazard3.

Chosen: at speed, on Thumb-2 levels and at XLEN 32, where all the levels compress, a block that begins a loop starts on a word when the last instruction before it, with only labels between, does not fall through: a jump, a return or a trap. The padding, .balign 4 on Thumb-2 and .p2align 2 on RISC-V, which D1405's bound counts, goes before those labels and is never executed. A head entered by falling into it, which was most of firmware's while it kept lowering's block order (D2096, D2408), stays where it is. The loop heads are x86-64's (D2096), found by one routine that both backends share with it. Armv6-M, whose code is 16-bit but for bl and a few system instructions, and RV64, which runs from caches, are unchanged.

The alternatives: padding a head that is fallen into, whose nop runs on every entry to the loop; and placing each 32-bit instruction of a hot loop on a word, which needs each instruction's encoded size, the assembler's choice on both targets.

Pinned by backend/RISC-V stores into slot registers, cortex ABI/stored values are made in slot registers and the boards' cycles.

D2309 — RV32 jumps near where its routine's text is within JAL's reach

The tour said nothing. D678 made RV32's jumps JAL's own only where every region of the firmware profile is at most 1 MiB, and D1405 gave RV64 near jumps where the routine's own text is provably within reach; an RV32 board whose profile has a larger region, the RP2350's 4 MiB of flash or an ESP32-C3's, wrote every jump as lla x26 and jr x26 and every branch as its inverse around them, in images that run from a few KiB of SRAM. Firmware fannkuch-redux's text on the RP2350's Hazard3 at speed was 2,468 bytes with 57 far jumps.

Chosen: at XLEN 32, where the profile does not bound every region within JAL's reach, a routine's jumps are settled as D1405 settles RV64's: written near, and kept near where the routine holds no assembly block and its lines provably assemble to less than 1 MiB. The same image is 1,936 bytes with none. A profile whose regions are all within reach emits what it did.

The alternatives: D678's profile bound alone, the measured cost; and treating a RAM image's text region as the bound, which a boot image in the same flash would not share.

Pinned by backend/rv32 lowering is RV64's at XLEN 32 and the boards' cycles and records.

D2120 — Cortex-M makes an eight-byte constant or widening where it is read

The tour said nothing. D1767 left an eight-byte constant, and every u64(x) of a narrower integer, a value of its own: made in r0:r1, stored to its home and loaded back into the pair its reader used. In core.line.divisor at armv6-m size-auto each such operand cost seven instructions where two make it.

Chosen: at size and speed, in a routine without an assembler.block, an eight-byte integer constant is deferred as D1767 defers a word's: its reader makes both words in the pair it loads. A conversion that cannot fail from an integer of at most a word to an eight-byte one, from an unsigned source or a signed word to a signed result, emits nothing either: its reader loads the source into the low register and makes the high one with movs zero or asrs 31. The source then lives, and is held (D1567), through the conversion's last reader.

The alternatives: a held pair (D1503's form) for each, which on Thumb-1 moves a pair with two mov where a home moves it with two ldr of the same size, and holds two of the six registers a routine has.

Pinned by the Cortex-M corpus at every level and compiler/tests/measure/baselines/.

D2121 — Cortex-M tests nothing a constant or an earlier test settled

The tour said nothing. An eight-byte division by a constant tested the constant for zero and called __aeabi_uldivmod; a checked eight-byte multiplication called the same helper to divide the largest result by one operand, a constant one included; and an atom stored to a slot and loaded back, or converted, was tested against its set again.

Chosen: an unsigned eight-byte division or remainder by a constant power of two is shifts of the pair, and a division by any other nonzero constant tests nothing before the helper, as D1767 has a word's. A checked unsigned eight-byte multiplication by a constant compares the other operand with the largest it may be, folded, high word then low. A conversion of an atom constant whose code the set holds, or of a value already tested against the same set, tests nothing; nor does a load of either from a slot its block stored it in, with nothing between that could write memory.

The alternatives: a run-time helper for the checked multiplication, which would still call.

Pinned by the Cortex-M corpus at every level, the firmware oracles and compiler/tests/measure/baselines/.

D2122 — Cortex-M reads a value from the registers that still hold it

The tour said nothing. With every eight-byte value in its home (D1567), a value computed in r0:r1 was stored there and loaded back into r0:r1 by the next operation, and a slot's load was stored to a home of its own before its one reader loaded it again.

Chosen: at size and speed, in a routine without an assembler.block, the emitter tracks which word or eight-byte integer value each of r0 to r7 holds since it was stored to or loaded from its home: any line writing the register, and any label, forgets it. A load of a value a register still holds is nothing, or a mov, and a home store goes once the routine's text is complete if no load read that home. A load of a word or eight-byte integer slot, validating no atoms, whose readers all come before any operation in its block that could write memory or leave the block, emits nothing: each reader loads the slot, as it loads a deferred constant (D1767).

The alternatives: a held pair over each value's interval (D1503), which the recorded writes refuse wherever an operation names r0 to r3, that is at every eight-byte operation; and a general store-to-load peephole over the text, which cannot tell a value's home from a slot's.

Pinned by the Cortex-M corpus at every level, the firmware oracles and compiler/tests/measure/baselines/.

D2123 — A Cortex-M routine reads its parameters through sp

The tour said nothing. A framed routine read each parameter from its incoming register's home, and from the caller's area, through mov r6, r11 and an offset, and stored it to its slot the same way, since sp was not taken as known before the first block.

Chosen: after the prologue reserves the frame and stores the incoming registers, sp is the bottom of the homes, as at each block's start, so a scalar parameter of a word or eight bytes is read with ldr [sp, #imm] where that reaches, into its slot's register when the slot is held, and stored with D1563's forms.

The alternatives: keeping the incoming registers to the slots directly, which a slot held in r1 or r3 would overwrite before its own parameter was stored.

Pinned by the Cortex-M corpus at every level and compiler/tests/measure/baselines/.

D1627 — Xtensa places every word of a routine over the routine's own text

Partly superseded by D2116. Its frame, kept as it was with the 80-byte bank and every value's and slot's home, is laid out after placement since D2116; the rest stands, and what follows is history.

The tour said nothing. Xtensa's machine layer kept every RISC-V-form logical word but five in memory at a7 + 4×N and every value and slot in its frame home, so an operation loaded its operands, computed and stored its result back: 414 of the firmware mandelbrot's 545 instructions in in_set were l32i and s32i through a7, and the build report's share of stack loads and stores was 53.5% at xtensa-esp32.

Chosen: the emitter keeps its walk of the verified IR and its RISC-V-form words, and in a routine without an assembler.block gives each scalar value and each slot Landin.Backend.Placement finds no address reaches a word of its own, vN, two for an eight-byte one, whose home is the value's or slot's frame home; a narrower one holds its value zero-extended. The machine layer buffers the routine's body, computes the liveness of every word over the body's own blocks and branches, joins the definitions that reach a common use into a web, and places the webs by linear scan in order of their first position: a web live across a call takes one of a2-a6, which CALL8 preserves, any other also a10-a15, preferring the register a call's arguments or results or the routine's entry or exit want it in, or that of a word it is copied to or from; a web that copies another's value without either being written in its interval reads the other's register. When none is free, the web with the fewest occurrences, weighted eight times for each loop around them, for each position it would hold stays in its home, and selection loads it into a8 or a9 where it is read. Before placing, a mul, add, divu or remu whose operand is a word set once to a number, directly or through copies, is a shift, an addi, a shift right or a mask where the number is a power of two or small, and a zero test of such a word is decided; an operation without effect whose results nothing reads is dropped; and a set on a comparison that only the zero test after it reads is that test, sltu and bnez one bltu. The entry moves the incoming a2-a6 into x10-x14's webs, a call its argument words into a10-a15 and its results out of a10-a14, and the exit x10-x13 and x31 into a2-a6, each as one parallel move. A routine whose text the analysis cannot follow, a native line in its body, a jump to a label outside it or a write of SP or the CFA, or whose text is longer than 150,000 lines or whose liveness would take more than 2 ** 26 bits, is selected word by word as before, the value and slot words in their homes. The scratch words x5-x7, x9 and x18 have no home: when one finds no register, the cheapest web that has a home gives up its own. The frame is the one it was, its 80-byte bank and every value's and slot's home kept: a firmware fibre's stack is sized to it. Over the firmware set every image is smaller at every profile and both levels, .text 0.37 to 0.76 of the baselines before it, in_set is 121 instructions, 30 of them stack loads and stores, and on both boards every workload runs in 0.17 to 0.68 of the cycles it took.

The alternatives: selecting natively from the IR, which D1403 named for Xtensa, a second emitter of the RISC-V emitter's 6,900 lines for the ABI, firmware, interrupt and pair handling this one already has; an allocator over the RISC-V form in the emitter, as D1503's, which D1403 declined because the machine layer would still load and store every logical word, and which places the words the machine layer here places; and placing over Landin.IR.Liveness as D1403 has the other backends do, which sees values and slots but not the scratch words selection writes in every operation, which are half of what this places. D1403's one liveness analysis is therefore not Xtensa's: its placement reads the routine's words, not its IR.

Pinned by xtensa backend/placed words keep a loop in registers, xtensa backend/a word across a call keeps a2-a6, both chips' corpus lanes and compiler/tests/measure/baselines/.

D2116 — An Xtensa routine's frame is laid out after its words are placed

The tour said nothing. D1627 placed most of an assembly-free routine's words in registers but kept the frame it had, because the prologue was written before the body was placed: an 80-byte bank for the logical words and a home for every scalar value and slot, which only a spilled web reads. Over the firmware set the routines' frames summed to 912 to 3,408 bytes an image and the deepest was 304 to 752 bytes.

Chosen: in a routine without an assembler.block, the homes below the CFA are only those of the values and slots that are not words of their own: slots an address reaches, aggregates and arrays, and values that assembly or C transport needs in memory. They keep their places relative to the CFA, which is still the incoming SP. The machine layer places the routine's webs first. It then lays out a home from a7 up for each word that some web keeps in memory, widest first. A word whose webs are all in registers, or never read, gets no home. The incoming a7, which the body reads as x15, gets the first home, and only when the body reads it. Only then is the prologue written, ahead of the body in the text. Its frame is those homes, the addressed homes above them and the 48 bytes below the CFA that the window keeps, rounded up to 16. If placement gives up, D1627's word-by-word fallback keeps the whole bank and a home for every value word in the same low part. A routine with an assembler.block keeps its two banks and every home. Firmware debug information describes lines and no frame, so it is unchanged. The preflight checks, L0507 and addressability, still bound the frame by the reference frame, which holds every home and so bounds this one; no lane's stack-limit record moves. Over the firmware set at every profile and both levels the routines' frames now sum to 352 to 1,072 bytes an image. The deepest frame is 128 to 208 bytes, and .text is 48 to 312 bytes smaller at every key. At xtensa-esp32 speed-auto the deepest closed call-graph depth of --stack-report falls from 800 to 2,240 bytes an image to 336 to 752.

The alternatives: writing the prologue with a placeholder size and patching the text afterwards, which gives the same frame at the cost of a text substitution; sharing one home between words whose webs never overlap, which a few spilled words an image would not repay; and keeping the bank while dropping only the held homes, which leaves 80 bytes in every frame.

Pinned by xtensa backend/a placed frame holds only what it spills, xtensa backend/an outgoing area is part of the frame, the prepared-stack case's check that every prologue's labels are its own, both chips' corpus lanes and native controls, and compiler/tests/measure/baselines/.

D1628 — On Xtensa a comparison only its branch reads is the branch

The tour said nothing. A comparison made its truth value with a branch around two moves, stored it, and the branch after it loaded it and branched on it.

Chosen: an integer comparison that no other operand reads and that the next operation of its block branches on is that branch's own test, beq, bltu and the rest on the two operands, followed by a j to the alternative, as D1566 has Cortex-M's flags do. A float comparison, a libgcc helper's answer, keeps its truth value.

The alternatives: leaving the pair to placement, which removes the truth value's memory traffic but keeps both branches.

Pinned by both chips' corpus lanes and compiler/tests/measure/baselines/.

D2113 — On Xtensa an edge to the block laid out next falls through

The tour said nothing. D1628's branch was followed by a j to the alternative even where the alternative was the next block, a branch on a truth value by another, and every jump to the next block was one.

Chosen: as D2112 has RISC-V do, a branch whose target is laid out next is the inverse branch to the alternative, and a jump to the next block is no instruction. Both chips' firmware images fall 0.5% to 0.65% at every objective, fannkuch-redux's 1.1%.

The alternatives: the machine layer dropping a j before its own label, which sees the text after selection and could not invert the branch before it; and a float comparison fused as an integer one is, which changed no byte of any measured image and was left out.

Pinned by xtensa backend/a branch falls through to the next block, both chips' corpus lanes and compiler/tests/measure/baselines/.

D1629 — An Xtensa image is measured as a loader writes it

The tour said nothing. D1359 has a loader write every Xtensa image where it is mapped, the ROM an application image's segments and a debugger or emulator the reference's, and reset copies nothing; but the build report's measurement refused an image of the Xtensa reference's boot layout whose .rodata and .data are loaded into DRAM, because a boot image's initialized data must come from its text region, and said only that it could not measure the image.

Chosen: the measurement refuses initialized data loaded from writable memory only for an image reset fills, Boots_From_Image, so the Xtensa reference is measured as its chips' descriptions are; and every image it cannot measure is refused naming what it met, the segment and its load address and the rule it breaks, the symbol, or the map's line.

The alternatives: giving the reference's initialized data a load address in IRAM and copying it at reset, which no Xtensa startup does and which would put byte-addressed data where an ESP32 reads only words; and refusing the reference's boot layout at link time, which would refuse every corpus image with a constant.

Pinned by cortex ABI/linked firmware evidence.

D1383 — refine keeps the compiler's commands and ships four of its tools beside it

The tour said nothing; [what refine does today] listed thirteen commands of one executable.

Chosen: check, compile, run, fmt, explain, lsp, version, help, completion and targets are built into refine. svd, bindings, site and the new Debug Adapter Protocol server dap are split commands: each its own executable refine-NAME, run as refine NAME, built from the same tree as refine, its sources counted in refine's source digest, and released in the same archive and flake, so nothing between them is a versioned interface; one written in Ada also links the same library. lsp stays built in because it links every backend through the handler-fit check (D572), so a split refine-lsp would carry the compiler a second time and save refine nothing; dap needs only the source maps and the target facts, and keeps GDB and LLDB handling out of the compiler's executable. A tool from outside that wants more than D1387's description starts from the JSON refine already prints.

Amended on 2026-11-18: lockstep was first worded as linking the same Ada library. The maintainer reworded it so that it does not depend on the language a split command is written in: one tree, counted in refine's source digest, the same archive and flake. The digest's inputs are derived from the one list of split commands, compiler/ada/split-commands.json.

The alternatives: a versioned JSON interface between refine and its own split commands from the start; keeping every existing command built in and splitting only new ones; dap built in; splitting lsp.

Pinned by the split commands' native dispatch cases and the release smoke test, when they exist.

D1384 — An external command is found beside refine first, then on PATH

The tour said nothing; an unknown refine NAME was read as refine check NAME.

Chosen: refine NAME runs a built-in command if there is one. Else, when NAME is one of the split commands refine was built with (D1383), it runs libexec/landin/refine-NAME under the installation prefix, found through the host's executable directory as the library is (D275), and nothing else: a shipped name is never looked for on PATH, so another release's copy there cannot stand in for a missing one, and a missing copy is refused, saying the installation lacks it and to reinstall the release. Any other NAME is refine-NAME on PATH, a contributed command. No variable or file names another place. Before running either, refine checks it is compatible (D1387). refine help lists the external commands under a heading of their own, from a scan of both places when it runs and each one's own one-line summary; completion asks refine-NAME --complete.

The alternatives: the installation's directory alone, which leaves a contributed tool to be run by its own name; PATH alone, which lets an unrelated refine-NAME shadow a shipped one; PATH as a fallback for a shipped name, which runs another release's copy when the installation lacks its own.

Pinned by fake-filesystem driver cases of the dispatch order and a native case finding a test tool on PATH.

D1385 — A shipped command is held to the compiler's rules; a contributed one to none, and stays out of the catalogue

The tour said nothing.

Chosen: a split command shipped in the archive keeps every requirement of a built-in command that is visible from outside its process: its diagnostics are L codes in the one catalogue, explained by refine explain, and its black-box "destroys nothing it did not create" and determinism controls run in the gate. One written in Ada also keeps Landin.Platform, with its fake-filesystem cases, and the warning policy. A contributed refine-NAME is held to nothing but D1387's description. Its codes never enter the catalogue or docs/diagnostics.md, which hold L codes alone; it claims a prefix of its own, two to eight capital ASCII letters, so never L, and answers refine-NAME explain CODE itself.

refine explain CODE explains a code in the catalogue as before, and calls an L code that is not there unknown. A code that is any other prefix followed by digits is forwarded. The prefix is the letters before the first digit, compared exactly. refine asks every compatible contributed command the scan of D1384 finds for the prefixes it claims (D1387). When exactly one claims it, refine runs refine-NAME explain CODE and passes its output and status through, after one line saying the explanation is refine-NAME's, at its path, and not Landin's. When none claims it, the code is refused as unknown, naming the prefix and saying no installed command claims it. When several do, it is refused naming each with its path, and the user runs the one meant as refine-NAME explain CODE.

Amended on 2026-11-18: the requirements were first every requirement of a built-in command, among them Landin.Platform and the Ada warning policy. The maintainer narrowed them to what is visible from outside the process, with the Ada ones kept for a split written in Ada, as for D1383's lockstep.

The alternatives: refine explain explaining L codes alone; refusing to dispatch contributed tools at all; reserving catalogue ranges for them, which would make the closed catalogue open; mapping a prefix to a tool by its name, which would tie a tool's codes to its command's spelling and its renaming.

Pinned by a native case forwarding a test tool's code, and cases of a prefix no tool claims and one two claim.

D1386 — The loading edge is cut before any command is split

The tour said nothing.

Chosen: Driver.Library stops withing Driver.Loading: the one path helper it took moves below both, so a unit that finds the library, Landin.Source_Maps among them, no longer links the front end. It is done before a split command links Driver.Library, and measured as the closures of explain, version, fmt and Source_Maps; the last is what refine-dap carries.

The alternatives: cutting it with the first split that needs it, dap; not cutting it, since the built-in commands share one executable.

Pinned by the measured closures.

D1423 — Finding the library is a unit of its own, outside Landin.Driver

The tour said nothing.

Chosen: D1386's cut takes two moves, not one. The two path helpers Driver.Loading lent, Joined_Path and Is_Source_Name, become Landin.Paths, a pure unit that asks the host nothing, and Driver.Library becomes Landin.Library, a unit of its own rather than a child of Landin.Driver. An Ada partition holds the body of every unit whose specification it holds, a parent's among them, and Landin.Driver's body withs the whole compiler: a program that withed Driver.Library linked all of it whatever its own withs were. Linked alone, Landin.Library holds 29 units with the run-time, 0.36 MB of text, where Driver.Library held 176 and 24.35 MB. explain's code closes over 12 units, 0.49 MB of the compiler's own text where it was 6.79 MB; version's over 15, 0.71 MB where it was 7.01; and fmt's over 25, 1.86 MB where it was 7.02, the parser it formats with. Landin.Source_Maps keeps the front end: it writes a map from a Landin.Stages.Compilation and its IR, and it withed Driver.Library only to ask whether a module is the library's. Its closure went from 7.26 to 6.55 MB, and no cut of the library's edges takes the rest away; a command that only reads a map needs a unit that does not take a compilation.

The alternatives: cutting only the edge D1386 names, which leaves every split command that finds the library linking the compiler through the parent; and leaving Driver.Library where it was while Landin.Driver's body is split, which is larger work than the item and is not needed for this.

Pinned by scripts/tests/test_unit_closure.py, which holds Landin.Library's closure to itself, Landin.Paths, Landin.Platform and Landin, measured by scripts/unit_closure.py.

D1387 — refine refuses a refine-NAME that is not compatible with it

The tour said nothing.

Chosen: before refine runs an external command, lists it in help or forwards a code to it, it runs refine-NAME --describe and reads one JSON object from its standard output: format, which is landin-command-1; name, which is NAME; summary, the line help shows; from a shipped command, source_digest; and codes, the list of prefixes the command claims. A shipped command is compatible when it answers in a format refine reads, names itself, claims no prefix, and its source_digest is refine's own, the Source_Digest refine version --json reports (D1357): both were built from one tree. A contributed command is compatible when it answers in a format refine reads, names itself and claims no L prefix; its digest is not compared, since it was built from no tree of Landin's. Anything else, an answer that does not parse, a status other than 0, a wrong name or digest, an older or newer format, or no answer within ten seconds, is incompatible. refine NAME then refuses with an L code of its own, status 1, naming the path, what it asked and what came back, and what to do: for a shipped command, to reinstall the release, whose archive carries both, or to rebuild both from one checkout; for a contributed one, to update or remove it, or to run it by its own name. Help lists an incompatible command under its heading with the reason, and explain forwards to none. The query costs one extra process for each dispatch; nothing is cached, so a replaced tool is checked again.

The alternatives: comparing release names, which a development build lacks, so two builds of one checkout would match whatever they hold; trusting what libexec holds, since one archive ships both, which an upgrade of one file or a build of refine alone breaks without a word; the tool checking its caller through an environment variable, which leaves the refusal to the tool it is meant to stop; and a cache of answers, which a replaced tool outlives.

Pinned by fake-filesystem driver cases of a shipped command with another digest, a missing description and a contributed command claiming L, each refused.

D1483 — One list names the split commands, and every consumer reads it

The tour said nothing.

Chosen: compiler/ada/split-commands.json is the one list of split commands: for each, its name, its GPR project and its main, the project and main relative to compiler/ada, the executable always refine-NAME. scripts/build_identity.py reads it, and every project it reads it gets into the inputs of refine's source digest beside refine.gpr's and the test program's, so a split's own source counts as refine's does (D1383, D1357). It also writes the names into the generated Landin.Build_Identity as Split_Commands, the built-with list the dispatcher looks beside itself for (D1384). scripts/build.sh builds each into libexec/landin/, scripts/package.sh and the flake ship each there, the release smoke test runs each through the dispatcher, and check.py holds each entry to its project. The list is empty until dap and the three moved commands enter it; the directory is built and shipped empty meanwhile.

The alternatives: a list in each consumer, which an added split would update in some of them; the digest's inputs left at refine.gpr and the test program, which a split's own project would escape, so two builds would call each other compatible with different split sources; a GPR aggregate of the splits, which nix and the shell scripts cannot read without gprbuild.

Pinned by scripts/tests/test_build_identity.py's case that editing a listed split's own source changes the digest, its refusal of a listed project that is not there, and check.py's controls for each entry it refuses.

D1484 — The first word alone is dispatched, and the words after it are the command's

The tour said nothing; D1384 said where an external command is found, not which words are one.

Chosen: refine dispatches only its first argument, and only one that could name a command: an ASCII letter, then letters, digits, - and _, never a built-in command's name. build is no built-in command; D1603 says what refine build does. A word with a / or a ., a .ldn source among them, an option and a response file never are. A name found neither beside refine nor on PATH is refused as the unknown command it was (D1463). A name that is found gets every word after it unread, in order, empty ones included: refine expands no response file and parses no option of its, so refine NAME --help and refine NAME @args are the command's own. An option written before the name keeps refine's meaning and is refused as D384 says. On the search path an empty element, which a shell reads as the working directory, is passed over, and the first directory holding refine-NAME wins.

The alternatives: dispatching any unknown word in the command position, after refine's own options, which makes an option before a contributed command mean something to refine and to the tool both; parsing the words after the name, which makes every contributed tool's grammar refine's; and the working directory as an empty PATH element, which runs a refine-NAME the user merely stands beside.

Pinned by the commands suite's the dispatcher, whose cases hold the built-in command first, the words passed as written and the first directory on the path, and scripts/tests/test_cli_native.py's contributed command.

D1603 — refine build runs a contributed refine-build, and says so when there is none

D1484 said that build was reserved: refine build was refused with L0002, "build is reserved for future project orchestration", even with a compatible refine-build on PATH, which refine help left out, refine help build called an unknown command and refine explain never asked for its code prefix. The maintainer decided on 2026-11-19 to lift the reservation when a refine-build is found.

Chosen: build is an external command's name like any other. A refine-build on PATH is located, described, judged, dispatched with LANDIN_REFINE (D1486), listed under refine help's external commands, run for refine help build, asked for its code prefix by refine explain and handed its words by the completion scripts, exactly as D1384, D1385, D1387, D1485 and D1488 say for any contributed command. Only the refusal when none is found differs from another name's: refine build and refine help build with no refine-build are refused with L0002, status 2, saying that refine has no build command of its own, that refine build runs a contributed refine-build and none is on PATH, and to install one or compile with refine compile. An option before build is refused as before any other external name.

The alternatives: keeping the reservation, which the maintainer lifted; removing it outright, which leaves refine build without a tool to D1463's unknown-command refusal, offering refine check build as though build might be a source, when a newcomer who types it most likely expects a build command; and a shipped refine-build, which is a build tool the roadmap leaves to its own successor family.

Pinned by the commands suite's the dispatcher, whose cases run a contributed refine-build for build, help, help build, explain and completion and refuse build and help build without one, and scripts/tests/test_cli_native.py's stand-in refine-build.

D1485 — A split command's process is its whole contract with refine

The tour said nothing.

Chosen: what refine asks of an external command, shipped or contributed, is three arguments and nothing more: --describe, answered as D1387 says; --help, the command's own help, which refine help NAME shows (D1488); and --complete -- WORD..., where the words are those after its name up to the one being completed, that one last and possibly empty, answered with one candidate a line and status 0. refine completion writes, for bash, zsh and fish, a script that hands the words after a first word that names no built-in command to refine NAME --complete -- ..., so the dispatcher's lookup and compatibility check apply to completion as to a run. A command whose first word is being typed is completed from the built-in names alone. A split written in Ada keeps D1385's Ada requirements besides; none of them is part of this contract.

The alternatives: a completion protocol through refine completion with a hidden operand, which adds a surface the documents would have to name; the shell scripts calling refine-NAME directly, which skips the lookup that keeps another release's copy out; and scanning for contributed names when a first word is completed, which runs every tool on PATH on each key press.

Pinned by the commands suite's the dispatcher, that every shell's script delegates, and scripts/tests/test_cli_native.py's bash completion through a contributed tool.

D1486 — A dispatched command is told which refine dispatched it, in LANDIN_REFINE

The tour said nothing.

Chosen: when refine runs an external command, for refine NAME, refine help NAME or a forwarded explanation, it sets LANDIN_REFINE in the command's environment to the absolute path of its own executable, every link resolved, replacing any value the caller had; when the host cannot name it the variable is set empty. A tool that calls back into the compiler runs that path rather than whichever refine comes first on PATH, and one run by its own name finds whatever its environment says, or nothing, and falls back on PATH. refine itself never reads the variable. It is not D275's second place to be wrong: D275 refuses a variable refine would consult to find its library, a setting a user makes once and which can go stale. This one is written by the dispatcher for one child, from the executable that is running, every time, and an inherited value never survives into it. --describe is run without it, since a description must not depend on its caller.

The alternatives: an argument such as --refine=PATH before the command's own words, which breaks D1484's promise that those words are the command's and a contributed tool's own parsing with it; letting the tool look refine up on PATH, which can find another release's copy beside a dispatching one; and leaving an inherited value in place, which lets an outer refine, or a test harness's variable, speak for the one that ran.

Pinned by the commands suite's the dispatcher, which holds the setting a dispatched command is given, and scripts/tests/test_cli_native.py's contributed tool, which prints the variable it was given under a caller's other value.

D1487 — refine version describes the installation it runs from

The tour said nothing; D363 had refine version name the library.

Chosen: after the library line, refine version names the citations.txt refine explain reads there and whether it can: readable, readable but generated from other compiler sources (D1357), not there, cannot be read, or written for another refine; none when there is no library. Then one line for each split command this refine was built with: its path when it is there and compatible, missing with where it was looked for, or its path and why it is incompatible (D1387), each asked to describe itself; split commands: none when it was built with none. --json carries the same as citations, an object with path and state, or null, and split_commands, a list of objects with name, path, state and, for an incompatible one, reason. Contributed commands are refine help's, not the installation's.

The alternatives: a separate refine doctor, a command for what one more line of version says; leaving the split commands to refine help, which lists them for running them and does not say where one is missing.

Pinned by the commands suite's version identity and the dispatcher, and scripts/tests/test_cli_native.py's version identity.

D1488 — refine help NAME of an external command is the command's own help

The tour said nothing.

Chosen: refine help NAME, for a NAME no built-in command has, looks the command up as refine NAME would, and runs refine-NAME --help once it has described itself compatibly, passing its output and status through; a NAME found nowhere is an unknown command as before. refine help lists the external commands a scan finds under the heading External commands:, after the built-in ones: each shipped one with its summary, or missing: and where it was looked for; each contributed one with its summary and path; an incompatible one with its path and the reason. A program named for a built-in command is not listed, since it can never run.

The alternatives: refine help NAME printing the summary line alone, which a tool's own help says better; and listing external commands without asking each to describe itself, which shows a summary refine cannot vouch for.

Pinned by the commands suite's the dispatcher and scripts/tests/test_cli_native.py's contributed command.

D1383 said that svd, bindings and site are split commands, each its own executable linking the same library, and D1423 that a program withing a unit links the body of every unit whose specification it holds, a parent's among them; it did not say how much of the library a split may hold.

Chosen: a split command's main withs nothing whose closure reaches the scanner, the parser, the checker, the IR, a backend, Landin.Driver or Landin.Commands. What a command produced, its status, output, report and the report as data, is Landin.Outcomes.Outcome, which Landin.Driver names as Outcome; its presentation is Landin.Presentation and response files are Landin.Response_Files, all three moved out from under Landin.Driver and Landin.Commands, whose bodies with the whole compiler. The three commands are Landin.Splits.Svd, Landin.Splits.Bindings and Landin.Splits.Site, children of Landin.Splits, each called by a main of three lines, refine_svd.adb, refine_bindings.adb or refine_site.adb, in a project of its own. Linked alone, refine-svd holds 35 of the compiler's units and 4.2 MB of their text in a debug build, refine-bindings 33 and 5.1 MB, refine-site 25 and 1.7 MB, where refine holds 155 and 42.8 MB. A closure pin for each main holds it to the exact set of units it links, and scripts/unit_closure.py refuses a cut that a link cannot honour, a parent of a unit the closure keeps, rather than measure a closure no executable has.

The alternatives: a GPR base project for the splits, which the maintainer declined on 2026-11-18 and which bounds nothing an Ada with does not; keeping the commands under Landin.Commands and cutting the parent in the measurement, which reports 22 units for a program that links 149; and a limit on the size of each split, which a growing command would keep moving.

Pinned by scripts/tests/test_unit_closure.py's SplitClosures, which also holds that every command in compiler/ada/split-commands.json has its pin.

D1544 — A split command keeps the request it answered as a built-in one

D1485 said what refine asks of a split command, --describe, --help and --complete; it did not say what a split reads of the words a user writes after its name.

Chosen: every split command reads its words through Landin.Splits: its own options, each written --NAME=VALUE or --NAME VALUE and given once unless it repeats, -- before literal operands, and @FILE response files expanded and protected as refine expands them; the shared --color, --diagnostics, --quiet, --verbose and -vv, with the same values and the same refusal of --quiet beside --verbose; and --help, which prints usage: refine NAME ..., the options, and the command's own notes. A request that does not parse is refused with L0002 at status 2, as before, and the report is presented as --diagnostics and --color ask. --describe alone, and --complete as the first word, are D1485's answers: the description names refine's source digest and no prefix, since the codes of a shipped command are L codes in the one catalogue, and completion offers the options a word begins, a shared option's values after it, and nothing for a path, which the shell completes. A run that ends in a defect, an exhausted host or a tool that could not start ends with refine's statuses, 70, 71 and 72, its line naming refine-NAME. refine help reference is the reference of the built-in commands; a split's is its own help.

The alternatives: a split taking only its own options, which breaks every refine svd --diagnostics=json ... written before the split; refine parsing a split's words for it, which D1484 refused; and each split writing its own parse, which lets three spellings of one option drift apart.

Pinned by the commands suite's a split answers its own surface, the devices and bindings suites through each split's entry, and devices/test.py's ToyGoldens, run through refine svd and refine-svd.

D1545 — An option before a split command's name is told its new form

D1484 said that an option written before an external command's name keeps refine's meaning and is refused as D384 says; D384 names the command an option belongs to, which for an option of a split refine no longer knows.

Chosen: when the first word that is no option, before any -- or response file, is the name of a split command refine was built with, the request is refused with L0002, status 2, before anything is read or run: the option before the name is refine's own, the command takes its options after its name, and the request is written again with the name first, refine --quiet svd x.svd told refine svd --quiet x.svd.

The alternatives: dispatching the name with the options before it, which makes an option mean something to refine and to the command both, as D1484 refused; and the unknown-command refusal of D1463, which offered refine check for a word that names a command.

Pinned by the commands suite's a split answers its own surface.

D1523 — refine dap speaks GDB/MI to GDB and relays LLDB's own adapter

The tour said nothing; D1383 made dap a split command over the debuggers the targets script.

Chosen: refine-dap holds the protocol's side towards the editor itself, framing as the language server frames, and reaches a debugger through Landin.Platform.Debugger_Session: one long-lived process over pipes, waited on beside the editor's input by one thread. GDB is spoken to over GDB/MI, and every request is answered by refine-dap from GDB's records, which it reads into JSON. LLDB is LLDB's own adapter, lldb-dap, which refine-dap starts, initializes as the editor initialized it, and relays: each request renumbered on its way and each answer and event renumbered back, with launch and attach written in its terms. A program takes LLDB when it is a Mach-O or an ELF whose header names FreeBSD, and GDB otherwise, as the debugging suites debug each target; "debugger" names the other, and "debuggerPath" the executable, which is otherwise gdb, or lldb-dap on the search path and then where xcrun --find says Xcode keeps it. The adapter adds what is Landin's (D1525, D1526) and nothing it would have to keep in step with a debugger's own presentation.

The alternatives: GDB's own -i dap, which needs a GDB with Python, and the GDB the toolchain pins has none; translating LLDB's command line, whose text is not an interface, or its SB API, which needs a Python FreeBSD's base system does not have; one translation for both through a common machine interface, which LLDB no longer offers since lldb-mi was removed; and building dap into refine, which D1383 declined.

Pinned by the dap suite's a GDB session and LLDB's adapter is relayed, scripts/tests/test_unit_closure.py's pin of refine-dap's closure, and compiler/tests/dap/session.py, which the gate runs over GDB on Linux x86-64, Linux arm64 and RV64 under QEMU, and over LLDB on Darwin and in both FreeBSD VMs.

D1524 — A launched program writes to the editor; an attached one is reached through its stub

The tour said nothing.

Chosen: launch takes program, its args, its cwd and stopOnEntry. Under GDB the program is started through /bin/sh, which GDB runs with the shell set back to the caller's for the program itself: its arguments are quoted for that shell, its input is /dev/null and its output and error go to two pipes of the adapter's, which become output events of category stdout and stderr; GDB's own input is the adapter's commands, which a program reading its input would otherwise take. lldb-dap starts the program on a terminal of its own and sends what it writes as events itself. attach takes program and remote, where a debugger stub serves it: GDB's target remote takes HOST:PORT or a socket's path, as QEMU's user emulation opens one, and LLDB's adapter HOST:PORT, as lldb-server gdbserver listens. A disconnect ends a launched program and leaves an attached one running, unless terminateDebuggee says otherwise, and then ends the debugger and refine-dap.

The alternatives: leaving GDB's program on GDB's own input and output, where its writes would be read as GDB's records and its reads would take GDB's commands; a pseudo-terminal, which rewrites the program's line ends; and starting QEMU or lldb-server from the adapter, which would put each target's emulator and transport into it rather than in the lanes that already start them.

Pinned by the dap suite's a GDB session and attach reaches a stub, and compiler/tests/dap/session.py's launched and attached sessions.

D1525 — The library's files are shown from the library refine was shipped with, one namespace at a time

The tour said nothing; D422 records a library file as /landin-library/ and its module path.

Chosen: refine-dap finds the library as the refine beside it would (D363): PREFIX/libexec/landin/refine-dap is shipped with PREFIX/bin/refine, in an installation and in a build tree alike. It maps /landin-library/core, /landin-library/hosted and /landin-library/platform each to that namespace's directory, through GDB's substitute-path and lldb-dap's sourceMap, and maps a frame's path and a breakpoint's path itself where GDB is answered. Nothing else under the library's directory is renamed: a checkout's library is the checkout, whose own sources a whole-directory mapping would have recorded under /landin-library and so lost their breakpoints, as LLDB did when it was tried.

The alternatives: one mapping of /landin-library to the library's directory, which LLDB applies in both directions; and asking refine version --json through LANDIN_REFINE (D1486), which a refine-dap started by its own name, as an editor starts it, would not have.

Pinned by the dap suite's library paths map by namespace and a GDB session, and LLDB's adapter is relayed.

D1526 — A stop in panic_handler is an exception at the source of its site

The tour said nothing; D1292 resolves a site with refine site.

Chosen: when the program stops with panic_handler as its innermost frame, refine-dap asks the debugger for its site argument and resolves it through the program's source table, PROGRAM.sources.json beside it, as refine site would: the stop becomes an exception stop whose description is panic: KIND at PATH:LINE:COLUMN, and exceptionInfo names the check that failed. A table that is missing, or written for another build, is named in the description with the refusal refine site would give. The table is read through Landin.Site_Tables, which refine site now reads it through as well, and which takes no compilation: Landin.Source_Maps writes a table from one and keeps the front end (D1423). Under GDB a signal stop is an exception stop too, named by its signal; a panic without a handler writes its site to standard error before it traps, and that line reaches the editor as the program's output.

The alternatives: a breakpoint the adapter sets on every program's panic_handler itself, which a program without one could not have and which the editor's own function breakpoints already give; and decoding the site in the adapter's own reader, which would be a third reader of a format two units already share.

Pinned by the dap suite's a panic names its site and LLDB's adapter is relayed, and compiler/tests/dap/session.py's panic stop.

D1527 — What refine-dap answers over GDB, and what it refuses

The tour said nothing.

Chosen: over GDB, refine-dap answers initialize, launch, attach, setBreakpoints with conditions, setFunctionBreakpoints, setExceptionBreakpoints with no filters, configurationDone, threads, stackTrace, scopes with one scope of a frame's locals and arguments, variables through GDB's variable objects, which are deleted when the program runs on, evaluate in GDB's own expression language, exceptionInfo, continue, next, stepIn, stepOut, pause, terminate and disconnect. A frame's identifier is its thread's times 100000 plus its level, valid until the program runs on, and a frame with a source is given column 1, since GDB/MI gives none. Any other request is refused naming it; a request before launch or attach is refused saying which comes first; and a debugger that does not answer within sixty seconds fails the request rather than the session. Under LLDB the requests are lldb-dap's, and what it answers is its own.

The alternatives: answering the protocol's every request, most of which no editor sends for a program without threads of its own, and which would be presentation to keep in step with GDB's; and giving each frame column 0, which some editors take for no position at all.

Pinned by the dap suite's a GDB session and refusals say what to do.

D1528 — A program or command a closed pipe ended ends refine quietly

D526 said that refine run names the signal that ended its program and exits with 128 and its number, as a shell reports it, and D1384 that a dispatched command is run the same way.

Chosen: when the signal is SIGPIPE, refine still exits with 141 and writes no line. The program or command wrote to a pipe whose reader had left, as refine dap --help | head leaves; that is no failure, a shell reports nothing for a pipeline member it ends, and refine's own closed pipe ends it quietly (D1047). Every other signal is named as before.

The alternatives: naming it, as refine did, which reads as a failure of refine-dap when head had only read what it wanted; and quieting it for dispatched commands alone, which would make refine run PROGRAM | head and refine NAME | head differ for one cause.

Pinned by the commands suite's run reports a signal.

D1463 — Every request names its command; the bare-source form is refused

D526 said that bare refine FILE checks FILE and closes with a line naming refine run and refine compile, and D731 that the line repeats the options that chose the program. An unknown first word was therefore read as a source, so no word outside the built-in commands could ever name one, and the closing line named the target the request chose, so a recorded fixture that chose it held a line one host's default and another's differed on.

Chosen: a request with an operand and no command is refused with L0002, status 2, before any source is read. The refusal names the first operand as an unknown command and writes the whole request again, each word as a POSIX shell reads it back, after check, or after the command of an option check does not take, so refine -o x.s main.ldn is told refine compile -o x.s main.ldn. When the first operand names no .ldn file and no path, the refusal says first that refine help lists the commands, since a mistyped command is the likelier reading, and offers the check request only if the word is a source. An option of a command given with no command and no operand is refused as D384 says. With the form goes its closing line: refine check stays silent, as D526 had it, and no request prints a command that depends on the host it ran on. --identify and --version, which name no source, keep their spellings. The break is promoted on its own rather than held for a breaking window, because the dispatcher (D1384) cannot read an unknown first word as a command while it means a source.

The alternatives: keeping the form for a word that names an existing .ldn file, which makes what refine NAME does depend on the working directory, and is the ambiguity D1384 needs gone; moving the closing line to refine check, which D526 kept silent as the form tools call; and refusing with the bare "unknown command" alone, which leaves the reader to find the form that works.

Pinned by the commands cases the bare form is refused and options before their command.

D1464 — A fixture's args are check's unless they name a command

The tour said nothing; compiler/tests/README.md said a fixture's args are the arguments refine is run with, which before D1463 needed no command.

Chosen: a fixture's args are run after check unless their first word is one of refine's commands, which they then keep, as the fixtures that record a compile already did, or --version or --identify, which name one. The six whose args emitted without a command now begin with compile. The test program's Verdict_Arguments and fixture_meta.py's verdict_arguments add the command, fixture-meta.cases holds the two to each other, and a lane's target follows the command. source_arguments stays what follows the command, for the lanes that compile a fixture with --emit.

The alternatives: writing check into every one of some eight hundred fixture.meta files, which a rooted fixture's args, options alone, would then contradict, and which the lanes that compile the same args would each strip again.

Pinned by fixture-meta.cases' cases a hosted program with every argument key, a recorded fixture is run with its args as written and recorded args that name their own command keep it.

D560 — The STM32H753 is learnt for prototype 1's UART and DMA, with reviewed corrections

The tour said nothing of a second family. Prototype 1 drives a UART through DMA beside a timer; the maintainer's rig has a NUCLEO-H753ZI, whose ST-LINK virtual COM port is USART3 on PD8 and PD9.

Chosen: the STM32H753 is learnt from ST's own SVD, the copy in Arm's STM32H7xx_DFP at tag v4.1.3, under Apache-2.0, pinned by hash and not vendored. Its policy selects the RCC clock enables for GPIO port D, USART3 and DMA1 (AHB4ENR, APB1LENR, AHB1ENR); port D's MODER and AFRH, for PD8 and PD9's alternate function 7; USART3's CR1, CR3, BRR, ISR, ICR, RDR and TDR; DMA1's LISR, LIFCR and stream 0's S0CR, S0NDTR, S0PAR and S0M0AR; DMAMUX1's channel 0, DMAMUX_C0CR; and TIM2's CCMR1_Input, prototype 1's timer and the selection's alternate register. These use every form D557 reads: GPIOD and USART3 are derived from GPIOA and USART1, every reset mask is the device's, and no selected field but DMAMUX1's enumerates values, which are read as numbers. Status is read and not written, a clear register written as one-clears and not read, and USART3's receive register read with one load.

Where the SVD and ST's CMSIS header disagree, the reference manual decides: RM0433 Rev 9, pinned by its SHA-256 and supplied by hand (D559). Where it says the SVD is wrong, the policy carries a reviewed correction with the section and page it was read at: RCC_AHB1ENR's bit 18 is reserved, not a field (8.7.41, p. 454); port D's mode register resets to 0xFFFF FFFF, all analog, where the SVD gives port A's 0xABFF FFFF by deriving port D from it (11.4.1, p. 541); and the RAMECC diagnostic interrupt is at 145, which the SVD omits (Table 147, p. 759). It is named ECC, the header's ECC_IRQn, because the manual gives that one line three acronyms, RAMECC1 to RAMECC3. Where it says the SVD is right, nothing is corrected and the check names the header's disagreement: DMAMUX1's DMAREQ_ID is bits 6:0 and SYNC_ID bits 26:24 (17.6.1, p. 708), where the header's masks are DMAMUX2's, and WWDG1_RST is at 143, which the header omits.

A policy may so add, move or remove an interrupt, each with a cited source, as it corrects a field. interrupts.ldn then carries the corrected table, and D542's form says each correction in a line of its own after the line that says the file is generated from the SVD, so a reader of the description sees which interrupt is not the SVD's and why.

The alternatives: cmsis-svd-data's copy, a third party's collection of the same files; ST's own download, whose licence is ST's agreement and whose URL serves whatever is current; taking the header's reading wherever it disagrees, which would have widened two DMAMUX1 fields to DMAMUX2's; and correcting no interrupt, which leaves a handler for the RAMECC interrupt refused at its own slot.

Pinned by devices/policies/stm32h753.json and devices/test.py's Stm32h753Oracles, which compares every selected register and field's address and layout with ST's header, the reset values and access policies with literals reviewed from RM0433 Rev 9, each citing its section and page, and the interrupts with the header's IRQ numbers and the manual's table; and the devices suite's a correction is recorded, which holds an interrupt correction's line and table.

D561 — A consumer's device accesses are read from its linked image

The tour said nothing. No emulator models the STM32H753, and a board run is R12's, not the importer's, yet the generated modules must be shown to make the accesses their names promise.

Chosen: devices/consumers/stm32h753 configures the UART transmit with whole images computed in the program, and devices/thumb.py reads the linked image: from its reset vector it evaluates the ARMv6-M instructions the backend emits over memory that is the image's own bytes, and records each store to a device window, with its address, width and value, until the first WFI. The check compares that list, in order, with one reviewed from RM0433's memory map and register descriptions, and requires that nothing enables or maintains the M7's caches. The evaluation models no peripheral, exception or clock: it reads the image, it does not run a chip.

The alternatives: QEMU's core with a recording model at the device's addresses, which the reference profile's map allows and the STM32H753's, from 0x0800_0000, does not; disassembling the image and matching patterns, which a change of instruction selection breaks; and checking the IR, which is not what is linked.

Pinned by devices/test.py's the consumer's linked accesses and the offline the evaluator reads stores and their widths, until D621 retired the evaluation.

Retired by D621: the STM32H753's description has a float unit (D615), so its consumer is hard-float Armv7E-M code, which an ARMv6-M evaluator does not read, and a board now runs it. The board run's oracle checks the consumer's device accesses in their place. What stays checked statically, in devices/test.py's the consumer links cacheless, is that the consumer links where its description places it and that its image holds no literal reaching SCB's CCR or the cache maintenance operations, which is how nothing enables or maintains the M7's caches stays checked in the gate. devices/thumb.py remains for RP2040's second stage (D588).

D562 — The STM32H753's description is cacheless and keeps DMA out of the TCMs

The tour said nothing; the R12 phase admits a cached profile only with its maintenance provider.

Chosen: devices/descriptions/stm32h753/memory.ldn describes 2 MiB of flash from 0x0800_0000, the 64 KiB ITCM at 0, the 128 KiB DTCM at 0x2000_0000, 512 KiB of AXI SRAM at 0x2400_0000, SRAM1, SRAM2 and SRAM3 at 0x3000_0000, 0x3002_0000 and 0x3004_0000, and SRAM4's 64 KiB at 0x3800_0000, each checked against the base addresses of ST's header. The boot kind is vector-table, the plain table at 0x0800_0000. The profile is cacheless: compiler-owned startup leaves the M7's caches disabled, as reset leaves them. DMA1 and DMA2 reach neither TCM, so initialized data, BSS and the stack, where prototype 1's buffers are, are placed in the AXI SRAM, which both streams reach; the DTCM is described and holds only what a program places there by name. This profile stays the board's cacheless one, its bytes and checks unchanged, beside the cached profile admitted with its provider, devices/descriptions/stm32h753_cached, which a program selects by importing it instead (D974).

The alternatives: the stack in DTCM, which is faster and puts any buffer a routine passes to DMA where DMA cannot reach it; enabling the caches here, which needed the maintenance provider the phase required first, and which D974 does in a description of its own so that this one and every program built for it are unchanged; and placing data in SRAM1, which reaches no further and is smaller.

Pinned by devices/test.py's the hand-written memory against the header, which holds each region to the header and every placement DMA may touch out of the TCMs, and the cache check of the consumer links cacheless (D621); and environments/cortex-m/descriptions.py, which selects the STM32H753 by importing its description at --level=armv7e-m and compares its linked regions, vector table at 0x0800_0000 of 166 words, reserved slots, USART3's handler at slot 55, a datum placed in the DTCM and its plain-table boot with descriptions.json, recorded from ST's header. Its capacity verdicts are those of backend_corpus.py's profiles, measured from each limited image's sizes and frames, as RP2040's are, because the corpus links with the reference's probe map.

D700 — A RISC-V description's core and identity are its policy's

The tour said nothing; D542 took the core from the SVD's cpu/name, of which six Cortex-M spellings are read, and the identity from its device/name in lowercase. Espressif's SVDs name their cpu RV32IMC and RV32IMAC, which say nothing of the interrupt model a description's slots follow, and name the device with a hyphen, ESP32-C3, which D556's vendor names refused. RP2350's SVD says CM33, and its Hazard3 cores read the same file.

Chosen: a policy may give core, one of hazard3, esp-rv32imc and esp-rv32imac-clic, which interrupts.ldn then names whatever the SVD's cpu says, and identity, the description's compiler.device, in D542's form, where the SVD's name is not the one wanted; an SVD whose cpu is none of the six Cortex-M names and a policy that names no core is L0528, saying the policy names it. A policy's device may hold hyphens, as the SVD's does; such a policy gives its prefix and description, which module paths hold. Amends D542's step 5 and D556. sifive-e31, the fourth named RISC-V core, has no SVD to learn and no policy names it.

The alternatives: reading RV32IMC as esp-rv32imc, which turns an ISA string into an interrupt controller and would read every vendor's RV32IMC the same; a second SVD for Hazard3, which nobody publishes; and the identity rp2350 for both of RP2350's descriptions, which two records of descriptions.json cannot share.

Pinned by the devices suite's a policy names the core and every refusal is named, devices/policies/esp32c3.json, esp32c5.json and rp2350_hazard3.json, and devices/test.py's D542Form.

D701 — An interrupt matrix's sources are a module, not slots

The tour said nothing; D542's compiler.interrupt(name, irq) is an external interrupt at slot 16 + irq, which is what an NVIC and Hazard3's Xh3irq take. On the ESP32-C3 and ESP32-C5 the SVD's <interrupt> values are the interrupt matrix's sources: each names a mapping register, which routes the source to a CPU interrupt line, and only the lines are slots (the C3's lines 1 to 31, the C5's CLIC identities 16 to 47, as their cores' interrupt models say).

Chosen: on esp-rv32imc and esp-rv32imac-clic, interrupts.ldn keeps D542's lines 1 to 4, its corrections' lines among them, adds after them -- Its interrupts are interrupt-matrix sources, not slots: PREFIX/sources., and holds compiler.device, compiler.core and compiler.vectors(N), N the core's slots, 32 for a vectored mtvec's mcause codes and 48 for the C5's CLIC, and no compiler.interrupt. The sources, as the policy's corrections leave them, are generated as the module PREFIX/sources, beside the register modules and in their manifest: the policy's notice, two lines saying what a source is, the corrections' lines, and public NAME: u32 = N for each, NAME the interrupt's name in lowercase, ordered as D542 orders interrupts. A program routes UART0 by writing a line into the register at interrupt_core0 offset four times sources.uart0. On every other core D542's form is unchanged. Amends D542's steps 5 and 6.

The alternatives: listing the sources as compiler.interrupt at 16 + n, which gives slots the core does not have; dropping the sources, which leaves a program to copy numbers out of a header; and generating them into the description, whose directives are the compiler's and not a program's names.

Pinned by the devices suite's a policy names the core, which holds both texts, devices/test.py's D542Form, which renders both from the SVD apart from refine, and the oracles' test_sources_against_the_header.

D702 — The ESP32-C3 and ESP32-C5 are learnt from their SVDs, ESP-IDF and their manuals

The tour said nothing; prototype 1's board application is to run on the ESP32-C3 and ESP32-C5.

Chosen: the C3 is learnt from espressif/svd at be20aa12560889d6125d144cdb48cf615ac17628, Espressif's repository of SVDs and its newest commit, and the C5 from esp-rs/esp-pacs at a96d437ebad40b00854aa3e78011ad7732713a4d, esp32c5/svd/esp32c5.base.svd, since Espressif's repository has no C5. esp-pacs is Espressif's own Rust team's, whose commits correct the base file in place, so it is the vendor's copy and not D560's declined third-party collection; its policy says modified from it. ESP-IDF v6.1, commit fff9895c82d744c7237be8847347bdd1b07c6643, is each chip's oracle: its reg_base.h, soc.h, the selected peripherals' *_reg.h, interrupts.h and the C5's clic_reg.h. Where the SVD and the headers disagree, each chip's Technical Reference Manual decides, the C3's v1.4 and the C5's v1.1, pinned by hash and supplied by hand since their URLs serve the current version, and the policy carries its correction with section and page. Where both agree, the SVD stands even where the manual reserves a bit. The C3's corrections: its one I2S's clock and reset bits are 21, not 4, and the I2S1 bits the SVD puts at 21 are omitted (16.5, Registers 16.3 and 16.5); and each selected pin's MCU_DRV, bits 6:5, is added (Register 5.21). The C5's: the interrupt matrix's mapping registers from MSPI's on are eight bytes higher than the SVD puts them, UART0's at 0x0BC and SYSTIMER_TARGET0's at 0x0F4 (11.6, p. 480; D704); each mapping register's PASS_IN_SEC, bit 8, is added (11.7, p. 485); the timer groups' WDT_USE_XTAL is omitted (Register 15.10); thirteen sources the SVD omits and the manual and the header number alike are added, and BUS_MONITOR at 27, which the header calls ASSIST_DEBUG (Table 11.5-1); and the CLIC is added (D705). Where the manual agrees with the SVD the check names the header's disagreement: the C3's RTC and super watchdog keys reset to zero, and the C5's pin hysteresis bits exist. The selections are what the boards' port touches: UART0, its pins and an indicator, the clock and reset gates of UART0 and the system timer, UART0's and the system timer's routing, the C3's line enables, types, priorities 1 and 2 and threshold, the C5's CLIC configuration and identities 17 and 18, the system timer for a millisecond wakeup, every watchdog a flash boot leaves running, and the last reset's cause. Generated modules carry Apache-2.0's notice, in the tree as devices/notices/LICENSE-Apache-2.0.espressif.

The alternatives: a third party's C5 SVD; esp-pacs's patched SVD, which its build generates and nobody publishes at a fixed URL; taking the headers' reading wherever it disagrees, which would have given the C5's UART0 the SVD's wrong address and none of the manual's reservations; and selecting every register of each peripheral, which the board does not touch and no reviewer reads.

Pinned by devices/test.py's Esp32c3Oracles and Esp32c5Oracles, which compare every selected register's address and every field's place, width, reset and access with the headers, the sources with interrupts.h, and the reviewed literals with the manuals.

D703 — An element of a register array is a register

The tour said nothing; D557 refused dim arrays, which neither earlier device needed. Espressif's SVDs give the IO MUX's pins and the GPIO matrix's selections as NAME%s arrays, which the boards' port selects.

Chosen: a policy selects an element of a register array by its name, the array's %s replaced by one of its indices: those dimIndex gives, as a range LOW-HIGH or a list A,B,C, or 0 to dim - 1 without one. It is generated as a register of its own at the array's offset plus its position times dimIncrement, and the correspondence records it as a dim_element with the array's name and the index. A dimIndex whose count is not dim is L0529; an index the array lacks, L0530, saying how an element is named; an array whose name has no %s or is written [%s], an element that is an alternate, and arrays of fields, clusters or peripherals stay L0528. Amends D557.

The alternatives: expanding every element of a selected array, which generates sixty registers to touch three; and selecting the array by its %s name, which no module can spell.

Pinned by the devices suite's an array element is a register, and the C3's and C5's IO MUX pins and GPIO selections.

D704 — A reviewed correction may move a register

The tour said nothing; D556's corrections move fields, add or remove interrupts and correct resets. The C5's SVD omits two mapping registers and puts each one after them eight bytes low, UART0's among them.

Chosen: register_corrections gives a selected register's offset, a multiple of four, and the source it was read from; the register is generated there and the correspondence records the SVD's offset beside the source. An offset the SVD already gives, an unaligned one and one of an unselected register are each L0526.

The alternatives: correcting the SVD's file, which D559 pins by hash; and a field or interrupt correction, which cannot move a register.

Pinned by the devices suite's a policy corrects and adds registers and every refusal is named, and Esp32c5Oracles.

D705 — A policy may add a peripheral the SVD lacks

The tour said nothing. The C5's CLIC, whose per-interrupt words enable, prioritize and trigger its lines, is in no SVD: ESP-IDF's clic_reg.h and the manual's 2.8.2 describe it.

Chosen: peripheral_additions gives a peripheral by name, its base, its source, and its registers, each with its offset, access, reset and fields, each field its bits and an optional access, and a register array's dim and increment. refine writes each as the SVD's own XML and reads it as if the SVD gave it last, so it is selected, generated and refused as any of the SVD's, and the correspondence records each of its registers with the addition's source. A fault in what the policy adds is placed in the policy, not the SVD. Adding a peripheral the SVD gives, a member outside those, and an array without both dim and increment are L0526. The C5's policy adds CLIC at 0x2080_0000: MCLICCFG, CLICINFO, and CLICINT%s, each interrupt's four bytes as one word, which the manual says word accesses reach atomically (2.8.2.6, p. 86), with CTL as its three implemented bits; mintthresh is a CSR and not added.

The alternatives: leaving the CLIC to the board's own stores, which a reviewer of the modules cannot see; a hand-written module beside the generated ones, which nothing compares with the manual; and a byte-register view, which D557's 32-bit registers do not take.

Pinned by the devices suite's a policy corrects and adds registers and every refusal is named, and Esp32c5Oracles, which holds the CLIC to clic_reg.h and the manual's 2.8.2.7.

D706 — RP2350's Hazard3 cores have a description of their own

The tour said nothing; D635 learnt RP2350 for its M33s.

Chosen: devices/policies/rp2350_hazard3.json reads the same pinned SVD as rp2350.json and selects the same registers but the M33's private bus, PPB, whose NVIC and VTOR Hazard3 does not have; its core is hazard3 and its identity rp2350-hazard3. Its modules are under generated/rp2350_hazard3, byte for byte the Arm side's, and its description, descriptions/rp2350_hazard3, has the same 68 slots and interrupts, Hazard3's Xh3irq taking IRQ n at 16 + n as the NVIC does, and the Pico 2's map of D636, rp2350-image-block. Hazard3's interrupt control is its own CSRs, which no SVD describes.

The alternatives: one description for both kinds of core, which D543 cannot select by target; and reusing rp2350's modules, which offers a Hazard3 program the M33's NVIC.

D831 supersedes this decision in part: the Hazard3 policy writes its modules under the chip's prefix, generated/rp2350, beside the Arm policy's, and its description stays its own.

Pinned by devices/test.py's Rp2350Hazard3Oracles.

D707 — The ESP descriptions are RAM-only images that keep clear of the ROM

The tour said nothing; esp-app-image is a RAM-only image the ROM loads with no second stage, as the maintainer chose.

Chosen: the C3's SRAM1 is one memory at two addresses, 0x4038_0000 on the instruction bus and 0x3FC8_0000 on the data bus (TRM v1.4, 3.3.2, Table 3.3-1). Its description puts code, the trap table and read-only data in IRAM, the first 128 KiB through the instruction bus, and data, BSS and a 16 KiB stack in DRAM, the 160 KiB from 0x3FCA_0000, the memory after IRAM's, so neither region reaches the other's bytes. The C5's HP SRAM is one address space, 384 KiB from 0x4080_0000 (TRM v1.1, 6.3, Table 6.3-1), and its description's SRAM takes 312 KiB of it for everything. Each ends below the ROM's download buffers, stack and data, from 0x3FCC_AE00 and 0x4084_E5A0 (ESP-IDF v6.1's bootloader.memory.ld.in), so the ROM loads the image without writing it. No flash is mapped and no cache enabled. The C3's lowest 16 KiB of instruction-bus SRAM are its cache's and are not described. Each names its image header's chip facts in compiler.esp_image: chip id 5 and 23, ESP-IDF's esp_chip_id_t; revisions from ESP-IDF v6.1's default minimum, the C3's v0.3 and the C5's v1.0, to v1.99; and the flash offset the ROM reads, 0 and 0x2000.

The alternatives: one rwx region on the C3's instruction bus, which data accesses through the instruction bus do not take; overlapping aliases, which lets data overwrite code; and the whole SRAM, which the ROM's own data would share while it loads.

Pinned by devices/test.py's EspDescriptions, which holds the regions to the manuals and the reservations, and descriptions.json.

D708 — The ESP descriptions stop the watchdogs before reset

The tour said nothing; D653 lets a description hold a stage its reset enters first, which esp-app-image admits too, and a flash boot leaves timer group 0's MWDT and the RTC watchdog running and the super watchdog unfed, which ESP-IDF's second stage would deal with.

Chosen: each ESP description holds watchdogs.ldn, one link(boot_stage) naked routine in RV32 assembly: for both timer groups' MWDTs and the RTC watchdog it writes the key 0x50D8_3AA1, a zero configuration, which clears the enable and flash boot mode, an MWDT's with WDT_CONF_UPDATE_EN set to take it, and a zero key; then the super watchdog's key, 0x8F1D_312A on the C3 and the same 0x50D8_3AA1 on the C5, SWD_AUTO_FEED_EN set in its configuration read back, and a zero key, as ESP-IDF's bootloader_super_wdt_auto_feed does; and it enters _landin_firmware_reset. It uses t0 to t2 alone, no stack and no RAM. Timer group 1's MWDT is stopped too, though the ROM does not start it.

The alternatives: feeding the watchdogs from the program, which ties every program to them; stopping them in compiler-owned reset, which is the target's and not the chip's; and leaving the super watchdog fed by nothing.

Pinned by devices/test.py's EspDescriptions, which reads each stage's stores and holds them to the generated addresses and the manuals' keys, and descriptions.json's reset_stage.

D593 — The first board shares prototype 1's receive contract and command loop, not its device protocol

The tour said nothing of a board. The derived driver of prototype 1 runs against a synthetic device whose drain and count protocol the RP2040 does not have, at synthetic bases, with no clocks, resets or pads.

Chosen: the Pico's port is a program of its own, in compiler/tests/board/rp2040: its serial module keeps the synthetic driver's public receive contract, open, available, read, stop and restart with the same atoms and the same order of checks, over the RP2040's own protocol (D594); its bringup module moves the reference and system clocks to the 12 MHz crystal, gives UART0 the system clock, divides the reference clock to the timer's 1 MHz tick, and takes UART0, DMA, the timer and bank 0's pins and pads out of reset; and its application adds a trace (D595) and three command bytes. What both programs run is compiler/tests/driver/commands: each received byte echoed, ASCII 1 setting the indicator and ASCII 0 clearing it, given each program's bases and pin. That is the scenario whose outcome the emulator lane and the board compare: the same bytes in give the same echo and the same indicator changes. The synthetic driver's drain, its fault injection and repair, its stop timeout and its delayed drain stay the emulator's; the clocks, the resets, the reset reason, the second stage, IRQ5 and the power cycle are the board's.

The alternatives: porting the synthetic driver in place, which would lose the emulator lane's drain and fault scenarios that no board can stage; sharing the whole application, whose interrupt sources, budget and halt policy differ; and sharing nothing, which leaves no outcome to compare.

Pinned by environments/cortex-m/driver.py's exact application trace, which now reads UARTFR before each echoed byte as the shared loop does, and environments/boards/rp2040/board.py's echo and indicator verdicts.

D594 — On the RP2040 a receive snapshot reads the live count, and stop aborts

The tour said nothing; the synthetic premise was that clearing EN drains the channel and BUSY clearing acknowledges it, which the RP2040 datasheet (2.5.5.3) says it does not: clearing EN pauses the channel with BUSY still high, and triggering a paused channel again reloads its count.

Chosen: a snapshot does not pause the channel. It reads CTRL_TRIG and TRANS_COUNT live; the count drops when a transfer is issued, before its write lands (2.5.3.2), and the driver's stated premise is that the write lands before the byte is copied out, a bus latency of a few cycles against the hundreds a snapshot and its copy take. The board's oracle checks every echoed byte against what was sent, which a stale read would fail. stop records what the count says, disables the channel's interrupt, writes CHAN_ABORT, waits at most 1000 polls for BUSY to fall, which 2.5.5.3 says takes a few cycles once the transfers in flight complete, and clears the completion interrupt RP2040-E13 says an abort may raise; bytes received after that last count are discarded with the epoch. A stopped descriptor answers from the count it kept. restart re-arms the channel only after BUSY has fallen. While the channel is exhausted or stopped, UART0's 32-byte FIFO holds what arrives and a byte past it is lost; the UART flags that in UARTRIS's OERIS, and a snapshot reports it as overrun, so no byte is lost unreported. A board run found the loss silent before: a 4096-byte epoch exhausted while the application still echoed its ring lost 116 bytes in the 13 ms before its restart.

The alternatives: pausing with EN through the non-triggering CTRL alias and resuming the same way, which leaves the in-flight writes with no completion to observe; aborting for every snapshot, which ends the epoch each time; and the synthetic drain, which is not this chip's.

Pinned by environments/boards/rp2040/board.py: an overrun burst discarded and restarted, a burst into an exhausted channel flagged by the UART and restarted with the FIFO's 32 bytes kept, an exhausted epoch restarted with no byte lost, every echoed byte in order, and the DMA completion count read over SWD.

D595 — The board's trace oracle starts at power-on and is written from what the host sent

The tour said nothing, and only emulators had run firmware.

Chosen: the board run's oracle is environments/boards/rp2040/board.py, a developer tool that runs no compiler feature. It builds the image with refine and checks, from the ELF alone, the second stage's CRC-32 as the boot ROM computes it and vector word 21; flashes it with probe-rs through the probe's CMSIS-DAP TCP bridge and reads the first 256 bytes of flash back; detaches, cuts the Pico's USB power and restores it, refusing to switch a hub whose guarded port does not hold the device named; and reads the trace the firmware writes on UART0, frames of STX, a tag letter, fields of a key, = and eight hex digits, then ETX and LF, between the echoed bytes. Its expectations come from what the host sent and from the RP2040 datasheet, never from the firmware: CHIP_RESET reads HAD_POR alone, so the run began at power-on; VTOR reads 0x1000_0100, which only the second stage writes, so the ROM entered the flashed stage and the stage entered compiler-owned reset; clk_ref is on the crystal; 1, A and 0, the emulator lane's input, are echoed, the pad reading GPIO3 high after 1 and low after 0, and the probe's GPIO wired to it reading the same on the wire; a burst during a stall overruns the ring once; an epoch ended by a stall and followed by a burst is flagged by the UART and keeps the FIFO's 32 bytes; an epoch filled exactly is exhausted and restarted with nothing lost; every other byte is echoed in order; the timer advances; and the counters read over SWD, without halting the core, equal the last frame's.

The alternatives: a probe-set program counter or a RAM-loaded image, which would not show the board starting from its flash; reading the trace through SWD alone, which leaves the UART's own line untested; and an oracle computed from the firmware's constants, which a wrong constant would satisfy.

Pinned by environments/boards/rp2040/record.json, the recorded run, and scripts/tests/test_board_rp2040.py, which holds the oracle's CRC, framing and accounting to fixed inputs without a board.

D596 — IRQ5 is delivered by setting it pending in the NVIC

The tour said nothing; D544 places a typed handler at slot 21, USBCTRL_IRQ, which the descriptions lane checked only in the linked image.

Chosen: the board application sets IRQ5 pending through NVIC_ISPR when the host sends 0x05, with IRQ5 enabled in NVIC_ISER and the USB controller held in reset, so nothing else raises it; the slot-21 handler counts its entries and reads IPSR, and the oracle requires one entry in exception 21. Interrupt arrival from a peripheral is carried by DMA_IRQ_0 and TIMER_IRQ_0, which the RP2040's own DMA and timer raise.

The alternatives: a USB bus reset from the host, which needs the USB PLL and controller and leaves the host retrying a device that never enumerates; and a debugger write to NVIC_ISPR, which keeps the probe attached through the run.

Pinned by environments/boards/rp2040/board.py's IRQ5 verdict.

D720 — The ESP boards' indicators are GPIO10 and GPIO24

The tour said nothing; D702 selected for each ESP board's indicator the pin of the board's RGB LED, GPIO8 on the ESP32-C3 and GPIO27 on the ESP32-C5. Both are strapping pins, which the ROM samples at power-on to choose how it boots (the C3's TRM v1.4, 7.1, Table 7.1-1; the C5's v1.1, 10.2.1, Table 10.2-1), and an LED loads the pin the oracle reads back.

Chosen: the C3's indicator is GPIO10 and the C5's GPIO24, which the maintainer chose on the rig: neither is a strapping pin, and each is free for a wire to the probe. Each policy selects that pin's IO MUX register and its GPIO matrix output selection, FUNC10_OUT_SEL_CFG and FUNC24_OUT_SEL_CFG, in place of the LED pin's, with the C3's MCU_DRV correction moved with it, and the modules are regenerated. Amends D702's selections.

The alternatives: the LED pins, whose level at power-on the board's own LED circuit sets, so a run that left the indicator driven could change the next boot; and both, which selects registers no program uses.

Pinned by devices/policies/esp32c3.json and esp32c5.json, and devices/test.py's Esp32c3Oracles and Esp32c5Oracles, which hold the pins' addresses and the vendor headers' names for them.

D721 — The ESP ports receive by interrupt and hold their lines off by threshold

The tour said nothing; D593's receive contract was carried by DMA on the RP2040, the RP2350 and the STM32H753, and the maintainer left the ESP chips' UART DMA as a register row.

Chosen: compiler/tests/board/esp32c3 and esp32c5 keep the receive contract's interface and atoms, and receive UART0 by interrupt: the interrupt matrix routes source UART0 to a CPU line, the C3's line 1 at priority 1 in its vectored table (TRM v1.4, 1.5), the map register holding the line, and the C5's external interrupt 1, CLIC identity 17, at level 63 with MNLBITS 3 (TRM v1.1, 2.8.2), the map register holding the identity itself, 16 to 47 (11.5.3), each link(vector: N) its slot (D680). The handler clears the interrupt before it drains the RX FIFO into a 256-byte ring, so a byte that arrives meanwhile raises it again, drops what the ring cannot hold and counts it, and counts each RX FIFO overflow the UART flags; it alone writes what it produced and lost, the program alone what it took, each published with an atomic store and read with an atomic load, which every RV32 level admits (D690). A read that finds either loss count moved fails with overrun until a restart discards the ring. RXFIFO_FULL fires at one byte: on the C5 at a threshold of one, which it compares as at least (32.4.2); on the C3 at one, which it compares as more than (26.4.2), with the RX timeout taking a lone byte, since Espressif's QEMU compares the C3's as at least and at zero never clears it. The ports keep the ROM's UART0 configuration, 115200 baud on its default pins at the ROM's clock, from which D961 lets them change the line, and add a 1 ms system-timer interrupt above the receive one: the C3's line 2 at priority 2 and the C5's identity 18 at level 95. Command 0x13 raises the threshold, the C3's CPU_INT_THRESH to 2 and the C5's mintthresh to 63, for 100 ms by the timer's own count, so a burst then overflows the FIFO while the timer keeps interrupting. Command 0x06 runs the level's atomics over the two bytes before it: on the C3 atomic stores and loads of a byte, a half-word and a word around a fence; on the C5 an add and two compare-exchanges of a word and an add of a byte. Interrupt-driven receive has no epoch: budget is checked and exhausted is never raised.

The alternatives: the chips' GDMA, which is left a row and whose UHCI wrapper each chip programs differently; polling the FIFO, which leaves the matrix, the CLIC and the threshold untested; masking with mstatus.MIE, which holds the timer off too and so shows nothing of a threshold; and a C5 identity hardware vectored through mtvt, which D680 declined.

Pinned by environments/boards/esp32c3/record.json and esp32c5/record.json, and scripts/tests/test_board_esp.py's Scenario.

D722 — The ESP boards' oracle starts at power-on, reads the ROM and the image apart from refine

The tour said nothing; D595 and D655 held the Arm boards' runs to power-on and their boot ROMs' refusal of a corrupted block.

Chosen: each ESP board's tool builds the image with refine and reads OUT.bin with a reader of its own, written from ESP-IDF v6.1's esp_app_format.h and esp_image_format.h: header, chip, revisions, every segment against the ELF's loadable segments, padding, checksum, SHA-256 and nothing after, and refine's build report against what it read; holds the linked disassembly to the level's A extension, none at rv32imc, an AMO and an LR/SC pair at rv32imac; flashes it raw at the description's offset with probe-rs, verified; cuts the board's power and reads, from power-on, the ROM's log: rst:0x1 (POWERON), a flash boot, one load: per segment at its address and length, and the header's entry; then the scenario (D721), the counters and atomic cells read over JTAG against the last frames, and the image's read-only segments read back from SRAM, which must be OUT.bin's bytes. Its negative control flashes two copies: one whose checksum byte is flipped, which the ROM must refuse, naming the image's own checksum as the one it computed, never entering it; and one whose SHA-256 is flipped, which both ROMs, without secure boot, name and boot anyway (Attempting to boot anyway...), so the control requires only that the hash the ROM computed is the image's own.

The alternatives: refine's own reading of the image, which D685 already makes and which a reader sharing its mistakes would pass; a refused hash as the control, which the ROM without secure boot does not give; and burning secure boot's eFuses to get one, which cannot be undone.

Pinned by the boards' records and scripts/tests/test_board_esp.py's Image, Check, Instructions and Rom.

D723 — The ESP boards' tools share a family module

The tour said nothing; D646 put what does not depend on the chip in environments/boards/common.py and kept each board's build, scenario and oracle in its own script.

Chosen: the ESP32-C3 and the ESP32-C5 run one port, whose ROMs load one image format and write one log, so environments/boards/esp.py holds their build, image and ROM checks, controls, scenario and JTAG checks, and each board's board.py gives its chip as facts: identity, revisions, offset and origin, the mtvec its core takes, its indicator, its interrupts' causes, its level's atomics and what they must leave, the cells a probe reads, and its console and power. common.py gains what any board may use: the ESP image and ROM-log readers, a raw download at an offset, ports switched off and on together under the hub's guard, and a tty found by its hub port and opened with DTR and RTS inactive. Amends D646.

The alternatives: a copy of the scenario in each tool, which lets two oracles of one port drift; and the family's parts in common.py, which holds what no chip decides.

Pinned by scripts/tests/test_board_esp.py.

D724 — The ESP32-C5's power-on boot is read over JTAG, and its ROM's log after a chip-enable reset

The tour said nothing; D595 read a board's trace from power-on on a console that is open before the power returns.

Chosen: the ESP32-C5-DevKit-Lipo is powered from either of its USB-C ports, its chip's own USB-Serial-JTAG and a CH340X bridge on UART0, so cutting both cuts all its power, and when they return the chip runs before either has enumerated: no console can be open for the ROM's log from power-on. The tool cuts both together and restores them, and as soon as the USB-Serial-JTAG enumerates reads over JTAG what the chip recorded of that boot: LP_CLKRST_RESET_CAUSE's cause 1, the chip reset (TRM v1.1, 9.1.4, Table 9.1-1), the program's own reading of it in boot_reason, its app_state running and its timer interrupts advancing. Then, with the bridge's tty open and DTR inactive, so GPIO28 stays high and the ROM boots from flash, RTS alone pulls EN low for 100 ms through the board's auto-reset transistors, and the console reads that boot's ROM log, which the ROM reports as rst:0x1 (POWERON), and the scenario. The bridge has no USB serial, so its tty is found by the hub port it is plugged into. The ports' map registers take the CLIC identity, 17 and 18, as themselves (11.5.3), unlike the C3's, which take the line.

The alternatives: restoring the bridge's port first, which powers the chip as the other does; and a scenario without the ROM's log, which leaves the image's segments unchecked on the board.

Pinned by environments/boards/esp32c5/record.json and scripts/tests/test_board_esp.py's PowerOn.

D901 — Board development enters SRAM under an explicit warm contract

The tour said nothing about a debugger's device lifecycle. D725 and D832 serialized flash downloads and power-on runs; probe-rs's RP235x reset can deliberately enter BOOTSEL before catching reset.

Chosen: board tools default to --mode=ram, distinct from explicit --mode=boot. A pinned probe-rs session helper halts and reinitializes the supported board-port state without flash programming or a system reset. It retires active Arm and C5 handlers, resets Hazard3's interrupt context, enable/force windows and priorities, and stops application DMA and interrupt sources before replacing SRAM. It parks the other RP core, checks the supported clock and cache baseline and configures the STM32 supply before writing RAM. Before hardware access the tool checks the helper's offline description against its compiled source identity and pinned probe-rs revision. It validates load ranges and vector bytes independently, verifies SRAM readback, establishes instruction visibility, and sets vector/trap base, stack and entry before compiler startup. The C5's active CLIC level is retired by returning from its handler, not by clearing its threshold. Unsupported prior state is refused with the boot check named. This is a defined warm entry, not a claim that arbitrary device state was reset.

Each board retains a fixed application-silent flash image. A boot check loads and cold-starts the ordinary image, exercises its boot oracle, then restores and checks the fixed image. Boot image-format and startup changes, item closure and the physical board gate require this separate evidence. Pico 2 architecture changes are explicit setup/boot operations off the cascade: install and verify the intended architecture's fixed image before repeated RAM runs on that architecture. One resident image does not promise a ROM-free switch between Arm and Hazard3. Boot and corrupted-image work also stays off the cascade; probe attachment in BOOTSEL is always refused. D906 lets a Pico 2 on a power-only cable do its boot checks and its architecture change on the cascade. Hardware USB-JTAG remains available on the ESP chips. Every hardware phase still holds the host rig lock and stops on kernel USB trouble. Runs record their mode, input identities, elapsed time, warm preparation or boot evidence and physical oracle results.

The RP UART protocol uses ACK, boot frame, GO and readiness before its scenario. Loading precedes the UART connection because independent UDP clients cannot share a probe slot's sequence. The handshake tolerates early bytes lost before UART setup and keeps its bytes outside DMA epochs.

The alternatives: vector catch as a universal clean-reset promise; calling probe-rs's ordinary RAM download and inheriting its reset sequence; or treating a power-on reset flag as proof of a warm run's preparation.

Pinned by the board-tool controls under scripts/tests/, including RAM-only operation, USB stops, helper provenance, mode-specific oracles, fixed-image restoration and the RP startup handshake.

D902 — Offline board builds compare artifact records and carry checked inputs

The tour said nothing about board evidence; each tool previously built only when it was about to contact its board.

Chosen: the offline builder prepares every supported port without USB, probes, the rig lock or network access. It validates artifacts, names every build failure and record mismatch, and distinguishes boot records from RAM records and ELF identity from ESP image identity. The strict command fails on either; the software gate builds both layouts and reports record drift separately from compilation failure. A build never rewrites hardware evidence. Bundles retain compiler and source content identities, including dirty sources and toolchain pins, artifact checksums and the matching tool source. The remote wrapper builds on epycmicro, transfers inputs and runs the oracle on rigpi, which revalidates them before hardware access; failed runs retain their evidence too.

The alternatives: depending on the next physical run to discover a broken port; using an ephemeral pushed-revision compiler artifact for an unpushed tree; or automatically refreshing a hardware record from a build.

Pinned by scripts/tests/test_board_build.py, scripts/tests/test_board_bundle.py and scripts/tests/test_board_run.py.

D904 — Physical boards run in the gate on trusted events only, and their evidence is never reused

Superseded in part by D1647: a push to main takes its boards from a passed run of the same tree instead of running them again.

The tour said nothing about where physical evidence comes from; D901 and D902 made boot checks and RAM runs the closing evidence of a board item, run by hand from the maintainer's host.

Chosen: gate.yml runs every supported board port on the maintainer's rig through one non-ephemeral GitHub Actions runner on rigpi, labelled landin-rig alone and run as a system user with the device groups and no privilege, keys or secrets, registered once with a one-hour registration token and configured in the maintainer's NixOS configuration for rigpi. Its board-scope events are a push to main, a weekly schedule on main and a manual dispatch, in this repository only; a dispatch's scope is full, every software lane and the boards, or boards, the boards with the inputs, document and script jobs. A branch push or pull request never reaches the rig, and its green gate is software evidence only. A fork's pull request runs its own workflow files, so a workflow's if: is no control: the runner's job-started hook, environments/rig-runner/hook.py, refuses before any step every job but a push or schedule on main or a dispatch from a branch by an allowed actor, each of gate.yml at the run's ref with no pull request in its environment or payload. GitHub fails a job whose pre-job script exits nonzero before its first step. The repository's approval setting for fork pull requests is a second layer, not the control.

board-bundles builds the release compiler and every bundle from the commit, strict against the hardware records; each port's leg checks out exactly that commit, takes the artifact by id against its digest, checks its file list and provenance, and runs environments/boards/gate.py: the port's RAM run from the verified fixed image the last run left, then its boot check, which restores and verifies that image again, so a board rests on its fixed image rather than on a RAM application left running; the Pico 2's four steps in order; one leg at a time under one lock. After an run that did not leave its board on that image, a port first takes the boot check that restores it. On a board-scope event the aggregate fails unless every leg succeeded with the outcome passed; physical jobs are never reused, so a main push that reuses a software pass runs the boards fresh, and a main run whose boards fail has a failed gate and serves as no reuse base. A candidate is promoted after its complete software gate and a passed boards dispatch on the identical tree, which a declared explanatory edit skips; main's own push gate is then followed to its end, its failure investigated rather than rerun, and an unavailable rig blocks promotion.

The alternatives: a runner on the build host, which holds the maintainer's keys; an ephemeral runner, whose registration needs a stored token with administration rights while the rig itself persists between jobs anyway; if: conditions as the boundary; boards on every branch push; reusing a candidate's board evidence at promotion; and promotion that lets missing hardware evidence pass as debt.

Pinned by scripts/tests/test_rig_runner_hook.py, which holds the hook to simulated pushes, schedules, dispatches, pull requests and forks; scripts/tests/test_gate_inputs.py, which holds gate.yml's scope, the physical jobs outside the reuse list, the board matrix and the aggregate's verdict; and scripts/tests/test_board_gate.py's Sequence.

D1647 — Main's push takes its boards from a passed run of the same tree

The tour said nothing. D904 ran the boards fresh on every push to main and listed reusing a candidate's board evidence at promotion among its alternatives without a reason. In the 3.4 days surveyed on 2026-11-20, 34 of 35 pushes to main followed a passed boards dispatch on the identical tree or before only explanatory commits; each cost about 11 minutes of the rig and 19 of the promoting item's finish, and in the fortnight before, the one failure of main's boards was a rig difference on a tree that had passed its dispatch half an hour earlier. The maintainer chose this on 2026-11-20.

Chosen: a push to main takes its boards from a run of gate.yml in this repository on a board-scope event, a dispatch, a push to main or the schedule, under a week old and successful, whose board-bundles and every leg ran and passed in a complete job listing, when that run's commit is the identical tree, every file, mode and path, or a base the software-reuse rule of D586 accepts: the same key, an ancestor of the pushed commit, and every commit since it saying Gate: explanatory. gate_inputs.py physical decides it in the inputs job, which then skips the board jobs, and the aggregate accepts their skip on a push to main alone and names the run whose boards it took. The schedule and a dispatch always run the boards, and a run that took its boards is never a base. A candidate still needs its own passed boards dispatch before promotion. main's Linux x86-64 cache entry, which board-bundles saved, is saved by linux-release-main-cache instead, under the tree's gate key.

The reason: the run taken is evidence of the same inputs on the same rig, at most a week old, and the rig is sampled by every dispatch, about twenty a day, and by the weekly schedule, so a rig that has changed shows within hours on another item's dispatch. A second sample at promotion bought a red main, which blocks every item, for a rig change.

The alternatives: keeping D904's rule; running the schedule daily as well; and dropping the candidate's dispatch so that main's boards are the only ones, which turns main red on a candidate's board or cycles difference.

Pinned by scripts/tests/test_gate_inputs.py's BoardsReuse cases and BoardVerdict's test_a_main_push_may_take_its_boards_from_a_passed_run and test_a_dispatch_or_the_schedule_never_takes_boards.

D905 — A board run reports one outcome, stops cleanly when cancelled, and shares one rig state

The tour said nothing; a board tool's result.json said passed or failed, and each user's run kept its lock and pace in its own home.

Chosen: every board tool's result.json keeps its status and adds an outcome, one of passed, failed, usb-stopped, unavailable, rig-busy, rig-tool-mismatch, needs-setup, needs-operator and cancelled, each refusal naming its own; gate.py adds incomplete for a step that left no readable result. A cancellation or USB stop outranks any other outcome, and of the rest the first specific one is kept. A preflight refusal is still written as a result under --output. SIGINT or SIGTERM stops a tool at its next point; a power cycle or download under way finishes first, a fixed-image restoration not yet begun is skipped and recorded pending, since it outlasts a cancelling runner's grace and the next boot check restores the board anyway, and the tool releases the lock and records cancelled with the signal and the phase reached. gate.py writes runs/PORT.json before each step and removes it only when the sequence ended on its passed boot check, the board on its restored and verified fixed image: a later run keeps a leftover entry as previous_interrupted and begins with the boot check of the resting image, the sequence's last, which flashes over SWD whatever the board runs; the power-only Pico 2 needs no operator for it.

The rig's state is one directory, /var/lib/landin-rig on rigpi when it exists, LANDIN_RIG_STATE when set, the home's ~/.cache/landin otherwise: the lock, the pace, the journal, the bitstream's load record, the probehive runtime and the helper's link. Its group is shared by the maintainer and the runner's user, its files are made 0660 and its directories setgid 2770, and a held lock in the home's old place stops a run needs-operator. A board tool waits for the lock without end; gate.py waits a bounded time and ends rig-busy. The loaded bitstream cannot name itself, its LiteX identifier being the constant probehive, so environments/boards/rig.py records each load with the Pi's boot id and the Arty's enumeration, and the gate accepts the record only while both are unchanged.

The alternatives: a pass/fail status alone, which leaves a busy rig, a stale tool and a broken board indistinguishable; restoring the fixed image inside the cancellation grace, which a kill would cut short; a lock per user, which lets a CI run and a manual one overlap; and trusting the bitstream file's hash as the loaded one's.

Pinned by scripts/tests/test_board_common.py's SharedState, BoundedLock, Outcomes and Cancellation; scripts/tests/test_board_gate.py's Refusals and Cancellation; and scripts/tests/test_board_rig.py.

D906 — A power-only Pico 2 boots and changes architecture on the cascade

The tour said nothing. D832 and D901 kept every Pico 2 boot check, architecture change and corrupted-image control off the cascade and refused every probe attach in BOOTSEL, because a BOOTSEL Pico 2, or the boot ROM's USB that probe-rs's RP235x download reset leaves halted, failed enumeration until the host's xHCI controller died; and the Pi's only other ports share the cascade's controller, so off the cascade meant the operator's manual UF2 transport.

Chosen: on the rig the Pico 2 hangs from the cascade's hub .3.3, port 2, through a cable carrying VBUS and ground alone, which rig.json names. Its SWD and UART are probehive's and its fixed images are USB-silent, so it needs no USB data, and without data lines neither BOOTSEL nor the halted ROM ever reaches a host controller. With --power-only, the maintainer's word for that cable, both Pico 2 tools run boot checks and the change between Arm and Hazard3 on that port unattended, and attach a probe whatever the boot ROM runs. The port must show no device at all: any device it shows stops the run needs-operator before an attach or a switch, since it means the cable carries data. A power-only cable cannot copy a UF2, so --boot-transport=manual-uf2 is refused with it. The gate runs rp2350_hazard3 RAM from the resting fixed Hazard3 image, rp2350 boot, rp2350 RAM and rp2350_hazard3 boot, and ends on the fixed Hazard3 image. For a Pico 2 with a data cable D832's and D901's rules stand, manual UF2 off the cascade among them; malformed-block controls stay refused in both arrangements. The maintainer's NixOS configuration for rigpi also sets early_stop on that port, a backstop no tool relies on.

The alternatives: a gate leg that reports needs-setup until another controller exists; operator-assisted manual UF2 counted as unattended evidence; RAM-only Pico 2 evidence, or one architecture only; and a second Pico 2 resident in each architecture, which removes the change from the gate without removing the need for a cold start on the cascade.

Pinned by scripts/tests/test_board_rp2350.py's power-only controls, scripts/tests/test_board_rig.py and scripts/tests/test_board_gate.py's Refusals.

D958 — The PL011 ports change their line with the UART disabled, and only the emulator sees their registers

The tour said nothing; the Picos' serial modules wrote IBRD 6, FBRD 33 and LCR_H 0x70 by hand for clk_peri's 12 MHz.

Chosen: compiler/tests/board/rp2040/serial and rp2350/serial, which the Hazard3 port shares, compute IBRD, FBRD and LCR_H through core/line as the derived driver does (D957), at 12 MHz, 12 to 750,000 baud, nine data bits refused, and open takes a line.settings. configure(inout r, settings) computes every image first, waits until UARTFR says the transmit FIFO is empty and the UART not busy, clears UARTCR, writes IBRD, FBRD and LCR_H, and enables the UART again; the DMA channel and its ring are untouched, and a byte arriving while the UART is disabled is lost, so a program changes the line only while its peer waits for it. The Picos' consoles are probehive's bridge, whose line is fixed when it starts (D963), so their applications open the default and take no line request; configure is linked into no image (D296). What evidences these modules is arithmetic and the emulator: runtime/library-shared-line at 12 MHz, and the derived driver's identical PL011 encoding on QEMU, which is register images and not a line.

The alternatives: a line request in the Picos' applications that no host can send, untested code in every image; and changing the bridge's line, which is a shared external service.

Pinned by the boards' builds and runtime/library-shared-line; their records' line verdicts say the exchange was not run.

D959 — The STM32H753 takes words of seven to nine bits and stops its stream to change line

The tour said nothing; D647 put USART3 at BRR 556 on the 64 MHz HSI.

Chosen: compiler/tests/board/stm32h753/serial computes BRR through core/line, oversampling by 16, 16 to 65535, 977 to 4,000,000 baud (RM0433 48.5.7, p. 2034), and the frame: the word is the data bits and the parity bit, 7, 8 or 9 of them, CR1's M1 and M0 10, 00 and 01, PCE and PS for parity (48.8.1, p. 2067), and CR2's STOP 10 for two stop bits (48.8.3, p. 2074), which the policy now selects. Nine data bits are refused, since the ring and the transmitter move bytes, and so are five, and six without parity, which no M gives. CR1's frame bits, BRR and CR2 may be written only with UE clear, and clearing UE resets the USART's DMA requests, so configure waits for TC and TXFE, stops the stream (D648), programs the USART with UE clear and then set, and restarts the stream, which discards the ring's unread bytes. open programs the same way: 115,200 8N1 is BRR 556, CR1 as before and CR2 zero, its reset value. The public interface the cached profile shares is open(settings: line.settings, budget, escaping buf), configure(inout r, settings) ! line.unsupported_rate | line.unsupported_format | stop_timeout | transfer_error and line_registers(settings), with clock and registers.

The alternatives: changing BRR with UE set, which RM0433 forbids; a line change that keeps the epoch, which would leave the stream armed while the USART drops its requests; and leaving CR2 unselected, which keeps two stop bits from a chip and a bridge that both have them.

Pinned by environments/boards/stm32h753/board.py's line_oracle, written from RM0433, against the l frames of the exchange (D962), and devices/test.py's Stm32h753Oracles, which hold CR2 to ST's header.

D960 — The ESP32 and ESP32-S3 program their line in serial, the ESP32 without two stop bits

The tour said nothing; each port's bringup wrote CONF0 and CLKDIV 0x0040015b for 115,200 8N1 at 40 MHz.

Chosen: bringup gives UART0 its clock, the 40 MHz crystal undivided, its reset and its pins, and serial.open writes the line: CLKDIV and FRAG through core/line, once a bit with four fraction bits, the integer at least 16, since the TRM gives 5 Mbaud at 80 MHz as the fastest (the C3's 26.4.3.1, which the three share), and at most CLKDIV's field, 20 bits on the ESP32 and 12 on the S3, so 39 or 9,766 to 2,500,000 baud; and CONF0's PARITY, PARITY_EN, BIT_NUM and STOP_BIT_NUM, the rest of CONF0 kept. The divisor rounds, so 115,200 is still 0x0040015b and CONF0 0x1c. Nine data bits are refused, since BIT_NUM reaches eight. The ESP32 refuses two stop bits: ESP-IDF v6.1's uart_ll_set_stop_bits gives them on that chip as one stop bit and RS485_CONF's DL1_EN, working round a fault of the chip's own two-bit setting, and the port selects no RS485_CONF. configure waits until TXFIFO_CNT and the transmitter's state say everything has been sent and programs the same registers; the receive interrupt and the ring are as they were.

The alternatives: selecting RS485_CONF to give the ESP32 two stop bits through ESP-IDF's workaround, which the exchange needs no more than the parity frames give it; dividing the S3's clock with SCLK_DIV_NUM to reach 9600, which changes a clock the port otherwise keeps; and leaving the line in bringup, whose constant no refusal could guard.

Pinned by environments/boards/esp.py's line_oracle and xtensa.py's plans, against the l frames of the exchange (D962).

D961 — The ESP32-C3 and C5 keep the ROM's clock and learn it from the ROM's divisor

The tour said nothing; D721 kept the ROM's UART0, 115,200 baud, with no clock the ports knew.

Chosen: the C3's and C5's ports change no clock. The first open reads the divisor the ROM left in CLKDIV, or CLKDIV_SYNC, and takes UART0's clock as 115,200 times it, which the ROM's rounding leaves within 0.01 percent; every divisor is computed from that clock through core/line, CLKDIV's 12 bits and the integer at least 16, and the frame as D960's. So the default line, given again, writes the ROM's own values back. Clock sources were not chosen instead: the C5's TRM v1.1 and ESP-IDF v6.1's pcr_reg.h disagree on PCR_UART0_SCLK_SEL's encoding and reset value, and the C3's own source, the crystal halved at reset, must also match its APB clock while HIGH_SPEED synchronizes its registers. configure waits until TXFIFO_CNT and FSM_STATUS's ST_UTX_OUT, which both policies now select, say everything has been sent, then programs the line, the C5's through REG_UPDATE. The C5 runs the exchange on its CH340X (D962). The C3's console is probehive's bridge, so its application opens the default and takes no request; its configure is linked into no image, and at 20 MHz its receive interrupt keeps pace only with paced input even at 115,200 (D727), so nothing here shows it at any faster line.

The alternatives: selecting the crystal for UART0 and dividing it, which the C5's two sources describe differently and which changes the ROM's working line; and a clock named per board in the source, which a ROM that chose another would make wrong without a refusal.

Pinned by environments/boards/esp32c5/board.py's plan, whose l frames name the clock the port inferred, which esp.line_oracle admits only within 0.1 percent of the crystal's 48 MHz or PLL_F80M, and devices/test.py's Esp32c3Oracles and Esp32c5Oracles, which hold FSM_STATUS to the vendor headers.

D962 — A tty board answers a line request on the old line, changes, and comes back

The tour said nothing.

Chosen: the STM32H753's, ESP32's, ESP32-S3's and ESP32-C5's applications take two more command bytes, each echoed first. 0x16 is followed by eleven digits, 'a' to 'p', four bits each, most significant first: the rate's eight, then the data bits, the parity, 0 none, 1 even and 2 odd, and the stop bits. When the last arrives the application answers on the line in use with an l frame of what it read, r, d, p and s, the clock it computes from, k, and o: 0 with the register images, b the divisor and f the frame, and on the STM32H753 x its CR2, after which serial.configure changes the line; or 1 for line.unsupported_rate and 2 for line.unsupported_format, with nothing written and the line as it was. From then every byte but 0x17 that arrives is counted and hashed, 32-bit FNV-1a, as well as echoed and handled as ever; 0x17 answers on the new line with an e frame, n the count and h the hash, and then the default line is set again. A line request abandoned by any byte but a digit is dropped.

The alternatives: a request in readable decimal, whose digits are the indicator's 0 and 1; changing the line first and answering on the new one, which the host could not read before it had changed too; and a fixed payload checked by the board, which leaves the host's own echo comparison the only oracle when the count and hash give a second.

Pinned by scripts/tests/test_board_common.py's LineExchange, a fake board answering with the STM32H753's own oracle, and the tty boards' records' line verdicts.

D963 — The host changes its tty with the board, and a bridge's fixed line is a verdict

The tour said nothing; TtyConsole set 8N1 at one of five rates and TcpConsole took what probehive's bridge gave.

Chosen: common.TtyConsole.line(baud, data_bits, parity, stop_bits) sets the tty's rate, 9600 to 921,600, data bits 5 to 8, parity and stop bits once what was written has been sent; raw mode checks no parity on input. common.line_phase runs the exchange from a plan of settings and the outcome each must have, with the port's own oracle written from its manual: for each it sends the request, requires the l frame to read it back and to give the oracle's outcome and register images; for a refusal it requires a telemetry frame on the line in use; for an accepted line it changes the tty, requires that nothing arrives while the two ends change, sends a 48-byte payload and 0x17, requires the payload's echo byte for byte and the e frame's count and hash, changes back and requires a telemetry frame on the default line. Each tty board's leg takes one rate change, two frame changes and the two refusals, after every existing oracle and before the probe's cross-checks, which take the last telemetry frame:

Board Bridge Accepted Rate refused Format refused
STM32H753 ST-LINK V3 VCP 230400-8N1, 9600-8E1, 57600-7O2 300 6N1
ESP32 CH340 921600-8N1, 9600-8E1, 57600-7O1 3,000,000 8N2
ESP32-S3 CH340 460800-8N1, 19200-8O2, 57600-7E1 9600 9N1
ESP32-C5 CH340X 230400-8N1, 38400-8E2, 57600-7O1 300 9N1

A TcpConsole is probehive's bridge, 8N1 at its one rate: the RP2040's, the RP2350's, the Hazard3's and the ESP32-C3's runs record line as not run: probehive bridge fixed at 115200 8N1. A passed exchange shows that the board's registers and the bridge agree on a line well enough to carry every byte both ways; it does not measure a bit's time.

The alternatives: a separate tool for the line, which would repeat a power cycle the scenario already pays for; checking the exchange's images against the board's own constants, which a wrong constant would satisfy; and silence on the bridge ports, which a reader of their records could not tell from an exchange that passed.

Pinned by scripts/tests/test_board_common.py's LineExchange and Consoles, and scripts/tests/test_line.py, which holds the oracles' divisors to an exact one.

D964 — The derived driver's model holds the PL011's line rules, and register images are not a line

The tour said nothing; DriverPeripheral checked only that IBRD fit 16 bits, FBRD 6 and LCR_H 8, and the lane required 26, 3 and 0x70.

Chosen: the model refuses an LCR_H write that latches IBRD 0, or FBRD above 0 at IBRD 65535, or sets BRK or SPS, and records the latched images with what they mean at the declared 48 MHz: the rate as a fraction, the data bits, the parity and the stop bits. driver.py's pl011, written from the RP2040 datasheet's 4.2.7.1, the integer part and the fraction's 64ths rounded with their carry, is the oracle: eight lines, from 46 to 3,000,000 baud and every data width, parity and stop count, are opened through the public driver and each register image and latched line must be its answer, and three characters fed on each, a parity frame's with its parity bit above the data, must be read back as sent (D965); rates 0, 45 and 3,100,000 and data bits 4 and 9 are refused with every UART register unwritten and nothing latched; and 115,200 8N1 is still the application's 26, 3 and 0x70 in its exact trace. The model sends no bit at any rate, so this is evidence of the images the driver writes, never of a line's timing.

The alternatives: timing modelled bits in the emulator, which would check the model against itself; and an oracle sharing core/line's rounding, which would share its mistakes.

Pinned by environments/cortex-m/driver.py's lines and configurations on every profile, and scripts/tests/test_line.py, which holds pl011 to the exact oracle.

D965 — A received byte is its frame's data bits alone

The tour said nothing; D955's ports read their rings' bytes as the receiver left them. A rig run of the STM32H753 found that wrong for a parity frame of seven data bits: RM0433's Table 408 (48.5.12, p. 2042) and USART_RDR (48.8.12, p. 2098) put the received parity bit at the word's MSB, bit 7, the stream moved it into the ring with the data, and on 57600-7O2 the application read 0x17, whose odd parity bit is one, as 0x97. Its echo was right, since the transmitter makes its own parity bit, but 0x17 was not the command, and no e frame came.

Chosen: line.data_mask(settings) is the low data_bits bits of a byte, all eight for eight or nine. Every port's descriptor keeps its line's mask, set by open and by configure once the line is programmed, and read returns each byte of the ring ANDed with it, so the stream, the interrupt and the ring are as they were and a byte read is its frame's data bits with zeros above. What the hardware leaves differs, and the mask makes the contract the same: the STM32H753 leaves the parity bit at bit 7 of seven data bits and bit 6 of six, and for eight data bits and parity at bit 8, which a byte transfer drops; the PL011 removes the parity bit on receive (RP2040 datasheet 4.2.1), so the Picos' and the derived driver's reads change nothing it delivers; and the ESP UARTs store the data bits alone in their RX FIFO (the C3's TRM 26.3, which the ESP32, the S3 and the C5 share), the high bits for fewer than eight unstated, which the mask then decides.

The alternatives: masking where the stream writes, which a DMA ring cannot; masking in the application, which every program would have to repeat; masking only the STM32H753, which leaves the ESP ports' unstated high bits to the hardware; and a terminator test on the data bits alone, which the count and hash would still see wrong.

Pinned by environments/cortex-m/driver.py's lines, which feeds the model 0x17 under odd parity with its parity bit at bit 7, as the STM32H753's RDR leaves it, and requires 0x17 read back; scripts/tests/test_board_common.py's LineExchange, whose fake board keeping the parity bit fails 57600-7O2 as the rig did, and runtime/library-shared-line's masks.

D725 — Every board run holds the rig's lock and paces what disconnects a device

The tour said nothing; each board tool switched its own hub port when it ran.

Chosen: on the maintainer's rig every hub of the cascade re-enumerates whenever any port is switched or any device on it disconnects, an ESP chip's reset after a download among them, so two runs at once disturb each other, and several such actions in quick succession once set the kernel power-cycling the cascade's ports for most of a minute. Every board tool's run therefore holds one host-wide lock, common.rig_lock, an exclusive flock on ~/.cache/landin/rig.lock naming its holder, which a run started under flock on the same file by hand finds held by its parent and goes on under; and the ESP tools pace every action that disconnects a device, a download, a port switched off or on and the C5's chip-enable reset, with common.Pace: at least 120 s after the previous one by any tool on the host, only after the kernel has logged nothing of USB for 60 s, stopping when it logged a USB error since that previous action; and after each they wait for the hub to list the board again, common.wait_for_hub. The probe's Arty, which must never lose power, is kept off the cascade: every tool finds it by its USB serial wherever it is, common.off_cascade, and switches, downloads or resets nothing while it is absent or on the cascade whose ports are switched, in place of the earlier guard that required it on one port of the hub being switched.

The alternatives: a lock per hub, which the cascade makes one hub; retrying a listing that finds no hub, which hides the trouble the pace stops at; and the spacing left to whoever runs a tool, which two streams did not keep.

D832 extends the pace and the wait to every board tool, the RP2040's, the Pico 2's and the STM32H753's among them. D835 lets the pace be told that trouble it stopped at is understood.

Amended for the cascade's present port: the whole-tree re-enumeration above was the cascade's top hub dropping from the host's front-panel USB2 port it hung from. Since the cascade moved to the ASMedia xHCI, PCI 0000:c2:00.0, 3-2 after the host's reboot, a switch disconnects only the device on the port switched: on 2026-11-03, under the rig's lock, uhubctl -l 3-2.3.4 -p 2 -a cycle dropped and re-enumerated the ESP32-C3 alone, back in 2.8 s, and two cycles back to back, the Pico H's port and the ESP32-C5's, dropped the C5 alone, back in 1.8 s; no hub and no other device disconnected. The fixed spacing and the quiet minute defended against a cause that was gone, and made 86% to 96% of each run: the ESP32-C5's took 1108 s, about 1068 s of it waiting, and the STM32H753's 463 s, about 397 s. So common.Pace waits for nothing fixed by default: an action still stops at any USB error the kernel logged since the last one, until it is acknowledged (D835), and waits only for what it needs, the hub listing again, common.wait_for_hub, and the device it acts on present; --spacing and --quiet remain options, zero by default.

Amended for the shared rig state (D905): the lock is no longer in each user's home. common.rig_lock holds rig.lock in the rig's shared state, /var/lib/landin-rig on rigpi, which LANDIN_RIG_STATE overrides and ~/.cache/landin replaces on a host without it, so that the gate's runner user and the maintainer serialize on one lock and see one pace; a held lock in the old place stops a run for the operator.

Pinned by scripts/tests/test_board_common.py's RigLock, Pace, SharedState and BoundedLock.

D726 — An ESP port resets its RX FIFO on an overflow and drains nothing of it

The tour said nothing; D721's receive interrupt drained what the RX FIFO held whatever the interrupt's cause.

Chosen: when the receive interrupt finds RXFIFO_OVF it counts the overflow, resets the RX FIFO, CONF0's RXFIFO_RST on the C3 and CONF0_SYNC's on the C5 followed by REG_UPDATE (TRM v1.4, 26.4.2; v1.1, 32.4.2 and 32.6.1), and returns without draining it, as ESP-IDF v6.1's UART driver resets the FIFO on that interrupt; the program then restarts on the counted loss as before. On both boards, draining after an overflow left the program echoing bytes it no longer acted on, and once on the C3 jumped to address 0; Espressif's QEMU, which paces its serial input, never overflows and never showed it. With the reset, the threshold scenario's burst is neither echoed nor kept, one overflow is counted, and the next request is answered.

The alternatives: draining the FIFO as before, which the boards showed wrong; and resetting it only in the program's restart, which leaves the interrupt to read what the overflow left meanwhile.

Pinned by the boards' records' threshold verdicts.

D727 — The ESP boards' stream is sent a piece at a time, after each piece's echo

The tour said nothing; D722's stream sent 3000 bytes at the line's rate, as the DMA ports' do.

Chosen: the stream goes in pieces of 64 bytes, each sent once the one before it has been echoed, and the verdict is unchanged: every byte sent is echoed in order but the two bursts the scenario discards. The ESP32-C3 runs from its reset clock, the crystal divided by two, 20 MHz (TRM v1.4, 6.2.4.1, Table 6.2-2; SYSTEM_SYSCLK_CONF read 0x000A_8001 on the board), at which the port's per-byte interrupt and echo do not keep pace with 115200 baud: an unpaced stream was dropped by its receive interrupt, 2469 of 3000 bytes, which the port reports as overruns, as it should. The ESP32-C5's record was taken with the stream at the line's rate, which it kept.

The alternatives: raising the C3's CPU clock to its PLL, which needs the chip's analog PLL bring-up, a second stage's work the RAM-only image does not do; and a slower line, which leaves the ROM's 115200 and the other boards' rate.

Pinned by environments/boards/esp32c3/record.json's stream verdict and scripts/tests/test_board_esp.py's Scenario.

D832 — Every board tool paces and waits for the hub, and a flash from BOOTSEL is cycled at once

The tour said nothing; D725 paced the ESP tools' downloads and switches and had them wait for the hub after each, and D712 kept the Hazard3 tool from attaching to a Pico 2 in BOOTSEL, while the Arm Pico 2's tool still flashed from BOOTSEL and left the halted boot ROM on the bus, and the RP2040's, the Arm Pico 2's and the STM32H753's tools neither paced nor waited.

Chosen: every board tool's downloads and power cycles are paced with common.paced, only while the probe's Arty is off the cascade, and after a download or a switch every tool waits with common.wait_for_hub for its hub to list again, and to show the device the port must hold when it holds one, the STM32H753's ST-LINK; a listing that finds no hub at all no longer passes for one that shows nothing. The two Pico 2 tools share pico2.py, which switches, paces, waits and flashes for both: each attaches as the architecture the cores run, as D712 has the Hazard3 tool do, so the Arm tool, which met a FAULT as RP235x on a board the Hazard3 tool had left running its RISC-V image, flashes such a board as RP235x_riscv and boots its image by a power cycle before reading the head back; neither attaches while the port shows BOOTSEL unless told --bootsel-attach, which their block controls need; after a flash from BOOTSEL the power is cycled at once, unpaced but recorded as the last action, since a paced cycle would stop at the trouble the halted boot ROM makes the kernel log, and the pace's two minutes, while D725 had them, would leave it on the bus that D712 found resetting the hub tree; and the head is never read back while the port still shows BOOTSEL. A download is paced even when the chip it resets enumerates nothing: on 2026-11-03 a download to the RP2040, whose firmware has no USB, was followed within a second by the whole cascade disconnecting. The cause was the listing that followed it: on the same day uhubctl -l 7-2.3.3, a listing alone while the kernel had that hub runtime-suspended, was followed a second later by every hub of the cascade disconnecting and enumerating again. So every tool asks a hub's first listing again while it fails, common.Listings, which D725 declined as hiding trouble: the listing is what disturbs the cascade, and the pace still stops at any error the kernel logs.

Amended for the cascade's present port: the cascade-wide disconnects above were met while it hung from the host's front-panel port 7-2. On its present port a switch drops only its own device and the pace keeps no fixed spacing or quiet time (D725's amendment), so a paced action follows the last as soon as the hub lists again, and the cycle taken at once after a BOOTSEL flash differs from a paced one only in not stopping at the trouble the halted boot ROM causes.

Amended for probe-rs's RP235x reset: the halt that leaves BOOTSEL on the bus is not only an attach's. probe-rs's RP235x system reset, which every download makes before it loads its flash algorithm, reboots the chip into BOOTSEL through the watchdog's scratch registers for 30 ms so that the boot ROM raises its clocks, then resets it again with the reset caught, leaving the boot ROM's USB device connected with its core halted. On 2026-11-03 the Arm tool's block control attached, read one word and downloaded its corrupted image, about 1.3 s from 16:48:20.2, and nothing else touched the chip; at 16:48:20.688 3-2.3.3.2 enumerated, failed four descriptor reads with -110, was power-cycled by the kernel at 16:49:24, and at 16:49:42 the host's xHCI controller stopped answering its commands and was declared dead, with the probe's Arty and the whole cascade on it, while the tool's next listing waited behind the kernel's enumeration. So every download as RP235x, by either Pico 2 tool, is followed at once by the power cycle, unpaced but recorded, before any wait for the hub and before any probe-rs attaches or reads; the head is read back from the booted image after --boot-seconds; and the block control's corrupted image is never read back once flashed as RP235x, the cycle bringing the boot ROM up in BOOTSEL, which the tool only lists. The cycle cannot come sooner than the kernel lets the hub be switched: a uhubctl call waits while the hub enumerates a port, as that listing waited 82 s, so the rule shortens the device's time on the bus without closing it, which only a reset that does not leave BOOTSEL halted closes.

The alternatives: pacing the cycle after a BOOTSEL flash like any other, which waits two minutes beside a boot ROM the kernel is already failing to reach, and whose pace would then stop at the USB errors that wait causes; leaving a download through a probe off the cascade unpaced, which the RP2040's run above refutes; probe-rs told not to halt a core it only reads, which leaves the download's own halt; and flashing the good image back over USB through the boot ROM's PICOBOOT interface, which needs a tool and rights no other run uses.

Pinned by scripts/tests/test_board_rp2350.py's Control and Hub, test_board_rp2350_hazard3.py's Attach and Hub, the RP2040's and the STM32H753's Hub cases, and test_board_common.py's Pace and Hubs.

D833 — The board tools find the hub cascade by its hub and name each board's hub relative to it

The tour said nothing; every board tool's --hub and --cascade defaults, and each board's README, named the maintainer's rig by the paths the kernel gave it on one host port, 7-2.3.3 under 7-2.

Chosen: the rig's hub cascade is found by its hub's identity, common.cascade_root: the one USB hub 0bda:5411, the RTS5411's USB2 side the cascade is built of, whose parent is not one, under any controller and on any port; when no hub or several are such a root the tool refuses before it runs and asks for --cascade. A hub is named either as uhubctl -l names it or relative to that root, .3.3, and every tool's defaults are relative, so the Arty guard's cascade and every switched hub follow the cascade wherever it is plugged in. An explicit --cascade or an absolute --hub is taken as it is. On 2026-11-03 the cascade moved from 7-2, a front-panel port whose controller kept dropping its top hub, to 5-1 on another controller, and every default named the old one.

The alternatives: the root's path kept in a host file of the rig's own, which is one more thing to edit on the next move; and the root found by the boards' serials, which the Pico boards' firmware never enumerates.

Pinned by scripts/tests/test_board_common.py's Root.

D835 — USB trouble stops the pace until it is acknowledged with a reason

The tour said nothing; D725's pace stops a run when the kernel logged a USB error since the last paced action, and nothing but that action's next run cleared it, so trouble a run did not cause, the cascade's hub dropping from its host port for an afternoon, stopped every later run until someone wrote the pace file by hand.

Chosen: python3 environments/boards/common.py acknowledge REASON, under the rig's lock, records in the pace file that the trouble logged so far is understood, with its reason: the next action is spaced from that moment as from any other, and only trouble logged after it stops a run. A run stopped by the pace names the command in its refusal. Nothing clears the trouble on its own.

The alternatives: trouble older than some age forgotten, which lets a run go into a cascade still failing without anyone having looked; and the pace file written by hand, which a newcomer cannot guess and which keeps no reason.

Pinned by scripts/tests/test_board_common.py's Pace.

D1253 — An ESP run switches on a port of its own that it finds off

The tour said nothing; the ESP ports' power cycle is two switches with a wait between them, and one that fails between the two tries the "on" once more. Where that fails too, or D725's pace refuses it after USB trouble, the port is left off, and no board tool switched a port on when it started: every later run of that board ended unavailable until someone ran uhubctl -a on by hand, a command the failure names and a newcomer to the rig would not otherwise guess.

Chosen: an ESP run, RAM or boot, holding the rig's lock and before it touches its board, reads the listing of its own hub and of its console's hub where the board has two ports. A port of its own that the listing shows off it switches on, as one action of D725's pace like any other power operation: unacknowledged USB trouble stops it, the Arty must be off the cascade, and the hub must show its guarded port. It then waits for the board to list and goes on, and its result.json says so in power_at_start, with each hub and port switched and the reason. A run that finds its ports on records nothing, and a board's record never carries the member. A hub that does not list is named as unread and left alone. A switch that fails or is refused fails the run, with the port still off and the same words about it as a failed cycle's.

The alternatives: leaving it to the maintainer, as before. Switching the port on outside the pace, on the ground that an "on" disconnects nothing: it re-enumerates a device on a cascade that may be the one in trouble, and D835 leaves that judgement to a person. Having gate.py switch every board's ports on before its first step, which gives one tool the power of all the ports and a run started by hand nothing. Switching on in the observations --inspect-boot, --trace-rom and --diagnose-reset, which are there to look at a board as it is.

Pinned by scripts/tests/test_board_esp.py's StartPower, against recorded listings and a fake hub. That a hub lists a switched-off port as off on the rig's own hubs, and that a board switched on at a run's start is ready within the wait a download's reset is given, are the rig's to show.

D1254 — The ESP32-C3 parks before the probe reads it

The tour said nothing; D722's oracle read the C3's counters over JTAG after the scenario while the program ran, as the Arm ports' probes read theirs without halting the core.

Chosen: the scenario's last byte is 0x14, which the C3 port echoes and then parks on: it holds every interrupt off, sets app_state to 4, writes a last t frame and loops on a jump, waiting for nothing. The host requires that frame to be the stream's last one with the one byte handled, consumed and echoed, a receive interrupt for it and nothing more lost, and the probe reads app_state 4 before the counters, which must then equal that frame. A probe-rs read of the C3 is not passive: each session halts the hart about five times and single-steps it twice, and the C3 takes an interrupt inside a single step although probe-rs writes dcsr.stepie 0. Read while it ran, the program was left now and then counting a recovery it never met, handling 64 bytes twice, or jumping to address 0 or into the middle of an instruction: the gate's "recoveries reads 3 over JTAG, 2 in the frame" of 2026-11-09 and 2026-11-12, and seven faults in eighteen rig runs that read it thirty or forty times more. Each of the five a session's log could place came in the session whose first halt landed in a function's prologue or where a call returns, and in four of them that halt's single step entered the timer's vector slot. Parked, the program counts nothing and nothing can be taken, so the comparison is exact.

The alternatives: reading through one session that halts the hart and keeps it halted, which neither probe-rs read, whose end resumes every halted core, nor the pinned SRAM helper offers; masking the C3's interrupt lines over JTAG first, which leaves the first session's step meeting an interrupt; loosening the comparison, which would pass a program that did count wrong; and changing probe-rs to mask interrupts around a step on this chip, which is right for probe-rs and is not the oracle's to rely on.

Pinned by scripts/tests/test_board_esp.py's Scenario and Probe, and environments/boards/esp32c3/record.json and ram-record.json, whose parked verdicts and jtag app_state the rig's runs gave.

D836 — A board tool that opens a tty runs itself in the tty's group

The tour said nothing; D646's tools ran uhubctl through sg GROUP -c when the session lacked the group that may switch a hub, and opened a console's tty directly, so in a session started before its user joined dialout the ESP32-C5's tool found the console's tty present, could not open it, and refused that no tty had appeared.

Chosen: the ESP32-C5's, the ESP32-C3's and the STM32H753's tools, which open a tty, run themselves again through /run/wrappers/bin/sg GROUP -c, --hub-group, before anything else when the session is not in that group, common.rerun_in_group; a tty that appears but cannot be opened is refused as such, naming its group.

The alternatives: the tty opened by a helper in the group and its descriptor passed back, which is more machinery than the one exec; and the user told to log in again, which is a refusal a newcomer cannot act on.

Pinned by scripts/tests/test_board_common.py's Hubs and Consoles.

D645 — The shared command loop takes its indicator and transmitter as function values

The tour said nothing; D593 shared compiler/tests/driver/commands between the synthetic driver and the RP2040 board, and the module imported rp2040/sio and rp2040/uart0 and took their bases and the indicator's pin, so a board whose GPIO and UART are not the RP2040's could not run it.

Chosen: the module names no device. Its port is a struct of two function values ([1000]), indicate: (on: bool) -> none and transmit: (byte: u8) -> none, and handle calls them for each byte: the indicator set on ASCII 1 and cleared on ASCII 0, then the byte echoed. Each program writes the two from its own register modules and passes them: the synthetic application its model's SIO bit 0 and UART, the RP2040 board SIO's set and clear aliases for GPIO3 and UART0, the STM32H753 board GPIOB's BSRR for PB0 and USART3. handle keeps its place in RAM text, and the device accesses each program makes are the ones it made before, in the same order, so the synthetic lane's exact application trace is unchanged.

The alternatives: a concept with each program's port type conforming ([1230], [1360]), whose generic handle the compiler then refused to place in RAM text, L0347, so that handle would have left the RAM text the lane checks (D1322 later places every instance); a module each program supplies under one name in its first root ([1480]), which hides which device a program's loop drives behind the order of its roots; and a copy of the loop in each program, which leaves no shared outcome to compare.

Pinned by environments/cortex-m/driver.py's exact application trace at every profile, environments/cortex-m/source_debug.py's stops in handle and through the application's transmit, and the RP2040 and STM32H753 board applications, which build with it.

D1322 — Every instance of a placed generic routine goes to its placement

The tour said at [1640] that a link(...) annotation places a declaration in a section, at an alignment, in a region or in a vector slot, and at [1360] that a generic routine is compiled once for each instance. L0347 refused any placement of a generic routine, saying that one placement names one routine, so D645's shared command loop took function values to keep handle in RAM text.

Chosen: on a firmware target, link(section: ...), link(align: ...) and link(region: ...) on a generic routine place every instance of it: each instance the program makes is emitted in that section, at that alignment or in that region, as a nongeneric routine placed there would be, under its own instance name. The instances are made by calls, so a placed generic routine is no root of its own and one nothing calls places nothing. link(vector: ...) and link(boot_stage) name the one routine a slot or the boot kind enters, and keep retains a routine no call reaches, so a generic routine takes none of them: L0347, naming the generic parameter and the nongeneric routine that calls it. A hosted target places nothing, a generic routine included, as before. The build and stack reports list each instance as they list an unplaced one. An evidence adapter the compiler makes for an instance that is itself a conformance's provider is not an instance and is not placed.

The alternatives: keeping the refusal, which leaves a device-neutral routine in RAM text to a function value or a nongeneric wrapper; placing only the instances some annotation names, which needs a syntax for naming an instance that no program has asked for; and refusing a section that already holds another routine, which would refuse a placement that links as the same section a nongeneric routine's would.

Pinned by driver/a placed generic routine places every instance, which emits both instances of a generic routine in its RAM text section on Cortex-M0 and RV32, both at its alignment, and refuses keep and the hosted placement; environments/cortex-m/firmware.py's veneers case, whose two instances the link map puts in copied RAM text, inside the .ramtext.relay input section, where they run at every profile; and negative/placement-of-a-generic-routine.

D646 — The board tools share one module and keep their own oracles

The tour said nothing; D595's tool held everything a board run needs in one script, written for the RP2040.

Chosen: environments/boards/common.py holds what does not depend on the chip: Failed and require; the trace's framing and the echo left when the frames are taken out; the command log; an ELF32 reader for sections and loaded bytes, and the symbols nm lists; probe-rs for a chip through a probe, a probehive slot over CMSIS-DAP UDP or an ST-LINK named by its USB serial, reading words and flashing with verification and a readback; the hub's power cycle, one uhubctl -a cycle of one port, only after the hub's listing shows the device the switched port must hold or a guarded port holding the device that must never lose power, run through sg GROUP -c when the session lacks the group that may switch it; a console over probehive's UART bridge or a tty found by its USB serial; and the record a passed run writes. Each board keeps its own script, its build, its scenario and its oracle, written from its own chip's documents. RP2040's tool keeps its behaviour and its record's form. Like the tools it serves, the module is a developer's and no compiler feature runs it.

The alternatives: one tool for every board, which forces one scenario and one oracle on chips whose protocols differ; a copy of the generic parts in each board's script, which lets two copies of the hub's guard drift; and a package outside the repository, which the gate's script tests could not reach.

Pinned by scripts/tests/test_board_common.py, which holds every part to fixed inputs with no board, probe or hub on the gate's Python, and scripts/tests/test_board_rp2040.py, which still holds the RP2040 tool's framing, accounting and guard.

D647 — The STM32H753 board stays on the HSI, with its supply configured before reset

The tour said nothing; D560 learnt the STM32H753 for prototype 1's UART and DMA and D561 checked a transmit consumer's stores in its image.

Chosen: compiler/tests/board/stm32h753 brings the NUCLEO-H753ZI up as RM0433 Rev 9 says. The supply configuration 6.4.1 (p. 262) requires after a power-on reset, before any RAM is written, is the description's stage, which the reset vector enters before compiler-owned reset (D653). start first reads RCC_RSR, VTOR, CPACR and CCR, and PWR_CR3 and PWR_CSR1 as the stage left them, and clears the reset flags with RMVF. It enables the clocks of GPIO ports B and D, USART3 and DMA1 as 8.5.11 (p. 372) enables a peripheral: the enable written and read back, RCC_CR's D2CKRDY waited for, since USART3 and DMA1 are in the D2 domain, and a read of each peripheral. PB0, LD1, becomes the indicator, a push-pull output driven through GPIOB_BSRR, and PD8 and PD9 USART3's pins on alternate function 7. The system clock stays the 64 MHz HSI that reset selects (8.5.6, p. 350), every prescaler at one, so USART3's kernel clock is rcc_pclk1 at 64 MHz (Figure 53, p. 360) and 115,200 baud is BRR 556, 0.08 percent fast. The policy so selects PWR_CSR1 and PWR_CR3, RCC_CR and RCC_RSR, and GPIOB's MODER, IDR and BSRR, with three more reviewed reset values: port B's mode register, which the SVD derives from port A's (11.4.1, p. 541); RCC_CR's, 0x0000 0001, which the SVD gives as 0x0000 0083 (8.7.2, p. 383); and RCC_RSR's power-on flags, which it gives as zero (8.7.39, p. 450). The Cortex-M7's own System Control Space, which the SVD does not describe, is the board's scs module at the Armv7-M addresses.

The alternatives: the 8 MHz HSE the ST-LINK's MCO supplies, which needs HSE bypass and a PLL to give a USART clock with a smaller error than the HSI's divisor, and so a clock tree the run would also have to check; and configuring the supply first thing in start, after compiler-owned reset has copied data and cleared BSS into a RAM that RM0433 says may not yet be written.

Pinned by devices/test.py's Stm32h753Oracles, which holds the new registers to ST's header and to the manual's reset values and access types, and environments/boards/stm32h753/board.py's boot verdicts.

D648 — On the STM32H753 an epoch is taken in laps, each armed by the stream's completion

The tour said nothing; D594 is the RP2040's protocol, a live count over a channel whose writes wrap at the ring's size.

Chosen: USART3 receives through DMA1 stream 0, paced by DMAMUX1's channel 0 with usart3_rx_dma, request 45 (Table 124, p. 697), into a 256-byte ring, keeping D593's public receive contract with its atoms and its order of checks. The stream has no ring address, and a circular stream reloads its count where no reader can see how often, so the stream runs in normal mode, which stops at zero with EN clear (15.3.15, p. 654), and an epoch's budget is taken in laps of the ring's size, the last one shorter when the budget is not a multiple of it. The stream's transfer-complete interrupt arms each next lap from the ring's start until the budget is reached; an error leaves the stream disabled and its flag in DMA_LISR. A snapshot reads DMA_LISR and DMA_S0NDTR with interrupts masked and counts the laps completed and, of the lap armed, what the count says, or all of it when its completion is still pending. Stop clears EN and the completion interrupt in one write, so that no lap is armed after it, waits at most 1000 polls for EN to read 0, which 15.3.16 (p. 654) says it does once the transfer in progress completes, and keeps what the count then says was transferred; bytes received after the last snapshot before a stop are discarded with the epoch. USART3 runs in FIFO mode (48.5.4, p. 2023), for its transmitter: the shared loop echoes each byte as it is read, and with FIFO mode off the transmit data register is the only byte of slack, so the work between two reads idled the line and the echo fell behind the line it echoes. The first board run found that: a 4,094-byte stream at line rate fell more than the ring behind after some 2,600 bytes and was discarded as an overrun. With its 16-entry TXFIFO the line stays busy across that work. While a stream is exhausted or stopped, or between a lap and the next, the receiver then holds 17 bytes, the RXFIFO's 16 (Table 402, p. 2018) and one in the receive data register, the 17th setting no ORE (48.5.4, p. 2023; note 2 of p. 2067), and the next is lost; the USART sets ORE (48.5.6, p. 2030), and a snapshot reports it as overrun, so no byte is lost unreported. The board run held 17. A lap is re-armed within an interrupt's latency, far inside the 87 microseconds of a byte at 115,200 baud.

TRBUFF, DMA_SxCR's bit 20, is set, since RM0433 says it must be for a stream that serves a USART (15.5.5, p. 662); the SVD omits the field, and the policy adds it (D652). The board's oracle reads the stream's configuration over SWD and refuses a run without it.

The alternatives: a circular stream with laps counted from its half-transfer and transfer-complete flags, whose budget no hardware enforces and whose snapshot cannot tell a lap from two; a ring as large as the budget, which leaves no ring to overrun; FIFO mode off, which a board run refused as above; a second stream transmitting the echo, which adds a ring and a protocol beside the shared loop for what the TXFIFO gives; and double-buffer mode, which reloads as circular mode does.

Pinned by environments/boards/stm32h753/board.py: an overrun burst discarded and restarted, a burst into an exhausted stream flagged by ORE and restarted with the 17 bytes the receiver held kept, an exhausted epoch restarted with no byte lost, every echoed byte in order, and the count read over SWD; and scripts/tests/test_board_stm32h753.py's accounting.

D649 — USART3's own IDLE interrupt is the one delivered at slot 55, and SysTick wakes a stream in progress

The tour said nothing; D596 delivered RP2040's IRQ5 by setting it pending, since nothing on that board raised it.

Chosen: USART3's handler is placed at slot 55, IRQ 39 (Table 147, p. 755), and USART3 raises it itself: CR1's IDLEIE is set, and the IDLE flag, set one frame after the line falls quiet (48.8.9, p. 2085), wakes the application when a burst ends. The handler counts its entries, reads IPSR and clears IDLE; the oracle requires it to have run in exception 55 and to run again for each later byte. DMA_STR0, slot 27, is the stream's completion. IDLE alone is no wakeup for a stream that never falls quiet: the first board run's application slept from one lap's end to the next, found the ring full each time it woke, and discarded it as an overrun, 262 bytes in every 327. So SysTick interrupts every millisecond, slot 15, the role RP2040's timer played, and the stall counts its interrupts; the oracle requires them to advance.

The alternatives: setting IRQ 39 pending through NVIC_ISPR as D596 did, which shows the slot and not that the peripheral reaches it; TIM2 for the millisecond, which needs its clocks and registers where the core's own timer needs none; and the stream's half-transfer interrupt, which leaves a partial lap unread until 128 bytes have arrived.

Pinned by environments/boards/stm32h753/board.py's USART3 verdict.

D650 — The STM32H753 board's oracle starts at power-on and its first frame waits for the host

The tour said nothing; D595 is the RP2040's oracle.

Chosen: environments/boards/stm32h753/board.py builds the image at --level=armv7e-m and checks, from the ELF alone, its 166-word vector table at the boot address 0x0800_0000 (2.6, p. 138) and the handlers at slots 27 and 55; flashes it with probe-rs over the board's ST-LINK V3, --chip STM32H753ZITx, and reads the table back; cuts the ST-LINK's USB power and restores it, only when the hub's listing shows the ST-LINK's serial on that port; finds the ST-LINK's virtual COM port again by the same serial once it re-enumerates; and sends one byte, since the firmware writes nothing until a byte arrives, which a host could otherwise miss while the port comes back. Its expectations come from RM0433 Rev 9 and from what the host sent, never from the firmware: RCC_RSR's named flags are Table 56's power-on line alone (p. 333), so the run began at power-on and no software reset followed; VTOR is the boot address; CCR's IC and DC are clear, the cacheless profile read on the chip; PWR_CSR1 is not ready before the supply is configured and ready after; 1, A and 0 are echoed with PB0's input following them; a ring overrun and a USART overrun are each reported and restarted; every other byte is echoed in order; and the counters read over SWD without halting equal the last frame's. The trace's form is the RP2040 board's.

The alternatives: a trace that starts at reset, whose first frame the virtual COM port can drop while it re-enumerates; probehive's UART for the console, which leaves the board's own USB serial line untested; and an oracle from the firmware's constants, which a wrong constant would satisfy.

Pinned by scripts/tests/test_board_stm32h753.py, which holds the boot verdicts, the framing and the accounting to fixed inputs without a board.

D651 — The M7 board's float exercise is checked against the host's IEEE 754

The tour said nothing; the M7's float unit is the phase's, and no emulator checks a board's float results.

Chosen: the application's floats module computes f32 and f64 addition, subtraction, multiplication, division and the six comparisons over operands the host sends as bit patterns, four bits a byte written a to p, so the arithmetic is compiled code over values no compiler can know; each result returns as its bit pattern. The oracle compares f64 results with Python's binary64 arithmetic and f32 results with the binary64 result of the binary32 operands rounded once to binary32, which is correctly rounded for these operations; IEEE 754 fixes no NaN's bits, so a NaN matches any NaN, and a division by zero is IEEE 754's, not Python's refusal. It reads the linked disassembly of the float routines: vadd, vsub, vmul, vdiv and vcmp of both widths and no software float helper pass, software helpers alone are pending, and anything else fails. The square root is a hook: a vsqrt in an assembly block with a float operand, under fixed if compiler.feature.fp_dp, once float register operands and that feature exist; until its results arrive the square root is pending, as CPACR is until the compiler-owned startup grants CP10 and CP11. A run with anything pending is pending, never passed.

The alternatives: a fixed table of operands in the image, which the folder could compute; comparing NaN bits, which IEEE 754 leaves to the implementation and which the host's and the M7's default NaNs differ in; and a software square root, which shows nothing of the float unit.

Pinned by scripts/tests/test_board_stm32h753.py, which holds the oracle's arithmetic, its rounding at overflow, underflow and ties, its signed zeros and NaNs, its operand encoding and frames, and its reading of the instructions, pending and passed, to fixed inputs.

D652 — A reviewed correction may add a field the SVD lacks

The tour said nothing; D556's field_corrections moved a field the SVD gives or omitted it, and D560 corrected the STM32H753's SVD so where RM0433 says it is wrong. The SVD's DMA_SxCR omits TRBUFF, bit 20, which RM0433 Rev 9 says must be set for a stream that manages UART, USART or LPUART transfers (15.5.5, p. 662), so the generated register wrote it as zero and no program could set it.

Chosen: a field correction may say "add": true with bits, in the [HIGH:LOW] form a moved field's take, an access in the SVD's own words, read-write, read-only, write-only, writeOnce or read-writeOnce, and its source, as an interrupt correction may add an interrupt (D560). The added field is generated after the register's SVD fields as one of them, a uN with no enumeration, it joins the named mask its writer keeps, and the correspondence records it with "added": true and its source. A correction that adds a field the SVD gives, one whose bits overlap another field's, one that spells another's name once lowercased, an access outside those words, and an access on a correction that adds nothing are each refused as an invalid policy, naming the correction. The STM32H753's policy adds DMA1.S0CR.TRBUFF, and both of its USART streams set it: the board's receive (D648) and D561's transmit consumer, whose linked stores the check reads.

The alternatives: writing the bit through a raw store beside the generated writer, which a reviewer of the module cannot see and which the module's write mask would otherwise clear; a field correction that names a missing field and so adds it, which would turn a misspelt correction into a new field; and a policy-level write mask admitting bit 20 unnamed, which D557 refuses, since the mask names no field.

Pinned by the devices suite's a correction is recorded, which holds an added field's generated line, its register's named mask and its record, and every refusal is named, which holds each refusal; devices/test.py's Stm32h753Oracles, which holds TRBUFF to ST's header and the manual and the consumer's stream stores to 0x0010 0440 and 0x0010 0441; and environments/boards/stm32h753/board.py, which reads DMA1_S0CR's TRBUFF over SWD.

D653 — A vector-table description may hold a stage the reset vector enters before reset

The tour said nothing; D587 let a description hold the second stage its boot kind enters first, which only rp2040-boot2 has, and refused one in a vector-table description as L0535. RM0433 Rev 9 says that after a power-on reset the STM32H753 permits no write to its RAMs until the supply configuration is written to PWR_CR3 and PWR_CSR1's ACTVOSRDY says the voltage levels are valid (6.4.1, step 5a, p. 262), and compiler-owned reset copies data and clears BSS before the firmware entry runs, so every STM32H753 program wrote RAM before it could configure its supply.

Chosen: a vector-table description may hold one link(boot_stage) naked routine, with D587's form and refusals. The vector table's reset word is its entry, _landin_firmware_reset_stage, which the backend labels before the routine in a section of its own, .text.landin_firmware_reset_stage; without a stage the word is _landin_firmware_reset, as before. The derived script's ENTRY stays compiler-owned reset, which a harness linking its own start with a device's script defines: the core enters through the table's word. The stage runs before compiler-owned reset has written any memory, on the stack pointer the core loaded from the table, so it may use neither RAM nor the stack, and it ends by branching to _landin_firmware_reset, which it names, as RP2040's stage ends in the table's reset. Configuration refuses a stage that names no _landin_firmware_reset, L0560, and one that reaches the stack, through push, pop, sp, r13, msp or psp, L0561; what it reads and writes is otherwise the description's, checked as any naked body is. L0535 is now a stage in a description whose boot kind runs none, rp2350-image-block. RP2040's stage and rp2040-boot2 are unchanged. The STM32H753's description holds supply.ldn: it writes PWR_CR3's lower byte with LDOEN set and BYPASS and SCUEN clear, the LDO supply (Table 34, p. 261; 6.8.4, p. 308), waits at most a million polls for ACTVOSRDY, and enters reset with ldr and bx, which reach it from anywhere in flash at every level; a supply that never becomes valid leaves the core in a loop of its own rather than in a reset writing RAM it may not. The attribute is D587's own; another spelling for the same routine would rename it and change nothing else here.

The alternatives: a new link attribute for a routine before reset, which names one idea twice; a description directive naming a routine, which a reader of the description could not follow to its code; a hook in compiler-owned reset that calls a routine after the stack is set up, which writes the stack, and so RAM, first; and configuring the supply in the program's entry, after reset has written RAM.

Pinned by the cortex ABI case device descriptions select their profiles, which holds the stage's section, its labelled entry and the table's reset word, the reset word without a stage, and L0536, L0560 and L0561; negative/boot-stage-unwanted, negative/reset-stage-without-reset and negative/reset-stage-uses-the-stack; devices/test.py's the consumer's linked accesses and environments/cortex-m/descriptions.py, which follow the STM32H753 image from its reset word with no RAM and require the stage's PWR accesses, recorded from RM0433 in descriptions.json, before it enters reset; and environments/boards/stm32h753/board.py, which reads PWR_CR3 and PWR_CSR1's ACTVOSRDY in the boot frame.

D654 — The Pico 2's port is the Pico's, on the RP2350's own registers

The tour said nothing; D593 to D596 are the RP2040 board's, and D636 to D638 the RP2350 image's.

Chosen: compiler/tests/board/rp2350 is the RP2040 port at --level=armv8-m.main on the Cortex-M33 in Secure state, with no float: the same application, trace, command bytes and receive contract, over the RP2350's registers, which its description and modules give (D635). Bring-up moves clk_ref and clk_sys to the 12 MHz crystal and gives UART0 clk_peri as on the RP2040; TIMER0's 1 MHz tick comes from the tick generator, 12 reference cycles a tick (8.5, Tick generators); UART0, DMA, TIMER0 and bank 0's pins and pads leave reset and USBCTRL is held in it; and the pads it uses are enabled, since bank 0's reset with their inputs off and their isolation latched (9.3, Reset state): ISO cleared and IE set on GPIO0, GPIO1 and the indicator, GPIO3. The receive protocol is D594's live count, over the RP2350's channel: CTRL_TRIG's errors in bits 31:29 and BUSY in 26, the ring on the write address, TREQ 29 for UART0_RX, and TRANS_COUNT's count in bits 27:0 beside its MODE. Stop follows the RP2350's abort sequence, which accounts for RP2350-E5 (12.6.8.3, Channel abort): EN cleared with CHAIN_TO the channel itself, then CHAN_ABORT written and polled, with BUSY, at most 1000 times. IRQ14, USBCTRL_IRQ, at slot 30, is set pending in the NVIC, as D596 set IRQ5; TIMER0_IRQ_0 and DMA_IRQ_0, at slots 16 and 26, are raised by the chip.

The alternatives: a port written afresh, which would leave no comparison with the RP2040's run; the RP2040's abort, which RP2350-E5 says can fire a chained channel; and leaving the pads as reset leaves them, isolated, which drives no output and reads no input.

Pinned by environments/boards/rp2350/board.py's verdicts, and the application's build at --level=armv8-m.main.

D655 — The Pico 2's oracle starts at power-on and refuses a corrupted block on the board

The tour said nothing; D595 is the RP2040's oracle, and D638 checks the block refine assembles.

Chosen: environments/boards/rp2350/board.py builds the image and checks, from the ELF alone, its 68-word vector table at the start of flash, the USBCTRL_IRQ handler at slot 30, and the block directly after the table, the minimum Arm IMAGE_DEF of the datasheet (5.9.5.1, Table 503, p. 390); flashes it with probe-rs through probehive slot 1, --chip RP235x, and reads the table and the block back; cycles the Pico 2's power on a hub whose guarded port holds the probe, as the RP2040's tool does, since this firmware does not enumerate on USB; and reads the trace on slot 1's UART. Its expectations come from the datasheet and from what the host sent: POWMAN's CHIP_RESET reads HAD_POR alone (6.4, p. 429); VTOR reads 0x1000_0000, so the boot ROM took the block and entered the image; clk_ref is on the crystal; and the shared scenario, the IRQ14 delivery, the overruns, the epochs, the echo and the SWD counters are held as D595 holds the RP2040's. As a physical negative control, with --block-control, a copy of the image whose block's end marker is flipped is flashed and power-cycled first, and the board must enumerate as USB BOOTSEL, 2e8a:000f (5.6.1, Table 470, p. 370), which the boot ROM does when it finds no image to boot; the good image is then flashed again.

The alternatives: taking the block's acceptance from the program running alone, which a ROM that ignored blocks would also give; and a debugger-set program counter, which would not show the boot ROM entering the image.

Pinned by scripts/tests/test_board_rp2350.py, which holds the block to the datasheet's table, the corrupted copy, the control's reading of the hub and the guard to fixed inputs without a board.

D710 — The Hazard3 port is the Pico 2's, its interrupts through Xh3irq and a counter through an AMO

The tour said nothing; D654 is the Pico 2's port on its Cortex-M33s, and the Hazard3 board is to execute an A-extension read-modify-write.

Chosen: compiler/tests/board/rp2350_hazard3 is D654's application for --target=rv32 at --level=rv32imac through descriptions/rp2350_hazard3: the same bring-up, trace, command bytes and receive contract, its bringup, report and serial modules the Arm port's over rp2350_hazard3's generated modules, which are byte for byte the Arm side's (D706), and platform/riscv's critical section and FENCE barriers for platform/cortex_m's. Its interrupts are Xh3irq's: TIMER0_IRQ_0, DMA_IRQ_0 and USBCTRL_IRQ are enabled in meiea and the external line in mie (D687), and the compiler's meinext dispatch calls slots 16, 26 and 30 (D680). 0x05 forces IRQ14 pending through meifa, Xh3irq's counterpart of D596's NVIC_ISPR, with USBCTRL still held in reset, and the handler stops forcing it, since meinext names a forced IRQ until its bit is cleared; the frame's p is the mcause the handler ran under rather than IPSR. The boot frame gives mtvec and marchid where the Arm port gave VTOR. Each telemetry frame is counted by core/atomic's add on a u32 cell in SRAM, which the level's a admits (D690) and lowers to amoadd.w.aqrl, and the frame carries what it returned. The modules are copies rather than shared with the Arm port's, because their imports name the other description's modules. D831 supersedes this in part: the two ports share one bringup, report and serial over the chip's modules.

The alternatives: one set of modules for both ports, which an import naming one description's modules cannot be; atomic.exchange or compare_exchange, whose results show less than a count's; an AMO on a device register, which Hazard3 refuses as a store fault, since its atomics reach only SRAM (3.8.9, MCAUSE, Table 403); and raising IRQ14 from USBCTRL, which would need the USB controller out of reset.

Pinned by environments/boards/rp2350_hazard3/board.py's verdicts, and the application's build at --level=rv32imac.

D711 — The Hazard3 oracle starts at power-on and shows the cores RISC-V, the dispatch and the AMO

The tour said nothing; D655 is the Pico 2's oracle on its Arm cores.

Chosen: environments/boards/rp2350_hazard3/board.py builds the image and checks, from the ELF and the build report alone, that its first word at 0x1000_0000 is a jal x0 to compiler-owned reset; that the table is 68 words at 0x1000_0200, the report's vector_address, with slot 11 the meinext dispatch, slots 16, 26 and 30 the handlers and every other slot the unhandled loop; that the block follows it inside the first 4 KiB, the minimum RISC-V IMAGE_DEF, 0x11010142 its IMAGE_TYPE (5.9.5.1, Table 503, p. 390); and that the image holds an amoadd.w on a counter in SRAM. It flashes and reads back the head as D712 says, cycles the power as D655 does, and reads the trace on slot 1's UART. Its expectations come from the datasheet and from what the host sent: CHIP_RESET reads HAD_POR alone; marchid reads 0x1b, Hazard3 (3.8.9, Table 440), so the boot ROM switched the cores to RISC-V for the block and entered the image; mtvec reads 0x1000_0201, the table in vectored mode (Table 394), so compiler-owned reset ran; IRQ14 runs its handler once under mcause 0x8000_000b, the machine external interrupt (Table 403); frame n's q is n, and the counter read over SWD is the number of frames; and the shared scenario, the overruns, the epochs, the echo and the SWD counters are held as D655 holds the Arm run's. --block-control flashes a copy whose end marker is flipped, and BOOTSEL must enumerate, as D655's; it then has to attach in BOOTSEL to flash the image again, which D712 forbids on the probe's own hub, so it runs only with --bootsel-attach.

The alternatives: VTOR, which Hazard3 does not have, and the entry address the boot ROM jumped to, which no register keeps; mcause's code alone, which a table that sent IRQ14 elsewhere would also give, so the count is taken from slot 30's own handler; and an AMO's result read only over SWD, which a plain load and store would also leave.

Pinned by scripts/tests/test_board_rp2350_hazard3.py, which holds the block to the datasheet's table, the jumps, the table and each departure from them, the corrupted copy, the boot frame and the AMO's numbering to fixed inputs without a board, and environments/boards/rp2350_hazard3/record.json.

D712 — probe-rs is told the RP2350 as the architecture its cores run, and a halted BOOTSEL is never left

The tour said nothing; D655 flashes and reads the Pico 2 as RP235x.

Chosen: which of probe-rs's two names reaches an RP2350 follows the architecture its cores run when probe-rs attaches, not the operation: while a RISC-V image runs only RP235x_riscv does, and RP235x meets a FAULT from the gated Arm access ports; in BOOTSEL, and after flashing as RP235x, only RP235x does, and RP235x_riscv's debug module times out. The Hazard3 tool reads one word as RP235x, whose refusal is quick, then as RP235x_riscv, flashes through whichever answered, and records which. probe-rs halts both cores on every RP235x attach, and a BOOTSEL halted so keeps its USB pull-up and stops answering, so that the host retried the port for minutes on the rig, reset the hub tree the probe's own USB hangs from, and stalled every probe-rs start 85 s in its USB probe listing. So the tool refuses to attach while the Pico 2 enumerates as BOOTSEL, unless told --bootsel-attach; after a flash through the Arm side it cycles the power at once and reads the head back from the cores the new image booted; and the counters are read as RP235x_riscv alone. A cycle met by the port failing enumeration reset that tree, so the tool holds the rig's lock, paces each download and cycle as D725 does, and stops unless the guarded port shows its device again and the probe answers ping after a cycle.

The alternatives: the name fixed by the image's architecture, which fails whenever the chip is in BOOTSEL or was last flashed from it; reading back before the power cycle, which leaves the halted BOOTSEL on the bus; resetting with probe-rs, which needs the same attach; and leaving the negative control on, which ends every run in the state that reset the tree.

D832 extends this decision to the Arm Pico 2's tool, which shares the Hazard3 tool's handling of the hub, and takes the cycle after a flash from BOOTSEL unpaced.

Pinned by scripts/tests/test_board_rp2350_hazard3.py's Attach and Hub cases, and the record's flashed_as.

D713 — A board tool reuses a probehive bridge, and one it starts outlives it

The tour said nothing; D646 shares a bridge module between the tools, each starting a bridge for its own run and stopping it.

Chosen: common.shared_bridge reuses a bridge listening on both of a slot's ports and never stops it, and otherwise starts one serving every slot of the probe, detached, and leaves it running when the run ends: two boards' tools on two slots of one probe then share one client of it rather than each holding the probe with a bridge of its own. A port of the two listening alone is refused, since something else holds it. The Hazard3 tool reaches the slot's SWD through the bridge's TCP port, so probe-rs and the console go through the same client. The RP2040's and the Arm Pico 2's tools keep their own bridges.

The alternatives: a bridge per run, which a second board's tool on the same probe meets as a second client; probe-rs over UDP beside the bridge's console, two clients of one slot; and moving the other tools to the shared bridge, which their recorded runs would no longer describe.

D834 supersedes the last of these in part: the RP2040's and the Arm Pico 2's tools reuse the shared bridge too.

Pinned by scripts/tests/test_board_common.py's Bridges cases.

D834 — The RP2040's and the Arm Pico 2's tools reuse the shared bridge for their console

The tour said nothing; D713 left the RP2040's and the Arm Pico 2's tools starting a bridge of their own for each run, on the ports the shared bridge already listens on, so either tool failed to start its bridge while another board's tool had left the shared one running, and a run had to stop that bridge first and start it again after.

Chosen: both tools take their console from common.shared_bridge, as the ESP32-C3's and the Hazard3 tool's do: a bridge listening on both of the slot's ports is reused and never stopped, and otherwise one is started for every slot of the probe, --bridge-slots, and left running; result.json says which. probe-rs still reaches the slot over UDP, before the console opens and after it closes, so the two are never the slot's clients at once, as before; the bridge resynchronises a slot with each new connection. The RP2040's record is taken again under this rule.

The alternatives: stopping a running bridge for the run and starting it again after, which is what the run had to do by hand and which drops the console of any other tool on the probe; and probe-rs through the bridge's TCP port as the Hazard3 tool's, which would change how these tools flash and read back for no fault seen in them.

Pinned by scripts/tests/test_board_common.py's Bridges cases, and the RP2040's record, taken through the shared bridge.

D831 — RP2350's register modules are the chip's, and the Pico 2's two ports share theirs

The tour said nothing; D706 gave the Hazard3 description modules of its own, rp2350_hazard3/PERIPHERAL, byte for byte the Arm side's, and D710 copied the Arm port's bringup, report and serial for the Hazard3 port because their imports named the other description's modules.

Chosen: a register module is named by the chip alone. The Hazard3 policy writes its modules under the chip's prefix, generated/rp2350, where the Arm policy writes the same text, with a manifest and a correspondence of its own, outputs-hazard3.json and correspondence-hazard3.json, which name no ppb; the generated/rp2350_hazard3 tree is gone. The Hazard3 description is still its own, so a program selects its core by the description it imports and reaches the chip's registers as rp2350/PERIPHERAL either way. The Hazard3 port keeps its own app and takes bringup, report and serial from the Arm port's directory, which its tool names as a root after the port's own; their barriers are compiler.device_barrier, the target's own, a DMB on the M33 and a FENCE on Hazard3, rather than platform/cortex_m's or platform/riscv's wrapper of it.

The alternatives: a root that maps one module path onto either description's modules, which the loader cannot do without a mapping it does not have; a module per core for the barriers, chosen by the order of the roots, which compiler.device_barrier makes unnecessary; and keeping the copies, whose every fix had to be made twice. D706's objection, that the chip's modules offer a Hazard3 program the M33's NVIC, holds no further than before: rp2350/ppb was already reachable under the same root, and the Hazard3 policy still selects no private bus.

Pinned by devices/test.py's Rp2350Hazard3Oracles, which holds the Hazard3 manifest to the Arm one's without ppb and every file to its regeneration, and both Pico 2 tools' builds from the one set of modules.

D530 — refine explain answers a construct and a decision

The tour said nothing. Diagnostic notes cite paragraphs and decisions, [1760] and D275, and refine explain answered "no catalogue row holds the code: D275", so a reader at a terminal could not follow a citation without the site.

Chosen: refine explain takes [1590], 1590, D275 or d275 beside a diagnostic code. For a construct or a decision it prints the title, the document and, for a decision, its register section, and its page on <https://www.701.dev>. --full adds the text: a construct's section up to its next heading, and a decision's Chosen paragraph. The table is generated by python3 check.py --catalogue from tour.md and spec.md, and the check holds it to them; D1240 says where the compiler reads it. A number that names nothing is refused as an unknown code is. The page is the address the site gives the heading: a construct's number, tour.html#1590, and a decision's heading as the renderer slugs it, spec.html#d275-the-compiler-finds-its-library-beside-itself, and the register section is named as the site heads it. The text is shown for a terminal: a code span keeps its backticks, as an explanation's does, a link is its text and bold its words, a paragraph is one line and a fenced block is indented four spaces. --full may stand anywhere among what is asked, and a decision's Chosen text runs to the next paragraph that opens with a bold label.

The alternatives: the title and place only, which leaves a reader offline with a heading; every decision's whole entry, which is most of spec.md inside the compiler; and shipping the documents beside the library, which a reader must still search. The maintainer chose the place by default and the text on request.

Pinned by the cases driver/explain answers citations, driver/explain is a subcommand and commands/help and queries, and check.py's comparison of the generated citations.txt with the documents.

D1240 — refine explain reads a construct and a decision from a file in the library

The tour said nothing. D530 compiled every construct's and decision's title, place and text into refine as two generated Ada bodies, 42,000 lines of them. A decision added to spec.md then made compiler sources stale: it needed python3 check.py --catalogue, a rebuild and the diagnostics suites, and two branches that each added a decision conflicted in the generated bodies, so the integrator of a parallel round regenerated and rebuilt after every merge.

Chosen: the texts are data. python3 check.py --catalogue writes them to citations.txt at the top of the checkout, which is the library's directory there, and refine explain reads that file from the library: the one a compilation would use, found beside the executable as D275 says, or the directory --library=DIR names, an option explain now takes. An installation holds it in its prefix's lib/landin, beside core, hosted and platform, where scripts/package.sh and the flake's package put it. A decision added to spec.md changes one line of the file and rebuilds nothing. The file's first line is landin-citations 1, and each line after it is one entry of six fields a tab apart: C or D, the number in decimal, the title, a construct's document or a decision's register section, the page, and the text --full adds, in which \\, \t and \n stand for a backslash, a tab and a line end. Constructs come first and each kind ascends by number. The first line is how a compiler knows a file it can read: its number changes when the fields do, a file that opens with any other line is refused whole, and nothing else about the file is compared with the compiler, as nothing about the library's modules is. The file is read only when a construct or a decision is asked for, through the host interface every other file is read through. A diagnostic code's explanation stays compiled in, so refine explain L0301, the index and every report need no file, and a report's note cites [1760] or D275 by number whether or not the file exists. When the library is not found, the file is missing or unreadable, or its first line is another, explain reports L0003 with status 1 and not misuse: the message names the path it read, or where it looked for a library, says what to install or name, and names what was asked for with the document that holds it and that document's page. A number the file does not hold is refused as before. citations.txt is merged by union, as .gitattributes says, so two branches that each add a decision do not conflict in it; the merged file may be out of order or hold a changed entry twice, which check.py reports as stale and python3 check.py --generate repairs without a build.

The alternatives: keeping the texts compiled in, which answers with no installed file and is why every decision cost a rebuild and a conflict; splitting the generated body into one unit per register section, which shortens the rebuild and keeps the conflict for two decisions in one section; and generating the file at build time instead of committing it, which needs Python wherever the compiler is packaged. The maintainer chose the data file, and with it that refine explain D275 depends on an installed file where a diagnostic code's explanation does not. Comparing the file with the compiler's revision was declined: the texts are the documents', and a later spec.md's decisions are as true of an earlier compiler's notes.

Pinned by the cases driver/explain reads citations from the library, on a fake host for a present, missing, unreadable, differently formatted and empty file, no library and --library=DIR; driver/explain answers citations and commands/help and queries, which read the checkout's own generated file; scripts/tests/test_check_inventories.py's CitationTable, which holds the file to the documents, shows that a decision added to spec.md leaves every source the build identity counts unchanged, and refuses the two bodies' return; and scripts/tests/test_outside_user.py with the outside-user lane, whose archive holds the file and whose installation answers refine explain.

Amended by D1357: the file's second line names the compiler sources it was generated beside, and refine explain warns, L0017, when they are not its own. The format line and its rule are as they were.

D1357 — citations.txt names the compiler sources it was generated beside

The tour said nothing. D1240 held citations.txt to the compiler by its format line alone, so a file from an older or a newer checkout, or a library installed beside another refine, answered refine explain D275 without a word, and D1240 had declined to compare the file with the compiler's revision.

Chosen: the line after the format line is source and a digest: the SHA-256 that scripts/build_identity.py gives the compiler sources of the checkout the file is generated in, the same Source_Digest the build compiles into the compiler and refine version --json reports as source_digest. python3 check.py --generate writes it, and the full python3 check.py reports the file as stale, naming both digests, until it matches the checkout's sources, so a change to any compiler source, a test source or a build script included, regenerates the file with it. When refine explain reads a construct or a decision from a file whose digest is not its own, or that has no such line, it answers as before, with status 0, and adds one warning, L0017, that names the file, its digest or that it names none, and the compiler's digest and revision: the file may say another revision's words. The format stays landin-citations 1: the fields of an entry are unchanged, and a reader of format 1 that predates the line passes over it as it passes over any line that is no entry, so an older refine reads a newer file as before. Two branches that each change compiler sources merge by union to two source lines, which the check reports and the run after the merge replaces.

The digest decides and not the revision. A file cannot name the commit that holds it, so a file naming its revision would differ from every compiler built from that commit; and a revision moves when a document is committed, where the sources and with them the texts' compiler do not. The digest is the one scripts/refine_revision.py already holds a binary to: equal sources are the same compiler, whatever the revision says. The cost is that a compiler source change, which rebuilt nothing of the file before, now rewrites its second line too.

The alternatives: the revision, which no file can hold of itself; the release version, which only a tagged build knows and which names no development build; a digest of tour.md and spec.md compiled into the compiler, which would make every edit of their prose a rebuild, the cost D1240 removed; and refusing the file, which D1240 declined because the texts are true of a neighbouring revision as often as not. The maintainer chose the warning with the source revision; the digest as that revision, and the format left at 1, are the implementer's.

Pinned by driver/explain reads citations from the library, which reads a file naming this compiler's digest and answers with no report, one naming another digest and one naming none, each answering with status 0 and one L0017 that names both, and a malformed source line, read as none; and scripts/tests/test_check_inventories.py's CitationTable, which holds the second line to the checkout's sources and reports a compiler source changed since the file was written as stale, with both digests.

D599 — A diagnostic's example names the options it is compiled with

The tour said nothing. docs/diagnostics.md's examples were compiled with no option, on the default hosted target, so a code only a Cortex-M build raises could show none: a description that selects rp2040-boot2 and holds no stage is refused on the host as L0515, for its core, before L0537 can say what it lacks.

Chosen: an example's first line may be -- refine: followed by the options it is compiled with, each a word of printable characters that begins --, with one space before each, as -- refine: --target=cortex-m0 --level=armv7-m. The line is a Landin comment and stays in the example's text, so refine explain shows a reader how to reproduce the report. The example is still the one file it is compiled with, so an option names no root, library or other file, and a code whose program needs one names a fixture instead (D1230). An example without the line is compiled as before. check.py and the test program refuse a -- refine: line that is not the example's first or not of that form, naming the line.

The alternatives: a fenced block's info string, as landin --target=cortex-m0, which refine explain does not print and the site renders as a language name; a second block per section holding several files and a root, which needs a layout of its own for what three codes show; and the rule that such a code has no example, which leaves the codes of a new target without one.

Pinned by the catalogue cases every code is explained, which compiles each example with its options, and unreadable options are named, the driver case explain is a subcommand, and check.py's reading of the page, whose control is test_an_unreadable_options_line_is_named.

D1230 — A diagnostic's example may be a fixture

The discrepancy: D599 keeps an example to the one file it is compiled with, so five codes showed none. L0518 needs a library without the reference description, L0519 a developer's linker script, L0538 and L0555 the object the assembler wrote and L0587 a C archive, and two of those files are binary, which no fenced block holds.

Chosen: a section of docs/diagnostics.md may end, in place of its program, with the line `Example fixture: CLASS/NAME , naming a negative or end-to-end fixture under compiler/tests/fixtures that records a report. After the line the page shows the fixture as it is: each text file under its path, each binary file by its path and size, and the refine command with the report it records. refine explain CODE prints the same, from a copy built into the executable when it was generated, so it reads no file and needs no repository. check.py holds the reference to a fixture that is there, whose report carries the section's code and no other, and holds what the page shows to the fixture's files; python3 check.py --example=CLASS/NAME` prints it. The test program runs the fixture as it runs every recorded one, and requires what the executable carries to end with the fixture's report. A fixture whose refusal comes after the assembler or the linker ran carries a stand-in driver that writes what the real one wrote, so it runs on a host without a Cortex-M toolchain; the stand-in is one of the files shown. A section has a program or a fixture, not both.

The alternatives: a second fenced block with a file name, which holds the text files and neither binary one, so L0538 and L0587 would still show nothing; and a reference alone, which sends a reader of refine explain without a checkout to files that are not there.

Pinned by end-to-end/placement-with-no-reference-profile, end-to-end/firmware-linker-script-breaks-contract, end-to-end/boot-stage-too-long, end-to-end/image-block-not-as-emitted and end-to-end/firmware-archive-with-constructor, each its code's example, and the catalogue case every code is explained.

The discrepancy: a checker report that names a second place was refused as a compiler defect when that place was the report's own span, on the ground that a check which knows nothing of its context should name the construct it was written in. The refusal was made where the report was built, in the compiler anyone runs, and some 350 call sites rely on never passing such a place without one of them proving it. Three did. Each turned a true diagnostic about the user's program into internal compiler defect and no diagnostic at all.

Chosen: refine reports the diagnostic. The label that repeats the report's span is left out where the code's row lets a report go without one. Where the row promises exactly one label, as L0313's and L0340's do and most rows that take a label, the label is kept and the row stays true of every occurrence: the report then shows its span once, with the label's words under it, as it already did for a label that explains the primary span. The test program asks for the refusal before it runs anything, through Landin.Diagnostics.Checking.Refuse_Repeated_Places, so a check that passes its own span still fails the case or fixture that reaches it. The switch is the program's and not the build mode's: a debug build of refine reports as a release build does.

The alternatives: raising in every program, as before. Raising by build mode, which makes the development build a user or a maintainer runs by hand the one that hides the diagnostic. Leaving the label out of every report and loosening every row that promises one to admit none, which makes the catalogue describe a state only a defect produces. Auditing every call site instead, which holds until the next one is written.

Pinned by the diagnostics cases a checker report names a second place and a repeated place is left out when not refused.

D1306 — A recorded report holds a library line by its text, not its number

The tour said nothing; a recorded fixture's expect file held refine's report byte for byte, and a report quotes each source it cites under the line's number, so an edit above a library line that a negative fixture's report quoted, one import line added to core/text/text.ldn, failed fixtures the change did not touch, and the cost of a moved library line was a re-recording of every report that cited the file.

Chosen: the harness records and compares a report in its recorded form. A location in a file outside the fixture's own directory, read lexically from where refine ran, keeps its file, its column, the line it quotes and its carets, and its line number is written *, in the location and in the quoted line's gutter, whose width becomes the marker's; a location in the fixture's own files and every other byte stay as refine printed them. A moved library line therefore leaves every recording as it was, and a changed one, or a span that moved within its line, fails each fixture that quotes it. The test program's two recording commands write that form, its recorded cases and Darwin's diagnostics lane compare it, and a full check.py refuses a recording that still numbers a library line. A library is what lies outside the fixture: core, hosted, platform and a device description alike.

The alternatives: comparing the cited declaration by name, which needs a second, structured report the text does not carry; recording the numbers and saying which library edit moved them, which keeps every re-recording; normalising only the comparison and keeping the numbers in the file, which leaves two forms a recording may take and rewrites the file on its next re-recording anyway; and replacing the number with an offset from the first quoted line, which no report quotes two lines of.

Pinned by the fixture execution case a moved library line keeps its recording, scripts/tests/test_fixture_meta.py's RecordedReports, and the 22 recorded negatives that quote the library, among them negative/core-text-private-position.

D1307 — The scripts say when a refine is not its checkout's

The tour said nothing; refine version named the revision a binary was built from, and nothing compared it with the checkout beside it, so a two-week-old release compiler's refusals were taken for the current compiler's defects, and a stale binary refused an empty program over a library file it predated.

Chosen: scripts/refine_revision.py asks a binary refine version --json and compares its source digest, the digest of the compiler sources it was built from, with the checkout's (scripts/build_identity.py). The digest decides: equal is current, whatever the revision or dirtiness say, so a build made before a commit of documents is not stale. Otherwise one warning line says how it parts, by its revision: older, an ancestor of HEAD, with the commits between counted, or HEAD itself built from a clean tree that has uncommitted edits to compiler sources since; HEAD built from a dirty tree, whose edits are not the tree's now; newer, a descendant of HEAD; another line of history, a commit neither contains, or one the checkout lacks; and a build outside git. A program that does not answer as refine does is not judged. dev-build.sh and dev-test.sh ask after their build and every lane that takes --refine asks after reading its arguments; the warning never changes a status.

The alternatives: refine comparing itself with the checkout it finds, which makes a compiler read git; comparing revisions alone, which calls a binary stale after every commit of documents; refusing to run a stale binary, which stops the comparisons that run an older compiler on purpose; and warning only in the two developer scripts, which leaves the lanes handed a binary by path, where the stale one was met.

Pinned by scripts/tests/test_refine_revision.py, whose Callers holds every lane that takes --refine and the developer build to asking.

Amended on 2026-11-19: every lane takes --refine from one helper, scripts/lane_refine.py, which asks as the argument is read. A lane may be handed a split command, refine-NAME, which answers --describe rather than version --json (D1387): its source_digest decides as above, and when it is not the checkout's the revision is that of the refine installed beside it with the same digest, or the warning says none is.

D1308 — A runtime fixture may name the targets that do not emit it yet

The tour said nothing; a runtime fixture for a feature that lands on one backend before another could stay off Linux arm64 only through a linux-arm64/parity.json record naming the counterpart that runs there instead, and while arm64 did not emit the feature there was none, so a negative fixture pinning arm64's refusal was written to stand as the counterpart of four runtime fixtures, and nothing retired it when arm64 landed.

Chosen: a runtime fixture's not_yet_emitted: names, as TARGET=CODE, each target the compiler describes that does not emit the program yet, which its targets: leaves out, and the code that target refuses it with. Both metadata readers hold each entry's shape, a target named once and a code of L and four digits; check.py holds the code to the catalogue. The test program compiles the program to assembly for each named target, from any host, and requires a refusal whose codes are that one code and no other: an entry whose target compiles the program fails, naming the entry to remove and the target to name in targets:, so the disposition cannot outlive the gap. An entry for Linux arm64 stands for the parity record, and a fixture with both is refused; targets.matrix lists the entries after the targets, and scripts/add_fixture.py offers the entry beside the record.

The alternatives: the negative stand-in, which pins arm64's refusal but is evidence about nothing the runtime fixtures run and must be retired by hand; a parity record with a refusal in place of a counterpart, which keeps the gap in a file the test program does not read and so nothing lapses; and an entry checked only on the named target's own lane, which lapses only where that lane runs.

Pinned by the fixture execution cases targets not emitting yet still refuse and a target not emitting yet lapses when it emits, compiler/tests/fixture-meta.cases' three not_yet_emitted cases, scripts/tests/test_construct_inventory.py's test_linux_arm64_leaves_the_x86_corpus_only_by_record and scripts/tests/test_add_fixture.py's test_arm64_not_emitting_yet_stands_for_a_parity_record.

D542 — A device description is a module of directives, and its generated half has one text

The tour said at [1410] that a module is every .ldn file of one directory, at [1560] that tool directives run no user code, and [1990] fixed one constrained Cortex-M0 profile: its memory, its stack, its 48 vector slots and which of them are reserved, in the compiler. A device was nowhere a reader could see it, and a second one would have been compiler source.

Chosen: a device is described in Landin source, as one module made only of tool directives in [1740]'s tool_directive form. Each argument is positional: a text is a text literal, decoded by the ordinary text decoder as linker.library's is, and an integer is a fixed integer expression in D202's closed fold, so 0x2000_0000 and 256 * 1024 are both written as they read. The directives are:

directive arguments says
compiler.device(name) lowercase ASCII letters, digits and hyphens, beginning with a letter, at most 32 bytes the device's identity; the module holding it is a description
compiler.core(name) cortex-m0, cortex-m0plus, cortex-m3, cortex-m4, cortex-m7 or cortex-m33 the core, and through it the architecture level: armv6-m, armv6-m, armv7-m, armv7e-m, armv7e-m and armv8-m.main
compiler.vectors(count) an integer the vector table's whole length in words, the initial SP and reset included
compiler.interrupt(name, irq) an ASCII letter, then letters, digits and underscores, at most 64 bytes; an integer that external interrupt irq is implemented, at absolute slot 16 + irq
compiler.boot(kind) a boot image kind how the image begins
compiler.float_unit(name) fpv5-d16 the core's float unit, which changes the C ABI (D615)
linker.region(name, origin, length, access) an ASCII letter, then letters, digits and underscores, at most 32 bytes; two integers; "rx", "rw" or "rwx" one memory region
linker.place(kind, region[, size]) "vectors", "text", "rodata", "data", "bss" or "stack"; a region's name; for "stack" alone, its size in bytes where the compiler places that part of the image

A slot no compiler.interrupt names is reserved and holds zero. The directives' order carries no meaning.

A description is usually two files, which the compiler does not tell apart. interrupts.ldn holds compiler.device, compiler.core, compiler.vectors and the interrupts, and is generated from the device's CMSIS-SVD file; memory.ldn holds the regions, the placements, compiler.boot and any compiler.float_unit, and is written by the developer, since an SVD says nothing of the first three and too little of the last (D615). A generated interrupts.ldn has exactly this text, so that whatever generates it, and a reviewer, can compare bytes:

  1. Line 1 is -- Interrupts of the NAME, from its SVD: vendor VENDOR, version VERSION., with the SVD's device/name, vendor and version as written, surrounding whitespace removed; a clause whose element the SVD lacks is left out with its comma.
  2. Line 2 is -- SVD SHA-256 HEX., the lowercase SHA-256 of the SVD file's bytes.
  3. Each nonempty line of the SVD's licenseText, its surrounding whitespace removed, follows as -- LINE.
  4. Then -- Generated from the SVD; memory.ldn beside it is written by hand.; then, for each interrupt correction of the generator's reviewed policy (D556), in the policy's order, one line: -- The policy adds NAME at VALUE: SOURCE. for an interrupt the SVD does not name, -- The policy moves NAME from OLD to VALUE: SOURCE. for one it numbers otherwise, or -- The policy removes NAME at OLD: SOURCE., OLD being each value the SVD gives it, joined by and ; and one empty line.
  5. compiler.device("ID"), ID being device/name in lowercase; compiler.core("CORE"), from cpu/name, where CM0, CM0PLUS, CM3, CM4, CM7 and CM33 are the six cores above; and compiler.vectors(N), N being 16 plus the larger of cpu/deviceNumInterrupts and one more than the highest interrupt value, or plus the latter alone when the SVD has no deviceNumInterrupts.
  6. One compiler.interrupt("NAME", VALUE) for each distinct pair of an interrupt element's name and value in any peripheral, derived ones included, as the corrections leave them, ordered by value and then by the name's bytes; VALUE is decimal with no separators. The count of step 5 is of the corrected pairs.

The file is ASCII with LF line ends, one directive or comment per line, no trailing spaces, no other empty line, and it ends with one LF. It is the form refine fmt leaves unchanged. RP2040's SVD gives 48 slots: it says 26 interrupts and names 32, the last six its spare software interrupts, and pico-sdk's vector table has 48 words.

The repository keeps a description in devices/descriptions/DEVICE/, beside and apart from the register modules under devices/generated, which are regenerated byte for byte; a program imports it as descriptions/DEVICE with --root=devices, a name no root of register modules can hold. The constrained reference profile is a description in refine's own library, platform/cortex_m/reference, so an installed compiler finds it as it finds platform/cortex_m.

The alternatives: a chip table in the compiler, which makes every new chip compiler source; a separate description language or a JSON file beside the program, which the editor tooling, the formatter and the module rules do not reach and a reader has to learn; named arguments, which [1740]'s directive form does not have; generating the memory half from the SVD, which does not hold it; and putting the description beside the register modules, whose directory is the generator's to rewrite.

Pinned by devices/descriptions/rp2040/interrupts.ldn, first written by hand in this form from the pinned SVD and now generated by refine svd (D557); devices/descriptions/stm32h753/interrupts.ldn, which carries one correction; and devices/test.py's D542Form, which renders the form from each fetched SVD and its policy's corrections with nothing of the compiler's and requires each device's file to be the rendering, beside its regeneration of the same files by refine.

D543 — A program selects its device by importing its description

The tour said nothing of how a firmware program says which device it is built for; [1990] had one profile, and D542 makes a device a module.

Chosen: the firmware entry module imports its description, directly or through any module it imports; a description is the module holding compiler.device, and at most one is in the reached graph. On a Cortex-M target, a program that reaches none is given the library's platform/cortex_m/reference, the constrained profile [1990] fixed written as a description, and on rv32 platform/riscv/reference (D661), which the loader adds once everything the imports reach is read; its sources join the program as any library module's do, and its directives emit nothing, so the assembly of a program that imports no description is what it was. A host whose library lacks it can still check and emit a program with no vector or region placement, and refuses one that has either, or a firmware request, as L0518, saying to import a description or name a library with --library=DIR.

The directives join D202's closed configuration fold. Each is a module-level directive of the description's own module, outside every fixed arm, active or not, as an option is; one in another module, or in an arm, is L0513, and so is an import or any other declaration in a description but its boot stage (D587), and a second description. A description names its device, core, vector table and boot image kind once each, and places each of vectors, text, rodata, data, bss and stack once; an argument outside its row's form is L0399. Once all are read: regions do not overlap; a placement names one of the description's regions, code and the vector table one that may execute, and data, BSS and the stack one that may be written; the vector table, aligned to its length rounded up to a power of two and no less than 128 bytes, fits its region past the boot kind's prefix; the table is no longer than the core's architecture allows, 48 words on ARMv6-M and 512 on ARMv7-M, and on a RISC-V core what D662 gives it; each interrupt's slot is inside it; and the stack fits its region. Those are L0514. In an image that boots from its own memory, text or rodata placed in a writable region other than the vectors' is copied there at reset from a load image in flash (D1359), where D1116 refused it before. .ramtext is placed with data, and every load image is in the region text is placed in, or in the vectors' when reset copies the text.

A description's core must execute what the request builds: the target is its core's family's, cortex-m0 for an Arm core and rv32 for a RISC-V one (D662), and --level is the core's own level or a lower one of its family. On rv32, rv32imc is below rv32imac, so an esp-rv32imc builds at rv32imc alone and a hazard3, a sifive-e31 or an esp-rv32imac-clic at either. On the M profile, armv6-m is below armv7-m, and armv7-m below both armv7e-m and armv8-m.main, neither of which holds the other: Armv8-M's DSP instructions are an optional extension of its core. So an RP2040, a cortex-m0plus, builds at the default armv6-m and no higher, a cortex-m4 builds at armv7e-m, armv7-m or armv6-m, and a cortex-m33 at armv8-m.main, armv7-m or armv6-m, its vector slots its core's at any of them; a level above the core's, or a target of another family, is L0515, naming the levels the core executes. A description with a float unit builds only at the level that holds the unit, and a lower one is L0546 (D615). The constrained reference alone is used at every level, with its ARMv6-M slots, because it is the profile the levels were always tested on and remains so. The maintainer chose the lower levels over requiring the core's own: code built for less runs on the core, and a baseline build of a later chip is a choice a developer makes. refine lsp checks a module that imports a description against that profile, with the target and level it is given, and reports the same refusals at the directives.

The alternatives: a --device=NAME option, which puts the device outside the source the editor and the formatter see and lets two builds of one program disagree; selecting the description by a fixed arm, which makes every description reachable and the selection a configuration expression; letting the core select the level, which hides from the request what it builds for; and keeping the reference profile in the compiler, which makes it the one device that is not a description.

Pinned by negative/description-unknown-core, negative/description-directive-outside, negative/description-regions-overlap, negative/description-core-mismatch, the cortex ABI case device descriptions select their profiles, which holds every refusal and the selection of RP2040 and of the reference by device identity, and environments/cortex-m/descriptions.py, which compares each selected region, vector mapping and boot kind of the linked images with environments/cortex-m/descriptions.json, recorded apart from the compiler from pico-sdk 2.2.0's map and [1990].

D544 — The selected profile decides which vector slots a handler takes

The tour said at [1990] which slots the constrained profile reserves, 2, 3, 11, 14, 15, 16–20 and 22–41 taking handlers, and D229 wrote them into the checker, the verifier and the backend.

Chosen: a handler's link(vector: N) takes slot N when the selected profile admits it: a core slot of the description's core, NMI 2, HardFault 3, SVCall 11, PendSV 14 and SysTick 15, with MemManage 4, BusFault 5, UsageFault 6 and DebugMonitor 12 on ARMv7-M, or 16 + IRQ for an interrupt its description names, and below its compiler.vectors count. The table has that many words; an admitted slot holds its handler or the unhandled loop, and every other slot holds zero. The checker, the verifier and the backend read one profile, which the IR carries. A slot the profile reserves is L0347, naming the device and the slots its core takes. The constrained reference keeps [1990]'s table byte for byte: 48 words, IRQ5 and IRQ26–31 reserved. RP2040's description names all 32 of its interrupts, so a handler at slot 21, USBCTRL_IRQ, occupies that word.

The alternatives: admitting every slot below the count, which turns a reserved word into a branch to the unhandled loop that the device never takes and hides a misnumbered handler; and naming slots by interrupt name, which a later decision may add beside numbers without changing this.

Pinned by the cortex ABI cases device descriptions select their profiles and machine directives, and environments/cortex-m/descriptions.py's slot-21 controls: RP2040's linked vector word 21 is the handler, and the reference refuses slot 21 and links zero there.

D545 — The linker script is derived from the description, and boot kinds are the compiler's

The tour said nothing; D229 kept one fixed script.

Chosen: the driver writes the derived script as OUT.ld: a MEMORY line for each region in the description's order, the stack at the top of its region, the vector table at the start of its region, past the boot kind's prefix, then text, read-only data and the unwind tables in their regions, initialized data and RAM code in the data region loaded from the text region, BSS, and each region a link(region: ...) uses (D547). It asserts the vector address and length, the stack's alignment, that nothing placed in the stack's region reaches the stack, whichever sections those are (D1114), and that the last load image ends inside the text region. A section that would begin at address zero leaves its first eight bytes unused (D1115). Reset copies and clears what the script places, by the _landin_firmware_* symbols. Text or read-only data placed in RAM a flash image does not boot from is copied there too, its load image in the vectors' region when the text is copied, with reset kept there (D1359). For the constrained reference the script is, byte for byte, the one D229 fixed.

A boot image kind is a fact of the target, not of a device. The closed set is vector-table, the plain table at the boot address; rp2040-boot2, a 256-byte second stage at the start of the vectors' region, in a .boot2 section, with the table after it at 256-byte alignment, as pico-sdk lays it out; rp2350-image-block, the plain table at the start of the vectors' region followed directly by one IMAGE_DEF block in an .embedded_block section (D637); and the reserved esp-app-image, which a description may name and refine refuses as L0516 until it builds it. The second stage's code is the description's, a link(boot_stage) naked routine (D587), and the slot, its 252-byte limit and its checksum are the boot kind's, which refine emits and seals (D588); until the first board it held 256 zero bytes, which the boot ROM's check refused. The firmware build report records the selected device, core, boot kind, vector address and length, the bytes the boot kind puts before and after the table as boot_prefix and boot_suffix, regions and placements beside the capacities, which are the text region's length and the data region's less a stack it holds, for rp2040-boot2 the stage (D588), and for rp2350-image-block the block (D638).

The alternatives: a script template the developer fills, which is a second configuration language; deriving the script from the program's sections alone, which leaves the regions nowhere a reader sees them; and filling the second stage with erased-flash bytes, which a debugger reads as an instruction stream rather than an absent one.

Pinned by the cortex ABI cases firmware path and device descriptions select their profiles, the latter holding the reference's derived script to D229's text, and environments/cortex-m/descriptions.py, which holds the linked .boot2 and vector addresses and the build report's facts to environments/cortex-m/descriptions.json.

D1114 — The stack's reservation is asserted against whatever shares its region

The tour said nothing; D545 has the derived script assert "that nothing placed in the stack's region reaches the stack". The assertion was written only when data or bss was placed in the stack's region, or a used link(region:) region was the stack's. A description whose stack shares its region with text, rodata or the vector table and keeps data and BSS elsewhere got no assertion at all: a 12000-byte constant lay 4532 bytes into a reserved 8 KiB stack, the link succeeded, and the build report gave the region's whole length as free.

Chosen: the assertion is on the end of the section the script writes last into the stack's region, whichever that is: the vector table, entry word or image block, text, RAM code placed with text, read-only data, the unwind tables, data, RAM code, BSS, a used region's sections, or an archive's initializer array. The linker fills a region in the script's order, so that section's end is the region's use. Where it is data, RAM code, BSS or a used region the assertion is spelled as it was, and the reference's script is still D229's byte for byte.

The alternative: one assertion a section, which says the same thing up to ten times, and a location-counter symbol after the last section, which the linker does not keep per region.

D1323 later holds a developer's script to the same rule, in D546's third clause.

Pinned by rv32 firmware/the derived script guards its placements, the assertion on .rodata for a stack that shares its region with code and constants alone. The review's description of that shape, which linked, is refused by the linker with the assertion's message.

D1115 — Nothing a program declares is placed at address zero

The tour said [0480] that the atom of a one-atom pointer union is stored as zero, and D97 that a zero in a by-value aggregate argument's position is the zero carrier, on which the callee clears its parameter instead of copying. Both hold only while no object has address zero. This register's note that "Cortex-M0 flash begins at address zero with the vector table, so small addresses are real pointers there" covers flash, whose first bytes are the compiler's own table; a writable region at zero has no such tenant. The STM32H753's ITCM is one, and the first datum a program placed there with link(region: "ITCM") had address zero: passed by value it was read as all zeros, and its address was the absent case of a maybe-pointer. Which datum that was depended on link order.

Chosen: in the derived script, a section of the program's that could begin at address zero leaves its first eight bytes unused: text, read-only data, data, BSS and a used region's sections, in any region that begins at zero other than the vectors' region, where the table or the entry word always comes first. The padding is inside the section, after its start symbol, so reset copies or clears it with the rest and the load image keeps its shape; it is written only when the section does begin at zero, and a description with no such region derives the script it did. Eight bytes is the sections' alignment.

The alternatives: refusing link(region:) data for a region at zero, which gives up the STM32H753's ITCM, memory a program has reason to use, for the sake of its first word; and changing the carrier or the union's representation, which every backend and every by-value call would pay for. D1323 later holds a developer's own --linker-script to the rule, as D546's fifth clause.

Pinned by rv32 firmware/the derived script guards its placements, the padding in the data and BSS sections of a region at zero and its absence elsewhere. The review's program on descriptions/stm32h753 linked its datum at address 8; since D1359 that description places its text in the ITCM, whose first routine is at 8, and the descriptions lane holds a developer's script without the text's eight bytes to clause 5.

D1116 — A flash image keeps code and constants where reset need not put them

The tour said nothing; D543 asks that code and the vector table be in a region that may execute and data, BSS and the stack in one that may be written, and had no rule for rodata. The derived script gives .text and .rodata no load address of their own, and reset copies .data, RAM code and a used region's data out of the region text is placed in and nothing else. So linker.place("rodata", RAM) under a boot kind that starts from flash linked an image whose constants, strings and evidence tables had no bytes in flash, and linker.place("text", RAM) with the vectors in flash one whose reset vector pointed into RAM. Both links succeeded; an image loaded by a debugger, which writes every segment, ran, and failed after a power cycle.

Chosen: L0514 at the placement. In an image that boots from its own memory, text is placed with the vectors or in a region that may not be written, and rodata likewise or with text. A description that keeps everything in one region, as a chip whose loader writes the whole image does, is unchanged, and so is one built with --firmware-layout=ram, whose image a debugger loads; an esp-app-image and every Xtensa image are loaded segment by segment by a ROM and keep their constants in data RAM as they did (D903). A routine that must run from RAM has .ramtext, which has a load image.

The alternative: supporting the placement, giving such a section a load image in flash and having reset copy it before anything reads it, as .ramtext is. Constants in tightly coupled memory are a real wish, and that is the way to grant it, but it is new startup code on every firmware target and not a repair; until it exists the placement is refused rather than accepted and wrong. The maintainer confirmed it and scheduled the load image and reset copy (see the roadmap). D1359 later granted it, and the refusal is gone.

Pinned by D1359's evidence now; rv32 firmware/the derived script guards its placements holds both placements accepted.

negative/description-places-code-where-nothing-loads, which pinned both refusals, was retired with them.

D1359 — A flash image copies the text and constants it places in RAM

The tour said nothing; D1116 refused text or rodata placed in RAM a flash image does not boot from, and kept a load image with a reset copy, as .ramtext has, as the way to grant them, which the maintainer scheduled.

Chosen: in an image that boots from its own memory, which is every image but one built with --firmware-layout=ram and those an ESP ROM loads, an esp-app-image and every Xtensa image, a text or rodata placed in a writable region other than the vectors' is copied. Its output section runs or is read in its region and is loaded from the image's flash, which holds every load image: the vectors' region when the text is copied, and the text's otherwise, which reset reads in place. A copied section's bounds and load address are _landin_firmware_text_start, _end and _load, or rodata's, and reset copies text, then read-only data, before data, RAM code, BSS and a used region's sections, so before any constant, string or evidence table is read, a byte at a time as the other copies are, between the labels _landin_firmware_image_copy and _landin_firmware_image_copied that a debugger finds it by. A description's stage runs before the copy, as it does before reset's every write (D653, D684).

When the text is copied, what reset needs before it is copied stays where reset finds it: a .landin_boot section after the vector table, in the vectors' region, holds the description's stage, reset with its copies, the unhandled entry and, on rv32, the trap entries and the CLIC's table of addresses. Reset reaches the entry through the linker's veneer where a Thumb bl cannot, and an rv32 slot whose routine is in copied text a j cannot reach enters it through D1290's stub, its landing linked in the text. The unwind tables and an archive's initializer array stay in the image's flash, and the build report's flash, its capacity and the image budget's (D537) are that region's. Without a copied section the script and reset are what they were, so the reference's script is still D229's byte for byte and no other image changes.

What stays refused is what D543 refuses: a copy does not make memory executable, so text in a region that may not execute is L0514, and no other placement of text or rodata is. D546's contract holds a developer's script to the rule: clause 2 asks for the copied sections' symbols, clause 4 for their load images in the image's flash, and clause 1 for reset, a stage before it, the copy and the unhandled entry each in a segment loaded where it runs.

The STM32H753's description places its text in the ITCM, the M7's 64 KiB of instruction memory at zero, which flash's wait states do not slow, and its cached profile's does the same: its board's boot image, the application whose record the board tool's oracle checks from power-on, runs 47,976 bytes of text from it, and the ITCM read over SWD after the run holds the text's load image. A program whose code outgrows 64 KiB places text in FLASH.

The alternatives: a directive of its own for copied sections, such as a linker.copy, which says again what linker.place already says; copying words rather than bytes, quicker for a large image and unlike the copies beside it; keeping reset in the copied text, which the reset vector cannot reach before the copy; and leaving the STM32H753's text in flash, which leaves no board running code from RAM after power-on.

Pinned by positive/description-copies-text-into-ram, positive/description-copies-rodata-into-ram, negative/description-places-code-where-it-cannot-run, end-to-end/firmware-linker-script-leaves-copied-text-unloaded and end-to-end/firmware-linker-script-copies-reset; the rv32 firmware cases the derived script guards its placements and copied text and constants load from flash; the descriptions lane, which runs the lane descriptions microbit_text_in_ram, microbit_rodata_in_ram, sifive_e_text_in_ram and sifive_e_rodata_in_ram from reset under QEMU and again with the debugger moving reset past the copy, which the same oracle refuses; and the STM32H753's boot record.

D546 — A developer's linker script is held to a written contract

The tour said nothing; [1990] refused linker scripts.

Chosen: --linker-script=FILE links firmware with FILE in place of OUT.ld, which refine still writes beside the image. It is refused unless the request is --target=cortex-m0 --firmware-entry=NAME --emit=exe. refine does not parse the script: after the link it reads the ELF and holds it to five clauses, in order, and a broken one is L0519 naming it, the executable is removed and the derived script is offered:

  1. the vector table: _landin_firmware_vectors at the profile's boot address, its whole length loaded there, its first words the initial stack pointer and reset, for rp2040-boot2 the second stage at the start of its region, its last word the CRC-32 of its first 252 bytes (D588), and for rp2350-image-block the image block refine checked, its words as D637 gives them, ending in the first 4 KiB of the vectors' region (D638), and in an image that boots from its own memory reset, a stage before it, reset's copy and the unhandled entry each loaded where it runs, not in memory reset fills (D1359);
  2. the startup symbols: every _landin_firmware_* symbol reset reads, the stack's two, each used region's, and those of text and read-only data reset copies (D1359);
  3. the stack: in a writable region of the description, its top aligned to eight bytes, its size the description's, and no data, RAM code or BSS reaching into it, nor any other allocated section with content, the vector table, text and read-only data among them (D1114, D1323);
  4. the initialized images: each load image of copied text and read-only data, data, RAM code and a used writable region in the region text is placed in, or the vectors' when the text is copied (D1359), held in the file;
  5. address zero: no datum or routine at address zero, where a pointer is null (D1115, D1323).

The alternatives: parsing the script, which is the linker's language and changes with it; trusting a developer's script unchecked, which lets an image boot to nowhere; and refusing scripts until a build tool exists, which the developer's ownership of the linker does not wait for.

Pinned by environments/cortex-m/descriptions.py, which links with a copy of the derived script and with one breaking each clause, each refused naming its clause.

D1323 — A developer's linker script keeps the stack and address zero as the derived one does

The tour said nothing; D546 held a developer's --linker-script image to four clauses, whose third named data, RAM code and BSS, and D1114 and D1115 then made the derived script keep text and read-only data off the reserved stack and every datum off address zero. A developer's script could still link constants into the stack or a datum at zero, and refine accepted the image.

Chosen: refine reads the linked image against both rules, as it reads the other clauses, and refuses an image that breaks one with L0519. The third clause, the stack, also holds every allocated section with content clear of the reservation: the vector table, text, read-only data, unwind tables and any section a script adds, named in the message; a section without content, such as one a script reserves the stack with, is not the image's and is not held. A fifth clause, address zero, refuses a datum or a routine, a symbol the image types as an object or a function, at address zero, naming it; the startup symbols, the vector table's among them, and the linker's own labels are not the program's. The derived script keeps both, so the images it links are unchanged, and a RAM layout's image is held to the fifth clause as it is to the others (D900), its third already reading every allocated section.

The alternatives: parsing the script for its section order, which D546 declined; holding a developer's script to the derived script's padding itself, the first eight bytes of a section at zero, rather than to where the program's symbols lie, which would refuse a script that starts the region with something else; and a new code, where L0519 already names each clause of the same contract.

Pinned by end-to-end/firmware-linker-script-reaches-the-stack and end-to-end/firmware-linker-script-places-at-zero, images the pinned Arm driver linked with a script breaking each rule and refused naming it, and environments/cortex-m/descriptions.py's contract case, which links RP2040 constants into its stack and an STM32H753 ITCM datum at zero and refuses each.

D900 — A RAM firmware layout is derived from the same device description

The tour said at [1650] that compiler startup initializes RAM; D545 derived only a boot layout, and D546 checked a developer's script.

Chosen: --firmware-layout=boot|ram selects the artifact layout for Cortex-M and RV32 firmware, with boot the compiler default. A RAM layout uses the description's executable data region when one exists, otherwise its executable writable text region or first executable writable region. An ESP RAM-only description retains its instruction/data mappings. Vectors, text and read-only data move to that region; data, BSS and the stack retain their described placements. Initialized RAM sections load at their runtime addresses. Startup skips self-copies, including named writable regions, and still clears BSS. Initialization stages remain, except the RP2040's flash second stage. RAM artifacts have no boot prefix, image block or ESP application-image package.

Every RAM executable, with the derived or a developer's script, is checked after linking: the full vector image, startup symbols, stack reservation, all allocated sections and load segments must satisfy its SRAM layout. Flash placement, flash load addresses and stack overlap are refused; capacity refusals name the boot layout and board boot check. A valid description-owned reset stage is the vector's entry when present, in both layouts. The build report distinguishes layout, described_boot and the effective boot, reports code and RAM capacities, and gives each linked load segment's physical and runtime addresses and file and memory sizes. The loader establishes the core/peripheral baseline; RAM layout itself does not reset a board or establish cold-boot evidence.

The alternatives: a second linker script maintained by each board port; moving already-linked flash bytes into RAM without relocation; and treating a successful RAM run as evidence about the ROM's boot format.

Pinned by the cortex ABI case RAM layout derives SRAM placement, the rv32 firmware case RAM layout omits ROM packaging, the board build controls and the linked developer-script, flash-load-address and SRAM capacity controls.

D547 — A declaration can be placed in a named region

The tour said at [1640] that placement chooses a section and an alignment, and [1990] refused section addresses.

Chosen: link_attribute gains region: text, which places a routine or module datum in a region of the selected description by name, without a section: a routine needs a region that may execute, a mutable datum one that may be written. A routine and initialized data in a writable region are copied from their load image in the text region by reset, and zero data is cleared, after .data, RAM code and .bss; in a read-only region they run and are read in place. A region the description does not have, a region beside a section, or a region whose access does not hold the declaration is L0517, and a region placement with no profile is L0518. On a hosted target placement is L0347, as every placement is.

The alternatives: a section name per region, which leaves the reset loops to the developer; and an address, which [1990] refuses and a description makes unnecessary.

Pinned by negative/region-placement-unknown and environments/cortex-m/descriptions.py, which finds a datum placed in RP2040's SCRATCH_X inside that region in the linked image.

The tour said nothing of a second stage; D542 made a description a module of directives alone and D545 left rp2040-boot2's slot empty, so no RP2040 image booted.

Chosen: link_attribute gains boot_stage. A description may hold, besides its directives, exactly one declaration: the naked routine its boot kind enters first, link(boot_stage) extern(naked) NAME: () -> none, whose body is one assembler.block as [1990] says every naked body is. It is source of the device's, beside the directives in the description's module, so a reader finds the code that runs before reset where the device is described, and the editor tooling reads it as any routine; every other declaration in a description stays L0513, amending D543. Each refusal is configuration's, so refine check and the server report it as a build does, and each says what to write instead:

  • boot_stage on anything but a naked routine, or beside another link attribute, is L0533: the boot kind places the stage, so it has no section, symbol, region, vector, alignment, keep or thread;
  • a boot stage outside the description the program selects, or in a program that selects none, is L0534;
  • one in a description whose boot kind takes none is L0535, which D653 leaves to rp2350-image-block, since a vector-table description may hold a stage its reset vector enters before reset;
  • a second one in a description is L0536, naming the first;
  • and a description whose boot kind begins with a second stage, rp2040-boot2, that holds none is L0537, at its compiler.boot.

Which boot kinds take a stage, the slot's 256 bytes, the 252 the stage and its literals may use and the checksum are facts of the boot kind, which the compiler owns (D545): no chip name enters the compiler. The repository's RP2040 description holds boot2.ldn, a port of pico-sdk 2.2.0's generic boot2_generic_03h.S with its exit_from_boot2.S, its constants written as numbers each beside the macro it is, and both pinned by hash and fetched (D559), never vendored. The naked assembly admission takes ldm, ldmia, stm and stmia, ARMv6-M instructions the port's exit uses, in a naked body.

The alternatives: the stage as bytes in the compiler, which puts a device's code in the compiler and its flash's command set with it; a stage as a separate object or binary the description names, which leaves the code nowhere the editor, the formatter and the checker reach and a new input form beside source; a directive compiler.boot_stage("FILE.S"), which is a second language in the description; letting any module hold the stage, which lets two programs for one device boot differently; and the quad-read boot2_w25q080.S, which the first board's flash does not need and whose non-volatile write no board run would exercise.

Pinned by negative/boot-stage-not-naked, negative/boot-stage-outside-description, negative/boot-stage-unwanted, negative/boot-stage-second, negative/boot-stage-missing, the cortex ABI case device descriptions select their profiles, which holds each refusal and the stage's place at the start of its slot, and environments/cortex-m/descriptions.py, which reads the stage RP2040's description builds against pico-sdk's own.

D588 — refine emits the stage at the start of its slot and writes its checksum into the object

The tour said nothing; D587 puts the stage in the description.

Chosen: the backend emits the stage at offset 0 of .boot2, labelled _landin_firmware_boot2, with nothing before its first instruction: the boot ROM copies the slot to SRAM and enters the copy at its first byte in Thumb state, with lr zero. Its literal pool follows it, so its literals stay in the slot, then zeros to the stage's limit, written so that a stage longer than the limit still assembles and is refused for its size rather than for an assembler message, then a zero word for the checksum. The stage runs from the copy, at an address it is not linked at, so it must be position-independent: no relocation may be in it, and none in an image section may refer to it.

refine has no assembler of its own, so only the assembled bytes can be summed. Once the firmware assembly succeeds, the driver reads the object's .boot2: a section that is not 256 bytes is a stage and literals past 252 bytes, and a relocation in it, or one in an allocated section against a symbol defined in it, is a stage the ROM's copy would not run as linked; each is L0538, naming the size or the relocation, its offset and its symbol, before anything is linked. Otherwise refine computes the boot ROM's CRC-32 over the first 252 bytes, polynomial 0x04c11db7, initial value all ones, neither input nor output reflected and no final exclusive or, and writes it into the last four, little-endian, in the object file, in place. Every object and executable refine writes for an rp2040-boot2 profile therefore carries the right checksum, a link with --linker-script among them, and D546's first clause checks the linked slot's checksum again; --emit=asm keeps the zero word, which no assembler can fill. The firmware build report gives the stage as boot_stage: its source routine, its address, its length as the assembler wrote it, the slot's length, and the checksum and the address it is written at.

The alternatives: an assembler expression for the checksum, which GNU as cannot compute over its own output; a linker-script step or a post-link pass over the executable, which a developer's own script or link skips and which leaves the object refine wrote unsealed; padding with .org or .space alone, with which an oversize stage fails to assemble with the assembler's message rather than refine's; and checking position-independence in the assembly text, which the assembler's relocations decide.

Pinned by the cortex ABI cases device descriptions select their profiles, which holds the slot's emitted text, and a boot stage is sealed with its checksum, which holds the checksum to CRC-32/MPEG-2's check value and seals, and refuses for its size and for each relocation, synthetic objects; and environments/cortex-m/descriptions.py, which recomputes the linked stage's checksum as pico-sdk's pad_checksum does, finds no relocation reaching it, follows it with devices/thumb.py from its first instruction in the ROM's copy and requires its device stores, stack pointer and branch to be those pico-sdk's boot2_generic_03h.S makes, read from the fetched source, refuses a developer's script whose slot is not the sealed stage, and refuses an oversize stage and a relocated one naming each.

D589 — --emit=linker-script writes a profile's derived script without a program

The tour said nothing; D545 wrote the derived script only beside a firmware executable, so the Cortex-M corpus, and a developer linking objects of their own for a board, built a throwaway program with a start entry to obtain one.

Chosen: refine compile --target=cortex-m0 --emit=linker-script -o OUT.ld MODULE checks MODULE, which imports a description or is one, and writes the profile it selects as D545 derives its script, byte for byte the script a firmware build of the same program writes beside its image, with no entry, no assembly and no link; a program that reaches no description writes the constrained reference's. -o defaults to a.ld. With --build-report=FILE the report's firmware gives the profile's facts and capacities, flash_limit, static_ram_limit and stack_reserved, the stack's top, for rp2040-boot2 the slot and the checksum's address, and for rp2350-image-block the block's address and length (D638), and none of the figures a linked image gives. Another target is refused naming --target=cortex-m0, and the options that describe machine code or an executable are refused by the command catalogue's requirements (D565), which the new value joins.

The alternatives: a refine profile command, which is a second way to name a request the compiler already reads; writing the script with --emit=asm, which a request for assembly alone should not leave beside it; and documenting the throwaway program, which the developer still has to write.

Pinned by the commands case option requirements are one, the cortex ABI case the linker script is written without a program, and environments/cortex-m/backend.py, whose corpus derives each profile's script and limits this way and holds them to environments/cortex-m/descriptions.json.

D656 — The RV32 unhandled entry records the trap in memory before it waits

The tour said at [1990] that unspecified handlers enter a terminal unhandled-exception loop, and D680 sent every RV32 exception there. On the ESP32-C3 board a core once stopped in it, its ra in core/atomic's load, and the exception could not be named: probe-rs's GDB server reads nonsense from these chips' CSRs, and mcause, mepc and mtval are CSRs.

Chosen: on rv32 the unhandled entry records the trap before it masks interrupts and waits, in five words of .bss.landin_firmware_trap, which any probe reads as memory: _landin_firmware_trap_cause (mcause), _landin_firmware_trap_pc (mepc), _landin_firmware_trap_value (mtval), _landin_firmware_trap_sp, the sp the trap interrupted, and _landin_firmware_trap_count, how many traps have reached it since reset, in that order. It uses no stack, which may be what failed: t0 waits in mscratch while it holds the record's address, sp is recorded first and then carries each CSR, and both are restored, so every register but mscratch is still the interrupted code's when the entry waits. The count is written last, so a reader that sees it change sees the whole record. The CLIC entry and Hazard3's dispatch undo their frame before they jump to the entry, so the sp recorded is the interrupted one there too. The derived script places the cells first in .bss, so they are at _landin_firmware_bss_start in every image of a profile; a developer's script places them wherever it collects .bss.*. Reset clears them, so a record is read before the next reset.

Cortex-M keeps its loop as it is. What an RV32 core keeps in CSRs, an Arm core keeps where every probe reaches it: the fault status and address registers of an M3 and later, CFSR, HFSR, MMFAR and BFAR, are memory-mapped in the System Control Block, the stacked frame holds the faulting pc and xPSR, whose exception number is IPSR's, and sp and the core registers are read through the debug port's core register transfer, not the CSR reads that failed. An M0 has no fault status register to copy.

The alternatives: leaving the trap to a debugger's CSR reads, which is what failed; a record on the stack, which an overrun or a corrupt sp destroys; one record of every register, which the interrupted registers, kept as they were, already are to a probe that reads them; scratch cells for the registers the entry uses, where mscratch and the recorded sp need none; and the same cells on Cortex-M, above.

Pinned by the rv32 firmware cases traps follow the interrupt model, which holds the record's text, its cells and each dispatched path's frame undone before the jump, and descriptions select their profiles, which holds the cells first in the derived script's .bss; and environments/cortex-m/descriptions.py, which runs a program writing the read-only cycle CSR on Espressif's QEMU, the reference's image on sifive_e and the ESP32-C3's OUT.bin through the chip's ROM on esp32c3, and requires the cells, read as memory once the entry waits, to hold mcause 2, the instruction's address, its encoding, the interrupted sp and a count of one, at .bss's first five words, and every register to be as the trap left it.

D657 — An ESP image's RAM code is in its text segment

The tour said nothing; D688 placed an esp-app-image's .ramtext with .text, and D686's PHDRS names each loaded segment. .ramtext followed .data in the script and named no segment, so the linker put it in .data's, whose load addresses are in the text region and whose addresses are not: GDB loading the executable warned Loadable section ".ramtext" outside of ELF segments, and a loader that writes a segment at its virtual address would have written the RAM code past .data in the data region rather than where it runs.

Chosen: on an esp-app-image the script places .ramtext directly after .text, in the text segment, so the RAM code is loaded where it runs, and .data follows it in the text region's load addresses; the check that the initialized image fits the text region is of .data, the last image loaded there. Every other profile places .ramtext after .data, loaded from the text region and copied by reset, as before.

The alternatives: a segment of its own, which adds an image segment the ROM loads for every program with RAM code; and leaving it in .data's, which OUT.bin survives only because it is made from the segments' load addresses.

Pinned by the rv32 firmware case descriptions select their profiles, which holds the C3's .ramtext after .text in :text; and environments/cortex-m/descriptions.py, which links the C3's program with a .ramtext routine, parses OUT.bin against the executable's segments and boots it through the chip's ROM on Espressif's QEMU.

D658 — rv32's bytes are held to every host and to both compiler builds

The tour said nothing; scripts/emit_manifest.py's host manifest and its build-mode comparison named seven targets and three, without rv32, so nothing held rv32's emitted bytes to being the same on every host or from the debug and the release compiler. Each compiled a positive fixture at its target's default level whatever its args named, and the comparison took a runtime fixture only on the targets its targets: names, which can not name rv32: the RV32 lanes run the firmware corpus's inventory (D695).

Chosen: rv32 is the eighth target of the host manifest and the fourth of the build-mode comparison. A positive fixture whose args name a target and a --level is compiled at that level for that target, as the harness compiles it, and at the default for every other, so atomic-read-modify-write-rv32imac holds rv32imac's read-modify-writes. The refusals rv32 shares are listed by name as cortex-m0's are: the C fixtures, rv32 having no C ABI (D660); r630-memory-scalars, whose read-modify-write rv32imc refuses (D690); and assembly-operand-forms, which has no rv32 arm. The three fixtures whose args name rv32 are refused by every other target. In the comparison, both firmware targets compile every runtime fixture the firmware corpus executes, besides those their targets: names, and the Cortex-M counterparts; cortex-m0 gains those the inventory executes and its targets: does not name. Levels other than a fixture's own are not swept, on rv32 as on cortex-m0. Each host's manifest stays two parts, now of four targets each: the three Linux targets, whose every request also compiles platform/linux, take the debug compiler about fifteen times as long as any other, so rv32 joins the part with one of them.

The alternatives: every RV32 level for every fixture, which doubles rv32's entries to check one feature's code that the level's own fixtures already reach; rv32's runtime programs from targets:, which names none of them; and cortex-m0's comparison left at its targets:, which compared 130 of the 666 runtime fixtures its corpus executes, besides the eleven counterparts.

Pinned by scripts/tests/test_host_determinism.py: Levels, the firmware corpus's reach in BuildModes, and Workflows, which holds each host's parts in determinism.yml and the gate's build-modes parts to partitioning the check's targets.

D740 — A fixture of one target is compiled for it alone, and the manifest's targets are the compiler's

The discrepancy: D658 listed by name the refusals of the three fixtures whose args name rv32, one pair for each other target. Adding rv32 meant adding it to scripts/emit_manifest.py's two lists by hand, and three rv32-only fixtures written in three streams each failed the host manifest on all seven other targets until their pairs were listed; nothing short of the gate's determinism job said so.

Chosen: a positive fixture whose targets: names one target and whose args choose that target with --target= is that target's, and the host manifest and the build-mode comparison compile it for that target alone, as the harness does: D659 lowers such a fixture there too. It needs no refusal listed for any other target, and the D658 pairs for the three rv32 fixtures are gone; assembly-comments-naked, cortex-m0's, is no longer compiled for the other seven, where its naked routine is gated off. A fixture whose args choose a target while its targets: names others, as range-subtypes did until D1661, is still compiled for every target, and a refusal on one is still a fault. check.py holds the manifest's TARGETS to every target refine targets describes but the checking-only ones, the fixture reader's names to all of them, and MODE_TARGETS and FIRMWARE_TARGETS to lie within the lists they are drawn from, reading the compiler's own selection table.

The alternatives: permitting a refusal wherever args choose another target, which would have let range-subtypes start refusing on every target but cortex-m0 without a fault; listing each pair as D658 did, which is the step that was missed; and asking the compiler at emission time, which the stub compilers the manifest's controls run cannot answer.

Pinned by scripts/tests/test_host_determinism.py's OwnTarget, and scripts/tests/test_check_controls.py's TargetLists.

D1366 — The manifest compiles a fixture with the firmware entry its args request

The discrepancy: the host manifest and the build-mode comparison took a fixture's --target and --level from its args and nothing else, so seven Cortex-M0 positives whose args name --firmware-entry=start were compiled as objects nothing starts. Two of them place a vector slot, which is refused without an entry (L0502), and each had to be listed by hand among the manifest's expected refusals, which only a refused entry in the manifest showed a fixture's writer; the other five were checked as a program the harness never compiles.

Chosen: a fixture whose args choose a target and name a --firmware-entry is compiled for that target with that entry, as the harness compiles it, in both the manifest and the comparison; on any other target it is compiled without one, as its level is (D658). The two refusals listed for the entry are gone, and all seven are held to the image's assembly.

The alternatives: naming the hand-kept list in the fixture guide, which leaves the image's assembly unchecked by either comparison; and passing every word of args, which a fixture of several targets would then give to targets it does not choose.

Pinned by scripts/tests/test_host_determinism.py's FirmwareEntry.

D1365 — The build-mode comparison is dealt round shards, not split by target

Amended by D1374, which deals a request by its key's digest.

The discrepancy: the gate's build-modes jobs split the five mode targets by hand, one Linux target with firmware targets in each, as the host manifest's parts are (D658). The Xtensa configurations doubled one part's firmware requests, 17,176 against 8,964, and a GitHub-hosted runner of the same label took between 940 and 1,786 seconds over that part, so it ran 29.7 minutes of its 30 on 2026-11-15 and was cancelled at the limit once before, its comparison already clean.

Chosen: emit_manifest.py modes --shard=I/N compares every I-th request of the list it builds, from the I-th, and the gate runs three jobs, build-modes-1 to build-modes-3, each over every mode target. A shard is a third of the requests and of their kinds whatever target or level the corpus gains: on one 32-core host the three took 163, 166 and 164 seconds, and on the gate's runners about ten minutes on a fast one and eighteen on the slowest yet, under the same 30-minute limit.

The alternatives: raising the limit, which leaves the next target to grow one part again, past whatever limit was chosen; three parts by target, one for each Linux target and one for the firmware, each of which would still take two-thirds of the limit on a slow runner and lean again when a target is added; and four shards, one more job beside the gate's others under the account's concurrent-job cap, for a margin three already give.

Pinned by scripts/tests/test_host_determinism.py: BuildModes, that the shards together are every request once, and Workflows, that the gate's jobs are shards 1 to N of --shard=I/N with no target list.

D1374 — A shard takes the requests its keys' digests name

The discrepancy: D1365's shards took every I-th request of the list, and the list gives each fixture's requests profile by profile, so with three shards and four standard profiles each shard took the same profiles of every fixture, not a third of every kind of request: run 44070770890's build-modes shards took 18.4, 10.1 and 18.5 minutes. The host manifests, sharded the same way since, took 18.3 and 11.0 minutes for Darwin's two shards on that run.

Chosen: emit_manifest.py's deal gives each request to the shard that the first 32 bits of its key's SHA-256, taken modulo N, name, for both modes --shard=I/N and emit --shard=I/N. Keys are unique, so the N shards are still every request once; a shard is about an Nth of every kind of request, whatever order the list is built in.

The alternatives: dealing round a shuffled list, which needs a seed and makes a request's shard depend on every other request in the list; and choosing the stride to be prime to the profile count, which holds only until a profile or a mode is added.

Pinned by scripts/tests/test_host_determinism.py: BuildModes and Workflows, that the shards together are every request once.

D659 — The lowering record lowers a fixture where the harness compiles it

The tour said nothing; compiler/tests/lowering.ir lowered every positive fixture at linux-x86-64. A fixture whose targets: leaves linux-x86-64 out is compiled by the harness only for its own target, and lowered at x86-64 it either failed, as library-platform-riscv-hazard3 did with L0015 and ramtext-esp32c3 with L0515, or recorded a program the harness never compiles: assembly-comments-naked's naked routine is gated to cortex-m0 and was absent from its section.

Chosen: such a fixture is lowered at the target its args name with --target=, or else at the first its targets: names, and at the level its args name with --level=, or else at that target's default. Its section's second line, after file, says target NAME level LEVEL; a section without one was lowered at linux-x86-64 at its default level, as every fixture that admits x86-64 still is.

The alternatives: excluding those fixtures from the record, which leaves rv32's and cortex-m0's lowering of them unrecorded while the record still claims every positive fixture; lowering every fixture at every target it admits, which multiplies a record that holds the lowering, not the target, many times over for code the backends' own corpora reach; and a header naming one target per record, which a corpus of several cannot say.

Pinned by lowering/the recorded corpus is current, whose record has the four target sections: assembly-comments-naked at cortex-m0 armv6-m, the two rv32imac fixtures and ramtext-esp32c3 at rv32imc.

D635 — RP2350 is learnt from pico-sdk's SVD for the first board's port

The tour said nothing of a second Raspberry Pi chip. The first board's port (D593) runs on the RP2040's own registers; the RP2350 has the same peripherals at other addresses, some of them changed, and a Cortex-M33, whose SVD names it CM33, which the importer did not read.

Chosen: the RP2350 is learnt by refine svd from pico-sdk's src/rp2350/hardware_regs/RP2350.svd at the commit RP2040's inputs use, pinned by URL and hash and fetched (D559), with the pico-sdk headers its oracle compares against. The importer reads CM33 as cortex-m33, the sixth core D542 names, amending D542 and D557. The policy, devices/policies/rp2350.json, selects what the board port touches on the RP2350: CLOCKS' reference, system and peripheral clocks and the glitchless selections; XOSC; RESETS; bank 0's GPIO0, GPIO1 and GPIO3 controls and pads, whose isolation bit resets set and input enable clear, which bring-up must clear and set; UART0; DMA channel 0, its interrupt and the abort; TIMER0's alarm, count and interrupt, with TICKS' TIMER0 tick, which replaces RP2040's watchdog tick; SIO's input and output commands; POWMAN's CHIP_RESET, whose HAD_POR is bit 16; and the M33's VTOR and NVIC_ISER0, NVIC_ICPR0 and NVIC_ISPR0. Its access policies are RP2040's for the same registers, but DMA's control writer admits bits 0 to 25, RP2350's BUSY being bit 26, and POWMAN's register, which takes a password to write, has no writer. Its reset masks promise what pico-sdk's headers promise.

Where the SVD and pico-sdk disagree, the RP2350 datasheet decides: release 8, build 80d627281ed5, pinned by URL and hash like RM0433 and supplied by hand, since its URL serves whatever release is current. It says the SVD is wrong in one place: IRQs 40 and 41 are PROC0_IRQ_CTI and PROC1_IRQ_CTI, the cores' cross trigger interrupts (3.2, Table 95, p. 81), which the SVD omits and pico-sdk's intctrl.h defines, so the policy adds both, each with that source, in D560's form, and the description has 68 slots with all 52 interrupts named.

The alternatives: a copy of the SVD from a third party's collection, as D560 declined; leaving 40 and 41 out, which refuses a handler at the slots the chip raises; and selecting RP2040's whole surface again, the alarms and the second channel among them, which the port does not touch on this chip.

Pinned by devices/policies/rp2350.json, the devices suite's a device becomes modules, which reads a CM33, and devices/test.py's Rp2350Oracles, which compares every selected register and field with pico-sdk's headers, each base with addressmap.h, DMA's requests with the datasheet's Table 1254, the access policies and pad resets with literals reviewed from the datasheet, and the interrupts with intctrl.h, beside its regeneration of the files byte for byte and its D542Form.

D636 — RP2350's description is pico-sdk's map for a Pico 2, with no float unit

The tour said nothing; D542 leaves the memory half to the developer.

Chosen: devices/descriptions/rp2350/memory.ldn describes 4 MiB of flash from 0x1000_0000, the Pico 2's (pico-sdk's boards/pico2.h), 512 KiB of RAM from 0x2000_0000 and the two 4 KiB scratch banks at 0x2008_0000 and 0x2008_1000, as pico-sdk 2.2.0's memmap_default.ld for RP2350 lays them out; the stack takes the whole of SCRATCH_Y, as RP2040's does, and the boot kind is rp2350-image-block (D637). The vector table, 68 words, is at the start of flash, where the boot ROM enters it in Secure state, as the image type says (D637). No float unit is described: the M33's single-precision FPU stays disabled, as reset leaves it, the profile is cacheless and its C ABI the base soft-float one. A program builds for it at armv8-m.main, armv7-m or armv6-m (D543).

The alternatives: describing the FPU, which changes the C ABI and is the float unit's own work; placing the stack in RAM, which leaves the scratch banks pico-sdk keeps for the cores' stacks unused; and a non-secure profile, which needs the SAU programmed before the image runs.

Pinned by the cortex ABI case device descriptions select their profiles, which selects RP2350 by its identity, and environments/cortex-m/descriptions.py, which links it at --level=armv8-m.main and compares its regions, its 68-word table at 0x1000_0000, its reserved slots, a handler at PROC0_IRQ_CTI's slot 56 and a datum placed in SCRATCH_X with descriptions.json, recorded from those files.

D637 — An rp2350-image-block image is its vector table, then one IMAGE_DEF block linked to itself

The tour said nothing; D545 reserved the boot kind's name.

Chosen: the boot kind stops being reserved. Its vector table is at the start of the vectors' region, as vector-table lays it out, with no prefix. Directly after it, in a section of its own, .embedded_block, as pico-sdk names it, refine emits one IMAGE_DEF block, the five words 0xffffded3, the start marker; 0x10210142, an IMAGE_TYPE item, type 0x42, of one word, whose value 0x1021 is an executable that runs in Secure state, for Arm, for RP2350; 0x000001ff, the LAST item, type 0xff, giving the other items' one word; 0x00000000, the link to the next block, which is itself; and 0xab123579, the end marker. This is the datasheet's minimum Arm IMAGE_DEF (release 8, 5.9.5.1, Table 503, pp. 389 and 390) in its block format (5.9.1, Table 487, p. 380; 5.9.3.1, Tables 492 and 493, pp. 383 and 384), and pico-sdk's embedded_start_block.inc.S with its end block turned off: a block loop of one block. With no ENTRY_POINT or VECTOR_TABLE item the boot ROM enters through the table at the start of the image, its initial stack pointer and reset. The block has no hash and no signature, so it boots only an RP2350 whose secure boot is off. The derived linker script places .embedded_block after .isr_vector and asserts that it is 20 bytes and ends in the first 4 KiB of the image, where the ROM searches for a block loop (5.1.5.2, p. 329; 5.9.5, p. 389), as pico-sdk's script asserts of its own.

The alternatives: the block as description source, as the second stage is (D587), which would let a description write a block the boot ROM refuses and is data, not code a reader follows; pico-sdk's two-block loop, whose empty block at the end of the image leaves a partly written image's loop open (5.10.2, p. 392), which the derived script would have to place last of everything in flash and a board run to exercise; a VECTOR_TABLE or ENTRY_POINT item, which repeats what the table at the start already says; and a HASH_DEF block over the image, which the boot ROM does not require when secure boot is off.

Pinned by the cortex ABI cases device descriptions select their profiles, which holds the block's emitted text after the table, and an image block is read from its object; and environments/cortex-m/descriptions.py, which links RP2350's description and requires the linked block's address, bytes and place to be those pico-sdk's embedded_start_block.inc.S gives when the pinned GCC assembles it with its end block off.

D638 — refine reads the assembled block back before linking, and the report records it

The tour said nothing; D637 says what the block is.

Chosen: once the firmware assembly succeeds, as D588 does for the second stage, the driver reads the object's .embedded_block and checks the block in it: its 20 bytes, its two markers, its first item's type and size, its image type, its LAST item and the size it gives, its link and that no relocation is in it. A block that is not the one D637 gives is L0555, naming the part that is not, before anything is linked. refine writes the words itself, so L0555 is a defect of refine or of the assembler it ran, not of the program; the check is what lets a build say the block in its object is the one the boot ROM reads. D546's first clause gains the block: a developer's script must keep the block refine checked, ending in the first 4 KiB of the vectors' region, and a linked image whose block is missing, late or changed is L0519 naming it. The firmware build report gives image_block: its address, its length and its words, as the linked image holds them; --emit=linker-script's report gives its address and length (D589).

The alternatives: trusting the assembler's output unread, which leaves a defect in the emitted words for the boot ROM to find on a board; checking the assembly text, which the assembler's bytes decide; and checking only after the link, which a developer's script or link would skip.

Pinned by the cortex ABI case an image block is read from its object, which refuses each part of a synthetic object's block, a relocation in it and a missing section, and holds the driver to L0555 before the link; and environments/cortex-m/descriptions.py, which reads the build report's block, links with a copy of the derived script and refuses scripts that move the block past 4 KiB or replace its words, each naming clause 1.

D680 — An RV32 image's traps follow its core's interrupt model

The tour said at [1990] how a Cortex-M handler is entered: the core stacks the caller-saved registers and enters the routine its vector names. A RISC-V core stacks nothing, and D662 made a slot an mcause interrupt code whose meaning the core's interrupt model gives.

Chosen: compiler-owned code enters every handler, and no handler takes an exception: an exception, mcause's interrupt bit clear, reaches the unhandled loop, which records it in memory first (D656). Each model sets mtvec its own way:

  • vectored, the E31's and the ESP32-C3's: mtvec holds the table in vectored mode, 1, and the core jumps to slot N for interrupt code N and to slot 0 for every exception. Each slot is one j: to the unhandled loop, to a naked routine itself, or to a stub of the handler's, _landin_firmware_slot_N.
  • clic, the ESP32-C5's: mtvec holds _landin_firmware_trap, aligned to 64 bytes, in CLIC mode, 3, and no interrupt is selectively hardware vectored. The CLIC specification sends every trap of a non-vectored interrupt to mtvec's base, and its interrupt id is mcause's low twelve bits, in its non-vectored mode; the entry saves the registers, reads mcause, and calls slot id of the table, whose j reaches the handler. ESP-IDF's own vectors set mtvt and each interrupt's shv instead (components/riscv/vectors_clic.S); that needs a write per interrupt the program enables, which the program owns, and a table of addresses beside the table of jumps. D830 supersedes this in part: mtvt names such a table, and an interrupt whose shv the program sets enters its slot's stub through it.
  • xh3irq, Hazard3's: mtvec holds the table in vectored mode, and slot 11, the machine external interrupt, jumps to _landin_firmware_external, which saves the registers and, while meinext names an IRQ, calls slot 16 + IRQ through the table, as pico-sdk's isr_riscv_machine_external_irq loops over meinext, which gives the IRQ times four in bits 2 to 10. Bit 31, no IRQ, ends the loop.

A slot the profile does not admit, or one no handler takes, jumps to the unhandled loop rather than holding zero, which D544 gives the NVIC: a RISC-V slot is an instruction, and zero is an illegal one, whose trap would overwrite the mcause a debugger reads. An extern(interrupt) routine is an ordinary routine. Its stub lowers sp by 64 bytes, saves ra, t0-t6 and a0-a7, the registers a call may change, calls it and restores them, then mret; its unwind rules give mepc as the return address, which nothing changes until mret, so a debugger unwinds from the handler into the interrupted code. A naked routine in a hardware-entered slot is jumped to, and owns its saves and its mret. A slot the core's dispatch enters, every slot under the CLIC and slot 16 + IRQ on Hazard3, is called, so a naked routine there is L0347, saying to write it extern(interrupt). There is no nesting: mstatus.MIE stays clear from the trap to mret. When the program prepares stacks ([1995]), the stub saves the stack limit's cell, stores zero in it while the handler runs and restores it, 80 bytes in all: a handler runs on the interrupted stack, which a switch may be moving between, and is not checked, as on Cortex-M0.

The alternatives: one common entry on every core, which turns the vectored cores' hardware dispatch into a second software one; hardware vectoring on the CLIC, above; a naked routine in a dispatched slot entered with t0 in mscratch, which no reader of a naked body would expect; zero in an unhandled slot, above; and nesting, which needs a priority policy no description states (a register row).

Pinned by the rv32 firmware case traps follow the interrupt model, which holds the table, stubs and entries of each model; the rv32 firmware case a naked handler is refused in a dispatched slot; the RV32 emulator lane, which takes the reference's interrupts; and the ESP32-C5 board's record, whose boot frame carries CLICINT18 with shv set and CLICINT17 with it clear, as the core read them back.

D681 — A boot kind is read by one family's boot ROM, or by both

The tour said nothing; D545's kinds were all Arm's until D662 added RISC-V cores.

Chosen: rp2040-boot2 begins with a stage of Thumb code, so only an Arm core's description may select it, and esp-app-image is what an ESP32-C3's or ESP32-C5's ROM loads, so only a RISC-V core's may. vector-table and rp2350-image-block serve both: RP2350 boots either family from one block format. A description that selects another family's kind is L0576, at its compiler.boot, naming the core.

The alternatives: leaving the pairing to the board run, which finds it only on hardware; and a kind per family and chip, which multiplies names the ROMs do not distinguish.

Pinned by negative/description-boot-family.

D682 — An RV32 rp2350-image-block image begins with its entry word

The tour said nothing; D637 laid out the Arm image, whose table's first two words the boot ROM reads.

Chosen: on rv32 the image is its entry word, then the table at the first address its alignment allows, then the IMAGE_DEF block directly after it, still ending in the first 4 KiB. Hazard3's boot ROM, given a block with no ENTRY_POINT, enters a RISC-V image at its first byte, which is the entry word. The block's IMAGE_TYPE is 0x1101, an executable for RISC-V, for RP2350, of no stated security, in the item format D637 cites, so its second word is 0x11010142, the word the Pico 2 booted on the rig; D638's read-back and D546's first clause check that word on rv32, reading an EM_RISCV object.

The alternatives: an ENTRY_POINT item, which repeats what the image's first byte already says; and the table first, which Hazard3 would execute.

Pinned by the rv32 firmware cases descriptions select their profiles, which holds RP2350 Hazard3's table and block addresses, and an image block is read from an rv32 object.

D683 — esp-app-image is a RAM-only image the ROM loads, its chip the description's

The tour said nothing; D545 reserved the name.

Chosen: the kind stops being reserved, and L0516 is retired. An ESP32-C3's and an ESP32-C5's ROM load an application image from flash into RAM and enter it with no second stage, as the rig's spikes showed from power-on on both chips, in the format ESP-IDF's esp_app_format.h and esp_image_format.h declare: a header, 0xE9, the segment count, the flash mode and the size and frequency byte, and the entry; an extended header naming the chip, its minimum and maximum full revisions and that a hash follows; each segment as its load address, its length and its bytes; zeros to the last byte of a sixteen-byte boundary, which holds the exclusive or of every segment byte seeded 0xEF; then the SHA-256 of everything before it. Chip id, revisions and offset are the chip's, not the compiler's: a description that selects the kind writes compiler.esp_image(chip, min_revision, max_revision, flash_offset) once, the chip id as esp_chip_id_t gives it, 5 for the C3 and 23 for the C5, the revisions as major * 100 + minor, and the offset where its ROM reads, a multiple of 4096, 0 on the C3 and 0x2000 on the C5. A description of this kind without it, or one of another kind with it, is L0575; an argument outside its range is L0399. The image is RAM-only: its code runs from SRAM, flash execute-in-place is a register row, the flash mode byte is DIO and the size and frequency byte 0x20, which neither ROM reads to load a RAM image, and the legacy one-byte minimum revision is zero, as the images both ROMs booted on the rig were. The C3's ROM refuses an image whose checksum is wrong, and with secure boot off only warns of a wrong SHA-256 and boots it, so the hash is evidence the image is whole rather than a gate the ROM keeps; refine's read-back (D685) holds both.

The alternatives: chip facts in the compiler, which names devices; a directive per fact, four names for one record; flash execution, which needs the ROM's cache and MMU set-up, a second stage refine does not write; and esptool's own image, which is a tool beside the compiler's output.

Pinned by negative/description-esp-image-missing and negative/description-boot-family, and the rv32 firmware case descriptions select their profiles, which holds each refusal of the directive.

D684 — An RV32 description's stage runs from the entry word, before reset

The tour said nothing; D653 lets a vector-table description hold a stage its reset vector enters, and an ESP32's watchdogs must be fed or stopped before reset clears a large BSS.

Chosen: on rv32 an esp-app-image or vector-table description may hold one link(boot_stage) naked routine, labelled _landin_firmware_reset_stage in .text.landin_firmware_reset_stage, and the entry word jumps to it instead of to reset. It runs before reset has set the stack pointer, so it may use neither the stack nor RAM, and it ends in compiler-owned reset, which it names: a stage that names no _landin_firmware_reset is L0560, and one that reaches the stack through sp, x2 or a compressed instruction that addresses through it, lwsp, swsp, addi16sp or addi4spn, is L0561, each saying the RISC-V form. Its text is read with RISC-V's # comments removed (D597).

The alternatives: a stage on the ESP image only, which leaves an RV32 board with a vector-table image nowhere to configure its clocks before reset; and stopping the watchdogs in compiler-owned reset, which names a chip's registers in the compiler.

Pinned by the rv32 firmware case a stage runs before reset, which holds the entry word, the stage's section and L0560 and L0561 on rv32.

D685 — refine writes the ESP application image beside the executable and reads it back

The tour said nothing; D683 says what the image is.

Chosen: a firmware build of an esp-app-image profile links the executable as any other, then writes OUT.bin, the image of its loaded segments with bytes in the file, at their load addresses in the ELF's order, entered at _landin_firmware_entry. A segment that does not begin and end with the linked image's allocated sections, as one carrying the ELF's headers does, a segment outside every region of the description, more than sixteen, or an entry that is not that symbol is L0577, naming it. refine then reads the file back and parses it on its own, holding its header, extended header, every segment's address, length and bytes against the executable's, its padding, checksum and hash, and nothing after the hash; a part that is not as made is L0577, and refine abandons its new executable and image through D907's transaction, preserving the prior artifacts or naming their retained recovery. No build publishes an image it did not check. OUT.bin is the image a flasher writes at the description's offset, probe-rs download --binary-format bin --base-address OFFSET. The build report's esp_image gives its offset, entry, chip, revisions, each segment's address and length, checksum, SHA-256 and length, and --emit=linker-script's report its offset, chip and revisions (D589). D546's contract gains nothing for the kind: its fourth clause already holds each load image in the text region, and the image refine writes is made from whatever executable the developer's script linked.

The alternatives: leaving the image to esptool, a second tool whose output refine could not check; writing the image from refine's own layout rather than the linked ELF's, which a developer's script would contradict; and trusting the write unread, which D638 already declined for the block.

Pinned by the rv32 firmware case an ESP application image is made and read back, which makes the image of a synthetic executable, holds its bytes to the format and refuses each part of a corrupted copy, and the ESP32-C3 lane, which boots OUT.bin through the real ROM.

D686 — An RV32 image begins with its entry word, and its script says so

The tour said at [1990] what Cortex-M's reset does and D545 how its script is derived; D662 gave a RISC-V image an entry word.

Chosen: the image's first word, at its vectors' region's origin past the boot kind's prefix, is _landin_firmware_entry, a j to reset or to the stage, in .text.landin_entry, assembled with no compression and no relaxation so it stays one word; the table follows at the profile's Vector_Address, a j per slot, likewise. Compiler-owned reset clears mstatus.MIE, writes mtvec as D680 says, sets sp to the stack's top, copies .data, .ramtext and each used writable region and clears .bss by the same _landin_firmware_* symbols as Cortex-M, orders the copies with fence rw, rw and fence.i, sets mstatus.MIE and calls the entry; gp stays unused, so no script defines __global_pointer$. The derived script is elf32-littleriscv, ENTRY(_landin_firmware_entry), places .landin_entry and .isr_vector at their addresses, collects the small data sections with their own, names its loaded segments in a PHDRS block that maps neither the ELF header nor the program headers, so that no segment carries bytes that are not the program's, and asserts the entry word's address and size, the table's, and a stack top aligned to sixteen bytes. On rv32, --emit=linker-script writes it without an emitter, so a harness has every profile's script before the backend emits. D546 holds a developer's script on rv32 to the same clauses, the first reading the entry word as a jump to reset or the stage, the third the sixteen-byte alignment. D537's budget reads the profile as on Cortex-M; a text and data region that are the same SRAM, as an ESP32's may be, counts every segment in it as static RAM in the report.

The alternatives: a reset vector of an address, which RISC-V cores do not read; the table first, which the E31's mask ROM and Hazard3's boot ROM would execute; and setting gp for relaxation, which saves a word per access and gives every image one more register the startup owns.

Pinned by the rv32 firmware cases descriptions select their profiles and the linker script is written without a program, which hold the reference's derived script, and the RV32 emulator lane, which runs the corpus on it.

D687 — platform/riscv declares its CPU operations on rv32 alone

The tour said at [1480] that platform/cortex_m holds the M profile's CPU operations; D575 made it declare them only on an M-profile target.

Chosen: platform/riscv is available on every target and declares, on rv32 alone, disable_interrupts, which clears mstatus.MIE with csrrci and returns its prior state, restore_interrupts, which sets it again only if it was set, interrupt_mask, enable_lines and disable_lines over mie, wait_for_interrupt, a fence then wfi, and the three barriers. The critical section is disable_interrupts to restore_interrupts, as on Cortex-M. Its submodule platform/riscv/hazard3, on rv32 alone as D661's reference is, writes Xh3irq's core CSRs: enable_irq and disable_irq over meiea and force_irq and clear_forced_irq over meifa, each IRQ in its sixteen-bit window. An ESP32's CPU lines are its interrupt matrix's or its CLIC's, which are the chip's generated modules.

The alternatives: Hazard3's CSRs in the description, which is directives alone; and one module with the controller beside the core's operations, which an ESP program would see.

Pinned by negative/library-platform-riscv-hazard3-hosted and the RV32 emulator lane's interrupt programs.

D1021 — platform/xtensa declares its CPU operations on xtensa alone

The tour said at [1480] that platform holds scoped freestanding interfaces and named only platform/c and platform/cortex_m; the Xtensa target was built with platform/xtensa in D687's shape, and no entry recorded its scope. This entry transcribes that behaviour; it changes none.

Chosen: platform/xtensa is available on every target and declares, on xtensa alone, disable_interrupts, restore_interrupts, mask_level_one and interrupt_mask over PS, set_enabled_lines and enabled_lines over INTENABLE, pending_lines over INTERRUPT, cycles over CCOUNT, wait_for_interrupt and the three barriers, so a shared program imports it everywhere and calls it from a fixed if compiler.arch == xtensa arm. Its submodules, the reference descriptions platform/xtensa/reference and platform/xtensa/reference_lx7, are available on xtensa alone and refused by name elsewhere, L0015; at the other Xtensa level each is L0515, because each describes one chip configuration, the first xtensa-esp32's and the second xtensa-esp32s3's (D903).

The alternatives: are D687's: the operations in each chip's description, which is directives alone, and an Xtensa-only module, which a shared program could not import.

Pinned by negative/library-platform-xtensa-reference-hosted, negative/library-platform-xtensa-reference-rv32 and the driver case source namespaces enforce target availability.

D1022 — A platform module with no scope is available nowhere

The tour said at [1480] that platform holds scoped interfaces, and D267 that each library namespace declares its availability. The compiler held that by naming each scoped module, and an import of a platform/* module it did not name was available on every target: a module added to the library's platform root without a scope was shared everywhere, and nothing said so.

Chosen: a platform/* module is available only where the compiler gives it a scope. Any other platform/* import is L0015 on every target, and its note says that the module declares no targets, which is a fault of the library, not of the program. Since D275 these modules come only from the compiler's own library, so a program cannot meet this unless its library is a maintainer's work in progress.

The alternatives: a check.py control that every platform/ directory of the checkout has a scope, which a library installed beside another compiler would not run; and keeping the fall-through, which makes a forgotten scope look like a deliberate shared one.

Pinned by the driver case source namespaces enforce target availability, which refuses an unscoped platform/foo on a hosted target and on each firmware family.

D688 — RAM code runs in a region code runs in, or is refused

The tour said at [1640] that .ramtext.* is RAM execution with a flash load image, and D545 placed .ramtext in the data region, loaded from the text region, whatever the data region's access. The ESP32-C3's description places data in its SRAM's data-bus alias, "rw", from which the core cannot fetch, so a .ramtext routine linked there faulted at its first call, and Espressif's QEMU, which does not enforce the bus split, ran it.

Chosen: RAM code is placed where code runs. On an esp-app-image the text region is RAM the ROM has loaded, so .ramtext is placed there with .text, its load address its own and its segment .text's (D657), and reset's copy of it is of itself. Otherwise it is placed in the data region when that region is "rwx", loaded from the text region and copied by reset as before. Otherwise there is nowhere for it, and a .ramtext routine is L0578, naming the data region and saying to place the routine in .text or, with link(region: "NAME"), in an executable region; a region placement already needs a region code runs in (D547). Every Cortex-M description the repository holds has an executable data region, so none of their images changes.

The alternatives: a description directive naming the region RAM code goes in, which every description with an executable data region would have to repeat; placing it in the text region on every profile, which on a flash text region is not RAM; and leaving the access a description gives unread, which put code where the C3 cannot fetch it.

Pinned by positive/ramtext-esp32c3, negative/ramtext-data-not-executable and environments/cortex-m/descriptions.py, which links an ESP32-C3 program with a .ramtext routine, requires every executable section of every RV32 description's image to lie in a region code runs in, and boots the C3's OUT.bin through the chip's ROM on Espressif's QEMU, holding the ROM's logged segments and entry to the image's.

D830 — Under the CLIC mtvt names a table of handler addresses, and a program vectors an interrupt by its shv

The tour said nothing; D680 sent every CLIC trap to the common entry and set no mtvt, so an interrupt whose shv a program set entered a table at address zero.

Chosen: under the clic model the image also holds _landin_firmware_vector_addresses, a word per slot, 64-byte aligned as mtvt's BASE requires (the ESP32-C5's TRM v1.1, Register 2.10), in its own .text.landin_firmware_vector_addresses section beside the table of jumps; reset writes its address to mtvt, CSR 0x307, after mtvec. Word i is where the CLIC enters an interrupt of identity i whose clicintattr shv is set (Register 2.66), with every register the interrupted code's, so a slot an extern(interrupt) routine takes holds that slot's stub, _landin_firmware_slot_N, which saves the frame, calls the routine and returns with mret as on the vectored cores, and every other slot the unhandled entry, which records the trap (D656). Every handled slot is reachable both ways, so it has its stub and its j in the table of jumps, which the common entry calls, and a naked routine stays refused in every CLIC slot (L0347). Which interrupts are vectored is the program's: it sets shv in the CLICINT word it already writes to enable one, and the compiler writes no CLIC register. No other model's emission changes.

The alternatives: vectoring every handled interrupt by a compiler write to its CLICINT word, which would take a device register from the program that owns it; a table only of the slots a description names, which leaves an identity the program vectors without a handler to enter address zero; and placing the table in .isr_vector, whose size the script asserts as the table of jumps'.

Pinned by the rv32 firmware case traps follow the interrupt model, which holds the table, its words, the stubs and the mtvt write under the CLIC and no mtvt elsewhere; the firmware corpus's manifest at every profile, unchanged on rv32 and cortex-m0; and environments/boards/esp32c5/board.py, whose port vectors the system timer and leaves UART0 to the common entry, and whose oracle holds mtvt, the table's words and both CLICINT words to the image and the TRM.

D1290 — An RV32 slot whose routine is out of a jump's reach enters it through a stub

The discrepancy: D680 and D686 make every table slot one j, which reaches 1 MiB either way, and D678 holds the regions of a profile to that size so that a jump inside one is short. Nothing held two regions to it. A routine a slot enters itself, a naked one the hardware enters or one the core's dispatch calls, may be linked in another region than the text: in .ramtext, which D688 links in RAM, or in a region its link(region:) names. With the table in flash at 0x1000_0000 and RAM at 0x2000_0000, an RP2350's own addresses, the image did not link, and the report was the linker's relocation truncated to fit: R_RISCV_JAL.

Chosen: such a slot is j _landin_firmware_far_N, a stub in .text.landin_firmware_trap beside the table, and the stub reaches anywhere with auipc and jr. Which slots get one is read from the profile and not from the link: slot N is far when its routine's region is not the text's and some byte of that region lies more than 1 MiB from the table. A routine in the text, and one in a region wholly in reach, is jumped to as before, so an image none of whose routines is far is byte for byte the image it was.

The pair needs a register for the address, and what it may take depends on who enters the slot:

  • A slot the core's dispatch calls (clic's common entry, xh3irq's external entry) is called with t0 holding the slot's own address, after the entry saved the interrupted registers, and a call may change t0. Its stub is auipc t0 and jr to the routine, eight bytes.
  • A slot the hardware enters has every register the interrupted code's, and a naked routine there is promised them. Its stub lowers sp by 16, stores t0 at 0(sp), and jumps with auipc t0 and jr to a landing, _landin_firmware_far_N_landing, linked in the routine's own section family and so beside it; the landing reloads t0, raises sp by 16 and is one j to the routine. The routine is entered with all thirty-one registers and mepc as the hardware left them. Sixteen bytes below the interrupted sp are written, as an interrupt routine's own stub writes the bytes below it (D680), and a naked routine that may not assume the interrupted stack, which no RISC-V core without a separate interrupt stack lets it avoid, has none of its own to use either.

An interrupt routine in a hardware-entered slot is entered by its stub _landin_firmware_slot_N, which is in the text, takes the routine's address with auipc and addi after saving t0 and calls it through a register; it was never the slot's jump and is unchanged. The entry word jumps to reset or to the stage, both in the text, and is unchanged. With debugging information both the stub and the landing carry unwind rules that return to mepc and find t0 in its slot.

The alternatives: widening every slot to an auipc and jr pair, which needs a register in a slot the hardware enters, where there is none, doubles every table and changes every image; an indirect jump through a table of addresses read with mtvt-like loads, which the vectored model has no register for either; and refusing the placement with the distance named, which leaves an RP2350's RAM handlers, the reason .ramtext exists there, unlinkable. The maintainer chose the stub.

Pinned by rv32 firmware/far handlers are entered through stubs: the slots, both stubs, the landing's section, and that the same program with RAM 256 KiB from the table holds no stub. Under Espressif's QEMU sifive_e, whose flash is at 0x2040_0000 and RAM at 0x8000_0000, a software interrupt entered a naked .ramtext routine through the stub with all thirty-one registers and mepc equal at the stub's first instruction and the routine's, and returned; that session is not a lane. No board has run a far handler.

D570 — The depth report closes a call through a table or a function value

The tour said nothing. D468 opened a call graph at every call through any, through a generic's table and through a function value, and declined, as a guess about what a run-time value holds, a bound from the providers of the call's concept. A fibre's task is reached only through such calls: core/fibre's first frame calls its task through any fibre.task, the task's routine is a function value, and what the task waits on is any again, so every task's depth was open on every target and a stack was sized by bisecting until it no longer trapped.

Chosen: the report closes such a call over the routines the whole program holds that it can be. A call through a table read from a value reaches entry N of every table of the same concept, direct and erased apart, which is the set D374 already relies on: a left-out entry is a zero word, so a table outside it could not be called through at all. A call through any other function value, however the value was kept, reaches every routine whose address the program exposes, by a function address, an image, an export or an import, and every table entry it may project, whose signature agrees with the call's, which is what the checker and the IR's verifier require of every function value that reaches a call. A routine that is neither emitted nor supplied by the link is left out, since nothing that names it was kept. A call stays open when it has no such routine, when its signature is a C function type, whose value may be one C made, and through a code address; recursion, foreign calls, runtime helpers and assembly stay open as D468 has them, and a closed call may meet recursion through what it reaches. A value made from integers or written by foreign code is outside the bound, as it is outside D374. The depth is then a bound over every task the program can start on a stack, not a measure of one run: the deepest provider of the concept counts wherever the call is, and on a hosted Linux target the vDSO's clock, a foreign call, still opens a task that may reach it.

The alternatives: D468's openings, which leave no number for any task; the providers of a concept that the call's own routine can be shown to receive, which needs a whole-program flow analysis of values the report does not have and which any exists to avoid; closing only calls whose table or value is traced to one routine, which D468 already does and which reaches no task; and every exposed routine whatever its signature, which puts each task's own entry beneath every call through a value and makes every task recursive. All were declined.

Pinned by the stack report suite's each opening is named, whose calls through a function value, any and a generic's table are closed by the one routine each can reach; a fibre's entry through any is closed, on every target; an open handler is refused, whose handler reaches a recursion and whose same handler through any is judged against the margin instead, and emitted where it fits; and negative/stack-handler-opens-its-graph, whose handler is refused for its C call and not for its call through any.

The tour said at [1610] that a link symbol denotes one compatible function and at most one definition. D415 made every public definition in a machine convention a global symbol under its own spelling, but the collision check compared only explicit link names and the spellings of C imports and C definitions. A bodyless extern(c) link(symbol: "S") import beside a public naked routine named S was admitted and then failed at the link: D516 pairs an import only with a naked routine that names its symbol, so the import's symbol was left undefined.

Chosen: a public naked or interrupt routine with no link name is held to [1610]'s rule under its own spelling. When another declaration's symbol is that spelling, whether an explicit link name, a C import's or C definition's spelling or another such routine's, L0347 refuses the routine, relates the other declaration, and says that a C import is a naked routine's view when the routine writes the import's link(symbol: ...). The spelling is not taken as a link name, so the routine stays a global symbol every program keeps rather than one only an import reaches.

The alternatives: extending D516's pair to a routine's own spelling, which would make whether a public naked routine is kept depend on whether some import names it; and noting the spelling as the routine's link name, which makes every public naked routine one an import reaches. Both were declined.

Pinned by negative/naked-routine-own-symbol-collides, an import of a public naked routine's spelling; and runtime/assembly-naked-labels, D516's pair with the routine naming its symbol, still admitted.

D810 — A hosted ELF program's assembly names its file symbol landin

The tour said at [1550] that Landin emits deterministic assembly and relies on the platform's assembler and linker, and an executable was linked by handing that assembly to the GNU driver, which assembles it to a temporary object with a random name, ccXXXXXX.o. The assembly named no file symbol, and GNU ld gives an input that has local symbols and no file symbol one named after its object, so two links of one assembly, from the same command in the same directory, differed in those six bytes on Linux x86-64 and arm64, and no hosted image could be reproduced.

Chosen: the assembly of every hosted ELF target ends with .file "landin", the toolchain adapter's line, so the object carries a file symbol and the linker makes none. The name is a constant, not a source's, because assembly without debugging records nothing about where it was built. A Darwin object has no file symbol and ld64 makes none, and a firmware link reads the object refine assembled itself, named for its output, so neither changes. A linked hosted image without --debug is then the same bytes for equivalent closures with the output's name fixed, on one host's toolchain; Darwin's linker names the output in the signature it gives the image. An assembly operand (D362) is linked as it is written, so its own .file, or its want of one, is its author's.

The alternatives: assembling to an object refine names before linking, which runs a second tool for every executable and only moves the name, to the output's, which then lands in the image; the source's name, which would put a path's spelling into assembly that records none; stripping or rewriting the image after the link, which makes the image refine's work rather than the platform's; and discarding local symbols, which takes routine names from a debugger. All were declined.

Pinned by compiler/tests/test_determinism.py, which links two runtime programs in two directories on each gate host that runs it and requires the images, as well as the assembly they were linked from, to be the same bytes, and its control two links of one assembly must be one image; the toolchain case a hosted ELF program names its file; and the driver case the arm64 default is armv8-a, which finds the line in the linked assembly.

D790 — Frame preflight answers from a bound, and a routine's one plan serves emission and its debugger

The tour said nothing. Before anything is written the driver asks the backend whether each routine's frame, and the area each of its calls reserves, is addressable, so that a frame too large is a refusal and not bad text. Arm64 and RISC-V planned every routine's allocation and frame for that answer, again to emit it, and with debug output a third time for its variable locations; x86-64 planned it twice with debug output, and Cortex-M0 twice for its answer and twice more for its tentative and final emission. On the scaling generator's 16,000-declaration functions program at speed, arm64's allocation was 19 per cent of a compile's cycles, preflight's and emission's 9.4 and 9.3; with --debug=full it was 15.5, a third each for preflight, emission and debug output.

Chosen: preflight answers from the reference frame, which gives every slot and scalar value a home of its own, with room for one more home per value, one per register the target may save and the frame's rounding, each eight bytes padded to the stack's alignment. A frame any allocation plans places a subset of the same slot cells in the same order and at most those homes after them, so it is within that bound; only a routine whose bound exceeds the limit is planned at preflight, for the exact answer, and the refusals are the ones they were. Emission plans each routine once. With debug output it keeps that plan and frame, and the DWARF encoder reads its locations from them; Cortex-M0's tentative emission hands its frame to the final one.

The alternatives: a plan made at preflight and kept for emission, which must outlive every driver step between them, and which a check's preflight, made before the IR is optimized, could not supply; and a debug encoder that plans for itself, which can disagree with the code it describes only by a defect but pays a third plan to find none. Both were declined.

Pinned by the backend scale suite's large routine, whose bound covers the frame emission plans at every objective; byte-identical assembly for every positive fixture on all eight targets, at all nine profiles and in both build modes, and with --debug=full or, on Cortex-M0 and RV32, --debug=lines, before and after; and the GDB sessions.

D791 — Every backend fills every build-report counter with one meaning, and a routine's stack beside its frame

The tour said nothing. The build report's routines rows were filled differently by each backend: x86-64 counted instructions, stack traffic and calls from its selected instruction stream, Cortex-M0 instructions alone, arm64 and RISC-V none of them; register_count was x86-64's callee-saved and XMM registers, arm64's held and saved ones and RISC-V's fixed scratch saves; and frame_bytes on Cortex-M0 held its pushed registers and frame record, which elsewhere it does not, while D467's depth report read every routine's stack from the backend instead. A comparison across targets from the report was unsafe.

Chosen: every backend fills every field of a row for every routine it emits. frame_bytes is what the prologue reserves below the frame record and the registers it pushes, for slot cells, spill and save homes and incoming register homes; stack_bytes, which the row now carries, is D467's frame, the routine's own stack from its caller's stack pointer. save_bytes are the callee-saved registers the routine saves, in its frame or pushed beside its frame record, never the record itself. register_count is the distinct registers the allocation holds a value or slot in, saved or not, so zero on RISC-V and Cortex-M0, which give every one a home. The sites are counted in the routine's final text, after branch shortening: each instruction; a load or store whose address is the stack pointer, the frame pointer or a register the routine set from one of them by a move, an addition or lea since its last label or call; a push, a pop, and x86-64's call and return, which move the return address through the stack; a call to a named routine; and a call through a register. A count is of sites, not executions.

The alternatives: a report saying, for each target, which counters it does not measure, which leaves the comparison as unsafe as it was; counting only accesses through the stack and frame pointers themselves, which on arm64, RISC-V and Thumb misses every cell beyond their short displacements and on x86-64 every aggregate it clears or copies through lea; keeping Cortex-M0's frame_bytes as its stack, which its lanes read as one and which stack_bytes now is; and renaming the depth report's frame_bytes, which would change a second format to fix the first. All were declined.

Pinned by the stack report suite's the build report counts on every target, whose rows have a stack equal to the depth report's frame and a call through a function value counted as indirect on each native backend; the backend plans suite's site counts follow frame addresses; the opt foundations suite's deterministic reports; the cortex ABI suite's save counts; and the x86 opt suite's register counts.

D840 — rv32 is no product target of the construct inventory, and a fixture naming it is held to a run

The tour said nothing; check.py's PRODUCT_TARGETS, the targets the construct inventory accounts every construct on and the columns of constructs.matrix, left rv32 out without saying so, and nothing held a fixture's targets: rv32 to any run, nor that list or the other Python lists that choose some targets, the driver manifest's, the determinism contract's and the image bounds', to the targets the compiler describes.

Chosen: rv32 stays out of the product targets, and the inventory says why. It runs the whole firmware corpus on two lanes (D695), but seven constructs, [1270], [1400], [1570], [1610], [1730], [1830] and [1860], have their Cortex-M evidence only from records that are Cortex-M's alone: the derived driver, the firmware machine probe and compile-time fixtures that select cortex-m0. Counting rv32 opens seven gaps, and every gap needs an owning item, which no live item is. A fixture that names rv32 is held to a run all the same: a compile-time one names it exactly when its args select --target=rv32, and a runtime or ABI one names it only with a firmware corpus row that executes it on an RV32 lane. check.py holds PRODUCT_TARGETS, each TARGET_SCOPES entry, and the lists above to name only targets the compiler describes with a backend, and each scope to lie within the product targets.

The alternatives: rv32 as a product target, which needs those seven gaps owned or seven RV32 counterparts of Cortex-M-only evidence, the driver among them, and is the step to take when an item owns RV32's parity with Cortex-M; and rv32 within the cortex-m scope, which is the Cortex-M family and would claim Arm evidence for a RISC-V target.

Pinned by scripts/tests/test_construct_inventory.py's test_an_rv32_claim_must_be_a_run_that_is_made and scripts/tests/test_check_controls.py's TargetLists.

D1315 — Xtensa is no product target of the construct inventory, and prototype 3 applies to it

The tour said nothing; check.py's PRODUCT_TARGETS left xtensa out as it left rv32, and no decision said why. The only reason given, in a check.py comment and compiler/tests/registers.md, was that no prototype applies to Xtensa, so no row of the target applicability table lists it and no fixture may name it; but prototype 3's row listed rv32, and Xtensa's lane executes the same firmware corpus, prototype 3's container derivations among its 718 executed rows.

Chosen: Xtensa stays out of the product targets, for D840's reason and one of its own. The seven constructs whose Cortex-M evidence comes only from Cortex-M's own records would be gaps on it as on RV32, and its lane runs the firmware corpus through the rows of compiler/tests/cortex-m/corpus.json, where 17 rows Cortex-M executes are Xtensa refusals; counting it opens gaps no live item owns. Prototype 3, whose containers are target-independent, applies to it as to RV32, so its applicability row lists xtensa, and a fixture may name it on the terms D840 sets for rv32: a compile-time one exactly when its args select --target=xtensa, a runtime or ABI one only with a corpus row whose Xtensa disposition executes it.

The alternatives: Xtensa as a product target, the step for an item that owns its parity with Cortex-M and the 17 refusals; and keeping it out of prototype 3's row, which would keep the table saying no prototype applies to a target that runs that prototype's derivations.

Pinned by scripts/tests/test_construct_inventory.py's test_an_xtensa_claim_must_be_a_run_that_is_made and scripts/tests/test_check_controls.py's test_a_target_no_applicability_row_lists_names_the_register.

D841 — The host manifest selects what it compiles, and its debug entries compare on one checkout

The tour said nothing; scripts/emit_manifest.py emit ran four compilations at once, compiled only the positive corpus, every profile in both build modes, and no source debugging, and recorded a refusal as refused:STATUS with nothing of what the compiler said. A proof that a change emitted the same bytes took 31 to 40 minutes a manifest on a 32-core host, or a script of its own, and a baseline compiler copied out of its build tree reported thousands of bare refusals.

Chosen: emit runs as many compilations as the host has cores, so the whole host manifest, 41,832 entries, took 370 seconds on a 32-core host other builds were sharing; and it takes --corpus= (positive, runtime and the Cortex-M counterparts, for the targets modes compiles them for, a runtime fixture linked as its link: says on a hosted target, as the harness links it), --fixture=KIND/NAME, --profile=OPTIMIZE-SPECIALIZE, --mode=, --jobs= and --debug-info, which compiles each entry again with the target's source debugging, --debug=full hosted and --debug=lines on firmware, the one each accepts, keyed |debug=full or |debug=lines. A positive fixture's key is its bare name as before, other corpora's carry their kind, and with no selector the manifest is the one the gate compares, unchanged. A fault for an unexpected refusal ends with the compiler's first diagnostic and its notes; the manifest's value stays refused:STATUS, the same on every host. Debug information names the directory a fixture was compiled in, and a caller-file digest follows it, so a debug entry compares only with one emitted over a ROOT at the same path: a before-and-after on one checkout, never the gate's cross-host comparison, which has none.

The alternatives: debug entries in the gate's manifest with the directory taken out before hashing, which needs the digest comment rewritten as well and would make the comparison about an altered text rather than the compiler's; a fixed four workers, which kept a host manifest at half an hour; and refusals recorded with their diagnostic, which put host paths into the values the hosts must agree on.

Pinned by scripts/tests/test_host_determinism.py's Selectors.

D842 — The harness names the RV32 lanes for a fixture naming rv32

The tour said nothing; a --fixture= run whose lane a fixture does not apply to names the command of each target's lane, and for rv32 said "no lane runs it: rv32 is a layout model the targets suite measures", which is synthetic-32's description.

Chosen: the note names the firmware corpus's RV32 lanes, backend_corpus.py --lane=esp32c3 at rv32imc or --lane=sifive-e at rv32imac, and the gate's cortex-m-rv32 job; D840 holds a runtime fixture naming rv32 to a corpus row those lanes execute, so the lane named is one that runs it.

The alternatives: refusing rv32 in a runtime fixture's targets:, which no runtime fixture names today and which would make a program written for RV32 alone unable to say so.

Pinned by D840's check, which keeps the named lane a run.

D882 — A memory builtin given an atomic cell names the cell's operations

The tour said at [1620] that a memory intrinsic takes an unsigned scalar pointer, and D500 that a core/atomic cell is read and written by its own operations. compiler.atomic_store(addr word_cell, word, compiler.seq_cst) on an atomic.cell(u32) was L0344 "memory access needs an unsigned scalar pointer without a subtype", with D227's note; it named neither the pointer it was given nor atomic.load and atomic.store, and the program that met it found them by reading core/atomic.

Chosen: L0344's refusal of a pointer names the pointer as the program writes it (D880), "..., not ptr mut atomic.cell(u32)", and when its pointee is a type of core/atomic, its note says the cell is read and written by its own operations, atomic.load(addr cell) and atomic.store(addr cell, value) among them, qualified as the source imports the module, and that a builtin takes a pointer to a plain u8, u16, u32 or u64. Every other refused pointer keeps D227's note.

The alternatives: accepting a cell's address in the builtins, which makes a cell's storage a builtin contract and lets a program bypass the operations D510 checks against the target; and naming only the plain scalar a builtin takes, which leaves the reader who wanted the cell's operations to find them again.

Pinned by negative/atomic-builtin-on-cell-names-its-operations.

D883 — The bare form says a source with no entry was checked as a module

D731 said that bare refine FILE closes by naming refine run and refine compile for what it checked. For a hosted source with no public main, a library module or a program still being written, both commands it named refused the same file as L0502.

Chosen: when a hosted check finds no [1970] entry, the line says it checked the source as a module and what a program needs instead: "refine: checked FILE as a module and wrote nothing; a program to run or build needs public main: () -> (code: i32)", with "no program" for "nothing" when the check wrote a report it was asked for. A firmware target's line is D731's, since its entry is named by --firmware-entry, and a source with an entry keeps D731's line. The answer is the check's own, so it is the same on every host.

The alternatives: dropping the line for a module, which leaves the reader who expected an executable without a word; and keeping D731's commands with a warning that they will refuse, which names two commands that cannot work.

Pinned by the commands case the bare form says it only checked, with a module and a module checked with a report, and the re-recorded closing lines of the end-to-end/feature-level-* fixtures on hosted targets, whose sources have no main.

D884 — A missing option value names the values, and -g is answered rather than accepted

D565 said that the catalogue writes the sentence for a value an option does not take, naming the values it does. A missing value was "--debug needs a value" with no values, and -g, which a C programmer writes first, was "unknown option: -g" from the commands, though the driver's own parse already suggested --debug=full for it.

Chosen: an option without its value, given at the end or as --debug=, is refused naming the values it takes, "--debug needs a value; it takes none, full or lines"; an option whose value is a name or a path is refused as before. An unknown option is answered by one function of the catalogue, which the commands and the driver both ask: another compiler's spelling is answered with the option it means, -g0 with --debug=none, -g1 with --debug=lines and every other -g with --debug=full, -O with --optimize and --version with --identify, and otherwise the nearest compilation option. -g is not accepted as an alias.

The alternatives: accepting -g as --debug=full, as -LDIR is accepted for -L DIR (D524), which was declined: a C compiler's -g takes levels and formats, -g3 and -gdwarf-4 among them, that --debug does not, and an alias that takes some of them invites the rest; and suggesting in the commands' parse alone, which leaves the driver's callers with a second answer.

Pinned by the commands case option requirements are one, which holds the commands' parse and the driver to the same answers for a missing --debug value, -g, -g1 and -g0.

D2188 — Windows x86-64 is a hosted target over kernel32, with no C runtime

Amended by D2267 and D2270. The POSIX layer is imported on Windows, where it declares nothing, and the hosted providers are written over kernel32; what follows of their absence is history.

From [1500], [1550], [1970] and [1975].

The discrepancy: the third roadmap adds Windows. Every hosted target before it reached its system through a C library or, on Linux, its system calls, and C's startup object started every program but a static Linux one. Windows' system interface is kernel32's documented calls; its C runtimes are several, and none is the system's.

Chosen: windows-x86-64 is a little-endian description with 64-bit pointers, 16-byte stack alignment and frame pointers, the x86-64 feature levels and the Windows x64 C convention (D2190). compiler.os gains windows; compiler.c_runtime is false there. A Windows executable is the program and kernel32: refine links platform/windows into every one, whether or not the program imports it, as a static Linux link takes platform/linux, and its _landin_start calls the program's main and ends the process with ExitProcess, whose 32-bit code is main's result unchanged. The module names kernel32 with linker.library, and nothing links a C runtime: --link is refused for the target, a fixture with link: libc does not name it, and platform/posix, platform/libc, platform/linux and platform/kqueue are unavailable, so hosted/, which is written over them, is too until Windows' providers are written over kernel32. The image reserves an eight-megabyte stack, a Linux process's customary limit, where Windows would reserve one, so that the corpus's recursion runs alike. A Windows image holds its written and zero images together within 2 GiB, which its loader refuses past, so D537's budget adds that sum on Windows, and L0505 refuses a program over it before emission, where Linux reserves a larger zero image. The report a failed check writes goes to standard error through GetStdHandle and WriteFile.

The alternatives: linking a C runtime, MinGW's or Microsoft's, which puts a second runtime's startup before every program and ties the target to one distribution of it; reaching ntdll, whose calls Windows does not promise; and leaving the stack at Windows' default, under which the corpus's deepest recursion overflows where it does not on Linux.

Pinned by runtime/target-hosted-system-facts, toolchain/a Windows link has no C runtime, negative/windows-image-past-two-gigabytes, and the corpus the gate's windows-runtime job runs (compiler/tests/windows/README.md).

From [1550].

The discrepancy: [1550] has the platform's assembler and linker finish a program, and Windows has two families: Microsoft's, with no assembler for the GNU syntax every Landin backend writes, and the MinGW ones, GNU binutils or LLVM.

Chosen: the driver is x86_64-w64-mingw32-clang, the name llvm-mingw gives it on Linux, macOS and Windows and MSYS2's CLANG64 environment gives it too. It assembles with Clang's integrated assembler and links with LLD in its MinGW mode against MinGW-w64's import libraries, libkernel32.a among them; --toolchain names another, a Clang with LLD and those libraries serving as well. The objects are COFF: a symbol has no type or size directive, each routine and datum is its own .text$, .rdata$, .data$ or .bss$ section, and a read-only datum is .rdata. The assembler does not refuse an instruction above the selected level, as GNU as does on Linux, and the image carries no level mark: a program built above the baseline is the builder's to run on a processor that has it.

Every tool of the chain is free software a user installs without Microsoft's compiler or the Windows SDK, which the maintainer requires of a Windows toolchain (2026-11-23): llvm-mingw's releases on Linux, macOS and Windows, MSYS2's CLANG64 environment on Windows, and on Debian or Ubuntu Clang, LLD and the mingw-w64-x86-64-dev package, whose import libraries a link names. A program needs kernel32's import library alone, which each of those gives.

Microsoft's tools are not shut out. The objects are the COFF they link, the emitted code calls only through import thunks, and no CRT object is named. Supporting them takes three things: the assembly assembled by Clang under --target=x86_64-pc-windows-msvc, or by clang-cl, since Microsoft's ml64 reads MASM syntax and not this one, so either a Clang beside the Microsoft linker or a MASM spelling of the x86-64 backend's output; the link as link.exe or lld-link takes it, /ENTRY:_landin_start /SUBSYSTEM:CONSOLE /STACK:8388608 /NODEFAULTLIB with kernel32.lib and each linker.library as NAME.lib searched by /LIBPATH:, where the driver here passes GNU-style options; and Microsoft's import libraries, from the Windows SDK. The toolchain package already names its options per target, so this is a second Windows link policy chosen by --toolchain.

The alternatives: GNU binutils for MinGW, which reads the same assembly but has no arm64 Windows target for the arm64 item to follow and writes no PDB for the debugging item; and Microsoft's linker as the default, which needs Microsoft's import libraries, proprietary and installed with the SDK, and an assembler of another syntax.

Pinned by toolchain/a Windows link has no C runtime, which holds the driver's name and the link line, and every Windows executable the gate's windows-emit job links.

Amended by D2387 and D2388. The policy covers windows-arm64 too, under aarch64-pc-windows-msvc, and refine names link.exe with -fuse-ld=link rather than leaving the linker to Clang's default.

From [1550], D2189.

The discrepancy: D2189 said what supporting Microsoft's toolchain takes, a second Windows link policy chosen by --toolchain, but not which name chooses it, which assembler reads the GNU syntax the backend writes, or how a refine that runs on Linux and macOS is held to a linker that runs only on Windows.

Chosen: a --toolchain driver whose file name, with its directory and any .exe set aside and case ignored, holds -windows-msvc selects Microsoft's link, as Clang's own name for its MSVC target, x86_64-pc-windows-msvc-clang, does. refine passes such a driver --target=x86_64-pc-windows-msvc as well, so a link or copy of any Clang under that name serves. Clang's integrated assembler reads the assembly the backend writes for llvm-mingw, unchanged: the code calls only through import thunks, holds its own TLS directory and names no CRT object (D2189). The link is -nostdlib with /ENTRY:_landin_start /SUBSYSTEM:CONSOLE /STACK:8388608 /NODEFAULTLIB /OPT:REF /INCREMENTAL:NO /Brepro, and -LDIR and -lNAME, which Clang hands the linker as /LIBPATH:DIR and NAME.lib. The linker is Clang's default for the target, Visual Studio's link.exe, which Clang finds with the Windows SDK's import libraries; --linker=lld passes -fuse-ld=lld, which runs LLVM's lld-link against the import libraries the LIB variable names. /Brepro keeps the time out of the image, so two links of one assembly are the same bytes, as llvm-mingw's are. Visual Studio's linker folds the image's thread-storage template into .rdata and counts each SECREL32 offset from the template's .tls contribution, which it drops when the contribution is empty, counting from .rdata's start instead; so the .tls start marker holds one byte, as the C runtime's _tls_start does, under both linkers. Those libraries are where Clang and the linker find them and not where -print-file-name answers, so under this link refine asks the driver for no library, and a failed link's own text stands where L0509 would name a missing library. No other name selects the policy: llvm-mingw stays the default and the only toolchain a Windows build needs. The policy covers x86-64; arm64 with Microsoft's tools waits for the arm64 target (since D2387, it covers both).

refine runs on Linux and macOS and Microsoft's linker on Windows, so the gate splits the two. Its windows-emit job gives refine a recording driver under the selecting name, which keeps each assembly and the command refine chose, and its windows-microsoft job runs each command with the runner's Clang, requires that link.exe ran the link, and holds every program to its fixture as windows-runtime does.

The alternatives: a MASM spelling of the backend's output for ml64, a second assembly syntax for one toolchain where Clang reads the first; clang-cl, whose MSVC-style options would be a third dialect of the link line where the Clang driver takes the GNU-style one refine already spells; an option of its own beside --toolchain, a second way to name what the driver's name already says; and a gate that links with lld-link on Linux against an SDK fetched there, which tests LLVM's linker and not Microsoft's and copies proprietary libraries onto a Linux runner.

A program built with --debug=full gets its PDB from /DEBUG /PDB:NAME.pdb /PDBALTPATH:%_PDB%, D2289's in the linker's spelling; the gate's debugger sessions run over the default link alone.

Pinned by toolchain/a Microsoft driver selects Microsoft's link, driver/Microsoft's link leaves the search to its linker, and the corpus the gate's windows-microsoft job links and runs (compiler/tests/windows/README.md).

From D2327 and D2348.

The discrepancy: D2327 covered x86-64 and passed every Microsoft link --target=x86_64-pc-windows-msvc, and its install advice named that target, so a --toolchain named for arm64's MSVC target would have assembled arm64 code for x86-64.

Chosen: the policy is the target's, as --toolchain already is: a driver whose name holds -windows-msvc selects Microsoft's link on either Windows target, and refine passes the target's own Microsoft triple, the machine of its llvm-mingw triple followed by -pc-windows-msvc: x86_64-pc-windows-msvc for windows-x86-64 and aarch64-pc-windows-msvc for windows-arm64. The install advice names the same triple. Everything else is D2327's: the same options, Clang's integrated assembler over the assembly llvm-mingw takes, the one-byte .tls start marker the arm64 backend writes as x86-64's does, and the Windows SDK's import libraries, here its arm64 ones. Microsoft's tools are used on a Windows host only; a Windows image built on Linux takes llvm-mingw. The gate's windows-arm64-emit job records the arm64 link commands as windows-emit does x86-64's, and windows-arm64-microsoft runs them on GitHub's windows-11-arm runner, requiring link.exe, and holds every program to its fixture.

The alternatives: a selection per host, which would make a cross build differ from a native one; armasm64 and a second assembly spelling, where Clang reads the first; and a separate option naming the architecture, which the target already names.

Pinned by toolchain/a Microsoft driver selects Microsoft's link's arm64 checks, scripts/tests/test_windows_lane.py's recorder name, and the corpus the gate's windows-arm64-microsoft job links and runs.

From D2327.

The discrepancy: D2327 left the linker to the Clang driver's default for the MSVC target, which it took to be Visual Studio's link.exe. A Clang's default linker is its build's choice: LLVM's release for arm64 Windows, the Clang on GitHub's windows-11-arm runner (22.1.8), runs lld-link by default, so the selection of Microsoft's toolchain would have linked with LLVM's.

Chosen: under Microsoft's link refine passes -fuse-ld=link when no --linker is given, which every Clang for the MSVC target reads as Visual Studio's link.exe, found through the Visual Studio installation; --linker=lld still passes -fuse-ld=lld, lld-link. The link command says which linker it runs, whatever Clang a user has.

The alternatives: leaving the default, which makes the linker depend on how the Clang was built; and the gate passing -fuse-ld=link itself, which would pin the runner's behaviour and leave a user's link to chance.

Pinned by toolchain/a Microsoft driver selects Microsoft's link, whose link commands end in -fuse-ld=link, and the gate's windows-microsoft and windows-arm64-microsoft jobs, which require link.exe; probe run 45399587160 on the windows-11-arm runner showed the default reaching lld-link.

Amended by D2469. A compiler built on FreeBSD arm64 defaults to freebsd-arm64.

From D257 and D364.

The discrepancy: D257 gives a build that names no target the compiler's own host, and listed the hosts a description covers as x86-64 Linux, arm64 Linux and arm64 Darwin, so a refine built on FreeBSD would have refused every build without --target=freebsd-x86-64. D364 gave FreeBSD its triplet's Clang, x86_64-unknown-freebsd14.4-clang, the name a Linux host's cross driver has, which a FreeBSD installation does not.

Chosen: a compiler GNAT built for a triplet whose machine is x86_64 and whose system holds -freebsd, as x86_64-unknown-freebsd14.4 does, defaults to freebsd-x86-64; FreeBSD's release number, like Darwin's, says nothing about which description applies. For its own host's target the link tries the triplet's Clang first and then cc, which every FreeBSD installation has: the base system's Clang. A cross build from another host keeps the triplet's driver alone. cc and not gcc, which FreeBSD does not have, and since D475's -fno-integrated-as hands x86-64's GNU assembly to as, binutils' as assembles it; with none installed L0500's advice says pkg install binutils. A compiler built on FreeBSD arm64 has no default yet, though its own target's link would try the same cc.

The alternatives: naming --target on FreeBSD, the cross-compilation D257 removed; clang, the same compiler under a name the base system keeps for compatibility; Clang's integrated assembler, which D475 replaced for x86-64's FreeBSD link; and asking the running machine, which D257 refuses.

Pinned by targets/names select their descriptions, driver/targets have a default and driver/linux names every distribution's driver, and the gate's freebsd-host jobs, where a refine built on FreeBSD compiles, links and runs the hosted corpus with no --target.

D2428 — The pinned GNAT for FreeBSD is built from source in a FreeBSD guest

From D2427 and compiler/ada/TOOLCHAIN.md's pin.

The discrepancy: the pin is GNAT 16.1.0 and GPRbuild 26.0.0, and GNAT-FSF-builds publishes neither for FreeBSD; FreeBSD's packages carry GNAT 12 to 15 and a GPRbuild that moves with the ports. Upstream GCC 16.1.0 does not build on FreeBSD unpatched, and GPRbuild 26.0.0 builds with neither GNAT 16, which refuses one of its units, nor gnat14, which lacks a unit it uses.

Chosen: environments/freebsd/gnat.py builds both in a fresh guest from the locked release image: GCC 16.1.0 with FreeBSD ports' lang/gcc16 patches at a pinned ports commit, configured with binutils as the ports configure it, built once by the gnat14 package rather than bootstrapped; then GPRbuild 26.0.0, XML/Ada and the knowledge base of the same tag, by GPRbuild's own bootstrap script with the new GNAT and GPRbuild's next commit, 6421e350274b, which GNAT 16 needs. Every source is checked against environments/pins.sh. The archive is cached under a digest of the sources, the patches, the recipe and the image, so a guest that builds refine unpacks it at /opt/landin; the gate's freebsd-toolchain job restores or builds it, and freebsd-toolchain-main does on every push to main, whose pass is reused, so main's cache, which every branch reads, holds it. The release workflow's FreeBSD archive is packaged in such a guest, and its refine runs with the toolchain moved away.

The alternatives: a package GNAT, which is not the pinned version; a three-stage bootstrap, three times the time for a check the pinned version's own release made; building through the ports framework, which moves with the ports tree; GPRbuild built by gnat15, a third compiler in the recipe; and building in every job, twenty minutes each on a hosted runner.

Pinned by environments/pins.sh's FreeBSD sources and ports commit, the gate's freebsd-toolchain and freebsd-host-release jobs, and compiler/ada/TOOLCHAIN.md's FreeBSD record.

D2429 — The test program's native FreeBSD lane is Linux's, with FreeBSD's driver, probe and endpoints

From D2427 and D2428.

The discrepancy: the test program ran the hosted corpus natively only on Linux, and its lane assumed Linux in four places: it linked C with the target's triplet driver alone, confirmed a level from /proc/cpuinfo, held a level's image to the GNU property note only a Linux link writes, and passed -no-pie, which FreeBSD's Clang refuses as unused under -Werror. Two runtime fixtures open Linux's fault endpoints, a path under /sys and /dev/full. Its allocator meter read glibc's mallinfo2, and FreeBSD's jemalloc counts a block in a thread's cache as still held.

Chosen: the native lane's C driver is the first of D2427's candidates the host can start, as refine's own link takes. On a FreeBSD lane the level is confirmed by compiler/tests/freebsd/processor.c, the probe the emitted lane runs in its guest, which asks CPUID and XCR0 on x86-64 and the auxiliary vector on arm64, and the image's note and -no-pie stay Linux's. The two fixtures run with the emitted lane's fault endpoints, compiler/tests/freebsd/io_endpoints.c, built by the lane's driver and preloaded, so every other path reaches FreeBSD's libc and the fixtures' oracles are unchanged. The meter flushes the calling thread's jemalloc cache and reads stats.allocated.

The alternatives: --toolchain=cc on FreeBSD's command line, a workaround for what refine already does; skipping the level and fault fixtures on FreeBSD, which the emitted lane covers but the compiler's own host would not; and turning jemalloc's cache off in the test processes, as the Linux launcher does glibc's, which measures another allocator than the one refine runs with.

Pinned by the gate's freebsd-host-1 and freebsd-host-2 jobs, the complete local native suite on FreeBSD x86-64, and the Linux shards, which run the same cases unchanged.

D2469 — A FreeBSD arm64 compiler builds for its own host

From D257 and D2427.

The discrepancy: D2427 gave a compiler built on FreeBSD x86-64 its own host's target and left one built on FreeBSD arm64 with none, so a refine built there refused every build without --target=freebsd-arm64, though its link already tried the base system's cc for that target.

Chosen: a compiler GNAT built for a triplet whose machine is aarch64 and whose system holds -freebsd, as aarch64-unknown-freebsd14.4 does, defaults to freebsd-arm64. Its own target links with the triplet's Clang and then cc, D2427's candidates, and the base system's Clang assembles arm64's assembly itself, so no binutils as is needed, though binutils' ld is the one the pinned GNAT links refine with (D2428). A FreeBSD build for any other machine has no default.

The alternatives: naming --target there, the cross-compilation D257 removed; and waiting for a gate job, which GitHub's arm64 runners cannot give a FreeBSD guest under KVM (D2470).

Pinned by targets/names select their descriptions, driver/targets have a default, compiler/tests/test_default_target.py and the named run of the FreeBSD host lane in an arm64 guest, where a refine built on FreeBSD arm64 compiles, links and runs the hosted corpus with no --target.

D2470 — FreeBSD arm64's host evidence is a named run in a guest under KVM

From D2428 and the maintainer's rule that CI stays off his machines.

The discrepancy: D2428's gnat.py and host.py boot their own guest, and an arm64 one boots under emulation wherever the host is not arm64 with KVM, which no GitHub-hosted runner is: building the pinned GCC there outlasts a job. The arm64 machines that do have KVM are the maintainer's, which no gate job may use.

Chosen: gnat.py takes --runner-ssh, as host.py already did, and builds the toolchain in an existing guest booted fresh from the same locked image; the archive's digest is the same inputs' either way. refine on FreeBSD arm64 is held by a named run recorded with the work that changes it, the toolchain built and the complete local native suite and the release leg run by host.py in such a guest under KVM on an arm64 host, rather than by a gate job; the gate keeps FreeBSD arm64's emitted lanes. How a release gets the arm64 archive is a question the maintainer holds; until it is answered no release publishes it.

The alternatives: a gate job under emulation, six hours or more for the toolchain alone; a self-hosted arm64 runner, which the maintainer's rule refuses; and FreeBSD's own aarch64 build of GCC through the ports, which is not the pinned version (D2428).

Pinned by that named run and compiler/tests/freebsd/README.md's recipe.

D2190 — The Windows x64 convention is planned beside System V's

From [1550] and [1700].

The discrepancy: D204's C plan is System V's: two register banks assigned independently, eightbytes classified, MEMORY records copied onto the stack. The Windows x64 convention assigns by position, passes no record in two registers and preserves registers System V does not.

Chosen: Landin.Backend.C_ABI plans Windows x64 in System V's terms. The Nth argument takes RCX, RDX, R8 or R9, or XMM0 to XMM3 when it is a float, whichever bank its position names; each later one an eight-byte slot above the 32-byte shadow area every call reserves. A record of one, two, four or eight bytes travels as one integer, floats included; any other is copied by the caller into its outgoing area and passed by address, and returned through a hidden first pointer, which RAX gives back. A variadic call's float goes in the integer register of its position too. The C model is LLP64: c_long and c_ulong are 32 bits and compiler.c_win64_llp64 is the target's fact. A routine C calls keeps RDI, RSI and XMM6 to XMM15 below its frame and restores them, since the native convention it calls preserves none of them. Landin's native convention is unchanged.

The alternatives: a second backend for the convention, which would split instruction selection for a difference of argument placement alone; and changing the native convention to Windows', which would make every native call on Windows unlike the same call elsewhere for nothing a Landin caller can see.

Pinned by backend plans/Windows x64 positions, runtime/assembly-naked-labels, whose naked routine reads its C argument from RCX on Windows, and runtime/target-hosted-system-facts.

D2191 — A Windows routine's unwind table describes its frame record

From [1550].

The discrepancy: Windows walks a stack by each routine's unwind table, which the image carries; a routine without one is taken to be a leaf that moved no stack pointer, so a debugger, a crash report or the exception dispatcher misreads every frame above it.

Chosen: each routine with a frame is a .seh_proc whose prologue pushes RBP and sets it as the frame register, and whose prologue ends there; whatever the routine reserves or saves after that, the frame register recovers the caller's stack pointer. Its teardown restores the stack pointer by LEA from RBP, an epilogue form the unwinder reads. The table does not describe the callee-saved registers the routine stores in its frame, since no exception unwinds through a Landin frame to need them back. A naked routine has no table, as it has no frame.

The alternatives: describing each saved register, which needs the saves before the end of the prologue and the frame register at an offset the frame does not use, for an unwinding no Landin program does; and DWARF call frames, which Windows' own unwinder does not read.

Pinned by every Windows executable the corpus runs, whose failed checks end through the exception dispatcher, which walks these tables.

D2192 — A failed check ends a Windows program with the trap's exception

From [1620] and D232, D361 and D491.

The discrepancy: a failed check with no selected handler executes the trap instruction, after D361's report. On Windows the instruction raises an exception, which the dispatcher handles only on a stack within the bounds the thread's TEB records; D491's report runs on a stack of its own in a program that prepares one, outside those bounds, where the dispatch failed as an access violation instead.

Chosen: the trap instruction stays, and with no handler ends the process with STATUS_ILLEGAL_INSTRUCTION, 0xC000001D, its exit code. The report, moving to its own stack, first makes that stack the thread's in the TEB, its base at GS:8 and its limit at GS:16, so the trap after it dispatches as on the stack the program started on. The Windows lane requires that exit code of every fixture that traps and sets the error mode its programs inherit, so Windows Error Reporting neither opens a dialog nor waits on one.

The alternatives: ending the process with ExitProcess after the report, which a debugger would not stop at; and leaving the TEB alone, under which a trap after a prepared stack's report ends with another code.

Pinned by runtime/fibre-stack-past-limit-traps and every fixture with traps: yes the Windows corpus runs.

D2193 — A Windows program has one thread until Windows' threads are written

Superseded by D2274. Windows' threads and their storage are written; what follows is history.

From [1590] and D496.

The discrepancy: a thread variable is ELF thread storage on every other hosted target, and D471's stack limit is one; Windows' thread storage is another mechanism, and no Windows thread can be started yet.

Chosen: on Windows a thread variable is module storage, as on a target with no threads, and the stack limit's cell is too, until Windows' threads and their storage are written over the Windows API.

The alternatives: Windows' implicit thread storage through _tls_index and the TEB's slot array now, which only a second thread would test.

Pinned by the fibre fixtures of the Windows corpus, whose prepared stacks keep the limit in that cell.

D2287 — A Windows program's CodeView presents it as C

The tour said nothing; D1291 and the DWARF description present a program through C's display rules, DW_LANG_C89.

Chosen: with --debug=full, a Windows object carries CodeView, .debug$S and .debug$T, and names its language as C, as the DWARF description does. CodeView has no base type of a program's own naming, so a scalar is C's: i32 is int, u8 unsigned char, usize unsigned __int64 and bool bool. A struct is a structure of its fields at their offsets; an atom set an enumeration of its atoms with this program's codes (D423); a variant a union of its zero-based tag and each case's payload at its offsets, whose members all begin at its start, since a structure's may not overlap; a slice a structure of its element pointer and length; and a packed type its carrier, as DWARF writes it. A member, an element or a referent names a structure or union by its forward reference, as Microsoft's and LLVM's compilers write it, and the definition carries a unique name the debugger completes it from. A routine is a procedure with its parameters and locals in lexical blocks; a block covers its first range to its last in layout order, since CodeView gives a block one range. A variable's place is the one DWARF describes, from the same availability, as one S_DEFRANGE record for each of its ranges: a register, memory at a register's address and an offset, or, for a binding whose storage holds its address in the frame, that storage as a reference to its type, which CodeView has no other way to say. A scalar replacement's pieces are subfields of the whole. A part of a module binding a source alias names, or one reached through an address held in memory, has no place a local can name and is shown as optimized out. A module binding is a global datum, and a thread variable a thread datum at its offset in each thread's storage.

The alternatives: DWARF in the PE image, which MinGW's tools read and Microsoft's do not, and which links no PDB (D2289); a language code of Landin's own, which no debugger knows; and named base types through S_UDT aliases, which a debugger shows only where a type is looked up by name.

Pinned by compiler/tests/windows/debug.py's LLDB sessions over compiler/tests/freebsd/debug.ldn at the four profiles, which the gate's windows-debugger job runs on Windows.

D2288 — A COFF object's lines are CodeView's, and name each address once

The tour said nothing; D192 makes source matching exact.

Chosen: a Windows routine's lines are the assembler's .cv_loc directives under its own function identity, with no columns, as Microsoft's tools write none. CodeView keeps every line its assembly names at an address, where DWARF's line program keeps the last, and LLDB reads the first; so a COFF object names the line of the value whose code comes next, and none for a value that emits no code. A COFF object has no DWARF call frame information: Windows' unwind tables describe its frames (D2191).

The alternatives: every value's line, as the DWARF objects write them, under which a breakpoint on a line whose first value has no code stopped at the next value's address, past where its locals were described; and keeping the call frame information, which nothing on Windows reads.

Pinned by compiler/tests/windows/debug.py's session at speed, whose breakpoint and local values failed under the first.

D2289 — The PDB is linked beside the image, which names it by its file name alone

The tour said nothing.

Chosen: with --debug=full, LLD links the objects' CodeView into a PDB beside the image, program.pdb for program.exe or for program, and the image's debug directory names it by its file name alone, as Microsoft's /PDBALTPATH:%_PDB% does: a debugger looks for it beside the image wherever the image was built or copied, and the image holds no path of the build host's. The PDB is a debug artifact of the build's publication, as a dSYM is.

The alternatives: the PDB's full path, which names the build's staging directory and every host's own; and DWARF in the image, which the alternatives of D2287 decline.

Pinned by toolchain/a Windows link has no C runtime, and the gate's windows-debugger job, whose images it runs on another host than the one they were linked on.

D2290 — CodeView describes no inlined copy yet

The tour said nothing; D339 describes each inlined copy to DWARF.

Chosen: a Windows routine's CodeView describes its own parameters, locals and blocks; an inlined copy's lines belong to the routine it was copied into, and the copy's own variables are not described. The register records the inline sites CodeView would need.

The alternatives: writing S_INLINESITE records now, whose line directives the backend would name by copy, for a Windows session that does not yet stop in a copy.

Pinned by the sessions of compiler/tests/windows/debug.py, which call through function values so that no stop is in a copy.

D2291 — A Windows image carries its build's digest in a .landin section

The tour said nothing; D1292 holds a source table to the build it was written with.

Chosen: a Windows image carries the digest an ELF program carries as its GNU build ID in a read-only section named .landin, since a PE section's name has eight bytes at most and LLD gives a Windows image no GNU build ID; LLD keeps a section no COMDAT groups. refine site, and refine dap with it, read a PE image's identity from that section.

The alternatives: the PDB's GUID, which LLD derives from the PDB and which a build without --debug=full has none of; and .landin_id, which a PE image truncates.

Pinned by compiler/tests/dap/session.py's panic stop on Windows, which resolves a site through the program's table.

D2292 — The Windows debugger is LLVM's LLDB, and refine dap relays its adapter

Amended by D2351. refine dap speaks to a Windows program's adapter over a loopback connection; the process group below stands.

The tour said nothing; the roadmap named "the Windows debugger" a backend of D1523's adapter.

Chosen: the Windows debugger is LLDB as llvm-mingw's release for Windows ships it, free like the rest of the Windows toolchain (D2189): lldb.exe, which reads a PDB with LLVM's own reader, and lldb-dap.exe, its adapter, which refine dap relays as D1523 relays lldb-dap. A program whose header is a PE image's takes LLDB, and the adapter's usual name is lldb-dap.exe where the search path has it. refine runs on Linux and macOS, so on a Windows machine it runs in WSL, where WSL starts a Windows program and puts Windows' search path after its own: the adapter then writes the program's and the working directory's paths, and the library's, as Windows names them, and reads a Windows path back as WSL mounts it. The adapter shares refine dap's process group, where D1523's debuggers have one of their own: a Windows program WSL starts from a process group other than the terminal's foreground one stalls, which the gate met in about half its runs and in every one of six where a client started the adapter in a group of its own. A program compiled on a POSIX host records POSIX paths, which a Windows debugger puts on a drive of its own choosing, so the adapter gives it a breakpoint's source as the recorded path less its root, which LLDB matches as the end of that path, and reads a path the debugger names on a drive back as this host's when this host has it. The gate runs LLDB's batch sessions natively on a Windows runner and refine dap's session from WSL on the same runner. Microsoft's debuggers read the same PDB; the gate runs none of them.

The alternatives: Microsoft's WinDbg or Visual Studio debugger, proprietary and installed with Microsoft's tools; GDB, which reads DWARF and no PDB; a backend of the adapter's own over the Windows debugging API, a second debugger to keep beside LLDB's; and refine dap on Linux reaching lldb-server on Windows, which two of the gate's hosted runners cannot reach each other to run.

Pinned by the dap suite's the debugger a program takes, a Windows program maps its paths and LLDB's adapter is relayed, and compiler/tests/windows/debug.py's sessions in the gate's windows-debugger job.

D2347 — Windows arm64 is a hosted target with Microsoft's variant of AAPCS64

From [1550], [1700], D2188 and D2190.

The discrepancy: the roadmap's Windows phase adds arm64 beside x86-64. Windows on arm64 calls C by AAPCS64 with Microsoft's differences, which are neither the standard convention Linux and FreeBSD use nor Apple's.

Chosen: windows-arm64 is D2188's target on arm64: a little-endian description with 64-bit pointers, a 16-byte stack and frame pointers, the arm64 feature levels, kernel32 and no C runtime, platform/windows linked into every program, compiler.os windows. Its C convention is AAPCS64 with Microsoft's differences, compiler.c_windows_arm64_llp64: the model is LLP64, so c_long and c_ulong are 32 bits, plain char is signed, x18 is the TEB's and never a location's, which it never was on arm64, and a call to a variadic signature passes every argument, named or not, as integers: a float in the integer register or stack slot of its position, a homogeneous floating aggregate as any other composite, by reference past sixteen bytes. A call to a fixed signature is the standard convention's. The instruction selection, register allocation and frames are the other arm64 targets'; only the text around them is Windows' (D2349, D2350).

The alternatives: describing the target with the standard AAPCS64's fact, under which c_long would be 64 bits and plain char unsigned, neither of which a Windows C compiler agrees with; and a fact per difference, which a program would have to combine to say what one names.

Pinned by targets/Windows arm64 variadic transport, runtime/target-hosted-system-facts and the corpus the gate's windows-arm64-runtime job runs.

From [1550] and D2189.

The discrepancy: D2189's chain is free on every host for x86-64. For arm64 the driver and the assembler are the same Clang and LLD, but no Linux distribution's package or nixpkgs' cache holds MinGW-w64's arm64 import libraries.

Chosen: the driver is aarch64-w64-mingw32-clang, llvm-mingw's name, a Clang with LLD and those libraries serving as well under --toolchain. A Linux host takes the import libraries from the aarch64-w64-mingw32 directory of the llvm-mingw release environments/pins.sh pins, checked against its sha256: the development shell's driver and the gate's emission job both do. The corpus and the debugger sessions run natively on GitHub's windows-11-arm runner, which this repository's plan offers, with llvm-mingw's arm64 LLDB (D2292). refine dap runs there in WSL 1, in Ubuntu's arm64 base system, imported from its pinned archive, since the WSL distribution the runner's setup action installs is x86-64's, which WSL 1 on arm64 does not run.

The alternatives: building MinGW-w64 for arm64 from source in the development shell, a cross compiler's build for a set of import libraries; the import libraries checked into the repository, a binary copy of what a pinned release already gives; and emulating Windows arm64 on Linux, for which no free emulator runs Windows programs, Wine on arm64 needing an arm64 host.

Pinned by the gate's windows-arm64-emit, windows-arm64-runtime and windows-arm64-debugger jobs, and toolchain/a Windows link has no C runtime, whose driver names the target's triplet.

D2349 — A Windows arm64 routine's unwind table describes its frame record, and its CodeView names ARM64's registers

From [1550], D2191 and D2287.

The discrepancy: D2191 describes an x86-64 frame for Windows' unwinder and D2287 an x86-64 frame for CodeView. Windows on arm64 walks a stack by ARM64 unwind codes, and CodeView names ARM64's registers by numbers of their own.

Chosen: as D2191, each routine with a frame record is a .seh_proc whose prologue pushes x29 and x30 with .seh_save_fplr_x 16, points x29 at them with .seh_set_fp and ends there; whatever the routine reserves or saves after that, x29 recovers the caller's stack pointer, and the table describes no saved register. The trap report and the stack switch routine open the same way; the stack's start routine and a naked routine have no table. With --debug=full the object carries D2287's CodeView with ARM64's machine, CV_CFL_ARM64, x29 as the frame register, x0 to x28 as CodeView's CV_ARM64_X0 onwards and a float register's value as its d register's, and no DWARF call frame information.

The alternatives: describing every saved register, which needs the saves inside the prologue, for an unwinding no Landin program does; packed unwind data, which fixes the frame's layout and would have the backend lay its frames out for the unwinder's sake.

Pinned by every Windows arm64 executable the corpus runs, whose failed checks end through the exception dispatcher, which walks these tables, and compiler/tests/windows/debug.py --target=windows-arm64's sessions in the gate's windows-arm64-debugger job.

D2350 — Windows arm64 reaches its thread's storage and stack bounds through x18

From D2192 and D2274.

The discrepancy: D2274 reaches a thread's storage on x86-64 through the TEB at GS, and D2192 moves a report's stack into the TEB's bounds there. On arm64 the TEB is x18's.

Chosen: a thread's block of the image's implicit storage is the slot _tls_index names in the array the TEB's ThreadLocalStoragePointer, the word at x18 plus 0x58, points to, and a datum is at its section-relative offset from that base, :secrel_hi12: and :secrel_lo12:; D471's stack limit cell is such a datum. The image carries D2274's TLS directory, whose .tls marker holds a byte so that a linker keeps its contribution. A failed check executes brk #1, which ends a process with STATUS_ILLEGAL_INSTRUCTION, 0xC000001D, as ud2 does on x86-64; the report writes its line through GetStdHandle and WriteFile, and on its own stack first makes that stack the thread's at x18 plus 8 and plus 16.

The alternatives: brk #0xf000, Windows' breakpoint, which ends a process with STATUS_BREAKPOINT and would differ from x86-64's status for the same failure; and udf, which ends with the same status as brk #1 but would differ from the trap every other arm64 target executes.

Pinned by runtime/fibre-stack-past-limit-traps, the threads corpus and every fixture with traps: yes the gate's windows-arm64-runtime job runs.

D2351 — refine dap speaks to a Windows adapter over a loopback connection

From D1523 and D2292.

The discrepancy: D2292 relays lldb-dap.exe over its standard streams, as D1523 relays every adapter. Run from WSL, the adapter deadlocked on the streams WSL gives it in about half of all sessions, x86-64's and arm64's: having queued launch, it wrote nothing until its input closed, then failed every write. It did so with or without refine dap between it and the client, after LLDB's batch sessions or alone, under setsid or a terminal of its own and with a delayed launch; the reading is that Windows serialises synchronous I/O on one file object, so a read pending on the adapter's input holds its write of the answer.

Chosen: for a Windows program's LLDB, refine dap takes a loopback port nothing listens on, starts the adapter with --connection listen://127.0.0.1:PORT, LLVM's own option, with its standard streams on /dev/null, connects within twenty seconds, and relays over the connection what it relayed over the streams. A connection not made ends the adapter and the request fails as a debugger that did not start does. The adapter keeps refine dap's process group (D2292). Every other debugger keeps its standard streams.

The alternatives: re-running a stalled session, which the gate did; a different pipe for each stream, which WSL's interop decides and not refine dap; and a Unix socket, which a Windows program run from WSL 1 cannot reach.

Pinned by the dap suite's a Windows program maps its paths, which holds the adapter to a connection, and the gate's windows-debugger and windows-arm64-debugger jobs; on the probe runs 45364098012 to 45366912659 four of six sessions over the streams stalled and none of six over a connection.

D2269 — The Windows entry splits the command line as Microsoft's C runtime does

From [1650], D1281 and D2188.

The discrepancy: D2188's entry called main with no arguments and no environment. Windows gives a process one command line, which the program splits itself, and an environment block of 16-bit units; a POSIX system gives both as vectors, which platform/posix's argument root keeps.

Chosen: _landin_start reads GetCommandLineW and GetEnvironmentStringsW, converts each argument and entry to a host string (D2268) in storage it takes from VirtualAlloc for the process's life, and gives main the C vectors it built, as C's runtime would. The command line is split by the rules Microsoft's C runtime follows and every Windows parent quotes for: the program's name to the next blank or between its quotes with no escapes; after it blanks separate arguments, quotes begin and end a quoted run, "" in a run is one quote, and backslashes are literal except before a quote, where each pair is one backslash and an odd one makes the quote literal. The entry keeps the vectors as the root itself and defines no _landin_host_initialize_arguments: the module is linked into every Windows program, so a definition there would collide with a program's own, which the hosted entry calls as on every system. platform/windows gives arguments, argument, environment and variable over the root as platform/posix does. A variable's name runs to the first = after its first unit, so the hidden =C: entries Windows keeps are named so; variable_named compares names without regard to ASCII case, as Windows does.

The alternatives: CommandLineToArgvW, which is shell32's, loads a second library into every program, and splits the program's name by another rule; and converting lazily on first use, which would need a lock once programs have threads, for storage every program that reads an argument needs anyway.

Pinned by runtime/library-system-arguments, runtime/example-sum-arguments, runtime/hosted-system-alone and every fixture with run_args or run_files on the Windows lane, runtime/windows-run-programs, whose child receives quoted arguments, and positive/hosted-initializer-normalized, whose own initializer the determinism manifest emits for windows-x86-64.

D2270 — On Windows a hosted file is a handle and a failure a Win32 code

From D476, D503 and D2188.

The discrepancy: hosted/system was written over platform/posix: a file is a descriptor, last_errno keeps an errno, and each concept's atoms are mapped from errnos.

Chosen: hosted/system's Windows arm is written over platform/windows directly. An io.file is the handle's word, the three standard streams GetStdHandle's; handle_of and file_of convert, beside socket_of and is_socket, whose mark is bit 62, and is_pipe, bit 61, which start sets on the parent's end of a child's pipe. A failure keeps the Win32 or Windows Sockets code in the same last-error cell last_errno reads, and maps to the concepts' atoms as the POSIX arm maps errnos: ERROR_FILE_NOT_FOUND, ERROR_PATH_NOT_FOUND, a missing drive or ERROR_DIRECTORY to mem.not_found, denied access, sharing and lock violations and write protection to io.no_access. An open to read takes a directory with backup semantics, asks what it opened, and fails it is_a_directory, as the POSIX arm does; an open to write that is refused asks whether the path is a directory. Every handle is opened sharing reading, writing and deletion, as a POSIX file is, and none is inherited. same_file compares volume and file index; a directory is listed with FindFirstFileW over the path the directory's own handle resolves to, which entry_size asks with GetFileAttributesExW; read_at and write_at save and restore the handle's position around a call at an offset, which on a handle that does not overlap moves it. system.reason is failure.reason alone on Windows, whose codes have no atoms.

The alternatives: a table of Win32 codes as atoms beside posix.errno, which a program over the portable concepts never meets and which would grow with every call; and NtQueryDirectoryFile for a listing relative to its handle, which is ntdll's and not promised.

Pinned by runtime/hosted-system-alone, runtime/directory-listing, runtime/directory-larger-than-buffer, runtime/directory-missing-path, whose missing parent keeps ERROR_PATH_NOT_FOUND, 3, runtime/buffered-writer-closed-output and runtime/word-count-closed-input, which keep ERROR_INVALID_HANDLE, 6, and the rest of the hosted corpus on the Windows lane.

D2271 — A Windows child gets exactly its three streams, piped through named pipes

From D479 and D2270.

The discrepancy: io.programs names a program by path, never looked up, gives it exactly the arguments and environment its parent builds and no other open file, and has a provider read whichever of a child's output and errors has something. Windows starts a program from one command line, inherits every inheritable handle when it inherits any, and has no poll for anonymous pipes.

Chosen: start calls CreateProcessW with the path as the application, which is not searched for and given no extension, a command line of the path and the arguments quoted as D2269 splits them, and an environment block of exactly the given variables. The child's three handles are inheritable copies, a NUL device for a discarded stream, a duplicate of the parent's for an inherited one, and the child's end of a named pipe for a piped one, and the attribute list's PROC_THREAD_ATTRIBUTE_HANDLE_LIST names them as the only handles it inherits. The parent's end of each pipe is overlapped and not inherited; a provider reads and writes it with an overlapped call and waits as its own waiting does, and hosted/blocking learns which of two pipes has something by a read of no bytes on each, which ends when its pipe has data or ends, and withdraws the other. A child's exit code is its whole 32 bits as exited; Windows ends a process with a code and no signal, so last_signal is zero.

The alternatives: anonymous pipes, which overlap neither for hosted/blocking's choice between two nor for hosted/events' port; PeekNamedPipe in a loop, which polls; and inheriting by bInheritHandles alone, under which a child started on one thread inherits another thread's pipes.

Pinned by runtime/windows-run-programs.

D2272 — The blocking provider waits a socket's limit out itself on Windows

From D580 and D2270.

The discrepancy: set_timeouts limits a receive, an accept and a send. Windows Sockets' SO_RCVTIMEO limits a receive but not an accept, as on Darwin, and leaves a socket whose receive it ended in a state no later call may rely on; the fixture that pins D580 receives on the socket after its limit.

Chosen: the blocking provider keeps the limits in the socket's options and, before an accept, a receive or a send on a socket that has one, waits with select until it is ready or the limit has passed on the monotonic clock, never early, failing timed_out with WSAETIMEDOUT. The call then finds the socket ready. A connection with a limit is begun without waiting and watched the same way. A socket is made by WSASocketW overlapped-capable and not inherited, WSAStartup called once before the first; an IPv6 socket takes IPv6 alone, and a listener is bound with no option, since Windows lets one take an address its earlier connections hold and refuses one another socket listens at without being asked.

The alternatives: SO_RCVTIMEO alone, which does not cover accept and leaves the socket indeterminate; and SO_REUSEADDR, which on Windows lets a second listener take the address.

Pinned by runtime/network-receive-timeout, runtime/network-listen-beside-accepted and runtime/network-echo on the Windows lane.

D2273 — The Windows lane carries a fixture's files and runs each outcome apart

From D2188.

The discrepancy: the lane refused a fixture with run_files or stdin, since no Windows program could read one, and ran every outcome in the bundle's directory; the gate's Windows job checks nothing out.

Chosen: the bundle carries each fixture's run_files and stdin under inputs/, a program's file arguments name the copies, and its standard input is the copy; each outcome runs in a working directory of its own, which holds copies of its files too, since the profiles of one fixture run at once and a fixture may build files where it runs.

The alternatives: checking the fixtures out on the Windows runner, which Git for Windows refuses for the one fixture path with a quote.

Pinned by the lane's run of every fixture with run_files or stdin that names windows-x86-64, runtime/directory-listing among them.

D2274 — Windows thread storage is the image's implicit thread storage

From D496, D471 and D2193.

The discrepancy: D2193 kept a Windows thread variable in module storage while a Windows program had one thread. hosted/thread now starts threads on Windows, and each needs its own last-error cells and stack limit.

Chosen: a link(thread) datum, and D471's limit cell, lies in a .tls$ section, the template Windows copies for every thread. Code reaches the running thread's block in one register: the image's _tls_index, its slot in the array the TEB's ThreadLocalStoragePointer at GS:0x58 points to, and the datum's section-relative offset. No C runtime brings a TLS directory (D2188), so the backend emits _tls_used and _tls_index when the program has thread storage, and none when it has not. D471's prologue check adds the frame to the limit, since the block takes the register the ELF check computes the stack pointer less the frame in: a sum that carries traps as a difference that borrows does. A thread datum has no DWARF location on Windows, as before; CodeView describes it.

The alternatives: MSVC's form, which takes the executable's _tls_index to be zero and saves two instructions an access, which Windows does but documents nowhere; TlsAlloc and TlsGetValue, a call an access; and module storage, which a second thread breaks.

Pinned by runtime/thread-storage-holds-its-instance, runtime/thread-stack-past-limit-traps, whose worker's limit is its own, runtime/thread-creation-and-join-order-writes and the stack and fibre fixtures of the Windows corpus. D2193 is superseded.

D2275 — A Windows thread starts on a system stack and switches to its own

From D495, D502 and D2274.

The discrepancy: hosted/thread runs each thread on a stack cut from the group's backing, which a POSIX thread is given at its start; CreateThread takes no stack of the caller's.

Chosen: a thread starts on a 64 KiB stack the system reserves, and begin_thread, which POSIX threads share, switches from it to the stack cut from the backing, as a POSIX thread switches from its start area; the backing on Windows holds no start area. The thread returns to kernel32, which ends it; a join is WaitForSingleObject and CloseHandle. A refused CreateThread keeps its code in the group's handle and fails mem.out_of_memory, as POSIX keeps the errno. The lock sleeps in WaitOnAddress and wakes with WakeByAddressSingle, the same three-state lock as POSIX's over a futex, through MinGW-w64's synchronization import library.

The alternatives: running the task on the system's stack, sized by CreateThread, which drops D495's stack from the caller's backing and its limit; SRW locks, a second lock design for one system.

Pinned by runtime/thread-creation-and-join-order-writes, runtime/thread-join-first-failure, runtime/thread-runs-fibres, runtime/thread-lock-one-thread and runtime/hosted-heap-after-thread-start on the Windows lane.

D2276 — On Windows the heap grows into its reservation and copies past it

From D502 and the heap's size classes.

The discrepancy: hosted/heap maps, trims, extends and remaps through platform/posix; Windows reserves and commits address space in 64 KiB granules and has no mremap.

Chosen: a mapping reserves its length rounded to the allocation granularity and commits its length; freeing releases the reservation; a trim decommits the tail, which stays reserved; a growth in place commits the reserved pages after a mapping when VirtualQuery says they are its own and uncommitted, and a resize past them copies. The page is 4096 bytes and a size class's chunk the same 64 KiB mapping as elsewhere.

The alternatives: the process heap's HeapAlloc, a second heap with its own lock; and reserving beyond the granule for growth, which the optimization phase may measure.

Pinned by runtime/hosted-heap-provider, runtime/hosted-heap-resize and the heap fixtures of the core containers on the Windows lane.

D2277 — hosted/events waits on Windows through an I/O completion port

From D476, D480, D486 and D449.

The discrepancy: hosted/events waits for readiness through epoll or kqueue. Windows has no readiness interface it promises for files, pipes and sockets; its waiting interface is completion, which D486 already shaped every operation for.

Chosen: over makes an I/O completion port where POSIX makes its queue, and the loop's idle wait is GetQueuedCompletionStatusEx for up to sixteen packets, limited by the earliest deadline. A waiting record holds its call's OVERLAPPED; an operation on an overlapped handle, a pipe end system.start made or a socket, associates the handle with the port on its first use, issues the call with the record and parks, and the packet naming the record answers it. The system writes into the record and the caller's bytes until that packet comes, so a fibre with a call in flight never leaves before it: a close through the provider (D449) or a passed deadline cancels the call with CancelIoEx and is answered by the cancelling's packet, and a call that finished first keeps its result. A handle opened without overlapping, a file, a console or a pipe the process was given, is read and written by a plain call that holds the thread, as the POSIX arms do for a regular file. The list of waiting records, deadlines, the idler, the round and the conformances stay shared; the record, the loop's state and the operations are per system.

The alternatives: readiness built from zero-byte reads for every read, a completion underneath at one more call each; a thread per blocking call; and WaitForMultipleObjects over events, limited to 64 handles and with no deadline of its own to merge.

Pinned by runtime/events-sleep-answers-now, runtime/events-stack-past-limit-traps, runtime/fibre-same-source-any-provider, runtime/events-close-wakes-waiter and runtime/windows-events-child-wait on the Windows lane.

D2278 — hosted/events learns a Windows child's end from a job

From D479, D2271 and D2277.

The discrepancy: a waiting provider waits for a child without holding the thread. A Windows process handle is waitable, but not through a completion port.

Chosen: at a child's first wait, if it has not ended, the loop's job, made once with JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK so that a grandchild is not in it, and associated with the port, takes the child, and the child is asked again, since one that ended before it was assigned sends no message. The fibre parks with the child's ID; the job's exit message for that ID answers it, and the child is asked again before the answer is believed, so a late message about an earlier child whose ID was reused is not taken for this one's end. A child the system will not put in the job is waited for by a call that holds the thread. Reading a child with both streams open peeks at both, and when neither has anything makes a read of no bytes on each and withdraws the loser, as hosted/blocking does.

The alternatives: RegisterWaitForSingleObject, whose callback would run Landin code on a pool thread for every wait; polling the process handle on a timer.

Pinned by runtime/windows-events-child-wait.

D2279 — Windows' signals are the console's control events

From D477, D482 and D1126.

The discrepancy: signal.signals names POSIX's kinds. Windows sends a console program control events and has no signals between processes.

Chosen: interrupt is Ctrl+C and Ctrl+Break, hangup the console's closing, terminate the user's logging off and the system's shutting down, and an event's number its code; child, user1 and user2 name nothing Windows sends, and watching one fails io_failed with ERROR_NOT_SUPPORTED. Watching adds a handler with SetConsoleCtrlHandler, which the system calls on a thread of its own and which posts a packet to the port of the loop that last began watching. For a closing, a logoff or a shutdown the system ends the process once the handler returns, so the handler does not return, and the program has the system's grace to read the event and end. The handler is the process's, so a loop on a hosted/thread worker may watch, which Linux refuses (D1126). An "ignore Ctrl+C" a parent left the process is kept, as a signal ignored at exec is on POSIX.

The alternatives: Ctrl+Break as terminate; and refusing every kind on Windows, which leaves a console program no way to stop cleanly.

Pinned by runtime/windows-events-console-control and runtime/windows-events-control-in-worker.

D2280 — hosted/events' Windows network is overlapped Windows Sockets

From D580, D2272 and D2277.

The discrepancy: the POSIX arm waits for a socket's readiness and then calls; Windows Sockets' overlapped calls complete through the port.

Chosen: every socket call that may wait is issued overlapped with its record and answered by the port: WSARecv and WSASend, which io.read and io.write on a socket use too, WSARecvFrom, WSASendTo, and ConnectEx and AcceptEx, fetched with WSAIoctl and called through a routine type made from their address, so no mswsock import is named. set_timeouts keeps its limits in the socket's options, as hosted/blocking does, and each call reads its direction's back as its record's deadline; a call past it is cancelled and fails timed_out, which a receive, an accept and a datagram's receive all take, and the connection stays usable. connect_within's limit is its ConnectEx's deadline. shutdown cancels the calls in flight on the side it shuts, each failing io_failed, and close cancels every one.

The alternatives: readiness emulation by select or WSAPoll on a timer, or WSAEventSelect beside the port, which are two mechanisms and a poll; ReadFile and WriteFile on a socket, which a layered provider may not support.

Pinned by runtime/events-tcp-exchange, runtime/events-close-wakes-waiter and runtime/events-network-limits on the Windows lane.

D2281 — Windows Sockets is a module beneath platform/windows

From D2188 and D2272.

The discrepancy: refine links platform/windows into every Windows program, and a C link symbol has one declaration in a program (L0347). Windows Sockets names its calls send, recv, connect, bind and select, names a program declares for its own C code, as positive/c-packed-records declares send; with Windows Sockets in platform/windows, every such program was refused on Windows.

Chosen: Windows Sockets' declarations are the module platform/windows/sockets, which hosted/system, hosted/blocking and hosted/events import for their network and nothing else does, so a program that names none of the network's calls may declare those symbols itself. kernel32's own names are spelt as Windows spells them, ReadFile and CreateProcessW, and stay in platform/windows.

The alternatives: link names prefixed by the module, which Windows Sockets' import library does not export; and leaving the collision to the program, which no rule tells why a declaration that is its own on every other system is refused on Windows.

Pinned by positive/c-packed-records, which the determinism manifest emits for windows-x86-64.

Decisions: The core library and the derived programs

These were taken while writing core and the derived programs, and most bind those modules rather than any program the compiler accepts. D199 is the exception: its conversion matrix and its checked and trapping edges are language rules the compiler enforces in every program, and they sit here because writing the text layer is what forced them.

D151 — Raw storage is a private library state machine

The tour said that slice_from lies by describing uninitialized bytes as []mut T [0510]. The allocator and container pressure case derived the necessary transitions with a non-zeroable pointer element, but deliberately proposed no spelling.

Chosen: the repository-owned core/mem module declares a private parameterized nominal raw(item) with an allocation state (a byte pointer or no storage), capacity and an initialized slice witness. The witness length is the initialized count. D150 permits public routines to carry that private identity, so callers hold it through inferred bindings without being able to name its type or select its fields. The parser-support core adds the public parameterized alias storage(item) so another core module may name the same identity in a field or signature without exposing its representation. D135's alias introduces no second nominal identity. Cross-module field selection through such a value is L0202, related to the private type declaration. Code in the defining module retains ordinary field access; no field-visibility syntax or special raw type kind is introduced.

storage_over records a supplied byte pointer and capacity with an empty witness. admit and transfer each construct a local ptr mut [1]item to name the first destination; constructing it is not a read or publication of an initialized array. capacity and length expose capacity and witness length. admit checks for full before a complete typed store. For the first item it then takes the genuine singleton slice; for later items a narrow unchecked block stores at the old length before extending the witness by one. Neither step publishes spare capacity. get and replace check for out_of_bounds before their typed read or write; replace, like admit, declares the inserted value escaping. used returns only the initialized witness, with mutable element permission and from storage. withdraw checks for empty, saves the typed former tail and then shortens the witness. clear shortens the witness to zero in one transition, retaining capacity and backing without reading the discarded values; callers still manage any resources those values refer to. dispose checks for not_empty, returns the original byte pointer and clears the allocation state, witness and capacity. The caller saves the capacity-derived byte extent before disposal; allocator ownership remains the container's composition rather than state stored in raw.

Growth is transactional by composition: a replacement begins empty; reads of the old prefix and admissions to the private replacement may be rolled back by tail release without changing the old value. Only after the full copy succeeds does the caller drain and dispose the old value and publish the replacement by assignment. transfer performs the copy as one initialized-source to next-destination transition, so a reference-valued item is not exposed as a borrow between the two raw values. Its private destination address uses [0470]'s explicit integer-to-pointer boundary for both first and later slots; the complete typed store precedes publication of the extended witness. This manual raw-storage responsibility does not exempt ordinary stores from [1910]'s origin checks, and unchecked still removes only D187's named edges. raw never yields a slice over capacity and never gives spare storage a T image. The public checks are declared atom outcomes, not traps, because these are foreseeable container conditions [0940].

The state machine does not validate the allocation behind its byte pointer. Supplying insufficient, misaligned, stale or otherwise invalid storage remains the unsafe pointer operation [0430]/[1720] says it is. Returned pointer-valued items and initialized views retain the conservative local from storage origin, so a caller ends that view before mutating the raw value again [0800]. No integer reconstruction is used to return the witness or read a transferred item. unchecked suppresses the append's dynamic bound check; it does not change reference permission or cut origin tracking. A writable view still has [0860]'s shallow alias limitation: inserting a reference through one alias is not generally propagated back to every other descriptor for that storage.

Initialized allocation composes with this state machine using ordinary library routines. new accepts an escaping complete initial value, allocates its target extent and alignment, stores it and then returns the pointer; delete consumes one pointer binding and frees that original extent. The byte-specific new_bytes returns a private byte_buffer containing the full allocation extent and an initialized byte prefix. Zero count makes no provider call; nonzero count publishes a view only after every byte is initialized. bytes derives its mutable view from the owner. delete_bytes empties the byte witness with clear, then dispose clears the descriptor before delete_bytes frees the saved original base and extent; a shortened borrowed slice is never used as allocation identity. These routines introduce no ownership, implicit destruction or exemption from shallow origin analysis.

The alternatives: a built-in raw-storage kind would add syntax, type-table and backend machinery for an invariant a private module can express. A public record would let callers forge counts. Reintroducing slice_from would make the original false value claim. Requiring zeroable would reject the pointer element that derived the contract. Trapping invalid transitions would turn foreseeable container state into process termination. All were declined.

Pinned by negative/core-mem-private-representation, runtime/core-mem-raw-storage, the rooted fixture execution path, and the raw.prefix and raw.backing guarantee rows.

D152 — The parser-support core is raw-backed and byte-oriented

The prototypes said that parser support needs allocator-threaded vectors, arena allocation and text positions, while Z3, Z9 and Z10 left their exact minimum unresolved. The allocator pressure case and D151 established the honest raw-storage boundary, but did not compose it into the modules the derived parser can use.

Chosen: core/mem.allocator(provider) has alloc, grow and free entries. grow may extend the same block from an old byte extent to a larger one; it returns false without changing the block or provider when it cannot. Callers fall back to allocation, transfer and free after a refusal. This addition lets a monotonic arena extend its current top allocation without spending the old extent again; other providers may always refuse. D337 adds a fourth entry, resize, which may move the block. Allocation reports the declared out_of_memory atom. arena_over builds a monotonic allocator over a caller-supplied pointer and byte extent, aligning each successful result and refusing a result that does not fit; core/fault wraps it, or any provider, with a deterministic budget and public counters so exhaustion and cleanup paths have executable evidence (D274). The returned allocator handle retains from base; returning one over frame storage is L0314. Since D288 arena_over also fills a caller-declared mem.arena_space and the handle is from state, base, so returning it past that state is L0314 too. Freeing does not reclaim monotonic space. The pointer and extent remain unsafe caller-supplied backing under [0430], [0470] and [1720]. This ordinary library allocator is the explicit-authority replacement for [0820]'s formerly promised builtin forms. Its checked constructors require retainable backing and its private representation prevents direct construction; arena_over_unchecked marks a local-backing lifetime opt-out. D212 withdraws both builtin forms after D191 and D196 exposed the missing backing and escape semantics; the named refusals now report that disposition.

core/vec.list(item) contains one D151 mem.storage(item). It threads an allocator through reserve, push and release, while length, capacity, get and pop expose only initialized values. Growth first offers the provider an in-place extension. If refused, it allocates an empty replacement, iteratively transfers the complete initialized prefix, rolls back that replacement on failure, and publishes it only after draining and freeing the old storage. D194 replaces the original recursive traversal with ordinary loops for positive-sized items and bulk witness transitions for zero-sized items, and checks capacity arithmetic before allocation. A failing reserve leaves the old list and its values unchanged. Pointer elements are valid inputs; no zeroable constraint is introduced. get and pop translate raw bounds/empty results to out_of_bounds and empty; D194 distinguishes foreseeable capacity failures from the retained fallbacks for impossible internal raw-state failures.

core/text supplies an opaque nominal byte position, traversal, bounded byte access with past_end, and a half-open subslice whose result is from source. Positions are byte offsets because the parser consumes source bytes. This is not the complete [0600] text design: D161 subsequently adds the read-only []u8 literal view, while the other literal contexts, UTF-8 scalar decoding, codepoint indexing and the permanent text/string boundary were later text work.

The composition exposed four language rules needed by ordinary modules. D135 aliases may normalize to a nominal aggregate, selected calls are statement calls under [1810], a qualified declaration reference may appear in a declared error set, and origin inference follows selected calls and distinguishes a slice of a by-value fixed-array parameter from a retained slice parameter or inout storage. These are general language rules rather than privileges for core/*.

The derived parser did not require maps and trees. The hosted core library slice supplies those libraries, the typed initialized-prefix slice witness and core/spill.list(item, N). The vector has a public wrapper with one private nominal storage field. Its explicit uninit inline array has a readable prefix bounded by count; its separate core/vec.list(item) descriptor owns spilled storage and reuses that list's transactional growth. No zeroable constraint remains: the inline array is never cleared, so an item needs no zero image (D274). spill.push declares its inout container escaping so an aggregate copied from the initialized inline prefix may be retained in the fresh list during first spill; a plain non-escaping inout source is refused by L0314. Pop and release shorten the readable prefix without clearing unused slots; release disposes a spill and resets only metadata. Ordinary traversal and sorting use vec.used; D180's source-free iterable item does not replace that retained-origin view. Allocator acquisition and ownership remain outside the compiler; the modules thread an allocator supplied by their caller on allocating/freeing operations.

uninit is a contextual initializer only for an explicitly labelled fixed-array field in a private compact nominal construction inside its defining module. It emits no store for that field and is refused for module static images, public representations, packed layouts, scalar fields and stand-alone arrays. Construction establishes the containing value for transport, but it does not create readable item images in the array. The defining module is responsible for writing an item before every typed read and for restricting public access to the initialized prefix. Existing aggregate transport still copies the complete padded extent, including unspecified bytes; only written fields and prefix elements have value meaning. This is a deliberately narrow raw-storage responsibility like D151's pointer-backed prefix. It does not change ordinary zeroed, D19/D22 definite assignment for arrays, or D76 variant selection.

The alternatives: expose raw-backed vector capacity as []mut item, require zeroable, publish a partially copied replacement, store an allocator in each container, treat parser text as codepoints now, or implement the prototype's map and tree before a workload needs them. The first two repeat the false raw storage model D151 rejected; the third breaks failure atomicity; the fourth confuses capability threading with ownership; and the last two settle wider library design without parser evidence. All were declined.

Pinned by runtime/core-mem-allocators, runtime/core-vec-pointer-storage, runtime/r420-small-vector, runtime/r420-small-vector-providers, runtime/core-text-byte-positions, negative/core-arena-frame-escape, negative/core-spill-live-view, negative/core-spill-frame-view, runtime/core-spill-pointer-items, negative/core-text-frame-slice-escape, negative/core-text-private-position, and the allocation.failure, allocation.backing, raw.prefix, origins.escape and modules.visibility guarantee rows.

D153 — Hosted I/O is a libc-backed capability over a scalar import seam

D203--D208 supersede the narrow C signature limit and complete [1975]'s selected-boundary contract. D208 refines this decision's original executable- owned argument capture into the shared Landin- or C-owned startup contract. The original bridge decision below remains the basis of the hosted authority path, not today's complete C admissibility rule. D276 supersedes its compiler-emitted bridge: the libc route it chose is now the ordinary extern(c) declarations of platform/libc, and the argument root is hosted/system source. The provider contracts below are unchanged. On Linux, D279 replaces the libc route: hosted/system makes system calls through platform/linux, and D280 links no C library by default; D297 puts both routes beneath platform/posix, over which hosted/system is written once. D288 makes both providers handles: every entry takes self: provider by value, the memory provider's mutable state is a caller-declared io.memory_space, and the system provider's last errno is in a cell its handle names, the process's or a caller's system.space (D207); the paragraphs below say where.

The tour and prototypes said that hosted arguments begin in C argc and argv form [1650], that the entry is where a root capability is minted [1660], that world access is passed as an ordinary argument [1680], and that core/io.world admits real and in-memory providers. They did not choose how the first backend reaches Linux services or how much of [1570]/[1580]'s foreign surface must become executable before the complete C work.

Chosen: D153 is exactly [1975]. The compiler implements bodyless extern(c) declarations for fixed scalar/pointer signatures and carries them as signature-only IR routines. The Linux backend captures entry argc and argv, then emits a small fixed bridge whose implementations tail-call libc for argument length, read-only and write-create-truncate open, file read/write/close and errno. One bridge entry publishes argv + 1; the private system provider stores that actual table capability and max(argc - 1, 0). The capability-aware indexed lookup has a distinct symbol, receives the stored table explicitly and returns its pointer from that table; the existing one-index helper remains unchanged for earlier foreign-boundary fixtures. The world.argument entry in turn returns its public pointer-and-length descriptor from self. Thus an in-memory provider may return caller backing under the same contract, while the system provider does not disguise a source-free global pointer with a false origin annotation.

Every entry of the four core/io concepts has D146's exact first self pointer. Open, identity comparison, close, read, write and write_some use ptr mut provider; standard streams, argument count and argument lookup use ptr provider. D288 replaces both with self: provider by value, a record handle D289 dispatches from the erased pointer. The system provider is ordinary composed conformance evidence and may be erased behind any world; generic wrappers retain the same operations for statically known providers. A read-only provider pointer could not construct an erased world containing the mutable entries; since no by-value entry writes through the pair, a read-only pointer to a handle now builds one, and any of the handle value itself is L0342. The opaque file value remains one scalar descriptor whose interpretation belongs to its provider; sink on close consumes only the named handle place, so an earlier copy can still attempt a second close.

The bridge used libc rather than direct syscalls because the hosted executable already uses the C runtime and libc supplies the smallest stable host contract for this workload. That premise still holds for Darwin and FreeBSD, whose libc is the supported system interface; D279 revisits it for Linux. File descriptors remain private library representation. Arguments exclude argv[0]; a runtime fixture's new run_args metadata pins the distinction. Reads expose EOF as count zero and host failure as io_failed. world.write completes the whole slice by iterating over the remaining suffix; zero progress, the host failure sentinel, or a count larger than the offered remainder is io_failed. A failed write can leave an accepted prefix. world.write_some instead returns the positive accepted count of one nonempty attempt, including a short success. An interrupted host attempt with no transfer is retried with the same offer; a terminal failed attempt returns io_failed and transfers no bytes. Both operations accept an empty slice without a host call; write_some returns zero for it. open_read and open_write map Linux libc ENOENT to not_found, EPERM, EACCES or EROFS to no_access, and every other failure to io_failed. open_write supplies O_WRONLY | O_CREAT | O_TRUNC and mode 0666, subject to the process umask.

The required world.same_file(left, right) entry compares filesystem identity without opening or truncating either path. The input left must exist and be inspectable; any failure inspecting it is io_failed. An absent right returns false; every other failure inspecting it is io_failed. The hosted provider follows symlinks and compares the full native device and inode fields through a target-selected libc stat binding. Its private records are checked against native C headers on each supported host. The memory provider compares the first matching file-table indices under the same missing-input and missing-output contract. Identity lookup does not require opening a memory file or change its contents, cursor or counters. Neither provider promises an atomic check-and-open operation: callers relying on the result must ensure that names are not concurrently replaced. Every world provider supplies both same_file and write_some; existing implementations must add these entries to their conformance evidence.

The pointer-path entries require an already NUL-terminated path. The ordinary dynamic adapters take a byte view plus caller-owned writable scratch, reject an empty view, an embedded NUL, or scratch without one extra terminator byte in that order, and copy nothing before all three checks pass. No path is silently truncated and no hidden allocator is consulted. Public open_read_text and open_write_text obtain that byte view through core/text and use the same byte adapters and termination helper. Close maps a nonzero libc result to io_failed. On an otherwise successful path that failure is observable; when close is a reached undo while another declared failure is already propagating, D133 preserves the primary atom and cleanup cannot replace it.

The core/io module contains the target-neutral world concept, adapters and caller-backed memory provider. The libc-backed system provider and its argument root live in hosted/system, over the extern(c) declarations of platform/libc; hosted roots import hosted/system explicitly and call system.new(). Selecting core/io alone does not select foreign declarations, so the same world API can be used by Cortex-M0 consumers. The hosted provider still conforms to io.world, and the errno contract above remains unchanged.

The bounded core/io.memory provider implements the same capability from caller-supplied file descriptors, content buffers, argument descriptors and standard-output/error buffers. It makes no host calls and allocates no storage. memory_over retains those four supplied slices through its result's from clause; since D285 and D288 it takes a fifth, the standard-input bytes, and a caller-declared io.memory_space inout, which it fills, and returns the opaque io.memory handle from that state and all five. Files are existing-only, selected by the first matching name; opening resets the cursor, and opening for writing truncates only after permission, open-state and capacity checks. Construction preserves the supplied file state. A file-table index is a provider-local handle, with no generation or ownership identity: a copied stale handle can address a reopened slot.

A positive read_limit bounds each read. Zero progress with unread data and a nonempty destination reports io_failed, so it cannot masquerade as EOF. write_limit bounds each write_some attempt; zero reports io_failed for a nonempty write. A successful attempt returns a positive count, possibly short, and a failed attempt transfers nothing. write repeatedly calls that operation to complete its slice; a later failed attempt preserves the exact completed prefix. Empty reads and writes are unconditional no-ops, even for closed handles, and do not advance failure counters; an empty write_some returns zero. Other operations validate the handle. Failure schedules name one-based read, write-chunk and close counts; zero disables injection. A valid close clears the open state before its injected failure, allowing ordinary manual cleanup to consume the handle once.

The memory representation is public composition; since D288 that public part is the io.memory_space state, whose limits, failure schedules and counters the caller reads and sets while the handle lives, and the file records it supplies. Clients preserve initialized lengths and capacities, leave headroom for checked operation-counter increments, and keep both descriptor tables and all nested file-name, content and argument backing valid. Transfer source and destination ranges must not overlap. These are caller obligations, not ownership or transitive alias guarantees. Argument lists exclude the executable name; argument returns a view from self. written and written_errors take the memory provider inout and return only the initialized output prefix from that provider, retaining the ordinary local frame-escape and live-view checks; since D288 they take the handle in and return the prefix from it.

An argument deliberately remains the foreign-shaped ptr u8 plus byte length used by both providers; it is neither a cstring nor a fabricated slice. Ordinary core/io.copy_argument first checks that caller-owned scratch has at least the exact argument length, then copies the bytes and returns the genuine initialized prefix from scratch. Insufficient capacity changes no byte, and an empty argument returns an empty scratch-derived slice. The caller keeps the complete source extent readable during the copy, ensures that its addresses are representable, and does not overlap scratch. The copied view may then be validated by core/text.from_bytes; no pointer-to-cstring conversion, hidden allocation or pointer-to-slice operation is introduced. Both provider argument sequences contain only user arguments and exclude argv[0].

The C library names platform/libc declares, strlen, open, read, write, close, malloc, free, stat and the errno accessor, are ordinary extern(c) imports, not names reserved from Landin source. A non-external Landin declaration with one of those spellings is given a deterministic whole-program assembler name, just as two reached module declarations with the same short name are. The selected hosted entry and an extern(c) declaration retain their required ABI spellings. Ordinary symbol allocation therefore keeps a private Landin read or malloc from capturing the C import of that name while preserving the explicit foreign-symbol contract.

The alternatives: direct Linux syscalls would couple the first hosted library to kernel numbers and conventions without reducing the already-linked C boundary. Enabling aggregate returns, unions, variadics, callbacks, foreign allocation ownership or generated header bindings would pre-empt the complete C boundary. Making I/O a compiler intrinsic or global singleton would defeat [1660]'s replaceable capability. Passing C-shaped parameters to Landin main would reverse [1650]'s chosen ordinary no-argument entry.

This selects the bootstrap provider, not permanent compiler ownership of I/O. The hosted modules and the C boundary retain both direct libc declarations with explicit library linkage and target-specific core providers built over inline assembly or separately linked syscall wrappers. Either may implement the same world capability without changing its callers.

Pinned by positive/external-scalar-c-boundary, negative/external-aggregate-boundary, negative/core-io-world-readonly-receiver, negative/core-io-file-use-after-close, runtime/hosted-io-reads-parser-input, runtime/core-io-erased-system, runtime/derived-parser, runtime/derived-hosted-memory, abi/r440-errno-interposition, the rooted fixture execution path, and the host.io, host.io-failure and extern.c-boundary guarantee rows.

D258 — Hosted capability parameters select providers without excluding new roots

The tour and prototype 4 said that the entry normally mints host roots [1660] and that ordinary routines receive capabilities as arguments [1680]. They also expose public, zero-argument host constructors. The original W1 resolution called the argument list enforcement below a root, but an ordinary helper can mint another root below that call.

Chosen: keep the constructors public and permit ordinary hosted routines to call them. A capability parameter promises that the caller can supply a provider for uses of that parameter; it does not promise that the routine or its callees have no other route to host I/O or allocation. Passing an in-memory world or bounded allocator makes code that uses those providers substitutable and testable. For a whole call tree, that claim requires inspecting its calls and imports, not reading its signature. The derived hosted-memory fixture even mints a heap root inside a parameterless helper. This is an explicit limit of the current capability model for trusted code as well as untrusted code.

The alternative: restrict root construction to an entry module or add an effect or authority rule checked through calls. Either would improve the checkability of host exclusion for code below that boundary, but would add a privileged module or whole-call-graph rule to ordinary function checking. Entry-module restriction alone would still leave direct foreign calls and freestanding address literals as independent authority paths. Without an actual need for a static exclusion guarantee, the added machinery and incomplete boundary do not earn their cost for a systems language. The roadmap's language-evolution record reopens this choice when trusted code needs that guarantee or when untrusted code must be run, and requires the proposed boundary to account for those other authority paths.

Pinned by runtime/derived-hosted-memory, whose long_lines helper calls heap.new() without an allocator parameter, runtime/core-io-erased-system for provider substitution, and the capabilities.host-root-exclusion guarantee row. These demonstrate the current behavior; they do not prove that an arbitrary call tree uses only supplied providers.

D1960 — A call tree's host authority stays a convention

The tour said at [1680] that a parameter list says what a caller supplies, not everything the call can reach: any hosted function may call the public host and heap constructors, and a driver may make a pointer from an address. D258 keeps the constructors public, so a provider argument selects a provider without proving that a call tree uses no other. An inherited proposal asked for a checkable boundary, accounting for constructors, foreign calls and address literals.

Chosen: no checkable boundary is added; [1680] and D258 stand, and a reader who needs to know that a call tree does no host I/O reads its calls and imports. A trusted-code case needing static host exclusion, or untrusted code to run, reopens it as a new question. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: keeping the proposal open until such a case, and designing the boundary in the library review. Both were declined: no case has arisen, and the review does not need it.

Pinned by D258's fixtures, which stay: runtime/derived-hosted-memory and runtime/core-io-erased-system, and the capabilities.host-root-exclusion guarantee row.

D154 — Diagnostics separate retention from delivery failure

The tour and prototype 2 said that a diagnostic sink is an ordinary capability [0950] [1680], that a parser reports foreseeable syntax mistakes and continues, and that bounded and streaming sinks must be interchangeable. They did not say whether bounded overflow or a failed hosted write belongs to the parser's error channel, how a retained message keeps its origin, or whether the two implementations use the same dynamic call path.

Chosen: core/diag.log(logger) is an object-safe concept with note and failed. note receives a mutable self pointer, core/text.position, the warning | error severity atom set (D272) and a call-scoped []u8 message, and declares core/io.io_failed. failed reports whether any error-severity note has been received. A producer accepts any diag.log and invokes both entries through D147's ordinary erased evidence table; it neither names nor branches on the concrete logger.

bounded(capacity) is a parameterized private nominal implementation. It copies up to message_capacity (256) bytes into each retained entry, so a producer may pass a frame-backed message through the shared concept. It retains fitting notes in order until capacity entries have been stored; every note that arrives after the entry limit or exceeds the byte limit increments dropped. Error severity is counted even when that note is dropped. Overflow returns normally and never raises io_failed. Entry and logger representation stay private; checked accessors report mem.out_of_bounds rather than exposing unused storage. A returned entry owns its copied bytes and remains valid after the producer's frame ends. Its inline note array is explicitly uninit at construction; each owned entry is written before stored grows, and note_at checks that prefix.

streaming retains a pointer to an erased core/io.writer and a borrowed file, not a system-provider pointer. Its construction result derives from both stored addresses, so neither frame-local world-pair storage nor frame-local stream storage may escape through it. Since D288 diag.stream(host: any io.writer, where_to: io.file) takes both by value: the logger holds a copy of the erased pair and the file identifier, and its result is from host, so it keeps the origin of the handle binding the pair was built from and cannot outlive a frame-local one. It writes W: or E:, the decimal byte position, :, and the message bytes as the note arrives through ordinary dynamic world dispatch. Each write propagates io_failed; the error count is updated before delivery is attempted, so failed describes what the logger received rather than what the selected provider accepted. Both logger implementations receive the same ordered calls in the executable evidence.

The implementation pressure also closes two existing representation seams. A fixed formal used in a generic routine body is D138's per-instance constant and has no ABI position. An aggregate place reached through pointer .val uses the same target-neutral runtime-address storage path as a computed aggregate index; .val is not encoded as a fictitious field zero.

The alternatives: treating bounded overflow as failure would make a parser stop because its reporting policy is intentionally finite. Ignoring a failed stream write would claim delivery that did not happen. Giving each logger a different producer interface would erase the capability abstraction, while specializing the producer would make optimization the semantic basis contrary to [1310]. Retaining arbitrary frame bytes behind an origin-erasing address was also declined. The bounded implementation uses a finite copy budget and reports an oversized note in dropped instead.

Pinned by runtime/diagnostic-loggers-dispatch, negative/core-diag-frame-message-escape, negative/core-diag-frame-world-escape, the parameterized and erased conformance registers, the diagnostics.retention, diagnostics.delivery-failure, origins.escape and host.io-failure guarantee rows, and the rooted fixture execution path's recorded merged output.

D155 — The derived parser is ordinary composition, not a privileged stage

Prototype 2 said that a useful parser retains positioned bad input, reports foreseeable syntax faults through a replaceable sink, recovers and keeps valid nodes, while allocation, nesting and delivery failures take explicit paths. It used loops and the future text surface, and therefore did not settle what the enabled kernel of the time could honestly execute.

Chosen: the derived lexer and parser are ordinary rooted Landin modules. The lexer classifies an intentionally ASCII configuration grammar over core/text byte positions and emits bad-character and unterminated-string tokens rather than dropping bytes. The recursive-descent parser stores a recursive variant tree as arena-allocated value nodes reached through core/vec.list(ptr mut value). Syntax mistakes call an erased any core/diag.log, recover at a newline, brace or end boundary, and do not enter the public error set. Excess nesting is reported and recovered internally. Only core/mem.out_of_memory and core/io.io_failed leave parse_file.

The same parser body runs with bounded and streaming D154 providers. No specialized parser copy is emitted or required. When loops and the complete UTF-8 text model were not yet enabled, scanner, recovery and sequence walks used recursion over core/text's byte positions as an implementation substitution, not a second parser design. Now that loops are enabled, recovery skips malformed-line tokens in a loop: the recursive walk could exhaust the process stack before reaching a boundary. Scanner and sequence walks remain recursive, and recovery still leaves newline, brace and end tokens for its caller.

The program also pins general compilation rules already implied by the language. A try call followed by another statement is the statement form of [1810], not an expression consuming the rest of the body. A pointer to an ordinary nominal needs the target's identity without forcing its value layout, including when nested in a parameterized wrapper; only by-value recursion is L0313 under D137. A concrete call's named recovery binding and body are checked even when result inference first reaches the call. Stored aggregate results from calls or control expressions are produced in caller-owned temporary storage before being copied into a nested or runtime-addressed destination. None is a parser-only exception.

The alternatives: implementing the workload inside the Ada frontend would test the wrong language; stopping at the first syntax fault or putting each one in the declared error channel would reverse Y1 and [0950]; waiting for loops, UTF-8 text or specialization would make the first major compiler milestone depend on later surface or optimization work. Adding special AST allocation, diagnostic or parsing intrinsics would duplicate the ordinary allocator, container and evidence mechanisms. All were declined.

Pinned by runtime/derived-parser, positive/try-statement-before-return, its DERIVATION.md, the prototype derivation register, and the complete rooted fixture path.

D191 — The region and the derivation cut are core's; the arena block is refused by name

Amended by D1658. There are no selected imports; the rest stands.

D196 carries this increment's unresolved arena questions forward; D212 now settles them by withdrawing both builtin forms. The original rationale below records why the compiler first added the named refusals.

The tour said that arena is built in, both as a block and as the type a parameter is written with at [0780] [0820], and that derivation stops at the three primitives of [0500] — offset, base_of and slice_from — which "yield a reference independent of what went in, and core answers for that" [0810]. Neither paragraph says what the block's name is a value of, where its bytes come from, or what any of the three primitives costs the compiler. Between them they name one operation this repository has already refused to have and two that do not exist.

Chosen: all three constructs belong to core and to the allocator surface, not to this kernel. [0500] and [0810] describe library functions with no compiler privilege, and the hosted core library slice owns them because it would add them. [0820] is language syntax, and it is recognized and refused by name here rather than enabled: the parser reports L0010 on the arena of arena name do and swallows the block's own end name, and the checker reports L0304 on a written arena type. At this increment both notes name [0820] and the hosted core library slice. The construct applicability register moves all three rows to that later hosted work, the shape [1430] and [1440] already have.

The pointer half is settled by evidence rather than by scheduling. [0810] says the three primitives are the cut that lets an allocator hand out storage pointing into itself without the storage borrowing it. core/mem's arena_alloc does exactly that today and reaches none of them: it computes usize(self.base) + offset and converts the sum back with ptr, which is [0470]'s integer-to-pointer conversion. That conversion is already the cut, already classified — the pointer.integer-origin guarantee row calls it a non-guarantee with four fixtures behind it — and already in the open, written in the library where a reader can audit it. slice_from is not deferred at all: D151 rejected it for [0510]'s reason and the repository will not have it. offset and base_of are the library spellings of a cut the compiler already makes, so making either a compiler intrinsic would put a core name in the frontend against [0490] and buy nothing. [0810] is amended to say this; the example keeps its spelling, because changing it would assert an operation the language does not have.

The block half is refused because four questions decide it and neither document answers one of them. Which type the block name has, and how it meets [1360]'s allocator contract without the frontend depending on core/mem. Where the region's bytes come from and how many, on a host and on a 32 KB part, given that [0820]'s own promise is that the extent is exact rather than guessed. Whether exhaustion is out_of_memory or a trap. And how "everything from it has frame origin, and allocated once the arena is passed on" is expressed at all, when [0790] says an allocator's result carries no from clause and therefore borrows nothing. That last one is why the obvious shortcut is unsound rather than merely incomplete: lowering the block to mem.arena_over over a hidden frame buffer would make every allocation out of it an independent origin free to be returned, which is the precise opposite of "nothing from it may leave the block". Shipping that would be worse than the refusal.

The refusal is complete because [0820] has two faces. Refusing only the block would leave (a: arena) reported as a name declared nowhere, which is a true sentence about the wrong thing, and the second half of the paragraph would go unmentioned. So the parser owns one face and the checker owns the other, for the reason the two tables are separate: the parser refuses a shape it can read off the tokens, and the checker refuses a name it had to resolve first.

arena is not added to [1760]'s keyword rule, and that is the price paid for the shape gate. core/mem declares public arena: type = arena_value over a private representation; examples/config_parser threads a parameter spelled arena through six functions, and [1760] promises that a program avoiding a construct never trips over its keyword. So the parser recognizes three tokens — arena, a name, do — and nothing else. arena = x, arena(x), arena: loop do and mem.arena are all untouched, and runtime/arena-is-an-ordinary-name pins that from the other side.

The alternatives: lowering the block to mem.arena_over over a frame buffer the compiler supplies was declined above — it guesses the extent [0820] says is exact and inverts the frame/allocated rule the paragraph turns on. Reserving arena as a keyword was declined because it deletes the library arena's spelling, breaks negative/core-arena-frame-escape and runtime/derived-parser, and breaks [1760]'s stated promise. Making mem.offset and mem.base_of compiler intrinsics was declined because [0490] puts pointer policy in core and [0470] already supplies the cut. Reopening slice_from was declined: D151 closed it and no new evidence argues otherwise. Leaving the block to the ordinary parse error was declined against [1830] — a program written against the whole tour must meet a named diagnostic and not a four-report cascade, and before this decision it met the cascade. Keeping the three rows as work already done on the hosted path, with a refusal naming the hosted construct work, was declined because that work cannot close over a refusal that names it, which is a rule check.py enforced.

Pinned by negative/arena-block-not-enabled, negative/arena-type-not-enabled, runtime/arena-is-an-ordinary-name, and the pointer.integer-origin guarantee row. D196 completes the [0500]/[0810] disposition and transfers both [0820] refusals and all four questions to the derived hosted application; the compiler still grants no privilege to a core name.

D193 — Arena requests align absolute addresses and fail atomically at arithmetic boundaries

The tour and prototypes said that an allocator receives a byte size and alignment and reports only out_of_memory [1360], that a caller-backed arena advances a monotonic offset, and that its backing pointer and extent remain an unsafe caller assertion [0430] [1720]. The first core/mem implementation aligned only that offset. A base at address n + 1 could therefore return the same misaligned address for an alignment of eight. Its rounding addition and later base, padding, and size additions could also trap for usize overflow instead of taking the allocator's declared failure channel.

Chosen: core/mem.arena aligns the numerical absolute address usize(base) + used. Every positive alignment is its ordinary numeric address multiple; zero has the same byte-aligned meaning as one. The contract does not require power-of-two alignment, although every alignment produced by alignof for an enabled type is one. A size of zero is a valid request. It returns the aligned point and consumes any padding required to reach it, but no payload bytes. Under core/fault, it is still one successful allocation and consumes one unit of allocation budget. The arithmetic is public as mem.aligned_offset, and the pool uses the same routine (D274).

Before forming each sum, the providers prove that base + used, its aligned address, the aligned offset, and the exclusive allocation end fit usize, and that the aligned request fits the stated extent. An impossible operation reports out_of_memory; it does not reach [0300]'s overflow trap. Extent or budget exhaustion has the same failure atomicity. No failed allocation changes used, remaining, allocations, or any other provider field. Exact positive exhaustion succeeds, a further positive byte fails, and a zero-byte request at that same end succeeds exactly when its aligned point still fits. The last representable address is consequently a valid aligned point for a zero-byte request, but not the beginning of a one-byte request whose exclusive end would be unrepresentable.

These checks validate the provider's arithmetic, not the caller's assertion that the backing storage is live and covers the stated extent. The latter remains the allocation.backing non-guarantee. Frees continue to reclaim no storage, the failing provider continues to count each free call, and the arena and failing-provider construction, origin, counters and ordinary allocation semantics are otherwise unchanged.

The alternatives: aligning only used relies on an unstated prealignment of caller storage and was the defect repaired here. Requiring a power of two or rejecting zero alignment would add an invalid_alignment policy [1360] does not expose and would change the provider's existing alignment <= 1 behavior. Rejecting zero size would likewise add a new error condition and make empty generic extents special. Letting checked arithmetic trap would bypass the one foreseeable allocation-failure channel the concept deliberately fixes. All were declined.

Pinned by runtime/core-mem-allocators, which retains the original monotonic and budget behavior, and runtime/core-mem-arena-boundaries, which uses misaligned caller storage, zero requests, exact exhaustion and maximum-usize size, alignment, address and end calculations.

D194 — Vector capacity arithmetic is checked before allocation and transfer uses bounded stack

The tour and prototypes said that allocation reports out_of_memory [1360], raw storage exposes only initialized items [0510], and vector growth preserves the old list until replacement succeeds. D152 implemented that composition, but want * sizeof item and geometric doubling could overflow before reaching the provider. Its copy and drain helpers also recursed once per initialized item, although ordinary loops are now enabled.

Chosen: for a positive-sized item, reserve checks want <= maximum_usize / sizeof item before multiplying or calling the provider. An unrepresentable byte extent reports mem.out_of_memory with no provider call and no change to the old capacity, initialized count or contents. The largest representable extent reaches the provider unchanged; the provider still decides whether it can supply that request. A request no larger than the current capacity remains a no-op.

An enabled zero-sized item, such as [0]u8, retains logical capacity and an initialized count. Its byte extent is zero without division. Every successful increase to a nonzero capacity performs one zero-byte allocation, later paired with one zero-byte free using the returned pointer. Admission, transfer and release change the logical count without copying payload bytes. Growth establishes the replacement's initialized witness with one complete typed store through the returned pointer, then extends that witness to the old logical count in one step. It does not require a zeroable item or invent backing when the provider returns an invalid pointer. Releasing or replacing zero-sized storage shortens its witness in one step before disposal. These bulk transitions check the old initialized count, replacement capacity and allocation token; failed allocation still leaves the old list untouched. Even maximum_usize is a representable reserve capacity for this item. Capacity zero acquires no allocation; releasing an empty-capacity list, including a second release, makes no provider call. No zeroable constraint is added.

The current geometric policy starts at eight slots and doubles thereafter. Doubling a capacity greater than maximum_usize / 2 fails before multiplication or a provider call; push reports mem.out_of_memory. The private arithmetic helper is tested directly at that boundary through ordinary same-module source composition. It is not a public test API or a promise that a particular growth factor is part of the list's public interface.

Positive-sized copy and drain use loops with stack usage independent of list length; zero-sized copy and drain take constant work. Only the old initialized prefix is transferred. A positive-byte vector may instead extend its existing allocation when the provider confirms that the same block owns the larger extent. Its initialized prefix and pointer stay in place; only its private capacity changes. A refusal changes neither provider nor vector state and proceeds to the ordinary replacement allocation. Zero-byte items always use the replacement path and retain their exact allocation/free counts. For replacement, the fresh list remains private until that copy succeeds and the old initialized values have been drained and their allocation freed with its original exact byte extent. Publication is last. Failed allocation leaves pointer values and the list shape intact, and a retry uses those same initialized values. No spare-capacity typed view is formed.

D151's private raw counters make transfer failure impossible for a valid vector and a larger fresh allocation. The inherited defensive path still drains and frees the replacement and returns the vector's existing out_of_memory result if that invariant fails; this fallback is not evidence of provider exhaustion. The inherited drain/dispose rejection paths return early without manufacturing an allocation error. These are internal invariant failures, not new recoverable raw-state guarantees. Admission after a successful growth or spare-slot check retains the same defensive out_of_memory fallback if its supposedly available slot is rejected. The public list shape and unsafe raw reserve operation do not validate caller-forged backing or storage states. Arithmetic checks do not strengthen allocation.backing.

Positive zero-sized coverage exposed a missing implementation path for enabled fixed-array whole stores through pointer .val. Such stores and copies use the ordinary runtime-address representation, retaining nested variant payload steps. The destination is evaluated once, before the source; if its evaluation leaves the block, no address instruction, RHS or store follows. Nonzero arrays pin actual copies as well as zero-byte execution. The large-list case also requires generic discovery to type traversal headers before deducing calls whose arguments include the range variable, preserving [1150] and D138's exact argument descriptors before the error graph closes.

The alternatives: wrapping byte products or letting checked arithmetic trap bypasses the declared allocation error channel. Rejecting enabled zero-sized items or adding zeroable would narrow the existing generic contract to avoid a compiler defect. Recursing per item consumes unbounded stack for a valid large list. Publishing before copy completion exposes a partial replacement. All were declined.

Pinned by runtime/r420-vec-capacity-boundaries, runtime/r420-vec-growth-boundary, runtime/r420-vec-growth-transaction, runtime/r420-vec-large-list, runtime/r420-fixed-array-pointer-whole-copy, and runtime/core-vec-pointer-storage.

D195 — The hosted heap over-allocates through a fixed libc shim

D277 supersedes the shim below: hosted/heap now performs the same over-allocation in source over platform/libc's malloc and free, and the contract this decision states is unchanged.

The tour and prototype said that one allocator concept serves heap, arena and fixed-buffer providers [1360], that an allocator result is an independent origin [0790], and that cleanup errors hidden by a monotonic arena need a real reclaiming provider. They did not give the hosted provider an alignment or zero-size contract, or choose the libc operation behind it.

Chosen: hosted/heap is a hosted module separate from the freestanding core/mem protocol and caller-backed providers. Its system type conforms to mem.allocator, and host() mints the otherwise stateless capability. The module declares only two [1975] runtime routines: (usize, usize) -> allocation allocation, where allocation: type = no_allocation | ptr mut u8 and no_allocation is an atom, and ptr mut u8 -> none release. The no_allocation arm maps to mem.out_of_memory; the pointer arm carries a non-null allocation. No foreign error or ownership type crosses the seam.

Every usize alignment is accepted. Zero and one request no stricter than byte alignment; every greater value returns an address whose integer value is an exact multiple of that value. A successful zero-byte request returns a distinct non-null token that may be released but not dereferenced. The Linux x86-64 shim asks malloc for the requested size plus one pointer word and at most alignment - 1 padding bytes, aligns within that allocation, and records the original libc pointer in the preceding word. Release recovers that pointer and passes it to free; the allocator contract's size remains available to wrappers and is not required by libc.

The shim checks both additions and refuses a total above PTRDIFF_MAX before calling malloc. This makes the maximum admitted request depend on alignment: size + sizeof(ptr) + alignment - 1 must be representable and no greater than the host's PTRDIFF_MAX. A null malloc result becomes no_allocation in the bridge and takes the declared out_of_memory path. Pointer-word width, the PTRDIFF_MAX test and hidden header layout are selected-backend facts in the runtime shim, not constants or structures in target-neutral IR. The public module therefore contains no host pointer-width arithmetic and creates no general C ABI, foreign-ownership, nullable-pointer or syscall surface.

The alternatives: aligned_alloc and posix_memalign were considered. Both restrict alignment to powers of two, posix_memalign additionally needs a pointer-to-pointer carrier, and their zero-size result can be null. Adopting those contracts would narrow [1360] for a provider when a small over-allocation shim can retain every admitted alignment and deterministic empty allocations. Calling malloc(0) directly was declined because its portable result is not deterministic. Putting the heap in core/mem was declined because merely importing the freestanding protocol must not import hosted authority. Direct syscalls, a general C binding, and storing the allocator in a container remain outside this slice.

Pinned by runtime/hosted-heap-provider and the allocation.failure guarantee row; the backend case that checked the shim left with it (D277). The runtime audit sees two differently aligned live blocks, exact requested extents, a non-null empty allocation, the old and replacement allocations coexisting during vec.list(ptr node) growth, and no live block after release.

D196 — The library omits pointer conveniences and transfers lexical arena to the hosted application

D212 now discharges the arena handoff below with explicit-authority library semantics and permanent withdrawal of both builtin forms. The pointer convenience dispositions remain unchanged.

The hosted core library slice inherited D191's [0500], [0810] and [0820] dispositions. Its scope explicitly permitted recording the two pointer conveniences as unneeded and naming the work that inherits the lexical block. The working caller-backed allocator does not implement the block's promised region semantics.

Chosen: offset and base_of are unnecessary for this library slice. The allocator uses ordinary [0470] conversions; slice consumers check for nonempty storage before taking an element address. Neither operation is an enabled API or a privileged compiler name. [0810] now states the actual integer-to-pointer derivation cut, and [0580]'s empty-base representation no longer implies that an omitted accessor exists. D151's rejection of an arbitrary-pointer slice_from remains in force.

Both arena name do and the builtin arena parameter type remain refused by name, now against the derived hosted application. That work owns the first complete program using prototype 4's W7 helper-returned configuration, and precedes the hosted parity gate. It inherits all four D191 questions: builtin type and ordinary allocator conformance without frontend dependence on core/mem; authority, backing and capacity on hosted and constrained targets; exhaustion behavior; and the relationship between direct frame-origin allocations and independent results of ordinary allocator calls. The library slice gains no dependency on the application.

The last question has a concrete counterexample to W7's historical argument. A helper passed the allocator can allocate through its no-from signature and store that independent pointer in module storage as a side effect. The reference never returns through the lexical block's boundary. Even an ordinary helper return carries no signature fact reconnecting its allocation to that block. Merely checking the block's returned value therefore does not establish its promise. The application must implement the promised checks with explicit semantics or amend the promise on evidence before claiming the complete application. It must cover direct, helper-returned and helper-side-effect escapes, including aggregates, slices and any, while allowing simultaneous allocations and helper results used inside the block. Explicit unsafe pointer conversion remains a documented non-guarantee.

The alternatives: a hidden frame buffer guesses capacity and returns independent pointers, so it still fails D191. Adding from allocator revives prototype 3's rejected Z5 behavior: a live allocation borrows the allocator and prevents another allocation. Neither is a region implementation. Sending the questions to an unspecified future library would leave the complete hosted prototype and the hosted gate without an owner. Leaving the three-primitives claim above a contradictory caveat would retain a false rule. All are declined.

Pinned by negative/arena-block-not-enabled, negative/arena-type-not-enabled, negative/arena-block-names-owner, negative/arena-type-names-owner, runtime/arena-is-an-ordinary-name, runtime/core-mem-allocators, runtime/core-mem-arena-boundaries, and the pointer.integer-origin guarantee row. The refusal transcripts then named the hosted application; the working allocator fixtures provide no claim about lexical arena escapes.

D197 — Fixed slots use caller metadata and failure injection wraps a provider

The tour and prototype said that one allocator concept serves a fixed buffer as well as a heap or arena [1360], that allocators are threaded rather than stored in containers, and that deterministic allocation failure exposes transactional bugs. They did not say how a reclaiming fixed provider stores its finite free-state or how a generic failing provider retains and audits its inner allocator.

Chosen: core/pool is a caller-backed reclaiming provider distinct from the monotonic core/mem.arena and hosted hosted/heap. Construction receives an explicit byte pointer and exact extent, a positive uniform slot size, a finite slot count, a slot alignment, and a caller-supplied initialized []mut pool.slot. Each record holds the live request extent or vacancy sentinel, and one free-index heap entry; the heap uses the same caller-supplied slice and no other storage. The slice length is the explicit finite bookkeeping capacity and the requested slot count may not exceed it. Construction initializes the active records only after every configuration check succeeds. The caller reserves those records for the provider while it is in use. Its result's from base, bookkeeping clause retains both when the actuals have tracked origins, and a local metadata slice cannot escape beside a named backing parameter. Since D288 pool.over also takes a caller-declared pool.space inout, which holds the geometry and counters and is changed only after every check succeeds, and returns the pool.provider handle from state, base, bookkeeping; the counters read the handle. The module imports no heap and has no fallback.

Each pool.slot stores a usize requested size and a usize free-heap index. The maximum requested size marks an unoccupied slot, removing the old Boolean field and its padding. Cortex-M0 bookkeeping shrinks from twelve to eight bytes per slot; hosted 64-bit bookkeeping shrinks from twenty-four to sixteen bytes. The free-index heap retains lowest-index reuse. A positive pool refuses a slot size equal to that marker. Such a slot would require a base address of zero to fit in the target address space, and [1975] forbids constructing a non-null pointer there. Zero-slot pools may still use that size. A zero-size request stores zero and still occupies a slot. The single caller slice and the from base, bookkeeping origin clause remain the same, with D288's state before them.

The existing whole-value origin algebra still applies: Untracked is an OR. If one constituent is deliberately made untracked, such as a base produced by ptr(integer), the complete provider is untracked and the checker does not independently enforce the other constituent's tracked metadata origin. This is the mixed tracked/untracked non-guarantee, not evidence that metadata was dropped from over's declared sources. The caller remains responsible for both storages; no field-sensitive origin or provenance mechanism is added.

Zero and one configuration alignment mean byte alignment. For every other usize value, construction uses D193's checked absolute-address algorithm to find the first aligned address, rounds the uniform stride with checked arithmetic, and proves that every complete slot fits both the declared extent and the target address space before publishing the provider. An allocation accepts a size no greater than the slot size and alignment zero or one, or an alignment that divides the configured slot alignment. It consumes the lowest free slot, including for a zero-size request, and records the exact requested extent. A free reclaims only an occupied exact slot address with that recorded extent. A wrong address, a wrong size, or an address whose slot is currently unoccupied is rejected and counted. After the same slot is freed and reused for the same extent, a stale pointer is indistinguishable from the current allocation and remains [0430]'s pointer-validity non-guarantee; the pool adds no generation identity. The free-index min heap selects the lowest free slot in logarithmic time. Free derives a candidate index from the address and fixed stride before checking occupancy and extent; a valid free updates the heap in logarithmic time, while an invalid free leaves it unchanged. Allocation, valid-free, live and rejected-free counts are observable audit evidence.

The uniform domain is deliberate. A vector or map chooses a slot size at least as large as its greatest planned extent and supplies one metadata record for each allocation that may be live simultaneously. In particular, a transactional map rehash that holds three old and three replacement extents uses six records. The implementation has no unrolled boolean ceiling and the capacity is not an arbitrary library constant.

core/fault.injector(A) is a separate generic wrapper for any A is mem.allocator. new took an ordinary nonescaping ptr mut A and returned injector(A) from inner. D288 replaces it with fault.over(inout state: fault.space, inner: A, allowed_attempts) -> (handle: injector(A) from state, inner): the injector holds a copy of the inner handle, and its budget and counters live in the caller's fault.space. The returned value retains the actuals' origins without [1880] requiring the inner actual itself to have an origin independent of the call. The wrapper therefore accepts local heap and pool providers for local use, while returning such a wrapper past the inner provider's frame or its own state remains L0314. An immutable state binding is L0303, where an immutable provider pointer was L0340.

The budget counts future allocation calls allowed to reach the inner provider. It is consumed before delegation, so an inner failure consumes one attempt; after it reaches zero, an injected out_of_memory does not invoke the inner provider. Resetting the budget preserves cumulative attempts, delegations, successes, injected failures and inner failures. Every free is delegated once with its original pointer and extent. Because the allocator entry returns no free result, wrapper frees and live are valid-free accounting: malformed or duplicate frees are still delegated, and an inner rejection cannot be learned or reflected in the live count.

The parameterized conformance (A: type is mem.allocator) counted(A) is mem.allocator, fault.injector(A) since D274, is ordinary evidence. Neither provider changes mem.allocator, stores a provider in a container, adds an ownership type, or creates a new ABI.

The alternatives: four unrolled occupancy booleans, a larger magic slot limit, hidden heap bookkeeping, and heap fallback were declined because each either fails a known six-live allocation transaction or makes an explicitly finite provider silently unbounded. A fixed generic capacity was possible, but the admitted initialized mutable slice already exposes caller storage, runtime count and capacity without generating a family of provider types. Layering deterministic refusal into the monotonic arena was declined because it cannot provide real reclamation or wrap heap behavior. Marking the inner provider escaping was declined because [1880] would unnecessarily exclude a local actual even when only the returned wrapper retains it.

Pinned by runtime/r420-pool-provider, runtime/r420-failing-providers, negative/core-pool-frame-escape, negative/core-pool-bookkeeping-frame-escape, negative/core-fault-needs-mutable-inner, negative/core-fault-frame-escape, and the allocation.failure, allocation.backing, allocation.reclamation and origins.escape guarantee rows. Runtime evidence covers zero and one delegation budgets, finite exhaustion, six simultaneous live slots, exact-alignment writes, exact free/reuse, inner and injected failure counts, and failed pointer-vector growth followed by retry and complete release.

D198 — Map buckets are initialized records over dense key and value prefixes

The tour and prototype said that map(K is hashable, V) uses open addressing without a null or sentinel key, that hash reduction occurs before a possibly narrower usize conversion, that tombstones contribute to growth pressure, and that rehash makes three fallible acquisitions. The prototype's parallel slices nevertheless claimed every sparse K and V slot was initialized, left probes unbounded, and inserted into the first tombstone before proving an equal key did not occur later in the chain.

Chosen: core/map.map(K, V) owns three mem.storage allocations. The first is a completely initialized array of bucket records whose module-private type contains a free/used/dead atom-set state, a dense index and previous/next live-bucket links. The map stores the head and tail; capacity is the link's end marker. The other two are equally long initialized prefixes of K and V. A bucket that has never held an entry has no dense index in use. First occupation appends one actual K and V before marking the bucket used. Removal marks the bucket dead without reading, zeroing or releasing either value. Reuse replaces the K and V at that bucket's existing dense index. Rehash transfers only used positions and final release discards all initialized positions, including dead ones. No K or V zero image, destructor or implicit resource ownership is introduced.

equatable(K) and hashable(K) is equatable are public core/cmp concepts (D273). A concrete key supplies both explicit conformances under [1340]; the child table does not synthesize its parent. Insert retains K and V through escaping parameters, and get returns V from map. Construction, insert, get, remove, length, capacity, entry enumeration and release comprise this bounded public surface; the growth and rehash operations remain private. entries() starts a cursor; next_entry receives the map and an inout cursor and returns an entry(K, V) from map, or reports end_of_entries. It follows only used bucket links in insertion order, at most length links across an unchanged map's complete walk, and never visits free or dead positions. Removing an entry unlinks it; reusing a tombstone appends it; rehash preserves the order. An empty or exhausted walk reports end_of_entries without reading a key or value. Reference-bearing entry fields retain the map origin; copying an entry does not detach its references. Scalar copies retain no reference origin [1910].

A cursor is a manually managed live-bucket position, not a checked association with one map or generation. Start a new cursor after mutation and do not transfer an in-progress walk to another map. Mutation invalidates the walk even when capacity does not change. The compiler's local reference checks remain in force, but do not enforce this cursor protocol.

map itself is a public struct composition. Its three storages, two counters and live-bucket head/tail are public fields. A module-private bucket identity and mem.storage's opaque raw representation do not encapsulate those fields: callers can use mem to reach the typed initialized K/V prefixes, including removed dense entries, and an inferred bucket view can copy or overwrite whole bucket values without naming their type. A caller that composes at this level must manually preserve equal capacities, a fully initialized bucket array, equal K/V prefix lengths, exactly one used or dead bucket with an in-range dense index for each prefix position, count/tombstone totals equal to the used/dead records, and a finite doubly linked walk through exactly the used records. The compiler neither enforces those map invariants nor supplies a deep-safety guarantee.

The semantic conformance contract, also not compiler-proved, requires equal to be reflexive, symmetric and transitive. Equal keys produce the same hash. Equality and hash results for every stored key remain stable until removal, including when the key contains a pointer or reference: mutation of anything reached through it must not change either result while the key is stored.

The starting table has eight slots. An absent-key insertion reuses the first dead bucket in its probe chain without a rebuild, using no new extent and keeping the three initialized prefixes within capacity. An absent key that would take a free bucket first meets the pressure check, in which tombstones count as live entries do: the table is rebuilt at its size, which empties the tombstones, while the live entries with the new key fit in half its capacity, and otherwise doubles after a checked maximum bound (D274). Without that check a single tombstone would let the table fill to its last free bucket and every miss probe all of it; without the half, a map churned just below its capacity would rebuild on nearly every new key. Lookup, removal and placement each probe at most capacity records and wrap without adding one to the final index. Placement records the first dead bucket until a free bucket or the probe bound is reached. Migration follows live links and probes the replacement at most capacity times per entry. Insert first performs a bounded search for an equal used key, remembering the first dead bucket and the first free bucket reached. If found, it replaces that dense value and returns before load pressure or any allocator call; if absent, it has changed no map state. Without a rebuild it inserts at the remembered bucket without probing again. When pressure requires a rebuild, it rehashes before probing the replacement table for placement. Thus an update after a preceding tombstone changes one value without changing length, duplicating the key or depending on allocation availability, and malformed full or all-dead records still terminate. Bucket selection first spreads the u64 hash with MurmurHash3's finalizer, so the shipped identity hashes of keys sharing a stride do not share low bits (D274), and reduces the result by the slot count before conversion to usize. For power-of-two counts, a u64(slots - 1) mask gives the same result as a remainder; other counts use the remainder.

Growth pressure has the meaning (length + tombstones + 1) * 4 > slots * 3, but computes the occupied count only after proving both additions against capacity and computes the three-quarter threshold from quotient and remainder. Neither side can overflow. Before the first provider effect, rehash checks the bucket, K and V byte products. It then acquires initialized buckets, empty K storage and empty V storage in that order, registering failure-only cleanup after each acquisition. All migration remains private. Any failure releases every acquired replacement and leaves the old map untouched. After migration, only an infallible constant-time clear, exact free and field publication steps remain. The success path frees each old extent once; release frees each current extent once and resets the map to its empty shape. Growth retains all three refusal and rollback positions. The live links add two usize fields per bucket and a head/tail pair per map. Insert appends and remove unlinks in constant time after finding the bucket; a complete unchanged walk follows exactly the live count, including when removal leaves most buckets dead. Bucket-position order was dropped because maintaining that order in a linked walk would require searching the live list on insertion.

Why dense prefixes: they use D151's existing honest raw-storage state machine without pretending sparse K/V slots contain values. A dead bucket's still-initialized K/V entry follows the language's manual element-resource contract, and its stable dense index makes tombstone reuse infallible after the ordinary invariant checks. The entry is the module's own since D354, and a dead one is counted by map.removed. Three independent extents preserve Z19's actual failure pressure and D197's six-live-slot allocator case. Reusing dead buckets keeps capacity and metadata bounded under churn without repeatedly acquiring replacement extents. A table may retain dead entries until growth or release; absent lookups still probe at most capacity buckets. Growth retains the three-acquisition transaction and its failure atomicity. Enumeration uses one position rather than a snapshot allocation or per-map generation metadata.

The alternatives: sparse initialized K/V slices recreate Z8's false type claim and would require K and V to be zeroable. One allocation evades rather than answers the three-stage rollback case and complicates independent generic alignment. Stopping at the first tombstone duplicates a later equal key. Unbounded loops rely on load policy to hide corrupt/full termination. Wrapping load-factor products and narrowing the hash before modulo make valid behavior target-accidental. All are declined.

Pinned by runtime/r420-map-operations, runtime/r420-map-failure-rollback, runtime/derived-containers, negative/r470-container-entry-live-map, negative/r470-container-entry-wrong-from, negative/core-map-missing-parent-conformance, negative/core-map-key-frame-escape, and negative/core-map-value-frame-escape. Runtime evidence includes pointer K/V, collision wrap, churn, rehash, full and all-dead bounded probes, failure at acquisitions one/two/three with zero/one/two rollback frees, reclaiming-provider retry, exact old/new frees and final zero live allocations. At six-of-eight pressure, an existing-key replacement under a zero allocation budget leaves provider attempts and map length unchanged. Repeated remove/insert churn on an arena leaves its used byte count unchanged. The complete derivative additionally pins dead-bucket reuse without arena growth, all three growth allocation refusals and retries, and live-only scalar and pointer entry walks, including empty and repeatedly exhausted cursors. The two entry negatives preserve live-map and exact-source refusals.

D199 — Text conversion preserves carriers and validation has checked and trapping edges

The tour and prototypes said that [0600] gives utf8, utf16 and cstring identities distinct from their representations, that [0310] ordinary explicit conversion traps when a runtime value cannot be converted, and that foreseeable data faults use declared errors. Prototype 4 needs runtime file and C text, exact equality, substring matching, decimal parsing and bounded output. They did not say which representation conversions exist, where UTF-8 is validated, whether C text is already valid by construction, or what happens to empty-view origins and partially written output.

Chosen: ordinary explicit conversion admits exactly these four source-derived reference conversions:

Source Destination Runtime work
immutable ordinary []u8 utf8 validate shortest-form UTF-8
utf8 immutable ordinary []u8 none
cstring immutable ordinary []u8 scan to the first NUL
cstring utf8 validate while measuring to the first NUL

Each result retains the source base, the source-derived origin and immutable permission. A length-bearing result retains the source length or the measured pre-NUL length. In particular, converting an empty non-null slice or an empty C string keeps that actual base and origin; it does not substitute the canonical empty-slice datum. The matrix is descriptor-exact: a mutable byte view is not itself a conversion source or result, though ordinary call argument weakening may pass it to a library parameter declared []u8. A one-atom optional cstring is a pointer union rather than a cstring source; it must be matched, after which the present ptr binding retains the exact C-text view and may be converted. There is no conversion involving utf16, no byte- or UTF-8-to-C conversion, and no pointer-to-cstring conversion. An ordinary pointer supplies neither a first-NUL promise nor an extent.

The byte-to-utf8 edges accept ASCII, embedded U+0000 and shortest-form two-, three- and four-byte sequences. They reject stray continuations, truncation, C0/C1 overlong leaders, overlong E0/F0 sequences, UTF-16 surrogates, values above U+10FFFF and leaders above F4. Direct conversion traps synchronously through the existing checked runtime mechanism, including inside unchecked; it declares no atom error. Conversion evaluates its source exactly once and introduces no copy, allocation, mutable alias, backend opcode or core-module privilege. If evaluating that source leaves the enclosing control flow, no carrier load, store, scan or validation follows.

A cstring is the read-only byte carrier published by a foreign C-text boundary. Its pointer must have accessible backing through a first NUL byte, but its pre-NUL bytes are not thereby promised to be valid UTF-8. Scanning to ordinary bytes does not decode them. Direct cstring to utf8 conversion validates each sequence while measuring the prefix: a NUL ends the text only between sequences, and a NUL in place of a continuation makes the sequence truncated. Thus C2 00 yields a one-byte ordinary view but traps when converted to utf8; bytes after the first NUL are unobserved. Literal pooling remains stronger: D181 constructs valid encoded bytes and appends its own terminator. D184 traversal validates foreign C text before each scalar decode and traps on malformed encoding, even in unchecked, without reading beyond the first NUL. Inaccessible storage or a missing terminator remains [0430]'s pointer validity non-guarantee.

core/text.from_bytes and core/text.from_c are ordinary source routines which validate first and report the declared invalid_text atom instead of entering the trapping conversion on malformed input. Their successful utf8 from source results retain the actual input origin. from_c first uses the ordinary scan conversion and then the same byte validator. core/text.bytes is the infallible utf8 representation view. equal and contains compare exact encoded bytes without normalization, locale or grapheme policy; contains considers the empty sequence present. Shortest-form validity makes exact byte equality equivalent to equality of the represented scalar sequence. contains uses a Two-Way byte search: critical-factorization preprocessing and matching take worst-case time proportional to the combined byte lengths of source and sought, with constant scratch storage and no allocation.

to_u32 accepts one or more ASCII decimal digits, including zero and 4294967295. Empty input and a nondigit report invalid_number; a value above the u32 maximum reports number_overflow before multiplication or addition could trap. write_byte and write_u32 write into a caller-supplied initialized []mut u8 and return the next usize offset. They report no_space; the complete capacity check precedes the first mutation, so a refusal preserves both the caller's bytes and its separate used count. written returns the bounded immutable prefix from its source. No helper allocates or silently truncates.

Prototype 4's config.build therefore recovers or propagates every fallible from_c call. Its escaping args parameter and config from args result remain necessary because successful adapters preserve argument origins. match_keep applies from_bytes to arbitrary file bytes and treats invalid_text as no match; it does not invoke a trapping conversion. Malformed --every encoding is handled separately from a valid UTF-8 value which is not an accepted decimal.

The alternatives: representation inheritance would erase exact text identity and admit mutable or wrong-element views. Treating every cstring as prevalidated would make a foreign boundary silently promise what from_c is meant to diagnose; validating before publication would instead move that recoverable policy into every host adapter. Pointer conversion would invent an unbounded scan contract. Literal-only helpers would not serve runtime input. Returning a copied or canonical empty value would lose origin, and a backend text opcode or core-name exception would make ordinary conversion depend on library spelling. All were declined.

Pinned by runtime/text-ordinary-conversions, runtime/cstring-first-nul-validation, runtime/cstring-traversal-invalid-traps, runtime/text-conversion-invalid-traps, runtime/text-conversion-overlong-traps, runtime/text-conversion-out-of-range-traps, runtime/text-conversion-truncated-traps, runtime/text-conversion-operand-exit, runtime/core-text-runtime-helpers, negative/text-conversion-exact-identities, negative/text-conversion-mutable-source, negative/text-conversion-optional-cstring, negative/pointer-to-cstring-conversion, the retained hosted text, range, indexing and traversal fixtures, and the text.conversion guarantee row. The C fixture publishes its argument through an ordinary external cstring result, then uses the existing explicitly unsafe integer-pointer round trip to install C2 00 and a later ignored byte; it does not add a pointer-to-cstring conversion.

D268 — The I/O capability is four narrow concepts and their composition

Amended by D2050. io.writer_of, its adapter and lent_writer left once an any io.world converted to any io.writer (D1949, D1952); a routine holding only the world passes it where a writer is wanted. The rest stands.

The tour said [1660] that Io is a concept so another provider can satisfy it, and [1260] that a concept is not widened to fit its hungriest implementation: there are two concepts instead. D153 then gave core/io one world concept with eleven entries, and D154 made a streaming log hold an erased world to call write. A sink that can only write, a UART or a bounded buffer, had to implement open, close, identity comparison, read and the argument table to be a diagnostics destination.

Chosen: core/io declares four concepts over one provider type. writer is write and write_some; reader is read; files is open_read, open_write, same_file and close; process is input (D285), out, err, argument_count and argument. world is the empty composition of all four [1340], so a root that has everything still passes one any io.world and world.write on it reaches the writer entry through D147's flattened table. Each free function in core/io is constrained by the narrowest concept it calls. core/io.memory and hosted/system.system conform to all five, the fifth with an empty body. core/diag.stream takes ptr any io.writer, and since D288 takes any io.writer by value. Because any C has direct-concept identity (D145), an erased world is not an erased writer; a root builds the writer from the same provider pointer in typed context, the address of the same handle binding since D288, and a routine holding only any io.world lends its writer through io.writer_of, a private adapter that forwards both entries; since D288 it takes the erased world by value, holds a copy of it and is from it. This is the library case E2 waited for, and it confirms [1260]: the concept split rather than widened.

The alternatives: keeping world whole and letting diag demand it makes every sink a filesystem. Splitting only writer out leaves reader-only images and argument-only roots to split again later. Making writer a stream object whose self is the destination, as Zig and Rust do, would double the surface with a handle wrapper and move the file argument into every provider; the handle-based entries are kept and the split is by concept. Converting any io.world to any io.writer implicitly would need the any subtyping D145 declined.

Pinned by runtime/library-io-writer-only, runtime/library-io-writer-adapter, runtime/diagnostic-loggers-dispatch, runtime/derived-hosted-memory, negative/core-diag-frame-world-escape and the erased conformance register.

D269 — Library interfaces share one spelling

The tour said nothing about how modules name their operations, and the library grew three conventions: new_list, new_map, new_tree, new_region, new_log and count_down beside small.new and mem.new; release, release_map, release_region and drop_bytes; vec.out_of_bounds, diag.out_of_bounds, mem.uninitialized, vec.empty, small.empty and mem.raw_empty for two conditions.

Chosen: a module's principal type is constructed with new, a view over caller-supplied bytes or records with over, which since D288 also makes a service's handle from the state its caller declares, and a container's storage is given back with release. core/mem keeps new/delete for one allocated item and new_bytes/delete_bytes for a byte buffer; its raw-storage pop is withdraw. Accessors are unprefixed unless one module holds several types, as core/mem does with arena_used. core/mem declares out_of_bounds and empty, and every core container fails with them: raw storage, the vector, the spill list and the bounded log. Key lookups keep map.missing and tree.no_such_node, because a missing key is not a bad index. [1850] admits the same name in different modules; qualification tells vec.new from map.new. The index and emptiness atoms are the containers': a provider concept that lends by index or by name keeps an atom of its own, so io.argument_at fails io.no_argument, and io.variable_at and io.variable_named both fail io.no_variable, since a provider has no initialized prefix to be past and its caller asks one question, whether the provider has the thing. D1032 adds the names of handles that borrow nothing.

The alternatives: per-module atoms let small translate vec.empty into small.empty by hand and gave a caller four atoms for one mistake. Type-named constructors read well in isolation and differently in every module. Both were declined; a convention that has to be looked up is not one.

Pinned by the runtime/library-shared-* consumers, one per core module, runtime/library-at-references, negative/core-mem-used-live-release and negative/core-mem-bytes-live-drop.

D270 — The library ships the evidence its own keys need

The tour said [1280] that conformances may be declared anywhere, that two for one key are an error, and that a different reading goes on a distinct wrapper or is passed explicitly. It left every program to declare eq, hash and less for u32 before it could use a map or a sort, and eight fixtures and the derived containers did.

Chosen: core/cmp (D273) declares equatable and hashable for the ten integer scalars, bool and []u8, and ordered for the ten integer scalars; core/text declares utf8 as equatable, hashable and ordered, importing it. A scalar hashes its two's-complement bits widened, computed without a narrowing conversion, and byte slices and utf8 their bytes; the hash was the bits themselves and 64-bit FNV-1a until D1360 keyed both with SipHash-1-3 under a seed. utf8 orders byte-wise, which for valid UTF-8 is scalar order. Floats are excluded: IEEE equality is not reflexive for NaN, and hashing raw bits would give different hashes to equal signed zeros. There is one register and no override (retained position RP2), so a program that re-declares u32 is cmp.hashable is refused as a collision, and another reading of a shipped key goes on a distinct wrapper with its own evidence, which is what the colliding-hash fixture now does. D1031 ships the evidence of core/time's and core/net's key types in those modules.

The alternatives: leaving scalar evidence to each program kept the smallest map use at forty lines. A weak library conformance that a program could override is retained position RP2's rejected shape. Deriving evidence in the compiler is a language change the roadmap does not schedule.

Pinned by runtime/library-builtin-keys, runtime/library-builtin-evidence, negative/library-evidence-collision, runtime/r420-map-failure-rollback, runtime/core-vec-used-sort and the conformance register.

D271 — get copies and at lends a writable slot

The tour said [0790] how a returned reference names its source and [0800] that the source binding is locked against inout and sink while the reference lives. The containers returned items by copy only, so a large item was copied to be read and a stored item could not be updated in place.

Chosen: the vector, spill list and map keep get as a copy and gain at, which takes the container inout and returns ptr mut item from value, failing with the same atom as get: vec.at, spill.at and map.at; core/tree's node is private, so a slot into it would be useless outside the module. The slot is reached through the initialized view, so the result keeps the container's origin and [0800] locks the binding until the slot's last use; a push, insert, remove or release while it lives is L0315. vec.last, map.contains, map.clear and map.reserve complete the surfaces the consumers reach for.

The alternatives: making get return the reference would lock the binding on every read and change every caller. A set taking a value would cover assignment but not update through a pointer. Both were declined.

Pinned by runtime/library-at-references, runtime/library-map-reserve-rollback and negative/library-at-live-inout.

D272 — A closed set of named values in the library is an atom set

The tour said [0630] that an atom is its own value and type, and [0640] that an enumeration is a union of atoms. D154 nevertheless carried core/diag's severity as a u8 with warning 0 and error 1, and D198 the map's bucket state as a u8 with three named codes: when they were written an atom could not be a struct field, and D216 has since made it one.

Chosen: diag.warning and diag.error are atoms and diag.severity is warning | error. The log concept's note receives it through erased dispatch, a bounded entry stores it, severity_of returns it and a match over it must cover both. An atom has no zero image, so the bounded log builds each entry whole rather than from zeroed; the entry's size is unchanged on every target, the four-byte atom carrier taking padding the byte left. The map's private bucket state is the atom set slot_free | slot_used | slot_dead for the same reason, with no change to its public surface.

The alternatives: keeping the byte saves no storage, since both records pad to their usize fields either way, and lets any integer pass as a severity. An encoded union (warning = 0 | error = 1) would fix the codes for a packed image, which no consumer asks for.

Pinned by runtime/library-diag-severity, runtime/diagnostic-loggers-dispatch, runtime/library-io-writer-only and the map consumers of D198.

D273 — The comparison concepts are a module of their own

The tour said [1270] that which concepts exist is the standard library's business. D198 put equatable and hashable in core/map and D270 ordered in core/sort, so core/text imported a hash map and a sort to say that utf8 compares, every program reaching text reached both, and a later key type would have had to import the container to describe itself.

Chosen: core/cmp holds equatable, hashable is equatable and ordered, together with D270's shipped evidence for the integer scalars, bool and []u8. core/map, core/sort and core/text import it; the map and the sort constrain on cmp.hashable and cmp.ordered, and core/text declares utf8's three conformances against it. The concepts keep their declaration order, so retained evidence positions do not move, and the register is unchanged: a program that names one of these concepts imports core/cmp and with it every shipped conformance, so a re-declaration is still D270's collision. It is a shared module with its own consumer on every target.

The alternatives: leaving the concepts with their first consumer couples every comparable type to a container. Splitting equality, hashing and order into three modules separates what one key declares together. Re-exporting the concepts from core/map and core/sort would need a re-export the module system does not have [1450].

Pinned by runtime/library-shared-cmp, runtime/library-builtin-evidence, negative/library-evidence-collision, negative/core-map-missing-parent-conformance and the debugger's container workload, whose evidence entry now stops in core/cmp.

D1316 — A library module leaves the device-class nouns to a program's drivers

The tour said at [1850] that two imports with one final segment are refused, and the library's convention writes no alias. Naming the serial-line module, the natural core/serial was ruled out because every board port's driver module is its own serial, and core/uart because the derived driver's is uart; nothing written down said how a library module's name should keep clear of a program's.

Chosen: a core, hosted or platform module is not named by a bare device-class noun, serial, uart, usart, spi, i2c, gpio, timer, adc, dac, dma, pwm, rtc, usb or watchdog, the names a firmware program gives its own drivers and a device description its peripherals, but for what it holds: the line settings and divisor arithmetic of D955 are core/line. the core library's own README states the rule in its interface conventions, and a full check.py refuses a library module directory with one of those names.

The alternatives: an endorsed alias convention for the collision, which puts the cost on exactly the programs that use both modules and makes the library's own examples and fixtures write aliases it otherwise never writes; and a rule with no list, which leaves the next module's author to rediscover which names drivers take.

Pinned by scripts/tests/test_check_controls.py's LibraryModuleNames.

D1317 — A library documentation comment is at most 79 columns

The tour said nothing; refine fmt breaks no line and keeps a comment's bytes, and check.py held a library comment to its adjacency, its names and its sides, not its width, so --- lines of 100 to 133 columns stood in hosted/blocking, hosted/events, core/io and its fake network, and twelve of 80 to 87 columns were left after they were rewrapped.

Chosen: a --- documentation comment line in core, hosted or platform is at most 79 columns, counted in characters with its indentation and its marker, the width the compiler's own Ada sources keep; a full check.py refuses a longer one, naming the line, and the twelve were rewrapped within their paragraphs. docs/format.md says that the layout itself holds a comment to no width and a program's comments are its own. Ordinary -- comments are not documentation and are not held.

The alternatives: a width refine fmt holds every comment to, which would make the formatter break or refuse lines it now keeps byte for byte, a change to its one rule that it never changes a comment; 100 columns, which the long lines met and a side-by-side reading of two sources does not; and no width, which docs/format.md would then have said.

Pinned by scripts/tests/test_check_controls.py's LibraryCommentWidth.

D274 — The library says what it does

The tour said nothing about the library's names beyond [1270]'s "the standard library's business", and D269 wrote down construction, release, get, at and the shared atoms. Reading every public declaration as a user would found names that said something other than what the declaration did, a facility that existed twice, two adjectives among the module names, a hash map that one removal kept from growing, and doc comments that disagreed with their source.

Chosen: a module is named by a short noun or a conventional abbreviation. core/small is core/spill, whose type is spill.list, and core/failing is core/fault, whose type is fault.injector. core/mem.failing, a bump arena with a budget that counted only successes, is withdrawn: fault.new over mem.arena_over, fault.over since D288, is the one injector, and its budget spends a permit on every call that reaches the provider, including one the arena refuses.

A name says what the declaration does. mem.reserve, a view over caller bytes, is mem.storage_over, so that reserve always allocates; mem.initialized is mem.length; raw_full and raw_not_empty are mem.full and mem.not_empty; transfer_zero_prefix is transfer_prefix for any item size, and drain_zero_prefix is mem.clear. The equality entry is equal, beside less, and text.eq is text.equal. text.ordinal, a byte offset that would index utf8 as a scalar count, is text.offset; text.at, which lends nothing, is text.cursor; text.written is text.prefix and reports past_end. diag.note_at, a copy, is diag.get; diag.to is diag.stream; diag.stored is diag.length. The pool's counters are allocations, frees and rejected_frees, so frees no longer reads as the number of free slots.

The map's capacity is D269's room: the entries that fit before the next new key rebuilds the table, three quarters of its slots. A new key taking a free bucket meets the pressure check with tombstones counted. The table is rebuilt at its size while its live entries with the new key fit in half its capacity, and grows otherwise, so tombstones make up at least half of any pressure that rebuilds in place and two rebuilds are at least half a capacity of operations apart. Hashes are spread with MurmurHash3's finalizer before reduction, since the shipped integer hashes are the identity. reserve(n) allocates the smallest table whose capacity holds n, and counts the tombstones as D379 says. Release clears a storage's prefix in constant time rather than withdrawing each item.

spill.list drops the zeroable constraint D152 had left with no effect, so it stores pointers and atom-bearing records. Public signatures spell the public alias of a private type. mem.aligned_offset, the bump arithmetic, and text.valid, the UTF-8 check from_bytes makes, are public; the hosted heap's state is opaque. A generic routine's signature that applies one of its own parameters as a type, as storage: storage(item) does, is L0304 at the declaration, called or not, as the same application in a plain signature is, and a name in it that names nothing is that signature's L0304 or L0201 rather than a failed match that let the program reach the lowering.

The alternatives: keeping both injectors leaves a user to learn that they count different things. Renaming only the misleading names leaves the convention to be looked up again. Re-exporting old names would need a re-export the module system does not have [1450]. A map that rebuilt on every tombstone would allocate on each steady-size remove and insert, which reusing a dead bucket on the key's own chain avoids. Growing only when the live entries alone fill the table would rebuild a map churned one entry below its capacity on nearly every new key, since one tombstone seldom lies on the new key's chain: each insertion would cost a whole table and three allocations, and an arena would never get them back.

Pinned by runtime/library-shared-spill, runtime/library-shared-fault, runtime/core-spill-pointer-items, runtime/r420-map-operations, runtime/library-at-references, runtime/core-mem-zero-prefix, runtime/core-mem-arena-boundaries, runtime/r480-arena-nested-exhaustion, negative/core-text-prefix-frame, negative/generic-signature-applies-a-parameter and negative/generic-signature-names-nothing.

D1031 — Spans, instants and addresses ship their comparison evidence

The tour said [1280] that conformances may be declared anywhere and that two for one key are an error. D270 shipped the evidence of the scalars, bool, []u8 and utf8 and no other. time.duration and time.instant are distinct u64s and net.address a record, so a sort of spans, and a map keyed by an instant or by an address, were L0318 until the program declared the evidence itself; and once a program, or two packages, had declared it, the library could not add it without making their programs D270's collision.

Chosen: core/time imports core/cmp and declares duration and instant equatable, hashable and ordered as their counts compare, each hash the count as u64's is. core/net declares address equatable by same_address, family, octets, port and zone, and hashable over the bytes that equality reads: a family byte, 4 or 6, the sixteen octets, the port high byte first and the sixteen zone bytes, with 64-bit FNV-1a until D1360 made it cmp.hash_bytes under a seed. An address has no order a program could rely on, so it is not ordered. Each type's evidence is in its own module, as utf8's is in core/text (D273), so a program that names the type has its evidence, and re-declaring any of it is D270's collision.

The alternatives: recording that only D270's types are shipped, which leaves every program keyed by time or address its own forty lines and the library unable to add them later; an order for addresses, family then octets then port, which reads as meaningful and is not; and the evidence in core/cmp, which would make the comparison concepts import time and the network.

Pinned by runtime/library-builtin-keys, which sorts spans and keys maps by instants and by addresses, a zone telling two apart; runtime/library-shared-time and runtime/library-shared-net, which reach the evidence through the concepts on every target, Cortex-M0 included; and negative/library-evidence-collision-time-net.

D1360 — A map hashes its keys under a seed, and the shipped hashes are SipHash-1-3

The tour said at [1280] that evidence is declared once, and nothing of what a hash may be keyed by. D270 hashed an integer as its own bits and bytes with 64-bit FNV-1a, and D198's map chose a slot from that hash alone, so whoever chose the keys of a map keyed by outside data could put them all in one probe chain and make each insertion and lookup take time in proportion to the map's size.

Chosen: cmp.hashable's entry is hash: (value: item, seed: hash_seed) -> (result: u64), and equal items hash alike under one seed. cmp.hash_seed is 128 bits whose form is the module's own, made by cmp.seed_from(first, second), SipHash's k0 and k1. cmp.hash_bytes is SipHash-1-3 (Aumasson and Bernstein, 2012) of a byte slice, and cmp.hash_word the same of a word's eight bytes, least significant first; every shipped conformance is one of them: an integer scalar hash_word of D270's widened bits, bool of 0 or 1, []u8 and utf8 hash_bytes, core/time's counts hash_word and net.address hash_bytes of the 35 bytes D1031's equality reads. The seed is a value, so core/cmp still imports nothing (D352). map.new(key, item, seed) requires one, the map keeps it across release and clear, and MurmurHash3's finalizer still spreads the keyed hash before a slot is chosen, for a program's own hash that is a key's value. random.hash_seed(provider, host) reads sixteen bytes of an io.entropy provider as two little-endian words, without a generator, so nothing drawn from one reveals it. A program without entropy gives seed_from two words of its own: a hardware random number or a device-unique ID where it has one, and a constant chosen for the build where it has not, which protects only while the image stays secret. There is no unseeded map. A walk follows insertion order, not slots, so a seed changes no walk and nothing a lookup finds; it changes which slots the keys take, and with them the probes and, after removals, whether a new key reuses a removed entry's slot or rebuilds the table, which slots, removed and capacity report and which allocations happen. A constant seed makes all of that reproducible.

The alternatives: SipHash-2-4, the authors' default and the only SipHash in their vectors.h, measured at this item at about 40 per cent more than SipHash-1-3 for a 16-byte key on every target, 9,318 against 6,670 instructions on Cortex-M0 and 239 against 169 cycles on x86-64, where 1-3 is what Rust's and CPython's tables use and no attack on table flooding is known; HalfSipHash-2-4, a variant with 32-bit words, which with this backend was slower than SipHash-1-3 on every target, 10,213 instructions on Cortex-M0 and 471 cycles on x86-64, and has half the key; keeping the unkeyed hash and keying only the map's spreading of it, which keeps FNV-1a's collisions, found without the seed; a second concept beside hashable, which leaves two evidence sets and the unkeyed one with no consumer; a hasher the entry feeds, which suits a composite key but passes its state in memory, which this backend ran 1.5 to 2 times slower; an unseeded constructor with a library seed, which is public and so the quadratic case again; and a seed whose fields are public, which a module binding could construct, declined so that the key's form stays the module's own. The cost is real: an integer key's hash went from about 300 instructions on Cortex-M0, the finalizer alone, to about 5,000.

Pinned by runtime/cmp-siphash-vectors, the 64 values the authors' reference siphash.c prints at one compression and three finalization rounds for the inputs of their vectors.h, on every hosted target, Cortex-M0, RV32 and Xtensa; runtime/map-seed-spreads-chosen-keys, 48 keys chosen to share one probe chain under a known seed that spread under another; runtime/map-seeded-from-entropy, a hosted map seeded by random.hash_seed; runtime/map-firmware-seed, a map given its seed on the firmware corpus lanes; and runtime/library-builtin-evidence.

D1032 — A handle that borrows nothing is new, and a second way to make one keeps over

The tour said nothing of names; D269 has a module's principal type constructed with new and a handle over caller state made with over. D972 added l1.caches(), a handle that borrows nothing named as an adjective, and D493 fake.clock_beside(state, start, wall, network), which fills caller state and returns a handle from it, beside the same module's network_over_turns; and D970's cache.cacheless(line) constructs a handle that borrows nothing.

Chosen: l1.handle is platform/cortex_m/l1's only type, so its constructor is l1.new(), as heap.new() and system.new() are. The fake clock beside a network is fake.clock_over_beside: over because it fills the caller's state, and a suffix saying what it adds, as network_over_turns does. events.new(state, entries) fills the caller's state and returns a handle from it, so it is events.over, as system.over and blocking.over are. cache.cacheless(line) keeps its name, since core/cache's principal type is the maintenance concept, which nothing constructs, and cacheless makes a second kind of provider, named for what it is, beside the cached ones platforms supply (D970, D972).

The alternatives: cache.new(line), which reads as constructing the concept and would leave a platform's provider no name of its own; clock_beside kept, the one constructor over caller state without over; and l1.caches() kept, the one handle that borrows nothing not called new.

Pinned by negative/cache-provider-cacheless, runtime/network-fake-turns-sleeper, runtime/derived-server-fake-turns, runtime/events-tcp-exchange, devices/consumers/stm32h753_cached and the cached board run (D975).

D1033 — A library name is public when a program has a use for it

The tour said [1410] that everything is private to its module unless it is marked public. The library had made public a buffer's size, a sanity bound and binding declarations no program and no other module used, and values and routines whose only use was their own module's.

Chosen: a library declaration is public when a program uses it: a routine or value a program calls or reads, and a type a program has to write to use the facility. Each has a consumer outside the library whose oracle checks it, or a module of the library uses it on behalf of a caller that has one. io.format_store, write_format's 128 bytes, and vdso.largest, kernel_image's mebibyte, are private, and their doc comments say the number; linux.thread_block_alignment and Darwin's posix_spawn_file_actions_addinherit_np, which nothing used since D378, are gone. stacks.prepare and stacks.switch stay public, being how a provider of a program's own runs fibres (D463), and the posix layer's errno numbers, masks and flags are held to the system's headers by the ABI fixtures that compare them.

The alternatives: keeping every name public that the library might someday want a program to see, which leaves a surface nothing checks; and making every name a program does not call today private, which would hide types a program names to declare state or match a result.

Pinned by runtime/fibre-turns-interleave, runtime/volume-memory, runtime/network-echo-memory, runtime/library-shared-line, runtime/library-platform-riscv, runtime/library-platform-xtensa, abi/posix-errno-numbers and abi/libc-file-facts.

D379 — A reservation counts the tombstones

The tour said nothing of a map's reservation, and D274 had map.reserve(n) allocate the smallest table whose capacity holds n and leave a table already that large alone, tombstones included, while its comment promised room for n entries without a growth allocation. A new key that takes a free bucket meets the pressure check with the tombstones counted, so a map reserved for six, filled and with one entry removed, was reserved for six again without a rebuild, and the sixth entry grew the table, or failed out_of_memory where no allocation was permitted.

Chosen: the promise is kept. After reserve(n), inserting new keys until length reaches n neither grows nor rebuilds the table, as long as nothing is removed in between. A table too small for n is replaced by the smallest whose capacity holds n, as before. A table already that large keeps its size, and is rebuilt at it when its tombstones and n together exceed its capacity, which drops the tombstones; otherwise it is left alone and nothing is allocated. Since a new key rebuilds once the live entries and the tombstones reach the capacity, n entries fit beside the tombstones exactly when the two together do. A rebuild in reserve is an allocation like any other: a refused one keeps every entry and tombstone. This amends D274.

The alternatives: weakening the comment to room before the next rebuild, which leaves a caller that removed entries no way to reserve without counting tombstones it cannot see; rebuilding on every reservation, which allocates a whole table for a map that already has room; and removing tombstones in place, which the probe chains of the remaining keys cross and which would have to rehash every entry anyway.

Pinned by runtime/library-map-reserve-after-removal, which reserves six, removes one of six entries, has a reservation of six refused and then granted, and inserts the sixth with no allocation permitted, and reserves five beside a tombstone without allocating; runtime/library-map-reserve-rollback and runtime/r420-map-operations.

D275 — The compiler finds its library beside itself

The tour said [1480] that the roots are the project, then the user's landin home, then the system-wide one, and the bootstrap paragraph narrowed that to the roots --root names: the compiler neither consulted a home nor inserted a system root. No installed compiler carried core, hosted or platform, so a program outside the repository compiled only with --root naming a clone of it, and with no root at all, D262 refused every import.

Chosen: the library ships with the compiler and the compiler finds it. An installation is a prefix holding bin/refine and lib/landin with the three namespaces in it; the flake's packages and the release archive are laid out so. refine asks the host for its own executable's directory, with links resolved, and takes the first of ../lib/landin and, for a compiler built in a checkout, the checkout six directories up that holds core. --library=DIR names another: a build that stages only the library modules it reaches, as the firmware lanes do, names its staged tree, so the sources it hashes and debugs are the ones compiled. A directory holding none of the three is refused as a bad root is. The library root follows every --root; an import of core, hosted or platform resolves from it alone, and one of anything else from the roots in their order. With no --root, the named files are still one module and reach the library and whatever it imports. A --root naming the library's own directory is searched once, under the user's spelling, so a build that names the checkout records the paths it always did. refine version and its JSON name the library, and the language server finds it the same way. A user's home root and every other default stay with the Companion tool and ecosystem. Since D366 a named root holding a module the library supplies is warned about, with --library as the way to compile against it.

The alternatives: an environment variable or a configuration file gives the same answer a second place to be wrong; a compiler built with the library's path compiled in breaks when the installation moves; letting a project root keep overriding core lets a program pair one compiler with another revision's library, which the compiler's hosted contracts and availability rules are not written against; and the library as an ordinary last root would leave a project's core in front of it.

Pinned by the driver case the library is found beside the compiler, the commands case version identity, the server case the library is found beside the server, negative/import-without-a-root-is-refused-there and scripts/tests/test_outside_user.py, whose script the gate runs against the packaged release compiler on Linux x86-64, Linux arm64 and Darwin.

D366 — A project root holding a library module is told the library supplies it

The discrepancy: D275 takes core, hosted and platform from the library alone, so a program checked under --root against an older core in that root was compiled against the bundled one and refused at its modules, with nothing naming --library as the route.

Chosen: when an import of the library is read from it and a named root that is not the library holds a directory of the same module path, L0016 warns once per module at the import that first reached it, naming the library's directory, the root's directory that was not read, and --library=ROOT as the way to compile against it. The program is compiled as D275 says; a root that is the library itself is searched once and is not warned about.

The alternatives: letting a project root override the library again, which D275 declined; a note on whatever refusal follows, which needs every stage to know about roots; and refusing the program, which punishes a project for holding a directory named core.

Pinned by negative/root-holding-library-module-is-told and the newcomer case a root holding the library is told.

D276 — The hosted operating-system boundary is library source

The tour said at [1650] that the hosted world keeps the C argument table, at [1660] that the entry mints host authority, and [1975] chose a selected C boundary rather than privileged host operations. D153 implemented that path as a compiler-emitted bridge: fixed _landin_host_* wrappers over libc emitted by each backend, a checker contract holding their source declarations to fixed types, argument cells the entry wrote, and the errno accessor's name, the open flags and the creation mode as facts in every backend.

Chosen: the compiler names no host routine but one. The public module platform/libc declares the C library beneath the hosted providers as ordinary extern(c) imports: open, variadic as C declares it, read and write returning isize, close, strlen, malloc returning an allocation union whose empty arm is the atom no_allocation, free, stat, and errno_cell, linked to __errno_location on Linux and to __error on Darwin and FreeBSD by fixed if compiler.os, which hosted/system reads on Darwin and FreeBSD. The errno constants eperm, enoent, eintr, eacces, erofs and enotdir (D287), the flags o_rdonly and o_wronly, the per-system o_creat and o_trunc, timespec, the per-system file_status record and file_status_size are source declarations selected by compiler.os and the C ABI and checked against each system's C headers. Like every hosted module it is refused on firmware (D267). hosted/system and hosted/heap reach the host only through it; the 0666 creation mode stays in hosted/system as provider policy. On Linux hosted/system and hosted/heap use platform/linux instead (D279, D282), and since D297 both reach the host only through platform/posix; every platform/libc declaration is bodyless, so a program naming none of them needs no C library.

hosted/system holds the argument root in two module cells, and since D288 the process's last-error cell in a third, and defines in source the public C routine _landin_host_initialize_arguments, whose signature is (count: i32, escaping values: ptr ptr u8) -> none, to which D311 adds the environment's table as a third parameter. D208's rules are unchanged: the first nonnegative-count, non-null-table call establishes the root without copying; an identical repeat is a no-op; an invalid call, use before initialization or replacement traps; the published count is max(argc - 1, 0) without argv[0]. Indexed lookup reads the argv entry by address and traps on a null entry. Each of these traps is the library's own compiler.unreachable() (D278), so a panic handler receives unreachable at a site in hosted/system where the bridge reported it at a synthetic site zero.

The compiler's one hosted contract is that call. When a hosted entry is selected and the program defines a C routine with the link symbol _landin_host_initialize_arguments, the hosted main calls it with its incoming argc and argv, and since D311 its envp, before its body. A program that defines none calls nothing, so a hosted program that never imports hosted/system links without it. Beside a hosted entry every declaration carrying that symbol must be exactly extern(c) (i32, ptr ptr u8) -> none, with escaping immaterial, or it is refused with L0347. The symbol is an ordinary default-visibility global rather than a hidden one, and a C-owned main still calls it explicitly. The names strlen, malloc, free, open, read, write, close and the errno accessor are no longer set aside for the backend: they are platform/libc's imports, and ordinary symbol allocation keeps a private Landin definition of the same spelling from capturing them.

The alternatives: keeping the bridge, which leaves the compiler owning libc's names, flags and errno spelling in three backends and a checker contract for each wrapper. Always calling the initializer as an import that may be undefined, which makes every hosted program link against hosted/system or fail to link. Keeping the argument root in platform/libc, which would put Landin policy in the module whose purpose is to transcribe C. Declaring libc privately in each provider, declined because one module gives each per-system fact one place.

Pinned by negative/hosted-initializer-referent, negative/hosted-initializer-permission, negative/hosted-initializer-optional, negative/hosted-initializer-result, abi/r440-native-startup-initialized, abi/r440-native-startup-empty, abi/r440-native-startup-uninitialized, abi/r440-native-startup-replaced, abi/r440-native-hosted, abi/r440-native-renamed-main, abi/r440-errno-interposition, abi/r440-errno-thread-local, runtime/r440-errno-detail, abi/core-io-file-identity and abi/darwin-varargs-stack-slots; the checking case hosted initializer source contract; the driver case hosted initializer refusals have no effects; the backend cases the hosted entry calls a defined initializer, C imports keep their names, C exports keep their link names, compiler-owned linkage is guarded and Darwin variadic tails take ordered slots; and the fixture execution case hosted library links and runs.

D277 — The hosted heap over-allocates in source

The tour said at [1360] that one allocator concept serves heap, arena and fixed-buffer providers. D195 gave the hosted provider its alignment and zero-size contract and implemented it as a fixed libc shim each backend emitted, holding the pointer-word width, the PTRDIFF_MAX test and the hidden header layout as backend facts.

Chosen: hosted/heap performs the same over-allocation in source over platform/libc's malloc and free (D276). It asks malloc for the request plus alignment - 1 bytes and one usize word, refusing with mem.out_of_memory before the call an addition that would overflow or a total above (0 -% 1) >> 1, the host's PTRDIFF_MAX. It aligns within the block and writes the address malloc returned into the word before the aligned block a byte at a time, because for an alignment that is not a multiple of the word the word is unaligned; release reads it back the same way and passes it to free. A no_allocation result is mem.out_of_memory. D195's contract is unchanged: every usize alignment is accepted, zero and one meaning byte alignment, and a zero-byte request returns a distinct non-null token. On Linux, D282 replaces this provider, and D300 replaces it on Darwin and FreeBSD too.

The alternatives: keeping the shim in the backends, which keeps a host allocator in the compiler; posix_memalign and aligned_alloc, declined as D195 declined them, because they admit only powers of two and the contract admits every alignment.

Pinned by runtime/hosted-heap-provider, abi/r440-native-hosted and the allocation.failure guarantee row.

D278 — An explicit trap is a compiler builtin

The tour said [1670] that a failed check calls a fixed, never-returning symbol, and [1960] that a trap stops at the operation. Only the compiler's own checks reached that path: library source had no way to say that a path must not run, so when hosted/system took over the argument root's startup contract (D276) it could stop only at an unrelated check, which reported bad_conversion where the bridge had reported unreachable.

Chosen: compiler.unreachable() on the toolchain module [1560], with no import and no keyword. It types as a call of a () -> noreturn routine: a statement, the value of an if or match arm, or the end of any path, and definite assignment, named results and noreturn bodies treat it as not returning. It takes no arguments; misuse is refused as the same misuse of such a routine would be, L0327 for an argument, L0331 for a value and L0329 for try or else, and naming it without calling it is L0203. Reaching it raises unreachable through D232 at its own numbered site, with the panic map entry a compiler check has, or the terminal default trap when no handler is selected. It is a statement and not a check, so unchecked never removes it. It is available on every target, firmware included. hosted/system stops on every misuse of the argument root with it.

The alternatives: an unreachable keyword statement would take a word from [1760]'s reserved set for a construct most programs never write; a core/panic routine backed by a hidden intrinsic puts a compiler privilege behind a library name and makes trapping need an import, in core too; and trapping through an ordinary check, a nonnull conversion of zero, reports bad_conversion at a site that names the trick rather than the contract.

Pinned by runtime/compiler-unreachable-dispatches, runtime/compiler-unreachable-ends-paths, runtime/compiler-unreachable-in-unchecked-traps, negative/compiler-unreachable-argument, negative/compiler-unreachable-value, the driver case an explicit trap has its own panic site, abi/r670-panic's startup modes and the Cortex-M corpus rows for the three runtime fixtures.

D1262 — A trap given a caller parameter is reported at that call

The tour said at [1560] that compiler.unreachable() stops the program as a failed check does, and D278 reports it at its own site. D436 noted what that costs a library: a helper such as require(condition) traps at the helper's line, the same line for every caller, and [1040]'s caller parameter, which knows the call, had no way to reach the report.

Chosen: compiler.unreachable(where), where where is a caller parameter of the routine the call is written in, given by its name alone as D192 has a forward be. It is the same () -> noreturn call in every other respect, and reaching it raises unreachable through D232 at the site of the call that filled where: the call that left the position out, however many wrappers forwarded it since. Anything else in the argument's place stays L0327, an ordinary parameter of the same struct, a copy, a field or a labelled argument among them, because D192 lets only the compiler make the value of a caller position and that is what makes the report sound. No handler, panic map, site number or backend changes: the compiler knows every call of the program that fills a position of that struct type, and the trap compares the three coordinates with each of them and stops at an ordinary trap whose site is that call's. A hosted program with no handler prints that call's file, line and column (D361); a selected handler receives that call's site number, on firmware as on a host. A value none of them wrote, which only code outside the language can put there, stops at the trap's own site. The comparisons are reached only when the program is already stopping, and they cost code in the trapping routine for each such call in the program.

The alternatives: handing the three coordinates to the panic handler, which changes D232's (kind, site) contract and the default handlers of every target for one builtin, and gives firmware a file number where it has a site; a second builtin, compiler.unreachable_at, which is a name for what the argument already says; letting any value of the struct type be given, which lets a program report a trap at a place no call was written; making every trap in a routine with a caller parameter report the caller, which takes the helper's own site from a routine that wants both; and a table of sites searched by a routine of the runtime, smaller where many calls fill one type, which adds a runtime routine and a datum to firmware that the comparisons do not need. That last one is the form to return to if the code this adds is ever measured as a cost.

Pinned by runtime/caller-site-trap, whose report names the call through a forwarding wrapper, runtime/caller-site-trap-dispatches, whose handler is given the call's site and which the Cortex-M corpus runs, and negative/compiler-unreachable-not-a-caller.

D279 — Linux's system interface is platform/linux, with no C library

The tour said at [1660] that the entry mints host authority, and [1975] chose a selected C boundary for the hosted world. D276 put that boundary in library source over libc on every hosted system. Linux, unlike Darwin and FreeBSD, promises its system-call interface itself, so a Linux program needs no C library to reach its kernel.

Chosen: the public module platform/linux declares Linux's system calls in source, inside fixed if compiler.os == linux. It declares nothing on Darwin and FreeBSD, and because Landin has no conditional import, hosted/system and hosted/heap import it on every hosted system. Each call is one ordinary assembly block: x86-64 syscall with the number in rax, arguments in rdi, rsi, rdx, r10, r8 and r9, and rcx and r11 overwritten; arm64 svc #0 with the number in x8 and arguments in x0–x5; RV64 ecall with the number in x17 (a7) and arguments in x10–x15 (a0–a5). rax, x0 or a0 carries the result. Its wrappers are read, write, openat, close, statx, mmap, munmap and the noreturn exit_group, to which D294 adds getdents64, mkdirat and unlinkat, a public raw system_call and every call's number. A failure is minus its errno in the result; there is no errno cell. The *at calls take at_fdcwd, and statx's file_status is the kernel's one 256-byte record on every architecture. Every public routine has the link name _landin_linux_ followed by its own name, so none of them replaces the C library's function of the same spelling when a program also links libc.

The module owns the process entry. _landin_start is a naked routine that clears the frame pointer (and the link register on arm64 and RV64), aligns the stack where the ABI requires it and calls _landin_start_main with the initial stack's address. That routine reads argc, argv, envp and the auxiliary vector after envp's terminator, keeps the environment and auxiliary roots for environment() and auxiliary(tag), and calls C's view of the program's entry: a bodyless extern(c) link(symbol: "main") of (i32, ptr ptr u8, ptr ptr u8) -> i32, which the checker admits beside the native hosted main as the same symbol. It ends the process with exit_group and main's result. No C library initialisation runs and no thread-local storage exists. Under --link=libc (D280) the C runtime starts the program, and the argument initializer passes platform/linux.adopt_start the argc, argv and envp C's main was given (D311). It takes the environment and the auxiliary vector after envp's null only when the tables have the initial stack's layout: argv above the calling frame, envp directly after argv's null, at least one string and every string above the tables, AT_NULL within 64 entries below the lowest string with every tag below 4096, AT_PAGESZ a power of two of at least 4096, and AT_RANDOM's sixteen bytes between the vector and the lowest string. Nothing above the lowest string is read. Otherwise environment() is no_environment, auxiliary finds nothing and page_size() falls back to 4096. The alternatives were the C library's getauxval, which a static link would refuse with L0500 since nothing tells the library its link mode; PR_GET_AUXV, Linux 6.4's; /proc/self/auxv, which needs /proc; and trusting any envp, which setenv may have moved and a C main may have built, sending reads into unmapped memory. abi/auxiliary-from-c pins the adoption and each refusal.

Naked routines are admitted on hosted x86-64, arm64 and RV64 for this entry. Their text is the routine's whole body followed by a trap, keeps [1990]'s uniform text rules except that it may transfer control, and takes no operands. Their CFI marks the return address undefined, so a debugger's stack ends at _landin_start.

The alternatives: keeping libc on Linux, a dynamic dependency and a runtime the language does not need. Writing the entry in the compiler, which repeats the bridge D276 removed. A target assertion to scope the module, which without conditional imports breaks hosted/system on Darwin and FreeBSD. Public wrappers under their C names, which would interpose on libc's read, write and close in a libc-linked program. All are declined.

Pinned by runtime/linux-system-calls, runtime/linux-process-entry, runtime/linux-process-entry-libc, abi/linux-file-identity, runtime/r440-errno-detail and the bottom frames of the Linux panic debugger sessions.

D418 supersedes the _landin_linux_ link names: under D415 no routine of the module but _landin_start and _landin_start_main is a global symbol, so none can replace the C library's, and each keeps its own name.

The tour said at [1650] that hosted main follows the system C ABI and at [1590] that the platform driver owns the hosted runtime's linkage. It left how a hosted executable is linked, and whether a C runtime starts it, unsaid.

Chosen: --link=static|libc chooses how a hosted executable is linked. Linux defaults to static: the driver loads platform/linux from the compiler's library (D275) and links with -nostdlib -static -no-pie -Wl,-e,_landin_start and -Wl,--gc-sections, with no C runtime object, no C library and no dynamic loader. --link=libc keeps the C runtime's link. Darwin and FreeBSD reach their systems only through their C libraries and link with libc, their only mode; --link=static there is a usage error, as is --link on a target with no hosted system or without --emit=exe or --emit=asm. A static request is refused with L0500 before any tool runs, naming --link=libc, when no library holding platform/linux was found, when the program asks for linker.library, or when it refers to a bodyless external symbol no program item defines. The refusal counts only what the entry reaches, since every backend collects per-item sections (D303), and names each missing symbol with the routine that refers to it, dlopen, which platform/posix's open_library refers to, so a program loading a library learns which of its calls asked for the C library (D336). -v, --dry-run and the build report name the mode. An emitted .s under static mode includes platform/linux and still links under a C driver. refine check gives the refusals of a C library asked for and of a C symbol nothing defines, as compiling does (D443).

The alternatives: libc as the default, which leaves every Linux executable a dynamic dependency it does not use. Letting the linker report undefined C symbols, whose message names neither cause nor remedy, and for which a missing entry symbol is only a warning. Inferring the mode from what the program imports, which silently changes a program's link when an import changes; the maintainer chose the explicit option for this reason.

Pinned by end-to-end/link-static-dry-run, end-to-end/link-libc-dry-run, end-to-end/link-static-unsatisfied-c-import, end-to-end/link-static-linker-library, end-to-end/link-static-needs-linux and end-to-end/link-needs-hosted-system; the toolchain case a static Linux link has no C runtime; and the driver cases a static link needs platform/linux and a static link starts at platform/linux.

The tour said at [1550] that Landin emits assembly for the platform's assembler and linker, and the driver wrote OUTPUT.s beside every executable as that input and left it there, which the README's first program did not mention; an edited copy could be linked only by copying the link line -v -v printed.

Chosen: on a hosted target the assembly is removed once the link has run, whether it succeeded or not, unless --keep-asm asks to keep it, or a source map is written beside the executable (--debug, --panic-map or caller coordinates), since the map names that assembly by its hash and is resolved against it. Firmware keeps it with the object, linker script and map its link writes beside the image, which its build report reads. --keep-asm belongs to an executable; with --emit=asm or --emit=ir it is a misuse. A dry run says remove after the link it plans.

refine compile PROGRAM.s -o PROGRAM links one assembly file as a compiled program's assembly is linked: the same driver choice, the same arguments for the request's --target, --level, --link, --linker and --debug, and the same protection of an existing executable and of the operand itself. A file is assembly when its name ends in .s; it must be the one operand, without --root, and options that describe compiling Landin source (--optimize, --specialize, --build-mode, --option, --build-report, --stage-report, --stack-report, --panic-map, --depfile, --firmware-entry and --keep-asm) are refused with it. The operand is never read by the compiler and never removed. A program's linker.library archives are not recorded in its assembly, so an assembly file is linked without them.

The alternatives: keeping the assembly and documenting it, which leaves every first compile a file the reader did not ask for; writing it to a temporary directory, which moves the protection of an existing file and the assembler's messages, which name the path, somewhere the reader cannot see; and a separate link command, a second interface for what compile already does after emission.

Pinned by the newcomer cases assembly is kept only on request and an assembly operand links, end-to-end/link-static-dry-run and its siblings' remove line, and compiler/tests/test_native_report_identity.py, which finds no assembly after a failed link.

Amended by D2427. On a FreeBSD host its own target tries the base system's cc after the triplet's Clang.

The tour said at [1590] that the platform driver owns the hosted runtime's linkage, and Landin.Backend.Toolchain named one driver per target, the pinned image's x86_64-pc-linux-gnu-gcc, with no fallback. Debian and Ubuntu install x86_64-linux-gnu-gcc and Fedora x86_64-redhat-linux-gcc, so a release archive unpacked on a stock distribution refused its first executable with L0500; and that refusal came before the program's own, so a static link that needed a C symbol sent its reader to install a toolchain only to be refused again.

Chosen: with no --toolchain, a Linux target tries, in order, the target's own triplet driver, MACHINE-linux-gnu-gcc, MACHINE-redhat-linux-gcc and the pc or unknown vendor's spelling, each a GCC that drives the assembler and linker for that machine alone, and then gcc only when the target is the compiler's own host (D257), where the host's GCC is a driver for it; a cross target never falls back to the host's compiler, which would assemble for the wrong machine. It is gcc and not cc because the link passes the GNU assembler's options. The first one the host can start is the one run; a dry run names it, or the first looked for when none can be. --toolchain=NAME is still the only one tried. Darwin keeps Apple's /usr/bin/clang and FreeBSD its triplet's Clang; D532 gives Cortex-M its two names.

Whether a driver can be started is asked once the program is known to need it, after every refusal of the program itself, D280's static refusals of a C symbol, linker.library and a missing platform/linux among them, and before anything is written. A target that names no driver is still refused before any source is read. With none found, L0500 names every driver looked for and what to install: the distribution's GCC on the compiler's own host (apt install gcc, dnf install gcc), its cross compiler for another Linux machine (apt install gcc-aarch64-linux-gnu), Apple's command line tools on Darwin, and the Arm embedded GCC for Cortex-M.

The alternatives: a bare cc for every target, which can hand ELF assembly to the wrong machine's assembler or to a Clang that refuses the GNU assembler's options; asking gcc -dumpmachine which triplet a host has, another process on every compile for what four names cover; an installation step that links a pinned name, which a newcomer has to find first; and keeping the early check, which tells a reader to install a driver for a program the static link refuses anyway.

Pinned by the newcomer cases linux names every distribution's driver, a stock driver links, a missing driver says what to install and a static refusal precedes a missing driver, and the gate's outside-user-stock job, which runs scripts/outside_user.py --stock on a stock Ubuntu with only its own GCC and fails if the pinned driver is reachable.

The tour said nothing about which program finishes a firmware image; D364 named arm-none-eabi-gcc for Cortex-M alone, the Arm embedded GCC Debian's package installed for the lane. The lane now uses GNAT's arm-elf archive from the release the host GNAT comes from, which pins Cortex-M's GCC, binutils and every multilib from ARMv6-M to Armv8.1-M with MVE beside the host toolchain, on each host the host toolchain has. Its driver is arm-eabi-gcc, the same bare-metal GNU configuration under the triplet without a vendor field, and the GCC a newcomer installs from Debian, Ubuntu, Fedora, Homebrew or Arm is still arm-none-eabi-gcc.

Chosen: the Cortex-M toolchain identity is arm-eabi. With no --toolchain, a Cortex-M link tries arm-eabi-gcc and then arm-none-eabi-gcc, and runs the first the host can start, as D364's Linux candidates are tried; a dry run, -v and the build report name the one run. --toolchain=NAME is still the only one tried. With neither, L0500 names both and what installs each: a distribution's package, or the arm-elf archive. The archive's GDB is built without Python, which the debugger sessions run, so the lane keeps its pinned gdb-multiarch and QEMU.

The alternatives: arm-eabi-gcc alone, which refuses the GCC every distribution installs until its reader finds the flag; arm-none-eabi-gcc alone, so that the name refine looks for first is never the one the gate links with; and keeping the lane on Debian's package, a second publisher with its own version on Linux x86-64 only, which no other host can run.

Pinned by the newcomer case linux names every distribution's driver, which holds the two names in order, the named driver alone and the advice; the cortex ABI case capabilities and refusals, which holds the toolchain identity; the Cortex-M lanes, which link with the pinned archive; and the gate's outside-user-stock job, which links firmware with Ubuntu's gcc-arm-none-eabi while the pinned driver is unreachable.

D615 — A float unit is a fact of a description, and features read it

The tour said nothing of floating-point hardware; D255 made a CPU feature level a set of instructions that changes no layout and no ABI, and D542 made a device a description of its core, memory and vectors. The Cortex-M7 of the STM32H753 and QEMU's mps2-an500 has FPv5-D16, single- and double-precision registers whose use changes the C ABI: AAPCS32's VFP variant passes floats in them, so code built with the unit does not link with code built without it. A level cannot say that, since every level of a family shares one ABI (D255), and a chip can have a core without its unit.

Chosen: the hand-written half of a description, memory.ldn, may hold compiler.float_unit("NAME"), once, at module level, as every directive of D542's table is; refine svd does not write it, since an SVD's fpuPresent says neither the unit nor its precision. The compiler knows float units as facts of a core and never of a chip: a cortex-m7 may have fpv5-d16, and that is the one unit refine builds. Any other name, or a unit its core cannot have, is L0545, whose note says what refine builds and what the core may have. A description with a float unit is built at the level whose architecture holds the unit, armv7e-m for fpv5-d16, and at no lower one, since the unit's ABI is the build's: --level=armv7-m or armv6-m is L0546, naming the level. D543's lower levels stay for a description with no unit.

A program reads the unit as compiler.feature.fp and compiler.feature.fp_dp, fixed bool facts that hold when the selected description's unit has single, and double, precision: both for fpv5-d16, neither for a description without a unit, the constrained reference among them, or on a target with no descriptions. This amends D255, whose features all came from the level: these two come from the description, and no level holds either. A description is selected by import and its directives stand outside every fixed arm (D543), so configuration finds it and reads its unit before it evaluates any option or fixed condition; the unit's argument is a text literal, so no fixed expression can depend on the facts it gives and there is no cycle to refuse.

The alternatives: a level per unit, armv7e-m+fp.dp, which makes a level change the ABI and lets a build select a unit its chip lacks; reading the unit from the core, which assumes every Cortex-M7 has a double-precision unit when ST, NXP and Microchip each sell ones without it or with a single-precision one; generating the directive from the SVD, which says only that some unit is present; and a feature fact read late, after the program's own fixed arms, which would let a declaration be selected by a fact whose value changed after it was read.

Pinned by negative/description-float-unit-unknown, negative/description-float-unit-core, negative/description-float-unit-level, and the cortex ABI case device descriptions select their profiles, which holds both refusals, the repeated and conditional directive, and the facts read by an option, a compiler assertion and a fixed arm of a program whose description has the unit, one whose description has none and the reference.

D616 — A float unit selects AAPCS32's VFP variant, for C and for Landin

The tour said nothing; docs/targets.md's Cortex-M0 planning passed every float in core registers, "soft-float values use core bit carriers", and D615 gives a description a unit whose registers the C ABI uses.

Chosen: a program whose description has fpv5-d16 uses the VFP variant of AAPCS32, hard float and not softfp. In the C convention a VFP candidate is an f32 or f64, or a composite of one to four members all of one of those types, nested aggregates and arrays included. Each candidate takes the lowest-numbered run of free registers of s0-s15 that holds it, a double or an aggregate of doubles an even-aligned run, so a single back-fills the slot a double's alignment left. Once a candidate finds no such run every VFP register is unavailable, the candidate goes to the stack at its own alignment, and no later argument takes one, even a single that would fit a slot left free. Candidates consume no core register; everything else is placed in r0-r3 and on the stack exactly as before, sharing the stack with the candidates in argument order. A candidate result is returned in s0 or d0, an aggregate in s0-s3 or d0-d3 whatever its size; any other composite result keeps its r0 or hidden-address placement. A variadic call uses the base PCS throughout, its fixed arguments included. s16-s31, d8 to d15, are call-preserved, and s0-s15 and FPSCR's flags are call-clobbered.

The internal Landin convention uses the same bank for its own floats: an f32 or f64 parameter is placed as the C convention places it, and an f32 or f64 result is s0 or d0; aggregates, arrays and multiple results stay by address in core registers, and r12's outcome is unchanged. Backend.Arm32_ABI plans both, its locations naming the first single slot and how many a candidate takes. D920 enables C interoperation on Cortex-M, so the C half is the convention every C signature of a program with the unit uses, still measured against GCC as below; D922 leaves the variadic call the planner places unused.

The alternatives: softfp, the unit's instructions with the base PCS's transport, which links with soft-float objects and moves every float through core registers at each call; the internal convention keeping core carriers while C uses the bank, which needs a move at every boundary and a second planner; and back-filling after a candidate has gone to the stack, which AAPCS32 forbids and GCC does not do.

Pinned by the cortex ABI case layout and transport contract, whose vfp. rows of compiler/tests/cortex-m.contract place back-filled singles, aggregates of floats and of doubles, a stack fallback that leaves s1 free, a variadic call, a composite of five floats and the internal convention, and name s16-s31 as preserved; and environments/cortex-m/abi.py, which compiles a C caller with GCC at -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16, runs it on QEMU's mps2-an500 against hand-written endpoints that record r0-r3, s0-s15 and the stack, holds every recorded word to those rows, requires the image's Tag_ABI_VFP_args: VFP registers and requires GCC to save exactly d8-d15 around a body that clobbers every VFP register, with sentinels in them surviving it.

D617 — With a float unit, floats are computed in VFP instructions

The tour said nothing; docs/targets.md's Cortex-M0 selection called the runtime's __aeabi_f* and __aeabi_d* helpers for every float operation, and D616 passes floats in the bank D615's unit has.

Chosen: with fpv5-d16, f32 and f64 addition, subtraction, multiplication and division are VADD, VSUB, VMUL and VDIV, negation VNEG, and a comparison VCMP for equality and inequality or VCMPE for an ordered relation, VMRS of the flags and a branch on the condition that is false when unordered. A conversion between the widths is VCVT, and a narrowing keeps Landin's finite-overflow guard; one from an integer of at most 32 bits is VCVT from s32 or u32; and one to such an integer widens an f32 to f64 exactly, traps unless the source lies strictly between the type's lowest less one and highest plus one, which a NaN does not, and then truncates with VCVT, so D171's checks are unchanged. A conversion from or to a 64-bit integer keeps the runtime's base-PCS conversion or the integer decoding, since no VFP instruction converts 64 bits, and a float's test as a bool keeps its comparison of the carrier. Operands and results move between their homes and s0-s2 or d0-d2 by VLDR and VSTR, and a banked argument or result between its home and its register the same way; a value's home and every other move are unchanged. No arithmetic, comparison or 32-bit conversion helper is called. FPSCR keeps its reset default: round to nearest even, no flush to zero and no default NaN.

Selection names no call-preserved VFP register. An assembly block's text can, and the compiler does not read that text for registers, so a framed routine that holds a block on a profile with a unit stores d8-d15 in its frame with VSTM after it reserves its homes, between them and the incoming staging, and loads them with VLDM before its epilogue, each with its CFI offset. That is not D471's unchecked area above the frame record, as a VPUSH before the record would be, so the limit check covers it. A call-free leaf holds no block.

The assembly says .fpu fpv5-d16, and declares Tag_ABI_FP_number_model IEEE 754 and Tag_ABI_VFP_args VFP registers, which the assembler does not infer from its flags; the assembler and the linker are given -mfloat-abi=hard -mfpu=fpv5-d16, from which GCC selects the thumb/v7e-m+dp/hard libgcc multilib, so refine names no multilib path. The linker compares objects' Tag_ABI_VFP_args only when both declare a number model: a soft-float C object is then refused, and a libgcc helper object, which declares none, leaves the image's attribute standing. Without a unit the flags and the code are as they were, and the assembly declares what D780 says.

The alternatives: helpers with the VFP variant's transport, which leaves the unit idle; keeping floats in core registers between operations with VMOV at each, which costs two moves for one load; truncating with VCVT and checking its saturated result, which cannot tell the type's extreme from an overflow; reading assembly text for d8-d15, which a register range or a macro defeats; and VPUSH above the frame record, which would add its 64 bytes to every margin.

Pinned by runtime/float-operations-by-arguments, whose operands are known only at run time, executed on QEMU's mps2-an500 by the corpus's lane (D619), which requires each of its routines at none/off to hold its own VFP operation, its image to hold no software float routine, and every image the lane runs to call no float helper; the lane's every float fixture against its oracle; runtime/assembly-keeps-call-preserved-floats, whose block writes s16 on the lane, where the harness requires d8-d15 to hold its sentinels after main; the cortex ABI case a float unit selects VFP code; and the lane's ELF check of Tag_FP_arch: FPv5/FP-D16 for ARMv8 and Tag_ABI_VFP_args: VFP registers, with environments/cortex-m/firmware.py's refusal of a soft-float object linked into a hard-float image.

D618 — Reset enables the float unit, and handlers take extended frames

The tour said nothing; [1990] had no FPU frame and three supported returns, and an M7's float instructions fault NOCP until CPACR grants CP10 and CP11.

Chosen: with a float unit, compiler-owned reset gives CP10 and CP11 full access in CPACR, 0xE000ED88, then DSB and ISB, right after it initializes r9 and r11 and before anything that can execute a float instruction, the copies and the entry included. FPCCR keeps its reset default, automatic state preservation with lazy stacking, so an exception that interrupts a context with an active float state, CONTROL.FPCA set, reserves ARMv7-M's extended frame, s0-s15, FPSCR and a reserved word beyond the basic eight, and fills it only if the handler executes a float instruction. A handler's EXC_RETURN is then 0xffffffe1, 0xffffffe9 or 0xffffffed, a handler, a thread on MSP or a thread on PSP from an extended frame, and its epilogue's BX LR returns through either kind. A handler is an ordinary framed routine and needs nothing more: s0-s15 are the hardware's to restore, and d8-d15 are preserved as every routine preserves them (D617).

The alternatives: enabling the unit in the entry, which a float instruction in a module initializer or the copies could precede; disabling lazy stacking, which stacks 72 more bytes on every exception whether or not its handler uses the unit; and refusing a float in a handler, which the hardware already makes safe.

Pinned by the cortex ABI case a float unit selects VFP code, which holds the CPACR sequence's place in the reset routine; the lane's harness, which enables the unit as reset does before it runs the corpus; and the firmware lane's float-unit case, compiler-owned reset on the lane taking an interrupt during a float computation and returning through 0xffffffe9.

D619 — QEMU's mps2-an500 is the M7's emulator lane, selected by a description

The tour said nothing; the corpus ran on the constrained reference at ARMv6-M on QEMU's micro:bit and, for levels: armv7-m, on the MPS2 AN385, and a float unit is a description's (D615), which a corpus program does not import.

Chosen: the M7 lane is QEMU's mps2-an500, a Cortex-M7 r1p2 with a double-precision FPv5-D16, described in Landin source as environments/cortex-m/lanes/descriptions/mps2_an500: 4 MiB of code memory at zero, where the table is, 4 MiB of RAM at 0x2000_0000 with a 64 KiB stack at its top, a 16-word table and fpv5-d16. Unmapped space there reads zero and ignores writes without a fault, so nothing is placed outside the two. The lane compiles every program at armv7e-m with one more entry-module file, lanes/lane-mps2-an500.ldn, which imports the description, so the program reaches it unchanged; a rooted program's entry module is named by its files rather than its directory, since a rooted request names one or the other. Its derived script and limits are held to descriptions.json's lanes record, the harness start enables the unit and paints d8-d15, and every image must carry the unit's attributes.

backend_corpus.py --lane mps2-an500 runs the whole inventory there at every profile, each row's own disposition included: an execute row executes, an image the lane's map cannot hold is a limit, a source refusal is checked with the lane's inputs, and a restriction is built to the stage that stops it (D986). A row's lanes entry may give a lane a restriction of its own with its reason, which the lane still runs and requires to fail, so a stale one fails the run, and a refuse row's entry the codes the lane refuses it with where they differ from the reference's; an execute or restriction row's entry may refuse it too, with the lane's codes, as the RV32 lanes refuse the C surface their ilp32 ABI does not enable (D920). run.py's mps2-an500 lane is that run, as its mps2-an505 lane is D607's, and the AN505 is reached through its own entry-module file. No limited verdict is linked again against the lane's map, which is no device's, and its larger map judges no reference limit stale.

The alternatives: a --device= option on the corpus, which D543 declined for refine and which would here describe a program's target outside its source; prepending an import to each fixture's source, which changes the program the oracle was written for; the STM32H753's own description, whose flash at 0x0800_0000 QEMU's machines do not have; and QEMU's mps2-an385 Cortex-M3, which has no float unit.

Pinned by environments/cortex-m/backend_corpus.py's --lane, the inventory's lanes entries, environments/cortex-m/descriptions.json's lanes record that the derived profile is held to, and environments/cortex-m/test.py's lane controls.

D780 — Without a float unit, Arm assembly declares IEEE floats passed in core registers

The tour said nothing; D617 declared the float attributes only with a unit, so assembly without one declared no number model, and the linker, which compares Tag_ABI_VFP_args only when both objects declare a number model, linked such an object into a hard-float image without a word, its floats in core registers where the image's callers passed them in s0-s15.

Chosen: without a unit, the assembly declares Tag_ABI_FP_number_model IEEE 754 and Tag_ABI_VFP_args 0, the base variant, at every Arm level. That is what GCC's soft-float object at the same core declares: GCC writes the number model and leaves the arguments at their default, which is the base variant, so the two objects' attributes are the same. Every object refine assembles for an Arm level now declares a number model, so it and an object of the other variant refuse each other in either link order, and an object that declares none, a libgcc helper's, links with either. The flags and the code are unchanged.

The alternatives: declaring nothing, as before, which links a soft-float object into a hard-float image; declaring the number model only for a program that computes a float, which GCC does not do, so a program would accept or refuse a hard-float peer by whether it happened to use a float; and Tag_ABI_VFP_args 3, compatible with both, for a program none of whose routines passes a float, which would read every routine's boundary for an attribute GCC never writes for C.

Pinned by the cortex ABI case a float unit selects VFP code, which requires both attributes of the assembly without a unit; and environments/cortex-m/firmware.py's float-unit case, which holds a soft-float refine object's number model and VFP arguments to a GCC soft-float object's at the Cortex-M7, and refuses a link of it with a hard-float GCC object and of the hard-float refine object with a soft-float GCC object, each in both orders.

D920 — Cortex-M's C ABI is AAPCS32, named by compiler.c_aapcs32 and enabled at both variants

From [1580], [1975], D267, D616, D660 and D780.

The tour said at [1975] that a C signature follows the target's C ABI, and the target description named Cortex-M's AAPCS32 while D267 refused platform/c there and D616 kept the planner's C half a contract no source used. A freestanding program that calls a vendor's C driver, or is called from a C startup, had no way to say so.

Chosen: cortex-m0, at every level, armv6-m, armv7-m, armv7e-m and armv8-m.main, has the C ABI AAPCS32, and compiler.c_aapcs32 is its fixed bool fact: true there and false on every other target, as each C fact names one ABI. C signatures and layout(c) records are enabled for it, through Backend.Arm32_ABI, and platform/c is available (D921). The fact does not say which of AAPCS32's variants a build uses. That is the description's float unit's to say, as D616 has it: with fpv5-d16 every C signature, imported, exported or called through a C function value, uses the VFP variant, and without a unit the base PCS. A program reads the unit through compiler.feature.fp and compiler.feature.fp_dp (D615), so a second C fact would only repeat them. D780's attributes keep an object of one variant from linking with one of the other, in either order, whichever of them is C. RV32's ilp32 (D660, D677) and Xtensa's windowed ILP32 (D903) keep their C ABI identity and stay refused: their transport is planned or described, and no program has needed it.

The alternatives: a fact for each variant, c_aapcs32 and c_aapcs32_vfp, which would let a program select by a fact what the description already decides, and could disagree with it; one ILP32 fact for every 32-bit firmware target, which would let platform/c and a binding cross from AAPCS32 to ilp32, whose records, splits and variadic pairs differ; and keeping Cortex-M's C refused until a binding generator exists, which leaves a hand-written C peer, the smallest consumer, with nothing.

Pinned by the cortex ABI cases capabilities and refusals, C signatures from source at both variants and driver boundaries, targets/fixed facts have one name each, driver/fixed facts come from the target, driver/source namespaces enforce target availability, positive/c-aliases-aapcs32, negative/rv32-has-no-c-abi and negative/library-platform-c-rv32.

D921 — platform/c on AAPCS32 is ILP32 with an unsigned plain char

From [1975], D256, D267 and D920.

The tour said at [1975] that long and long long are both 64-bit, which held for the four LP64 ABIs platform/c admitted and does not hold for AAPCS32.

Chosen: under compiler.c_aapcs32 platform/c is ILP32: c_char is u8, since AAPCS32's plain char is unsigned; c_schar i8, c_uchar u8, c_short i16, c_ushort u16, c_int i32, c_uint u32, c_long i32, c_ulong u32, c_longlong i64, c_ulonglong u64, c_size usize and c_ptrdiff isize, both 32 bits there, c_float f32, c_double f64 and c_bool bool. long long and double are aligned to eight. The module's assertion admits the fact beside the four LP64 ones, and the long aliases are chosen by a fixed if on it.

Each is measured, not assumed. The pinned arm-eabi-gcc 16.1 at -mcpu=cortex-m0 -mthumb -mfloat-abi=soft and at -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard, and the pinned Clang 19 at --target=thumbv6m-none-eabi and --target=thumbv7em-none-eabihf -mcpu=cortex-m7 -mfpu=fpv5-d16, all predefine __ARM_EABI__, __CHAR_UNSIGNED__, __SIZEOF_INT__, __SIZEOF_LONG__, __SIZEOF_POINTER__ and __SIZEOF_SIZE_T__ 4, __SIZEOF_LONG_LONG__ and __SIZEOF_DOUBLE__ 8, __SIZEOF_WCHAR_T__ 4, __SIZEOF_LONG_DOUBLE__ 8 and __BIGGEST_ALIGNMENT__ 8; __ARM_PCS_VFP only in the hard-float builds, and __SOFTFP__ only in the soft ones. _Alignof(long long) and _Alignof(double) are 8 and struct { char c; long long x; } is 16 bytes under both compilers. The two disagree on one thing: GCC's bare-metal default is short enums, __ARM_SIZEOF_MINIMAL_ENUM 1 and readelf -A's Tag_ABI_enum_size: small, while Clang's is int-sized enums, 4 and Tag_ABI_enum_size: int, which GCC gives with -fno-short-enums. platform/c names no enum type, and an object refine assembles declares no enum size, so it links with either; a binding or a C peer that passes an enum states which it was built with. Both objects declare Tag_ABI_PCS_wchar_t: 4, and GCC's and Clang's Tag_ABI_align_needed and Tag_ABI_align_preserved are both eight bytes.

The alternatives: a separate platform/c module for ILP32, which would give a program two spellings of one C type; c_long as isize, which is 32 bits here and 64 on the LP64 ABIs and so would hold, but would make c_long a pointer-sized type on every ABI, which Windows' LLP64 already shows it is not; and a signed c_char, which disagrees with every header compiled for the target.

Pinned by positive/c-aliases-aapcs32, whose assertions hold the widths and alignments and whose assignments hold each alias to its scalar.

D922 — AAPCS32 calls no variadic C function until a program needs one

From [1975], D616 and D920.

The tour said at [1975] that a variadic C call promotes its unnamed tail and places it by the ABI's rule; D616's planner places an AAPCS32 variadic call in the base PCS, fixed arguments included, and nothing has called one.

Chosen: C_Variadic_Calls stays disabled for AAPCS32. A variadic C signature, an import or a function type, is refused on cortex-m0 with L0346, naming the target and the variadic calls it does not enable, and the note says what to write instead: a C function of fixed arity that makes the variadic call with the arguments the program passes, linked with the program and declared extern(c) in place of the variadic one. A variadic definition stays refused as on every target. The planner keeps its variadic placement and the contract's vfp. variadic row keeps holding it to GCC, so enabling the calls is a capability and a consumer, not a new convention.

The alternatives: enabling the calls with no program that makes one, which would ship a transport that only the planner's rows have seen; and refusing them with the general "not representable" note, which says variadic definitions need an adapter and so misleads about an import.

Pinned by negative/c-variadic-cortex-m0 and the cortex ABI case driver boundaries.

From [1590], [1650], D229, D523, D524, D525 and D920.

The tour said at [1590] that linker.library asks the linker for a library, and D229 and D524 refused it, linker.directory and -L on firmware, which linked only refine's object and libgcc. With C signatures enabled on Cortex-M (D920) a firmware program could declare a vendor's C function and had no way to link it.

Chosen: on firmware, each active linker.library("NAME") is a static archive, libNAME.a, compiled for the build's core and float ABI. The pinned GCC driver receives -static, then each directory as -L with its absolute path, the command line's before the directives' as D524 orders them, then refine's object, then each archive as -lNAME in source order with its repeats, then -lgcc, which the archives may need too. A firmware image has no loader, so no runtime path is passed and no shared object is looked for: -static keeps -lNAME to archives, and D525's search after a failed link looks for libNAME.a alone. The derived script already places an archive's .text, .rodata, .data and .bss with refine's own, and reset copies the data and clears the BSS whatever object they came from, in the boot layout and, loading data in place, in the RAM layout. A library compiled for the other AAPCS32 variant is refused by the linker (D780). refine check refuses what compiling would, as before. Without a library the link is as it was, byte for byte.

The alternatives: passing archives as file operands, which leaves the search order D524 gave a hosted link; a separate firmware directive, which would ask a reader to know that firmware's libraries differ before they link one; and linking C objects rather than archives, which needs a list of objects the build tool has not yet got.

Pinned by the cortex ABI case firmware links C archives, the toolchain case libraries and directories reach the driver and end-to-end/link-firmware-archives-dry-run.

D924 — A firmware image refuses what its startup cannot honour

From [1650], D229, D546 and D923.

The tour said at [1650] that compiler startup initializes RAM and calls the firmware entry; it runs no constructor, sets up no thread pointer and loads nothing. Measured with the pinned tools: an archive's __attribute__((constructor)) puts its pointer in .init_array, which --gc-sections drops unseen, since nothing references it; Clang's _Thread_local brings .tdata and .tbss, which the derived script left as orphans that the linker put beside .data, and a call of __aeabi_read_tp. GCC's arm-eabi instead emulates TLS through libgcc's emutls, ordinary data and calls of malloc and memcpy, which link only when an archive supplies them; that form holds no TLS section and is not refused.

Chosen: a link with archives derives its script with one more output section, .init_array, which keeps every .preinit_array, .init_array and .ctors input. After the link refine reads the image's section headers and refuses an image whose allocated sections hold C constructors, an init or preinit array or .ctors, thread-local storage, a TLS section, or a dynamic linkage, a dynamic section, its symbols or an interpreter, with L0587 naming the first such section; the image is removed. The note says what to do: build the library without constructors and call its initialisation from the firmware entry; declare a thread-local variable as ordinary static data; link the static archive and no shared object. A developer's script is held to the same reading, since the check reads the image and not the script; it is the developer's to keep constructors for the check to see. Destructors are never run, as firmware does not exit, and are left to --gc-sections.

The alternatives: running constructors from reset, which would put a C runtime's order of initialisation ahead of the firmware entry the program names; an ASSERT in the derived script, which the linker reports with its own text and a developer's script would not carry; and --orphan-handling= error, which would refuse a debug or attribute section refine's own objects carry as well.

Pinned by the cortex ABI case firmware links C archives, whose images hold an init array, a TLS section and a dynamic section, each refused and removed.

D985 — The Cortex-M corpus runs an ABI fixture's C freestanding, by one contract

From D545, D619, D780, D920, D921 and D923.

The tour said nothing; the corpus ran runtime fixtures alone, and every ABI fixture was a restriction, since C was refused on Cortex-M and nothing built a C peer for it.

Chosen: an abi/ fixture whose inventory row says execute is built and run as a runtime fixture is, at every profile and level, with its C. Each c-sources entry is compiled by the pinned arm-eabi-gcc with the flags of the level's lane, the processor and float ABI the harness start is assembled with, soft on the micro:bit, AN385 and AN505 and -mfloat-abi=hard -mfpu=fpv5-d16 on the AN500, -ffreestanding -nostdlib -O1 -Wall -Wextra -Werror, then -std=c11 -nostdinc -fno-short-enums, GCC's own include directory, the fixture's directory, each pinned input directory the new c-inputs key names, fetched by hash, and the fixture's c-args. Int-sized enums are what Cortex-M's C boundaries use, Clang's default and the generated bindings' assertion, so the lane passes them rather than each fixture. No C library is reachable: the headers are GCC's freestanding ones, and the link is the harness's start, refine's object, the C objects, the four routines GCC requires of a freestanding program, memcpy, memmove, memset and memcmp, each in its own section, and libgcc. Every object's float-argument attribute is held to the lane's before the link, apart from GNU ld's check, and a C peer compiled for the other variant must be refused by both, the linker in either order; no object may declare short enums, which the linker only warns of, and a peer built with them must be refused by that assertion. abi/cortex-c-peer also takes the route a program does, refine's own firmware link of its C as archives named by linker.library with -L (D923), under compiler-owned startup.

The alternatives: newlib's headers and archive, which the pinned GCC ships and which would let a peer that needs a hosted C library pass as a freestanding one; -fno-short-enums written in each fixture's c-args, which a fixture forgets and a short-enum peer then links with a warning only; linking the C objects through refine for every fixture, which ties each corpus program to compiler-owned startup and loses the harness's register and stack oracle; and semihosting for the status, which the harness's debugger session already reads without.

Pinned by environments/cortex-m/backend.py's c_compiler, c_objects and conventions, backend_corpus.py's convention_control and refine_link_route, abi/cortex-c-peer, abi/cortex-cmsis-bindings and abi/cortex-vfp-bindings, the metadata cases for c-inputs, and environments/cortex-m/test.py's convention case.

D986 — A corpus restriction names the stage that stops it, and the lane reaches it

From D619 and D985.

The tour said nothing; a restriction row of compiler/tests/cortex-m/corpus.json gave a reason and a witness file, the corpus never built it, and 65 restrictions written while C was refused on Cortex-M went on saying so after it was enabled.

Chosen: a restriction is built at none/off on each lane it runs on as an execute row is, and names in stops the first stage that must stop it: defect, refine fails internally; c-options, the pinned GCC refuses one of its c-args; c-headers, a C source includes a header no freestanding C has; c-source, a C source does not compile for the target; link, the image names a symbol nothing linked defines; or oracle, it builds and links, and its oracle needs standard input, arguments, files or output. The lane requires the stage it reached to be the row's, and records what stopped it, read from the build, as an L0015 refusal's modules are read. A fixture refine refuses is no restriction but a refuse row with its codes; one that gets past every stage is stale and must be made execute. Each of the 65 was decided again by that rule: 8 execute, 36 refuse with their codes, and 21 are restrictions with their stops. Two of the eight first stopped at defect: Cortex-M emission had no trap class for a code_address, which the integer-to-pointer check gives a C function value made from an address, as it gives a pointer's. The Xtensa corpus, which reads the same inventory, holds its restrictions to the same stages, an ABI fixture's C compiled by the chip's GCC, and a row whose verdict differs there carries its targets.xtensa disposition.

The alternatives: keeping witnesses, which said what a fixture once needed and nothing about what stops it now; requiring every restriction to fail somewhere, as D619's lane restriction does, which a fixture failing for a new reason would satisfy; and a restriction per missing facility, the C library, threads or files, which the lane cannot observe except as one of these stages.

Pinned by environments/cortex-m/backend_corpus.py's restriction and STOPS, the inventory's restriction rows, scripts/add_fixture.py's --stops, and environments/cortex-m/test.py's restriction cases.

D987 — The generated Cortex-M bindings' layouts are held to both compilers at both variants

From D935, D936 and D939.

The tour said nothing; the binding generator emits static assertions of each native record's size, alignment and offsets and each enum's size, which Clang checked only at the row a fixture was generated for.

Chosen: environments/cortex-m/abi.py compiles each Cortex-M binding fixture's generated adapters with -fsyntax-only, by the pinned GCC at -mcpu=cortex-m0 -mfloat-abi=soft and -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard and by Clang at thumbv6m-none-eabi and thumbv7em-none-eabihf, each with its freestanding headers. The VFP fixture's records must hold at both rows under both, AAPCS32's layout being one for both variants; the CMSIS fixture must hold at the base row and be refused by its header's #error at the VFP one; and its adapters built with short enums must be refused by their own assertion. Where no Clang is on PATH its half is recorded as skipped, never as held.

The alternatives: a probe of offsetof and sizeof values written apart from the generated C, which would compare the compilers with each other rather than with the binding Landin reads; and Clang only, which is not the compiler firmware C is built with.

Pinned by environments/cortex-m/abi.py's binding_layouts and its binding-layouts.json.

D695 — Espressif's QEMU carries both RV32 corpus lanes, under the Arm lanes' harness

The tour said nothing; the corpus ran only on Arm lanes, each a QEMU machine with a description of its map (D607, D619), and RV32 had no emulator lane.

Chosen: one pinned emulator, Espressif's QEMU esp-develop-9.2.2-20260417, locked by URL and SHA-256 in environments/cortex-m/tools.lock.json with the Debian 13 libraries its binary's NEEDED entries reach, carries both levels: rv32imc on its esp32c3 machine, on the lane description environments/cortex-m/lanes/descriptions/esp32c3 (the reference's capacities in SRAM1: 32 KiB of text at 0x4038_0000, 16 KiB of data at the data alias 0x3FC8_8000, the stack its top 4 KiB, 32 slots), and rv32imac on sifive_e, an E31, on the RV32 reference's map. GCC and Binutils are GNAT's riscv64-elf archive of the host GNAT's release, pinned in environments/pins.sh. Each image is loaded with -kernel, which on esp32c3 starts the ELF at its entry without the ROM. The harness start, probes/rv32-start.S, supplies what refine's RV32 firmware script places: the entry word at the text origin jumping to _landin_firmware_reset, and the vectored trap table at the profile's vector address, read from the build report. Its reset paints s1-s11, gp and tp; a return must give them back with sp at the top and s0 zero, and a trap is mcause 2 at an unimp, which slot 0 records. The session is the Arm one's, a hardware watchpoint guarding the stack's lowest 16 bytes, which QEMU's RISC-V stub provides. run.py's lanes esp32c3 and sifive-e are the two corpora, and with rv32-controls the gate's third Cortex-M part, rv32.

The alternatives: upstream QEMU, which has sifive_e but no ESP32-C3 and would be a second emulator to pin for the C3's map and boot; Debian's qemu-system-misc, which has neither the C3 nor Espressif's ROM; semihosting exit as the oracle, which both machines provide but which reports a status and nothing of the registers or the stack the Arm session already holds; and the C3's own description as the lane's map, whose ROM-booted image is the firmware programs', not the corpus's.

Pinned by environments/cortex-m/backend.py's rv32imc and rv32imac levels, descriptions.json's esp32c3 lane record, run.py's rv32 part and the gate's cortex-m matrix, and environments/cortex-m/test.py's RV32Lanes.

D2489 — A locked Debian package comes from snapshot.debian.org when the pool has dropped it

The discrepancy: environments/cortex-m/tools.lock.json fetched its 117 Debian packages only from deb.debian.org/debian/pool, which keeps a file while a suite names its version. A security or point release supersedes a locked version, the archive removes the file, and Debian's mirror edges stop serving it one by one; on 2026-11-25 some edges answered 404 for libssl3t64 3.5.7-1~deb13u2 and a gate job failed in setup.py. No lane keeps the downloads, so once every edge has dropped a file each job that installs the tools fails on every branch.

Chosen: each deb entry of the lock also carries snapshot, the URL https://snapshot.debian.org/file/SHA1 under which Debian's snapshot archive keeps that file for good, addressed by its content. environments/cortex-m/setup.py asks the pool first and the snapshot URL when the pool fails, 404 included, and holds the bytes from either to the locked SHA-256, so the pin is the same whichever answers. environments/cortex-m/lock_snapshot.py fills a new entry's URL by its package, version and file name, downloads it and refuses it unless its SHA-256 is the locked one; the lock is updated, with its snapshot URLs, in one change.

The alternatives: snapshot URLs only, which put every job's 117 downloads on an archive that throttles heavily and is slower than the pool's CDN; snapshot.debian.org/archive/debian/TIMESTAMP/pool/... at one time for the whole lock, taken only when the pool answers 404, which landed first, on 2026-11-25, and this replaces: a package added after that time is not in its snapshot, the time must be moved by hand with every change, and a pool that fails in any other way still fails the job, where the SHA-1 is one fixed URL per file and every one is fetched and checked when it is written; a cache of the downloads keyed by the lock, which GitHub evicts after a week unused and which the rig and a fresh host do not share, so a dropped file still fails there; moving the lock to the newest versions whenever the pool drops one, which changes the tested binaries under every branch at Debian's pace; and copies of the packages in a release of the project's own, a second store to keep.

Pinned by environments/cortex-m/test.py's test_a_package_the_pool_dropped_comes_from_snapshot_by_the_same_hash and test_every_locked_debian_package_has_its_snapshot_url.

D696 — The rv32imc lane refuses the A extension statically and in its core

The tour said nothing; the rv32imc level has no A, and the C3 has none.

Chosen: the esp32c3 machine's own core, measured with the locked binary, executes amoadd.w and LR/SC, its misa 0x401411ad naming A, F and D, so it cannot show their absence by itself. The lane therefore removes them, -cpu espressif,a=false,zawrs=false,f=false,d=false,zfa=false (QEMU requires Zawrs and Zfa to go with A and F), after which misa reads 0x40141184 and an AMO is an illegal instruction, mcause 2. And every image at rv32imc is held, before it runs, to -march=rv32imc_zicsr_zifencei, to refine's own .attribute arch and the linked image's Tag_RISCV_arch naming no extension beyond the level's, and to no AMO, lr.w or sc.w anywhere in its linked disassembly, libgcc's rv32im multilib included. rv32-controls shows both: the same A program the image check refuses traps at its first AMO on the lane's core.

The alternatives: the static check alone, which holds only what the disassembly shows and nothing a path never reached by objdump's linear sweep would execute; the core alone, which says nothing of a path the corpus does not execute; and a machine faithful to the C3's ISA by default, which no pinned QEMU has.

Pinned by environments/cortex-m/backend.py's rv32_image and the rv32imc level's cpu, and rv32_controls.py's a-extension-traps control.

D697 — Each RV32 lane holds its level's atomics with probes of its own

The tour said nothing; runtime/atomic-read-modify-write is refused on every RV32 level by its u64 cell, so no corpus row executes a read-modify-write there, and on Cortex-M0 D510 refuses the rest.

Chosen: two probes beside the harness. probes/rv32-read-modify-write.ldn is that fixture's exchanges, adds and compare-exchanges of u8, u16 and u32 without its u64 cell: on sifive-e at rv32imac it executes to 42 and its image must hold an AMO and an LR/SC pair; on esp32c3 at rv32imc refine must refuse it with L0344 alone at every exchange, add and compare-exchange. probes/rv32-wide-atomic.ldn's u64 cell must be refused with L0344 where it is declared on both. They run after each lane's corpus.

The alternatives: a new shared runtime fixture, which every hosted lane would run again for nothing it does not already show; and a selects entry on the existing row, which refuses on both levels and so has no image to select in.

Pinned by environments/cortex-m/rv32_controls.py's atomics, which backend_acceptance.py's execute_lane runs for an RV32 lane.

D698 — A corpus lane records its own capacity limits, image and stack

The tour said nothing; a corpus row's profile_limit records an image the reference's map cannot hold, judged at every profile, and a lane's lanes entry could only restrict a row outright, requiring every profile to fail there (D619).

Chosen: an execute row's lanes entry may be "mode": "limit" with its reason. On that lane a profile whose link overflows the map is a selected-image-limit with its measured sizes, as profile_limit makes one on the reference, and a profile whose stack the harness's guard stopped past the reservation is a selected-stack-limit naming the routine that overran it; every other profile executes and must pass, and a whole lane run in which every profile of the row executes fails, naming the stale entry. The RV32 lanes carry one wherever an RV32 image's text outgrows the reference's 32 KiB, or its frames the 4 KiB stack, at a profile where the Cortex-M0 image fits, each reason giving the measured overflow.

Amended on 2026-11-19: the reference's own run records a stack limit too: a row with profile_limit whose profile's stack the guard stopped past the reservation is a selected-stack-limit, its reason the row's, as a lane's is. D1567 made runtime/directory-memory fit the reference at every profile, and at none its stack overruns the 4 KiB.

The alternatives: a lane restriction, which requires every profile to fail and so is stale wherever only the unoptimised profile overflows, as most of these do; a profile_limit on the row, which would claim the reference's map cannot hold an image that Cortex-M0 executes there; and larger RV32 maps, which would leave the 32 KiB end of the range untested on RV32 (D661).

Pinned by environments/cortex-m/backend_corpus.py's lane limit handling and stale_lane_limits, and the inventory's lanes entries.

D620 — A fibre's context on a float unit holds d8-d15 and FPSCR

The tour said nothing; D460's switch saved forty-eight bytes, D461's fibre paid for one thirty-six-byte exception frame, and D472's margin was sized for both.

Chosen: with a float unit the switch also pushes d8-d15 below the limit word and FPSCR with a word above it below them, 120 bytes in all: from the saved pointer, CONTROL, r8 to r11, FPSCR, a word, d8 to d15, the scratch word, the limit, r4 to r7 and the return address. Resuming restores FPSCR and d8-d15 after r8 to r11, and the CFI names each saved d register. compiler.stack_prepare lays the same frame, d8-d15 and FPSCR zero, FPSCR's reset default. CONTROL travels with each context as before, its FPCA bit included, which a prepared stack starts clear and its first float instruction sets. A fibre's backing holds one exception frame as D461 says, which with an active float state is the extended frame of D618, 108 bytes with its alignment word rather than thirty-six. D472's margin grows by 72 for that frame and 72 for the larger switch frame a handler that switches away saves, 528 bytes, so a handler keeps the room it has without a unit, and the worst before a handler is 260 bytes. core/fibre/stacks keeps 176 words below a stack's start rather than 128 when compiler.feature.fp holds, so a stack too small for the frame and the margin is out of memory there and not a trap. D470's consumer is measured on the retained Cortex-M0 profile, which has no unit; on one with a unit its fibre would be charged the extended frame.

The alternatives: saving only the d registers a fibre used, which the switch cannot know; leaving FPSCR to the fibre, which lets one fibre's rounding mode or cumulative flags reach another; disabling lazy stacking around a switch, which is no help with the frame an interrupt stacks; and keeping D472's margin, which leaves a selected handler 124 bytes and refuses the corpus's own.

Pinned by the stack-builtin fixtures runtime/stack-switch-round-trip, runtime/stack-frame-past-limit-traps, runtime/stack-prepare-too-small-traps, runtime/stack-exhausted-reaches-the-handler and the fibre fixtures on the mps2-an500 lane, where the harness requires d8-d15 to survive main; and the stack report suite's a switch costs its frame, whose Cortex-M figures with a unit are 120, 528 and 260.

D621 — The STM32H753 is hard-float, and its consumer's accesses are the board's to check

The tour said nothing; D560 learnt the STM32H753 for prototype 1, D561 read its consumer's device stores from the linked ARMv6-M image, and D562 kept its profile cacheless.

Chosen: devices/descriptions/stm32h753/memory.ldn holds compiler.float_unit("fpv5-d16"), its Cortex-M7's double-precision unit, so the H753 builds at armv7e-m alone and hard-float (D615-D617), and its reset grants the unit (D618). The profile stays cacheless under R12's rule for noncoherent cached profiles: nothing enables the caches, and D562's placements are unchanged; the cached profile beside it, admitted with its provider and evidence, is D974's. D561's static evaluation is retired, since an ARMv6-M evaluator does not read Armv7E-M code and a board runs the consumer; the board run's oracle checks its device accesses. What stays static is D561's amendment's: the consumer links where the description places it, its image reaches neither SCB's CCR nor a cache maintenance operation, and it does reach CPACR. The corpus derives the profile at armv7e-m, the level its float unit needs, to link limited verdicts against it.

The alternatives: keeping the description soft-float, which leaves the board's unit idle and its exit evidence on the emulator alone; extending the evaluator to Thumb-2 and VFP, a second instruction set kept apart from the backend that the board run makes unnecessary; and a cache check in the board oracle alone, which the gate does not run.

Pinned by devices/test.py's the consumer links cacheless and the hand-written memory against the header; and environments/cortex-m/descriptions.py, which selects the STM32H753 at --level=armv7e-m and compares its facts, its float unit among them, with descriptions.json.

D970 — Cache maintenance is core/cache's concept, over whole lines, with a cacheless provider everywhere

The tour said nothing of caches; D227 stated what a cached DMA handoff must do and enabled no helper, and R12 admitted a cached profile only with a platform's maintenance provider.

Chosen: core/cache is a shared freestanding module holding one concept, maintenance, with four entries: line, the bytes in one line; clean, which writes a range's dirty lines to memory and keeps them; invalidate, which discards a range's lines; and clean_invalidate, both. Each operation takes a []u8 range and returns once its maintenance is complete at the point a device observes, its provider's completion barrier issued last, so D227's order is the caller's to write and the barrier's to keep: clean before a transmit is enabled, clean and invalidate before a receive is armed, invalidate once a completion or count observation says the device's bytes are written, the device barrier before an enable staying the driver's. A range that does not begin on a line, or whose length is not a whole number of lines, is refused with the recoverable atom cache.misaligned and nothing is maintained; it is never rounded out, because a rounded line can hold bytes the caller does not own, whose dirty copy an invalidate loses or whose stale copy a clean writes over a device's data. An empty range is no lines, and its operation is the barriers alone. cache.lines(line, range) is that check, which every provider calls. The generic entries cache.clean and its siblings take the provider's handle as core/time's do; a handle is a small value passed in (D269's service convention), and the parameter is caches.

The cacheless provider is cache.cacheless(line), named for what it is since maintenance, the principal type, is a concept (D1032), a cache.barriers handle on every target: its operations check the range against LINE and issue the completion barrier, which is all memory no cache stands in front of needs, and a line that is not a nonzero power of two is cache.bad_line. It refuses exactly what a cached provider of that line refuses, so a driver checked against it on Cortex-M0 or a hosted target takes the cached profile's refusals. Both atoms have phrases in core/failure.

The alternatives: compiler builtins, compiler.cache_clean among them, which negative/r630-cache-helper keeps refused: maintenance is a platform provider's, and a builtin would claim one for every target; rounding a range out to its lines, which hides the loss D227 names; a provider that takes an address and a length, which loses the slice's bound and its view; and no cacheless provider, which leaves a portable driver two code paths.

Pinned by runtime/library-shared-cache on the seven product targets and the constrained Cortex-M0 lane, with oracles for each refused line and range, the empty range and every byte kept through the barriers; and the STM32H753's cached board run, whose refusals keep a dirty line (D975).

D971 — A cache is a fact of a description, which compiler.feature.cache and compiler.cache_line read

The tour said nothing; D615 made a float unit a fact of a description and of its core, and D562 kept the one Cortex-M7 chip refine supported cacheless.

Chosen: the hand-written half of a description may hold compiler.cache("KIND", LINE), once, at module level, as D542's directives are. The compiler knows a cache as a fact of a core and names no chip: it builds one kind, armv7-m-l1, Armv7-M's level 1 instruction and data caches with the System Control Block's maintenance operations, which the Cortex-M7 alone of its cores implements, with 32-byte lines at both caches. Another kind, or one the description's core cannot have, is L0610; a line that is not the kind's is L0611, naming the line to write. A cache changes no ABI, so it takes any level its core executes. A program reads it as compiler.feature.cache, true when the selected description declares a cache, and compiler.cache_line, the declared line in bytes and 0 without one, each read as D615's features are, before any option or fixed condition. The firmware build report says cache.

The alternatives: a cached level, which would make a level something a chip without caches could select; reading the cache from the core, which assumes every Cortex-M7 is built with both caches when their sizes and presence are the implementer's choice; a line read only at run time from CCSIDR, which no program can align a static buffer by and no fixed arm can read; and a profile option inside the cacheless description, which changes its bytes and lets one import mean two profiles.

Pinned by negative/description-cache-unknown, negative/description-cache-core and negative/description-cache-line; and the cortex ABI case device descriptions select their profiles, which holds the refusals, the repeated and conditional directive and both facts read by an option, a module value, a compiler assertion and a fixed arm, for a cached description, a cacheless one and the reference.

D972 — The Cortex-M7's provider is platform/cortex_m/l1, declared on a cached profile alone

The tour said nothing; D575 declares platform/cortex_m's operations on an M-profile target alone, and D970 leaves cached providers to platforms.

Chosen: platform/cortex_m/l1 provides core/cache's maintenance over the Cortex-M7's level 1 caches, and declares it under fixed if compiler.feature.cache: l1.new(), l1.caches() until D1032, makes its l1.handle, whose line is compiler.cache_line, and l1.geometry() reads CCSIDR for the level 1 data cache, which reset selected in CSSELR. Each operation checks its range with cache.lines, issues a completion barrier, writes each line's address to the SCB's DCCMVAC, DCIMVAC or DCCIMVAC, at 0xE000EF68, 0xE000EF5C and 0xE000EF70, issues a completion barrier and then ISB, as CMSIS's by-address operations order them. It is a submodule, imported on an M-profile target alone (D267), so that a program that maintains no cache reaches none of core/cache and its image is the one it was; on an M-profile profile without a cache a call is L0201 saying that the member is a cached profile's, with the two things to do instead.

The alternatives: the provider in platform/cortex_m itself, which a shared program imports everywhere but which then brings core/cache into every Cortex-M image and moves every board record's bytes; a provider that reads CCSIDR for its line on every call, which a buffer aligned at compile time cannot follow; set and way operations exposed to programs, which act on every line and so on bytes no caller owns; and L0201's ordinary words, which call the cacheless STM32H753 another target.

Pinned by negative/cache-provider-cacheless; the mps2-an500 lane's cache-sequence case (D977); devices/test.py's converse check (D976); and the cached board run (D975).

D973 — Reset enables a described cache once memory is written, and the entry's return disables it

The tour said that reset copies initialized data and RAM code and clears BSS before a program runs; D618 made reset grant a described float unit.

Chosen: a cached profile's compiler-owned reset, once .data, .ramtext, BSS and every placed region are written with the caches still off and their DSB and ISB issued, selects the level 1 data cache in CSSELR, reads its sets and ways from CCSIDR and invalidates every set and way through DCISW, completes that with DSB, invalidates the instruction cache through ICIALLU with DSB and ISB, and sets CCR's DC and IC, bits 16 and 17, with DSB and ISB, as the Cortex-M7's manual and CMSIS's SCB_EnableDCache and SCB_EnableICache enable them; then it enables interrupts and calls the entry. The data and code it wrote are memory's, so nothing a cache held before reset, a warm loader's run among it, can hide them. When the entry returns, interrupts are masked, every set and way is cleaned and invalidated through DCCISW while the data cache is still on, so no dirty line is left, and CCR's DC and IC are cleared and the instruction cache invalidated, each with DSB and ISB, before _landin_firmware_returned: the core is left as reset leaves it, for a warm loader that requires disabled caches or a debugger that reads memory. Both sequences use registers alone, r0 to r7, and no memory. A cacheless profile's reset is unchanged.

The alternatives: a provider operation the program calls to enable the caches, which a program can forget and whose own frame a disable would have to keep out of the cache it is turning off; enabling before the copies, which writes initialized data into dirty lines; and leaving the caches on when the entry returns, which leaves memory short of every dirty line.

Pinned by the cortex ABI case device descriptions select their profiles, which holds the cached reset's order and a cacheless reset's absence of both; the mps2-an500 lane's cache-sequence case, which holds the linked order and every write QEMU traces (D977); and the cached board run, which reads CCR set at the entry and clear once it returned (D975).

D974 — The STM32H753's cached profile is a description of its own, admitted with its evidence

The tour said nothing; D562 kept the STM32H753 cacheless until a provider existed, and R12's rule asks a cached profile for its provider and evidence of its cache levels, aliases, line ownership and visibility points, transmit and receive consumers and failure oracles for stale reads and lost dirty bytes.

Chosen: devices/descriptions/stm32h753_cached is the cached profile, beside the cacheless one, which keeps its bytes, checks, records and gate leg. Its policy, devices/policies/stm32h753_cached.json, is the cacheless policy with its identity, stm32h753-cached, so refine svd writes its interrupts.ldn and the chip's modules at the same hashes; its supply.ldn is the cacheless stage's bytes; and its memory.ldn is the cacheless map, placements, stack and float unit with compiler.cache("armv7-m-l1", 32). The evidence, point by point:

  • levels: the Cortex-M7's level 1 caches are the only ones, a 16 KiB four-way data cache and a 16 KiB instruction cache, both of 32-byte lines; the chip has no level 2, and the board run reads CCSIDR's 128 sets, four ways and 32-byte line;
  • aliases: with the MPU off the default memory map applies, so the SRAM region, 0x2000_0000 to 0x3FFF_FFFF, which holds the AXI SRAM and SRAM1 to SRAM4, is normal, write-back and write-allocate; the code region, flash among it, is write-through and read-only here; the TCMs are never cached, and DMA1 and DMA2 do not reach them (D562); the peripherals and the System Control Space are device and strongly ordered memory. Static data, BSS and the stack are in the AXI SRAM, which the CPU and both DMA controllers reach at 0x2400_0000 alone; a buffer placed in another SRAM by name is cached alike, and an alias of a region is outside the profile;
  • line ownership: a buffer a stream reads or writes is aligned to 32 bytes and a whole number of lines, so no line it occupies holds another datum, and D970 refuses a range that is not;
  • visibility points: a stream observes memory once the maintenance and the completion barrier after it have completed, and the CPU observes what a stream wrote once its count or completion said so and the range was invalidated; code copied by reset is fetched through an instruction cache reset invalidated after the copy (D973);
  • consumers and failure oracles: D975's board run.

The alternatives: a profile option in the cacheless description, which changes its bytes and lets one import mean two profiles; enabling the caches in the cacheless profile, which changes every image built for it and every record; and an MPU configuration of its own, which this profile does not need and which would be a fact refine checks nothing of.

Pinned by devices/test.py's Stm32h753CachedOracles, which holds the policy, the interrupts, the stage and the map to the cacheless ones and the one directive beside them, and its regeneration and D542 form checks, which regenerate the cached interrupts.ldn; and D975 and D976.

D975 — The cached board run shows each handoff and what leaving its maintenance out does

The tour said nothing; D650 and D901 give the STM32H753 its board run and its warm entry, and R12 asks a cached profile for transmit and receive consumers and failure oracles on its target.

Chosen: compiler/tests/board/stm32h753_cached/app runs on the NUCLEO-H753ZI from SRAM, loaded by the SRAM helper exactly as the cacheless RAM run is, under the warm contract unchanged, which requires the caches off when it loads; the image's reset enables them (D973). It uses the cacheless board's serial, bringup, report and scs modules, the receive ring through serial.open, available, read, stop, restart, completed and idle with l1.new() as the ring's provider, so the ring does its own maintenance (D978) and the program writes none of it. Over the virtual COM port, in the cacheless board's frames: the boot frame reports CCR with IC and DC set and CCSIDR; the stale-read control refills the ring with 0x5A, cleans it, and rearms and reads it through the same routines given cache.cacheless(32), so the ring's code runs as on the cacheless board and its invalidates are left out, reading 64 bytes the host sends, two lines, each of which must be the stale 0x5A throughout, or, if the cache evicted it in between, the bytes sent, at least one line stale, while memory, once a restart with the cached provider has cleaned and invalidated the ring, holds the 64 sent; 1024 bytes are then read through the ring with each snapshot's lines invalidated between the count and a copy no longer than it, and must hash as the host's; the lost-dirty control cleans a line holding 0x11, dirties it with 0x22 and invalidates it, which must lose all 32 bytes, while four ranges that are not whole lines are refused and the line they cover keeps its dirty 0x44; a transmit whose buffer's memory holds o and whose cached copy holds the message is sent without a clean and must carry os, a whole line at least and every line either memory's os or, written back in between, the message's, and after a clean must carry the message, every byte of both, each transmit ordered as D979 says; and the entry returns, so CCR must read clear over SWD. The host reads CCR over SWD while the run goes on as well. Every prediction is the host's, from what it sent and what a write-back cache does, and a control that does not fail as predicted fails the run, so an emulator, which models no cache, cannot pass it. environments/boards/stm32h753_cached/board.py is the oracle, and the STM32H753 leg runs it as a RAM step after the cacheless RAM run and before the port's final boot check.

The alternatives: a boot check of the cached profile, which adds a flash and power cycle and proves nothing the RAM run and the cacheless boot check do not; changing the helper to clean or disable caches, which would weaken the warm contract the cacheless run relies on; and controls checked by SWD reads of memory, which a debugger's view of a cached line makes another question.

Pinned by scripts/tests/test_board_stm32h753_cached.py, which holds the oracle to a scripted board that behaves as a write-back cache predicts and refuses one that does not, phase by phase, and the image check of D976; and the physical run, whose record is ram-record.json beside the tool.

D976 — A cacheless image reaches no cache register, and a cached one only those its profile declares

The tour said nothing; D561 and D621 keep the consumer links cacheless static.

Chosen: devices/test.py's the consumer links cacheless is unchanged for every cacheless consumer. Its converse builds devices/consumers/stm32h753_cached, the transmit consumer with its message in the cached AXI SRAM and cleaned before the stream is enabled, and requires it to link where its description places it and the SCB registers its literal words reach to be the profile's alone: CCR, CCSIDR, CSSELR and CPACR, reset's ICIALLU and DCISW, the return's DCCISW, and the provider's DCCMVAC, DCIMVAC and DCCIMVAC; no other operation of 0xE000EF50 to 0xE000EF78. The cached board tool's build holds its image to the same set.

The alternatives: disassembly matching, which D561 rejected; and no converse, which lets a cached image reach an operation, a set and way clean or a branch predictor invalidate, that no decision reviewed.

Pinned by devices/test.py's the cached consumer reaches the declared cache registers alone and the consumer links cacheless, and the cached board tool's image check.

D978 — The STM32H753's receive ring does D227's maintenance through the provider it is given

The tour said nothing; D648 gave the STM32H753 its receive ring, D227 the cached handoff it must keep, and D970 the concept that keeps it.

Chosen: compiler/tests/board/stm32h753/serial's open, read, restart and configure take core/cache maintenance evidence, a provider type and its handle, before their other arguments. open refuses a ring that is not whole lines of the provider's with cache.misaligned, writing nothing, and cleans and invalidates the ring before it arms the first lap, as restart, and so configure, do before they rearm it; read invalidates the ring between its snapshot and its copy, so every byte it copies was written before its line was dropped. The laps the completion interrupt arms take none: nothing but the stream writes the ring while it is open, so once it was cleaned it holds no dirty line, and a stale copy the CPU fetched meanwhile is dropped by the next read's invalidate. A provider that refuses the ring at a later call breaks the descriptor, as a transfer error does. The cacheless board passes cache.cacheless(32), the barriers alone at the Cortex-M7's line, and the cached board l1.new(); available, stop, completed and idle read no ring byte and take none.

The alternatives: the caller maintaining the ring around the module, which is a rule of the caller that the module cannot state or keep, and which read's own snapshot defeats unless each read is bounded by an earlier one; a provider stored in the descriptor, an erased any whose handle the descriptor would have to borrow as well as the ring; a clean and invalidate before every lap, in the completion interrupt, which needs the provider there and does nothing a cleaned ring needs; and a second, cached ring module, which would let the two drift apart.

Pinned by the cached board run, whose stale-read control is the same routines given the cacheless provider and whose maintained stream is those routines given l1.new() (D975); and the cacheless board run, which passes the cacheless provider through every routine.

D979 — The cached board's transmit raises its request only once its stream has its first byte

The tour said nothing; D975's transmits are the cached board's own DMA1 stream 0 transmits to USART3, which runs with its FIFO on (D648).

Chosen: a transmit writes the stream's addresses and count, clears its flags, configures it and enables it with CR3's DMAT clear; clears TC through ICR's TCCF; and only then sets DMAT, so USART3's request rises after the stream has preloaded its first byte. It waits for the stream's EN to clear with its count at zero, clears DMAT, and waits for TC before the CPU writes another frame, as RM0433's transmission using DMA orders the end (48.5.19, p. 2057). In direct mode a memory-to-peripheral stream preloads its first byte once enabled and sends it at the peripheral's first request (15.3.8, p. 644; 15.3.14, p. 653), and a request raised before that preload is an underrun that sets FEIF (15.3.20, p. 657). Success is the count at zero with no transfer error; FEIF and DMEIF are reported and decide nothing, since neither stops the stream.

The two chip runs before it showed both halves. The first ended its wait on FEIF with the stream still feeding the FIFO, and the CPU's next frame raced it for the FIFO's last slot, losing five bytes at each edge. The second, with that wait corrected but DMAT held set across both transmits from before either stream was enabled, reported TCIF, HTIF and FEIF and a count of zero at each, and each lost its first byte.

The alternatives: DMAT set once for both transmits, which raises the request with no stream or no preloaded byte to answer it; ending on the stream's flags, which an underrun's FEIF ends early; the DMA's FIFO instead of direct mode, which preloads the same way; and leaving the transmit's first byte to the CPU, which writes it outside the stream.

Pinned by the cached board run's transmits, which must carry every byte (D975), and the scripted board's refusals of a transmit missing its first byte, missing a frame at either edge, or one byte short.

D977 — The emulator shows the cache sequences, never a cache

The tour said nothing; D619 gives the corpus QEMU's mps2-an500, a Cortex-M7 that models no cache.

Chosen: the lane description environments/cortex-m/lanes/descriptions/mps2_an500_cached, the an500's map with compiler.cache, is no profile refine admits for a chip; it lets the firmware lane's cache-sequence case link a program through platform/cortex_m/l1 and run it under QEMU with its trace of the System Control Space's writes. The case holds the linked reset's steps to D973's order and each provider operation's stores between its two completion barriers, ISB after them; every write reset, the program and the return make to the SCB, in order, with each maintenance write the line address its range says and a refused range writing none; and, read by GDB at the return, the three refusals, the line and CCR's IC and DC clear. QEMU keeps neither enable bit and reads CCSIDR as zero, so the run shows sequencing and refusals alone; what a cache does is the board's (D975). The cacheless provider runs on Cortex-M0, on QEMU's micro:bit, and on every hosted target through runtime/library-shared-cache.

The alternatives: a cache model in the harness, which would test the model; and no emulator run, which leaves the order of the writes to reading.

Pinned by environments/cortex-m/firmware.py --case cache-sequence and the freestanding lane's library-shared-cache.

D281 — RV64's system call has the standing of syscall and svc

The tour said at [1630] that an ordinary block is straight-line code with no labels or calls, and [1990] and D248 refuse control transfer by mnemonic on hosted x86-64, arm64 and RV64. x86-64's syscall and arm64's svc were never control transfers there, while RV64 counted ecall among them, so RV64 alone could not reach its kernel from an ordinary block.

Chosen: an ordinary RV64 assembly block admits ecall. Like x86-64's syscall and arm64's svc, it enters the kernel and returns to the next instruction, so the block stays straight-line. ebreak, c.ebreak, mret and the other control transfers stay refused.

The alternatives: a dedicated system-call builtin, a compiler privilege the assembly form already expresses; keeping ecall refused, which leaves RV64 alone unable to reach its kernel. Both are declined.

Pinned by negative/assembly-rv64-system-call and the targets case assembly registers are spelled and chosen, whose check that the system call has one standing on every hosted architecture admits all three and refuses RV64's breakpoints and mret.

D282 — The Linux heap keeps size classes over its own mappings

The tour said at [1360] that one allocator concept serves heap, arena and fixed-buffer providers, and D277 had the hosted heap over-allocate through libc's malloc on every hosted system.

Chosen: on Linux hosted/heap maps its own memory, now through platform/posix, which makes platform/linux's calls (D279, D297). It keeps eight size classes from 32 to 4096 bytes. A class with no free slot maps a 64 KiB chunk and links its slots into a free list; a freed slot returns to its class's list and is handed out before any new chunk is mapped; chunks are never unmapped. A request whose extent exceeds 4096 bytes is a mapping of its own, rounded to the page size and unmapped when freed. Two words precede every block, the slot's or mapping's start and its extent, at the multiple of the word at or below a header before the block, so they are aligned whatever the block's alignment and every usize alignment works, a power of two or not; a zero-byte request is a distinct token. An addition that would overflow, or an extent above PTRDIFF_MAX less the page rounding, is mem.out_of_memory before any state changes, as is a failed mapping. The provider was single-threaded; D502 puts its classes behind a lock once a thread has started. D300 makes it the heap of every hosted system.

The alternatives: one mapping per allocation, which spends a page on every small object; a general-purpose allocator with coalescing, more code than the current single-threaded consumers need, to be revisited with threads. Both are declined.

Pinned by runtime/linux-heap-size-classes and runtime/hosted-heap-provider.

D283 — Zero-image data are laid out smallest first

The tour said at [1550] that the compiler emits assembly for the platform's assembler and linker, and left where module data are placed to the backend; D18 admits an array as large as the target's usize.

Chosen: zero-image module data are laid out smallest first, ties in item order, on x86-64 and RV64, so one object as large as RIP-relative or auipc addressing reaches cannot push another datum out of reach. arm64's ±4 GiB reach is unchanged. The implicit platform/linux roots of a static link (D280) exposed it.

The alternatives: item order, in which a 2 GiB object placed first pushed later data out of reach; a large-model addressing sequence, which lengthens the code of every access. Both are declined.

Pinned by runtime/large-array-offset-is-addressed under a static link.

D296 — A routine or module binding the program cannot reach is not emitted

The tour said at [1940] that a module value is known when the program starts, and nothing said it is in the image whether used or not. Every module binding was lowered and emitted as data into each program whose sources declared it, so a program importing a thousand system-call numbers (D294) for one of them compiled about two and a half times slower and emitted twice the assembly, though the linker discarded the unused data. Every routine of every imported module was lowered, emitted and assembled in the same way: a ten-line hello-world over core/io emitted 546 routines, of which the linker kept 34.

Chosen: when the entry module declares a public main, a module routine, generic instance, evidence table or binding is lowered and emitted only if the program can reach it. The roots are every routine the entry module defines, so main, D232's panic_handler and a firmware entry among them; a binding with a link symbol; a C definition that is public or has a link symbol; a definition in a machine convention, as the process entry _landin_start is; a definition whose link name a bodyless import names; a routine or binding with a placement, a section, an alignment, a vector or keep; one whose name or link name, or _ and either on Mach-O, is a word in an assembler.block's text; and every module declaration that is neither a routine nor a binding, a type whose length names a constant among them. A reached routine or binding reaches what any resolved reference in it names, in any position, the generic instance any of its calls selects, and the conformance whose table a selection, an any construction or a for reads; a reached instance reaches its template and the conformances it receives; a reached conformance reaches its providers and, for an erased table, D145's parent conformances. public alone is not a use, and neither is a native routine's link symbol, which [1975] makes its linker identity rather than an export. Every declaration is still checked, so an unreached declaration's errors are still errors, except a target-limited builtin's refusal, which D564 makes where the call is reached. Reachability can keep too much but never too little, and kept items are numbered in declaration order, so the output stays a function of the sources. Any compilation without a public main keeps everything.

The alternatives: leaving it to the linker, which already discarded the data and code but not the compile time or assembly; treating public as an export, which keeps every library table in every program; counting a routine's body as a use whether the routine is reached or not, which this decision first did and which kept every routine; and treating every link symbol as an export, which keeps the whole of platform/posix, whose public routines all carry one so none is mistaken for C's.

Pinned by the lowering record compiler/tests/lowering.ir, the cross-host assembly manifests, and runtime/linux-system-calls, which imports platform/linux/numbers.

D415 supersedes this decision in part: a link name on any routine makes it an export, so it roots the routine whatever its convention, and an import roots no definition, because every routine that is not an export is a local symbol an import of its spelling never reaches.

D484 narrows "a reached conformance reaches its providers" to erased tables and a for's iterable conformance: a direct table's entry is reached only by a reached selection that names it.

D1358 roots a firmware image too, in its entry, its handlers, its placed declarations, its boot stage and its exported C definitions rather than in every routine of the entry module, and lets an erased selection's table be one the compilation builds for an any construction.

The tour said nothing of sections. Only x86-64 gave each item its own input section, so a linker could drop unreached code there alone: a static arm64 program carried every routine of every module it imported, and L0500 counted a C reference from any routine, reached or not.

Chosen: the ELF backends for x86-64, arm64 and RV64, on Linux and FreeBSD, give every routine, datum and evidence table its own section, named by item index so the output stays a function of the sources, with zero-image data in their own .bss sections; Mach-O keeps .subsections_via_symbols and Darwin links with -dead_strip; Cortex-M keeps its per-item sections under its own script. Every ELF link passes --gc-sections. A static link's L0500 counts only the references the entry reaches, from _landin_start, main, the argument initializer, panic_handler, every keep item, every datum and the entries D374 keeps of every evidence table, through calls and taken addresses, an external C name leading to the routine that defines it.

The alternatives: sections on x86-64 alone, which left arm64 and FreeBSD images several times larger, a static hello on arm64 near 200 KB; and counting every routine's references, which refuses programs the link accepts.

Pinned by end-to-end/link-static-unreached-c-import, end-to-end/link-static-unsatisfied-c-import, end-to-end/link-static-dry-run-arm64 and the toolchain and targets suites' link arguments.

D1358 — A firmware image is lowered from what it starts from

The tour said nothing. D296 pruned only a program whose entry module declares a public main, so a firmware image emitted every routine of every module it imported, each in a section of its own, and left the link's --gc-sections to drop the rest (D303). A Cortex-M0 firmware calling text.over and text.append_usize assembled 683 KB for an image of under 4 KB, and its --emit=asm, its --stack-report's 177 rows and its build report named routines the image does not hold, doubling_enlarge among them, which readers new to the project could not explain; a target-limited builtin's refusal (D564) was made in every routine it imported. Even a program's pruning kept too much: an erased call names a table for its shape, the checker chooses one conformance of the concept for it, and its every provider was lowered, though the call reads its function from the value's own table.

Chosen: a request that builds a firmware image, one that names --firmware-entry on a firmware target, refine check and the language server's analysis among them, roots D296's walk in what the image starts from: in the entry module, the firmware entry and D232's panic_handler; in any module, a routine or binding with a placement, a vector slot's handler, a boot stage, a section, a region and keep among them, a definition with a link symbol, a public C definition, which a C object linked with the image may call, and a definition an assembler.block's text names. The entry module's other routines are not roots, and neither is a definition in a machine convention that takes no slot and that nothing names: nothing enters the image through them. A compilation that builds no image, assembly without --firmware-entry for an object another link takes, keeps everything as before.

An erased selection, in an image or a program, names as its table the first table of its concept, in conformance order, that the compilation builds for an any construction, since every erased table of a concept has one layout (D374) and the call reads its function from the value's own. Only when the compilation builds none is the checker's choice built, with every provider, as a construction's table is. A compilation that keeps everything keeps the checker's choice.

So the assembly, the stack report and the build report of an image hold the routines the image does; a held refusal is reported only where the image reaches its call. What the link keeps is unchanged, with two differences. Atom integers are numbered over the declarations the image keeps, which D232 leaves free. And an evidence table names only the entries the image projects (D374, D484), so a provider only a left-out entry named is no longer linked: the ESP32's, ESP32-S3's and ESP32-C3's board images lose core/atomic's load_u16, store_u16 and load_relaxed_u8, which nothing calls.

The alternatives: rooting every routine of the entry module, as a program is rooted, which keeps a routine beside the entry that the link then discards, so the report still names what the image does not hold; rooting every interrupt and naked routine, which keeps one that takes no slot; leaving the image to the linker, which those readers met; and giving an erased witness's table absent entries, which an erased table of the IR does not have and which the verifier, the specializer and every backend would have to learn, where a table the compilation builds already serves.

Pinned by the positive fixtures firmware-image-from-its-entry, the two-routine program above, firmware-image-from-a-handler, firmware-image-from-a-placed-routine, firmware-image-from-an-exported-definition and firmware-image-from-a-boot-stage, each lowered in compiler/tests/lowering.ir with its roots and without a routine nothing enters; the cortex ABI case a firmware image emits what it starts from, whose assembly, stack report and build report name the image's routines and not the others, while assembly for an object keeps them; and the Cortex-M firmware lane's flash-budget control, whose datum is kept, since one nothing reaches is in no image.

D284 — A static Linux executable holds the processor to its level in the entry

The tour said at [1500] and [1510] that a build assumes a CPU feature level, and D255 that an x86-64 level above the baseline is written into the executable's GNU property note, which glibc's loader refuses on a processor without it. A static Linux executable (D280) has no loader, the kernel reads no such note, and arm64 and RV64 executables carry none.

Chosen: platform/linux's _landin_start_main holds the processor to the executable's level before main runs. The level is the compile-time compiler.feature facts: fixed if selects, for each level, its name, its checks and its check_level, and the baseline's check_level is empty, so a baseline executable runs no check. On x86-64 the check reads cpuid leaves 1, 7 and 0x80000001 for D255's v2, v3 and v4 features in D255's order, and above v2 requires the system to save the state the level uses: OSXSAVE and XCR0's SSE and AVX bits for v3, and the opmask and ZMM bits for v4, read with xgetbv. On arm64 it reads AT_HWCAP for armv8.1-a's atomics, CRC32 and RDM. On RV64 it asks riscv_hwprobe for Zba, and a kernel that cannot answer does not confirm the level; no Linux interface reports XTheadBa, so it is not checked. A processor without a feature writes one line to standard error, landin: this executable needs LEVEL, and the processor lacks FEATURE, and ends the process with status 127, the status glibc's loader gives when it refuses an executable's ISA level, so a static and a libc build of one program end alike on one machine. Under --link=libc the C runtime starts the program, the loader's note applies on x86-64, and the entry check does not run. level, read_cpu_words and missing_feature are public, so the check can be tested on injected words.

The alternatives: no check, so a processor below the level faults with SIGILL wherever the first level instruction happens to run; a runtime table of levels, which duplicates D255 in data the baseline would carry; a compiler fact naming the level, which the feature facts already decide, at the cost that the library mirrors D255's level-to-feature table; a vendor-ID test for XTheadBa, which would refuse compatible implementations and accept T-Head cores without the extension; and status 132, SIGILL's, which reads as a crash rather than a refusal.

Pinned by runtime/linux-level-check at the default level, x86-64-v2, x86-64-v3 and armv8.1-a.

D285 — Standard input is the process concept's third stream

The tour said at [1660] that io.process holds the standard streams and the argument table, and D268 gave it out, err, argument_count and argument: a program could write to its standard streams and not read from one. io.out, io.err and io.argument_count took the provider by value while io.argument_at took a pointer, two forms for the functions of one concept.

Chosen: process gains input: (self: provider) -> (stream: file), taking the handle by value as every I/O entry does (D288), read through reader like any opened file: zero from a nonempty read is the end of input. hosted/system answers descriptor 0. core/io.memory answers handle 0 over the caller's input bytes, the argument memory_over takes after the argument table; the read_limit and fail_read_at of its io.memory_space apply to it as to a file, and closing it ends it. The five free functions io.input, io.out, io.err, io.argument_count and io.argument_at take the handle in as host: provider, as io.read, io.write and the files functions do, so a caller always passes the handle, io.write(host, io.out(host), ...), and nothing is locked; argument_at lends its result from host, and two arguments lent from one handle are live at once. A runtime or ABI fixture names the file its program reads as standard input with stdin:, relative to the fixture and below it; without the key every lane gives the program an empty input, never the harness's own. A fixture that reads standard input is hosted: firmware refuses it by name (D267) and the memory provider runs the same routine there.

The alternatives: in, which [1760] reserves; stdin, which keeps the C prefix out and err dropped; standard_input, long beside them; a separate concept, when D268 put the standard streams in process; free functions taking ptr provider, which makes a caller write addr host for a handle and host for the write beside it; free functions taking inout state: provider, which locks the provider while an argument lent from it lives, so a second argument or a write beside the first is refused (D288); stdin: relative to the harness's directory as a path among run_args then was, or inline bytes in the metadata; and inheriting the harness's input, which waits on a terminal until the time limit.

Pinned by runtime/word-count, runtime/word-count-empty, runtime/word-count-no-input, runtime/word-count-closed-input, runtime/word-count-memory, runtime/library-io-writer-adapter, runtime/first-program, runtime/io-handle-lends-two-arguments, the fixture suite's profiles are explicit and the platform suite's native standard input is fed from a file.

D286 — Decimals of every unsigned width, over bytes

The tour said nothing. core/text wrote and parsed decimals only as u32, and parsed only utf8, so a directory listing's u64 sizes and a number read from input as bytes had no library form, and programs in the tree each wrote their own.

Chosen: text.write_u64 and text.write_usize have write_u32's shape: they count the digits by division and report no_space before writing. text.parse_u32, parse_u64 and parse_usize read decimal digits from []u8 and report invalid_number or number_overflow, whichever the scan from the left meets first; usize is the target's width, so firmware parses 32 bits. to_u32 over utf8 parses the text's bytes. core/diag's position writer, the derived hosted program and the fizzbuzz and fannkuch writers use them; the configuration parser keeps its recursive digit parser, which the debugger sessions stop in. D355 retires the slice writers: the builder's appends are the one decimal writer, and the parses live with the signed and hexadecimal ones.

The alternatives: to_u64 and to_usize over utf8, which makes a caller validate digits as text first; a _bytes suffix, as the opens have, which reads as a conversion to bytes; one routine generic over the width, which needs integer arithmetic over a type parameter the language does not have; and writing usize through u64, which puts 64-bit division into a 32-bit image's diagnostics.

Pinned by runtime/core-text-decimal-widths on every target, runtime/word-count-memory, runtime/fizzbuzz, runtime/benchmark-game-fannkuch-redux, runtime/derived-hosted-memory, runtime/diagnostic-loggers-dispatch and runtime/library-shared-diag.

D287 — A path through a file is not found

The tour said at [1660] that a provider maps the host's errors to payload-free atoms and keeps the detail, and D153 mapped ENOENT to not_found and EPERM, EACCES and EROFS to no_access. ENOTDIR, a path whose directory part names a file, fell through to io_failed, though nothing exists at that path either.

Chosen: ENOTDIR, 20 on Linux, Darwin and FreeBSD, is not_found from open_read and open_write, and an output path that meets it is absent, so same_file answers false. last_errno still holds 20 for a caller that needs the difference.

The alternatives: keeping io_failed, which tells a caller the device failed when the path is simply wrong; and a not_a_directory atom, which widens every files signature for a distinction last_errno already keeps.

Pinned by runtime/hosted-io-not-a-directory on every hosted target.

D288 — A service is a handle, made from state its caller declares

Amended by D2050. io.writer_of, its adapter and lent_writer left once an any io.world converted to any io.writer (D1949, D1952); a routine holding only the world passes it where a writer is wanted. The rest stands.

The tour said at [1360] that an allocator is threaded rather than stored and wrote its entries inout a: provider, at [1660] that Io is a concept a root passes on, at [0790] that a result names what it borrows and at [0800] and [0830] that a binding lent to a live view is locked against inout. A service taken inout was therefore locked while anything derived from it lived: two arguments lent from one Io could not be held at once, a query could not be made beside an erased view built from the same provider, and a region could not allocate from its parent while the parent was used beside it. D153 had the four I/O concepts take ptr provider or ptr mut provider, so callers wrote addr host; mem.arena_over and io.memory_over returned the provider's state itself; and the region and the injector held their parent through a pointer the caller supplied, region.new(addr heap) and fault.new(addr inner, n).

Chosen: a value that is edited, a container or a bounded log, stays inout. A service is a handle: a small copyable record, passed in, that refers to its state through a pointer and whose lifetime is checked once, where it is made from that state. mem.allocator's alloc, grow and free and every entry of core/io's reader, writer, files and process take self: provider by value, and a conformance changes state through the handle. Free functions take memory: provider for an allocator and host: provider for I/O, passed in, and core/vec, core/map, core/tree and core/spill take memory: provider; a call is spelled as before.

Caller-owned state is a type the caller declares zeroed; over takes it inout, fills it and returns the handle from it. mem.arena_space and mem.arena have arena_over(inout state, escaping base, size) -> (handle: arena from state, base) and arena_over_unchecked with a plain base; pool.space and pool.provider have pool.over(inout state, base, extent, slot_size, slot_count, slot_alignment, bookkeeping), which reports mem.out_of_memory before changing the state; fault.space and fault.injector(P) have fault.over(inout state, inner, allowed_attempts); region.space(fixed capacity) and region.region(P) have region.over(inout state, parent) and region.release(inout state, parent), a capacity of zero growing the ledger through the parent and a positive one holding that many records in the state; and io.memory_space and io.memory have memory_over(inout state, files, arguments, input, output, errors). io.memory_space is public, so its limits, failure points and counters may be read and set while the handle lives; the handles are opaque. A state type holds only scalars, because zeroed has no image for a pointer, a slice or a pointer union (L0328), so a reference the caller supplies lives in the handle. Since the handle is from its state, returning it past that state is L0314, and release, which takes the state inout, is L0315 while the handle is still used; using the handle is an in use and locks nothing.

A provider stacked on another holds a copy of the other's handle: the region, the injector, io.writer_of's lent writer, writer_of(host: any world) -> (adapter: lent_writer from host), and diag.stream(host: any io.writer, where_to: io.file) -> (result: streaming from host), which takes both by value. region.release takes the parent again because a zeroable state cannot hold the parent's handle (L0328), and keeping the parent in caller state through an escaping parameter would refuse every frame-local parent with L0314. The diag.log concept keeps self: ptr mut logger, because a bounded log is an edited value. Process-wide state belongs to the process, so its handles borrow nothing and are bound without mut: system.new() returns a handle holding the argument table, its count and the process's last-error cell, heap.new() is unchanged, and the Linux heap's size classes are module state (D282). An erased capability is built from the address of a handle binding, any(addr host), which D289 dispatches; an immutable binding suffices.

The last error is the one value the system provider writes on behalf of its caller, so the handle names the cell it records into, failure: ptr mut i32, and system.last_errno(host) reads that cell. Every handle from system.new() shares the process's cell, a private module mut of hosted/system. system.over(inout state: system.space) -> (handle: system from state) fills a caller-declared, zeroable system.space holding one failure: i32 and returns a handle that records its last error there instead, for a C thread calling into Landin or a library that keeps its own detail. Either handle shares the process's arguments and descriptors, and either traps before the argument root exists. D207's thread-local meaning is therefore kept by ownership until thread-local storage exists: a thread over its own cell reads only its own failures.

An allocation still borrows nothing from its allocator: [0810]'s integer conversion is kept. A block returned from self and kept in a container's inout storage would be L0314, and making the handle escaping to allow it would refuse every handle over frame-local state.

The alternatives: inout providers, which refuse the three programs above. ptr providers, which make every caller write addr host for a service it holds by value. A parent stored in the state, which needs escaping and so refuses a frame-local parent with L0314. A fourth parameter convention, or lending from an in parameter, either of which lets reads through while two writes through one provider still collide. State written into the caller's backing bytes, which the region, the injector and the memory world do not have. Making the state in one call and taking its handle in a second, which leaves state without a handle between them and doubles every constructor. For the last error: one process cell and no other, which reverses D207 and mixes the failures of C threads; a declared cell behind every handle, which loses the one-line system.new(); and a field in the handle value itself, where a write in the callee's copy is lost.

Pinned by runtime/io-handle-lends-two-arguments, runtime/io-handle-beside-erased-view, runtime/region-beside-parent, negative/handle-outlives-state, negative/region-release-live-handle, negative/core-fault-needs-mutable-inner for an immutable state, negative/core-io-world-readonly-receiver, negative/core-fault-frame-escape, negative/r480-region-frame-provider, negative/r440-parser-frame-arena, abi/r440-native-startup-initialized, runtime/diagnostic-loggers-dispatch, negative/core-diag-frame-world-escape, and for the last error abi/r440-errno-thread-local on Darwin and FreeBSD, runtime/r440-errno-detail and runtime/hosted-io-not-a-directory.

D293 — A directory is a value read through a fifth concept

The tour said at [1660] that a program reaches its host only through the capabilities it is given, and D268 gave core/io four concepts. Nothing could list a directory, so an outside program listing one made its own system calls.

Chosen: io.directories is a fifth concept, outside world, with open_directory, read_entry, entry_size, close_directory, make_directory, remove_file and remove_directory; the listing consumer has to build and clear its own tree. Its provider is a handle (D288); an open io.directory is a value the caller edits. open_directory(host, path, buffer) returns a directory from a buffer the caller supplies, read_entry takes it inout and returns an entry whose name is lent from it until the next read, and close_directory takes it sink. An entry is its name as []u8 and its kind, regular | subdirectory | symbolic_link | special, never following a link; where the file system records no kind the provider asks the entry itself, and skips one removed in between. An empty name is the end of the directory, as zero bytes is the end of a read; . and .. are never entries. entry_size gives a u64 relative to the open directory without following a link, and a name that is empty, holds / or NUL, or is 1,024 bytes or longer is not_found without asking the host. io.directory_buffer is 1,024 bytes, the hosted providers' smallest buffer, which every hosted system's entries fit. A missing path or a file used as a directory is not_found (D287), EPERM, EACCES and EROFS are no_access, a name make_directory finds taken is the new atom io.already_exists, and anything else is io_failed with its errno kept. A directory dropped without close_directory keeps its descriptor until the process ends; defer io.close_directory(...) is the idiom. On Linux, getdents64 fills the caller's buffer, and every record is held to lie inside what was filled, to be long enough for its header and to end its name inside itself, so a bad record is io_failed rather than a trap. Darwin and FreeBSD open with O_DIRECTORY and read through fdopendir, readdir and closedir, copying each name into the caller's buffer, and make and remove with mkdirat and unlinkat. The memory provider's directories are the slot names' parts before a /, and a slot ending in / is an empty directory; it refuses changes other than an existing directory's already_exists with no_access, so memory_over keeps its signature.

The alternatives: widening world, which every world provider and every firmware image using world would carry; adding the removals to files, which widens every conformance; a result flag, an end atom or a union for the end of a directory; a size in every entry, a status call per entry for a listing that wants names; listing . and .. as POSIX readdir does; an opaque directory type, which a provider in another module cannot build; Darwin's getdirentries, deprecated and unavailable with 64-bit inodes; and getattrlistbulk, whose attribute layout no fixture here could pin.

Pinned by runtime/directory-listing, the published listing consumer; runtime/directory-larger-than-buffer, which refills a small buffer many times and sees every name exactly once; runtime/directory-missing-path, runtime/directory-through-file and runtime/directory-name-not-utf8, the last reporting each system's own outcome; runtime/directory-memory and runtime/directory-memory-firmware; abi/libc-directory-record, which holds each system's struct dirent and constants to its C headers; and negative/directory-name-outlives-read, a name kept across the next read.

D294 — Every Linux system call is reachable by number

The tour said nothing of the system interface beneath the library, and D279 kept platform/linux's raw call private behind eight wrappers, so a Linux program needing any other call wrote its own assembly block and its own numbers.

Chosen: the raw call is public as system_call, six integer arguments and an integer result, minus the errno on failure. platform/linux/numbers names every call's number for x86-64, arm64 and RV64 by one rule, the kernel's table name followed by _number, which no reserved word or wrapper can meet. The numbers are generated by scripts/linux_syscalls.py from a pinned kernel release's own tables, x86-64's syscall_64.tbl with the common and 64 ABIs and the generic table for arm64 and RV64 with each architecture's own entries, and the generated file names the release and its checksum; the generator can check the committed file instead of writing it. With no release named it holds numbers.ldn to being its own rendering under the pin and writes or checks the wrappers from it, so adding a typed wrapper needs no kernel source; the release is needed only to change the pin. The wrappers take their numbers from the same tables, through a private generated file, so there is one source of numbers. The numbers are a module of their own, imported by a program that calls by number, so platform/linux stays the wrappers every static Linux program imports; a program pays only for the numbers it uses (D296). Typed wrappers stay for the calls the library itself makes, getdents64, mkdirat and unlinkat among them.

The alternatives: keeping the call private, which leaves every unwrapped call to hand-written assembly; numbers written by hand, which drift from the kernel; the numbers inside platform/linux, a thousand declarations in every static Linux program's sources; and a typed wrapper for every call, which the roadmap's register keeps in view as its own record.

Pinned by runtime/linux-system-calls, extended to the public route, and scripts/tests/test_linux_syscalls.py, which runs the generator on small tables and requires the committed files to be its output.

D297 — The hosted library stands on a POSIX layer

The tour said at [1660] that a program reaches its host through capabilities, and D276 and D279 put each system's interface beneath hosted/system and hosted/heap, which then wrote every facility once over Linux's system calls and once over the C library.

Chosen: four layers. Each system's own interface stays raw under platform/: platform/linux with its numbers (D279, D294) and platform/libc (D276). platform/posix gives POSIX's facilities in Landin types, written once over each (D298). The portable concepts in core name no POSIX type, so io.file is a distinct usize, an open directory holds a handle: usize, and no integer descriptor, mode bit, owner, signal number or errno is in a core signature. hosted/system and hosted/heap are written once over platform/posix, with no code of their own for any system. All three platform modules are scoped to the hosted POSIX systems, Linux, Darwin and FreeBSD, by namespace and by a compiler.assert, and firmware refuses them by name with L0015; platform/libc serves Linux too, under --link=libc. Every public routine of platform/posix has a _landin_posix_ link name, so none replaces a C library function of the same spelling. A BSD and Darwin module for kqueue comes with the event-driven Io that needs it.

The alternatives: writing every hosted facility twice, once per route; platform/linux scoped to Linux alone, which needs a conditional import the language does not have; and a compiler fact for POSIX, where the namespace rule already scopes platform/c and platform/cortex_m.

Pinned by every hosted fixture, unchanged in behaviour, runtime/posix-files, runtime/posix-directories, runtime/posix-memory, runtime/posix-poll and runtime/posix-errno, and the firmware refusal of runtime/posix-files on Cortex-M.

D418 supersedes the _landin_posix_ link names: under D415 a public routine is a local symbol and replaces no C library function, so each keeps its own name.

D298 — POSIX's descriptor, errors and status in Landin types

The tour said at [1660] that a provider maps the host's errors to atoms and keeps the detail, and D153, D207 and D287 did so for the four I/O concepts.

Chosen: posix.descriptor is a distinct i32, with standard_input, standard_output, standard_error and working_directory, the *at calls' AT_FDCWD. Every errno any of the three systems defines is an atom named after its C macro in lower case, 154 of them and unlisted, in the atom set posix.errno; an alias has no atom of its own, so EWOULDBLOCK is eagain, and ENOTSUP is its own atom only on Darwin. number gives an atom's number on this system and errno_of a number's atom, through tables generated from Linux's, FreeBSD's and Darwin's headers. The calls are POSIX's own: open_at, read, write, close, status_at with a status of device, inode, kind and size, the directory calls over a caller's buffer, which list . and .. as POSIX does, make_directory_at, unlink_at, remove_directory_at, map, unmap, page_size, exit and poll, whose events are a distinct u16 flag set (D302). None retries EINTR or completes a short transfer; that is provider policy in hosted/system. Each path is copied with its NUL into a per-system PATH_MAX buffer, so the terminator never reaches a caller; a path holding a NUL is einval and one too long enametoolong. The argument root lives here, with the environment's table since D311, read from the initial stack on a static Linux program and through the C runtime otherwise, as a real ptr ptr u8 (D301).

The alternatives: a numeric errno, which is not D287's atoms; an atom set of only today's errors, which every later item would widen; and retrying EINTR in the layer, which takes a policy decision from the providers.

Pinned by abi/posix-errno-numbers, which holds each system's table to its own C header, runtime/posix-errno, runtime/posix-files and runtime/posix-poll.

D299 — A host string is passed through unconverted

The tour said at [0260] that text is utf8, and paths were NUL-terminated ptr u8 with byte and text variants, arguments a pointer and a length. Neither POSIX nor Windows promises that a name or an argument is UTF-8, and Windows' are 16-bit units.

Chosen: text.host_string is one opaque type whose representation is chosen in one place by target, bytes on every system today, so a 16-bit representation for Windows goes there. text.host_over makes one lending its bytes, text.host_bytes gives the bytes back, text.from_host converts to utf8 and fails invalid_text when it is not, and text.host_equal compares with a literal. Every path the files and directories concepts take, every argument and every directory entry's name is a host string, so a value passed from an argument to open is never converted. io.terminate_path, the _bytes and _text open variants, io.copy_argument, io.argument and the atoms empty_path, path_contains_nul, path_too_long and argument_too_long are withdrawn; those cases are now the system's own answer, not_found for ENOENT and io_failed for EINVAL and ENAMETOOLONG, their errno kept. The memory provider's argument table is [][]u8, which firmware can declare as static data.

The alternatives: a host-string parameter on every generic function, which makes every portable program generic or a converter; converting at the boundary, which converts on every pass-through on Windows; cstring paths, which give the caller the terminator and lose the length; and keeping the variants beside host strings, which every path made redundant. A Windows counterpart of host_over is not designed yet.

Pinned by abi/host-string-pass-through, in which an argument that is not UTF-8 is lent unchanged, refused by from_host and used as a path, which Linux and FreeBSD create and Darwin refuses with EILSEQ, and runtime/core-io-erased-system.

D300 — One heap on every hosted system

The tour said at [1360] that one allocator concept serves every heap, and D277 kept malloc beneath hosted/heap on Darwin and FreeBSD while D282 gave Linux size classes over its own mappings.

Chosen: D282's size-class heap is the heap of every hosted system, over platform/posix's map and unmap, so hosted/heap has no code of its own for any system. It is single-threaded everywhere; a heap that threads share is the threads item's, on every system alike, which D502 and D514 give it.

The alternatives: keeping malloc on Darwin and FreeBSD, which keeps per-system code in hosted/heap and a thread-safe heap on two systems only.

Pinned by runtime/hosted-heap-provider, runtime/posix-memory and abi/r440-native-hosted on every hosted target.

D304 — Byte blocks over slices

The tour said at [0570] that a slice carries its length, and core/mem handled typed storage but not blocks of bytes, so copying, filling and comparing were loops written again in each program.

Chosen: mem.copy(into, source) copies with memmove's rule, from the last byte down when the destination starts inside the source after its first byte and from the first up when it starts at or before the source, so overlap is always safe; one wholly after the source may go either way. It fails out_of_bounds before writing when into is shorter; a longer destination keeps its tail. mem.fill sets every byte. cmp.compare answers the atom set less | equal | greater, bytes unsigned and a proper prefix first. mem.find gives the first match's index or the source's length, so source[0..<find(…)] is always valid.

The alternatives: a separate overlap-unsafe copy, which is a speed question for the optimizer; equal lengths required, a trap, or silently copying the shorter; an i32 sign or a bool from compare; and a missing atom or a union from find.

Pinned by runtime/core-mem-blocks, both overlaps among its oracles, on every target, and runtime/core-mem-blocks-alignment, which holds copy, fill and find to a byte-at-a-time model at every alignment: their word loops on hosted targets, which copy up and search a word at any address on x86-64 and arm64 and only at a multiple of the word on RV64, and the byte loops firmware keeps for its flash.

D305 — A text builder writes whole pieces into the caller's buffer

The tour said at [1660] that output is bytes a writer takes, and core/text wrote decimals into a slice and returned how far it got, so every program kept its own offsets and appended byte strings by hand.

Chosen: text.builder is a value the caller edits inout. text.over(buffer) makes one bounded by the caller's buffer, and text.growing(allocator) one that starts empty and doubles through an erased mem.allocator, resizing its storage through the allocator, which grows it in place or moves it (D337), and given back with text.release. Bytes, a byte, utf8, host strings, signed and unsigned decimals of every width and lower-case hexadecimal are appended; each piece is written whole or not at all, failing no_space with the builder unchanged, which is also a growing builder's answer when its allocator refuses. text.align_right and text.align_left pad what was written since an earlier text.length. The allocator is erased because the formattable entry must name one builder type.

The alternatives: a builder generic over its allocator, which an erased entry cannot name (D146); a static refusing allocator inside every bounded builder, which D222 refused until D375; an atom-or-erased union, which D189 does not admit; out_of_memory in every bounded caller's error set; partial pieces; and a width and fill on every typed append.

Pinned by runtime/core-text-builder and runtime/core-text-format-firmware, the latter on the Cortex-M0 profiles.

D306 — text.format takes {} and checks its count when it runs

The tour said that nothing runs at compile time [1290], so a format string cannot be checked against its arguments when the program is compiled.

Chosen: text.format(into, template, values) writes template into a builder with each {} replaced by the next value, an any text.formattable whose one entry appends the value; {{ and }} are a brace. The whole template is checked before anything is written: a count that disagrees with the values, or a stray brace, is invalid_format and writes nothing, and no_space part-way restores the builder's earlier length. Width, fill and radix are the builder's typed calls, not the template's. The integer types, bool, utf8, []u8 and host strings conform. Formatting is the same in every locale and keeps no global state.

The alternatives: a specification language in the braces, every part of it a failure found only when the program runs, its parser flash on Cortex-M0, and its radix a parameter every conformance would have to honour; a visible marker for a missing value; an error held by the writer; and a byte-string template.

Pinned by runtime/core-text-format, whose oracles include a count that disagrees either way, and runtime/core-text-format-firmware.

D307 — Parsing mirrors what the builder writes

The tour said nothing of parsing beyond D286's unsigned decimals.

Chosen: core/text parses signed and unsigned decimals of every width and hexadecimal over bytes. A signed value takes an optional - and never a +, because no append writes one, and -0 is zero; hexadecimal takes either case and no prefix. Overflow is found during the scan against the type's own limit, so the first problem from the left is the one reported, as number_overflow or invalid_number.

The alternatives: a leading +, which nothing writes; and checking a signed range after an unsigned parse, which changes which refusal comes first.

Pinned by runtime/core-text-parse-signed on every target.

D945 — Positions over utf8 step a whole scalar

The tour said at [0600] that on []u8 core/text counts positions as opaque byte offsets, with first, at_end, next, advance, offset, byte and slice, and at [0610] that a text.position indexes utf8 in O(1); D184's traversal yields each scalar and keeps its cursor private. So a program that read a scalar and needed the byte offset beside it, to slice the text there, counted widths from leading bytes by hand.

Chosen: text.start(source), text.done(source, at), text.width(source, at) and text.step(source, at) take a utf8 and the existing text.position. start is offset zero, the end itself for empty text; done holds at or past the byte length; width is the one to four bytes encoding the scalar at at; and step is at advanced by that width. width and step read the scalar as source[at] does, so they trap exactly where D182 and D249's position index traps, at the end and on a continuation byte, through the same checked-address failure, and declare no atom. Every position they return is therefore a scalar's start or the end, which are the offsets D183's ranges accept, and text.offset gives either kind of position's byte offset. The byte cursors keep their names and contracts. A scope gives one name to one thing [1850], so the scalar forms are four new names, each taking its text first as D269's accessors take their subject: start beside first, done beside at_end, and step beside next, because it moves by a scalar and needs the text to know how far. A firmware entry named start keeps its own symbol beside this one, since an export is never the item D417 qualifies.

The alternatives: past_end from a step at the end, as byte declares, which every loop would have to recover from although a loop that tests done never meets it; an iterable conformance yielding a position and a scalar together, for which core declares no concept [1320] and D184's intrinsic one is closed; first, next and at_end over utf8, which changes the byte scanners prototype 2's lexer is; and names such as first_scalar, which suggest the byte forms read something else than the bytes they read.

Pinned by runtime/core-text-utf8-split, runtime/core-text-step-at-end-traps, runtime/core-text-utf8-firmware and runtime/library-shared-text on every target.

D946 — A search over text returns where the match begins

The tour said at [0600] that core/text has substring search, and D199 made contains a Two-Way search that answers yes or no and finds empty text everywhere. No search said where, so a program could not take the parts of a text around a found separator.

Chosen: text.find(source, sought) and text.find_from(source, sought, at) return the position at which sought first begins, in all of source or at or after at, and text.find_scalar(source, scalar) and text.find_scalar_from the position of the first scalar equal to scalar; each reports the new atom text.not_found when there is none. Empty text is found where the search begins, start or at, as contains finds it. The text searches and contains share one private Two-Way routine, so contains keeps its result, its empty-text rule and its linear time, and a search from at costs the same over what follows it. A search from at takes that rest as D183's range source[offset(at)..<lenof source], which traps on a position inside a scalar or past the end. A scalar search encodes the scalar as D947 does and searches for those bytes as for text; a surrogate or a value above U+10FFFF is not_found, since no text holds one.

Shortest-form UTF-8 synchronizes itself: a leading byte never equals a continuation byte, so a match of valid sought text in valid text begins at a scalar's start and ends at one. The parts of the source before, at and after a match are therefore D183 ranges of it, utf8 views with its origin and read-only permission and nothing copied, and returning one needs the exact from source as any range does. not_found's words are not in the text; failure.reason holds it (D388).

The alternatives: mem.find's convention of the length for no match, which is a real match position for empty text and so would be ambiguous, and which a forgotten check turns into the whole rest of the text; reusing map.missing, whose words name a key and whose module core/text would import for an atom, io.not_found, which core/text cannot name because core/io imports it, or past_end, which is a read past the end that a search never makes; and a count of scalars, which costs a scan to use and which D183's ranges do not take.

Pinned by runtime/core-text-find, runtime/core-text-utf8-split, runtime/core-text-find-inside-scalar-traps, runtime/core-text-utf8-firmware, runtime/library-shared-text and negative/core-text-found-view-escapes.

D947 — The encoder writes a whole scalar or nothing

The tour said at [0250] that a character is a u32 scalar, and D249 made every indexed or traversed scalar one, but nothing in the library turned a scalar back into bytes.

Chosen: text.encode(scalar, into) writes the shortest-form UTF-8 encoding of scalar, one to four bytes, at the front of into and returns how many; a caller encodes at an offset by passing what follows it, buffer[at..<lenof buffer]. A surrogate, U+D800 to U+DFFF, or a value above U+10FFFF reports invalid_scalar, and a scalar wider than into reports no_space. The width is known before the first store, and invalid_scalar is reported first, so a value that is no scalar is refused the same way whatever the room. Either refusal writes no byte: into is as it was, which is the encoder's whole partial-update rule. text.append_scalar(into, scalar) appends the same bytes to a byte builder through its room check, whole or not at all as every append is (D305), with the same two refusals in the same order and the builder unchanged by either; a growing or draining builder makes room as it does for any piece. invalid_scalar's words are not a Unicode scalar value.

The alternatives: writing U+FFFD for a value that is no scalar, which changes the text without saying so; trapping as a conversion does, though the value is often input, a parsed escape or a protocol field, and a foreseeable refusal is declared; an offset parameter and a returned next offset, the slice-writer shape D355 retired; and a public width query, which the result already answers after the fact and no consumer needed before it.

Pinned by runtime/core-text-encode, runtime/core-text-utf8-firmware and runtime/library-shared-text.

D948 — A utf8_builder holds only whole scalars

The tour said at [0600] that utf8 is validated text, and D305's builder writes bytes, which an append of bytes, a host string, a byte or a cut inside a scalar can leave anything but UTF-8.

Chosen: text.utf8_builder, made by text.utf8_over(buffer) over the caller's buffer, is a byte builder whose only appends keep its bytes UTF-8: utf8_append_text, utf8_append_scalar, and the decimal and hexadecimal appends of every width, whose digits and sign are ASCII. Each is the byte builder's call with utf8_ before it and writes the same bytes: whole, or no_space, or for a scalar invalid_scalar first, with its length and buffer unchanged. It has no append of bytes, of a byte or of a host string, no alignment, whose fill is a byte, and is not a format destination, since a formattable may append any bytes. utf8_truncate keeps the whole scalars of the first count bytes: a count inside a scalar cuts back to that scalar's start, so the bytes stay UTF-8, and a count at or past the length changes nothing. utf8_clear, utf8_length and utf8_capacity are the byte builder's. utf8_used lends what it holds as one utf8 view and utf8_bytes as bytes, each from the builder, which is from its buffer, so a view of a frame's storage cannot be returned past that frame. The text view is made with D949's compiler.utf8_unvalidated and nothing is scanned: the appends and cuts are what make the bytes UTF-8. The prefix is D269's, for a module that holds several types.

The alternatives: a flag in the byte builder saying whether every append kept it valid, which a type cannot show and every finish would test; a distinct byte builder, which needs the same new names to say which calls it admits; a cut inside a scalar that traps, as D183's range does, which library code reaches only through a view the builder does not have, or that is refused with an atom, when rounding down keeps the invariant and a count an earlier utf8_length gave is never inside one.

Pinned by runtime/core-text-utf8-builder, runtime/library-shared-text, negative/core-text-utf8-builder-takes-no-bytes and negative/core-text-utf8-builder-view-escapes.

D949 — compiler.utf8_unvalidated makes text of bytes known to be valid, inside unchecked

The tour said at [0600] that utf8 holds validated UTF-8, and D199 made the conversion from bytes validate and trap, even inside unchecked, and introduce no core privilege. A program whose bytes are valid by construction, a builder that appends only whole scalars or a validator that has just checked them, could reach a utf8 only by scanning them again.

Chosen: compiler.utf8_unvalidated(bytes) takes one immutable []u8, or a []mut u8 weakened to it as an argument is, and gives a utf8 with the operand's base, length, origin and read-only permission, exactly as D199's conversion gives them, with no scan, copy, allocation or backend opcode: the view is the operand's descriptor under the text identity. It is admitted only in an unchecked region; anywhere else it is L0600, which names utf8(bytes) and text.from_bytes for a checked conversion and unchecked begin ... end unchecked for bytes valid by construction. Bytes that are not UTF-8 are D199's outside non-guarantee, the text.unvalidated row: indexing, ranges, traversal and comparison may then read a scalar wrongly, and no check finds it. D199's conversion is unchanged everywhere, its trap inside unchecked included. Any program may call it, so core gains no privilege; text.from_bytes validates once and then makes its view with it, and the utf8_builder's utf8_used (D948) lends its text with it.

The alternatives: making D199's conversion skip validation inside unchecked, which reverses an explicit rule and changes what existing unchecked code does; validating when a builder finishes, which scans again what the builder already knows; and a privilege of core/text's, which D199 refused.

Pinned by positive/utf8-unvalidated-keeps-origin, negative/utf8-unvalidated-outside-unchecked, negative/utf8-unvalidated-escapes-its-source, negative/utf8-unvalidated-is-read-only, runtime/utf8-unvalidated-does-not-scan, runtime/core-text-utf8-builder and the text.unvalidated guarantee row.

D308 — A buffered writer is flushed explicitly, and a line reader lends its lines

The tour said that there are no destructors [1100], so nothing runs when a value's storage ends.

Chosen: io.buffered_writer(provider) is a value edited inout over a writer's handle and a caller's buffer. io.put buffers what fits, flushing first when it does not, and writes a piece at least the buffer's size straight through. io.flush writes with write_some until the buffer is empty, so after a failure exactly the unwritten bytes stay at its front and a later flush writes each byte once; a writer that makes no progress is io_failed. Bytes still buffered when a program ends are never written: defer io.flush(…) and a final flush whose failure is reported are the idiom, documented as a hazard wherever the writer is. io.line_reader lends each line until the next read, as a directory lends its names (D293): a line ends at \n, a \r before it belongs to the ending, a lone \r is a byte, and the last line need not end. A line and its ending must fit the buffer; a longer one is io.line_too_long and is skipped, so the next read gives the following line. End of input is a line marked finished, asked again as often as the reader likes.

The alternatives: a flush at exit, which needs global state; a writer provider in place of a value; lines delivered in parts, which a naive reader takes for whole lines; and an end atom or a kept newline marking the end.

Pinned by runtime/core-io-buffered-writer, runtime/buffered-writer-closed-output, runtime/core-io-line-reader, runtime/line-numbers, the published consumer, and negative/line-outlives-read.

D311 — The hosted entry hands the argument initializer the environment too

The tour said at [1650] that the hosted world keeps the table of arguments it was started with. The environment had no carrier: a static Linux program finds it on the initial stack, but on Darwin, FreeBSD and under --link=libc it is C's global environ, and a C global cannot be imported.

Chosen: _landin_host_initialize_arguments takes C's three main arguments, (count: i32, escaping values: ptr ptr u8, escaping environment: ptr ptr u8) -> none, and the hosted main passes its envp with the rest; it is already in the third argument register on every architecture, so no backend moves anything. A null table is an empty environment, and a repeat must repeat all three. A static Linux program's entry passes the initial stack's table and the C runtime passes its own, so both reach the environment through one routine. The table is counted again on every read, because C code may change it in place.

The alternatives: reading environ, which cannot be imported; getenv, which cannot iterate; a second initializer, which needs registers moved in three backends; and a new symbol name, which would leave an outside caller of the two-argument form failing at link time rather than at its check.

Pinned by abi/environment-from-c, runtime/environment-variables and runtime/environment-variables-libc, and the hosted-initializer-* negatives, refusing every other signature with L0347.

D312 — The environment is a read-only concept of its own

The tour said at [1660] that a program reaches its host through capabilities it is given, and nothing reached the environment.

Chosen: io.environment is a concept outside world, with variable_count, variable_at and variable_named, the first match by bytes, failing no_variable. An io.variable is a name and a value, both host strings (D299), lent from self, which D301's static origin satisfies on a hosted system; an entry without = is a name with an empty value. There is no setter: a program's own environment is not changed beside threads, and a child gets the environment its parent builds. io.variables_over gives a provider over NAME=value byte strings that firmware can declare as static data.

The alternatives: the entries in the process concept, which put about 6 KiB into every Cortex-M0 memory-world image and pushed six firmware fixtures past 32 KiB, where a concept of its own costs nothing until used [1260]; a cursor, where an index mirrors the arguments; and a setter.

Pinned by runtime/environment-variables, runtime/run-environment, whose values are not UTF-8, and runtime/run-memory-firmware.

D313 — A program is run by its path and reported as ending one of two ways

The tour said at [1660] that authority is passed, never ambient, and nothing could run another program.

Chosen: io.programs is a concept outside world, shaped like D293. io.spawn(host, path, arguments, environment, streams) runs the program at the path as given, with no search and no shell; its first argument is the path, and its environment exactly what the caller built. Each of its three streams is inherited, discarded or piped, with presets inheriting, capturing and discarding. A running child is a value the caller edits: io.write_child and io.close_input feed it, and io.read_child waits on both piped outputs and reads whichever is ready, so a child is never stalled on a full pipe. io.wait takes the child sink, closes its pipes and answers io.ending, exited(code) or signalled; the signal's number is hosted detail, system.last_signal(host), kept in a cell of the handle's system.space beside its last error. io.scripted_over(world, programs) gives scripted children whose output, errors, code and ending are given, recording how often each started, its argument and variable counts and the input written to it.

The alternatives: a shell string, which hands quoting to the program; a search of PATH in the library, which the caller can do over the environment; pipe ends as world files, which every memory image would pay for; a signal number in a portable signature, which Windows does not have; and reading one output at a time, which deadlocks on a child that fills the other.

Pinned by runtime/run-shell, the published consumer, and its twin runtime/run-shell-memory; runtime/run-missing-program, runtime/run-signalled, runtime/run-large-output, a mebibyte on each stream interleaved, and runtime/run-streams.

D314 — Every descriptor the POSIX layer makes is closed on exec, and a child starts clean

The tour said nothing of what a child inherits.

Chosen: platform/posix opens every descriptor close-on-exec, files, directories and pipes. posix.pipe is pipe2(O_CLOEXEC) on Linux and FreeBSD and pipe followed by fcntl on Darwin, which has no pipe2, so it is not atomic there. posix.spawn builds the argument and environment tables in a temporary mapping and first moves any stream descriptor below 3 that is not its own number above 2. On Linux it is a clone with SIGCHLD and nothing shared, whose child sets its streams with dup3, closes the rest with close_range(3, ~0, CLOSE_RANGE_CLOEXEC) and calls execve; an exec failure reaches the parent through a close-on-exec pipe and the child is reaped. On Darwin and FreeBSD it is posix_spawn, with POSIX_SPAWN_CLOEXEC_DEFAULT and posix_spawn_file_actions_addinherit_np on Darwin and posix_spawn_file_actions_addclosefrom_np(3) on FreeBSD. posix.wait is wait4 or waitpid and answers exited(code) or signalled(signal); the hosted provider retries EINTR. A stream that is already its own number is D378's, which amends this decision.

The alternatives: vfork or CLONE_VM, which need a routine Landin cannot express that runs on the parent's stack; posix_spawn through glibc, which a static Linux program does not have; and leaving descriptors inheritable, which leaks every open file into every child.

Pinned by runtime/run-no-descriptor-leak, which reports a leak when close-on-exec is removed, runtime/posix-processes and abi/libc-process-constants, which holds each system's constants to its headers.

D378 — A child receives every stream it is handed, closed on exec or not

The tour said nothing of what a child inherits, and D314 had spawn move a stream below 3 that was not its own number above 2, and leave one that was as the parent's own stream, inherited as it was. A descriptor the POSIX layer makes is closed on exec, and a process whose standard input is closed gets its next one at 0: a file opened then and handed to a child as its input was its own number, was left in place with its flag, and the exec closed it, so the child read from no descriptor at all. Linux skipped its dup3 and FreeBSD its posix_spawn_file_actions_adddup2 for it; Darwin named it with posix_spawn_file_actions_addinherit_np.

Chosen: spawn duplicates every stream below 3 above 2 for the call, its own number included, with F_DUPFD_CLOEXEC, and closes the duplicate after, so each stream reaches its number in the child by a duplication from another descriptor, which clears the close-on-exec flag in the child alone: dup3(source, target, 0) on Linux and posix_spawn_file_actions_adddup2 on Darwin and FreeBSD. The parent's descriptors and their flags are never changed. The same descriptor may be given for several streams. A stream that is its own number and not open in the parent cannot be duplicated and is left as it is, so the child's is not open either and the spawn goes on; any other stream that is not open is ebadf. Darwin no longer names an inherited stream: a stream that reaches the child is a duplication's target, which POSIX_SPAWN_CLOEXEC_DEFAULT keeps. This amends D314.

The alternatives: clearing the flag with fcntl(F_SETFD) in the Linux child, which posix_spawn cannot do on FreeBSD without trusting that its adddup2 of a descriptor onto itself clears the flag, as POSIX.1-2024 asks and older systems do not; relying on Darwin's posix_spawn_file_actions_addinherit_np, whose clearing of the flag is Darwin's alone; refusing a stream that is closed on exec, which makes the caller rearrange its descriptors for a fault of the layer's own; and clearing the flag in the parent, which another thread's exec could inherit and which changes the caller's descriptor behind it.

Pinned by runtime/posix-spawn-standard-streams, which closes the program's standard descriptors, makes a socket closed on exec at each and spawns a shell from them in every permutation, with one descriptor for two streams and for all three, and with a closed standard error; runtime/posix-processes and runtime/run-no-descriptor-leak.

D315 — Time is a count of nanoseconds, and the wall clock seconds and nanoseconds

The tour said nothing of time, and floating-point values are neither written nor parsed as text yet.

Chosen: time.duration and time.instant are each a distinct u64 of nanoseconds, about 584 years, and ordered and compared as their base is (D302). time.wall_time is a record of seconds: i64 and nanoseconds: u32, UTC since 1970 without leap seconds. Spans are made with time.nanoseconds, time.microseconds, time.milliseconds and time.seconds, which trap past the range; time.elapsed traps when its second reading is the earlier one; time.later makes a deadline, and time.in_milliseconds rounds down. There is no other arithmetic on time. Calendars, time zones and their formatting are the locale record's in the roadmap's register.

The alternatives: a signed duration, which halves the range for spans that are never negative; a seconds-and-nanoseconds record for every value, which doubles the arithmetic; plain u64 aliases, which let an instant be added to another; 32-bit counts, whose nanoseconds wrap in four seconds; floating-point seconds; a saturating or fallible elapsed, which hides the mistake it reports.

Pinned by runtime/clock-manual on every target, Cortex-M0 included, and runtime/clock-system.

D316 — A clock, a wall clock and entropy are concepts of their own, and a sleep never returns early

The tour said at [1660] that authority is passed, and D312 put a facility firmware need not pay for outside world.

Chosen: time.clock holds now and sleep together, because a sleep is measured on that clock and its fake must advance it; time.wall_clock holds wall_now, apart, because firmware may count time without knowing the date and the wall clock jumps; io.entropy holds fill_random. All three are outside world, with fakes in core/io: fake.clock_over gives a manual_clock a test advances, whose sleep advances it by exactly the span, and fake.entropy_over gives scripted bytes. Reading a clock cannot fail; a failure of the system's own is compiler.unreachable(). A sleep cannot fail and never returns before now has reached its start plus the span: the hosted provider takes a deadline from the monotonic clock and sleeps for what is left, at most a million seconds a call, treating any failure, EINTR among them, as a reason to read the clock again; a deadline that would overflow is the clock's last instant. Entropy is fallible, and on Linux is getrandom with no flags, which waits only before the kernel's pool is first ready, looping over short reads and EINTR; on Darwin and FreeBSD it is arc4random_buf, which cannot fail.

The alternatives: widening world; one concept for all three; a separate concept for sleeping; an absolute-deadline sleep, which Darwin's nanosleep cannot do; a fallible sleep; GRND_NONBLOCK with an atom for an unready pool; GRND_INSECURE; /dev/urandom, which needs a descriptor and fails in a chroot; and getentropy, limited to 256 bytes a call.

Pinned by runtime/clock-system, whose oracles are monotonic order and a sleep's lower bound, runtime/clock-manual, runtime/run-shell, which times its child, runtime/run-shell-memory, abi/clock-agrees-with-c, runtime/sleep-signal-sleeps-on, a caught SIGUSR1 ending a sleep's nanosleep with EINTR a tenth of a second in and the sleep lasting its half second, and runtime/events-signal-during-sleep, the same signal waking the event loop while a fibre sleeps, on every hosted target.

D317 — Linux reads its clock through the vDSO

The tour said nothing of how a clock is read. A system call to read the time costs about 270 ns; the kernel's vDSO answers in about 27.

Chosen: platform/linux/vdso's vdso.symbol (D346) finds the clock function the auxiliary vector's AT_SYSINFO_EHDR names: __vdso_clock_gettime at LINUX_2.6 on x86-64, __kernel_clock_gettime at LINUX_2.6.39 on arm64 and __vdso_clock_gettime at LINUX_4.15 on RV64. It reads the first load segment and the dynamic table, counts symbols from DT_HASH or else DT_GNU_HASH, since only x86 forces both, and requires the version, or the name alone where there are no version tables. Every offset is held inside the image before it is read, by arithmetic that cannot overflow, and the image is bounded by its first page for the headers and its first load segment, at most a mebibyte. The function's address is cached in a plain module word on first use, a relaxed u64 cell of core/atomic since D502, and called through D335's conversion of that address to a C function value. A missing symbol, a malformed image or a nonzero answer falls back to the system call. Since D279's adoption it serves --link=libc too, and time.now costs about 116 ns either way.

The alternatives: the system call alone; resolving the vDSO in every static program's entry, which carries its 17 KB into every image; and relaxed atomics for the cache, which cost about 50 ns a read until D499 made a relaxed load a plain move on x86-64. The cache was a plain module word until threads needed it; D502 made it a relaxed atomic.

Pinned by runtime/linux-vdso, which also forces the fallback, and runtime/clock-system-libc, which requires the vDSO under --link=libc.

D318 — core/random is xoshiro256**, the same everywhere and not cryptographic

The tour said nothing of random numbers.

Chosen: random.generator is xoshiro256** 1.0 (Blackman and Vigna, 2021), whose multiplications by 5 and 9 are shifts and additions, so drawing needs no helper on Cortex-M0. random.new(seed) seeds it through splitmix64, as its authors advise; random.from_entropy reads 32 bytes from an io.entropy provider and replaces the impossible all-zero state with new(0)'s. random.below masks to the bound's width and draws again when the value is too large, so it has neither division nor bias, and traps on a bound of zero, with overflow since D342; random.shuffle is Fisher and Yates'. A fixed seed's sequence is the same on every target. It is not cryptographic, as its documentation says.

The alternatives: PCG32, with a 64-bit multiplication every step; Lemire's method for below, which needs a 128-bit product; and OpenBSD's threshold method, with two 64-bit divisions.

Pinned by runtime/random-sequence, which holds the reference implementation's outputs on every target, Cortex-M0 included, and runtime/library-shared-random.

D319 — A network is a concept of its own whose connections are readers and writers

The tour said at [1660] that authority is passed, and nothing could talk over a network.

Chosen: net.network is a concept outside world that also conforms to reader and writer, so a connection is a file that io.read, io.write, the line reader and the buffered writer take. Its entries are connect, listen, accept, open_datagram, send, receive, send_to, receive_from, shutdown, local_address, peer_address, set_timeouts, set_no_delay and close_socket. A system's errors become atoms: ECONNREFUSED is refused; ENETUNREACH and EHOSTUNREACH unreachable; EADDRINUSE address_in_use; EADDRNOTAVAIL, EAFNOSUPPORT and EPFNOSUPPORT address_unavailable; EACCES and EPERM no_access; a limit passing, or ETIMEDOUT at connect, timed_out; EPIPE, ECONNRESET, and ETIMEDOUT or ENOTCONN on a connection, disconnected; anything else io_failed with its errno kept. The calls block. set_timeouts(receive, send) sets limits, zero meaning none; a limit passing leaves the socket usable, and accept keeps the receive limit on every system, by poll on Darwin and FreeBSD. connect has no limit of its own; D580 adds connect_within, which has. Every listener reuses its address and every IPv6 socket is IPv6 only, so an address names one family everywhere; the backlog is 128. The hosted provider retries EINTR, waits out an interrupted connect and reads its error, takes the next connection after ECONNABORTED and sends until every byte is sent.

The alternatives: widening world; separate stream and datagram concepts, which repeat closing, addresses and limits; a socket that is not a file, which loses the reader and writer; only the reader and writer, whose io_failed hides timeouts and a lost peer; deadlines per call, and non-blocking calls, which are the event-driven Io's; address reuse as a parameter, which Windows means differently; and dual-stack sockets.

Pinned by runtime/network-echo, the published consumer over TCP and UDP and both families, runtime/network-refused, runtime/network-address-in-use, runtime/network-closed-peer and runtime/network-receive-timeout.

D320 — An address is a family, sixteen bytes and a port, written as the RFCs say

The tour said nothing of addresses, and resolving a name is the resolver record's in the roadmap's register.

Chosen: net.address is a public record, as D293's directory is, so a provider in another module builds one, of an ipv4 or ipv6 family, sixteen bytes and a port; it has no zone, so %zone is invalid_address and a link-local address waits. D581 amends this: an IPv6 address has a zone. IPv4 is four decimal parts with no leading zero, as inet_pton reads them. IPv6 is RFC 4291's form in either case, with one :: and an IPv4 tail; it is written as RFC 5952 says, in lower case with the longest run of two or more zero groups compressed, the first on a tie, and only an IPv4-mapped address dotted. With a port it is a.b.c.d:p or [v6]:p. net.parse_ip, net.parse_address, net.append_ip and net.append_address read and write them, and an address is formattable.

The alternatives: an opaque type; a scope identifier; inet_aton's shorthands, whose leading zero is octal; and dotted IPv4-compatible addresses.

Pinned by runtime/network-addresses, and runtime/network-addresses-firmware and runtime/network-addresses-written-firmware, which run on Cortex-M0.

D321 — A loopback network in memory never waits

The tour said at [1660] that every hosted facility has a fake.

Chosen: fake.network, from fake.network_over, is one machine with only loopback addresses, over socket records the caller declares, each record's buffer its receive buffer. Delivery is at once, whole and in order; a datagram no socket takes, or one its buffer has no room for, is lost. It never waits: wherever a real call would, it answers timed_out at once, after a send has delivered what fits. A send to a closed peer is disconnected the first time. Ports are given from 49152, and a port overlaps as on Linux, the unspecified address taking every one. A test can turn IPv6 off, fail a chosen call and read the counters. Resets, partial reads and TIME_WAIT are not modelled. Its conformance links every entry, about 40 KB, so it does not fit a Cortex-M0 image.

The alternatives: a fake that waits, which a single-threaded test cannot drive; and modelling resets and partial reads, which nothing yet consumes.

Pinned by runtime/network-echo-memory, which shares its routines with the published consumer.

D322 — SIGPIPE is ignored at start and restored in a child

The tour said nothing of signals. By default a write to a pipe or socket whose reader has gone ends the process, so neither a socket's EPIPE nor a finished child's closed input could be an error.

Chosen: the argument initializer ignores SIGPIPE on its first call, and only when it finds the default disposition, so a C main's handler or an inherited ignore is kept. That one place covers the static Linux entry, --link=libc, Darwin, FreeBSD and a C main; a program that imports no POSIX layer keeps the default. posix.spawn gives every child the default again, on Linux in the clone child before execve and elsewhere with posix_spawnattr_setsigdefault. Every Linux send passes MSG_NOSIGNAL and every Darwin and FreeBSD socket sets SO_NOSIGPIPE, so socket writes are safe beside a C handler too, io.write to a socket among them since D340; a pipe has no such flag, so the process-wide ignore stays.

The alternatives: ignoring it in the static entry, which depends on the route and makes every static program pay; an unconditional ignore, which overrides a C handler; and restoring in a child only what the parent changed.

Pinned by runtime/network-closed-peer, which dies with status 141 without the ignore, runtime/posix-broken-pipe, which fails when the child keeps it, runtime/posix-broken-pipe-libc and abi/sigpipe-handler-kept.

D1125 — SIGCHLD ignored at start is given its default back

The tour said nothing. An ignored SIGCHLD survives an exec, and a process that has it ignored has each child reaped by the system as it ends: wait then fails with echild, and how the child ended is lost. A program started by a service that ignores SIGCHLD read its child's output and was told that waiting for it failed. D322 keeps an inherited ignore of SIGPIPE, which serves the library's contract; this one breaks it.

Chosen: the argument initializer, on its first call, gives SIGCHLD the system's default disposition when it finds it ignored. A handler is kept, as D322 keeps SIGPIPE's. A program that wants its children discarded ignores SIGCHLD itself after the root is established, and a C main that ignored it before the call does so again after it. A program that imports no POSIX layer keeps what it inherited.

The alternatives: refusing spawn while SIGCHLD is ignored, as the compiler's own tool supervision does, which makes every program that runs another fail under such a service for a state it cannot see in its source; restoring the default in spawn each time, which changes a disposition as a side effect of a call that is not about signals; and leaving it, with a note beside wait.

Pinned by abi/sigchld-ignored-restored, whose C main ignores SIGCHLD before the initializer and whose wait fails without the rule. Darwin's and FreeBSD's arm of it was written by reading and is run by their lanes.

D1279 — platform/posix sends a signal with kill

The tour said nothing. io.programs has no entry that signals a child and platform/posix had none, so a parent that stopped its child wrote Linux's raw system call by number and the C library's kill on Darwin and FreeBSD, under fixed if compiler.os.

Chosen: posix.kill(process, signal) sends the signal numbered signal to a process_id, Linux's kill system call and the C library's kill on Darwin and FreeBSD, failing with the errno; posix.current_process() is getpid, for a process that signals itself; and signal_hangup, signal_interrupt, signal_kill, signal_terminate, signal_user1 and signal_user2 are those signals' numbers on the system at hand. The number zero sends nothing and asks whether the process is there. An ID that is zero or negative, which C takes for a process group or for every process, is refused einval before the system is asked: a process_id names one process. platform/linux gains the two wrappers, kill and getpid. io.programs is unchanged: a portable provider has no signals.

The alternatives: a signal_child entry in io.programs or in the hosted providers' child, which the memory and scripted providers would have to fake and which says nothing of a process signalling itself; the portable names of core/io/signal for the number, which are six signals a provider can watch and not the ones a system can send; and passing a group's negative ID through, which makes a mistaken zero a signal to every process of the group. All were declined.

Pinned by runtime/posix-kill-child: a shell waiting on a pipe is sent SIGTERM and waited for as ended by it, zero finds this process and the running child and is esrch once the child was waited for, a number that is no signal's is einval, and a shell that signals itself by each name posix numbers ends by the signal of that number. runtime/derived-server-two-process, runtime/events-signal-during-sleep, runtime/events-signal-stops-server, runtime/thread-signal-reaches-events and runtime/sleep-signal-sleeps-on send their signals through it. Darwin's and FreeBSD's arm was written by reading and is run by their lanes.

Amended by D1356: a zero or negative ID is no longer refused. Zero names the caller's own process group and a negative ID another group, as C's kill takes them; only -1 is still einval.

D1356 — posix.kill signals a process group as C's kill does

The tour said nothing. D1279 refused a zero or negative ID with einval, so a program that stopped a group of processes, a shell's job or the children a server started into its own group, wrote Linux's raw system call and the C library's kill again.

Chosen: posix.kill(process, signal) takes the IDs C's kill takes for a group. A positive ID is one process; zero is every process in the caller's own group, the caller among them; and a negative ID is every process in the group whose ID is its magnitude, so posix.process_id(-i32(leader)) names the group leader leads. The signal number zero asks whether the group is there, as it does for a process, and a group with no process in it is esrch. An ID of -1, which C takes for every process the caller may signal, is refused einval before the system is asked: it names no group, and a sign mistaken there reaches every process the user owns. The ID goes to the system unchanged on every hosted target, Linux's kill system call and the C library's kill on Darwin and FreeBSD, so the smallest i32, whose magnitude no i32 holds, is the system's to answer. process_id keeps its one type for a process and a group, and the library names no group of its own: current_process() gives the ID whose negation is the caller's group when the caller leads one.

The alternatives: keeping D1279's refusal, which the maintainer reversed; passing -1 through as C does, which makes one sign mistake a signal to every process; and a separate process_group type or kill_group entry, which would add a second name for what C's kill says with a sign. The maintainer chose the groups as C has them; the refusal of -1 is the implementer's.

Pinned by runtime/posix-kill-group: a program the harness starts as its own group's leader finds that group by its negated ID and by zero, sending nothing, is refused einval for -1 and esrch for a group nobody leads, and, watching SIGTERM through hosted/events, sends SIGTERM to its own group by zero and then by its negated ID, each time reading the signal it sent itself as an event and waiting for a shell that the signal ended. The fixture asks first and sends nothing when it does not lead its group, so a run outside the harness signals no other process. Darwin's and FreeBSD's arm is the one D1279 wrote, run by their lanes.

D1280 — A signal handler is installed as a C function value, through a second view of sigaction's record

The tour said at [1570] that an extern(c) function is a value C can call. platform/libc's signal_action keeps its handler as a u64, which is what sig_dfl and sig_ign are, and nothing turns a function into that word: a program that caught a signal stored its handler in a binding and read the binding's storage through a ptr u64.

Chosen: libc.signal_handler is the handler's type, extern(c) (number: i32) -> none. Each system's file declares handler_action beside its signal_action: C's struct sigaction again, field for field, with the handler member typed signal_handler. libc.handling( handler, flags) makes one with an empty mask, and libc.sigaction_handler(signal, action, previous) installs it, by giving sigaction the record's address as a ptr signal_action. That retyping is the library's and is sound for the reason C's own member is a union of a function and a word: both records are one C layout, and an extern(c) function value in a record C reads is the function's address [1975]. signal_action and sigaction are unchanged, so a disposition that is no function, and every read of a previous action, stay words. The handler stays platform/libc's: on a static Linux program nothing installs one, since x86-64's rt_sigaction needs a restorer the library cannot write, and signal.watch reads signals without any.

The alternatives: typing signal_action.handler itself as the function, which leaves sig_dfl and sig_ign unsayable and the record without a zeroed image, which every reader of a previous action declares (L0328); a conversion from a function to its address, which [0470] does not have and only the compiler could add; a second declaration of sigaction taking the other record, which is two declarations of one link symbol (L0347); and a posix entry that installs a handler on every system, which a static Linux program cannot provide. All were declined.

Pinned by runtime/sleep-signal-sleeps-on, whose handler is installed this way and runs once, on every hosted target. Darwin's and FreeBSD's records were written by reading and are run by their lanes. D1344 later removes the second view, once D1343 converts a C function to its address.

D1344 — signal_action.handler is the word C's member holds, and the second view is gone

The discrepancy: D1280 gave platform/libc two records for C's struct sigaction, signal_action with its handler a u64 and handler_action with it a signal_handler, and sigaction_handler to install the second through a pointer cast, because nothing turned a function into the word the first holds. D1343 now does.

Chosen: each system's signal_action.handler is a usize, the pointer-wide word C's member is, and sig_dfl and sig_ign are usize too. A handler is written there as its address: libc.handling(handler, flags) makes the signal_action whose handler is usize(handler), with no signal blocked beyond the one it handles, and libc.sigaction installs it, the one declaration of the C function. handler_action and sigaction_handler are removed. The record keeps its zeroed image, so a previous action is read into a zeroed record and compared with sig_dfl and sig_ign as before, and platform/posix's readers of a previous action are unchanged; hosted/events' kqueue arm passes the disposition it sets as that usize, and abi/libc-socket-facts compares platform/linux's u64 words, the kernel's, with u64(libc.sig_dfl). The member is a word and not a signal_handler because SIG_DFL is zero, which no function value can be (D335 traps it) and which leaves a record holding one with no zero image (L0328); naming the dispositions as function values would make two constants that trap or lie. The layout is unchanged on every hosted system, all of them LP64. The static Linux program still cannot install a handler, for D1280's reason: x86-64's rt_sigaction needs a restorer the library cannot write.

The alternatives: keeping the second view, which D1280 took only for want of the conversion; the member typed signal_handler with sig_dfl and sig_ign as function values made from 0 and 1, which the first traps and the record's zero image refuses; and keeping the member a u64, which makes every handler u64(usize(f)) for a word that is pointer-wide in C.

Pinned by runtime/sleep-signal-sleeps-on, whose handler is installed through signal_action and sigaction, and whose record is checked to hold the handler's address, on Linux x86-64, arm64 and RV64 under QEMU; Darwin's and FreeBSD's records were edited by reading and are run by their lanes.

D1281 — A program that reads the argument root before it exists is told the call it lacks

The tour said nothing. A C main that drives Landin exports calls _landin_host_initialize_arguments itself, and one that forgot it ended at system.new() or blocking.new() with trap: unreachable at a line of platform/posix, which names no call. A trap carries a kind and a site and no words.

Chosen: before that trap platform/posix writes one line to standard error: landin: the host was not initialized: a C main calls _landin_host_initialize_arguments(argc, argv, envp) first. The write is the system's own to descriptor 2 and asks nothing of the root; when it fails the trap still follows. The trap, its kind and what a panic handler sees are unchanged, and the other misuses of the root, a second triple or a negative count, stay bare traps.

The alternatives: words carried by the trap itself, which the trap report has no room for and the compiler would have to add; no call needed, the root taken by an .init_array constructor the C runtime hands the arguments, which the backends do not emit and Darwin passes differently; and a failure from system.new(), which every program would handle for a mistake only a C main can make. All were declined.

Pinned by abi/r440-native-startup-uninitialized, whose C main omits the call and whose output must hold that line before it traps. Darwin's and FreeBSD's arm was written by reading and is run by their lanes.

D323 — platform/posix gives sockets in the system's own records

The tour said nothing of sockets beneath the portable concept.

Chosen: posix.socket_address is the system's own record, laid out once per system: Linux's 16-bit family, and Darwin's and FreeBSD's length byte and family byte. posix.socket takes internet, internet6 or local and stream or datagram. Unix-domain sockets are this layer's alone, their paths at most 107 bytes on Linux and 103 on Darwin and FreeBSD, with empty, NUL-holding and abstract paths refused. Every socket is closed on exec, through SOCK_CLOEXEC on Linux and FreeBSD and fcntl right after socket and accept on Darwin, which leaves the same window as Darwin's pipes (D314). Its calls and options are POSIX's own, and a timeout read back whose record has the wrong size is unlisted rather than trusted.

The alternatives: a portable address beneath the portable one, which only copies it; and Unix-domain sockets in the portable concept before Windows' are designed.

Pinned by runtime/posix-sockets, which fails when close-on-exec is removed, and abi/libc-socket-facts, which holds each system's constants and layouts to its headers.

D580 — A connection's limit is a second entry, connect_within

The tour said at [1660] that authority is passed, and D319 left connect without a limit of its own: a socket's limits are set_timeouts', and there is no socket before a connection is made, so a program reaching a peer that never answers waited as long as the system does, over a minute on Linux.

Chosen: net.network gains an entry, connect_within(to, limit), and core/net its free function: a connection made as connect makes it, or timed_out once limit has passed with no answer, the socket it began closed. The limit is a time.duration, and zero is none, as set_timeouts reads one; the connection made has no limit of its own on what it sends and receives. connect stays as it was. The blocking provider makes the socket non-blocking for the connection alone, waits with poll for what is left of the limit on the monotonic clock, rounded up to the millisecond and asked again after EINTR, takes the outcome from SO_ERROR, and makes the socket block again; the limit passing is ETIMEDOUT, which D319 maps to timed_out. The event provider parks the connecting fibre on the loop with the limit's deadline, so its other fibres run while it waits. The fake network connects or refuses at once, so its limit is never reached.

Settled in implementing it: a peer that never answers is each system's own, and the fixtures say which. Linux drops a connection's first segment while a listener's queue of finished handshakes is full, so once a listener of backlog 0 holds one connection nothing accepts, the next is not answered. Darwin does the same, but reads a backlog of 0 as its default of 128, so its listener is given a backlog of 1. FreeBSD answers such a connection from its SYN cache and resets it when the queue has no room, which is no timeout; there a segment for an address on the loopback interface's link-local prefix that no interface holds, fe80::2%lo0, is carried to nobody (D581). Darwin carries that segment to nobody too, but only while its loopback holds fe80::1: on GitHub's macOS image, whose loopback holds none, the connect fails at once as unreachable.

The alternatives: a limit parameter on connect itself, zero for none, which is one entry where this is two but makes every connection name a limit, time.nanoseconds(0) for most of them; an absolute deadline, a time.instant, which the rest of core/net never takes; and a limit set on the provider, which one fibre's connection would change for another's.

Pinned by runtime/network-connect-within, over hosted/blocking, and runtime/events-connect-within, over hosted/events with a second fibre counting while the connection waits: each connects within a limit and with none, is refused at once by a port nothing listens on, and times out against a peer that never answers after the limit and well before the system's own wait, on every hosted target.

D581 — An IPv6 address keeps its zone as text, and the provider looks it up

The tour said nothing, and D320 left an address without a zone, so a link-local address, fe80::1%eth0, could be neither written nor reached.

Chosen: net.address gains zone: [16]u8, the zone's bytes and zeros after them, at most net.zone_room, 15, of them: an interface's name on every hosted system, whose IFNAMSIZ counts a NUL after them. All zeros is none, which every IPv4 address has, so zeroed, the constructors and same_address keep working, and two addresses differing only by zone are not the same. A zone is text in the address rather than the system's interface number, because core/net reads and writes addresses on every target, firmware included, with no system to ask: parse_ip reads fe80::1%eth0, parse_address reads [fe80::1%eth0]:80, the zone inside the brackets as it is written rather than as a URL escapes it, %25eth0, and append_ip and append_address write them back. A zone is one to 15 bytes, none of them NUL, kept as written, Go's rule; an empty zone, a longer one and a zone after an IPv4 address are invalid_address. with_zone gives an IPv6 address a zone, or takes it away given an empty one, and zone_length measures it. A zone of decimal digits is the interface's number, RFC 4007's numeric form.

Where an address meets a socket, posix.internet_address writes the zone's interface into sin6_scope_id: digits as the number they spell, and a name as posix.interface_index finds it, which is SIOCGIFINDEX on a Unix-domain socket on Linux and the C library's if_nametoindex on Darwin and FreeBSD. It now fails, enodev for a zone that names no interface, and each provider makes that address_unavailable, as it does ENODEV and ENXIO from the system, and unreachable for send_to, whose atoms have no other. A record read back, a peer's, a socket's own or a datagram's sender's, gives its scope as a zone through posix.interface_name, SIOCGIFNAME or if_indextoname: the interface's name, or its number in decimal for an interface that has gone.

Settled in implementing it: reading and writing addresses with zones did not fit Cortex-M0's 32 KiB profile at none/off beside each other, by about 2.6 KiB, so the firmware fixture is two, one reading and one writing. Linux's loopback holds no link-local address, so on Linux a zoned connection to the loopback is shown reaching the socket by the system's answers: fe80::1%lo is ENETUNREACH, where fe80::1 without its zone is EINVAL. A Mac's loopback need not hold fe80::1 either, and GitHub's macOS image's does not; there the fixture decides by whether the listener at fe80::1%lo0 is address_unavailable, and Darwin answers both connections EHOSTUNREACH, which is unreachable.

The alternatives: the interface's number in the address, D320's declined scope identifier, which no firmware image could read from %eth0; the name looked up when the text is read, through a provider, which makes reading an address an operation of the system's; a zone of printable ASCII only, which costs a comparison per byte on every target and refuses names some systems give; a separate zoned type, which every routine that takes an address would need twice; and the URL's %25, which is the URL's escape and not the address's text.

Pinned by runtime/network-addresses, which reads, writes and refuses zones on every target; runtime/network-addresses-firmware and runtime/network-addresses-written-firmware, which read and write a zoned address on Cortex-M0; runtime/network-link-local-zone, a connection and a datagram at fe80::1%lo0 by name and by number where the loopback holds that address, the system's answers where it does not, on Linux and on such a Mac, and a zone naming no interface refused everywhere; and abi/libc-socket-facts, which holds the scope's place in the record, the interface requests and their record, and the lookups both ways to the C library's.

D2008 supersedes this decision in part: posix.internet_address and its reading back are system.internet_address and system.address_of in hosted/system, over platform/posix's internet_record and endpoint_of, which speak numbers rather than a net.address.

D325 — The rest of the file system is a concept of its own

The tour said at [1660] that a program reaches its host through capabilities, and D268's files opened, read, wrote and closed through a hidden position.

Chosen: io.file_system is a concept outside world beside files and directories, with open_file, rename, status_of, status_of_file, set_read_only, synchronize, truncate, read_at, write_at, make_temporary and current_directory. Opening takes an open_options record of read, write, append, create, exclusive and truncate, with presets updating, appending and creating; an impossible combination is io_failed, EINVAL kept, before the system is asked. rename replaces a taken name in one step, as POSIX and Windows' replacing move do; ENOENT is not_found, EACCES, EPERM and EROFS no_access, and everything else, EXDEV and ENOTDIR among them, io_failed with its errno, since rename's ENOTDIR also means a directory onto a file and D287 does not apply. io.status is a size, an entry_kind, a modification wall_time and read_only, which means no permission bit lets anyone write; set_read_only(false) restores the owner's write bit alone, in two calls. synchronize(data_only) is fsync or fdatasync, and on Darwin F_FULLFSYNC, falling back to fsync where a file system refuses it. truncate takes an open file only. read_at may return short and returns zero at or past the end; write_at writes everything, leaving a hole of zeros past the end; writing at an offset to a file opened for appending is a documented hazard, since Linux ignores the offset there. The working directory can be read and is never changed, since it is process-wide state beside threads. io.terminals is a second concept, whether a stream is a terminal and its window size, failing not_a_terminal. The fakes are fake.volume, a node-based volume for all five file concepts, which does not fit Cortex-M0 because its conformances link every entry, and fake.terminals.

The alternatives: widening files or world, which every conformance and memory image would carry; a concept refining all five, which every provider would have to meet; atom-valued access fields or a builder for opening; a replacing rename's opposite, which FreeBSD cannot do; permission bits in core, which D297 keeps out; access(2), whose answer depends on who asks; plain fsync on Darwin, which leaves the drive's cache; a path truncate, which races; a seek position; refusing offset writes to appending files, an extra call each time; and changing the working directory.

Pinned by runtime/tree-copy, the published consumer, whose oracles are a rename onto an existing name, a link listed without being followed, a write refused on a read-only file and a read past the end; runtime/core-io-file-system, runtime/volume-memory and runtime/file-system-firmware, which runs on Cortex-M0.

D326 — A temporary file is made exclusively from entropy the caller passes

The tour said nothing of temporary files.

Chosen: io.make_temporary(host, names, directory, buffer) creates .tmp- and sixteen hexadecimal digits in a directory, exclusively, close on exec and with mode 0600, the digits drawn from the io.entropy source given as names; a taken name is tried again up to sixteen times, then io_failed with EEXIST kept. Nothing removes the file: the caller renames it into place or removes it. The result names the file from the caller's buffer.

The alternatives: O_TMPFILE, Linux's alone; mkstemp, which a static Linux program has no C library for; the provider's own entropy, which leaves the collision path untestable; and removal on close, which needs destructors.

Pinned by runtime/core-io-file-system, which forces a collision, and negative/temporary-outlives-buffer.

The tour said nothing of these beneath the portable concepts.

Chosen: every open in the POSIX layer is O_NOCTTY, so opening a terminal never makes it the controlling one. posix.status gains permission bits, a link count, a user_id, a group_id and three times. link_at never follows the old name's last link, and read_link_at fails erange when the target fills the buffer. change_mode(_at) follows links, since Linux's fchmodat cannot do otherwise, and refuses bits above 0o7777; change_owner(_at) and set_times(_at) take a follow flag, and times are always both given. Both kinds of lock every system has are offered: lock and unlock, flock's, whole-file and owned by the open file, and lock_range and unlock_range, POSIX record locks owned by the process, not inherited by a child and all dropped when any descriptor of the file is closed, a hazard documented and pinned. A refused lock is eagain, or eacces for a record lock, and the documentation advises one kind per file.

The alternatives: an open option for the controlling terminal, which widens every options literal; Linux's open-file-description locks, Linux's alone; and one kind of lock.

Pinned by runtime/posix-file-system, runtime/posix-locks and abi/libc-file-facts, which holds each system's records and constants to its headers.

D328 — A terminal's mode is the system's own record

The tour said nothing of terminals.

Chosen: posix.terminal_mode wraps each system's own record, the kernel's termios through ioctl on Linux, never the C library's, and tcgetattr on Darwin and FreeBSD. posix.raw_mode applies cfmakeraw's flags, and restoring the mode is the caller's, with defer. posix.open_pseudo_terminal opens /dev/ptmx and asks TIOCGPTPEER on Linux, falling back to /dev/pts/N, and uses posix_openpt, grantpt, unlockpt and ptsname_r elsewhere, both ends closed on exec.

The alternatives: one portable terminal record, which the systems' flags do not share; and restoring the mode when a value's storage ends, which needs destructors.

Pinned by runtime/posix-terminals, over a pseudo-terminal it opens.

D329 — Accounts are read where the system keeps them, chosen by compiler.c_runtime

The tour said at [1975] that the compiler states fixed facts about the target, and nothing said whether a C runtime is present.

Chosen: the fixed fact compiler.c_runtime is true on Darwin and FreeBSD, true on Linux only under --link=libc, and false otherwise. On a C runtime the account and group lookups use the get*_r calls, which ask NSS or the directory service; a static Linux program reads /etc/passwd and /etc/group itself, a line at a time in the caller's buffer, taking the first match, so accounts kept elsewhere need --link=libc. A comment, a NIS + or - line, a line with the wrong number of fields, an empty name or an identifier that is not a decimal below 0xFFFFFFFF is no entry; a line too long for the buffer is skipped, and if nothing matched after one the answer is erange; empty member names are skipped. On the C route a missing entry, or ENOENT, ESRCH, EBADF or EPERM with none, is no_account.

The alternatives: deciding when the program runs, though a static program can refer to no C symbol at all (D280); an option the driver sets out of sight; and reading the files on Linux even under the C runtime, which hides the accounts NSS keeps.

Pinned by runtime/posix-accounts, which parses a database given on standard input, runtime/posix-accounts-libc and the driver case the C runtime comes from the link.

D330 — A call's bound recovery recovers inside an if arm too

The tour said at [1030] that a call-site else handles the call's failure, and [1820] let an else close an enclosing then or elsif arm, the dangling else. The parser applied that to the whole arm, so x = f() else (problem) … end was refused there, and the library carried parenthesised recoveries and helper routines to keep a recovery out of an arm.

Chosen: a call-site else followed by a parenthesised name or _, and not by :=, opens that call's recovery wherever it stands, an if arm included. Any other call-site else divides the if where it can close a then or elsif arm, so if c then a() else b() end if keeps its one-line meaning, and (f() else 0) recovers the call there; the refusals of that form name the route. if c then f() else (r) end if is refused with an exact fix to else r, since parentheses after a call's else bind its error. A recovery's body starts its own arm.

The alternatives: better refusals alone, which left every workaround in place; deciding by the line, and taking whichever reading parses, both of which would silently change a one-line if whose first call can fail.

Pinned by runtime/recovery-binds-its-error-in-an-if-arm, negative/parenthesised-name-after-a-call-else-is-its-recovery, negative/recovery-value-before-more-of-an-if-arm and negative/recovery-value-in-an-if-arm-divides-the-if.

D331 — A line that begins ( and binds with := destructures

The tour said at [1750] that a line end never ends a statement when the next token can continue it, so a line beginning ( continued the one above as a call, and (a, b) := f() after a statement was L0105.

Chosen: a ( that begins a line, and whose matching ) is followed by :=, begins a destructuring binding. Continuation is otherwise unchanged, so a call's arguments and a conformance's entries may still begin the next line. The parser records where a line-leading ( or prefix operator continued a line, and a later refusal there says so: a construction after a name is L0301 naming size(rows: 0, …) as the route, without the misleading report that used to come first; an undeclared name and a value that became an operand say the line above was continued. A line-leading [ is recorded the same way (D1191).

The alternatives: keeping ( and [ on their operand's line, which reverses [1750], changes a pinned fixture and reformats about a hundred sites; and ending statements at line ends.

Pinned by runtime/destructuring-begins-its-own-line, negative/line-leading-parenthesis-continues-as-a-call, negative/line-leading-parenthesis-argument-is-not-declared-yet and negative/line-leading-minus-continues-the-value.

D1191 — A line-leading [ that indexes a value that is no array says so

The discrepancy: D331 has an empty index or a list that begins a line say that the line above was continued, both in the parser. A line-leading [i] with one value is a well-formed index, so _ = e followed by [i] reached the checker, which reported L0301 "this is not an array, so it has no element to index" at the name above, and then the value the line was meant to be as missing: L0332 in a handler's block, L0302 at a function's end. Neither said what the line end had done.

Chosen: the parser records a [ that begins a line and indexes the value the line above ends with, as it records a ( and an operator. The checker's refusal of that index, when the value is no array or slice, is L0301 at the [: "this line begins with [, which continues the line above as an index of a value that is no array", with the value above as its second place and [1750]'s route, the value in parentheses, as its note. It is the one report: a block or a body whose last line was so continued adds none for the value that never arrived. An index of an array or slice is still that index, as [1750] says.

The alternatives: a warning for every line that begins with [, which refuses a layout [1750] admits; and ending a statement at a line end before [, D331's declined alternative.

Pinned by negative/line-leading-bracket-indexes-a-value-that-is-no-array.

D332 — An atom union may be written in place as a declared type

The tour said at [0640] that atom sets are structural, and an error set wrote ! a | b in place, but a parameter, a binding or a field needed an alias, and an inline union was refused as an unclosed parameter list.

Chosen: declared_type ::= type | atom_union is the type of a binding, a condition declaration, a parameter, a named return and a field, payload fields included; ptr a | b is the pointer union of ptr a and b. It is the same structural set an alias with those members names (D216). As an element type, a type argument, a labelled argument, a distinct or range base, a conformance target, a static type argument or sizeof's operand it is still refused, once, naming the alias.

The alternatives: a better refusal alone; and unions anywhere with parenthesised types, which collide with signatures and inline records.

Pinned by runtime/atom-union-written-in-place and the negative/atom-union-* fixtures.

D333 — lenof measures paths and calls, and a call is always evaluated

The tour said at [0370] that lenof gives a length, and D31 admitted only a name and a literal, so a field, an element or a call's result had to be bound to be measured: seven library helpers and dozens of locals did only that.

Chosen: lenof takes a name, a field or element path, a slice, a call's result or a literal. A name, or a path that names a fixed array, is measured from its type and not read, nor any index inside it, though a constant index is still checked; so lenof rows[i] over a fixed array does not evaluate i. A slice is evaluated once, and a call is always evaluated, even when it returns a fixed array. Every evaluated base, index, slice bound and call argument receives the ordinary local origin and escaping checks. Unevaluated fixed-array paths and array-literal elements do not lend or transfer their operands. Indexing or selecting a call's result stays [1830]'s recorded boundary, and L0010 says to bind the value to a name and index the name; a [ beginning the line after a call is no longer read as an index.

The alternatives: paths alone, which leaves a call's result to a local; and a better refusal alone.

Pinned by runtime/lenof-measures-paths-and-call-results, which requires the call to have run, negative/lenof-of-a-path-or-call-that-has-no-length, positive/array-literal-value-after-a-call-statement and negative/index-of-a-qualified-call-is-refused-there; negative/lenof-slice-element-frame-escape, negative/lenof-slice-range-frame-escape and runtime/lenof-slice-operands-run-once, with Cortex refusals recorded by negative/cortex-lenof-slice-element-frame-escape and negative/cortex-lenof-slice-range-frame-escape.

D334 — A statement's branch takes no value

The tour said at [1020] that no value is dropped by omission. An if, match or bare begin used as a statement silently threw away the value a branch ended with, so if c then r = 1 else 7 end if compiled, and under D330's dangling else so did r = g() else 7 in an arm when g cannot fail.

Chosen: a branch of a statement if, elsif or else arm, a statement match arm or a bare begin that ends with a value is L0331, as D244 refuses a call standing alone that hands back a result, naming both routes: the branch written as a statement, or the call's recovery parenthesised or bound. A recovery's own block stays D310's.

The alternatives: discarding silently, which [1020] declines; and refusing only after a call's else, though the same discard happens without one.

Pinned by negative/value-ending-a-statement-branch-is-refused and negative/none-call-else-value.

D335 — A C function type applied to an address makes a C function value

The tour said at [1580] that a C function type describes C code Landin calls, and nothing turned an address into one: the vDSO's clock was called through a type pun in memory, and a symbol a loader finds had no route to a typed call.

Chosen: a C function type applied to one usize, written in place or through an alias, adder(address), makes a C function value of the code at that address. Nothing can check that code of that signature is there; that is the program's, as a C cast is. The bits are unchanged. Zero traps where the value is made, inside unchecked too, and a known zero is refused with L0335. The address carries no origin [0810]. A native function type applied to an address is L0301, since Landin's own convention is no ABI, and so is an integer of another type or a pointer, which usize(p) converts first. Nothing converts a function value back to an address. The conversion is the IR's code_address, a move on every backend.

The alternatives: the pun through ptr F, a workaround the vDSO lived with; an import of dlsym per signature, which L0347 refuses as incompatible declarations of one symbol; a generic lookup, which nothing can constrain to C function types; taking ptr u8 directly, where usize is already the address without an origin; and converting back, which nothing needs.

Pinned by abi/c-function-from-address, abi/c-function-from-zero-address-traps, negative/c-function-from-address-refusals and runtime/linux-vdso.

D1343 — A C function value converts to its address with usize(f)

The discrepancy: D335 made a C function value from an address and declined the way back, which nothing needed. A C record member that holds either a function or a word, struct sigaction's sa_handler with its SIG_DFL and SIG_IGN, then had no Landin type that took both: D1280 laid the record out twice, once with the member a function and once a word, and cast between the two through a pointer.

Chosen: an integer conversion applied to a C function value, usize(f), gives the address of the function's code: the bits the value already is, and the word a C (uintptr_t)f gives, Thumb's low bit included on Cortex-M. f is anything of a C function type: a declared extern(c) function, whether C or this program defines it, a binding, field or parameter of a C function type, or a value D335 made from an address, whose usize is that address again. The result is a usize with no origin [0810], as usize(p) of a pointer is, and never zero, since no function value is. It lowers to the IR's existing integer conversion of a word to the same width, a move on every backend, so the IR gains no operation. A function value in Landin's own convention is refused with L0301, since its convention is no ABI and its address is nothing C could call; so is the conversion of a C function value to any integer type but usize, whose note says to convert the address after it, u64(usize(f)). Nothing converts a function to a pointer: ptr(usize(f)) makes one through the integer, as any address does, and a pointer to code is no value Landin reads.

The alternatives: a conversion to any integer type, as a pointer has, which makes a narrowing conversion check an address that usize already holds; a ptr conversion of the function, which gives a pointer whose pointee is code and whose loads mean nothing; admitting Landin-convention functions, which hands C an address it cannot call; and a union of a C function and a word, which needs a representation for the word that no function value has, since zero is none.

Pinned by abi/c-function-to-address, whose C peer recognises the address of its own function and calls the address of one the program defines, on every product target; negative/c-function-to-address-refusals; and runtime/sleep-signal-sleeps-on, whose handler is installed by its address (D1344).

D336 — A loaded library is a handle, and its function values dangle once it closes

The tour said at [1590] that the platform's loader owns linkage, and nothing loaded a library while a program ran.

Chosen: posix.open_library(path, scope) loads a C library with RTLD_NOW and an explicit local_symbols or global_symbols, since Darwin's default scope is global and the others' local, wherever the system's loader started the process: on Darwin and FreeBSD always, and on Linux under --link=libc, where glibc 2.34 or musl provide the loader in the C library. A library is an opaque handle passed by value, as D288 has services, since the loader counts the opens and two loads of one object give the same handle; it cannot be zeroed into being. posix.find_symbol gives an address, which D335 makes a typed function value. Loading fails with an errno atom or no_library, a lookup with no_symbol, closing with no_library; the loader's own words are opt-in, posix.library_failure(into) copying dlerror's text into the caller's buffer, cut to fit, read at once on the same thread. A function value has no origin (D113), so one from a closed library dangles, as a pointer after free does, and the documentation says so. A static Linux program that reaches these calls is refused by D280's L0500, naming the routines that ask for the C library. Code loaded so is C, or Landin only through C entry points.

The alternatives: a library edited inout and invalidated by closing, though repeated opens share one handle; a distinct usize, which could be zeroed into RTLD_DEFAULT; giving function values origins for one source of code; RTLD_LAZY, whose failure ends the process at the first call; the system's default scope, which differs; no message, or a buffer on every call; and a code of its own for the static refusal, which is D280's.

Pinned by runtime/posix-libraries, which loads libraries the fixture builds, calls into them and back, and holds a missing library, a missing symbol, reopening and both scopes to their answers; end-to-end/link-static-loads-a-library; and abi/libc-loading-facts, which holds the flags to each system's dlfcn.h.

D337 — An allocator resizes a block, moving it when it must

The tour said at [1360] that one allocator concept serves heap, arena and fixed-buffer providers, and D152 gave it grow, which extends a block only where it is. A container that outgrew its block allocated another, copied its bytes and freed the old one itself, so a heap that could have moved a mapping's pages, or grown it in place, copied them instead, and every container wrote the copy again.

Chosen: mem.allocator has a fourth entry, resize(self, block, old_size, new_size, alignment) -> (moved: ptr mut u8) ! out_of_memory, and mem.resize calls it. The result holds the block's first min(old_size, new_size) bytes, honours the same alignment and is freed with new_size; when it moved, the old address is given back. A refusal leaves the block, its bytes and the provider as they were. A concept entry has no default, so the default is a function: mem.relocate allocates, copies and frees through the provider, and a provider that cannot resize in place calls it from its own entry once any in-place change has been refused. The arena keeps a smaller block where it is, gives the latest block's tail back, grows the latest block in place and moves any other; a pool keeps a block in its slot to any extent the slot holds and refuses a larger one; an injector spends its budget on a resize as on an allocation and delegates it; and a region resizes the block its newest record holds through its parent, updating the record, and moves any other into a record of its own, the old one freed at release as a freed block is. The hosted heap resizes in place when the block's slot or mapping holds the new extent, giving a shrunk mapping's whole pages back, and otherwise grows a mapping where the pages after it are free; on Linux posix.remap, mremap with MREMAP_MAYMOVE, moves its pages when they are not, provided a page has the block's alignment, and anything else is copied by mem.relocate. Darwin and FreeBSD have no mremap: posix.extend asks for the pages after the mapping without MAP_FIXED and keeps them only where the system put them. Its grow now extends in place by the same means. text.growing doubles through resize.

The alternatives: a default entry in the concept, which a concept cannot declare; keeping the copy in each container, which keeps the heap from moving pages; realloc's convention that a zero extent frees the block, which would give one call two meanings and make a zero-byte request unlike any other; and a region that searches its ledger for the block, which costs a walk of every record for each resize.

Pinned by runtime/core-mem-resize, runtime/core-pool-resize and runtime/core-region-resize on every target, Cortex-M0 among them, runtime/hosted-heap-resize on every hosted target and runtime/core-text-builder.

D340 — A write to a socket the hosted provider made is a send

The tour said nothing of signals, and D322 promised that every Linux send passes MSG_NOSIGNAL, so that socket writes are safe beside a C program's own SIGPIPE handler. io.write on a connection made POSIX's write, which takes no flag: on Linux, where no socket option stands in for one, a write to a connection whose peer had gone ran the C handler, and the process-wide ignore was all that kept a Landin program alive.

Chosen: a socket the hosted provider makes carries a mark beside its descriptor in the io.file it gives, a bit no descriptor has, and io.write and write_some send on a marked file, where posix.send passes MSG_NOSIGNAL on Linux and Darwin and FreeBSD's sockets carry SO_NOSIGPIPE. system.descriptor_of drops the mark. system.socket_of makes such a file from a socket platform/posix made; file_of keeps making a plain one, whose writes are POSIX's write, as its documentation now says.

The alternatives: trying send first and falling back to write on ENOTSOCK, which costs every write to a file a failed system call; asking the system whether each descriptor is a socket when it is written, which costs a call too; a table of the process's sockets, which is state the provider does not keep; and leaving the ignore to cover it, which D322 declined because a C handler is kept.

Pinned by abi/socket-write-raises-no-sigpipe, whose C handler counts a SIGPIPE that a Linux write raises and a send does not.

D341 — The fakes fail where the hosted provider fails

The tour said nothing of test providers, and D325 and D321 made the memory volume and the memory network stand in for the system. Each differed from it where a program could see: the volume found a link's target from the volume's root rather than from the link's directory, followed no link before a path's last part, and made a second node at a dangling link's own path when an open created a file there; its remove_directory of a file was io_failed where the hosted provider's ENOTDIR is not_found; the network refused a listener on a port an accepted connection used, where the hosted provider's listeners set SO_REUSEADDR; and a line reader over an empty buffer took the empty read its buffer gave for the end of its input.

Chosen: the volume resolves every path as a system does, part by part: a link before the last part is always followed, the last as the call says, a target beginning with / from the root and any other from the link's own directory, .. climbing from where the walk has reached. A part before the last that is missing or no directory is not_found, more than eight links io_failed as ELOOP is, and a path that grows past 256 bytes as targets are put in it io_failed. A creating open of a dangling link makes its target, and an exclusive one is already_exists, as O_EXCL is. Removing works on the link itself; a directory asked of anything else is not_found, a file asked of a directory io_failed, as Linux's EISDIR is. The memory network's listener conflicts only with listeners, while a connection's port still conflicts with both. A line reader over an empty buffer reports every line line_too_long and never reads.

The alternatives: a volume that refuses links in a path's directory part, which a test of code meeting real trees could not use; giving the memory network SO_REUSEADDR as an option the program sets, which the portable concept has no way to ask for; and refusing an empty buffer in lines_over, which would make a constructor fallible for a case one check in read_line answers.

Pinned by runtime/volume-links-as-systems-follow, runtime/network-listen-beside-accepted, which runs the same routine over the memory network and the hosted provider, and runtime/core-io-line-reader.

D380 — Every call of the memory volume counts, its directory reads among them

The tour said nothing of test providers. D325 made the memory volume, whose fail_at fails a chosen call and whose comment said it counted every call that changed or read a file. Opening and closing a directory counted, but read_entry, whether it refilled the directory's buffer or read what a refill left there, entry_size and same_file did not, so no test could fail a listing, an entry's size or a comparison through it, and the failure meant for one of them reached the next call that counted, a close_directory.

Chosen: every call of the volume's reader, writer, files, directories and file_system counts once in calls, read_entry, entry_size and same_file among them, and the call fail_at names fails io_failed. Two compose others and count what they make: write counts each piece write_some writes, and make_temporary counts itself and each name it tries to open. A read fails before it touches the directory, so the next one gives the entry the failed one would have. The hosted provider can fail each of these calls: a read that refills calls getdents or readdir, one that does not may stat an entry whose record gives no kind, and entry_size and same_file each stat.

The alternatives: counting only a read that refills the buffer, as a system call is made, which would leave a test to know the buffer's size to name the read it fails, and give a failed read nothing to fail on a system whose records name each entry's kind; counting each entry a refill places, which counts work no caller asked for; and leaving the three uncounted with a comment that says so, which keeps the failure paths of a directory walk untestable.

Pinned by runtime/volume-directory-calls, which holds calls after each directory call and fails a read from a filled buffer, a read that refills it, an entry_size and a same_file; and runtime/volume-memory.

D342 — A bound of zero is a zero divisor

The tour said nothing of random numbers, and D318 had random.below trap on a bound of zero by reaching compiler.unreachable(), which tells a panic handler that a path declared unreachable was reached, when it was the caller's argument that had no value below it.

Chosen: random.below(source, 0) traps with overflow, at the checked subtraction that makes its mask, as n % 0 traps: the bound is the remainder's divisor that a biased next % bound would have used. D318's other choices stand. next_u32's documentation gives xoshiro256**'s own reason for the upper half: every bit of its output passes its authors' tests, so the half is a convention, where the low bits of xoshiro256+ are the weak ones.

The alternatives: out_of_range, which describes an index and has no spelling a routine can raise; a failure atom, which would make every draw's caller handle a case that a correct program never reaches; and keeping unreachable.

Pinned by runtime/random-below-zero-overflows, whose panic handler ends the process with the kind's own code.

D343 — The POSIX layer asks each system what it takes

The tour said nothing of the systems beneath platform/posix, and D297 wrote it twice, over Linux's calls and over the C library of Darwin and FreeBSD. Four of its requests were not what a system takes, and one record was chosen by elimination: Darwin's C library refuses a read or a write of more than INT_MAX bytes with EINVAL, where POSIX lets a transfer be short; dlopen of an empty name gives the program itself, which D336 keeps out of what a library is; the kernel writes the time left back into ppoll's limit, which platform/linux declared read-only; FreeBSD's pseudo-terminal controller was made close-on-exec by an fcntl after it was opened, which another thread's exec could precede; and platform/libc gave Darwin's struct stat to whatever system no earlier branch named.

Chosen: on Darwin and FreeBSD read, write, read_at and write_at ask for at most INT_MAX bytes and return short past it. open_library of an empty path is enoent, as every other call of the module answers one. linux.poll_limit is no_limit | ptr mut timespec. FreeBSD's posix_openpt is asked for O_CLOEXEC; Darwin's documents only O_RDWR and O_NOCTTY and keeps the fcntl. Each file_status record is chosen by its system and C ABI by name, and a system none names has none.

The alternatives: bounding transfers on every system, which Linux does itself at a little less than 2 GiB; no_library for an empty path, which would leave library_failure with no words of the loader's; a separate writable limit beside a read-only one; and keeping the else, which compiles another system's record for a system nobody has described.

Pinned by runtime/posix-transfer-above-int-max, which fails on Darwin without the bound and was not run there natively for this decision; runtime/posix-library-empty-path; negative/linux-ppoll-limit-is-written; abi/freebsd-pseudo-terminal-closed-on-exec, whose C posix_openpt records its flags, written for FreeBSD and not run there natively for this decision; and abi/core-io-file-identity, which holds each record to its header.

D344 — The two account routes answer alike

The tour said nothing of accounts, and D329 read them from /etc/passwd and /etc/group on a static Linux program and through the C library elsewhere. They answered differently for the same question: a name too long for the C route's room was erange there and no_account from the files, a missing database file was an errno from the files and no_account from the C library, and the C group lookup gave the C library only half the caller's buffer, so a group that fitted the buffer could be erange.

Chosen: a name longer than 255 bytes, Linux's LOGIN_NAME_MAX without its NUL and the largest of the three systems', names no one on both routes, and a missing database file is no_account. The C group lookup gives the C library the caller's whole buffer, measures the copy the joined members need, and asks again into the part of the buffer past that copy, so a group is erange only when it and its copy together do not fit; a group that grew between the two lookups is erange too.

The alternatives: a larger fixed room for the name, which still differs from a route with no limit; copying the C library's strings into the front of the buffer in place, which their order in the buffer, the C library's own, does not allow in general; and returning the members as the C library's table, which would give the two routes different types.

Pinned by runtime/posix-accounts-libc, which finds the smallest buffer group zero fits and holds it to what the C library needs and the copy, and runtime/posix-accounts.

D345 — A list's storage is its module's, and the heap's free is trusted

The tour said at [1360] that containers keep allocators out of their storage, and D151 made raw storage private. vec.list's one field was public, so a program could assign a storage of its own, from mem.storage_over, behind a list's length and capacity; and the hosted heap's free read its block's header without saying that it trusted it or that it ignored the extent passed and a refused unmap.

Chosen: vec.list is a public name for a module-internal record, so its field is unreachable outside core/vec, as spill.list's storage already was. The heap's documentation states that free frees the extent its header holds, never reads the size passed, and is undefined for a block it did not give or one freed twice, as C's free is; and that a refused unmap keeps the pages, which costs memory and nothing else.

The alternatives: checking the size passed against the header, which a foreign block's header cannot be trusted to answer either; a trap on a refused unmap, which turns a leak into an ending; and keeping the field public for inspection, which vec.length and vec.capacity already give.

Pinned by negative/core-vec-used-frame, whose list over the caller's storage once lent a view of frame origin and is now refused as it is built.

D346 — Each system's C library in its own file, each facility's calls in its own

The tour said at [1590] that the platform's loader owns linkage, and nothing of how the platform modules are laid out. D297 wrote platform/posix twice beneath one file, once over Linux's calls in linux.ldn and once over the C library in libc.ldn, so a facility's Landin layer and the calls beneath it were three files apart, and libc.ldn read as the C library route when it was chosen by compiler.os == darwin or freebsd and never used under Linux's --link=libc, where accounts takes the C route by compiler.c_runtime. platform/libc declared what every system has beside what only Darwin and FreeBSD have, so a reader could not tell from it what Linux lacks, and still declared malloc, free and their allocation union, which nothing has called since D300.

Chosen: platform/posix is one file per facility, posix.ldn for the descriptor, paths and the module's shared helpers, then files.ldn, directories.ldn, memory.ldn, time.ldn, random.ldn, poll.ldn, processes.ldn, sockets.ldn, terminals.ldn, accounts.ldn, libraries.ldn and errno.ldn. Each holds its facility's interface and, beneath it, the system's calls in one fixed if compiler.os == linux and one elsif compiler.os == darwin or compiler.os == freebsd, so each route is named by what selects it and lies beside what it serves. platform/libc keeps in libc.ldn what every system declares alike, and gives Linux, Darwin and FreeBSD each a file of its own, linux.ldn, darwin.ldn and freebsd.ldn, wholly under its own fixed if; a declaration two systems share is written in each. malloc, free, allocation and no_allocation are removed. The vDSO, which only a caller reading a clock needs, is platform/linux/vdso, a submodule as platform/linux/numbers is, and its names lose the prefix the module now gives them: vdso.kernel_image, vdso.find, vdso.symbol, vdso.clock_symbol, vdso.clock_version, vdso.clock_gettime, vdso.largest and vdso.at_sysinfo_ehdr. No other public name changes.

The alternatives: renaming libc.ldn to bsd.ldn or darwin_freebsd.ldn and keeping the two route files, which names the route but keeps every facility in three places; one file per system in platform/posix too, which is the layout this replaces; marking each declaration of platform/libc with the systems it exists on, which leaves a reader to collect them; and keeping the unused allocation declarations for a program that wants C's heap, which may declare them itself.

Pinned by every hosted runtime and ABI fixture, which compile the whole of platform/posix on each target, abi/core-io-file-identity, which holds each system's stat record to its header, and the debugger workloads' source inventory, which lists the files; runtime/linux-vdso and runtime/clock-system-libc for the vDSO's submodule.

D347 — The hosted provider is hosted/system, its handle a system.host

The tour said at [1680] that the hosted root mints the program's capabilities, and nothing of the module's name. hosted/io had the last segment of core/io, so each of its 62 importers wrote import hosted/io as hosted; its type and the heap's were both system, the I/O handle's constructor and the heap's were both host(), where D269 makes a principal type with new, and host was also the I/O handle's conventional parameter name.

Chosen: the module is hosted/system, imported with no alias. Its handle's type is system.host, made by system.new(), or from a system.space by system.over; system.last_errno, last_signal, descriptor_of, file_of and socket_of keep their names. The heap's type is heap.heap, made by heap.new(). So system names the module, host the I/O handle and its parameter, and heap the allocator, each one thing in both layers. The module's files mirror core/io's: system.ldn for the four concepts of world and the environment, directories.ldn, file_system.ldn with terminals as core/io keeps them, time.ldn, entropy.ldn, network.ldn and programs.ldn.

The alternatives: hosted/os, imported as os, which is shorter and reads as the operating system rather than as this provider of it; hosted/host, whose module name would collide with every host binding; hosted/posix, which says what it is written over rather than what it provides; keeping host() beside new, which D269 declined for every other module; and naming the heap's type heap.system, which keeps one word for two things.

Pinned by every hosted runtime, ABI and derived fixture, which import it; runtime/first-program; and runtime/derived-hosted-memory, whose entry mints both handles.

D348 — core/io splits into core/time, core/net and core/io/fake

Amended by D2050. io.writer_of, its adapter and lent_writer left once an any io.world converted to any io.writer (D1949, D1952); a routine holding only the world passes it where a writer is wanted. The rest stands.

The tour said at [1660] that I/O is a capability passed as an argument, and nothing of how its module grows. Each hosted item had added a file to core/io, which reached 193 public names: the clocks and spans of D315 and D316, the network and its addresses of D319 and D320, and the fakes, each named its own way, memory_volume, memory_network, manual_clock, scripted_entropy and memory_terminals, beside the concepts they fake.

Chosen: core/time holds duration, instant, wall_time, the clock and wall_clock concepts and their arithmetic; core/net holds the network concept, which refines io.reader and io.writer, its addresses and its atoms; core/io keeps the files, the process, the environment, directories, programs, the file system, terminals, entropy, the buffered writer and the line reader, and its status stamps a time.wall_time. The fakes of a system are the submodule core/io/fake, named one way: a provider type for what it fakes, its caller-owned state that type with _space, and its constructor that type with _over: fake.volume, volume_space, volume_over; fake.network, network_space, network_over; fake.clock, clock_space, clock_over; fake.entropy, entropy_space, entropy_over; and fake.terminals with terminals_over. The caller's records keep their provider's name, fake.volume_node, fake.network_socket and fake.screen, since a record named socket would take a name every routine gives a parameter. The memory world, io.memory, stays in core/io with its environment and its scripted programs, which write into the world's own streams: it is firmware's own world rather than a fake of a system's, and it is what makes io.writer_of, an erased any world, dispatchable in every program that imports core/io, since a closed program refuses an erased call no conformance can answer (D145). A dependency runs one way: core/net and core/io/fake import core/io, and core/io imports core/time. No behaviour changes.

The alternatives: keeping one module, which keeps a reader of the reference wading through every fake to find a concept; a module per concept, which makes the four concepts of world four imports; each fake beside what it fakes, the manual clock in core/time, which puts test providers into every program that reads the time; core/test for the fakes, a name any program's own tests would want; moving the memory world with the fakes, which leaves writer_of refused wherever no world is declared; and naming each record for what it is, fake.socket, which collides as said.

Pinned by every consumer of the moved names, among them runtime/volume-memory, runtime/network-echo-memory, runtime/clock-manual, runtime/random-sequence and runtime/run-shell-memory, and the firmware lane's runtime/network-addresses-firmware and runtime/file-system-firmware.

D349 — The M profile's operations are platform/cortex_m

The tour said at [1590] and [1630] that firmware reaches its processor through the platform, and D267 named the module platform/cpu. Its every operation, PRIMASK, WFI and the M profile's barriers, is the Cortex-M profile's, so a reader took cpu for a processor-neutral interface that an x86-64 or an RV64 target would also have.

Chosen: the module is platform/cortex_m, imported as cortex_m, with its routines unchanged: cortex_m.disable_interrupts, restore_interrupts, interrupt_mask, wait_for_interrupt, device_barrier, completion_barrier and compiler_barrier. Namespace availability refuses it off an M-profile target by its new name, and a module for another profile is named for that profile in turn.

The alternatives: platform/arm, which would also name the A profile's different interrupt model; platform/armv6m, which names one of the three feature levels it admits; and keeping platform/cpu with documentation, which leaves the name to say the wrong thing.

Pinned by negative/library-platform-cortex-m-hosted, the firmware lane's core-cpu.ldn probe, the generated device consumers and the derived driver.

D575 keeps the name and lifts the refusal: the module is available on every target and declares its operations only on an M-profile one.

D350 — A closed set the library carries is an atom set, and a counter a plural noun

The tour said at [0350] that an atom is a named value, and D272 made a closed set of named values in the library an atom set. Some had stayed integers and bools: the memory network's socket records carried their role as a number from 0 to 3; a scripted program said how it ended in a code and a signalled bool beside it; child_read said which stream it read in an errors bool; the text builder said whose its buffer was in an owned bool; and io.status_of and io.synchronize took a bare true or false, which a call site cannot be read by. D274 made a provider's counters plural nouns, and the memory world's read_calls, write_calls, open_calls and close_calls and the memory network's lost were not.

Chosen: the memory network's role is the private atom set free_slot | listening_slot | connection_slot | datagram_slot; a scripted program holds an io.ending, (how: io.exited(code: 3)) or (how: io.signalled), as wait reports it; a child_read has a stream, io.child_output or io.child_errors, of the type io.child_stream; the builder's buffer is not_allocated or allocated; io.status_of takes an io.link_handling, io.following or io.not_following, and io.synchronize an io.synchronizing, io.data_and_status or io.data_only. The counters are reads, writes, opens, closes and losses. platform/posix keeps POSIX's own flags, where a bool is the system's interface. The region's ledger of capacity zero, which grows, and the pool's vacant slot, a size of the largest usize, keep their encodings for now, since each is a fixed parameter or a record callers initialise, and their change waits for the reading of those modules.

The alternatives: named constants beside the bools, which leave the call site as unreadable as before; a variant for the builder carrying its allocator, which the builder's growth already holds; and renaming the counters to *_count, which D274 declined.

Pinned by runtime/network-echo-memory, runtime/run-shell-memory, runtime/run-memory-firmware, runtime/run-shell, runtime/run-large-output, runtime/core-text-builder, runtime/volume-memory, runtime/core-io-file-system and runtime/core-io-line-reader.

D351 — A byte is written as its character

The tour said at [0250] that a character literal is a u32 codepoint, and D163 kept its type fixed rather than taken from context, so the corpus wrote a byte as its number: append_byte(line, 32) for a space, align_right(line, start, 2, 48) for a zero fill and path[at] == 47 for a slash.

Chosen: a byte that is a character is written u8('c'), D199's checked conversion of the character literal, which a constant folds; u8('\n') for a line end. The library and the corpus write every byte they compare or append as text so, and keep numbers where a byte is a number: a record's kind byte, an octet of an address, NUL as 0. D163 is unchanged.

The alternatives: a character literal that takes u8 from context when its codepoint is below 128, which reopens D163's fixed type and makes 'é' an error in one context and a value in another; a b'c' byte literal, which is new syntax for what a conversion already says; and named constants such as text.space, which a reader has to look up.

Pinned by runtime/core-text-builder, runtime/core-text-format, runtime/fizzbuzz, runtime/line-numbers and every library module that compares a byte with a character, through the corpus that runs them.

D352 — Byte equality, hashing and three-way order are core/cmp's

The tour said at [1280] that evidence is declared once, and D273 made the comparison concepts a module of their own. Byte strings were still compared in two: core/cmp gave []u8 equality and hashing, while core/mem gave compare, its less, equal and greater and their order, and []u8 had no ordered evidence, so a sort of byte strings declared its own.

Chosen: cmp.compare, cmp.less, cmp.equal, cmp.greater and cmp.order replace core/mem's, unchanged in meaning, and []u8 is ordered with compare's less. core/mem keeps copying, filling and finding bytes. core/cmp still imports nothing, so every module can import it.

The alternatives: keeping mem.compare and adding only the evidence, which leaves one facility in two places; compare returning an i32 as memcmp does, which D272 declined for every closed set; and ordering bytes as utf8 is ordered, by codepoint, which for valid UTF-8 is the same order and for a host string is not defined.

Pinned by runtime/cmp-bytes-ordered, on Cortex-M0 too, runtime/core-mem-blocks, runtime/tree-copy, runtime/directory-listing and runtime/library-builtin-evidence.

D353 — The hosted provider maps a path's errno, opens and closes once

The tour said nothing of the providers' insides, and D297 wrote the hosted provider once over platform/posix. Inside it, each call on a path wrote the same four lines that keep an errno and map it to not_found, no_access or io_failed, twelve times; open_read, open_write, open_file and make_temporary each had a loop retrying open_at on EINTR; and platform/posix closed a descriptor it did not report three times over, as closed, forgotten and forget.

Chosen: hosted/system has one path_failure, which keeps the errno and fails as the concepts say of a path, and one open, which takes the options and the creation mode, retries EINTR and gives already_exists for a taken exclusive name; every open of every concept and make_temporary call it, the latter now retrying an interrupted attempt in place rather than spending one of its tries. platform/posix has one forgotten. No interface or behaviour changes, but that interrupted temporary attempt. platform/posix's /etc/passwd and /etc/group parsers stay public for now: runtime/posix-accounts holds every malformed-line refusal through them, and the static route reads the system's own files, which a test cannot replace.

The alternatives: a table of errno to atom shared by every module, which the concepts' different atom sets do not fit; leaving the copies, which drift, as the temporary file's retry had; and making the parsers private now, which would leave their refusals unpinned until a database path can be given to the static route.

Pinned by runtime/core-io-file-system, runtime/hosted-io-not-a-directory, runtime/directory-through-file, runtime/r440-errno-detail, runtime/posix-accounts and runtime/posix-terminals.

D354 — The first reading's open points, each changed or kept for a reason

The tour said nothing of these interfaces; the first whole reading of the library left fourteen points no consumer had asked for, and the register asked that each be changed or kept with its reason when the library was next read whole.

Chosen: changed: a tree node says what it is, tree.kind of tree.leaf_node | tree.branch_node, how many leaves it counts, tree.leaves, and which nodes are its children, tree.children, and the module keeps its name, since an append-only tree of named nodes is a tree; a spill list has spill.clear, spill.last and spill.reserve, and its storage is the module's own as vec.list's is (D345); a bounded diagnostic entry lends its whole message, diag.message; an arena gives every allocation back at once, mem.arena_reset; a region grows the block its newest record holds in place through its parent, and mem.grow makes the allocator's grow callable as mem.resize makes resize; the memory file's opened and writing are one state, io.closed_slot, io.reading_slot or io.writing_slot; host() is new() (D347); and byte strings are ordered (D352). Kept, each for its reason: io.argument_at takes the handle by value as out and err do since D288, so that point no longer stands; the map's representation is the module's own, a public alias of a private record, with map.removed counting the dead entries a caller read from it before, and map.cursor's slot private too; a private alias of a type whose formal carries a constraint first stopped the checker with an internal defect, since a template is checked once with its formals symbolic and the constraint was asked of the symbolic type, which is now left to each concrete application; the compositions runtime/r420-map-operations built below the map, a seven-slot table and forged buckets, cannot be made and are gone with the public composition; a saved PRIMASK stays a u32, since every bit but one is reserved and the value is only ever restored or counted, which a distinct type would make longer to write and no safer; text.nowhere waits for the text cursor's retirement, which removes it; pool.over's misconfiguration, grow_storage's three extents and the fault injector's refusal to grow in place wait for the readings of those modules, the last because a dozen fixtures pin which path a container takes through an injector by its counters.

The alternatives: a tree module named for its use, core/outline or core/forest, or moved out of core into the derived program that is its one consumer, both of which Jan may prefer; returning a node's children as a slice of nodes, which would lend from the tree's storage across a push; an arena that resets by giving each block back, which costs a walk the bump allocator does not need; and changing every point at once, which a compiler defect and the injector's oracles stand in the way of.

Pinned by runtime/private-alias-of-constrained-template, negative/private-alias-constraint-held-at-use, runtime/core-tree-node-queries, runtime/library-second-reading, runtime/library-second-reading-spill, runtime/r420-map-operations, runtime/r420-memory-world, runtime/core-io-identity-memory and runtime/cmp-bytes-ordered.

D355 — One decimal writer, one home for parsing, and formatting into a buffered writer

The tour said at [0600] that text is built and read back by the library, and D286 and D305 gave it two decimal writers: the slice writers text.write_byte, write_u32, write_u64 and write_usize with text.prefix, writing at a used count, and the builder's appends, written over them. Parsing was in two files of core/text, unsigned in one and the rest in the other, core/net scanned its addresses' decimal and hexadecimal digits with copies of its own, and text.format wrote only into a builder, so a program writing a formatted line through a buffered writer built it in a buffer and copied it again.

Chosen: the slice writers and text.prefix are retired; the builder's append_u32, append_u64 and append_usize are the library's one decimal writer, private at each width so that a 32-bit image divides in 32 bits, as D286 chose. Every parse_* and to_u32 is numbers.ldn's, written over one scanner per width, and core/net reads an address's parts with text.parse_u8 and text.parse_hex_u32. io.format(writer, template, values) formats straight into a buffered writer's buffer: into the room after what waits, after a flush when the text does not fit there, and refused whole with text.no_space when it is larger than the buffer; the builder and the buffered writer are the byte sinks a template is formatted into. core/text's cursor, text.position, stays, and with it text.nowhere: D182 makes utf8[position] the language's direct byte-offset index, which reads that exact type, so retiring the cursor is a language change and is left to one.

The alternatives: keeping the slice writers beside the builder, which keeps two ways to write a number; one u64 writer for every width, which D286 declined for 32-bit images; a sink concept that formattable writes through, which changes every conformance and whose failures core/text cannot name, since core/io imports it; and a builder over a copy, which is what this replaces.

Pinned by runtime/core-text-decimal-widths, runtime/core-text-runtime-helpers, runtime/buffered-writer-format, runtime/network-addresses, runtime/library-shared-net and negative/core-text-prefix-frame, now over a builder's storage.

D356 — Storage is reserved once, and an injector grows in place

The tour said at [1360] that allocators are passed to containers, and D151 and D152 gave raw storage its states and a provider in-place growth. core/vec and core/map each wrote the extent check and the release of a storage, and core/vec the reserve, with mem.grow_storage public and trusting three extents its caller passed. The fault injector refused every in-place growth, so a container tested through one never took that path, and a region over capacity zero grew where a positive capacity bounded it, with nothing at the call site to say so.

Chosen: mem.storage_extent, mem.reserve_storage and mem.release_storage are the containers' one way of taking and giving back slots: a reserve grows the block in place where the provider does and moves it otherwise, published last; grow_storage is private, so no caller passes its extents. The injector delegates grow, spending its budget on the attempt, and counts a growth in place as fault.growths, so successes is still the blocks it gave and each is freed once; every fixture that pinned an injector's counters was rewritten for a growth asked before an allocation, holding what is the same whichever way a provider answers where the answer depends on the system's pages. region.growing_space names the growing ledger, which capacity zero still is, since a bounded ledger of no records could hold nothing. Two parts were stopped on inspection. The arena stays in core/mem: as a module of its own it would leave every program that imports core/text, whose growing builder is an any mem.allocator, with no allocator conformance, which D145 refuses (L0342) though no such value could exist, so moving it waits on that rule. The pool's vacant slot stays the largest usize: runtime/r420-pool-provider pins the slot's sixteen bytes against the padded form with a flag, and callers declare the slots zeroed, which no atom set can be (L0328).

The alternatives: a container-private reserve in each module, which is what this replaces; an injector that grows without spending its budget, which lets a test's permits be spent by a path it did not count; and region.space(0) left unnamed.

Pinned by runtime/r420-vec-large-list, runtime/core-tree-indices, runtime/core-tree-provider-failures, runtime/core-tree-count-overflow, runtime/r420-reference-provider-matrix, runtime/r420-failing-providers, runtime/r420-small-vector-providers, runtime/r420-stateful-filter-list, runtime/r420-tree-real-exhaustion, runtime/core-vec-pointer-storage, runtime/derived-hosted-memory and runtime/library-second-reading.

D1727 — A storage with a block grows through the provider's resize

The tour said at [1360] that allocators are passed to containers, and D356 made mem.reserve_storage their one way of taking slots: a growth asked in place, and when the provider refused, a fresh block, the prefix copied into it and the old block freed. The growing text builder already grew through resize, which lets hosted/heap move a large block's pages rather than copy its bytes: 4,000 appends of 64 KiB on Linux x86-64 at --optimize speed took 383 ms through vec.append_bytes, with 12 mremap, 13 mmap and 13 munmap calls, against the builder's 163 ms.

Chosen: a storage that holds a block with a positive extent grows by one call to the provider's resize, which grows it in place or moves it, the provider choosing; its first old extent of bytes, the prefix among them, are where the result is, and out_of_memory leaves the storage as it was. A storage with no block, or whose items have no size, still takes a fresh block. mem.reserve_admit_copy, which vec.append_bytes grows with, grows the same way, and when the bytes it appends are a view of the storage's own block it reads them where the block now is: the block keeps the old block's bytes whether it grew or moved, so what is appended is what they held when the call began (D1122). The list now takes 190 ms with 12 mremap calls, one mmap and one munmap. Through core/fault's injector a growth is one attempt and, when it succeeds, one success and no free, whichever way the inner provider answers, so the fixtures that pinned an injector's counters were rewritten for it.

The alternatives: keeping D356's growth asked in place before the resize, which asks the system twice for every block it cannot extend where it is; keeping D356's growth for an append of the list's own bytes, which links both ways of growing into every image that appends bytes and took runtime/core-self-append past Cortex-M0's 32 KiB at none; and a resize for byte lists alone, which leaves every other item type copying its slots.

Pinned by the fixtures D356 names whose counters changed, among them runtime/r420-vec-large-list, runtime/r420-failing-providers and runtime/core-vec-used-sort, runtime/core-self-append and runtime/hosted-heap-resize.

D357 — file_system refines files, and a member for another system says so

The tour said at [1290] that a concept may refine another, and D325 made file_system a concept beside files, so a routine that asked for it could open a file and not close it. A call platform/linux declares only on Linux, written for Darwin, was L0201's "has no member", which reads as a misspelling rather than as a call the system does not have. A public alias of a private record whose formal is constrained, the private map of D354, stopped the checker with an internal defect.

Chosen: file_system refines files, so its providers open with open_read, open_write and open_file and close each with files' close. L0201 for a member the module declares only in a fixed if arm this target does not select says that the module declares it only for another target. A template is checked once with its type formals symbolic, and a constraint asked of a symbolic formal inside an alias's body is now left to the alias's concrete applications, which normalize the body again and refuse a type without the evidence there. The memory world is not rebuilt over the volume: the volume's conformance tables link every entry of five concepts, about 100 KiB, which a firmware image over the memory world, the world it is kept in core/io for, cannot hold in its 32 KiB.

The alternatives: a separate open and close in file_system, which gives a file two ways to close; a new diagnostic code for an absent member of another system, which says no more than L0201's note can; deciding the symbolic constraint by the outer formal's own, which every alias would have to repeat; and building the memory world over the volume for hosted tests alone, which gives firmware and hosts two memory worlds.

Pinned by runtime/volume-links-as-systems-follow, negative/module-member-for-another-target, runtime/private-alias-of-constrained-template and negative/private-alias-constraint-held-at-use.

D386 — A pool grows a block within its own slot

The tour said at [1360] that one allocator concept serves a fixed buffer as a heap or an arena, and D197 and D337 gave core/pool uniform slots and a resize that keeps a block in its slot to any extent the slot holds. Its grow still refused every growth, so a container over a pool, which asks to grow in place before it allocates (D356), always took a second slot and copied, a pool of one slot refused a growth its slot could hold, and a program tested through a pool never met the path a heap or an arena takes.

Chosen: the pool's grow keeps the block in its slot to any extent the slot holds and records that extent for the block's free, as resize does, and refuses a larger extent, a block that is not a live slot of old_size and an address inside a slot rather than at it, with the pool unchanged. The block does not move, so it keeps the alignment it was allocated with. free, grow and resize find their slot through one private routine, so they refuse alike, and resize is a growth or shrink in place. No slot is larger than another, so a growth past the slot finds nowhere to go, and mem.reserve_storage's fresh allocation is refused as before. Every Cortex-M0 image over a pool that the corpus runs is smaller than it was. The fixtures that counted a second slot for a growth now count one allocation and hold the refusal past the slot instead.

The alternatives: growth into the next slot when it is free, which makes a block span slots the free-index heap and the address-to-slot arithmetic cannot describe; keeping grow refused and leaving the in-slot growth to resize, which the containers never ask for before allocating; and a separate growth routine beside resize's, which gives the pool two answers to one question.

Pinned by runtime/core-pool-grow and runtime/core-pool-list-grows on every target, Cortex-M0 among them, runtime/core-pool-resize, runtime/r420-list-real-exhaustion, runtime/r420-small-real-exhaustion, runtime/r420-small-vector-providers, runtime/r420-failing-providers, runtime/r420-reference-provider-matrix, runtime/r420-tree-real-exhaustion, runtime/core-tree-provider-failures and runtime/derived-containers.

D2449 — A zone bump-allocates from blocks it takes from a parent

The tour said at [1360] that one allocator concept serves a fixed buffer, a heap or an arena, and the library had no provider that both grows and bump-allocates: core/arena hands out caller bytes and cannot grow, and core/region asks its parent for every payload and frees each back at release. binary-trees, one region per tree over hosted/heap, spent 77% of its time in those two modules, executing 46.4 G instructions at depth 18 on x86-64 at speed where a hand-sized arena per tree executed 20.6 G.

Chosen: core/zone, a provider over a parent like the region, zone.over(space, parent) filling a caller's zone.space. It hands out the newest block's bytes in order, aligned by the address as the arena aligns them, and when they run out takes a block from the parent twice the size of the one before, starting at 1024 bytes. Each size is a power of two less two words, so that with a parent's two-word header a block fills a size class or whole pages. A block too small for the request is made just large enough, and when the parent refuses the doubled block the zone asks once more for just enough, so a small parent still serves it; a refusal of that leaves the zone unchanged. Each block begins with the address and extent of the one before it, so the chain needs no ledger. An individual free does nothing; only the newest allocation grows, or gives back its tail, in place, and growing any other moves the block, as the arena's do. zone.reset(handle) gives every allocation back at once and every block but the newest, the largest, back to the parent, so a loop that resets keeps one block that fits its round. zone.release(space, parent) takes the state inout, as the region's does, so the checker refuses it while the handle is still used, and gives every block back. binary-trees on a zone per lifetime, reset after each tree, executes 21.0 G instructions at depth 18 and runs depth 21 in about two fifths of the region port's time.

The alternatives: a region that bump-allocates from blocks, which changes what its bounded ledger and its parent's resize promise to every program that has one; a growing form inside core/arena, which needs names of its own for over, the reset and the release where the library has no overloading; blocks of a fixed size, which take a parent call per block for a large lifetime and leave a reset nothing that fits it; and a reset that keeps every block, which keeps a lifetime's largest round for good.

Pinned by runtime/core-zone-blocks and runtime/library-shared-zone on every target, Cortex-M0 among them, and runtime/benchmark-game-binary-trees.

D387 — core/sort takes a comparison with a context

The tour said at [1290] that a generic function takes a type as an ordinary parameter and at [0870] and [1000] that a function is a value of an ordinary function type. D270 and D273 made core/sort order items by their cmp.ordered evidence, which sees only the two items: records that refer into shared storage, an outside program's paths as offsets into one pool of names, could not be sorted by it, and that program wrote its own merge sort.

Chosen: sort.sort_by(values, by, less) sorts with less: (by: context, left: item, right: item) -> (yes: bool), generic over item and context, and passes by to every comparison unchanged. A context is any value: a slice of the shared storage, a record holding one, or a pointer through which the comparison counts or caches. It is the same heapsort as sort, with no allocation, constant storage and bounded depth, and the comparison must be a strict weak ordering while it runs. A context whose type disagrees with the comparison's is D138's L0340. sort and sort_selection are unchanged, so no image that sorts by evidence grows.

The alternatives: a concept with an entry that takes a context, which a concept over one type cannot spell for an item type it does not name; evidence on a distinct wrapper that holds a pointer to the pool, which stores a reference in every item to order it; a closure, which the language does not have (D113); a stable merge sort, which needs storage the caller would have to supply, and which no consumer asked for; and sort rewritten over sort_by, which would call every evidence comparison through a function value.

Pinned by runtime/core-sort-context on every target, Cortex-M0 among them, and negative/core-sort-context-mismatch.

D388 — A library failure atom has words for a person

The tour said at [0940] that a failure is an atom with no payload, and D269 and D350 named the library's atoms for what they mean. Nothing turned one into words: an outside program that reported path: reason wrote its own table from the atoms to messages.

Chosen: core/failure is a shared freestanding module of one type and one routine. failure.reason is the union of every atom a core module fails with, thirty-nine of them since D1276 from core/mem, core/map, core/tree, core/io, core/net, core/text, core/cache and core/line, and failure.words(problem) returns a fixed phrase for each: lower case with no final stop, so that it reads after a subject and a colon, static text that borrows nothing, the same on every target and in every locale. A call's failure set widens to failure.reason whatever subset of it the call declares, so else (problem) passes it straight on. A set that also holds the program's own atom does not widen, so a match names the program's atoms and passes the rest on through D434's _ (rest): binding, which holds only the library's; the subject itself still does not widen, and that refusal is [0640]'s L0301. Atoms that are values rather than failures, a directory entry's kind or an order, have no words, and platform/posix's errno detail stays with its provider (D207); D582 gives its errnos words of their own beside these. A program that never calls words links none of it (D296); one that does carries every phrase, about 6 KB on Cortex-M0, which a match of thirty-eight arms costs there.

The alternatives: a words in each module, which a failure set mixing io and net atoms, as a socket's does, could not pass to either; a generated table indexed by the atom's code, which the language gives no way to read; phrases in sentence case or with a stop, which read wrongly after a colon; and a locale, which the library consults nowhere.

Pinned by runtime/failure-words and runtime/library-shared-failure on every target, Cortex-M0 among them, runtime/failure-words-report on every hosted target and runtime/failure-words-own-atom, a negative fixture until D434 gave the _ arm its binding.

D1276 — A directory named where a file is opened is is_a_directory

The tour said nothing. core/io's opens failed not_found, no_access or io_failed, and a directory given as a file argument was the last, which failure.words gives as "input or output failed": a tool could tell its user that a file was missing or unreadable, and of a directory only that something failed. EISDIR was in last_errno, which only the hosted providers have.

Chosen: io.is_a_directory is a failure atom of core/io, in failure.reason, with the words "is a directory". files' open_read and open_write and file_system's open_file declare it, and so do io.open_read, io.open_write and io.open_file: the interface grew, and a declared set that passes one of their failures on with try names the atom, unless it is failure.reason or .... Every provider that has directories answers with it. hosted/system, and hosted/blocking and hosted/events over it, map EISDIR, which every hosted system gives an open to write. An open to read alone succeeds on a directory on all of them and each read then fails, so that open asks the status of what it opened, closes a directory again and fails is_a_directory keeping EISDIR: one fstat for each open to read, and the failure at the open, where the path is known, rather than at the first read. core/io/fake's memory volume fails it for a directory node. The memory world has no directories and never fails it, and declares it all the same: an entry provides a concept's with the same failure set [1240], so a program's own provider of files adds the atom to its two opens. read keeps its one atom.

The alternatives: new words for io_failed, which is what every other input or output failure still is; is_a_directory in read's set, where the system reports it, which every reader in the library and every program's try io.read would then carry for a mistake made at the open; not_found, as the path through a file is (D287), which says the opposite of what happened; and leaving the route as last_errno, which the memory providers and a program written over io.files do not have. All were declined.

Pinned by runtime/hosted-io-directory-as-file: a directory the program makes, not the root, which is a read-only and protected volume on Darwin, opened each of the four ways through hosted/blocking and through hosted/events, each is_a_directory with EISDIR kept and the phrase "is a directory", a directory node of the memory volume the same, and a file and a missing path as before. Darwin's and FreeBSD's arm was written by reading and is run by their lanes.

D582 — An errno has words in platform/posix, which passes the library's on

The tour said nothing, and D388 left platform/posix's errnos without words: core/failure is freestanding and cannot name a hosted layer's atoms, so a program failing through the POSIX layer, runtime/tree-copy among them, said why only in general terms.

Chosen: platform/posix gains reason, the union of errno and failure.reason, which is what a program over that layer fails with, and words(problem: reason). It gives every errno atom a fixed phrase of its own, distinct from every other errno's, in D388's form: lower case but for a name's capitals, with no final stop, static text the same on every system and in every locale. The phrase is C's strerror text as glibc gives it, the wording a reader has met before, and for the errnos only Darwin or FreeBSD define, their headers' own; ENOTSUP is "operation not supported" and EOPNOTSUPP "operation not supported on socket", Darwin's two texts, so the alias the other systems share stays apart where it is two numbers. unlisted is "unknown error". A library atom goes to failure.words through a _ (rest): arm (D434), so one call words anything such a program fails with. A program that never calls it links none of it (D296).

The alternatives: the errnos in failure.reason, which puts a hosted layer into a freestanding module; a strerror over the system's own text, which differs between the three systems, follows the locale and on a static Linux program has no C library to ask; words for errno alone, which a set mixing errnos and library atoms, as tree-copy's does, could not pass to it, D388's reason for one words; and each system's own headers' wording, which words one errno three ways.

Pinned by runtime/posix-errno-words, which holds every errno each hosted system numbers to a well-formed phrase none other has, words a missing path's enoent and a library atom, and runtime/tree-copy, whose complain now words its failures with it.

D2008 supersedes this decision in part: posix.reason and the words that pass a library atom on are system.reason and system.words in hosted/system, and posix.words words an errno alone, so the POSIX layer imports nothing above it (D1951).

D955 — A serial line's settings and its divisor are core/line's, and a driver writes nothing it refuses

The tour said nothing of a serial line beyond prototype 1's baud_rate parameter, and every driver in the repository refused any rate but 115,200 with an atom of its own, bad_baud, writing divisors computed by hand: the derived driver's IBRD 26 and FBRD 3, the Picos' 6 and 33, the STM32H753's BRR 556 and the ESP32's and S3's CLKDIV 0x0040015b.

Chosen: core/line is a shared freestanding module with no register in it. line.settings is a record of a u32 rate in bits per second, u8 data bits, a line.parity atom set, no_parity, even_parity or odd_parity, and a line.stop_bits one, one_stop_bit or two_stop_bits (D350), so one and a half stop bits cannot be asked for; line.default_settings is 115,200 8N1. line.check refuses a rate of zero with line.unsupported_rate and data bits outside 5 to 9 with line.unsupported_format; line.divisor(clock, rate, oversampling, fraction_bits, least, most) gives the integer nearest clock * 2^fraction_bits / (oversampling * rate), halves up, as the register holds it, and refuses with unsupported_rate a value outside the register's range or a rate it misses by more than line.tolerance (D956). One routine serves the families the ports program: a PL011, 16 times a bit with 6 fraction bits; an STM32 USART, whose BRR is the divisor of its kernel clock, oversampling 16 or 8 with 4 bits; and an Espressif UART, once a bit with 4. The arithmetic is integer only, in u64, which a Cortex-M0 links as libgcc's helpers, and exact for every u32 clock and rate. Both atoms are in failure.reason with words. A driver computes every register image through the module and its own encoding first, refuses what its peripheral cannot carry, and writes only then, so a refusal leaves every register and the line as they were; each port's own refusals are D957 to D961's.

The alternatives: a module holding the register encodings too, which would name devices a freestanding module serves none of; floating point, which a Cortex-M0 has not; an atom per driver, which gives a caller bad_baud from one driver and another word from the next for one condition (D269); core/serial or core/uart, whose final segment is already the board ports' serial and the derived driver's uart, so a program importing its driver beside the module would need an alias ([1850]); a divisor that truncates, as ESP-IDF's does, which would change the ESP ports' 115,200 from 0x0040015b; and a closest-rate search, which for a fractional divisor gives the same value as rounding it at a cost of more divisions.

Pinned by runtime/library-shared-line on every target, Cortex-M0 among them, whose sweep of eight peripheral clocks folds to the value scripts/tests/test_line.py's exact oracle gives; runtime/failure-words; and each consumer's own evidence, D957 to D964.

D956 — A divisor may miss its rate by two percent

The tour said nothing.

Chosen: line.tolerance is 20 parts per thousand: divisor refuses a value whose rate is more than two percent from the one asked for, measured exactly, |clock * 2^fraction_bits - value * oversampling * rate| against value * oversampling * rate. A receiver finds a frame by the falling edge of its start bit and samples each bit at its middle; it reads the first stop bit, the last bit it samples, correctly while the drift between the two ends stays under half a bit. Over the longest frame a port here admits, a start bit, eight data bits and parity, the middle of that stop bit is 10.5 bit times in, and a receiver sampling 16 times a bit may find the edge a sixteenth of a bit late, so the two clocks together may differ by (1/2 - 1/16) / 10.5, 4.2 percent. Two percent is half of that, the other half the far end's. It holds no margin for a slow edge or for a receiver that votes on three samples, which is why the ports' own divisors are well inside it: every PL011 rate at 48 MHz within 0.79 percent, BRR 556 at 0.08.

The alternatives: a tolerance per driver, which the shared refusal would then not describe; one stated per frame length, which every caller would have to compute and which differs by under half a percent between the frames admitted; and none, accepting any divisor in range, which at the top of an ESP UART's range gives a rate three percent out.

Pinned by runtime/library-shared-line's 3.9 Mbaud at 64 MHz, in range at BRR 16 and 2.6 percent fast, refused; and 3.8 Mbaud, BRR 17 and 0.9 percent, accepted.

D957 — The derived driver opens any line its PL011 can carry

The tour said nothing; prototype 1's open took a baud_rate, and the complete derived driver bounded it to 115,200 with bad_baud, saying the bound kept the program within its board and did not claim a general UART configuration.

Chosen: uart.open(settings: line.settings, budget, escaping buf) computes IBRD, FBRD and LCR_H through uart.line_registers for the synthetic UART's declared 48 MHz clock and writes them in that order, LCR_H last so that its write latches both divisors: 46 to 3,000,000 baud, 5 to 8 data bits, any parity and one or two stop bits; LCR_H keeps the FIFOs on and sets neither break nor stick parity. Nine data bits are refused with line.unsupported_format, since WLEN reaches eight. bad_baud is gone: the driver fails with the shared line.unsupported_rate and line.unsupported_format in its place, checked after the buffer and before busy, and both precede any device write. 115,200 8N1 is still 26, 3 and 0x70, and the application opens line.default_settings. Retires the 115,200 bound.

The alternatives: a separate configure beside open, which the emulator's synthetic device has no protocol to drain for; keeping bad_baud beside the shared atoms, two names for one refusal; and a driver-chosen tolerance, which D956 declined.

Pinned by environments/cortex-m/driver.py's lines, eight lines opened through the public driver whose register images and the latched line the model holds equal an oracle written from the RP2040 datasheet's 4.2.7.1, and its configurations, whose rate and format refusals leave every UART register unwritten (D964).

D418 — The POSIX and Linux layers keep their routines' own names

The tour said nothing of the library's link names. Every public routine of platform/posix carried a _landin_posix_ link name and every one of platform/linux a _landin_linux_ one, D279 and D297 say, so that none replaced the C library's function of the same name when a program also linked libc; D296 therefore could not root a native routine by its link name, because doing so kept the whole of platform/posix.

Chosen: under D415 a public routine is a local symbol, so it can replace nothing, and the prefixes are dropped: 174 link names go, and each routine keeps its own name, which a debugger and a backtrace now show. No C peer, C runtime or assembly block called any of them by a prefixed name. The two symbols the C runtime and the kernel do reach keep theirs: the process entry _landin_start and _landin_host_initialize_arguments, which a C-owned main calls. _landin_start_main stays a public C definition, which _landin_start calls from its assembly block.

The alternatives: keeping the prefixes as harmless, which keeps a workaround for a collision that can no longer happen and makes every one of those routines a global symbol and a D296 root.

Pinned by every hosted fixture, unchanged in behaviour, and abi/library-names-beside-libc.

D425 — A list of bytes is the growable byte container

The tour said at [1360] that containers take their allocator as an argument, and D356 made mem.reserve_storage their one way of taking slots. A program gathering an unknown number of bytes had no container for them: core/text's growing builder is named for text and lends a read-only view, a mem.byte_buffer cannot grow, and a vec.list(u8) grew a push per byte, its reserve moving the items one at a time when the provider could not grow the block where it stood. Reading reverse-complement's 250 MB input took 34 seconds through a list pushed a byte at a time.

Chosen: vec.list(u8) is the growable byte container, with three operations over it. vec.append_bytes copies a slice after the bytes the list holds; vec.spare_bytes lends the spare capacity past them, at least the bytes asked for, as the buffer a read fills; and vec.extend_bytes counts the bytes written there as appended. The first two grow the list as push does, doubling, or to exactly what is asked when doubling is not enough, and report mem.out_of_memory changing nothing; counting more than the spare capacity is mem.out_of_bounds, also changing nothing. Beneath them core/mem gives the byte storage the same three: spare_bytes, admit_bytes and admit_copy, the last failing with full. The spare capacity holds whatever the backing held, which every byte value is, so the view is only for bytes: a spare slot of another item type could hold no value of it, an atom set's among them. The copy is mem.copy, a word at a time where it moves words and a byte at a time on firmware, and so is the move when the list grows: mem.transfer_prefix, which mem.reserve_storage moves a block's items with when the provider cannot grow it in place, copies their bytes whole rather than a typed transfer per item, and D356's protocol, a growth asked in place before an allocation, stays as it was. Reading reverse-complement's input on Linux x86-64 at --optimize speed into a list through spare_bytes takes 0.40 seconds, and 0.44 through append_bytes from a 64 KiB buffer, against 2.5 to 3.7 with the reserve moving items one at a time and 0.23 through core/text's growing builder, whose resize lets hosted/heap move a large block's pages rather than copy them. Reverse-complement keeps the builder: through a list it took 0.94 seconds against the builder's 0.79.

The alternatives: a generic append and spare view for every item type, which would lend uninitialized slots as values and copy items holding references past their origins; a byte container of its own beside the list, a second growth rule for the same storage; and a builder renamed for bytes, which would keep its fixed text-oriented operations.

Pinned by runtime/core-vec-bytes, runtime/core-mem-zero-prefix, runtime/r420-vec-large-list, runtime/core-vec-pointer-storage and runtime/r420-stateful-filter-list.

D1122 — An append may be given the container's own bytes

The tour said at [0800] and [0830] that a view of a container locks it against inout while the view is in use, because the call could move the storage under the view. The lock did not reach a view whose last use is as another argument of that same call, so vec.append_bytes(list, memory, vec.used(list)) and text.append(line, text.used(line)) were accepted, and a view kept behind a pointer or made in unchecked code is never the origin check's to see. A growth then moved the storage, freed the old block, and copied from it.

Chosen: the library's appends that take bytes beside the container they append to, vec.append_bytes, text.append, append_text, append_host and text.format, promise the bytes whichever block they are in: what is appended is what the argument held when the call began. A list of bytes grows through mem.reserve_admit_copy, D356's protocol with the copy of the appended bytes made before a moved block is released. A growing builder grows the same way when the old block may be read again, in place through the allocator's grow and otherwise into a fresh block, appending before it frees the old one. That is when the appended bytes lie in the block, which their addresses say while it is live, and when a format is writing: text.format writes several values and a template, any of which may view the builder, so while a format writes, the builder keeps the first block a growth moves it out of and the call frees it when it ends; a format a conformance calls inside another keeps its own, and hands it to the outer call when that one has kept none. Every other growth still calls the allocator's resize, as D425 measured it: nothing reads the old block again, and hosted/heap moves a large block's pages instead of copying them. The promise is the call's own: a view of the old block is still invalid once the call has returned, and a routine of the program's that appends twice from a view it holds behind a pointer is not made safe by it. Whether the checker refuses the direct spellings is the origin check's rule and changes nothing here: the library is sound with them accepted and with them refused.

The alternatives: relying on the refusal alone, which leaves the read of a freed block to every view the origin check cannot follow and to every compiler that accepts the call; never calling resize, which costs every large builder the copy D425 measured; deriving a format's values again by address after a resize, which cannot be done, since the block they were in is by then another's and its addresses mean nothing; and copying the appended bytes aside first, which needs storage an append has no right to ask for.

Pinned by runtime/core-self-append, whose provider never grows in place and overwrites every block it is given back, and which fails on each of the list's and the builder's cases without the rule; runtime/core-text-builder and runtime/core-vec-bytes hold the growth itself.

D1727 amends how a list's append keeps the rule: its storage grows through the provider's resize, and a view of its own block is read at the same offset in the block resize returns, which holds the old block's bytes whether it grew or moved. A list's one view is a range of that block, so its offset is known, unlike a format's values.

D442 — platform/linux's path parameters take ptr u8

The tour said at [0260] that a text literal takes cstring from its context, and an outside program passed literal paths straight to its own extern(c) openat taking a cstring. platform/linux's openat, statx, mkdirat, unlinkat and other path calls take ptr u8, so a literal cannot be passed to them, and L0301's note said only that a literal takes []u8.

Chosen: they keep ptr u8. Their caller is platform/posix, which copies a host string into a room, ends it with NUL and passes terminate's ptr u8 from room; D199 converts neither bytes nor a pointer to cstring, so a cstring parameter could not be filled there at all. Portable paths are host strings through platform/posix, and the raw wrappers serve that module and programs that hold bytes. A program with a literal binds it, name: []u8 = "/etc/hostname", and passes addr name[0]: the literal ends in NUL [0260], and the pointer keeps the literal's static origin. L0301 gives that route when a literal meets a ptr u8 context, and names cstring among a literal's contexts.

The alternatives: cstring parameters with a checked bytes-to-cstring conversion, which reopens D199's matrix; and a text literal taking a ptr u8 context, which blurs cstring's distinct identity and lets every ptr u8 parameter accept text. Both were declined until a second consumer passes literal paths to the raw wrappers.

Pinned by negative/text-literal-needs-pointer, whose note gives the route, and runtime/linux-system-calls.

D444 — A program starts fibres as a group it joins

The tour said nothing about fibres. The roadmap's execution model makes concurrency a capability handed down like an allocator, with no keyword, second calling convention or colored function type, and the switch a stack the caller lends. Prototype 5's first draft started fibres as C starts threads: a struct and a conformance per fibre, a start that returned with the fibre still running, a hand-made pool of records and stacks polled for a free one, and a failure with nowhere to go (V15). It also found that one concept could not serve both a program that is right when every task runs to its end and one that needs them to take turns (V1), and that a group's failure needs a set to be carried in (V2).

Chosen: core/fibre has three layers. The switch, prepare and switch over a caller's record and stack, is for whoever writes a provider. Two concepts say what a provider is: scheduler, whose start may run a task to its end before returning and whose wait returns once one of its fibres has finished, or at once when none is running; and turns, a scheduler that adds yield, whose contract is that a fibre that yields lets every other unfinished fibre of the provider run before it resumes. A provider that runs everything to its end has no yield, so a program that needs turns says so in the concept it asks for and is refused where it asks. The blocking host and fibre.whole provide scheduler; a device's round of turns, the event-driven Io and an RTOS's scheduler provide turns. The library carries the switch, whole and one round of fixed turns over caller records, with the wait when nobody can run supplied by the provider built on it; priorities, timers and preemption stay out of it.

An application uses the third layer only. group_over takes a scheduler and turns_over a turns, with a backing the caller lends and a count, and cuts the backing into equal stacks; the group comes from the provider and the backing. admit waits, through the provider, for a free stack, copies the task's state onto it as a call passes an argument, and starts a fibre that calls an ordinary routine with that copy; one group holds tasks of different state types. A task's error set is failure.reason: the group keeps the first failure and join fails with it, after every admitted task has ended, since nothing cancels a fibre. A task with atoms of its own maps them before returning, as core/failure asks of a set that holds both. A group must be joined before its backing goes, and the program's defer does it, as it releases a region.

The alternatives: a fibre that outlives the routine starting it, which is a thread and needs a thread's bookkeeping; one concept for every provider, which promises too little for a program that needs turns and too much for one that does not; a concept that adds a promise and no entry, which no concept has been, and which yield makes unnecessary; a refusal at run time when a provider cannot take turns, which comes later and says less; a body routine that receives the group and joins it on return, which cannot be got wrong but brings the routine-and-state ceremony back one level up and makes the group and the states both parameters, so that D445 can no longer order them; a checker rule that a frame-backed group is joined on every path, recorded in the register rather than taken; and error sets as generic parameters, recorded there too. All were declined; D773 later recorded the defer as the way.

Pinned by runtime/library-shared-fibre, a group over whole that runs its tasks in admission order, keeps the first failure for join and refuses a backing too small for its stacks; runtime/fibre-turns-interleave, a group over a round of turns whose two tasks yield in turn while the home stack goes on past both admissions; runtime/fibre-same-source-any-provider, prototype 5's two requests from one source, answered a first over the blocking host and whole and b first over a round whose clock takes turns, each state keeping a pointer to the caller's parameter through escaping into; runtime/fibre-join-first-failure, both tasks ended before join fails with the first failure; negative/fibre-turns-over-scheduler-only, turns_over refused for whole and the blocking host; and negative/fibre-admit-state-after-group, a state referring to a local declared after the group. Prototype 5's V1, V2, V8 and V15 record the pressure.

D448 — On one core, requests are answered one at a time, in order

The tour said nothing. The roadmap's execution model names a single-core freestanding target as the case to design against, where the honest answer to a request for concurrency is that there is none. Prototype 5's device takes two requests on one serial line while it answers the first, and could have answered them in either order (V13).

Chosen: on one core, an operation in flight is a request whose answering has started and not finished. A device answers in arrival order, one at a time, and answers busy when the requests waiting for it fill its queue; receiving goes on in a fibre of its own. Fibres on a device are for structure, taking input while answering, and not for overlapping answers. A trace of the derived firmware shows answers in request order, none starting before the previous one has finished.

The alternatives: refusing a second request while one is answered, which needs no fibres and turns away work the device could have done; and overlapping answers through turns, which puts two operations in flight on one core and makes the trace's order depend on the requests' timing. Both were declined.

Pinned by the counterpart lane of the Cortex-M lanes, which runs prototype 5's derived firmware on QEMU's micro:bit and holds its trace to the oracle D1035 describes; prototype 5's V13 records the pressure.

D449 — What the second Io and the atomic wrapper owe fibres

The tour said at [1620] that the atomic wrapper is a library question because Cortex-M0 has no read-modify-write, and the library reference that the fake network answers timed_out at once since nothing in one thread could end its wait. Prototype 5 found that stopping a server, waking a fibre from an interrupt and testing a server over the fake network all depend on promises nothing made (V7, V10, V14).

Chosen: nothing cancels a fibre. A program stops one by failing the I/O it waits on: an Io that runs fibres wakes every fibre waiting on a descriptor when it is shut or closed through the provider, and the woken call fails io_failed; a signal reaches the provider as an event read by an entry that waits like a receive, never as a handler running Landin code on a fibre's stack. A fibre that never ends holds its group's join for ever, and one never resumed never runs its defers; both are stated, not prevented. An interrupt handler never switches: it records what happened for the provider to see before it waits. The atomic wrapper names the single-writer update, a load and a store, as an operation of its own on every target, and refuses a shared read-modify-write where the target has none, naming the critical section. The fake network, given a scheduler that takes turns, yields where a call would wait and answers timed_out only after a whole round in which nothing it waits for arrived; without one it behaves as now, and the library reference's reason is reworded.

The alternatives: cancellation, which unwinds another fibre's stack and Landin does not unwind [1670]; leaving a closed descriptor's waiter asleep, which epoll does and which loses the fibre; switching from an interrupt, which returns into another fibre's frame; a wrapper that masks interrupts behind the program's back, which D227 already refuses; and a fake that answers timed_out regardless, which fails every test of a program with two fibres. All were declined.

Pinned by runtime/network-fake-turns-exchange, a server fibre and a client fibre exchanging over the fake network under a round of turns in both orders of start; runtime/network-fake-turns-waits, the fake network without a scheduler timing out at once and with one timing out only after a round in which nothing moved, and an accept and a receive woken with io_failed when another fibre closes or shuts their socket; runtime/signals-fake-stop-server, a signal read as an event stopping a server by closing its listener, which fails the server's accept; and runtime/signals-fake-firmware, signals waited for like a receive on every target, Cortex-M0 included (D482, D483); runtime/events-close-wakes-waiter, a receive under hosted/events woken with io_failed when another fibre closes its socket and another when one shuts it, and runtime/events-signal-stops-server, the same stopping as the fake's over a real listener and a signal the process sends itself (D485, D488); and the wrapper's runtime/atomic-tick-firmware, whose single writer adds with atomic.sole_add on every target, and negative/atomic-read-modify-write-cortex-m0, its refusal naming the critical section (D510, D511). Prototype 5's V7, V10 and V14 record the pressure.

D463 — The switch is a module beneath core/fibre

The tour said nothing about fibres. D444 puts the switch, the concepts, whole, the round of turns and the group in core/fibre, and says the blocking host provides scheduler. D453 refuses a stack builtin by name on a target whose backend does not emit it yet, and synthetic-32 admits neither (D450); a builtin is refused wherever it is written in the program, called or not.

Chosen: core/fibre holds the concepts task, scheduler and turns, the record space, whole and the group, and calls no builtin. The switch, prepare and switch, and the round of fixed turns built on it, round, are the submodule core/fibre/stacks, as core/io/fake is core/io's. A program that never switches a stack, a group over whole or over the blocking host, is then admitted on every target, firmware and synthetic-32 included; one that imports core/fibre/stacks is admitted where its backend emits the builtins. hosted/system provides fibre.scheduler in a file of its own and imports core/fibre and not its switch, so no hosted target is refused for it. There is no import cycle: core/fibre imports core/failure for its error set and core/mem, and neither imports anything hosted. The price is the closure: every hosted program now reaches core/fibre, core/failure and the core/map and core/tree that core/failure names atoms from, which made a hosted program's debug compile about a tenth slower when it was measured and its executable no larger.

The alternatives: everything in core/fibre, which refuses every program that imports hosted/system on each target whose backend does not emit the switch yet, and every program using core/fibre on synthetic-32 for ever; the host's conformance in a module a program imports to get it, which leaves any(addr host) refused where prototype 5 writes it, for a reason the source does not show; and the checker refusing a builtin only in a routine the program reaches, which would change D453 for one library's sake. All were declined. D564 later made that change for every module that calls such a builtin; the submodule stands.

Pinned by runtime/library-shared-fibre, a group over whole executed on every target Cortex-M0 included; runtime/fibre-same-source-any-provider, the blocking host as a fibre.scheduler; and negative/fibre-turns-over-scheduler-only on every hosted target.

D464 — The spellings core/fibre changed from prototype 5's sketch

Amended by D1654. Its anonymous functions are declared functions passed by name; the spellings stand.

The tour said nothing. Prototype 5's core/fibre was the design record and said every spelling in it might change when the switch was written.

Chosen: four spellings and one representation, each because the sketch's would not compile or would not hold. task's entry is run: (self: ptr mut task_type) -> none: an inout self has no erased table (D146), and a provider is handed any task. The switch's, the providers' and the group's failure is mem.out_of_memory, where the sketch had stack_too_small | stack_misaligned: failure.reason must hold whatever admit fails with, which would make core/failure import core/fibre; a stack is aligned by stack_prepare and never misaligned; and caller-lent backing too small for its use is out of memory, as core/arena's and core/pool's is. prepare takes a fourth record, after, the one a fibre resumes when its task has ended: the sketch's "switches back to whoever started it" is not the round's next turn, and a provider is the one that knows. A round's wait when nobody can run is the concept stacks.idler, given to round_over, with stacks.spin returning at once; it is called after a whole round in which every unfinished entry yielded and nothing started or ended. And a group made over turns keeps its provider as any turns beside an unused any scheduler, because the one does not convert to the other.

The alternatives: inout self with a concrete provider type, which no any can carry; atoms of core/fibre's own in failure.reason, which changes a module every program imports for one that few do; the trampoline asking the provider where to go, which puts a provider entry in the first frame; and a function value as the idle hook, which captures nothing [1010] and so cannot reach an event Io's state. All were declined.

Pinned by runtime/fibre-turns-interleave, the round over its idler; runtime/fibre-join-first-failure, a task ending into the round; and runtime/library-shared-fibre, mem.out_of_memory for a backing too small.

D465 — Where a record's limit stands

Superseded by D471, D472 and D473. The prologue's check replaced the switch's, the limit moved into the frames a switch saves, and the record keeps no limit; the reasoning below is retained as history, and its fixture was reshaped by D471.

The tour said nothing. D447 has a fibre's record keep the lowest address its stack may reach and every switch check against it; D450's switch checks the stack pointer before it saves anything. D444 keeps each record at the base of its stack.

Chosen: prepare sets the limit 1 KiB above the stack's lowest byte, and refuses a stack smaller than 2 KiB. The check is made at a switch, inside the provider, after the provider's own calls on the way to it, and those took several hundred bytes below the task's frame at the higher optimization profiles; with the limit at the lowest byte, a task's overflow reached its own record, below the stack, before any switch read the limit from it, and the program ran on into a fault. With the room, a task whose calls go a little past the limit between two switches traps stack_exhausted at the next before it has written below its stack. One that goes further has written there already: the check is late, as D447 said, and the depth report it names is what bounds a stack.

The alternatives: the limit at the lowest byte, which the provider's own frames overran in the measurement; the record at the top of its stack, which keeps the limit readable but hands the overflow to the stack below and its live frames; and a room sized per target, which waits for D447's depth report to be measured from. All were declined.

Pinned by runtime/fibre-stack-past-limit-traps, a task taking a turn at every depth, trapped at the round's switch at every optimization profile.

D470 — What a fibre consumer's capacity on Cortex-M0 counts

The tour said nothing. The roadmap's stackful fibres ask for a consumer measured on the retained Cortex-M0 profile, 32 KiB of flash and 16 KiB of RAM with a 4 KiB main-stack reservation, with its fibre buffers identified and the reserved RAM counted without double counting, and left open what each figure is.

Chosen: flash is the highest end of the image's flash load, and static RAM the highest end of its RAM load, alignment and zero fill included; a fibre's backing that the program declares as module storage is static RAM, identified by its symbol's extent, and is counted there once. The reserved RAM is static RAM and the main-stack reservation. A fibre's backing is the stack a group cuts for it, its record at its base included; the peak simultaneous backing is the sum of the backings live at once, which for a group is every stack it cut from admission to join. A fibre's peak is the deepest byte written below its stack's top in a run of the consumer, read from paint laid before the group cuts the backing, and it fits when that peak and D461's thirty-six bytes lie within the stack above the record. The consumer fits the profile when its flash is at most 32 KiB, its reserved RAM at most 16 KiB, its main stack's painted peak within the reservation and every fibre fits. Paint is an observation of this consumer's run, not a bound on any stack (D447), and a stack's limit, its base and D472's margin, is a trap, not a measure of depth.

The alternatives: the backing counted again beside static RAM, which double counts it; a stack's limit as its measure, which says where the late check stands and nothing about what the fibre used; and the lane's stack-pointer observer, which samples the main stack's reservation and refuses a pointer outside it, as a fibre's on the process stack is. All were declined.

Pinned by the capacity control of environments/cortex-m/evidence.py, which builds environments/cortex-m/probes/fibre-capacity.ldn at every optimization profile, runs it to its end in the Cortex-M0 emulator, writes the report and fails when the consumer no longer fits.

D473 — What core/fibre/stacks keeps of a stack's limit

The tour said nothing. D465 had prepare set a record's limit 1 KiB above its stack's lowest byte and refuse a stack smaller than 2 KiB, because the limit was checked only at a switch, after the provider's own calls on the way to it. D471 checks every frame and D472 keeps the limit in the frames a switch saves; this decision supersedes D465.

Chosen: fibre.space keeps where its stack pointer was saved and its status, and no limit; stacks.switch names neither record's limit; and stacks.prepare keeps no room of its own. It fails mem.out_of_memory for a stack smaller than 128 words beside its starting, which holds the first frame and the margin of every target of that word size, 976 bytes at most of 1,024 on the 64-bit targets and 432 of 512 on Cortex-M0, so a stack too small is out of memory, as D464 has it, rather than the builtin's trap. How deep a task goes is the stack's business: a deeper one traps at the routine that overflows. runtime/fibre-same-source-any-provider keeps the 8 KiB stacks its task needs on RV64, where it takes 4.1 to 4.4 KiB at every profile: 4 KiB stacks would now trap stack_exhausted there instead of writing below the stack. For the same reason the 4 KiB stacks of runtime/fibre-turns-interleave and runtime/fibre-join-first-failure became 8 and 5 KiB: their tasks went deeper than 4 KiB less the margin on RV64, into D465's room, which the late check let them use. On the retained Cortex-M0 profile the measured consumer (D470) no longer needs D465's 2 KiB: its two fibres fit on backings of 1,472 bytes where they had 2,176, painted to at most 904 at every profile, and its reserved RAM fell from 8,576 to 7,168 bytes; the checks cost it 744 bytes of flash at none and 864 at size.

The alternatives: the room and the late check kept beside the prologue's, which charges every stack 1 KiB for a check that no longer finds anything first; a least stack exactly the target's, which a library cannot ask the compiler for; and no least at all, which turns a backing too small into a trap where D464 has a failure. All were declined.

Pinned by runtime/fibre-stack-past-limit-traps, a task trapped at the routine that overflows; runtime/fibre-same-source-any-provider on every hosted target; and the capacity control of environments/cortex-m/evidence.py (D470).

D476 — The hosted services split into the system and two waiting providers

The tour said at [1660] that a hosted root imports hosted/system, and D444 made the blocking host a provider of fibre.scheduler. Every hosted program therefore compiled the blocking provider's network, scheduling and core/fibre, and a second, event-driven provider would have had to sit beside a module that already answered every waiting operation by blocking.

Chosen: three modules. hosted/system keeps the services that do not wait and are the same whoever waits: the arguments, the environment, opening and closing files, directories, running programs, entropy and the wall clock, and the last-error and last-signal cells. It is no longer a world, because reading and writing can wait. hosted/blocking is the provider whose waiting operations block the thread: reading and writing, the network, the monotonic clock's sleep, and fibre.scheduler, running each task to its end. hosted/events is the provider whose waiting operations switch fibres over the system's event mechanism. Each of the two is built over a hosted/system handle and supplies io.world and the concepts the system supplies, by handing it what does not wait. A program mints its root from the one it chooses, blocking.new() or events.over(...) (events.new until D1032); a program that never waits on anything may still use system.new() alone. Every hosted source and document moves from system.new() to blocking.new(). D479 amends this list: starting a program stays with the system, and reading its pipes and waiting for it are the waiting providers'.

The alternatives: hosted/events importing the blocking hosted/system and delegating to it, which compiles the blocking provider into every event program; keeping hosted/system the blocking provider and moving the shared services into a new hosted/process, which changes no program but leaves the blocking provider without a name that says so. Both were declined.

Pinned by runtime/hosted-system-alone, a program over hosted/system alone that takes its arguments, environment, files, a directory, entropy and the wall clock from one handle, and negative/hosted-system-is-no-world, which refuses writing through that handle and erasing it as a world; runtime/first-program and every other hosted fixture mint blocking.new().

D477 — Only a provider that takes turns waits for signals

The tour said nothing. D449 makes a signal an event a provider reads with an entry that waits like a receive. Over a provider that runs each task to its end, a task waiting for a signal would hold the program before it served anything.

Chosen: core/io's signals concept is provided only by providers of fibre.turns. A program that waits for a signal asks for both, so over hosted/blocking it cannot be written and the process keeps the system's default disposition: SIGTERM ends it. Prototype 5's derived server takes its signal waiter only when it was given a provider of turns, and the choice is made where the providers are minted.

The alternatives: a blocking sigwait in every provider, which serves nothing over the blocking host; and a polling entry that never waits there, which gives one entry two meanings. Both were declined.

Pinned by negative/signals-provider-without-turns, a provider of fibre.scheduler alone refused as a provider of signal.signals; runtime/signals-fake-firmware and runtime/signals-fake-stop-server, signals waited for over a provider of turns (D482); and runtime/events-signal-stops-server, signalfd and kqueue under hosted/events (D488).

D478 — Which side of the split each hosted concept is on

The tour said nothing, and D476 named services rather than concepts. core/io's concepts do not divide where waiting does: world composes reader and writer with files and process, file_system refines files, programs reads and writes pipes, and time.clock is now and sleep together.

Chosen: hosted/system supplies files, process, environment, directories, programs, file_system, terminals, entropy and time.wall_clock. process is the standard streams' descriptors and the arguments, which do not wait; reading a stream does. file_system's read_at and write_at stay with it, because a regular file is always ready and no event mechanism waits on one. programs stays with it as D476 says, its pipes read and written and its children waited for by blocking the thread whatever provider is built over it. Entropy stays with it: getrandom waits only once, at boot, for a pool no event announces. D479 amends the placement of programs: the waiting providers supply it, and the system keeps only start, which they build on. hosted/blocking supplies reader, writer and so world, net.network, the monotonic time.clock, since now cannot be supplied without sleep, and fibre.scheduler, and supplies every concept of the system's by calling the system's own entry on its handle. Its handle is a struct holding the system's; there is one last-error cell, the system handle's, which hosted/system lets a provider built over it clear and fill with clear_errno and record_errno, and is_socket tells such a provider which of the system's files it writes by sending. The file encoding, descriptor_of, file_of and socket_of, stays the system's alone, so a program that converts a descriptor imports both modules.

The alternatives: hosted/system exposing its reads and writes as public routines for a provider to delegate to, which keeps a reader in the module that is no world; programs moving to hosted/blocking with reading, which contradicts D476's list; and hosted/blocking re-exporting the file encoding, which gives one conversion two names. All were declined. D479 later took the second, for the reason D476 gave the split: what waits belongs to the provider that decides how to wait.

Pinned by runtime/hosted-system-alone, which uses files, process, environment, directories, file_system, entropy and wall_clock on a hosted/system handle alone, negative/hosted-system-is-no-world, runtime/run-no-descriptor-leak and runtime/tree-copy, which convert a blocking provider's file with system.descriptor_of, and every hosted fixture's delegated calls through blocking.new().

D479 — Starting a child is the system's, and waiting on it is a waiting provider's

The tour said nothing, and D476 listed running programs among the system's services, which D478 kept there with its pipes read and written and its children waited for by blocking the thread. Under a provider that switches fibres, a fibre reading a child's output or waiting for it to end would then block the thread and every other fibre with it, while reading a socket in the same program switched. A provider that took a signal to read it as an event, D482's signalfd blocking it and kqueue ignoring it, would also pass that mask and that ignore to every program it ran, since an exec keeps both: a child of a server that blocks SIGTERM could not be stopped.

Chosen: io.programs keeps its one shape, and the providers that wait supply it, as they supply reading and writing: hosted/blocking and hosted/events, each in its programs.ldn. write_child, read_child and wait are the entries that wait; spawn and close_input do not. Starting a child stays in hosted/system, as the public routine system.start(handle, path, arguments, environment, streams), which makes the pipes and /dev/null, calls posix.spawn, maps its errno onto the concept's atoms in the handle's last-error cell, and answers an io.child whose pipes are files of the system's, which the provider reads, writes and closes as its own. system.process_of gives the child's posix.process_id for the provider to wait for, and system.ended turns the status it waited for into io.ending, keeping the signal in the handle's last-signal cell. hosted/system is no provider of io.programs. The blocking provider polls both output pipes and reads with its read, as before; the event provider sets the parent's ends non-blocking and waits on them as on any file, and waits for the end of a child through pidfd_open on Linux (D487), and kqueue's EVFILT_PROC with NOTE_EXIT, which platform/kqueue names as note_exit, on Darwin and FreeBSD, before reaping it with a wait that does not block. This amends D476's list of the system's services and D478's placement of programs.

posix.spawn starts every child with an empty signal mask, on Linux by rt_sigprocmask in the child between the copy and the exec, and on Darwin and FreeBSD by posix_spawnattr_setsigmask with POSIX_SPAWN_SETSIGMASK. Beside SIGPIPE, which D322 already gives back, it gives the child the default disposition of each signal named to posix.default_in_children(signal), which a provider calls for every signal it takes from its disposition; POSIX_SPAWN_SETSIGDEF carries them on Darwin and FreeBSD, and rt_sigaction in the Linux child. A signal nobody named keeps whatever disposition the parent gives it, so a shell's background job, started with SIGINT ignored, and a program under nohup pass their ignores on as POSIX programs do. default_in_children refuses with einval a number that is no signal, one past 64 or Darwin's 31, and SIGKILL and SIGSTOP, which a child could not be given.

The alternatives: splitting programs into a concept that starts a child, supplied by the system, and one that waits on it, supplied by the waiting providers, which makes every program that runs one name two concepts and lets a program over the system alone start children it can neither read nor reap; keeping programs with the system and blocking, which holds every fibre while one waits for a child; and resetting every signal a provider could take, D482's six, in every child, which would undo a background job's SIGINT ignore and nohup's SIGHUP. All were declined.

Pinned by negative/hosted-system-runs-no-programs, which refuses spawning through system.new(); runtime/run-signal-defaults on every hosted target, a parent that blocks SIGTERM and ignores SIGUSR1, named to default_in_children, and SIGUSR2, not named, whose children are ended by SIGTERM and SIGUSR1 and survive SIGUSR2, and the einval oracles; the ABI fixture abi/libc-socket-facts, which holds POSIX_SPAWN_SETSIGMASK to the Darwin and FreeBSD headers; and runtime/run-shell, runtime/run-streams, runtime/run-large-output, runtime/run-signalled and the other programs fixtures, unchanged, over blocking.new().

D480 — The event loop sleeps in its wait, and needs no descriptor to wake it

The tour said nothing. D449 lets a fibre wait for a descriptor, a signal or a time, and the provider that runs fibres waits for all three in one call to the system's event mechanism. Linux offers a timerfd, a descriptor that becomes readable when a time passes, and an eventfd, one a program writes to wake a loop waiting elsewhere; kqueue offers a timer filter and, on each system under its own number, a user filter for waking.

Chosen: the loop's sleep is the wait's own time limit: epoll_pwait's milliseconds, a part of one counting as a whole one, and kevent's timespec. A fibre's deadline is kept by the provider and checked against the monotonic clock when the wait returns, so a limit rounded up wakes the loop late by less than a millisecond and never early. Nothing outside the loop's own thread can make it ready while there is one thread and no handler runs Landin code (D449), so there is no waking descriptor. platform/linux therefore wraps epoll_create1, epoll_ctl, epoll_pwait, signalfd4 and rt_sigprocmask and neither eventfd2 nor the timerfd calls, and platform/kqueue names the timer filter, which a program may use, and not the user filter. Their numbers stay in platform/linux/numbers for a program that wants them.

The alternatives: a timerfd or a timer event per sleeping fibre, which costs a descriptor or a change for each sleep where one limit serves them all; epoll_pwait2, whose nanosecond limit needs Linux 5.11 for a precision the provider's own clock check already gives; and an eventfd or a user event now, which only a second thread would write. All were declined; a thread that wakes the loop brings its descriptor with it.

Pinned by runtime/linux-epoll-signalfd, which waits with no limit, a zero limit and a limit, and runtime/kqueue-events, which waits with a zero timespec and one of a second.

D481 — kqueue is a module named for the facility, declared on the two systems that have it

The tour said nothing. D346 gives each system's C library a file of its own under platform/libc, and platform/linux declares Linux's calls and nothing on Darwin and FreeBSD, so that platform/posix, which has no conditional import, can import it on every system it serves. kqueue is Darwin's and FreeBSD's alike, reached through their C libraries, with a record and a timer's units that differ between them.

Chosen: platform/kqueue, one file, kqueue.ldn, declaring kqueue, kevent, each system's struct kevent as event_record, the filters and flags the two share and each system's timer units under compiler.os, and nothing on Linux. Its scope is the hosted POSIX systems, Linux included, as platform/linux's is, so a provider written once imports both and selects its own routines by compiler.os; firmware refuses it by name. It imports platform/libc for timespec and leaves the errno to libc.errno_cell. The calls a signal waiter needs beside it, sigprocmask, kill and getpid, are every system's C library's and are declared in platform/libc.

The alternatives: declaring kqueue in platform/libc's darwin.ldn and freebsd.ldn, which writes every name twice and hides the facility among the C library's; a platform/bsd named for a family Darwin only partly belongs to, which invites unrelated BSD calls; and a module whose scope is Darwin and FreeBSD alone, which a provider written once for every POSIX system could not import on Linux. All were declined.

Pinned by runtime/kqueue-events on Darwin and FreeBSD, abi/event-facts, which holds each system's struct kevent, its numbers and platform/linux's epoll and signalfd records to the system's headers, and the driver's namespace case, which refuses platform/kqueue on Cortex-M0 and synthetic-32.

D482 — Signals are a module beneath core/io, and an arrival names its signal portably

The tour said nothing. D449 makes a signal an event read by an entry that waits like a receive, and D477 calls the concept core/io's and lets only a provider of fibre.turns supply it, which the concept can say only by naming fibre.turns as its parent. core/failure imports core/io, and core/fibre imports core/failure, so core/io importing core/fibre closes a cycle, which [1420] allows, and puts core/fibre, core/failure and what core/failure names atoms from into the closure of every program that imports core/io.

Chosen: the concept is signals in core/io/signal, a module beneath core/io as core/io/fake is, which imports core/fibre and core/io: signals: type = concept (provider: type) is fibre.turns. Its entries are watch, which takes one signal from the system's default disposition and delivers it as an event from then on; next_signal, which waits, taking turns, for the next arrival; and stop_watching, which gives every watched signal back to its default disposition and wakes every waiter, whose call fails io_failed, as D449 stops a fibre by failing what it waits on. Only next_signal switches. A signal is named by the atom set kind: interrupt, terminate, hangup, child, user1 and user2, the six a server cares about, and an arrival is an event of its kind and the system's own number. One signal at a time is watched, so both mechanisms implement it directly: signalfd adds it to the blocked mask and the descriptor's set, kqueue ignores it and adds an EVFILT_SIGNAL filter. Two arrivals before a read may be one event, as both systems keep them. The fake, fake.signals, is given the turns it waits on and passes fibre.turns' entries to them, so it is a provider of both; raise delivers a signal into it, one nobody watches is counted and dropped, and it numbers signals as Linux does on x86-64 and arm64.

Writing this found that the checker counted only a parent concept written as a bare name: a parent named through its module, fibre.turns here, io.reader beneath net.network, was skipped, so a conformance to the child was accepted without one to the parent. The concept body's parents now include a qualified reference, as its accessor's postcondition already said.

The alternatives: the concept in core/io over the import cycle, which charges every core/io program the fibre modules' closure; in core/fibre, which makes signals a scheduling concept and their atoms fibre's; a concept with no parent and a comment, which D477 would then leave unsaid in the types; a set of signals watched at once, which needs a set type for six atoms and gives nothing either mechanism needs; signals by their numbers only, which differ between Linux and the BSDs for child, user1 and user2; and a next_signal that fails timed_out after a quiet round in the fake, which a server waiting for SIGTERM while it serves would meet at once. All were declined.

Pinned by runtime/signals-fake-firmware, a fibre written against any signal.signals hearing two signals another fibre raised, a third dropped and a fourth folded into one event, and a waiter woken by stop_watching, on every target Cortex-M0 included; runtime/signals-fake-stop-server, the same stopping a server over the fake network; and negative/signals-provider-without-turns.

D483 — The fake network is given its turns by a second constructor

The tour said nothing. D449 makes the fake network yield where a call would wait when it is given a scheduler that takes turns, and answer timed_out only after a whole round in which nothing it waits for arrived, and behave as before without one. It did not say how the network is given the scheduler, nor what a round in which nothing arrived is to a call that cannot see the other fibres.

Chosen: network_over_turns(state, sockets, runs) makes the network over a fibre.turns it borrows for as long as it is used, beside network_over, which keeps a scheduler that is never called and waits for nothing. A call that would wait, accept, send, receive, receive_from and the reader and writer entries over them, yields and looks again. The network counts in moves each change something could wait for: a connection made or taken, bytes or a datagram delivered or taken, a shutdown and a close. A call that yielded and finds moves unchanged has seen a whole round of every other fibre in which nothing moved, and so nothing it waits for arrived, and fails timed_out; one that finds it changed looks again. A call whose socket was closed, or shut for receiving, while it waited fails io_failed when it wakes, as D449 asks of an Io that runs fibres. turns counts the turns its calls took.

The alternatives: an optional scheduler in network_space, which a test declares zeroed and so cannot hold an erased provider until it is filled; timing out after one turn whatever happened, which fails a call whose peer is itself waiting on a third fibre that answers in the same round; and counting changes only to the waiting socket, which needs every socket to know its waiters and gains nothing a deterministic test needs. All were declined. D493 adds that a fibre sleeping on a clock made beside the network is a move to come, so no call times out while one sleeps.

Pinned by runtime/network-fake-turns-exchange, with the server first two turns and with the client first one; and runtime/network-fake-turns-waits, network_over taking no turn, two fibres waiting on each other timing out after one quiet round, and woken waiters failing io_failed.

D485 — The event provider is made over its caller's round and loop, and a wait is kept on its fibre's stack

The tour said nothing, and D476 named the constructor events.new(...) and left its arguments open. D444 has a provider of turns run fibres on records the caller keeps, D464 gives the round of turns an idler for the wait when nobody can run, and the provider must allocate nothing.

Chosen: events.over(state, entries), events.new until D1032, fills an events.space the caller declares zeroed, the round's state and the event loop's, and returns a handle from state, entries, where entries is the round's table, one more than the fibres that may be unfinished at once. It fails mem.out_of_memory for a table of fewer than two and io_failed when the system makes no queue. The handle runs its fibres on core/fibre/stacks' round, whose idler is the loop, and passes the round's entries on through their evidence, so it is a fibre.turns. An operation that waits fills a record on its own fibre's stack, links it into the loop's list and takes turns until the loop answers it: the fibre does not return from the call before then, so the list never holds a record whose frame has gone, and the provider needs no table of waits for the caller to size. The hosted/system handle beneath was the process's, system.new(), as blocking.new()'s is, so last_errno read the process's cell, until D1372 gave the space cells of its own. The queue is closed on exec and stays open until the process ends; there is no call that closes it.

The alternatives: a table of waiting records the caller sizes, which is a second count to get right and a failure when it is full, for records whose lifetime is already the call's; the last-error cells in the space, over system.over, which a handle from the state cannot carry beside the round, since both are filled through inout from one state and the checker sees the second fill while the first handle views it, and which D1372 took once D1371 lent the two fields apart; a round of the provider's own beside stacks.round, which duplicates the one the library carries; and a call that closes the queue, which nothing that ends with the process needs and a program could then call while a fibre waits. All were declined.

Pinned by runtime/events-tcp-exchange, two fibres over one handle exchanging over a loopback connection with their steps interleaved; runtime/events-sleep-answers-now, prototype 5's two requests from one source answered b before a; runtime/events-stack-past-limit-traps, a task that waited in the loop trapping stack_exhausted (D471); and the driver's namespace case, which refuses hosted/events on Cortex-M0.

D1372 — The event provider's space holds its own last-error cells

The tour said nothing. D485 gave hosted/events the calling thread's last-error and last-signal cells, through system.new(), and declined cells in its space only because the check then held a state's fields together; D1363 then reached that handle through a routine, services, since a field holding it would have carried writable storage of the system's beside the caller's state (D222). D1371 lends the state's fields apart.

Chosen: events.space gains a field cells, a system.space, and events.over fills it with system.over(state.cells) before stacks.round_over(state.round, ...). The handle keeps that system handle as its field services, which the conformances that hand on what does not wait name after through (D1363), so the routine is gone. Every call through the handle records into the space's cells, which events.last_errno and events.last_signal read as before; a failure of the provider no longer shows in the calling thread's cell, which system.last_errno(system.new()) reads, and two providers in one thread keep their failures apart, as two system.over handles do. A caller declares the space zeroed as before and writes nothing new.

The alternative: keeping the thread's cell, now with the reason that the provider then shares it with every system.new() handle on its thread. Nothing in the library or the fixtures reads the provider's failures that way, and a provider whose state the caller declares is the kind system.over was made for. It was declined.

Pinned by the hosted/events runtime fixtures, which read events.last_errno and events.last_signal after the provider's own failures: runtime/events-child-wait, runtime/events-blocking-socket-write-refused, runtime/hosted-io-directory-as-file and runtime/thread-signal-watch-in-worker.

D486 — A wait is submitted and answered, and the loop sleeps only when every fibre waits

The tour said nothing. The roadmap asks that the event provider's operations be completion-shaped, so that a completion interface can later implement the same Io, while readiness stays in platform/posix's poll and the systems' own modules; D480 makes the loop's sleep its wait's time limit.

Chosen: a waiting record names a descriptor and a direction, a child (kqueue's), a signal or a deadline on the monotonic clock, and the loop answers it ready, expired or failed; the operation then makes its call again. Submitting arms the descriptor once, EPOLLONESHOT for the union of the directions every record on it waits for and kqueue's EV_ONESHOT per filter, and after a report the loop arms it again for the records still waiting. The round calls the loop when every fibre has taken a turn since anything last started or ended. The loop then waits without a limit, until the earliest deadline, or not at all when a fibre took a turn of its own through yield, which is runnable work; with no record waiting and no such turn it returns at once. Closing a file, a socket or a child's pipe through the provider answers every record on its descriptor failed and removes it from epoll before the descriptor closes; shutting a socket's side answers that side's records. The provider's sockets and a child's pipes are non-blocking; a file it did not make, a standard stream or a file opened by path, is polled with no limit first and read or written once ready, so a regular file, always ready, is read at once, and the program's terminal is never made non-blocking behind its shell. While such a file is blocking, a write to it is handed no more than a pipe reported ready takes without waiting, unless it is a regular file (D1045). A socket's limits are kept as the system's own time limits, which a non-blocking socket never waits on, and each wait reads them back, platform/posix's send_timeout beside receive_timeout; a limit the system does not give back, as QEMU's user emulation does not, is none. A connect has no limit.

The alternatives: level-triggered registrations, which report a descriptor whose waiter has gone on every wait until it is removed; one registration per waiting record, which epoll refuses for a descriptor watched twice; a table of limits per socket, which the provider has no storage for; setting every file the provider is handed non-blocking, which changes the open file the shell shares; and the loop sleeping whenever the round is quiet, which holds a fibre that only yields. All were declined.

Pinned by runtime/events-tcp-exchange; runtime/events-close-wakes-waiter, a receive woken io_failed by a close and by a shutdown; and runtime/events-child-wait, a child's two pipes waited on together.

D487 — A child's end is a pidfd on Linux and kqueue's process filter elsewhere

The tour said nothing. D479 lets the event provider wait for a child through pidfd_open or a signalfd for SIGCHLD on Linux and kqueue's EVFILT_PROC with note_exit on Darwin and FreeBSD, and reap it with a wait that no longer waits.

Chosen: on Linux the provider opens a pidfd for the child, waits for it to be readable as for any descriptor, closes it and reaps the child with posix.wait; a kernel without pidfd_open, before 5.3, has the reap wait the thread instead. On Darwin and FreeBSD it adds a one-shot EVFILT_PROC filter for note_exit, and a child the queue refuses with ESRCH has ended already and is reaped at once. spawn starts the child through the system handle and sets the parent's pipe ends non-blocking; read_child reads the output when it has anything, its end included, then the errors, and when neither is ready waits for both and goes on with whichever the loop answers first.

The alternatives: a signalfd for SIGCHLD, which takes a signal from its disposition for every child at once, shares its mask with the program's own watch and leaves the provider to find which child ended; and waitpid with WNOHANG after each round, which polls. Both were declined.

Pinned by runtime/events-child-wait, a shell child whose output, its errors and its end are waited for by one fibre while another ticks on the clock and then writes the child the line it waits for.

D1045 — A write to a blocking descriptor takes no more than a pipe reported ready takes whole

The tour said [1675] that a call that waits over hosted/events lets the other fibres run, and D486 had the provider poll a file it did not make and write to it once it was ready. A write to a descriptor that is still blocking, a standard stream, one system.file_of gave or a child's pipe the system would not make non-blocking, was handed everything left, and readiness promises room for less: a write larger than the room held the thread until the reader had taken it, so no other fibre ran, and a reader that was a fibre of the same thread never came.

Chosen: for a write of more than PIPE_BUF bytes, posix.pipe_atomic, 4096 on Linux and 512 on Darwin and FreeBSD, the provider reads the descriptor's mode and kind: a non-blocking one, whose write fails EAGAIN rather than wait, and a regular file, which never waits for a reader, are handed all of it, and any other is handed PIPE_BUF bytes a call once it is ready. A blocking write of no more than PIPE_BUF bytes to a pipe waits only until all of it fits, and a pipe reported ready has that room: Linux's poll and epoll report a pipe writable when one of its buffers is free, and a buffer is a page, never smaller than 4096 bytes; Darwin's and FreeBSD's poll and kqueue's write filter report it when at least PIPE_BUF bytes are free. No manual page promises that threshold: Linux's poll(2) says only that a write larger than the room still blocks, and kqueue(2) that the filter's data is the room left. The claim rests on the kernels' pipe code and on the regression fixture below, which every hosted target runs. A shorter write asks the system nothing more, and a longer one asks once, not per piece. Another writer, a thread or a process, can still fill the room between the report and the write; a terminal or a blocking socket the program hands the provider may report room for less than PIPE_BUF, and a write to one can still hold the thread until its other end reads. A child's pipe the system leaves blocking stays as it is rather than fail the spawn, since the cap covers it and the child has already started. One report wakes every fibre that waits on the descriptor, and the first to run can fill the room or take the input again, so a woken fibre asks the descriptor once more before its call and waits again when it is no longer ready; a read on a blocking descriptor is held to the same.

The alternatives: setting O_NONBLOCK on every descriptor the provider is handed, which changes the open file a shell or another process shares, as D486 declined; a helper thread for each blocking write, which the provider has no storage or thread for and which a program without threads could not run; refusing a blocking descriptor, which turns away standard output; and failing the spawn when a child's pipe cannot be made non-blocking, which leaves a started child to end and reap. All were declined.

Pinned by runtime/events-blocking-pipe-write, 256 KiB written in one io.write by one fibre to a pipe whose ends the program made and left blocking, read a thousand bytes at a time by another fibre of the same provider, which ends only if no write waits for its reader and compares the bytes read with those written; before this decision it never ended. runtime/events-blocking-pipe-two-writers has two fibres write 128 KiB each to one such pipe while a third reads it; before a woken fibre asked again, the second writer was handed room the first had taken, and the program never ended.

D1278 — The event provider refuses a blocking descriptor whose write could hold the thread

The tour said [1675] that a call that waits over hosted/events lets the other fibres run. D1045 capped a write to a blocking descriptor at PIPE_BUF once it was ready, which a pipe has room for, and said of the rest that a terminal or a blocking socket the program hands the provider may report room for less, so that a write to one could still hold the thread until its other end read; refusing such a descriptor was declined there because it turns standard output away.

Chosen: the refusal, for the descriptors the cap does not cover. Before each write the provider reads the descriptor's mode, and for a blocking one its kind. A non-blocking descriptor and a regular file are handed everything, and a blocking pipe at most PIPE_BUF bytes a call, as D1045 has them. Any other blocking descriptor, a terminal, a socket or a device, is refused before the system is asked: write and write_some fail io_failed, nothing is written, and the errno kept is EAGAIN, the one a call that would wait has, which events.last_errno reads. The program then makes the descriptor non-blocking with posix.set_non_blocking, after which the provider waits for it as for its own sockets, or writes it through hosted/blocking. The provider still sets no mode itself (D486). The mode is read at each write, since the provider keeps no table of descriptors and the program may change the mode between two: one fcntl a write, and one fstat more for a blocking descriptor. This reverses D1045's declined alternative for these descriptors: standard output and standard error that are a terminal are refused, and so is a blocking device such as /dev/null, whose kind promises nothing. A descriptor whose mode or kind the system will not give fails io_failed with that errno. Reads are as they were: a read of a ready descriptor returns what is there. Another writer filling a pipe between the report and the write remains possible, as D1045 says.

The alternatives: leaving the write, which holds every fibre of the thread on a reader that may be one of them; setting O_NONBLOCK for the write and clearing it after, which changes the open file a shell shares, if briefly, and loses the mode when the program is killed between the two; one byte a write to a terminal reported ready, which no manual promises room for either and which output processing can double; a failure atom of its own in writer's set, which every writer and every try io.write would carry for one provider's refusal; and admitting a device that is not a terminal, whose writes a driver may block as it likes. All were declined.

Pinned by runtime/events-blocking-socket-write-refused: a write and a write_some to a blocking socket pair's end, as a file and as a socket, fail io_failed keeping EAGAIN and send nothing, a megabyte among them that before this decision never returned; the same end made non-blocking takes its bytes, a blocking pipe still takes a short write, and hosted/blocking writes to the blocking socket. Darwin's and FreeBSD's arm was written by reading and is run by their lanes. No fixture gives the provider a terminal.

D488 — The event provider reads every watched signal through one descriptor, and stopping reads what came

The tour said nothing. D482 has watch take a signal from its default disposition, signalfd adding it to the blocked mask and kqueue ignoring it, and stop_watching give every watched signal back and wake every waiter.

Chosen: on Linux one signalfd reads every watched signal, its mask growing with each watch, and the loop watches it from the first. On Darwin and FreeBSD each watched signal is ignored and reported by an EVFILT_SIGNAL filter, except SIGCHLD, whose default already ignores it: an ignored SIGCHLD reaps every child before wait could. Each signal is named to posix.default_in_children before it is taken, so no child keeps the block or the ignore. The loop keeps each arrival in order of arrival, two of one signal before a read being one, until a fibre reads it with next_signal, which waits as a receive does. stop_watching first reads what arrived, so that unblocking a signal that came while it was watched does not deliver it with its default, then closes the signalfd, unblocks or restores every watched signal, forgets the arrivals and fails every waiter io_failed; a later next_signal fails at once until watch is called again.

The alternatives: a signalfd per signal, which costs a descriptor each for what one mask holds; ignoring SIGCHLD as every other signal, which breaks io.wait; and unblocking without reading first, which ends a server for the SIGTERM that asked it to stop. All were declined.

Pinned by runtime/events-signal-stops-server, SIGTERM sent to the process itself waking a fibre in next_signal while another waits in accept, the listener closed and the accept failed io_failed, and a waiter for SIGHUP woken by stop_watching.

D489 — Prototype 5's derived server, and where it departs from the sketch

Amended by D2049. An any fibre.turns converts to any fibre.scheduler (D1949), so serve_until_terminated takes the provider twice, as fibre.turns and signal.signals, and runs its sessions on the turns; the lending three ways below is history.

The tour said at [1660] that a program's roots are minted at its entry and lent down, and at [1675] that a group's tasks run one at a time or take turns as the provider says. Prototype 5 sketched a server whose main minted one provider and lent it as any capabilities, a session that passed an erased network to the line reader and an erased clock to a generic answer, and a stopping fibre that shut "the listener and both connections", over a provider of turns only. D477 said the server takes its signal waiter only when it was given a provider of turns, with the choice made where the providers are minted.

Chosen: examples/derived_server has the sketch's four modules. Its app reads --io=blocking or --io=events and --port=N through a hosted/system handle, and its two minting routines are the only code that knows which provider it got. Over the blocking provider it calls server.serve, which announces the address and serves with no signal waiter, so SIGTERM ends the process by its default disposition. Over a provider of turns and signals it calls server.serve_until_terminated, which watches SIGTERM, announces, and runs a fibre that waits for the signal, then shuts both directions of every connection being served and closes the listener; the accept and every receive fail io_failed (D449), and the server ends cleanly, with the count of requests it answered, only when the waiter stopped it. Such a provider is lent three ways, as fibre.turns, signal.signals and fibre.scheduler, since the three do not convert (D464). An any C is a provider of C and of the concepts C refines (D492), so the erased network goes to net's routines, io.lines_over and io.buffered_over, and the erased clock to protocol.answer, generic over its clock, as the sketch wrote them, with no adapter. The protocol separates words by one space, takes a tag of at least one byte and no space, and refuses a wait over a minute; every other line, one too long for the session's buffer among them, is answered malformed.

The alternatives: asking the provider at run time whether it delivers signals, which an any cannot answer and which D477 put at the mint site; one serving routine taking a waiter that may be absent, which an erased capability has no empty value for; closing only the listener, which leaves a session waiting on an idle connection and its group's join with it; and failing a session on a line too long, which drops a connection for one line. All were declined.

Pinned by runtime/derived-server-two-process, the server in a process of its own over the blocking provider, ended by SIGTERM's default disposition, and over the event provider, stopped cleanly by its signal waiter; and runtime/derived-server-fake-turns, serve_until_terminated and the client over the fake network and signals on a round of turns, b answered before a and the server stopped cleanly. Prototype 5's V1, V3 and V7 record the pressure.

D490 — Prototype 5's two-process evidence observes the order without turns

The tour said nothing. The second Io's exit evidence is the derived server running over both Io implementations, and the maintainer chose evidence in two processes: the server started as a child, a client in another process, the answers' order checked and the server stopped by SIGTERM. The prototype's own client, ask_both, needs turns to send NOW b while a waits, so over the blocking provider it cannot be written (D444), and a runtime fixture builds one program.

Chosen: the fixture's program is both parts. Run without arguments it is the harness: it starts itself again through io.programs, by posix.program_name(), with serve, the provider's --io= and --port=0, and the child calls the same app.entry as the example's main. The harness reads the child's first output line for the address, sends WAIT 1000 a on one connection and NOW b on another, and reads the second with a receive limit of 500 milliseconds: an answer within it came before a, which the server sends no sooner than 1000 milliseconds after it was asked, and none means a came first. It needs no turns, so it runs over the blocking provider on every hosted target. It sends SIGTERM, kill on Darwin and FreeBSD and the system call on Linux, reads the rest of the child's output and waits for it: over the blocking provider the child must have been ended by the signal and written nothing more. The same exchange then runs with --io=events, over hosted/events, and requires b first, stopped after 2 requests as the child's last line and status 0: the server's signal waiter, not the signal's default, ended it. The server's source is the same in both children; only app's minting routine differs. The QEMU cross lanes, which cannot start the program's own child without a binfmt_misc handler, list the fixture in compiler/tests/cross-lanes.json, and the gate's RV64 lane registers one (D1037).

The alternatives: the prototype's ask_both as the client, which cannot run over the blocking provider and so leaves that half without a client until the event provider exists; a client in a third process, which needs a second program the fixture format cannot build; a script outside the test program, which no FreeBSD, Darwin or RV64 lane runs; and a shorter limit against the prototype's 200 milliseconds, which an emulated FreeBSD guest could miss. All were declined.

Pinned by runtime/derived-server-two-process on every hosted target, both halves.

D493 — A sleep on a clock beside the fake network is a move to come

The tour said nothing. D483 fails a call on the fake network over turns timed_out after a whole round in which nothing in the network moved. A fibre sleeping on a clock that takes turns is not quiet: when it wakes it may connect or send, and a server's accept or a client's receive waiting through its sleep timed out under D483, so prototype 5's derived server and client tried a timed-out call again, which over the hosted providers, with no limit set, never happens.

Chosen: clock_over_beside(state, start, wall, network), named clock_beside until D1032, makes core/io/fake's manual clock beside a network, and over a network that takes turns its sleep takes the network's turns. While it sleeps the network counts it in sleepers, and a call that waited a round finding moves unchanged fails timed_out only while sleepers is zero. The clock moves only after a whole round in which nothing in the network moved, when every other fibre waited: the sleeper that saw the round advances it by a millisecond, or by what is left of its sleep when that is less, and counts the advance in moves, so a second sleeper in the same round does not advance it again and sleepers wake in the order of their deadlines, to the millisecond. Beside a network that takes no turns, and from clock_over, the clock is as before: sleep advances it at once. The only new surface is the constructor and the sleepers count.

The alternatives: a constructor of the network taking the clock, which changes network_over_turns for every test that has no clock; counting a sleeper's every turn as a move, which a waiter that looked before the sleeper's turn still sees as a quiet round; a count of sleepers kept by the round of turns, which would put a fake's question in fibre.turns, a concept every provider implements; the network itself a clock, which mixes two fakes a test may want apart; and advancing the clock a millisecond for each turn the sleeper takes, as the derived server's fixture had its own clock do, which makes time pass while other fibres still have work. All were declined.

Pinned by runtime/network-fake-turns-sleeper, the main fibre waiting in accept while one client fibre sleeps 100 milliseconds and another 50 before connecting: both accepted, the second first, at 50 and 100 milliseconds on the clock, and a receive with nobody sleeping timing out after one quiet round; and runtime/derived-server-fake-turns, the derived server and client, which no longer try a timed-out call again, over the fake network and a clock beside it.

D1034 — Prototype 5's firmware counterpart, and where it departs from the sketch

The tour said at [1675] that a group's tasks take turns or run one at a time as the provider says, and at [1660] that a UART is a writer. Prototype 5 sketched a Cortex-M0 counterpart with firmware/tick, firmware/board and firmware/app: a round of fixed turns written in the application, a taker that waited on prototype 1's uart.take_events(), a transmit side uart.tx that prototype 1 never wrote, an answerer that dropped a line it could not parse, and stacks of 640 bytes. D444 since put the round in the library and D448 said what the counterpart answers.

Chosen: compiler/tests/counterpart has the sketch's three modules, firmware/serial and firmware/trace, and shares the hosted server's app/protocol unchanged and prototype 1's derived receive driver. The board is one handle providing fibre.scheduler, fibre.turns and time.clock: its turns are core/fibre/stacks' round, held as any fibre.turns, with the application's idler waiting for an interrupt, and its sleep yields until the tick count, widened to 64 bits, has moved by the span's whole ticks and one more, so it never returns early. SysTick counts a millisecond a tick through atomic.sole_add (D449). The taker reads whatever has arrived at each turn through uart.read and yields when nothing has, since prototype 1's DMA notifies only at the half and the end of its ring. firmware/serial is the transmit side, an io.writer over the UART's data register, in a module of its own so prototype 1's derivative is unchanged. A line that is no request, or one longer than the queue's 64 bytes, is answered malformed through protocol.refuse, as the hosted session answers it; a line arriving with four waiting is refused busy; every line is numbered as it arrives. Each fibre's stack is 2,048 bytes.

The alternatives: a round written again in the application, which V8's answer made the library's; waiting on DMA notifications, which a short line never raises without a timer prototype 5 does not have; the transmit side added to prototype 1's driver, which changes that derivation's image for a routine it never calls; dropping a malformed line silently, which leaves the line unanswered and a client waiting; and the sketch's 640-byte stacks, which the answerer's measured 1,568 bytes at none would overrun into stack_exhausted (D471). All were declined.

Pinned by the counterpart lane of environments/cortex-m/run.py, environments/cortex-m/counterpart.py, at every profile; its map is compiler/tests/counterpart/DERIVATION.md. Prototype 5's V1, V4, V8, V9, V10, V11, V13 and V15 record the pressure.

D1035 — The counterpart's trace, and what its oracle requires

The tour said nothing. D448 says that on one core an operation in flight is a request whose answering has begun and not ended, and that a trace of the derived firmware shows answers in request order, none begun before the previous one ended. It left open what the trace records and how a run fails.

Chosen: the firmware records, in firmware/trace, each line's arrival as received or refused, numbered in arrival order, and each request's started when it leaves the queue and finished when its answer is flushed, each with the tick it happened at; a trace that would overflow is marked lost. The lane feeds WAIT 200 a, then NOW b once a has begun, so the request for two in flight is presented as the hosted client presents it, and in two more scenarios a full queue and lines that are no request. The oracle, judge in environments/cortex-m/counterpart.py, derives each line's answer from the protocol's rules written again in Python and fails a run on a missing answer; an answer begun while another was being answered, or out of arrival order; a wait answered in fewer ticks than it asked; busy with room in the queue, or a fifth request queued; a byte the device did not take; a lost trace; a second request that did not arrive while the first was being answered; and a trap, a halt or a timeout. Four controls build the same source with one mutation each, two answerers, a dropped answer, a take past the queue and a SysTick never started, and each must fail for its own reason. A tick is a millisecond of the emulator's clock, which under the harness's instruction counting reaches the next tick across each stop at an access to the synthetic device, so the ticks order events and bound waits from below and are no measure of the firmware's own time.

The alternatives: an oracle reading only what the device wrote, which cannot tell an answer begun early from one that merely ended in order; the firmware judging itself and reporting a status, which makes the oracle the program under test; one fixed sequence of answers per scenario, which holds the device to one timing rather than to the rule; and the clock measured by the host, which a stopped emulator does not keep. All were declined.

Pinned by the counterpart lane's three scenarios at every profile and its four controls, and CounterpartOracle in environments/cortex-m/test.py, which gives judge a good trace and each failure it names.

D1036 — The counterpart runs on a description of the micro:bit's own chip

The tour said at [1990] that a firmware program that imports no description is given the constrained reference, 32 KiB of flash and 16 KiB of RAM. Deriving prototype 5's counterpart found that it takes about 56 KB of flash at size and 66 KB at none, all of it code the program reaches once the linker has collected the rest: the shared protocol, the buffered writer, prototype 1's DMA driver and the fibres, as the Cortex-M0 backend emits them today. Its RAM, about 5 KiB of static storage with the 4 KiB main stack, is within the reference's.

Chosen: the lane compiles the counterpart with environments/cortex-m/lanes/lane-microbit.ldn, which imports a lane description of QEMU's micro:bit, the nRF51822 the Cortex-M0 lanes run on: 256 KiB of flash at zero, and the reference's 16 KiB of RAM with its 4 KiB stack at 0x2000_0000. descriptions.json records it as it records the other lane descriptions, and the lane holds every image to it. Each run reports its flash and static RAM. That the counterpart misses the reference's flash is recorded in the register for the optimization phase to answer. The maintainer chose this.

The alternatives: a smaller counterpart, with a parser and a polled UART of its own, which gives up the protocol the sketch shares with the server and prototype 1's driver; holding the item until code generation shrinks the image, which holds the concurrency phase's gate with it; and linking against an emulator's map larger than the chip, as the AN500's 4 MiB, which no Cortex-M0 has. All were declined.

Pinned by the counterpart lane, whose every image is linked to the micro:bit description and refused when its derived profile differs from descriptions.json's record.

D1037 — RV64's emulated lane registers a binfmt_misc handler

The tour said nothing. D490 runs runtime/derived-server-two-process by starting the program again by its own name, which QEMU's user emulation runs only through a binfmt_misc handler, and compiler/tests/cross-lanes.json lists it, with the other fixtures that start themselves, as an expected failure under qemu-aarch64 and qemu-riscv64 where none is registered. With RV64's physical runners suspended, the gate's rv64-qemu lane was the only one running RV64, and it had none, so no gate job showed either half of the derived server on RV64.

Chosen: the rv64-qemu job registers the pinned qemu-riscv64 as the riscv64 binfmt_misc handler, under Debian's name for it, which the test program looks for, with the flag that opens the interpreter at registration. The rows that need a handler then do not apply there, as cross-lanes.json's rule already says, and the fixtures run. A host with no handler keeps the rows. The maintainer chose this.

The alternatives: leaving RV64 without the evidence until its physical runners return, which leaves the concurrency phase's gate unclaimed; and a fixture that starts its child through the emulator explicitly, which tests a launch no RV64 Linux makes. Both were declined.

Pinned by the rv64-qemu lane's shards, which run runtime/derived-server-two-process, runtime/run-no-descriptor-leak and runtime/thread-spawn-leaks-no-descriptor under the handler. The two runtime/environment-variables fixtures keep their rows wherever a handler is registered, since the emulator passes the child one entry for each name in its environment and they give one name twice, and the libc one's child, given the environment the fixture builds, has no QEMU_LD_PREFIX to find its dynamic loader by.

D494 — A program starts threads as a group it joins

The tour said nothing of threads. D227 makes a thread a CPU execution context and creation and join its happens-before edges; D444 found that a fibre outliving the routine that starts it is a thread and needs a thread's bookkeeping, and D446 that threads are no provider of the fibre concepts.

Chosen: hosted/thread starts threads as core/fibre's application layer starts fibres. A group is made over a hosted/system handle, a backing the caller lends and a count; admit copies a task's state onto a free stack and starts a thread that calls an ordinary routine with that copy, waiting for a stack to come free when none is; the group keeps the first failure in a ledger the threads share through the atomic wrapper, and join fails with it once every admitted thread has ended. A task's error set is failure.reason, as D444's is, and a task with atoms of its own maps them into it before returning. With the fibre group and the thread group both carrying their caller's failures so, that mapping is the way a generic facility carries a caller's error set, rather than a stopgap until error sets become generic parameters. D445's escaping into and the defer that joins are as for fibres. A successful admit synchronizes with the new thread's first action and a thread's end with the return of the join that waits for it, as D227 has it; a failed start establishes neither edge and starts nothing. A static Linux program starts a thread with clone and waits for its end on the word the kernel clears; under --link=libc, on Darwin and on FreeBSD the C library starts it with pthread_create and waits with pthread_join. A thread begins with every signal blocked, so the signals a provider reads through a signalfd or kqueue reach that provider and no worker's default disposition. join blocks the calling thread whatever provider it runs under, so a fibre that joins holds its round. A worker may run a round of fibres of its own; a fibre never moves between threads.

The alternatives: a start that returns a handle the caller joins, which lets a thread outlive the routine that started it and brings back the pool D444 declined for fibres; threads as one more fibre provider, which D446 declined; and a group generic over its tasks' error set, which would make an error set a generic parameter, as D444 declined for fibres. All three were declined.

Pinned by runtime/thread-creation-and-join-order-writes and runtime/thread-creation-and-join-order-writes-libc, two threads reading ordinary data written before admit and writing results read after join, on every hosted target and under --link=libc on Linux; runtime/thread-join-first-failure; runtime/thread-runs-fibres, a round of fibres in a thread; runtime/thread-start-refused; and runtime/thread-signal-reaches-events.

D495 — A thread runs on a stack its caller lends, and checks it

The tour said nothing. D444 has the caller lend every fibre's backing, and D471 checks every routine's frame in a program that prepares a stack.

Chosen: as a fibre group does, a thread group cuts its caller's backing into equal stacks and prepares each with compiler.stack_prepare, so a program that starts a thread checks every routine against the running thread's own limit (D497) and a worker past its stack traps stack_exhausted. Where the C library starts the thread, its own start frames and, under glibc, the thread's block are placed in the same backing. A stack smaller than the system's minimum is refused when the group is made; the item that implements the group records the figures. Starting a thread allocates nothing and maps no guard page.

The alternatives: the system's stacks with a guard page, which allocate behind the caller's back and turn an overflow into a signal rather than stack_exhausted. It was declined.

Pinned by runtime/thread-stack-past-limit-traps, a thread's task trapping stack_exhausted at the site of the routine whose frame would not fit, and the figures of D519.

D500 — core/atomic wraps one scalar, and its operations carry their orderings

The tour said at [1620] that there is no atomic wrapper because what a portable one should offer on a core without read-modify-write is a library question. D227's orderings are compiler atoms usable only in a builtin's position, so a wrapper cannot take one as an argument; D449 requires the single-writer update as an operation of its own on every target and a refusal of a shared read-modify-write where the target has none, naming the critical section.

Chosen: core/atomic gives a cell over one u8, u16, u32 or u64. A load acquires and a store releases; exchange, add and compare-exchange are acq_rel, a failed comparison acquiring; a relaxed family loads, stores and adds for counters and caches; seq_cst stays with the builtins. The single-writer update, a relaxed load and a release store, is an operation of its own, correct while one context writes the cell, on every target. On Cortex-M0 exchange, add and compare-exchange are refused at the caller's use, the refusal naming the single-writer update and platform/cortex_m's critical section, as are the eight-byte cell's operations there.

The alternatives: seq_cst for every operation, which pays a full fence on every store; and every legal ordering in an entry's name, about fifteen entries. Both were declined.

Pinned by runtime/library-shared-atomic on every target, Cortex-M0 included, runtime/atomic-read-modify-write on every hosted target, runtime/atomic-tick-firmware, prototype 5's tick on every target, the Cortex-M fibre-capacity probe, whose single writer is SysTick's handler, and the refusals D510 lists.

D501 — A lock waits on its word through the system

The tour said nothing of locks; D446 says that state shared with a thread is the atomic wrapper's or a lock's.

Chosen: hosted/thread gives a lock over one word of the atomic wrapper, which an uncontended lock takes and gives with one read-modify-write each, and which waits and wakes through the system's own wait on an address: the futex on Linux, _umtx_op on FreeBSD and os_sync_wait_on_address on Darwin, which platform/posix names on each. Waiting blocks the thread, so a fibre that holds a lock across a switch can hold another fibre of its round. On Cortex-M0 the critical section is the lock.

The alternatives: spinning and yielding, which burns a core while the holder is descheduled; pthread_mutex, which a static Linux program does not have; and Darwin's os_unfair_lock beside a futex elsewhere, which keeps per-system code above platform/posix. All were declined.

Pinned by runtime/posix-wait-on-address and runtime/thread-lock-one-thread on every hosted target, on one thread (D512, D513); a lock contended between threads is the threads fixtures'.

D502 — The heap is shared, and the vDSO cache is relaxed

The tour said nothing. D282 and D300 make one single-threaded heap the heap of every hosted system, and D317 keeps the vDSO's clock address in a plain word because a relaxed atomic cost about 50 ns a read.

Chosen: hosted/heap's size classes are behind one lock (D501). A program that has started no thread skips it: the thread facility sets a relaxed flag before its first start, and the creation edge orders everything the program did before. A mapping of its own needs no lock. The vDSO cache is a relaxed atomic word, whose value every thread computes alike, and which D499 makes a plain move. Caches per thread are the optimization phase's.

The alternatives: the lock in every program, which costs a read-modify-write per allocation and free in a program with one thread; and a cache per thread now, more code than one lock before a consumer contends. Both were declined.

Pinned by runtime/hosted-heap-after-thread-start with the flag set, runtime/hosted-heap-provider and runtime/linux-heap-size-classes with it clear, and runtime/linux-vdso and runtime/clock-system-libc over the relaxed cache; D514 records what the lock costs.

D503 — The process's own state beside threads

The tour said nothing. D207 and D288 keep the last error by ownership until thread-local storage exists; D480 needs no waking descriptor while there is one thread; and Darwin's pipe and socket set close-on-exec after creating a descriptor.

Chosen: hosted/system's last-error and last-signal cells are link(thread) storage (D496), and a handle from system.new() records into the cell of the thread making the call, not the one that made the handle, so handles shared across threads keep D207's thread-local meaning; system.over still records into a cell of its caller's own. The argument and environment roots are written before main and only read after, which the creation edge orders. child_defaults is the atomic wrapper's. The working directory and the environment are still never changed. D232's panic latch stays the process's. D480 is unchanged: a thread that wakes a loop brings its descriptor. Darwin's spawn already closes every descriptor it does not give the child, so a pipe made beside it in another thread leaks nothing into a program Landin starts; what remains is a C library's own exec.

The alternatives: a last error shared by every thread, which D207 declined. It was declined again.

Pinned by runtime/thread-spawn-leaks-no-descriptor for the spawn: four pipes another thread made with no close-on-exec flag, and pipes it makes meanwhile, reach none of eight children on any hosted target, each a copy of the program that asks poll about the eight ends; and abi/system-new-records-per-thread for the cells (D509).

D509 — A handle from system.new() names the calling thread, not a cell

The tour said nothing. D503 has a system.new() handle record into the cell of the thread making the call rather than of the thread that made the handle.

Chosen: hosted/system's handle holds, for each of its two cells, D189's one-atom pointer union of calling_thread and the caller's cell. new stores the atom, and every record and read through the handle matches it, reaching the link(thread) cells thread_errno and thread_signal of whichever thread runs; over stores the caller's own cells, as before. The handle stays two words, and copies share what they were made with.

The alternatives: the creating thread's instance's address in the handle, which is D503's very race and outlives that thread; and one link(thread) handle per thread instead of cells, which leaves a handle passed between threads naming another thread's. Both were declined.

Pinned by abi/system-new-records-per-thread, two C threads failing through one shared blocking.new() handle and each reading its own errno, while the thread that made it reads zero, on every hosted target; and abi/r440-errno-thread-local, unchanged.

D510 — Cortex-M0's missing atomics are refused at the caller's use

The tour said at [1620] that Cortex-M0 has no read-modify-write; D227 refuses the builtins there with L0344 inside whatever body calls them, and D500 requires the wrapper's refusal at the caller's use, naming the single-writer update and platform/cortex_m's critical section.

Chosen: core/atomic gives each of u8, u16, u32 and u64 a conformance to its concept scalar and to exchangeable, which refines it, only where the target carries those accesses: under fixed if compiler.arch <> cortex_m0 for u64 and for every exchangeable, which D691 extends to RV32 and its levels. A cell's type is constrained by scalar, and its exchange, add, relaxed add and compare-exchange by exchangeable, so on Cortex-M0 the missing conformance is found where the program writes the cell's type or calls the operation, not in the library's bodies, which the target never checks. The checker says such a missing conformance of one of core/atomic's concepts for one of the four scalars as the target's refusal, L0344, at that use: when the target has no atomic access of the scalar's width, that it has no cell of it, naming a cell of four bytes or fewer and the critical section; when it has the accesses but no read-modify-write, that a cell has no exchange, add or compare-exchange there, naming atomic.sole_add and the critical section. Which refusal it is comes from the target's own admission of the builtins (D227), at the build's level since D690, not from a list of targets. Any other type is L0318 at its use, its note saying a cell holds a u8, u16, u32 or u64. The concept is recognized by the module that declares it, as [0610]'s core/text.position is.

The alternatives: declaring the operations only off Cortex-M0, which leaves an ordinary unresolved name that says nothing of what to use instead; a body that traps on Cortex-M0, which turns a static refusal into a runtime one; letting the builtin's L0344 stand in the library's body, which names a line the caller never wrote; and a general language form for a declaration a target refuses with a message of the library's own, more mechanism than one module needs. All were declined.

Pinned by negative/atomic-read-modify-write-cortex-m0, four read-modify-writes refused beside an accepted sole_add; negative/atomic-eight-byte-cell-cortex-m0, a module and a local u64 cell refused once each; negative/atomic-cell-holds-unsigned-scalars, a signed, a bool and a usize cell refused on Linux x86-64; and the Cortex-M corpus's refusal of runtime/atomic-read-modify-write with L0344 at every use.

D690 — RV32's read-modify-writes are its level's, the one checking rule a level decides

The tour said at [1620] that a core without read-modify-write has none, and D227 refuses exchange, add and compare-exchange with L0344 where the target has none. D255 kept every type check independent of the level, so a target's admission of the builtins could not differ between two of its levels; RV32's two, rv32imc and rv32imac (D660), differ in exactly the A extension that has them.

Chosen: the admission of D227's exchange, add and compare-exchange is the one checking rule a level decides. RV32 admits them at a level holding a and refuses them with L0344 below it; one-, two- and four-byte loads, stores and fences are admitted at every RV32 level, and every eight-byte atomic access is refused at every RV32 level, a fact of the target. On every other target the level changes no admission: Cortex-M0 refuses the read-modify-writes at each of its levels, since no Thumb-2 level's exclusives are lowered yet, and the hosted targets admit them at each. The checker reads the build's level, which refine check, refine compile and every other command take as --level and refine lsp as its level option, so an editor shows the refusal the build makes. The verified IR is held to what some level of its target admits, not to the build's level, so the target-neutral IR still depends on no level; a read-modify-write that reaches RV32's backend at rv32imc has passed a checker that refused it, and is the compiler's defect. A builtin refused at the build's level but admitted at another says so: "memory operation unavailable at rv32imc; a build at rv32imac admits it". The A extension's AMOs and LR/SC are four bytes wide; how the one- and two-byte read-modify-writes are lowered over the aligned word is the backend's.

The alternatives: a target per level, rv32imac beside rv32, which D255 declined for every family; admitting the read-modify-writes at rv32imc through interrupt masking or libatomic, which D227 forbids; refusing them at every RV32 level as Cortex-M0 does, which leaves the A extension of the RP2350's Hazard3 and the ESP32-C5 unused; and holding the IR verifier to the level too, which would thread a level through every optimization pass to recheck what the checker already refused. All were declined.

Pinned by targets/backends are stated per target, which holds RV32's admission at both levels, eight bytes at neither, and no Cortex-M level's read-modify-write; negative/atomic-builtin-rv32imc, a builtin add refused at rv32imc naming rv32imac beside an admitted load and store; the server sessions atomic-level-rv32imc and atomic-level-rv32imac, the same program refused and accepted through the server's level; and the fixtures D691 lists.

D691 — core/atomic on RV32 follows the target and the level

The tour said nothing; D510 conditions core/atomic's u64 and exchangeable conformances on compiler.arch <> cortex_m0 and names platform/cortex_m's critical section in the refusal.

Chosen: u64's conformances to scalar and exchangeable are under fixed if compiler.arch <> cortex_m0 and compiler.arch <> rv32, since no target with an eight-byte atomic lacks the read-modify-writes; u8, u16 and u32's conformances to exchangeable are under fixed if compiler.arch <> cortex_m0 and (compiler.arch <> rv32 or compiler.feature.a), which reads as D690's admission. D510's refusal at the caller's use is unchanged in kind, and what it names comes from the target and its level: the critical section of the target's platform module, platform/riscv's disable_interrupts to restore_interrupts on RV32 as platform/cortex_m's on Cortex-M0; and, when another level of the target admits the read-modify-write, the target and the build's level in the message, "rv32 at rv32imc has no atomic read-modify-write", and that level at the end of the note, after atomic.sole_add and the critical section.

The alternatives: a fixed fact naming whether the build has read-modify-write, compiler.atomic_rmw, which states one module's condition as a language fact beside compiler.feature.a, which already says it; the bodies on every target with the builtins' own refusal left standing inside the library, which D510 declined; and a note that lists RV32's levels, which would go stale beside the level model. All were declined.

Pinned by negative/atomic-read-modify-write-rv32imc, exchange, add, add_relaxed and compare_exchange refused at rv32imc beside an accepted sole_add, and a u64 cell refused once; negative/atomic-eight-byte-cell-rv32imac, a module and a local u64 cell refused once each at rv32imac beside a u32 cell's accepted read-modify-writes; positive/atomic-read-modify-write-rv32imac, every read-modify-write of a u8, u16 and u32 cell and a builtin add admitted at rv32imac; and the RV32 corpus's rows for runtime/atomic-read-modify-write.

D511 — The cell's operations, and the single writer's add

The tour said nothing; D500 fixes the orderings and leaves the single-writer update's name to the item that implements it.

Chosen: atomic.cell(T) is a struct of one field, opaque outside the module, which module storage starts zeroed and atomic.new(value) makes for a local or a field. Its operations take the cell's address: load and store, acquiring and releasing; load_relaxed, store_relaxed and add_relaxed; exchange, add and compare_exchange, which return what the cell held, an add wrapping at the scalar's width. The single-writer update is atomic.sole_add(cell, value): a relaxed load, a release store of the wrapping sum, and what the cell held, correct while one context alone writes the cell, and on every target. Each operation calls its concept's entry, which --specialize makes a direct call, so a cell operation costs a call more than the builtin until the inliner takes it. The name is provisional: sole_add was chosen to say in the operation's own name that it has one writer, which advance would not, and its shape, an add rather than an update taking a routine, because the consumer it serves is a count and a handler should not call through a function value.

The alternatives: writer_add, which reads as adding a writer; update(cell, change) taking a routine for any single-writer change, an indirect call in every interrupt handler for a form a load and a store already spell; and a cell passed inout, which a cell in shared storage reached through a pointer cannot be. All were declined.

Pinned by runtime/library-shared-atomic on every target, Cortex-M0 included, runtime/atomic-read-modify-write on every hosted target and runtime/atomic-tick-firmware, prototype 5's firmware/tick on every target; the Cortex-M fibre-capacity probe (D470) runs the same writer as SysTick's handler.

D512 — A wait on an address takes a u32 cell, and may return early

The tour said nothing; D501 names the systems' waits and puts them in platform/posix.

Chosen: posix.wait_on(word, expected) sleeps while the atomic.cell(u32) at word holds expected, and posix.wait_on_within(word, expected, span) does for at most a span on the monotonic clock, failing etimedout after it and einval for a span no time_value may be; posix.wake_one(word) and posix.wake_all(word) wake one or every waiter. The word is four bytes, the one width all three systems wait on, and private to the process. Either wait returns at once when the cell does not hold expected, and may return with nobody having woken it, so a waiter reads the cell again; neither has any other failure, since the systems' others are an address the cell's type rules out. On Linux they are platform/linux's futex_wait and futex_wake over FUTEX_WAIT_PRIVATE and FUTEX_WAKE_PRIVATE, the operations private to the module; on FreeBSD _umtx_op with UMTX_OP_WAIT_UINT_PRIVATE and UMTX_OP_WAKE_PRIVATE, a span given as a struct _umtx_time on CLOCK_MONOTONIC; on Darwin os_sync_wait_on_address, its _with_timeout form on OS_CLOCK_MACH_ABSOLUTE_TIME, and os_sync_wake_by_address_any and _all, which macOS 14.4 added.

The alternatives: a wait over any width, which only Darwin has; a wait that fails eintr and eagain, which every caller treats as the early return it already handles; and Darwin's older private __ulock_wait, which Apple does not support. All were declined.

Pinned by runtime/posix-wait-on-address on every hosted target: a mismatched wait returning at once, timed or not, a timed wait failing etimedout no sooner than its span, both refused spans, and wakes with nobody waiting. A wake that ends another thread's wait is the threads fixtures'.

D513 — The lock is three states over one cell, and the start is a flag beside it

The tour said nothing; D501 gives the lock one read-modify-write each way uncontended, and D502 a relaxed flag the thread facility sets.

Chosen: hosted/thread/lock is a module beneath hosted/thread, so that the heap can import it without importing the facility, which never imports the heap. A lock.lock is one u32 cell, free, taken, or taken with a thread waiting, as Drepper's "Futexes Are Tricky" gives it: lock.take takes a free lock with one compare-exchange, and otherwise marks it waited for with an exchange and waits on the cell until an exchange finds it free; lock.give frees it with one exchange and wakes one waiter when it was waited for; lock.take_if_free never waits. A zeroed lock is free. It is neither reentrant nor owned. The flag is a relaxed u32 cell of the module's, set by lock.note_start(), which the thread facility calls before its first start, and read by lock.threads_started(). On Cortex-M0 there is no lock: the critical section is one.

The alternatives: the flag in hosted/thread itself, which would make the heap import the facility that takes its stacks from the caller; a two-state lock, which makes every give a system call while anybody ever waited; and a lock that records its owner to refuse a foreign give, a second word for a mistake no fixture makes. All were declined.

Pinned by runtime/thread-lock-one-thread on every hosted target and runtime/hosted-heap-after-thread-start. A take that waits for another thread's give is the threads fixtures'.

D514 — What the heap's lock costs a program with one thread

The tour said nothing; D502 skips the lock until a thread starts.

Chosen: hosted/heap reads the flag once for each slot it takes or gives, and takes the lock around the class's list, mapping a chunk under it; a block larger than the largest class takes none. Measured on Linux x86-64 with the debug compiler, twenty million allocations and frees of 24 bytes, each pair: at --optimize size 78 ns before, 197 ns with the flag clear and 460 ns with it set; at --optimize speed 28 ns, 145 ns and 367 ns. Those figures predate D499, under which every atomic was fenced before and after. With D499's lowering, measured again on the merged item the same way, three runs each: at size 76 ns before, 100 ns with the flag clear and 135 ns with it set; at speed 27.5 ns, 37.7 ns and 53.6 ns. The flag is a plain load now, and what a pair still pays with it clear is the register's to find. The vDSO cache is a relaxed u64 cell, a plain move (D317), and child_defaults is a u64 cell a compare-exchange adds a signal to and a spawn reads once with an acquiring load.

The alternatives: a heap that takes the lock in every program, which D502 declined; and reading the flag once per heap handle, which a handle made before the first start would keep for ever. Both were declined.

Pinned by runtime/hosted-heap-after-thread-start, runtime/hosted-heap-provider and runtime/linux-heap-size-classes, unchanged.

D517 — A thread starts on an area at its stack's top, and switches to the prepared stack

The tour said nothing. D494 has a static Linux program start a thread with clone and wait on the word the kernel clears, and the C library start it elsewhere; D495 prepares each stack with compiler.stack_prepare.

Chosen: each of a group's stacks holds its record at its base, the task's own stack above it with the task's state at that part's top, and, at the stack's top, the area the thread starts on. A static Linux program calls clone with CLONE_VM, CLONE_FS, CLONE_FILES, CLONE_SIGHAND, CLONE_THREAD, CLONE_SYSVSEM, CLONE_PARENT_SETTID and CLONE_CHILD_CLEARTID, and CLONE_SETTLS with the thread's own block, on that area; the thread's first routine runs there, calls hosted/thread's, and ends with the thread's own exit, never exit_group, so the kernel clears the record's word and wakes a futex waiter only once nothing of the thread runs. join waits with FUTEX_WAIT on that word, not the private form, because the kernel's wake is not private, until an acquire load reads zero. platform/linux's futex_wait, which waits private as a lock's word may, is therefore not the join's: a join that slept through it was never woken. Elsewhere the C library is given the area with pthread_attr_setstack and the routine with pthread_create, and pthread_join waits. On the area, hosted/thread's routine first writes a link(thread) byte of its own, so that Darwin's dyld makes the thread's storage there, in a slow path no check or depth report counts, rather than at a first access on the prepared stack, and then switches with compiler.stack_switch to the prepared stack, whose first frame runs the task and switches back; the routine then marks the record ended and returns. Every asynchronous signal is blocked around the start and the caller's mask put back after it, so the thread begins with them blocked (D521).

The alternatives: starting the thread on the prepared stack itself, which needs the first frame's layout outside the compiler (D450); and the task on the area itself, which no stack check would bound. Both were declined.

Pinned by runtime/thread-creation-and-join-order-writes and runtime/thread-creation-and-join-order-writes-libc, and runtime/thread-signal-reaches-events, whose thread is started before SIGTERM is blocked anywhere and sends it: with the thread's mask left as it was, the signal ends the process.

The tour said nothing. D494 has the C library start a thread on FreeBSD, whose libc holds only stubs of the pthread calls and no pthread_create at all: those are libthr's.

Chosen: a FreeBSD program whose reached code imports pthread_create is linked with -lthr, after the archives the program asks for; one that imports none links libc alone, as before. glibc has held its threads in libc since 2.34 and Darwin's are libSystem's, so neither needs a library named. libthr keeps its own record of each thread and its thread's storage beside the area it is given, as Darwin's pthread_create does; glibc keeps both in the area (D495).

The alternatives: linking libthr into every FreeBSD program, which makes every one of them load it and turns the C library's stubs into locks a program with one thread never needs; and linker.library("thr"), which [1590] makes a static archive beside a dynamic libc. Both were declined.

Pinned by the FreeBSD lanes of hosted/thread's fixtures.

D519 — The least stack of a thread group, on each system

The tour said nothing. D495 refuses a stack smaller than the system's minimum when the group is made and leaves the figures to the implementing item.

Chosen: a stack is its record, at least 4 KiB for the task's own stack, which holds compiler.stack_prepare's first frame and D472's margin and a few calls, and the area the thread starts on, which is the system's: 2 KiB and the thread's own storage on a static Linux program, for the start's frames and the switch's; glibc's PTHREAD_STACK_MIN under --link=libc, 16 KiB on x86-64 and RV64 and 128 KiB on arm64, which pthread_attr_setstack refuses below; and 16 KiB on Darwin and FreeBSD. Darwin's minimum is 16 KiB too, and it takes a stack only page-aligned in whole 16 KiB pages, so every stack of a Darwin group is cut in whole pages and is at least 32 KiB. FreeBSD's PTHREAD_STACK_MIN, 2 KiB on x86-64 and 4 KiB on arm64, is too little for libthr's own start and end, whose calls the run-time linker binds lazily on that stack, which took 1,664 bytes on FreeBSD arm64 (D491). thread.least_stack() gives the figure, and group_over fails mem.out_of_memory below it.

The alternatives: the system's own minimum alone on FreeBSD, which lazy binding overruns; a stack the C library allocates, which D495 declined; and one figure for every system, which charges a static Linux program glibc's 128 KiB. All were declined.

Pinned by runtime/thread-start-refused, whose backing too small for one stack and too small for sixteen are refused, and every fixture of hosted/thread whose group is made at those sizes.

D520 — A thread group waits for a free stack by joining, and a refused start fails as out of memory

The tour said nothing. D494's admit waits for a stack to come free when none is, and a failed start starts nothing.

Chosen: admit takes a stack no thread runs on; failing one, it joins a thread whose task has said it ended, and failing that, the thread started first. A start the system refuses fails admit with mem.out_of_memory, as POSIX's EAGAIN says the system lacked what another thread needs, and keeps the errno in the group's hosted/system handle for system.last_errno; the stack stays free and nothing was started. The first failure is claimed with a compare-exchange on the ledger, so only one task writes it, and join reads it after every thread's end.

The alternatives: an atom of its own for a refused start, which no caller could recover from differently; and waiting on every thread at once, which needs a wait on several words the systems do not share. Both were declined.

Pinned by runtime/thread-start-refused, whose RLIMIT_NPROC of zero makes Linux refuse the thread with EAGAIN, and runtime/thread-join-first-failure, whose one stack makes each admit join the task before it.

D521 — A thread starts with the asynchronous signals blocked, and a fault's own not

The tour said nothing. D494 has a thread begin with every signal blocked, so that a signal the process is sent reaches the provider that reads it. A fault's signal is the faulting thread's own, raised by the instruction that faulted, and the systems differ on one that is blocked: Linux delivers it whatever the mask, while Darwin leaves it pending and returns to the instruction, which faults again. A trap report in a thread ends with brk #1 on Darwin arm64, so runtime/thread-stack-past-limit-traps wrote its line and then ran that instruction for ever while the routine waited in pthread_join.

Chosen: this amends D494's "every signal". A new thread begins with every signal blocked but the six a fault raises in the thread that made it: SIGILL, SIGTRAP, SIGBUS, SIGFPE, SIGSEGV and SIGSYS, which keep the disposition the process gives them, so a trap's terminal instruction ends the process on every system alike. Every other signal is blocked while the thread starts and in the thread, as D494 has it; the caller's mask is put back after the start.

The alternatives: every signal blocked on Linux alone, where a blocked fault is still delivered, which makes the mask differ by system for no gain; and a terminal instruction the mask cannot hold off, which no hosted architecture has. Both were declined.

Pinned by runtime/thread-stack-past-limit-traps on Darwin, whose report ends the process from the thread, and on every other hosted target.

D1126 — On Linux only a process's first thread watches a signal

The tour said nothing. D494 and D521 start every thread of hosted/thread with the asynchronous signals blocked, so that a signal the process is sent reaches the provider that reads it. On Linux hosted/events takes a signal by blocking it in the calling thread and reading a signalfd, and the kernel gives a signal sent to the process to any thread that has it unblocked. The process's first thread is never started by hosted/thread and has nothing blocked, so a signal watched by an event loop on a worker thread was still delivered to the first thread, where its default ended the process. On Darwin and FreeBSD the disposition and kqueue's filter are the process's, and the same program received the event.

Chosen: on Linux signal.watch through hosted/events is refused in any thread but the process's first, io_failed with EPERM as the last errno, and the signal keeps its default. The first thread is the one whose thread ID is the process's. On Darwin and FreeBSD a watch is taken in any thread, as before.

The alternatives: blocking the asynchronous signals in the first thread once it has started a thread, and unblocking them at join, which leaves a program whose first thread waits in join and watches nothing deaf to SIGINT and SIGTERM; a handler in the first thread that forwards the signal, which D449 declined when it kept Landin code out of handlers; and documenting the difference between the systems, which leaves a program that shuts down cleanly on macOS to be killed on Linux. A maintainer may still prefer one of them: the refusal is the conservative choice.

Pinned by runtime/thread-signal-watch-in-worker on the Linux targets, whose worker's watch is taken without the rule, leaving SIGTERM to end the process in the first thread; runtime/thread-signal-reaches-events holds the watch in the first thread on every hosted target.

D527 — io.write_format writes a template and its values in one call

The tour said at [1370] and [1380] that a template's {} takes the next value through any, and the library gave that to a builder and to a buffered writer: printing an integer took storage, a writer over it, a deferred flush and the call, four lines before a program's first loop.

Chosen: core/io gains write_format, generic over a writer like write: a host, the file to write, a template and its values as []any text.formattable, failing io_failed or text.invalid_format. It checks the template against its values before writing anything, as D355's format does, so a mismatch writes nothing. It formats into a small store of its own on the stack and writes the store to the file whenever it fills and at the end, so a line that fits is one write and a value of any length is written in pieces: it never reports no_space. Every target has it. The tour prints a value with it before its first loop, and keeps the buffered writer for a program that writes many pieces. An unknown core/io member spelt as another language's print, print, println, printf or puts, is L0201 whose fix shows the call. Floating-point values stay unformatted.

Settled in implementing it: the store is io.format_store, 128 bytes, and the L0201 is a note rather than a fix, since the call's arguments are not the ones written; the row keeps one note. core/text gains format_onto, which formats through a caller's buffer and hands the text to an outlet, a concept of one entry, take, and write_format is format_onto over the file. A value is formatted whole into the room the store has left, failing that into the whole store once what waits is written, and only a value longer than the whole store is written in pieces as it is formatted, a library value's longest piece going to the file as it is; so a conformance's own length offsets and alignments hold for every value the store holds. Each builder holds the policy that answers a piece its buffer has no room for: over's refuses, growing's doubles and format_onto's hands what waits to the outlet. Each is reached through a table only its maker builds, as D374 has the growth, so an image that never calls write_format links no drain. A conformance of the program's own that asks for more room at once than the store has, as an alignment wider than it, is io_failed: the text cannot be written.

The alternatives: io.print, which the maintainer declined so that the other languages' names are told the call rather than half-matching it; a call to standard output with no file, which needs a process provider where a writer suffices and hides which stream is written; a buffer the caller passes, which is the buffered writer again; storage from an allocator; and no_space past a fixed length, which makes a long name a failure of a print.

Pinned by runtime/io-write-format, which prints an integer, the lowest i64, a bool, a string longer than the store and an escaped brace to standard output and writes nothing for a template with a placeholder too many, on every hosted target; runtime/io-write-format-memory, whose counted writes show a line that fits as one write, a longer value as the bytes before it, the value and the rest, a mismatch as no write and a failed write as io_failed, on Cortex-M0 too at every optimized profile; and negative/core-io-println-is-write-format, and negative/core-io-printf-is-write-format, under an alias, whose notes show the call.

negative/core-io-selected-puts-is-write-format pinned the note under a selected import and left with it (D1658).

D1123 — A builder's offsets count what format_onto has handed on

The tour said nothing. D527 writes a value longer than format_onto's whole store through a builder that hands what it holds to the outlet whenever a piece does not fit, and said a conformance's length, truncate and alignment offsets hold "for every value the store holds". For a longer value they were offsets into a buffer that had since been emptied: align_right trapped on a checked subtraction or wrote its fill after the piece, and a truncate cut nothing or the wrong bytes. How long a value's text is, a name or a path, is the program's data and not its error.

Chosen: a builder counts the bytes it has handed on, and text.length is that count and the bytes it holds, so an offset names the same byte before and after a hand-over; for every other builder the count is zero and length is the length of used. align_left fills after its piece wherever the piece's start now is. align_right reports no_space when any of the piece has been handed on, or has to be handed on to make room for the fill, since nothing can then be written before it; io.write_format reports that as io_failed, as it does a conformance asking for more room than the store has. truncate cuts what the builder still holds back to the offset and never below what was handed on. The library's own rollbacks, a negative number's sign and a failed format, cut the same way.

The alternatives: leaving the trap, which ends a program on the first long value it prints; formatting every value whole into storage from an allocator, which D527 declined; and a count the conformance asks for apart from length, which every conformance already written would not ask.

Pinned by runtime/core-text-format-onto-offsets, which traps without the rule; runtime/io-write-format holds the values the store holds.

D531 — A released compiler carries no debug information, which ships beside it

The tour said nothing. D275 laid the release archive out as bin/refine beside lib/landin, and the release build kept its debug information, so the 0.2.8 archive's compiler was 100 MB, and 27.6 MB stripped.

Chosen: the release workflow takes the debug information out of the released refine before packaging: objcopy --only-keep-debug, a .gnu_debuglink and strip --strip-debug on Linux, dsymutil and strip -S on Darwin. It publishes the debug information as an asset of its own beside the archive, with its checksum, and the archive's layout is unchanged. The README's install route states each archive's size. A released compiler's internal error prints addresses, which a debugger or addr2line given the debug asset resolves. Checkout, Nix and debug builds keep their information.

The alternatives: shipping it inside, which is three quarters of the download for a reader who never debugs the compiler; stripping it with nothing beside, which leaves an internal error unexplained; and compressed debug sections, which keep one file at about half the size. All were declined.

Pinned by scripts/tests/test_outside_user.py, which packages an ELF with its debug information, and the gate's jobs that install a compiler outside the checkout, which package it the release's way; no fixture runs the release workflow itself.

D1132 — A job the rig's runner refuses loses its worker

The tour said nothing. The physical boards hang off a self-hosted runner of a public repository, and the runner's job-started hook is what keeps a job that is not a trusted run of the gate off it. The hook refused by exiting nonzero, and the documents said such a job fails before any of its steps. The runner runs the hook as a step of the job, and a later step under if: always(), or the pre: entry of an action the job names, has a condition a failed earlier step can satisfy; whether the deployed runner goes on to one could not be established without the runner.

Chosen: a refusal does not rest on step conditions. The hook removes the actions the runner downloaded for the job while it set the job up, finds the runner's worker process for the job among its own ancestors, the nearest whose command name or first two arguments contain Runner.Worker, and kills it before exiting nonzero. The worker is the process that evaluates and runs every step and waits for the hook meanwhile, so no step of a refused job runs whatever its condition. With no such ancestor, as when the hook is run by hand, it says that only its exit status refuses. A job whose acceptance the hook's log cannot record is refused the same way.

The alternatives: the exit status alone, which holds only if the runner evaluates no step after a failed pre-job script; an ephemeral or just-in-time runner, which ends with a refused job but has to be registered again for every job and so keeps a registration credential on the rig; and killing every ancestor the hook's user owns, which also ends a maintainer's shell when the hook is tried by hand. All were declined.

Pinned by scripts/tests/test_rig_runner_hook.py, whose stand-in worker runs the hook, ignores that it failed and goes on to its next step, and is killed before it gets there, while an accepted job's worker goes on; the same cases hold the names a worker is recognised by and the removal of the downloaded actions. No case runs the deployed runner, and environments/rig-runner/README.md gives the one job that observes a refusal there.

D1133 — A release is cut from a commit on main whose own gate passed, and is public only whole

The tour said nothing. The release workflow ran for any v* tag and for a dispatched tag. Its checks tie the binary to the tag: the README's version is the tag's, and the compiler's identity names the tagged commit, clean and in release mode. Nothing tied the tag to a tree that was tested, so a tag on an unmerged commit, or on one whose gate had failed, published a compiler. The release was also made public before its twelve assets were uploaded, and an upload that stopped left a partial release that a second run refused to complete.

Chosen: the workflow's first job refuses a commit that is not an ancestor of main, and one for which no gate.yml run of main's own push of that commit succeeded. Its last makes the release a draft, uploads every asset, reads back what the release holds and only then publishes it; a draft an earlier run left is emptied and filled again, since the build is not reproducible and its files are not this build's. A published release is final, as it was: an asset of a name it already holds is refused. Each archive records root, by number and with no name, as every member's owner, with modes set by the packaging script.

The alternatives: trusting the tag, which makes whoever can push one the only check between a commit and a published compiler; requiring only that the commit is on main, where a commit sits before its gate has run and stays if it fails; and publishing first and uploading after, which shows a reader of the releases page an archive without its checksum or a release without a platform. Who may push a v* tag, a required reviewer on the publishing job and a signed attestation of the assets were left to the repository's settings; D1337 settles them.

Pinned by scripts/tests/test_release.py, which holds the first job to a throwaway repository and the run lists GitHub would answer with, and the last to a stand-in gh that records what a reader could see after each request and fails an upload part-way; and scripts/tests/test_outside_user.py, which packages under two umasks and reads the owners and modes back. No case runs the workflow.

D1134 — A recording replaces a session's messages, and neither a transcript that did not run nor its status

The tour said nothing. A scripted language-server session is a transcript the test program runs, and --record writes what the server sends now over its <- lines. It wrote whatever the run handed back, so a transcript that could not be run, one with no exit: line yet, no final line end or a line that is none of its forms, was replaced by an empty file and reported as written; and it rewrote the exit: line with the status the session ended with.

Chosen: a recording replaces the messages of a session that ran. A transcript that cannot be run is left as it is, and so is a session that ended with another status than its exit: line names: the status is the transcript's verdict, as a fixture's expected status is, and is changed by hand. Either is said on standard error with exit status 1. Each directory under compiler/tests/server is a session, apart from one whose name begins with . or _, and one without a session.lsp fails both session runners.

The alternatives: writing what the run handed back, which cost requests typed by hand that were in no commit; recording the status with the messages, which turns a session that now ends 1 into the expectation by a one-line difference; and taking only the directories that hold a transcript, under which a transcript misnamed by a merge leaves the gate with no word. All were declined.

Pinned by the server suite's a recording never replaces what it could not run and a session directory without a transcript is a fault, over real files in the build tree, and scripts/tests/test_server_session_inventory.py for the native runner.

The tour said nothing. The site's pages carry their script inline and no content security policy, so whatever reaches a page as markup runs there. Two things reached it unexamined: a Markdown link's target, written into href as it stood, and the licensed code face's stylesheet, fetched at publish time from storage outside the repository and copied, header and declarations, into every page's <style> element.

Chosen: a link's target is an http, https or mailto address or a path of the repository, written without a space, a quote, an angle bracket, a backtick or a backslash; any other stops the build. A family's @font-face rules are rebuilt from a fixed set of descriptors whose values are names, numbers, quotes and the punctuation of a range, a face's file is a bare NAME.woff2, and a preserved header holding < is refused. The fetch takes a face only as woff2/FILE and writes it only as that file. assets/fonts/licensed.sha256 pins the stylesheet and each face by SHA-256; D1336 recorded it.

The alternatives: escaping a target and passing it through, which still publishes a javascript: link; a content security policy, which the single-file pages with their inline script would have to exempt themselves from; and pinning the stylesheet alone, which leaves the page at the mercy of whoever records the next pin without reading it. All were declined.

Pinned by scripts/tests/test_site_render.py, with a link that runs script and one that leaves its attribute, and scripts/tests/test_fonts.py, with a header and a declaration that end the style element, a face named outside its directory, a pinned file that changed and a source to fetch from that names files it should not.

D1336 — The licensed code face comes from the project's object storage, pinned

The tour said nothing. MonoLisa, the face the pages set their code in, is under a EULA that forbids passing the font data on, so it is not in the repository. It lived in a private repository, landin-fonts, that a developer checked out beside this one, while the publishing workflow fetched a copy from the maintainer's object storage; nothing tied the two copies together, and nothing pinned either, so the publish held the face it fetched to its form only and warned.

Chosen: the object storage is the family's one source. assets/fonts.py names it as LICENSED_SOURCE, and assets/fonts/licensed.sha256 pins its stylesheet and each of its twenty faces, MonoLisa 3.000, by SHA-256, so a render or a fetch refuses a file that differs and a face that is not pinned. python3 assets/fonts.py --fetch fetches the pinned family into the cache directory $XDG_CACHE_HOME/landin/fonts, by default ~/.cache/landin/fonts, or into the directory LANDIN_FONTS names, where the module, check.py and the site build find it; the publishing workflow runs the same command into a directory of its own. A fetch arrives beside its destination and takes its name only once it has been read, pins included, so a refused fetch leaves the copy it would have replaced; it replaces only a directory a fetch made. Replacing the foundry's package is uploading it to the storage, fetching it into a new directory and running --pin there. The repository holds the digests and never the font data.

The alternatives: keeping the private repository as the developer's source, which is a second copy for every host to keep in step with the one the publish fetches; fetching from the foundry, which offers no address a build can fetch the licensed package from; and the storage unpinned, which publishes whatever it holds the day the site is built. All were declined.

Pinned by scripts/tests/test_fonts.py, with a fetch into the cache from a stand-in storage, a second fetch that replaces it, a refused fetch that leaves it and a directory no fetch made that is not replaced, beside the pinned file that changed; and assets/fonts/licensed.sha256 itself, which every render of a host holding the family reads.

D1337 — A release tag is an administrator's, its publication waits for approval, and its archives are attested

The tour said nothing. D1133 tied a release to a commit on main whose gate passed, but who may push a v* tag, whether anyone approves the publication and how a user tells an archive the workflow built from one built elsewhere were left to settings nobody had made; the .sha256 beside an asset is written by the same job with the same token as the asset.

Chosen: three settings and a step. The repository's ruleset version tags refuses creating, moving, deleting and force-moving a refs/tags/v* tag to all but its administrators. The publishing job of release.yml runs in the environment release, which deploys only from a v* tag and waits for the maintainer's approval, so a release becomes public only after the builds passed and someone looked; a dispatch runs on its tag, and scripts/release.py ref refuses one on a branch before anything is built. That job alone holds id-token: write and attestations: write, and attests every archive with actions/attest-build-provenance, pinned by commit, before the release is published; the release notes give the gh attestation verify command that checks an archive's signer workflow and tag. The git.sr.ht mirror has no tag protection, so a release tag is made on GitHub.

The alternatives: the approval on the first job, which asks before anything is known about the build; a GPG-signed checksum file, which needs a key held as a secret by the job it is meant to check; and protecting the tag on the mirror too, which SourceHut does not offer. All were declined. A tag on a commit older than this decision runs that commit's workflow, with neither the environment nor the attestation; the ruleset leaves making one to an administrator.

Pinned by scripts/tests/test_release.py, whose Workflow cases hold the publishing job alone to the environment and the signing grants and the attestation of every archive to before the publication, whose Ref cases refuse a run off its tag, and whose notes case holds the release to the verify command. The ruleset and the environment are repository settings that gh api reads; no case runs the workflow.

D1667 — A release publishes a user image built from its Linux archives over Debian's own GCC

The tour said nothing. A release published archives for Linux, macOS and nix; a reader who wanted refine in a container, or on a host whose loader the Linux archive does not find, had to assemble one.

Chosen: the release workflow builds ghcr.io/OWNER/landin from the two Linux archives without compiling: each archive's prefix, bin/refine, libexec/landin and lib/landin, unpacked into /usr/local of the Debian 13 image environments/pins.sh pins by digest, with Debian's gcc and libc6-dev. Debian installs its driver as x86_64-linux-gnu-gcc and aarch64-linux-gnu-gcc, names refine already asks for (D364), so nothing is linked under the name the flake's refine-bin makes. No firmware or cross toolchain is in it; the README says which Debian packages add one, and that Debian's GDB, added the same way, needs no added capability. The planned note that debugging needs --cap-add=SYS_PTRACE was measured before it was written: in the release rehearsal GDB stopped the first program at main on both platforms without it, and with it still warned that the default seccomp profile refuses turning off address randomisation, so the README says that instead, and the release workflow's check holds it. Each platform's image is built and checked on its own runner, scripts/container_image.py check user running the README's commands with a directory of the reader's mounted at /work as the reader's own user, and is kept as an archive so the publishing job pushes what was checked: one manifest list of linux/amd64 and linux/arm64, tagged with the version alone, after the release's archives are public, and attested in the registry. A tag the registry already holds is never replaced. The gate builds the same image from its own packaged compiler on amd64 and arm64 and runs the first program in it, so a release finds no new fault there.

The alternatives: an image that compiles refine itself, which is the contributor image's work and would publish a compiler other than the archive's; a scratch or distroless image with a static refine, which needs a linker and C library all the same and waits on a static build; a latest tag that every release moves, which is the maintainer's question and defaults to no; and images from main or each commit, which the maintainer declined: an image is a release's.

Pinned by scripts/tests/test_container_image.py, whose cases hold the build context to the archive and the recipe, the check to the README's commands, and the publication to both platforms and to never replacing a tag; scripts/tests/test_release.py's Workflow cases, which hold the push to after the release is public and to the publishing job alone; check.py's pin agreement, which holds the recipe's base image to environments/pins.sh; and the gate's outside-user-stock and arm64-release-checks steps that build and run it.

D1668 — The contributor image is the pinned environment for both Linux architectures, read from pins.sh

The tour said nothing. environments/linux-amd64/Containerfile was the local loop's image: amd64 only, with GNAT and GPRbuild's versions and checksums written again as build arguments that check.py compared with the pins.

Chosen: the recipe moves to environments/images/contributor.Containerfile, builds from environments/ and copies pins.sh in, installing the toolchain with its landin_install_toolchain for the platform the builder names, amd64 or arm64, behind versionless links, so it writes no version or checksum and check.py holds it to reading the pins rather than to repeating them. It adds git, which the build's identity reads. The release workflow builds it for both platforms from the tagged tree, builds that tree's compiler inside it as the invoking user under the build tag image and runs the first program, and publishes it as ghcr.io/OWNER/landin-contributor beside the user image, by the same steps. scripts/linux-loop.sh builds the same recipe for its Rosetta loop, its image tag carrying the recipe and the pins.

The alternatives: a second recipe for arm64, which is a second place to keep in step; building it in the gate on every push, which fetches the toolchain and builds the compiler again on two more runners for an image published only at a release, so the release workflow and its rehearsal build it instead; and keeping the build arguments beside a copy of the pins, which is two places a version is written.

Pinned by check.py's pin agreement and its controls in scripts/tests/test_check_controls.py, which refuse a recipe naming a version, not copying pins.sh or not calling landin_install_toolchain; scripts/tests/test_build_inventory.py's recipe checksum case; and the release workflow's contributor-image job.

D1669 — The release workflow rehearses on any ref and publishes nothing

The tour said nothing. The release workflow ran only on a v* tag, so its builds and checks were first seen working on the run that publishes, after the tag that cannot be taken back.

Chosen: a dispatch with rehearse runs on any ref. The tag and gate checks and the publishing job are skipped, and the environment would refuse a branch in any case; the archives' version is not compared with a tag; the three builds, both images' builds and checks, and the assembly of each image's two platforms into one list are run, the lists pushed into an OCI layout on the runner. The release recipe in docs/process.md runs one on main before the tag. The archives' artifacts are named apart from the images', so the publishing job uploads the archives alone as the release's assets.

The alternatives: a separate workflow for the images, which would build from something other than the release's own run; and testing the publication against a registry of the project's, which publishes.

Pinned by scripts/tests/test_release.py's Workflow cases, which hold the publishing job to being skipped on a rehearsal, to taking the archives' artifacts alone and to pushing nowhere but the registry, and the images job to the layout.

D1707 — The flake's default package is the release archive where a release covers the system

The tour said nothing. The README's nix profile install github:701-dev/Landin installed the flake's default package, the source build, which fetches the pinned toolchain and compiles for minutes; the flake's refine-bin, the same release archive the other routes install, was named nowhere a reader looks, and the flake had no apps, so nix run had nothing to run.

Chosen: packages.default is refine-bin on a system whose release hash the flake records, which is all three today, and refine elsewhere; refine stays the source build by name. apps.default runs bin/refine from the default package, so nix run github:701-dev/Landin -- ARGS runs the released compiler. The README gives nix profile install, nix run and the source build's #refine. The default follows releaseVersion, so between a release's tag and the commit that records its hashes it installs the previous release, which is what a reader asking for the compiler wants; a checkout's own compiler is .#refine. The docs say nix profile install, which Nix 2.34 calls a deprecated alias of add, because add is unknown to the Nix versions before it that readers still run.

The alternatives: keeping the source build as the default and naming #refine-bin in the README, which keeps the slow route the one a reader types without thinking; and apps that build from source, which makes nix run take minutes the first time.

Pinned by scripts/nix_route.py, run in the gate's flake-compiler job: nix profile install . must install the refine-bin store path and report its version, nix run . -- run main.ldn must print the first program's output, and .#refine must be a different derivation, which the same job builds; scripts/tests/test_nix_route.py holds its refusals.

D1747 — The install script installs one release archive into one directory, by the archive's own checksum

The tour said nothing. The roadmap asked for a script a reader pipes from curl into sh that installs the release archive for the host, and left where it installs, what it does to a directory already there and which hosts it refuses to the item that wrote it.

Chosen: install.sh, in the repository and served unchanged at https://www.701.dev/install.sh, the address the maintainer chose, is POSIX sh needing curl, tar and sha256sum or shasum. It names the archive landin-VERSION-PLATFORM.tar.gz by the release workflow's names, finds the newest release by following GitHub's releases/latest redirect to its tag, or takes --version, and refuses an archive whose digest is not the one its .sha256 names. It unpacks into --dir, by default $HOME/.landin, a directory holding only that install, which a later run replaces whole once the new one is unpacked beside it; a directory that holds anything else is refused. It edits no shell profile and runs nothing as root: it prints the export PATH line and the driver refine run links with. It refuses a host no archive serves, Linux without glibc's loader and NixOS, whose loader path is a stub, among them, and names nix and the source build there. When gh is installed it prints the commands that check the archive's attestation, and does not run them. --platform names the archive for another host and --list prints the names a release publishes for every platform. LANDIN_RELEASES names another place releases are served from, which is how the gate serves its own archive.

The alternatives: installing into /usr/local or another system directory, which needs root and mixes with the system's files; keeping earlier versions side by side under the directory, which nothing selects between yet and a build tool will own; appending to a shell profile, which changes a file the reader did not name; the GitHub API for the newest release, which is rate-limited without a token; and running gh attestation verify itself, which needs a login a fresh machine does not have.

Pinned by scripts/install_check.py, run in the gate's release, arm64-release-checks and darwin-host-release jobs against each host's packaged compiler served from 127.0.0.1 as a release is: the newest and a named version installed and running the first program, a reinstall, a foreign directory, a damaged archive, a missing version and two unserved hosts refused; scripts/tests/test_install_script.py runs the same cases against a stand-in archive and holds the script's names to release.yml's.

Amended by D1789 and D1791: the script no longer refuses a Linux host by its loader. From the release after 0.2.11 the Linux archive it takes by default carries a static refine, and the script instead runs the refine it unpacked for the host and refuses an archive whose refine does not start there; --variant dynamic takes the dynamic archive beside it.

The tour said nothing. A Linux archive's refine was linked against the build host's glibc: it asked for glibc's loader at its standard path and, built on Ubuntu 24.04, for glibc 2.38's symbol versions, so it did not start on Alpine or another musl system, on NixOS, or on a glibc older than 2.38: Debian 12, Ubuntu 22.04 and RHEL 9 among them. The pinned GNAT links every executable statically against glibc with no source change, as roadmap/inputs/static-linux-refine.md found.

Chosen: a release build on Linux links refine, its split commands and the test program statically with -static-pie, glibc and the GNAT runtime inside them, keeping the address randomisation the dynamic archives had. scripts/env.sh chooses the link as LANDIN_LINK, static for a Linux release and dynamic for a debug build and on Darwin, so the build decides it, not a caller, and every release-mode lane of the gate tests the link a release publishes; landin_common.gpr's Linker package applies it, and a bare gprbuild, as the flake's source package, links dynamically. scripts/build.sh adds GPRbuild's -R to a static link: glibc's start of a static position-independent executable asserts that it names no run path and kills it before main when it does, which is how the gate's release lanes, built without -R, would have failed. A musl build is not attempted: no published GNAT targets musl.

The alternatives: a musl refine, which needs a GNAT 16.1 toolchain for musl built and maintained by the project alone; linking only the release workflow's build statically with -largs, which leaves the gate's release lanes testing a dynamic compiler the release does not publish; -static without position independence, which gives up address randomisation for nothing; and a link switch the caller chooses, which scripts/test.sh and dev-test.sh would not pass on.

Pinned by the gate's release lanes, whose test program, corpus and installed-toolchain checks run the static build natively on each architecture: release on x86-64, and arm64-release and arm64-release-checks on the build arm64-release-build makes; and the step The static archive without glibc of release and arm64-release-checks (D1790); scripts/tests/test_static_archive.py holds the link, its switches and every executable project's Linker package.

The tour said nothing. A static glibc link warns when the program calls something, the name service, dlopen or iconv, that needs the linked glibc's own shared libraries at run time, and such a program breaks on a host with another C library. glibc is under the LGPL, version 2.1 or later, and a static refine holds it.

Chosen: the static link adds -Wl,--fatal-warnings, so the first such call refuses the build where it is made. scripts/package.sh packages a Linux ELF refine that requests no interpreter with two files beside the project's licences: LICENSE-GLIBC, the copyright file of the libc6-dev package whose libc.a was linked, and NOTICE-GLIBC, which names that package's version, its distribution and source package, how to fetch the source, and that refine's complete source and build are public so a user can relink it with a modified glibc. Both come from the packaging host's dpkg-query, so such a refine is packaged on the Debian or Ubuntu host that built it, as the release workflow's runners are, and refused elsewhere with that said. Whether that meets every obligation the LGPL places on the distributor, among them the offer of glibc's own source, is the maintainer's to settle; this records what the archive carries, not that it is sufficient.

The alternatives: a glibc licence text kept in the repository, which could name a glibc other than the one linked; reading the version from the binary, which holds no glibc banner; and a warning grep over the build's log, which a change to the log's shape would silence.

Pinned by scripts/tests/test_static_archive.py: a name-service call that links with a warning fails under --fatal-warnings, a static stand-in packaged with a fake libc6-dev carries both files with the package's names, and one packaged without it is refused; scripts/static_check.py requires both files of the gate's archive.

D1789 — The install script refuses an archive whose refine does not start on the host

The tour said nothing. D1747 refused a Linux host without glibc's loader, and NixOS, before downloading. With a static Linux archive that refusal would turn away the hosts the archive serves, and an older release, whose archive asks for glibc 2.38 and its loader, still fails on them.

Chosen: the script no longer looks for a loader. After the archive is checked and unpacked, and before anything is installed, it runs the unpacked refine version when the archive is the host's own; when that fails it says the release does not start on the host, shows the first lines of what the system said, notes for Linux that the archives of 0.2.11 and earlier need glibc 2.38 or later and its loader, names nix and the source build, and installs nothing. --platform installs without running.

The alternatives: keeping a per-version table of which releases need which glibc, which the script would have to learn at every release; and installing first and leaving the failure to the reader's first refine, which says only that a file was not found.

Pinned by scripts/install_check.py's case an archive whose refine does not start here, run by the gate against each host's packaged compiler and by scripts/tests/test_install_script.py against a stand-in; scripts/static_check.py installs the static archive with the script on Alpine.

D1790 — The gate runs the packaged static compiler alone in an empty root and on Alpine

The tour said nothing. The roadmap asked for the packaged static compiler run on Alpine and in an image with no C library of its own, compiling and running the first program and the --link=libc runtime fixtures against musl.

Chosen: scripts/static_check.py, a step of the gate's release and arm64-release-checks jobs, takes the archive the job packaged and runs it under bubblewrap with PATH and HOME alone. In an empty root holding the archive and nothing else, no C library, shell or linker, refine version, refine check and refine compile --emit=asm of the first program and every split command's --help must succeed. On Alpine 3.24.4's minirootfs, pinned by checksum in environments/pins.sh, with gcc, musl-dev and curl added, install.sh installs the archive served from 127.0.0.1, its refine run runs the first program, and every runtime fixture that says link: libc and names the host's Linux target is compiled with the installed refine, linked against musl and run as the harness runs it: its root, C archives, shared objects, arguments, files, input, status or trap and output, at the default profile. The runner must allow unprivileged user namespaces, which the step sets.

The alternatives: a job of its own, which would add two jobs that wait for a release build to download what the release jobs already hold; Docker, which the development hosts lack and which would fetch an image by tag rather than an archive by checksum; and running the fixtures through the test program inside Alpine, which tests the stages linked into it rather than the packaged refine.

Pinned by the step itself in both jobs, nineteen link: libc fixtures passing on x86-64 when it was written; scripts/tests/test_static_archive.py holds the fixture selection and the ELF reading it relies on.

D1791 — A release publishes the static and the dynamic Linux archive, and the installer chooses by --variant

The tour said nothing. With the static archive (D1787) a release could offer one Linux archive per architecture or two. The static one starts on every Linux; the dynamic one, built on Ubuntu 24.04, needs glibc 2.38 or later and its loader, and takes the system's glibc and its fixes.

Chosen: both, as the maintainer decided. Each Linux build job of the release workflow publishes the static archive under the platform's name, landin-VERSION-PLATFORM.tar.gz, and builds the same tree again in a build tree of its own with LANDIN_LINK=dynamic, published as landin-VERSION-PLATFORM-dynamic.tar.gz with its own debug archive and .sha256. scripts/env.sh takes LANDIN_LINK=dynamic from a caller for a Linux release and refuses static anywhere else, and the build manifest records the link, so a tree is rebuilt when it changes. install.sh --variant static|dynamic chooses on Linux, static when not given, and refuses the option on macOS, which has one archive; --list names both. Homebrew, the flake's refine-bin and the user image take the platform's name, so the static archive. The gate builds and tests the static build alone: the dynamic one is the same objects' sources linked against the runner's glibc, which the gate tested until the static archive, and the release workflow checks it before the approval: a program interpreter and no run path, the version, assembly for each hosted target, the default target, and each split command from the unpacked archive. It costs one more release build per Linux job, about eight minutes, and nothing per gate.

The alternatives: the static archive alone, the maintainer's first answer; the dynamic archive under the platform's name and the static one beside it, which would keep sending the consumers that take the plain name an archive that does not start on NixOS, musl or an older glibc; dynamic as the installer's default, which the maintainer did not choose and which fails on more hosts; an option spelled --link, which refine already uses for how a program is linked; and relinking the static build's objects into the dynamic one, which build.sh's manifest and GPRbuild's time stamps do not support without a clean build.

Pinned by scripts/install_check.py's case the dynamic archive --variant dynamic names, run by the gate on each Linux host and by scripts/tests/test_install_script.py, which also holds the script's names, both archives of each Linux platform, to release.yml's; scripts/tests/test_static_archive.py holds env.sh's choice and its refusals; scripts/tests/test_build_inventory.py the manifest's link row.

D571 — A round's yield calls nothing beneath it but its sweep, its idler and its switch

The tour said nothing. core/fibre/stacks' round of turns is the one provider of fibre.turns the library carries, and every task that waits through it pays for its yield on its own stack. The yield swept the ended entries through a chain of three small routines, counted the unfinished through two more and searched for the next entry through them again, so the deepest path beneath a yield was that chain, not the switch: at size it went 224 bytes deeper than the switch on x86-64 and 832 on RV64. D465's 1 KiB room was set from that chain, which on RV64 went past it, and D473 retired the room.

Chosen: sweep empties the ended entries and counts the unfinished in one pass that calls nothing; round_yield takes its count, searches for the next entry in its own body with no division, which Cortex-M0 would call its runtime for, and switches through compiler.stack_switch directly. Beneath a yield there are then only the sweep, the round's idler and the switch, and in the depth report a yield with a spinning idler goes no more than D465's 1 KiB deeper than its switch on every target at every profile, 688 bytes at most, on x86-64 at none; the round's wait goes no deeper than through its yield. With RV64 reusing its scalar homes, a yield takes, with what the switch saves, 456 bytes on x86-64 at size and 392 at speed where it took 552 and 600, 800 and 400 on arm64 where it took 960 and 560, 960 on RV64 where it took 2,160 and 2,416, and 352 on Cortex-M0, its device idler included, where it took 504. At none, where every value keeps a home of its own, a yield takes about 2.1 KiB on the 64-bit targets, as the chain did. The round's code is smaller than it was, which a 32 KiB Cortex-M0 image near its limit needs. The idler is the provider's to choose and runs where the yield does: the event provider waits for its events there.

The alternatives: the sweep and the count written out in the yield too, which puts nothing but the switch beneath it at about the same depth but duplicates the sweep, so that runtime/signals-fake-firmware no longer fitted its 32 KiB at none; the chain kept and a room sized from it per target, which D473 declined with the room; the idler and the sweep run on the stack the round was made on, which needs a switch to it and back on every quiet round and changes which context answers events; and the compiler copying the helpers into the yield, which happens only at speed. All were declined.

Pinned by the stack report suite's a yield goes little deeper than its switch, the library's own round on every native target at every profile; the fibre fixtures, runtime/fibre-turns-interleave and runtime/fibre-join-first-failure among them, on every hosted target and the Cortex-M corpus; and the capacity control of environments/cortex-m/evidence.py (D470).

D1124 — A fibre that ends in a round hands its turn to the entry after it

The tour said nothing; fibre.turns promises that a fibre that yields lets every other unfinished fibre of the provider run before it resumes. D450's first frame switches to one record when a task ends, and stacks.round names entry 0, the stack the round was made on, which resumed inside its own yield and went on as if its turn had come. So every fibre that ended sent the lap back to entry 1: entries after the one that ended lost that turn, a fibre in a late entry was not run at all while short tasks kept ending before it, and core/io/fake's network, which takes one yield for a whole round, reported timed_out to a receiver whose sender had not had its turn.

Chosen: a fibre that yields names the entry it switches to before it switches; one that ends does not. Entry 0, resumed with another entry still named, knows a fibre ended there, and continues the search from that entry, switching to the next unfinished one after it and resuming itself only when the search comes round to it. The search stays written out in round_yield, as D571 requires. A start the round refuses counts no entry: the entry is written before the count grows, so the round reads only entries it wrote and the caller's table needs no initial value.

The alternatives: having the first frame switch to the next entry itself, which puts the round's table and search into prepare's frame and under every provider built on it; and a counter of the laps in the round's state that yield waits on, which costs every yield a comparison to repair an ending.

Pinned by runtime/fibre-turns-end-keeps-lap, whose order is abAc without the rule and whose refused start is followed into a table that was never zeroed.

D572 — A check decides whether a handler fits from the frames it would emit

The tour said nothing. D474 refuses a selected panic handler that does not fit a prepared stack's margin, decided from the emitted frames, and refine check and the server, which emit nothing, accepted every such program: an editor showed nothing wrong with a handler the build then refused.

Chosen: in a program that prepares a stack and selects a handler, on a target with a backend, a check runs the optimization pipeline and the backend in memory, keeping nothing, and judges the handler as compiling does, with the same L0508 at the same place. refine check measures at its own profile, none unless --optimize names another, and the server at none, which no setting changes yet; a handler that fits there may still be refused at another profile, as D474 says. A program that compiling refuses before it emits, for an image past its budget, a frame the target cannot address or a vector with no firmware entry, is left to that refusal, which a check does not raise. Every other program, the great majority, prepares no stack or selects no handler, and costs a check nothing more.

The alternatives: a note that the margin is not decided, which an editor would show on every handler of every such program and which says nothing a reader can act on; a bound on a handler's depth stated without frames, which no target's backend gives and which would refuse what fits; and deciding at every profile, which multiplies the emission by the profiles for an answer that differs only at the margin. All were declined.

Pinned by negative/stack-handler-refused-by-check, refused by refine check on Linux x86-64, and the server's scripted session handler-margin, whose handler is refused while it is edited and cleared when it fits.

D773 — A fibre group is joined by the program's defer, and no path check makes sure

The tour said at [1675] that a group must be joined before its backing goes and that a defer does it on every way out. D444 left a checker rule that a frame-backed group is joined on every path to the register, and a forgotten join runs a fibre on a frame that has gone.

Chosen: defer fibre.join(group) else none, written after the group is made, is the way, and the compiler does not check that it was written, as it does not check that a region is released. [1675] teaches the defer and says the compiler does not check it.

The alternatives: a path check keyed on fibre.group, as [0910] checks that a sunk place is replaced, which makes one library type one the language knows; and a check keyed on a property a type declares, that a value must be consumed before its scope ends, which is the affine values the tour parks. Both were declined until a derived program or a fixture forgets a join, or a second library value is as unsafe to forget.

Pinned by every fibre fixture that makes a group, among them runtime/library-shared-fibre, runtime/fibre-turns-interleave and runtime/fibre-join-first-failure, each joining its group in a defer.

D1948 — A library routine takes type is C; any C is for a value that stores or mixes providers

The tour said at [1290] that a generic function takes a type that satisfies a concept, and at [1370] that an any C holds a value of some type that satisfies C, decided at run time, and is itself a provider of C. No rule said which a library routine takes, and the same capability arrived in several shapes: an allocator generic in 44 routines and erased in the text builder, a byte sink in four shapes, entropy in three.

Chosen: a routine's capability parameter is provider: type is C, so that the caller decides whether to erase, the routine can name the type, and a call can be specialised; an any C passes to it unchanged. A value that stores a provider beyond the call, as the text builder and the fibre group do, or that holds several kinds at once, takes any C. core/README.md's conventions say so, and each routine that departs is renamed or reshaped on the review's breaking list. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: any C by default, one shape at the cost of a table call on every use; and generic everywhere, a storing type made generic over its provider. Both were declined.

Pinned by check.py's library conventions check, which refuses a public routine that takes a capability as any C without keeping it unless its table of departures names the routine, and the controls LibraryConventions in scripts/tests/test_check_controls.py; D1988 says how the check reads the rule, and the review's breaking list names each routine it changes.

D1950 — core/failure keeps one registry until a firmware image shows its cost

The tour said nothing; D388 gives each library failure atom its words in failure.reason, so core/failure imports eight modules to name their atoms, and core/fibre, hosted/thread and platform/posix import it, which makes importing core/fibre pull in nearly the whole of core. D296 drops what a program cannot reach.

Chosen: the one registry stays. The review measures what importing core/fibre costs a Cortex-M image, and splits the registry only where the measurement shows a cost. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: splitting now, each module keeping its atoms' words; and the three importers reporting in their own atom sets. Both were declined until a measurement asks for them.

Settled in implementing it: the measurement asks for nothing. On Cortex-M0 at the default size objective, a firmware image that imports core/fibre and uses nothing of it is the bare image byte for byte, 372 bytes of text; one that runs a group of fibres whose tasks fail with library atoms is 6,544, and every routine in it is core/fibre's or the program's, none of core/failure or the eight modules it imports, because failure.reason is a type and a type costs no bytes. Only a call of failure.words brings the registry in, 1,104 bytes of routine and the phrases with it, 1,852 bytes in all, and that is the cost of the words a program asked for, which a split would not make smaller. The registry stays one.

Pinned by the freestanding Cortex-M lane, environments/cortex-m/freestanding.py, whose library-shared-fibre image is refused if it holds words, while library-shared-failure's, which calls it, does.

D1951 — platform/posix sits below the protocol concepts

The tour said nothing; platform/posix imports core/io, core/net, core/text and core/failure, so the system layer depends on the abstractions built over it, while hosted/events reaches epoll and kqueue without it.

Chosen: platform/posix moves below the protocol layer as far as its types allow: it speaks descriptors, byte slices and errno numbers, and hosted/system adapts it to core/io and core/net. hosted/events keeps its own readiness calls. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: leaving posix above as the protocols' hosted implementation; and routing hosted/events through it too. Both were declined.

Pinned by check.py's control that no platform module reaches core/io or core/net through its imports, directly or through another module as core/failure would, and the fixtures D2008 names.

D1952 — The I/O concepts stay narrow, and world gives each part as a value

The tour said at [1680] that a function takes the thing that does its I/O. D268 made the capability four narrow concepts and their composition, so a firmware provider supplies only what it has; io.world has no entries of its own, and because an any world was not an any writer the library carries lent, lent_writer and writer_of.

Chosen: the concepts stay narrow. With D1949 an any world converts to each concept it builds on, so lent, lent_writer and writer_of leave. A pair of concepts that says one idea twice, io.writer and text.outlet or the three file concepts, is merged only where the review finds that their receivers and failures can be one. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: merging those pairs now; and one broad world whose firmware providers refuse what they lack at run time. Both were declined.

Pinned by runtime/library-io-writer-adapter, which passes an erased world where an any io.writer is wanted, and the derived examples, whose roots hand diag.stream the world. The review of the pairs is D2050.

D2050 — No pair of I/O concepts merges, and writer_of leaves

The tour said at [1680], as D1952 decided, that the I/O concepts stay narrow, that lent, lent_writer and writer_of leave, and that a pair saying one idea twice merges only where its receivers and failures can be one. It left the review of the pairs to the change applying it.

Chosen: no pair merges. io.writer and text.outlet differ in both: a writer's entries take the provider's handle by value and a file, and fail io_failed, which a system reports; an outlet's one entry takes the outlet ptr mut, since a builder is an edited value, names no file, and fails no_space, which its caller's buffer decides. io.write_format already makes an outlet over a writer's file, which is the one place the two meet. The three file concepts, files, file_system and directories, take the same receiver, but file_system already builds on files, so a provider of it has one close, and directories is outside world because firmware's memory world has no tree: merging either into files gives every world the whole file system, which D268 split to avoid. io.writer_of, the private adapter lent behind io.lent_writer and its two forwarding routines leave; a routine holding an any io.world passes it where an any io.writer is wanted, and diag.stream(world, world.err()) is how a root streams its log.

The alternatives: merging outlet into writer with a pseudo-file, which gives a builder a system's failure; and folding file_system into files. Both were declined.

Pinned by runtime/library-io-writer-adapter and the derived examples, as D1952 says; docs/library.md, generated, has no writer_of; and negative/library-name-removed-by-hand, where io.writer_of is refused saying to pass the world (D2129).

D1953 — The library has one name for each idea

The tour said nothing; the library names absence seven ways, a count or length about ten, giving storage back about fifteen and the end of an iteration five, and used, new, at, host, space, cursor and entry each carry two or more meanings, while not_found is two atoms.

Chosen: absence, running out of room, the end of an iteration, a length and giving storage back each get one name, and each overloaded name one meaning, as one list of renames taken at once; every old name is refused with its replacement and rewritten by refine fix (D1847) where the rewrite is mechanical. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: renaming only the overloaded names; and renaming nothing. Both were declined.

Pinned by D2129's table of removed names, which refuses every old name of the breaking list's names section with its replacement, negative/library-name-removed-renames, -moves, -field and -by-hand among them; the library, the corpus and the examples use only the new names.

D2028 — Absence is one atom, mem.not_found

The tour said nothing; D269 kept map.missing and tree.no_such_node apart from mem.out_of_bounds because a missing key is not a bad index, and gave a provider's lookups their own atoms, io.no_argument and io.no_variable, so absence came to be seven atoms with io.not_found, text.not_found and posix.no_account, two of them spelled alike.

Chosen: a lookup by key, name, identifier or search that finds nothing fails one atom, not_found, declared once in core/mem beside the atoms every container shares, so map.missing, tree.no_such_node, io.not_found, text.not_found, io.no_argument, io.no_variable, posix.no_account and posix.no_symbol all become mem.not_found. An index past a prefix stays mem.out_of_bounds, and text.past_end, a byte read past its source, is that idea and becomes it. posix.no_library stays, since a library that fails to load may exist. D269's separation of a bad index from a missing key stands; only the spellings of absence merge. The spelling and the module waits on the maintainer's answer, and this is the default the library review's list is written with. The breaking list's names section carries each rename, refused with its replacement and rewritten by refine fix (D1847).

The alternatives: one absence atom per module, as today, which is what D1953 declined; and not_found in a new module of shared failure atoms, which the maintainer's question offers.

Pinned by negative/library-name-removed-moves, where map.missing, io.not_found and text.not_found are refused naming mem.not_found and the fix names it once, by D2129's table.

D2029 — Running out of room is one atom, mem.out_of_memory

The tour said nothing; an allocator fails mem.out_of_memory, raw storage with no spare slot mem.full, a text builder or text.encode whose buffer is too short text.no_space, and a line reader whose buffer cannot hold a line io.line_too_long.

Chosen: whatever does not fit in the memory it was given fails mem.out_of_memory, so a program that swaps a growing container for a fixed buffer handles the same atom; mem.full, text.no_space and io.line_too_long become it. mem.grow's (grown: bool) stays an answer, since a refused extension in place is not a failure, and tree.too_many_nodes and tree.too_many_leaves stay, since they say a count has no usize, not that memory ran out. The spelling waits on the maintainer's answer, and this is the default the library review's list is written with.

The alternatives: mem.full and a new mem.no_room, which the maintainer's question offers; and keeping the buffer's atoms apart from the allocator's, which D1953 declined.

Pinned by negative/library-name-removed-renames, where mem.full is refused naming mem.out_of_memory, by D2129's table.

D2030 — The end of an iteration is at_end, never a failure

The tour said at [1320] that iterable's entry for the end is at_end. The library said the end five ways: io.read returns zero, a line has finished, read_entry returns an entry with an empty name, map.next_entry fails map.end_of_entries, and text.at_end and text.done answer it for bytes and for scalars.

Chosen: the end of a walk is answered as at_end, a predicate on the source and its position or a field of the record a read lends, and is never a failure atom, because reaching it is the expected way out of every loop. map.end_of_entries leaves, the map's walk ending at map.at_end, which the map's iterable conformance supplies (D1957); line.finished becomes line.at_end; a directory entry gains at_end in place of the empty name; and text.done, which takes utf8 where text.at_end takes bytes and so cannot share its name, becomes text.utf8_at_end, the prefix the UTF-8 builder's routines carry. io.read's zero stays: it is a count, the system's own end of a stream, and a stream has no position to ask about.

The alternatives: a failure atom for the end, as the map has, which D1652's loops would have to catch on every walk; and done, the scalar walk's word, which iterable does not use.

Pinned by negative/library-name-removed-field, where io.line's finished and the directory's are refused naming at_end, and negative/library-name-removed-by-hand, where map.end_of_entries is refused saying to ask map.at_end, by D2129's table.

D2031 — How many items a value holds is its length

The tour said nothing; lenof is the language's word for a slice, and the library also says argument_count, variable_count, count_leaves, pending, width and, for an arena's consumed bytes, used.

Chosen: the number of items a value holds or lends is length, prefixed by its type where the module holds several (D274): io.argument_count and io.variable_count become io.arguments_length and io.variables_length, io.pending io.buffered_length, arena.used arena.length, and text.width, the bytes of one scalar's encoding, text.scalar_length. A part's length keeps the part's name before it, as diag.message_length and net.zone_length already do. tree.count_leaves leaves, since tree.leaves(tree.get(value, id)) answers it from the node. A count of something a value does not hold keeps the name of what it counts, as D274's counters do (map.slots, map.removed, tree.leaves, pool.live), and a byte extent outside the value, a file's or a block's, keeps size.

The alternatives: count as the one name, which most modules do not use and lenof does not suggest; and leaving each module its own word.

Pinned by negative/library-name-removed-renames, where arena.used is refused naming arena.length, and negative/library-name-removed-reorders, where tree.count_leaves becomes tree.leaves of tree.get, by D2129's table.

D2032 — Giving storage back is release, and closing a system resource is close

The tour said nothing; the library gives storage back as mem.free, mem.delete, mem.delete_bytes, mem.release_storage, arena.reset and the containers' release, names mem.dispose as if it gave a block back when it only detaches one, and closes a socket with net.close_socket where io says close.

Chosen: a library routine that gives storage back is release, suffixed by its type where core/mem holds several, and one that allocates is allocate, so core/mem reads as three pairs: allocate/release for a block, allocate_item/release_item for one typed item (mem.new/mem.delete) and allocate_bytes/release_bytes for a byte buffer (mem.new_bytes/mem.delete_bytes), with release_storage beside them; mem.free becomes mem.release. The allocator concept's entries stay alloc, grow, resize and free: they are what a provider implements, not what a program calls. arena.reset becomes arena.release, every allocation going back at once. mem.dispose, which gives nothing back and hands the block to the caller, becomes mem.detach. clear, which keeps the storage, is not giving back and stays. A file, directory, socket or child's input is closed with close, suffixed by type where the module holds several, so net.close_socket becomes net.close; waiting for a child or joining a group is not giving back and keeps wait and join.

The alternatives: free throughout, which is C's word for a raw block and reads wrong for a container that also forgets its items; and delete, which suggests destructors Landin does not have.

Pinned by D2129's table, which refuses each old name with its replacement; the library, the corpus and the examples use only the new names.

D2033 — host is the provider; the system's string form is an os_string

The tour said nothing; host names the I/O provider's handle and parameter and the hosted namespace, which are one idea, the system the program runs on, and also the system's form of a path or argument, text.host_string and its family.

Chosen: host keeps the provider, and the string family is renamed: text.host_string, host_over, host_bytes, host_equal, from_host and the builder's append_host become text.os_string, os_string_over, os_string_bytes, os_string_equal, from_os_string and append_os_string, and the environment variable record that D1951's layering moves into core/text becomes text.os_variable. The spelling waits on the maintainer's answer, and this is the default the library review's list is written with.

The alternatives: renaming the provider instead, which every routine's host: parameter would carry; and system_string or native_string, which the maintainer's question offers.

Pinned by negative/library-name-removed-renames, where text.host_string and text.host_bytes are refused naming text.os_string and text.os_string_bytes, by D2129's table.

D2034 — new, used, at, space, cursor and entry each keep one meaning

The tour said nothing; core/README.md's table (D269, D1032) gives each of these a meaning, and some routines use them for another.

Chosen: each keeps the meaning the conventions table gives it, and the departures are renamed. new makes a value without allocating, a provider's handle included (D1032), so mem.new and mem.new_bytes, which allocate, become allocate_item and allocate_bytes (D2032). used lends the initialized prefix, so arena.used, a byte count, becomes arena.length (D2031). at lends a writable slot and get copies, so io.argument_at, which lends one argument read-only, becomes io.argument, and io.variable_at becomes io.variable, the record's own name having moved to text.os_variable (D2033); a parameter named at is a place, a text position, an address, a cell or an instant, and keeps it, as read_at keeps its offset. space is a provider's caller-owned state, so fibre.space, one fibre's saved record, becomes fibre.record. A place in a sequence is a position, as text.position is, so map.cursor becomes map.position, text.cursor, which makes one from an offset, becomes text.from_offset, and the directory's cursor field consumed. An entry is a record a collection holds or lends, the map's pair, the directory's name and the log's note; the table of fibres that fibre/stacks.round_over and events.over take is renamed from entries to fibres. A concept's entry is the language's word and not a library name.

The alternatives: renaming the conventions' own uses instead, which every container would carry; and leaving the departures, which D1953 declined.

Pinned by negative/library-name-removed-field, where the directory's cursor is refused naming consumed, by D2129's table.

D2128 — mem.transfer_prefix is mem.copy_prefix, target first

The discrepancy: D1954 by D1988 puts mem.transfer_prefix's target first, as mem.copy takes into first, and the breaking list noted that its source and target are both storage(item): a call written in the old order would still check, and copy the wrong way, with no refusal to say the order changed.

Chosen: the reordered routine takes a new name, mem.copy_prefix(inout target, source, count), which reads as mem.copy reads, so a call of the old name is refused as a removed name, and its exact fix renames it and swaps its first two arguments when they are written by position. mem.transfer keeps its name in its new order, because its old order is refused as a type mismatch: its index is no storage.

The alternatives: keeping the name and refusing the old order by a parameter label the call must write, which every call would carry; and a check that a call's source differs from its target, which no program could satisfy when both are places of one type.

Pinned by negative/library-name-removed-reorders, whose fix renames the call and swaps its arguments.

D2129 — A library name the breaking list removed is refused naming its successor

Amended by D2180. A routine that kept its name in a new order is refused naming the new order where its arguments' kinds show the old one; elsewhere it is refused as below.

The discrepancy: D1847 asks for a refusal that names the replacement of every removed form, and the breaking list (D1948-D2051) removes library names, which the library no longer declares: a program that wrote one would meet only "has no member", with a respelling to whatever name was near.

Chosen: the compiler keeps one table of the names the list removed, Landin.Modules.Removed, by module and name, and by type or concept and name for a field or concept entry. A qualified name, field, struct value's field or conformance label that resolves to nothing and that the table names is refused with L0696, whose note gives the decision and the replacement. A rename's exact fix writes the new name, and where the successor lives in another module it takes the name the file imports that module as, or adds the module's import after the file's last when nothing in the file binds its name; an atom set that already names the successor, or names an earlier old name of it, loses the member instead, so a merged atom is not named twice. try tree.count_leaves(v, id) becomes tree.leaves(try tree.get(v, id)), and a call of mem.transfer_prefix D2128's call; count_leaves under an else has no fix, since the else recovered a count and tree.get's failure gives none. A program's own module-internal iterable written exactly as [1320] wrote it before D1957 is the breaking list's concepts entry: L0348's fix removes it, writes iter.iterable for each use in its module and imports core/iter. A name whose replacement changes the program's shape, map.end_of_entries, io.writer_of and io.lent_writer, is refused with a note saying what to write and no fix. Only a name that fails to resolve consults the table, so a program's own declaration of an old name keeps its meaning. A routine that kept its name in a new order (D1954) is refused as before, by the type of the argument now out of place.

The alternatives: a migration table read by refine fix alone, which D1847 declined; and leaving the old names declared beside the new ones for a window, which would give each idea two names, the thing D1953 removed.

Pinned by negative/library-name-removed-renames, negative/library-name-removed-moves, negative/library-name-removed-field, negative/library-name-removed-by-hand and negative/for-takes-only-core-iter-iterable, whose fix conforms to iter.iterable.

D2180 — A breaking-list form that still resolves is refused naming its replacement

The discrepancy: D2129 consults the table of removed names only when a name fails to resolve, and four of the breaking list's forms resolve: a routine that kept its name in D1954's new order, mem.transfer, random.shuffle, stacks.round_over, fake.network_over_turns and the io.file_system entry make_temporary; a call's label entries: on stacks.round_over or events.over, which D2034 renamed; io.variable written as a type, which D2008 and D2033 moved to text.os_variable and which now names a routine; and posix.words given a library atom, which D2008 moved to system.words. Each was refused by a type mismatch, an unknown label or "not a type", none of which said the list had changed it.

Chosen: Landin.Modules.Removed keeps each of these beside D2129's rows, and each is refused with L0696, the note naming the decision and what to write. A reordered call is told apart before its arguments are matched, by the kind of value each moved argument is, read only where it is already known without checking: a literal, an any(...) or a name whose type is settled, as a struct, a slice or an array, an any value or an integer. Every argument whose kind is known must fit the old order, and at least one must not fit the new; the fix then writes the arguments in the new order. A call whose kinds do not show it is refused as before, by the argument out of place. A conformance whose function takes make_temporary's parameters in the old order is refused the same way, with no fix: swapping the function's own parameters would put every direct call of it out of order. The entries: label's fix writes fibres:. io.variable in a type position becomes text.os_variable, and the file's first such use adds import core/text when nothing binds it. posix.words given an atom set wider than posix.errno becomes system.words; where hosted/system is not imported, only the file's first call of posix.words carries the import, and a later one has no fix until it is there.

The alternatives: a refusal after the call's own matching, which reports the first argument out of place and would need to undo it; reading the kinds by checking each argument, which would check it twice and report its own errors before the order's; and a fix for the conformance that also swaps every direct call, which reaches past the refused declaration.

Pinned by negative/library-order-removed-calls, whose fix writes each of the five calls in its new order, negative/library-order-removed-conformance, negative/library-label-removed-fibres, negative/library-type-removed-io-variable, whose fix imports core/text once for three uses, and negative/library-words-narrowed, where posix.words of an errno stays.

D1954 — A library routine's parameters come subject first, then capabilities, then inputs

The tour said nothing; R13's conventions (D268-D271) fix parameter names but no order, and "subject first" appears only in D945.

Chosen: a routine takes its subject first, then its capabilities (memory, host, entropy and the like), then its other inputs; a caller parameter, where there is one, comes last. core/README.md's conventions say so, and each departure is on the breaking list. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: capabilities first, so every allocating routine starts with its allocator; and no order rule. Both were declined.

Pinned by check.py's library conventions check, which refuses a capability after an input and a caller before the end in a public routine or concept entry unless its table of departures names it, and the controls LibraryConventions in scripts/tests/test_check_controls.py; D1988 says what the check can see and what it cannot, and the review's breaking list names each routine it changes.

D1988 — How the library's capability rules read where D1948 and D1954 are silent

The decisions said that a routine takes provider: type is C and keeps any C for a value that stores or mixes providers (D1948), and that its parameters come subject, capabilities, inputs, caller (D1954). They did not say what a concept entry takes, which parameter is the subject of a provider's own operation, what counts as a capability, or how a platform binding is ordered, and the library meets each.

Chosen: a concept entry takes another capability as any C, since an erased table holds the entry once and an entry may not take a type of its own (L0010); the public routine over it is generic and erases at the call, as io.make_temporary does. A routine keeps an any C when the parameter is escaping or its result is from it, and a slice of any C mixes providers. The subject is the value the routine reads or changes, a container, a buffer, a builder or a provider's state, and for a provider's own operation, io.read, mem.allocate or io.read_entry, the provider, as an entry's self is; so mem.transfer, which reads source into target, takes target first, as mem.copy takes into. A capability is a memory or host parameter, an any C or a value of a type parameter whose concept is not evidence about a type; the evidence concepts are scalar, exchangeable, equatable, hashable, ordered, formattable and task, whose values are inputs; and a random.generator, a value drawn from as entropy is, stands where a capability stands. Type and fixed parameters come before them all. A platform binding of a system call keeps the system's own order. A full python3 check.py holds every public routine and concept entry of core, hosted and platform to what of this is mechanical: an erased parameter that is not kept, a capability after an input and a caller before the end. It cannot see which parameter is the subject, so mem.transfer and random.shuffle are on the review's breaking list without being in its table. Its table of departures names the routines the breaking list reshapes, and refuses an entry that no longer departs, so it empties as the list is applied.

The alternatives: a concept entry made generic, which the language refuses; an explicit list of capability concepts, which a new capability concept would pass unchecked, where a new evidence concept is named once; and holding the order by review alone, which let four departures stand in modules written after D269.

Pinned by check.py's library conventions check and the controls LibraryConventions in scripts/tests/test_check_controls.py.

D1955 — A locale is an explicit value

The tour said nothing; no library routine consults a locale.

Chosen: a locale is a plain value made from a BCP 47 identifier and passed to each routine that formats or compares by it; the host's preferred locale is read through hosted/system like any other host fact. There is no global or process-wide locale. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: a capability concept with providers of its own; and a process-wide locale set from the host, as C's setlocale. Both were declined: a locale is data, not authority, and an explicit value keeps a result reproducible.

Pinned by nothing that runs yet: the library review's change that applies it adds the check or fixture that holds it, and the breaking list names each routine it changes.

D1956 — core/random, hosted/thread and core/io/fake keep their places

The tour said nothing; D1033 makes a library name public when a program has a use for it, and these three modules are imported only by the compiler's fixtures.

Chosen: all three stay. core/random and hosted/thread each get an example program; core/io/fake is the provider a program's own tests use, and those tests are its consumer. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: moving core/io/fake into the test tree; and retiring whatever gains no example. Both were declined.

Pinned by the examples page's two programs, runtime/example-dice-and-cards, a seeded core/random generator rolling dice and shuffling a deck, and runtime/example-primes-on-threads, primes counted on four hosted/thread threads, each run and compared on every hosted target; core/io/fake keeps the fixtures that already use it as a program's test provider.

D2008 — platform/posix keeps host strings, and hosted/system adapts it to addresses and words

The tour said nothing; D1951 put platform/posix below the protocol concepts as far as its types allow, and left which types those are.

Chosen: the system layer imports no module that reaches core/io or core/net. It keeps core/text for text.host_string, a path's or an argument's bytes as the system gives them, since core/text imports only core/cmp and core/mem and every path in the layer is one; it keeps core/mem and core/atomic, which are below everything. Three things move:

  • An environment variable's record, a name and a value as host strings, is declared in core/text as host_variable, and io.variable is an alias of it, so posix.variable and posix.spawn read and pass one without the I/O concepts. The alias lasts this window: R20's list renames the record and the alias leaves when the list is applied.
  • posix.internet_address and posix.address_of, which took and gave a net.address, become system.internet_address and system.address_of in hosted/system, which turns an address's zone into an interface's number and back. platform/posix lays a record out from numbers, internet_record of an internet_endpoint, its family, octets, port and IPv6 scope, and reads one back with endpoint_of; interface_index and interface_name stay there.
  • posix.reason, an errno or a library failure, becomes system.reason, and system.words words one, passing an errno to posix.words, which now takes an errno alone, and a library atom to failure.words. A match arm names one atom, so system.words names each of failure.reason's atoms in an arm of its own and passes the rest to posix.words: an atom added to failure.reason without its arm is refused there, so the two cannot drift apart.

hosted/system is where D1951 puts the adaptation, and hosted/blocking and hosted/events already import it, so neither keeps a copy.

The alternatives: a path as a byte slice throughout the layer, which changes every path routine and every caller for no layer it removes; the record's numbers adapted in each provider, hosted/blocking and hosted/events, twice; words over errnos with no combined form, which leaves a program whose set mixes errnos and library atoms, runtime/tree-copy's, with D582's problem again; and posix.spawn taking NAME=value strings, which makes its caller build them.

Pinned by runtime/posix-sockets, runtime/posix-non-blocking, runtime/network-connect-within, runtime/events-connect-within and abi/libc-socket-facts, which make and read records through hosted/system; runtime/posix-errno-words, which words an errno with posix.words and an errno and two library atoms with system.words; runtime/tree-copy, whose complain takes system.reason; the environment and spawning fixtures, runtime/environment-variables and runtime/posix-processes among them, which pass io.variable unchanged; and check.py's import control under D1951.

D1959 — caller stays, and the library uses it

The tour said at [1040] that the compiler fills a caller parameter with where the call was written, so assertions and logging need no macros. The library, the examples and the prototypes use it nowhere.

Chosen: it stays, and core gains an assertion or logging routine that takes its call site through a caller parameter, the use [1040] describes. The maintainer chose this on 2026-11-22, answering the library review's questions.

The alternatives: keeping it without a library use; and removing it, though nothing else does its job. Both were declined.

Pinned by positive/caller-parameters and runtime/caller-parameters, which stay, and the library routine's fixture, runtime/panic-require-reports-its-caller (D2051).

D2051 — core/panic gives require over a call_site

The tour said at [1040], as D1959 decided, that core gains an assertion or logging routine taking its call site through caller. It named neither.

Chosen: core/panic declares the struct [1040] gives a caller parameter as panic.call_site, and panic.require(holds: bool, caller where: call_site) -> none, which calls compiler.unreachable(where) when holds is false, so the stop is reported at require's call, or, through a wrapper that passes its own caller on, at the wrapper's. The struct is call_site rather than [1040]'s site because a panic handler's second parameter is a site too, a number ([1670]); the routine is require, the tour's and runtime/caller-site-trap's name for it, since assert suggests a check a build turns off and nothing turns this one off. It is in core/panic because what it does is stop as a failed check does, which is that module's subject, and the module imports nothing.

The alternatives: a logging routine in core/diag taking a caller, which would put a site in every log entry where a text position already is; and core/failure, which is the registry of failure atoms. Both were declined.

Pinned by runtime/panic-require-reports-its-caller, whose trap is reported at the wrapper's call on every hosted product target.