Skip to content
← The design recordTooling and process

Core language probes

Real programs, from an HTTP server to a Vulkan triangle, that test the design and log its gaps.

core-language-probes.md on GitHub →

Core language probes

Twenty-one programs written to put pressure on the parts of elp the original corpus never exercised, plus §16, a scan of the whole corpus run once the write-surface round had landed, and a rubric at §18 for choosing the next ones — which §19 and §20 were chosen by. They are design probes, not specimens — they use constructs the language does not have, written in the most plausible spelling, so the gaps can be read rather than listed.

probewhat it iswhat it stresses
examples/TextSearchBoyer-Moore-Horspool substring searchindexing, integer arithmetic, comparison and logical operators, conditional loops, Map, char
examples/LinkShorteneran HTTP server with a channel-driven storeparallel match, string manipulation, concurrency off the UI thread, a non-client target
examples/Expensesan app that aggregates rather than fetchesgrouping, sorting, percentage arithmetic, optional narrowing, reactivity over computed data
examples/QuadTreea spatial index over a recursive treerecursive value types, mutable paths into an interior node, matching through a reference, multi-line expressions
examples/Undoa notes editor with an undo stack of closuresfunction-typed fields, escaping captures, one value captured twice, recursive closures, value-producing match arms
examples/Workera job pool with graceful shutdownbreak, channel closure, abandoned in-flight requests, cancellation during mutation, multi-consumer channels
examples/Buffera split-pane editor: shared text, per-pane cursorsproved Copy meant two incompatible things; now migrated onto Confined<T>/.alias() so it demonstrates the fix, with whether reading a handle in markup subscribes left open
examples/Sheeta spreadsheet with shared cell stylesfield-wise Copy over four levels; mixed duplication ("copy the values, share the styles") is a domain operation and a derive cannot close it
examples/Pipelinea static-site build fanning out to background workersthe immutable half: Shared<T> as Copy for any T and Sendable when T is, Synchronized<T>'s update/with surface, and a Confined refused at a thread boundary
examples/SqliteBindinga library binding to libsqlite3the FFI boundary: an opaque handle with no declarable duplication semantics, a thread discipline that is a runtime value, no exactly-once release, borrows invalidated by unrelated calls
examples/VulkanTrianglea Vulkan/GLFW trianglesystem resources: scoped release and teardown order, native linking as an allow-list, count-then-fill, an external struct's layout
examples/Playheada real-time audio playhead, ported from a closed-source app and held locallya deadline thread: Atomic<T>, Ring<T>, Opaque<T>, @abi(.C, realtime), and where a deadline body's private state lives
examples/Recalca spreadsheet recalculation graphreference cycles — which cells can be an edge in one, and why an arena dissolves a dependency graph
examples/Interpretera tree-walking interpreter for seven expression formsrecursive value types with no array to hide the indirection, and let rec making a cycle that is in the semantics
examples/LruCachean LRU cache over an insertion-ordered Mapthe canonical weak var site, and why it needs none of it
examples/Editora line editor with an undo stackthe cell write surface, priced per keystroke
examples/Jsona JSON value, lexer, parser, writer, and the @CodeGen macro written in elpthe macro engine — and that an AST has no literal syntax — plus Set, continue, Index, Iterable, char ranges, and building a string
examples/Ledgera double-entry ledger with transfers and holdsa pairwise mutation, and a transform with a failure path in it
examples/Dashboarda live progress view over a worker poolcomposability — five primitives in one place, and the first time the reactive model meets the concurrency model
examples/Rejectedsixteen programs that must not compilesafety — whether the rules refuse what they say they refuse
examples/Untrusteda feed reader over a server it does not controladversarial data — what a ratified decision does when the input is chosen to break it

None of them parse today, and nothing checks that — the hand-written front end and its corpus parse test were removed (docs/README.md), so "the examples and the docs never disagree" is a manual discipline until there is a compiler again.

Why these exist

Every design decision so far has been driven by corpus evidence, and that method found the real errors: the Input(value = name) bug, the inheritance/defaults conflict, frequency-as-prelude-criterion. The original corpus cannot drive the expression language, because it barely computes — across 24 files there are eight != (all of them != nil), one +=, zero ==, zero &&/||, zero comparisons, and three collection calls.

These put that right before the decisions get made, not after.


1. Operators — resolved

Designed in operators.md. Operators are interface methods (a + b is a.add(b)), the set is fixed with no user-defined operators, &&/||/ !/?? are non-overloadable fixed forms because they short-circuit, there is no ===, and narrowing through &&/|| is sound because cells are thread-confined and a turn is not preemptible.

Expenses has been updated to show it: Money implements Copy + Add + Equatable, and sum = sum + expense.amount where it previously read sum = sum.plus(expense.amount).

compareTo now returns a three-valued Ordering enum rather than an int, and Money implements Comparable is the corpus's first example of it — expense.amount > biggest.amount in stats.largest, and a descending comparator in stats.breakdown.

Correcting that also found that Comparable: Equatable + Hashable in interfaces.md was a syntax demonstration being read as a stdlib specification: ordering and hashing are orthogonal, and Hashable had no definition anywhere, so Comparable was unimplementable as written. Now Comparable: Equatable.

Still open there: a[i] = v as an assignable index, and the numeric tower.

Hashable still has no definition, and Map needs one — see the collections section below.

2. Conditional loops — resolved

Resolved in control-flow.md: while, break and continue exist; loop and labels do not, with the costs of each absence stated. The three sub-items below are answered too — a range is an iterable and a pattern (collections.md, "same token, two constructs"), for takes a pattern so multiple bindings are record destructuring (patterns.md), and break has its evidence at last in examples/LruCache FINDING 3. The original entry:

grammar-script-notes.md has this open as gap #2. Boyer-Moore settles whether it is needed: the outer loop advances offset by a computed skip distance, not by one, so no counted for expresses it.

while offset <= h - n {
	...
	offset += self.skipFor(text[offset + n - 1])
}

Also unresolved around loops:

  • for i in 0..n - 1 uses a range as an iterable expression. The corpus only ever uses .. as a match pattern (400..499). Are they the same construct?
  • for category, amount in byCategory(expenses) destructures a two-value iteration. Does for take multiple bindings, and does iterating a Map yield pairs?
  • break and continue appear nowhere, in the old corpus or the new. Both probes were writable without them, which is weak evidence they can wait.

3. Collections — resolved

Designed in collections.md. Hashable: Equatable now has a definition (it takes a seeded Hasher rather than returning an int, so hash flooding is defensible on a server target), Map is insertion-ordered so compile-time macros emit deterministic code, [] traps while get returns Optional, and the iteration protocol covers arrays, Map, ranges and channels alike.

Two things the probes forced that were not on the list:

  • &var self — map.set(k, v) mutates its receiver and elp had no spelling for a mutating method. memory-model.md only established that component methods never need one. Interfaces force it to be explicit, since Iterator.next has no body to infer from.
  • _ is the only catch-all. The corpus spelled it .. twice and _ three times, and .. actively conflicts with range syntax. Both .. sites migrated.

Iterable's accidental existential is resolved too — dispatch.md adds associated types, so the iterator's type is named in the contract. Still open: a[i] = v, and whether two-binding for generalises past Entry.

4. Strings and char — resolved

Char was a type the language did not have, and TextSearch could not be written without deciding what it is: a byte, a Unicode scalar, or a grapheme cluster.

Resolved by strings.md: char is one Unicode scalar value, string is an immutable sequence of them with a guaranteed UTF-8 representation, and == is scalar-wise with no implicit normalization. The deciding argument was determinism across the three targets, which is the same one that made Map insertion-ordered — grapheme segmentation and normalization tables are Unicode-version-dependent and the targets ship different Unicode versions.

One finding worth keeping: this probe never indexes a string. It calls haystack.chars() and indexes the resulting [char], so the hardest question in the area — whether s[i] exists — turned out to have no corpus demand at all.

Methods the probes assume: chars, length, slice, split, trim, startsWith, contains, replace, padStart, padEnd, toInt. These are stdlib surface, not language design.

Interpolation already exists in the old corpus, but only for a bare identifier ("{id}"). The probes interpolate expressions:

"{row.total.toString()}  {row.share}%"

so the grammar inside {} needs settling, along with how a literal { or a trailing % escapes.

5. Optional ergonomics

The highest-value area, since 8 of 8 comparisons in the old corpus are nil checks.

Matching an optional

The probes write:

match links.get(code) {
	nil  -> reply.send(Err(StoreError.NOT_FOUND(code)))
	link -> { ... }
}

That assumes a bare identifier arm binds the non-nil case. It reads well and it is not obviously sound — it collides with matching on a plain value, and there is no precedent for it in the corpus, which only ever matches Ok/Err.

Flow narrowing is load-bearing

stats.largest is the clearest case:

if biggest == nil || expense.amount.cents > biggest.amount.cents {

For the right-hand side to typecheck, the compiler must know biggest is non-nil because the left-hand side was false. Same again in entry-form.velp, where if err != nil { Text(err) } passes an Optional<string> where a string is wanted.

Narrowing through || and && is a real commitment, and it is the thing that decides whether ?. and ?? are conveniences or the only way to touch an optional. Worth deciding deliberately rather than discovering during implementation.

6. Tuples — resolved

LinkShortener/main.elp routes by matching method and path together:

match (req.method, req.path) {
	(.GET,  "/")      -> Response.text(.OK, "link shortener")
	(.POST, "/links") -> createLink(req, store)
	(.GET,  path)     -> followLink(path, store)
	_                 -> ...
}

and entry-form.velp matches a pair of parse results the same way. Without the shape the route table becomes a nested match on method with a path match inside each arm, which triples the line count and buries the thing a reader came to find.

Resolved by patterns.md, and the answer is narrower than the gap suggested: the language gains no tuple type. (a, b) is a match scrutinee form only — not a value, not returnable, not nameable. Both corpus sites are exactly that, so nothing enters the type system. The same document rules that destructuring is named rather than positional, which migrates stats.elp's for category, amount in ....

7. Function values — resolved

Used heavily, spelled by analogy with the corpus's fn { dispatch(...) }:

Server.listen(PORT, fn (req) { route(req, store) })
Picker(&category, options = Category.all(), label = fn (c) { c.label() })

All three open points are settled in functions.md:

  • Parameter types are inferred from the expected type. That is not the pathology mandatory type arguments were adopted to avoid: there is exactly one expected function type at the position, so it is propagation rather than constraint solving.
  • The type spelling is fn(T1, T2) -> R, with no parameter names — a function value has no overload set, so a label would have nothing to disambiguate.
  • return in a closure returns from the closure, as in Swift and Rust, not from the enclosing function as in Ruby. And return is now required in a closure that produces a value, which migrated nine corpus sites.

Two further decisions came out of it: a *fn callback prop is required (an optional one is an ordinary prop with an Optional<fn(...)> type, which migrated login-form.velp), and a bound method reference is not a value — fn (x) { return money.add(x) } makes the capture visible where money.add would hide it.

Still open, both from examples/Undo: a capture that outlives its frame, and one value captured by two closures at once.

7b. The second round of probes

The first three probes were written because the original corpus could not drive expression design. These three were written because it could not drive data shape, lifetime or shutdown design, and they were chosen over a suggested list that mixed design probes with compiler-robustness tests. Malformed syntax, recursive macro expansion and deliberately deep generics all target a compiler that does not exist; they belong in crates/parser/test_projects/, and the corpus parse test actively requires an examples/ file to fail parsing, so they would assert nothing here.

Recursive value types have no spelling — resolved

The largest hole any probe has found, and it was not on the suggested list.

Resolved in memory-model.md, "A recursive value type needs an indirection, not a box": indirect is a modifier on a field declaration, required and never inferred, and the box is immutable — so the field's type is unchanged, the containing type's tier is unchanged, and no type is added to the language. Two corrections the probe below made to this entry before it was closed: QuadNode<T> is not evidence for the gap (both variants hold an array, so the indirection is already there), and the evidence that closed it is examples/Interpreter's Expr, which holds two Expr directly.

export enum QuadNode<T> {
	LEAF { entries [Entry<T>] },
	BRANCH { children [QuadNode<T>] },
}

A BRANCH contains four QuadNodes, each of which may contain four more, so as a value type it has no size and cannot be laid out. Every value-semantics language needs a marker for "this field is behind an indirection" — Rust's Box<Node>, C++'s pointer — or sidesteps it by making the recursive case a reference type, which is Swift's class.

memory-model.md has Copy, Move, Protected and Binding<T> and not one of them says "boxed". This is not a corner case: every tree, linked list, AST and JSON value is this shape, and BlogStyle already wants a JSON type.

Mutable paths into an interior node

collections.md introduced &var self for a mutating receiver, always for the whole receiver. QuadTree.insert holds &var self and then needs &var to a node inside self.root:

return insertInto<T>(&var self.root, &self.bounds, at, value)

Nothing says whether &var self.root exists, what stops two such paths being live at once, or what &var to a local (&var found in query) and a re-borrow of a &var parameter mean. Cell-thread confinement does not help: it rules out interleaving, and this is straight-line aliasing inside one turn.

What re-running it under the transform-closure hypothesis found

examples/QuadTree/tree-places.elp rewrites the whole tree using only &var self, &var T as a parameter, and an update(fn (&var T) -> R) -> R on cells and collection elements — with &var self.root, &var children[i] and *node = … forbidden, so that the result means something. The prediction in memory-model.md, "One hole, reported nine times", was that recursion supplies the depth and no projection syntax is needed. It holds, and the gaps move:

  • GAP 2 reframes. The corpus already relies on receiver-position projection, in every file, undeclared — self.nodes.set(at, node) is a mutating method on a field, so it needs &var self.nodes. The language has projection in one position; Finding 4 forbade the parameter spelling of what receiver syntax already does. Both halves have since moved: the parameter spelling is ratified, and projection through a field is granted in either position (Finding 4's third amendment, rule 6).
  • GAP 4 resolves by precedent. With the function as a method on the node, the spelling is self = .BRANCH { … }. Rust permits *self = … with &mut self, Swift permits self = … in a mutating method. It only looked hard because the function was free and the value arrived as a parameter.
  • GAP 5 resolves outright — &var found is the queued parameter spelling and nothing else is needed.
  • GAP 3 is promoted to a prerequisite rather than a peer. The hypothesis does not fix matching through a reference, it depends on it.
  • GAP 1 is independent, and this probe is not its evidence. Both QuadNode<T> variants hold an array, and an array must be a heap buffer to grow, so the indirection is already there and the enum lays out fine. The type that needs GAP 1's answer has a direct recursive field (var next Optional<ListNode>), and no probe holds one.

And four things that were not predicted:

  • A mutating method on a collection element is an invisible no-op today. children[i].insert(…) mutates a copy, and no written rule forbids it. memory-model.md chose values-not-places so that "an API that forgets the write-back is a visible no-op rather than an invisible aliasing bug" — a mutating method on an element is the invisible kind, and the rule does not reach it. tree.elp itself does this in split and flagged five other gaps without noticing.
  • The read side has its own hole, and copy-on-write is what fills it. children[i] being a copy is an invisible no-op when writing and correct and quadratic when reading: copying a QuadNode<T> copies a subtree, once per level, for a walk that mutates nothing. Under CoW it is O(1) and the walk never writes, so no copy is ever made. That is a reason to want CoW entirely independent of the write surface, and a stronger one.
  • GAP 8 — and the helper that would hide it cannot be written. Putting the indexed read behind childAt(i) -> &Self fails three ways at once: a LEAF has no child, Optional<&Self> is barred because a field may not hold a borrow, and there is no unreachable expression — which is why tree.elp:113 returns a bogus false with a comment. [] trapping and get returning an Optional is the answer for a value; neither form exists for a borrow.
  • The transform cannot be pure, which leans a fork examples/Recalc left open. See §12 finding 18.

Matching through a reference

Every corpus match so far scrutinised an owned value. insertInto matches node &var QuadNode<T>, so entries in the LEAF arm has to bind a borrow — otherwise the match copies the payload and the entries.append(...) below it is lost. patterns.md settled how a record pattern binds names and said nothing about ownership.

Captures that outlive their frame

Every closure in the first three probes was called immediately or lived exactly as long as its component. Undo's do not:

export fn Edit.insert(at int, line string) -> Self {
	return Self {
		apply  = fn (doc) { doc.lines.insert(at, line) },
		revert = fn (doc) { doc.lines.remove(at) },
	}
}

at and line are parameters of a function that has already returned. And Edit.composite captures one [Edit] in two closures at once — a closure is not Copy, so neither is [Edit], so capturing it is a move and the same value cannot move twice. Either non-Copy captures are implicitly shared, which contradicts how explicit the memory model is everywhere else, or that function is illegal.

A recursive closure cannot name itself

const retry = fn {
	if !body() && remaining > 0 {
		remaining -= 1
		retry()
	}
}

retry is not bound until the literal finishes evaluating, so the body cannot see it. Rust refuses this for closures outright; JavaScript allows it because the binding is in scope by the time the body runs. Whichever way elp goes, the rule has to interact with const meaning immutable.

There is no break

The corpus contains while and for and not one break or continue. Worker's shutdown arm has to stop its message loop, and the only exit available is return from the enclosing closure — which is simultaneously the loop exit and the coroutine's end. It works only because the loop happens to be the closure's last statement, and it rules out the drain-then-exit phase that GAP 5 below needs.

Channel shutdown is entirely undesigned

LinkShortener declares a SHUTDOWN variant and never sends one, so nothing was ever forced. Worker sends it, and four questions fall out in the ten lines after it arrives:

  • What does send to a closed channel do — error, trap, or drop? A worker mid-job will report COMPLETED after the supervisor has gone.
  • What does send to a full channel do — block or fail? main behaves very differently under each.
  • In-flight requests are abandoned. A caller blocked in reply.receive() whose SUBMIT sits behind the SHUTDOWN is never answered. PoolError.ABANDONED exists for them and there is no way to send it, because the only code that could is the loop that just stopped. A reply channel with no writer left is a deadlock, not an error, and nothing in the signature says so.
  • Is Channel<T> multi-consumer? Four workers iterate one work channel and each message must reach exactly one of them. That is a different guarantee from broadcast and LinkShortener's single consumer never had to state it.

Cancellation during mutation, on a target with no cell thread

Worker's shutdown arm marks every queued job CANCELLED while a worker may be concurrently finishing one of them and about to report DONE for the same id. On the three client targets reactivity.md's cell-thread confinement rules that out; Worker is kind = .Binary with no UI thread, so the guarantee does not exist and this is a real race on states.

This is the standing open question "the server has no UI thread for cell confinement" arriving as a concrete bug rather than a note.

Two questions the probes raise about existing decisions

Does a { } match arm produce a value? Resolved by patterns.md, "match is an expression, and an arm produces a value" — a block arm's value is its final expression, and History.undo is the worked example there. The paired question, implicit return in a closure body, was answered the other way: return is required in a closure that produces a value (functions.md), and patterns.md explains why the asymmetry is forced rather than chosen. This entry was never updated.

May an expression span a line break? The lexer emits a Newline token, so this is significant:

return p.x >= self.minX && p.x < self.maxX
	&& p.y >= self.minY && p.y < self.maxY

Python continues inside brackets, Swift and Kotlin continue when the line cannot yet be a complete statement, Go inserts semicolons and forbids it. Under Go's rule QuadTree/types/geometry.elp does not compile.

8. Findings that are not about expressions

These surfaced while writing the probes and belong to other docs.

A hyphen in a module path does not lex — resolved

main.velp contains import { EntryForm } from .components.entry-form, for the file components/entry-form.velp. That tokenises as entry - form.

The old corpus has login-form.velp and never imports it, so the collision was latent the whole time. examples/VulkanTriangle/internal/vk-types.elp is the second witness and the worse one: three files import it, so the path is load-bearing rather than decorative.

Resolved in name-resolution.md: a path segment may contain internal hyphens. It needs no lexer mode, because the thing after from is a path and never an expression, so the path parser accepts Ident (Minus Ident)* as one adjacent segment and - keeps meaning subtraction everywhere it could. And it is not an exception to the no-magic rule — that doc already said a path segment is a file, so a segment was never an identifier. examples/BlogStyle's [postId].velp makes the same point harder, and the corpus shows the workaround people reach for without the rule: components/feeditem.velp, spelling FeedItem run together because no separator worked.

Rejected: mapping a hyphenated name to .entryForm or .entry_form automatically, because two spellings for one file means two module paths and one-file-per-module-path is what keys the no-cycles graph. Picking one still breaks grep both ways and is not injective.

What a filename may contain otherwise is still open, and is a routing question rather than a lexing one.

The server has no UI thread

reactivity.md confines cells to one logical thread, justified by that thread being the platform UI thread on all three targets. A server has no UI thread, so the confinement has nothing to attach to. store.elp sidesteps this with a channel-driven actor rather than answering it — one task owns the Map and everyone else sends messages.

.Server is not a target — resolved

targets was conflating where a package runs with what it produces. A kind key (.App by default, .Binary, .Library) splits them; recorded in name-resolution.md. LinkShortener is now kind = .Binary, targets = [.macOS, .Linux], and TextSearch is kind = .Library with no targets at all.

Mutating a value taken out of a collection — resolved

A value read out of a collection is a copy, and the write-back is required and explicit. Recorded in memory-model.md.

The verbosity is accepted on purpose: a cheaper spelling can be built in elp later, whereas a rule that hands out hidden aliases cannot be walked back.

Two bugs the probes found in the old corpus

Both now fixed, and both followed from rules already ratified rather than from anything new.

A blocking fetch in a component body. SocialFeed/screens/home.velp called loadFeed() as a bare statement in the component body. Under Model B the body runs once at mount, so it was not a render loop — it was worse. The call blocks the cell thread for the whole fetch, and loading goes back to false before the first render, which makes the Loading(spin = true) branch below it unreachable. Wrapped in effect, which is what a component-scoped coroutine is for.

Enum shorthand missing in value position. contentType = Multipart (SocialFeed) and contentType = JSON (BlogStyle) named bare identifiers that are neither imported nor package-rooted. They are enum variants, so they take the leading dot the corpus uses everywhere else: .Multipart, .JSON.

JSON in type position is still unimported

@CodeGen(Codec<JSON>) appears in four files and JSON is imported in none of them. Unlike the value position above, this one cannot be fixed yet: JSON is a type here, so under the atmospheric criterion it needs an import, and which stdlib module exports it is part of the undecided stdlib layout.

Codec is imported twice, from two modules — resolved

One namespace holds every importable name, and collisions are fixed with as regardless of what kind of thing collides. Recorded in name-resolution.md.

Applying it exposed the actual bug: @CodeGen was invoked nine times and never imported, while the interfaces passed to it were imported from elp.macros. Fixed in four files.

The corpus promises a type switch that does not exist

BlogStyle/internal/api.elp comments that a function returning Either<Content, Error> can be matched "at the call site … to work out whether it was an ApiError or a SerializationError". Matching an interface-typed value by its concrete type is a distinct construct from matching an enum's variants, and the language has neither the syntax nor a decision about it. It is also exactly where a mandatory catch-all applies, since implementors of an interface cannot be enumerated.

Stdlib module layout, again

The probes invent elp.http, elp.storage, elp.concurrent and elp.ui.font. This is the same gap name-resolution.md already records (four roots for Text in the old corpus), now with four more guesses on top of it.


9. Aliasing — resolved, and the two probes that closed it

Designed in aliasing.md. examples/Buffer proved that Copy meant two incompatible things; examples/Sheet tested the fix by depth; examples/Pipeline and examples/SqliteBinding were written afterwards, because the decision had two outcomes with no corpus witness at all.

Why two more probes rather than none

Buffer and Sheet both share mutably, so both migrated onto Confined<T> and left Shared<T> — the one type in aliasing.md carrying a conditional conformance that has to be sound — with zero users. A type nothing uses is a type nothing has tested, and the claim being made about it ("Sendable when T is") is the claim the whole concurrency story rests on.

And unsafe being FFI-only is what makes everything else in aliasing.md inferable: mutable aliasing is obtainable nowhere else, so field-wise conformance always sees it. That assumption is load-bearing and had no probe either.

What examples/Pipeline found

A kind = .Binary build pipeline on macOS and Linux, so there is no cell thread and every rule that leans on confinement has to say what it does.

  1. Shared<T> makes its holder more duplicable, not less. Config is Move (it holds a [string]), yet Settings holding a Shared<Config> is Copy. That is the one case a handle improves the holder's tier, and it is the reason Shared<T> has to be a separate type rather than a mode of Confined<T>.
  2. .get() returns &T, and nobody had said so. Written -> Config first, which cannot work — it would move the referent out of the cell and leave every other holder pointing at nothing. The borrow's lifetime is still open, and it has to answer to the same "a call ends the turn" rule as narrowing.
  3. Synchronized<T>'s surface is two closures, not one. aliasing.md proposed .with(fn (v &var T) { ... }), which needed a &var T parameter spelling that memory-model.md Finding 4 deliberately rejected, plus whole-value assignment through a reference, which is QuadTree's GAP 4. Splitting it by direction — update(fn (T) -> T) and read(fn (&T) -> R) -> R (spelled with at the time) — needed neither, could not forget to write back, and made the critical section total. Both blockers are now gone, so update has been widened to fn (&var T) -> R and the split survives for a different reason: a Synchronized<T> has no .get(), so read is how it is read.
  4. background has no join. The fan-out loop never collects anything to wait on, so snapshot() reads before the workers finish. reactivity.md says background blocks its caller, which works for one call and not for a loop of them. Worker reaches this wall from the channel side; this reaches it from the background side.

What examples/SqliteBinding found

The FFI boundary, and the first thing in the corpus that aliasing.md cannot answer even in principle.

  1. An opaque handle has no declarable duplication semantics. Resolved, and the finding was mis-diagnosed. It said field-wise Copy had "no fields to be wise about" — but db.elp held the handle as &Sqlite3, and memory-model.md Finding 6 makes &T unconditionally Copy. The rule looked, applied, and said yes: Connection was Copy-eligible, and Connection implements Move was the author declining a Copy the compiler would have granted. A soundness bug in a decided rule, not a gap in an undesigned corner.

    aliasing.md closes it in three parts, with no new vocabulary: a field may not hold a borrow (the corpus had exactly two, both these handles); a foreign handle is a value rather than a borrow, since nothing in the program owns the pointee; and an @external type must declare its tier, because zero fields makes field-wise vacuously satisfied and the derivation's answer is Copy. Then Connection implements Move is a conclusion, exactly as Style implements Move is.

    Two of the three questions the probe asked turned out to need no syntax: duplication is the conformance, and thread-crossing is Sendable. That retired a strawman putting both in @external's arguments as duplication = .aliasing, threads = .confined — a parallel vocabulary for what Move/Copy/Duplicate already say.

    And one thing it forced into the open: sqlite3* is the easy case. GLFW and Vulkan hand back handles they own and never take back — VkQueue, VkPhysicalDevice, GLFWmonitor* — for which Copy is the right tier, not Move. Same rule, opposite answer, which is the strongest argument for a mandatory declaration over a default. What those handles do not get from a tier is validity: a VkQueue is alive only while its VkDevice is, and Vulkan's handles form a strict ownership tree where every edge is a constraint elp cannot express. That is finding 4 below, far larger than one Statement/Connection pair made it look.

  2. The thread discipline is a runtime value, and Confined/Synchronized is a static distinction. sqlite3_threadsafe() reports which of three modes libsqlite3 was built with, and the answer is not knowable when elp compiles. Nothing in aliasing.md, reactivity.md or dispatch.md covers a capability that is real but not statically known. This is new, and it is the sharpest finding in either probe.

  3. Move gives at-most-once release, never at-least-once. A dropped Connection leaks the C allocation and nothing notices. elp has no destructors, no defer, nothing at scope exit. The smallest candidate is a scoped form — and it is worth noting that Synchronized<T>'s update/read are the same shape, a resource borrowed for one block, arrived at independently. Answered, and with less than this probe assumed: defer db.release(), where release takes &self. A statement form was designed and then deleted; memory-model.md, "Release".

  4. A borrow invalidated by an unrelated call cannot be typed. sqlite3_column_text returns a pointer killed by the next step on the same statement. elp's borrows are scoped to a single call — whether inferred, as Finding 4 originally had it, or declared, as its third amendment now has it — and neither can express a constraint spanning two. Rust needs a hand-written lifetime; elp has no lifetime parameters, which also means Statement cannot be tied to its Connection.

  5. A C callback cannot be an elp closure, because elp closures capture and a capturing closure has no C representation — which is why the C API carries a void* for state in the first place.

    Followed up, and it was a bigger hole than it looked. Asking what a playback callback writing a caret position would take — FluidSynth shaped, a C library calling into elp on its own audio thread — found that elp could not receive a C callback at all: no outbound calling convention, and no way to hand C a pointer to elp state. Both closed in functions.md ("A C function pointer, in both directions") for less than expected: inside an @external block fn(A, B) -> R is a C function pointer, because that block is already a context that re-reads the types in it, and only the definition side needed a marker, @abi(.C). The closure restriction above then stops being a rule and becomes an observation — a C function pointer carries no environment, so there is nowhere for captures to live.

    The thread question needed nothing new either: a foreign callback body is checked exactly as a background body is (aliasing.md), so Confined<T> is refused and anything elp also reads must be Synchronized<T>. Unconditionally, because the ABI does not say which thread calls — which costs a synchronous comparator callback access to confined state, and connects to finding 7 of §10.

    What it exposed, and what closed next: Synchronized<T> is a mutex, and a real-time audio callback must not take a lock — so elp could write a safe audio callback and not yet a correct one. Closed by aliasing.md's Atomic<T>, a third cell kind restricted to word-sized T, sequentially consistent with no orderings exposed, plus @abi(.C, realtime) in functions.md to make the guarantee mean something. The boundary table did not change, which is the test of whether Opaque<T> was drawn at the right level: it names how C sees a thing, the cell kind names the discipline, and the two stay orthogonal.

    Two hazards worth recording because they are not the obvious ones. A refcount decrement reaching zero deallocates, so a deadline thread must never hold the last handle to anything — which the no-retain rule on Opaque<T> already guaranteed, for a reason it was not chosen for. And a CAS retry loop is unbounded in the worst case, which is why Atomic<T> is load/store rather than a transform even though its siblings are transforms.

    Still open, and the one that cost the most time in practice: a single-producer/single-consumer ring buffer. Not the atomics — the invalidations, and the difficulty of seeing from the source which thread produces what.

  6. A native dependency is not a package dependency. Resolved in name-resolution.md, "Native libraries": three questions, three places. links on @Package is an allow-list — the complete native surface a package may reach, in one reviewable file; @external's arguments say which allowed library a symbol comes from; and .native(...) in dependencies stays for the other kind, a library the build actually acquires, which has the full version algebra a system library has none of.

    It also partly answers an older open item: a .Library normally takes no targets, but one with a links entry does, because .Web has no shared libraries — and those constraints propagate to consumers.

    One thing it opened and did not close. minimumVersion on a system dynamic library is unenforceable at build time, so it is a probe where one exists or a promise the code must verify — the same "declared statically, knowable only at runtime" shape as finding 2, which makes it a pattern.

  7. CString and OpaqueHandle are invented in the probe and belong in the stdlib. strings.md makes string a sequence of Unicode scalar values with guaranteed UTF-8; a const char * is bytes with a terminator and no encoding guarantee, so conversion is fallible one way and allocating the other, and strings.md's open byte-access question is on the critical path for any FFI at all. OpaqueHandle stands in for void* / T**, which is the thing the type system exists to prevent, needed in exactly one place. Finding 8 below turns this from tidy-up into a prerequisite.

  8. Symbol collisions have no orphan rule. Resolved, by moving the uniqueness a level up. Two packages could each declare sqlite3_open with a different signature, each locally correct, and the linker would give both the same address. The orphan rule cannot reach it because there is no contract on the far side of a shared library: it works by naming an owner, and nobody owns a C symbol.

    So name-resolution.md makes a links entry exclusive across a program — the symbol has no owner, but a library has exactly one claimant — which is the orphan rule's shape moved from the type to the package, and is the rule Cargo reached under the same key name. A whole-program agreement check covers what exclusivity leaves, and elp can afford one because resolution is already global where Rust's is per-crate.

    It opened one of its own and sharpened another: the agreement check cannot compare elp types, because each package declares its own CString and OpaqueHandle, so either it compares ABI or those types must be stdlib's — which turns finding 7 from tidy-up into a prerequisite.

  9. library = "sqlite3" fourteen times. Resolved by macros.md, and the resolution needed no new rule. A macro is not an entry in the program; it receives the AST of what follows it and generates the declarations the program contains. A declaration list is an AST node, so a macro may be handed one, and the attribute is written once.

    The probe had rejected grouping on the grounds that it would be a new declaration shape, which is what @external being an attribute was supposed to avoid. That was about the wrong thing: the grouping form is not a form of @external, it is what a macro's input may be — so no FFI content, and @CodeGen(Copy) { ... } gets it for the same reason.

    Two things the framing fixed that an intermediate draft got wrong. It had called the block "the language's one non-scoping brace" and invented rules against distributing export and against nested attributes merging. None of those exist: the braces are not in the program, so there is no scope to carve an exception for; the macro copies the export it was handed; and nesting is the macro's business, not the language's. It had also made the block a desugaring into N copies of the attribute, which gave up group-spanning codegen — three types plus an enum over them plus one dispatch table — for safety that a macro's own signature provides anyway.

    The general lesson: the repetition read as an argument for weakening the attribute's own rules (a conditional library =, which this language refuses everywhere else) and was really a question about what a macro may be handed.

Plus one smaller thing worth naming: a by-value receiver (fn Connection.close(self)) is exactly what a consuming method needs, and functions.md has only &self and &var self.

And one correction this probe produced about itself. Its first draft invented an extern keyword. That was wrong twice: @external(.OBJC) already exists (BlogStyle/internal/api.elp) with parser support for body-less declarations, and reactivity.md rejects new lowercase intrinsic keywords as policy — it is why &mut is not a spelling either. Migrating to @external also dissolved a gap the draft had listed: there is no question of where unsafe goes, because @external is the marker and links bounds what it can reach.


10. System resources — examples/VulkanTriangle

A Vulkan triangle in a GLFW window, kind = .Binary. Written because examples/SqliteBinding turned out to be the easy case: one library, one handle you own, scalars across the boundary. This is two libraries that reference each other's types, a five-deep handle tree with release ordering, C structs built in elp and read by a driver, out-parameters that must be called twice, and functions that do not exist until the driver is asked for them by name.

What it confirmed

The owned/borrowed split in aliasing.md is real, and not a SQLite quirk. window.elp holds the two rows side by side: Window wrapping a GLFWwindow is Move, Monitor wrapping a GLFWmonitor is Copy, and neither file argues for its tier — both are conclusions from a boundary declaration plus field-wise Copy. Vulkan then splits the same way inside one API: VkInstance/VkDevice/VkSwapchainKHR are Move, and VkPhysicalDevice/VkQueue/VkCommandBuffer are Copy. One rule, opposite answers, in one file — which is the strongest argument yet that the mandatory declaration beats a default in either direction.

Exclusivity buys more than it was argued for. links was made an exclusive claim to stop two packages declaring one symbol differently. glfwCreateWindowSurface takes a VkInstance, so the GLFW binding must import the Vulkan binding — and exclusivity is what guarantees there is exactly one VkInstance type in the program to import. Multi-library FFI works because of a rule adopted for a different reason.

What it resolved

  1. A links entry's first argument is a logical name. Vulkan is libvulkan.so.1 on Linux and libMoltenVK.dylib on macOS — same symbols, different file — so condition covered the manifest and broke the declarations, which refer to the library by name. soname is now separate and defaults to the logical name. The allow-list is keyed on the logical name, so two conditional entries are one claim.
  2. scripts on @Package runs an external process at a build stage, with mandatory inputs and outputs. That is the deliberate divergence from Cargo's build.rs: declaring them makes a script a function of its inputs, so it is skippable, cacheable and parallel, rather than re-running on any change unless it opts out from inside itself. It is also where impurity is allowed to live, which is what lets macros.md keep compile-time elp pure.

What it found that is new

  1. An @external type with fields needs a layout guarantee. Every previous external type was opaque, which is what let aliasing.md say field-wise Copy is vacuous for them. A VkInstanceCreateInfo is filled in elp and read by the driver at a C ABI, so object's freedom to reorder and pack fields — correct and valuable for elp-only types — is a crash here.

  2. sType/pNext is a heterogeneous intrusive list with no spelling. Every Vulkan struct starts with a tag and a nullable pointer to a struct of a different type, each with its own tag and pointer. It is a tagged union threaded through pointers and assembled by the caller. elp's enum is the right shape and the wrong representation. The one place this probe needs a new language feature rather than a new rule.

  3. Copy and Sendable come apart, in the direction nothing has needed. A VkQueue is Copy — correctly, it is a pointer you never release — and Vulkan queues are explicitly not thread-safe, so it crosses into background with no syntax and two threads submitting to one queue is undefined behaviour. Everywhere else in the corpus a Copy type is trivially Sendable because it is plain data. This needs a Copy type that declines Sendable, which is legal and unprecedented here.

  4. A field can outlive a sibling field. Renderer is Move, so the object cannot be duplicated — and renderer.graphics is a Copy VkQueue that can be read out and copied anywhere, pointing at something owned by renderer.device. Field-wise Copy protects the aggregate and not the members. For Confined<T> that asymmetry is fine, because reading a handle out keeps the cell alive; a foreign handle keeps nothing alive. The sharpest form of the validity gap in the corpus.

  5. Main-thread affinity is a property of a call, not of a value. glfwPollEvents must run on the macOS main thread or it aborts. Sendable answers may this value cross a thread?; the constraint here is this function must run on one specific thread. reactivity.md has thread affinity only for data, via the cell thread, which a .Binary does not have — so a .Binary on macOS has an affinity requirement the language cannot state. Swift's answer is @MainActor, already noted there as a comparison and declined.

  6. The count-then-fill out-parameter needs a place. Resolved in memory-model.md, "Buffer<T> — contiguous storage": a type whose purpose is an addressable extent, distinct from [T] so that "collections hold values, not places" keeps its unqualified form. The answer turned out to be the scalar rule at a second arity rather than a new mechanism — &Optional<T> for one slot, &Buffer<Optional<T>> for n — leaning on a layout promise vkCreateInstance had already needed. Because length can only grow by supplying every element, there is no uninitialised memory and no operation that asserts there isn't, which matters here specifically because unsafe is an FFI-only concept with no block form and an assert-initialised operation would have nowhere to live.

    Two things it opened. The nullable first call is still unspellable, and that is the honest signal that one C symbol is two operations — so the fix is two declarations over one symbol (symbol = on @external), not a nullable borrow. And deciding where an address may exist at all produced a principle worth more than the feature: C may hold the address of elp memory only where that memory is out-of-line and kept alive by something other than a stack frame. Two things qualify — a Buffer<T>'s elements and a cell's contents — so "address of a local" is not missing, it is unsound here, and now something says why.

  7. Extension functions are loaded by name and called as values. vkGetInstanceProcAddr returns a generic function pointer to cast. There is no symbol for the allow-list to check, and the result is a function value with a C ABI, which functions.md says nothing about — fn(T) -> R carries no calling convention. It is also not exotic: the debug messenger and vkDestroySurfaceKHR are both only reachable this way, so renderer.elp leaks its surface because two unspellable things compose.

  8. Teardown ordering is the specification and the types permit every permutation. vkDeviceWaitIdle before everything, swapchain before device, device before instance, renderer before window across two files and two libraries. Move gives at-most-once and imposes no order. And every throw on the construction path leaks everything built before it — five handles deep, one leak site per step, which is C's goto fail ladder and what Rust's Drop handles on the error path.

The construct three unrelated probes have now asked for — designed

A scoped form was reached for independently by SqliteBinding (exactly-once release), VulkanTriangle (the teardown ladder and GLFW's handle-less init/terminate), and noted in aliasing.md as the same shape as Synchronized<T>'s update/read.

Answered in memory-model.md, "Release", and the answer went through a construct on the way to not needing one. with expr as x { } was designed — multiple bindings released in reverse, a Scoped interface whose release(self) the compiler called at every exit — and deleted eleven days later, because the whole keyword rested on release taking self by value. With release(&self), defer x.release() is the answer and defer already existed. It is release at a brace rather than RAII — release is tied to a statement in the source, not to a value's lifetime, so there are no drop flags, no moved-out analysis and no drop glue, and a value whose release nobody calls is simply never released — which is the hole that outlived the construct, and is why at-least-once is now a lint.

Three things it settled that were not the headline:

  • Reverse order answers the ordering gap across resources. VulkanTriangle's renderer is built from its window, so it is bound after it and released before it. That was two hand-written calls in one specific order, duplicated on an error path.
  • The handle-less global gets a handle. Glfw.initialised() is a token type carrying no data, which exists so that "GLFW is initialised" is a value with a lifetime. Worth writing only because Scoped exists.
  • Scoped is the second and harder witness for a by-value receiver. release(self) cannot be declared at all under functions.md's &self/&var self, so the construct cannot be built without it.

And three it did not:

  • A partially-constructed aggregate on an error path. Renderer.new assembles five handles for a caller, so there is no block to bound them and with does not apply. The remaining question is narrower than "elp has no destructors" — possibly assembly belongs in a with whose release is cancelled on success, and nothing proposes a way to cancel one.
  • Ordering within an aggregate. Reverse order sequences with bindings relative to each other; the five lines inside Renderer.release are one binding and the types permit every permutation.
  • Borrowed handles derived from a released resource. Glfw.release invalidates every Monitor, which are Copy and were whose release nobody calls. aliasing.md's validity gap, seen from the release side.

The out keyword was never a design — it was my placeholder

db.elp and renderer.elp wrote &out against a binding nothing declared, then read out.asSqlite3(). Shorthand for "the thing C wrote into" that should not have been committed, and it spread from one probe to the other. (QuadTree/tree.elp's out is unrelated and legitimate — an ordinary declared parameter that happens to be named out.)

Resolved in memory-model.md Finding 4, and the resolution deletes the concept rather than designing it. The difficulty was never mutability direction, so &mut would have described the wrong axis: you cannot take a mutable reference to a Sqlite3 that does not exist yet. It is emptiness, and Optional<T> is already a slot that may be empty — niche-optimised to a nullable pointer, so &db is sqlite3**.

What made it legal needed one sentence: Optional<T> is a slot that may be empty, and &db is sqlite3** at the ABI.

Amended. The original reasoning here was "Finding 4 infers mutability from the callee's body, and at an @external declaration the callee is C, so at that boundary &T is read-write, conservatively." Finding 4's third amendment replaces that conservative blanket: a C const T* is &T and a writable T* is &var T, read off the header. The out resolution is unaffected — it was always about emptiness, not direction — but every @external out-parameter in the corpus now wants &var, which is a migration item rather than a design one. An Out<T> slot type was considered and dropped as &Optional<T> with extra vocabulary — and because its closest relative, Binding<T>, is a refcounted reactive cell tied to the cell thread, which is machinery that has no business near sqlite3_open.

11. A real-time thread and a UI — examples/Playhead, held locally

The first probe ported from a real application rather than invented: the playback and rendering loop of a released audio app driving a C synthesiser from a platform audio callback.

The entry is not in this repository. It derives from closed-source work, and this is a public repo, so examples/Playhead/ is gitignored and lives only on the author's machine. What is recorded here are the language findings, which is the part the design needs; the provenance is noted so a reader knows why the one probe that corrected three decisions cannot be opened. Everything below is a general real-time engineering pattern or an elp conclusion, not an implementation detail of that app.

Its value is that every finding is something that broke in production and was fixed, rather than a hazard imagined at a whiteboard. It was written to test the Buffer<T>, Atomic<T>, Ring<T>, @abi(.C, realtime) and Published<T> decisions against a real implementation. Three of them it corrects.

What it corrected.

  1. An age is a measure of staleness, not of elapsed time, and Published<T>/Aged<T> as recorded invites the bug. Extrapolating a playhead from its age is right while audio flows and wrong the instant it stops: an interruption, an output route change or a stalled engine freezes the published position, and unbounded extrapolation then runs the line on through music nobody is hearing before snapping it back when sound resumes. The working fix caps the run-ahead at about two render buffers. Past a threshold an age stops meaning "this much has happened" and starts meaning "the producer stopped" — opposite instructions — so handing out a bare duration is a loaded gun.

    Resolved in aliasing.md under "All speed on the writer, all policy on the reader" — and the resolution revises this finding's own proposal. The threshold is not the producer's to carry either, because a threshold is policy and the producer is the thread that must not branch. The producer publishes its rate, which it alone knows; the reader derives the cap from that rate and decides what to do past it.

  2. A display-link-backed frame clock is wrong on iOS, which kills one sentence of that clock's justification. The platform throttles its display link during the system-gesture gate, so a cold play immediately after a scroll — the most ordinary way a user starts playback — stalls the first frame and reads as a hang. A plain main-queue timer keeps firing and the layer still composites. So frame's contract is "ticks at roughly display rate", not "ticks on vsync", and on .iOS the implementation must be a timer. Demand-driven survives untouched, because the battery argument never depended on vsync. The genuinely open part is the first tick: it has to be dispatched rather than fired synchronously, and reactivity.md says nothing about a write that lands during the mount pass.

  3. Ring<T> is not the default shape for a deadline thread. This probe was expected to be its first corpus use and is not. The strongest design available deletes the concurrency problem instead of solving it: generate the whole event list up front, sort it once, and keep it immutable for the duration of playback — then the deadline thread needs no lock, because there is no producer to wait for. In elp that is a Buffer<MidiEvent> moved in by value, and the move is what makes the immutability a type-level fact rather than a convention, since the control thread no longer has the buffer. Ring<T> keeps a narrower justification: live input, where there is nothing to generate up front.

    Twice in this entry the correct real-time answer is immutability rather than synchronisation — the event buffer, and a Copy timing table read by both threads. Worth naming as a pattern: on a deadline thread the language's job is mostly to make "this cannot change" expressible, and Copy plus Move already do.

What it confirmed, and one of them strongly.

  1. Avoiding a refcount on the audio thread required an unsafe unowned capture, with its safety proof written in a comment. That is exactly aliasing.md's non-obvious hazard — a refcount decrement reaching zero calls the allocator, which takes a lock — met in production. An ordinary strong capture retains and releases per callback, and the release is the one that can free. The host language had no way to say "borrow this for the callback's lifetime", so the author asserted it unsafely, and the proof was "no callback can run after the engine is stopped and the node detached". elp's Opaque<T> no-retain rule was argued from leaks and landed in the same place, with that proof's ordering clause being Scoped release order. The strongest single piece of evidence in the entry: the design rule and the shipped workaround agree, and only one of them is checked.

  2. Keeping reinterpretation out of Buffer<T>'s identity was right. Interleaved stereo — the most common real audio layout there is — is expressed by a C call taking offset and stride as arguments over one allocation. A Buffer<T> that carried a layout would have had to carry this one twice over the same memory.

  3. The host's output buffer is a transient view, confirming that row of the foreign-pointer table has to be a borrow and not a value.

What it opened.

  1. Single-writer discipline wants the endpoint split for cells, not just queues. Resolved, and the opposite way. aliasing.md found that Move on a ring's two ends makes SPSC unconstructible rather than documented. The production bug here is the same discipline on a single value: when the control thread moved the play cursor itself, a seek landing mid-callback was clobbered by that callback's write-back, and a note-on fired after the control thread's all-notes-off stuck on. The fix was that the deadline thread became the only writer and the control thread merely requests a start, which the next callback applies. Atomic<T> has one undivided handle, so nothing in the language expresses that.

    aliasing.md rejects the split for cells. Multi-writer atomics are the normal case rather than an abuse — a CAS on a list head, a refcount, and the transport word in this very probe, which both threads compare-exchange — so constraining the general primitive would break them all. And the production fix was not a constrained writer: the cursor stopped being shared at all, which makes this a visibility problem that private fields already solve, with nothing on the hot path paying for synchronisation it does not need. Recorded as "Where a deadline body's private state lives" and "And this is why Atomic<T> does not get the endpoint split".

  2. Two values must sometimes be read as one, and real code packs them. Resolved — Atomic<T> now admits a Copy object whose layout fits a machine word, with a use-site size diagnostic, and the layout computation is the one §10 finding 3 already demanded for @external struct fields. A transport flag and a generation counter in one word, read with a single load, because split atomics allow a combination that never existed to be observed. That defends Atomic<T>'s word-size restriction — packing is what an implementation does anyway — and argues that Atomic<T> should accept a record that fits a word rather than only a primitive, since Transport { playing bool, generation int32 } says what the bits mean and an int plus two shifting helpers does not. The residual cost is that word size is a target property, so an object that fits on 64-bit and not on 32-bit is a per-target error.

  3. publish does not always want to succeed. Resolved, and the mechanism was right. The position store is guarded by re-reading the transport word: if playback restarted mid-buffer, this callback's stale position must not replace the new start's.

    The guarded publish — publish(value, ifEpoch = word) — is wrong twice: the epoch belongs to the transport rather than to the position, so the primitive would be checking a condition it cannot see, and it puts a branch and a re-read on the one thread that must have neither. The epoch goes in the payload instead, and the reader discards a reading whose generation does not match the transport it also sampled. So publish never fails after all, and the finding was about usage rather than mechanism.

  4. Production reaches for relaxed ordering, and would lose nothing to sequential consistency. Every atomic in the real sequencer is relaxed except the transport word, which is acquire/release because it orders the event buffer behind it. The rates are the defence and they are measurable rather than argued: the position is stored about 43 times a second (one render buffer at 1024 frames and 44.1 kHz is 23 ms) and loaded about 60, so a full barrier on ARM is not detectable by any instrument a user owns. The author chose relaxed out of discipline, not measurement — the right instinct in a language that offers the choice, and an irrelevance in one that does not. The single exception worth noting is a liveness counter nobody reads for its value, which is the one shape where relaxed is genuinely free and seq-cst is genuinely waste.

  5. A view must not get a vote on the thing it is a view of. Resolved as a design rule, with no feature. The playhead deciding playback was over killed the transport during the release tail, before the sequencer could re-arm, so looping never survived its first pass while the score was on screen. A reader of a Published<T> is syntactically free to act on what it read, and a read-only endpoint would not have helped, because the stop call was on a different object. "Which side may act" is a real axis the language says nothing about — and will not, because enforcing it needs a capability system that costs more than every bug of this shape put together. aliasing.md records it as the boundary on "all policy on the reader": policy about the value, never control over the producer.

  6. A derived value that recomputes equal should probably notify nobody — which would make a reactive graph's fan-out depend on Equatable. This is the real content of the proposed structural-position lint: "which bar is under the playhead" changes a few times a second but is derived from a value that changes sixty times a second, so a naive markup if re-evaluates at the clock's rate rather than the answer's. Real renderers memoise it by hand.

  7. The cell thread has a deadline too, and only the audio thread's is marked. 16 ms instead of 23, a dropped frame instead of a click, the same discipline — and @abi(.C, realtime) says nothing about a pure fn called once per frame from a markup read.

  8. A platform API is a third category alongside links and dependencies. The system audio graph is neither a shared library the package claims nor a dependency the build acquires, and name-resolution.md has no row for it.

What migrating it then found

Findings 7–9 and 11 were recorded as resolved and the probe was migrated onto those resolutions. The migration produced five more findings and one new gap, which is the strongest argument available for doing step 3 of the workflow rather than treating a decision as finished when it is written down.

  1. The &var self question dissolved, and the real defect was a boundary form. The recorded answer to finding 7 said private deadline state is "a plain var field, private", which collides with &var self for a mutating method. It was wrong, and the probe itself contained the defect: it declared the callback parameter Opaque<PlaybackState> over a bare object, and memory-model.md's table has only Opaque<Cell<T>>. The out-of-line principle says why — a bare elp value is in-line and moves, so there is nothing for C to point at.

    Correcting it to Opaque<Confined<PlaybackState>> removes the question entirely: mutation goes through the cell, .set() takes &self, and examples/Sheet/types/style.elp had written the sentence years of design time earlier — "&self, not &var self: the object is unchanged, the cell it points at is not." No new spelling, and the cell kind is forced rather than chosen, since Shared is immutable, Synchronized is a lock and Atomic would put a private value back into shared memory.

  2. Confined<T> off the cell thread is sound for a different reason than on it. examples/Sheet justifies read/copyWith/write by cell-thread serialisation. A deadline thread has none, and the idiom is still atomic because nothing else holds the cell — which Move gives and .alias() takes away. So Opaque<Confined<T>> at an @abi(.C, realtime) boundary is the one sanctioned crossing of a non-Sendable cell, and it is weaker than the Buffer<T>-by-value parallel it invites: there the value is gone and the hazard is absent, here the registration must keep holding the cell and only access is relinquished. Privacy is what relinquishes it, so privacy is load-bearing for soundness at this one boundary.

  3. A cell holding a Move aggregate cannot have its fields updated at all. Confined<T>'s only write is .set(whole), which needs T to be Copy, and a Move field cannot be taken out of the &T that .get() returns. Every cell in the corpus until now held a Copy payload, so this is the first place it bites — and it forces a nested cell per mutable field of a Move aggregate.

  4. GAP 6 — and the teardown of such a cell has no spelling. Wrapping the registration in the cell the boundary form requires leaves release(self) unable to reach the Move handle it must destroy. Candidates: a consuming .take() -> T on a uniquely-held cell, Scoped reaching through a cell it is the last holder of, or keeping the Move resources beside the cell rather than inside it. The third is probably right and is an architectural claim rather than a workaround — what a deadline thread must read and what a program must release are different sets, and the probe had them in one object only because the original could hold both in a class.

  5. A private field forces a factory, and that generalises. The registration used to be constructed field-by-field from main.elp. It cannot be once the render cursor is private, so construction moved into the sequencer's own module. The rule worth keeping: a type with a field only one thread may touch cannot have a public initialiser.

  6. A boundary payload belongs with the reader, not the writer. The transport word had to be declared alongside Playhead rather than in the sequencer, because the reader's estimate needs it for the generation check and the sequencer already imports the reader's module — so declaring it on the writing side would have made the two files import each other, which name-resolution.md forbids. The no-cycles rule picked the filing, and the principle it picked is the right one: both threads need these types and the reader is the side that interprets them.

Two of the four resolutions also came out cheaper in the migrated probe than on paper. The payload already carried the producer's rate before finding 1 was resolved, so "the producer publishes its rate" cost nothing. And both reader policies — the extrapolation cap and the stale-generation discard — ended up in one pure fn, which is the clearest available statement of why finding 11 needs no feature: legitimate reader policy is a total function of the value, and the illegitimate move was never a policy at all but a call to stop().

12. Reference cycles — examples/Recalc

Written to answer one question: elp reclaims memory by reference counting and has no Weak, so where does the corpus leak a cycle? A spreadsheet recalculation graph is the sharpest honest place to ask, because the back-edge is not a design preference — incremental recalc needs forward edges to evaluate a cell and reverse edges to know who to dirty when it changes, and every real spreadsheet has both.

The answer is narrower than "refcounting leaks cycles" and wider than "it cannot happen". aliasing.md carries the constructibility argument; what follows is what the probe found on the way to it.

  1. The natural cyclic graph is unconstructible, and not by a rule about cycles. A graph of Confined<Node> handles, with each node holding its precedents and dependents, is the textbook weak var site. It cannot be written: Node holds [Confined<Node>] so Node is Move field-wise, and §11 finding 17 established that a cell holding a Move aggregate cannot have its fields updated at all. node.dependents.append(other) has no spelling.

    Two rules argued for on unrelated grounds — "collections hold values, not places" and Confined<T>'s Copy requirement — close off the shape between them. This is the second probe to hit that wall from a direction its author did not expect, which is the strongest evidence available that it is a real rule rather than an artefact.

  2. What is left is an arena keyed by address, and its ownership is a tree. The Graph owns every Node and no Node owns anything, so a node's reference count is one, always. The probe needed no cell at all: a spreadsheet model turns out not to need aliasing.

  3. The cycle does not disappear, it changes category. A1 = B1 with B1 = A1 is still a cycle — now in the formula graph rather than the object graph, which makes it a domain error a spreadsheet must detect and report rather than a silent leak of two allocations. Keys cost a hash lookup per edge and turn an invisible memory bug into a visible user-facing one.

  4. No reference equality is what pushes graphs towards named nodes. The cycle check compares two References, which is comparing two ints. Had the edges been handles it would have needed identity comparison, and operators.md has == with no === — so there is no spelling for "the same object" in the language at all. Two decisions supporting each other, neither of which cited the other.

  5. A cycle is constructible, through one narrow shape. Shared<Confined<T>>: Shared<T> is Copy for any T, so a Copy payload may transitively own a mutable cell, which satisfies Confined<T>'s Copy requirement with exactly the thing it was meant to exclude. Three lines, leaks forever, no diagnostic. The argument for Shared<T> being Copy — that an immutable alias is observationally identical to a copy — is true and is about observation rather than reachability.

  6. GAP — Weak<T> is undesigned, so a program that genuinely needs a back-edge between cells has no spelling for one. The recommendation is not to add it now: the shapes that would want it are mostly unconstructible, and the valuable artefact is the record of which decisions close them off, since a future loosening would reopen this silently.

  7. GAP — a leak has no observable symptom. No destructors means "was this released?" is not a question a program can ask or a test can assert. Move giving at-most-once and never at-least-once release is recorded for FFI handles; the same holds for a cycle of elp cells and had not been written down. Leak detection is undesigned.

  8. GAP — Map.get on a Move value has no stated meaning. A value read out of a collection is a copy with an explicit write-back (§8, resolved), but every such read in the corpus until now was of a Copy value. Node is Move, so "a copy" has to mean a Duplicate, a move-out, or an error, and nothing says which.

  9. GAP — recursion over a user-authored graph has no bound. Dirty propagation terminates because cached is already nil, which is correct and implicit. elp has no stated depth limit, no tail-call guarantee, and no way to say "bounded by the graph being acyclic" when the graph is user-authored and may not be. The same shape as examples/QuadTree's recursion gap.

What re-running it against one proposed addition found

examples/Recalc/internal/handles.elp writes the graph finding 3 said was unconstructible, assuming Confined<T>.update(fn (T) -> T). Findings 1–9 above are all correct and finding 3's conclusion is conditional, which was not stated.

  1. The write surface, not the cycle rule, is the defect. Synchronized<T> has .update(fn (T) -> T); Confined<T> has .get()/.set() and nothing else, and no Confined .update appears anywhere in the corpus. .update does a second thing unrelated to locking — it moves the payload out and back, never duplicating it — so a read-modify-write today costs one record copy for a Copy payload, a deep copy of the whole payload for a Duplicate one, and is impossible for a Move one. The middle row is examples/Buffer's self.lines.get().copy().insert(...): a shared mutable text buffer duplicating every line per keystroke. One defect — shared mutable state must be transitively Copy, or pay a deep copy per write, or be unexpressible — reported four times (§11 finding 17, Playhead's GAP 6, this probe's GAP 1, examples/Buffer).

  2. aliasing.md's justification for the asymmetry covers a different claim. It argues the .get()/.set() pair is permissible on a confined cell because the cell thread makes the sequence atomic. That is not an argument that .update is unnecessary, and the doc ran the two together.

  3. Under .update, every edge is a cycle. Not a circular formula — the graph is deliberately bidirectional, so one acyclic A1 = B1 leaves A1 holding a handle to B1 and B1 holding one to A1. The leak stops being the Shared<Confined<T>> needle and becomes every parent link, observer registration and doubly-linked list. So the cell write surface and Weak<T> are one decision, recorded in two places as if independent.

  4. The fork is whether .alias() is a side-effectful call. aliasing.md proposes update(pure fn (T) -> T). Closing an edge needs b.alias() in the transform body; functions.md's example establishes that such a transform may capture, so captures are not the question. If pure is observational, .alias() is allowed and every edge leaks; if it is about reachability, .alias() is rejected, the finding-3 result survives, and the thing .update was wanted for still works — a buffer insert captures no handle. The effect system is undesigned and this is the first thing asking it a real question.

  5. And it is the same conflation twice. Shared<T> is Copy for any T because an immutable alias is observationally identical to a copy — a claim about observation settling a question about reachability, and the reason the Knot needle exists. Deciding observation-versus-reachability once, for both sites, is worth more than either answer.

  6. GAP — .update empties the cell, which is a worse failure mode than the one it replaces. For the transform's duration the cell holds nothing, so a transform reaching its own cell observes a hole rather than a stale value. Synchronized<T> gets away with the same structure because re-entering a held lock deadlocks loudly; Confined<T> has no lock, and atomicity is what makes the hole observable from inside. Not contrived — an ordinary graph invalidate holds a borrow across a recursion that comes back round, with nothing syntactic marking it.

  7. The handle graph loses on its own terms anyway. A formula names addresses, so it needs the address-to-node map and two handle arrays per node, where the arena needs only the map. It buys a pointer chase instead of a hash lookup. Even with .update granted this probe would choose the arena — which is why findings 10–15 are about what the language permits, a different question from what a program should do.

  8. And it is the ninth report of one absence. &var self on a method receiver is the only mutable access in the language, so no library type can hand out a mutable place. "Mutable paths into an interior node" in §4 is the same hole from a spatial tree; Map.get on a Move value, examples/QuadTree's GAP 4, "collections hold values, not places", the &var T parameter, and examples/Playhead's GAP 6 are the rest. Tabulated in memory-model.md, "One hole, reported nine times", with the argument that a cell's write surface was never decided — it is an unfinished edit from the examples/Pipeline migration, which corrected Synchronized<T> and left Confined<T> alone.

  9. And §4's re-run leans the fork. aliasing.md proposes update(pure fn (T) -> T), justified by the lock: the body must not reach into another cell, and pure's existing no-external-calls rule supplies that without restricting a closure body by position. It cannot hold for a recursive descent — every update in tree-places.elp calls a method, because the recursion is the body. So either the three updates differ in purity, needing justification as a surface inconsistency, or pure comes off generally — and if it comes off, .alias() inside a transform is permitted, every edge of a handle graph leaks, and Weak<T> is mandatory. Only one of the three sites has a lock, which is what justified pure.

  10. GAP — a transform that consumes a Move capture, exactly once. memory-model.md Finding 3 governs capturing by value through Copy/Move but says nothing about how many times a closure may run, and update invoking its transform exactly once is what makes a Move capture sound. Rust's FnOnce; nothing states it here.

  11. The two Synchronized closures collapse into one. update(fn (T) -> T) and with(fn (&T) -> R) -> R were split by direction because a transform had to hand a whole value back. update(fn (&var T) -> R) -> R is both at once, and it is the same signature for a cell, a collection element and a map entry.

An inconsistency this probe tripped over

nil and null are both in the corpus — 117 uses across 23 files against 41 across 5. The null files are the FFI-heavy ones (SqliteBinding, VulkanTriangle, Playhead), which may be a deliberate distinction between elp's empty Optional and C's null pointer, or may be drift. Nothing records an intent either way. nil is used here.

13. Is Weak<T> avoidable? — examples/Interpreter

A tree-walking interpreter for a seven-form expression language, written to decide the question §12 recommended closing. It reverses that recommendation. Nine findings, plus a tenth from migrating it onto indirect:

  1. GAP 1's real evidence, at last. Expr.BINARY holds two Expr directly, so size(Expr) = tag + 2 * size(Expr) has no finite solution and there is no array anywhere to supply the indirection. §7b's recursive value type was raised against examples/QuadTree, whose enum lays out fine (tree-places.elp FINDING 1). An AST is the most common recursive type any language compiles. Ratified as indirect, a field-level marker over an immutable box (memory-model.md).

  2. Mutually recursive types force one module. Value.CLOSURE holds a Confined<Env> and Env holds a Map<string, Value>, so the no-cycles rule puts them in one file. examples/Playhead FINDING 21 hit this and drew "a boundary payload belongs with the reader", which does not apply — neither type is downstream of the other. The weaker general rule: a cycle in the type graph is a constraint on file layout, with no mechanism to split one.

  3. A closure value cannot own its body. evaluate takes &Expr — it must, since a tree-walker never consumes its input — so the LAMBDA arm binds a borrow, and a field may not hold one. Shared<Expr> is the only form that works, which means the AST must be built into cells up front: a representation decision forced on the parser by one arm of the evaluator, invisible from the parser's side. Dissolved by finding 1's ratification. An immutable indirect leaves Expr Copy, so CLOSURE { body Expr } stores a copy of a borrow's referent and the parser is left alone. One decision closed two findings, which is the argument for taking it first.

  4. A non-recursive let needs no mutation at all, which is what makes the rest decisive rather than an artifact. LET evaluates its value in the enclosing scope and its body in a child scope born with the binding in it, so no cell is ever written. The hypothesis's mechanism is needed for exactly one language feature.

  5. Variable lookup has no spelling, and this is §12 finding 8 blocking something. Value is Move (it holds Confined<Env>), so Map.get on it fails all three candidates: there is no .copy(); a move-out would remove x from the environment; and an error means a language with first-class functions cannot read a variable. The honest return type is Optional<&Value>, barred because a field may not hold a borrow — which is tree-places.elp's GAP 8 arriving as a blocker on an interpreter's most basic operation.

  6. .get() being free is load-bearing for an ordinary inner loop. lookup recurses through outer.get() once per scope depth on every variable reference. aliasing.md's open question "what .get() returns and how long it lives" is therefore not an edge case about lifetimes — it is on the critical path of the most common recursive program shape there is.

  7. LETREC forces the mutation and the cycle together — they are one finding. Create the scope, evaluate the value in it, write the result back. Step three has no spelling today (Env is Move in a cell), so a tree-walking interpreter cannot be written in elp — fourth sighting of that wall and the first where the blocked program is unremarkable. And step three leaves one cell holding a handle to itself through its own contents. No reordering avoids it; placeholder-then-patch is step three renamed.

  8. pure on the transform cannot prevent it, which collapses aliasing.md's fork rather than resolving it. LETREC writes an already-aliased value: the transform captures a handle and stores it, and calls nothing. The rule is "pure functions containing side-effectful calls", and functions.md's own transform closes over a value, so capture-and-store is admitted. Narrowing pure by capture type would be a restriction by position in a new costume — what pure was reached for to avoid.

  9. The arena does not save this one, and fails differently from how it succeeded in §12. An index arena constructs and turns the cycle into data, but a spreadsheet's graph lives as long as the sheet while an interpreter's scopes have dynamic lifetimes — so every scope ever entered stays forever, and recovering them means walking reachability over indices, i.e. a tracing GC hand-written inside the interpreter. CPython refcounts and ships a cycle collector for exactly this shape; Lua, Ruby and the JVM trace.

  10. Field-level indirect is allocation-heavy on an AST, found while migrating this probe onto the ratified marker. Every Expr case but two is entirely indirect, so a three-node expression is eight allocations where Swift's case-level marker makes three. The field-level rule stands — one rule rather than two — but the fix is a compiler that coalesces one case's indirect fields into a single allocation, which rule 1 makes invisible, rather than the case-level sugar memory-model.md parks.

Verdict: Weak<T> is mandatory. §12's reasoning was sound and its evidence too narrow — a spreadsheet graph's ownership is a tree once handles are dropped, and its arena is free because the arena's lifetime is the program's. Both premises fail here, and an interpreter is not exotic: it is BlogStyle's JSON, a template engine, a query planner, a build-rule evaluator. What is now open is Weak<T>'s cost, against @abi(.C, realtime) forbidding a decrement to zero.

Ratified, with one correction this verdict invites and does not make. Weak<T> exists, parameterised on the cell (Weak<Confined<T>>), Copy, upgraded through Optional, and forbidden outright in a realtime body. But it is not what fixes let rec: neither edge of that cycle may be weakened — weaken closure→scope and a returned closure loses its environment, weaken scope→closure and a sibling binding in a live scope finds f gone — which is exactly why CPython ships a collector as well as weakref. elp's position is Rust's and Swift's: the cycle leaks, a leak is safe, and the escape for a program that cares is an arena, as a library rather than a runtime. See aliasing.md, "Weak<T>, ratified".

14. The two cycle shapes — examples/LruCache

The canonical weak var site, probed to find out whether §13's verdict generalises. It does not, and separating the shapes is the result.

  1. The textbook structure is unconstructible, fifth sighting of one wall. Node { var prev, next Optional<Confined<Node>> } makes Node Move, and a cell holding a Move aggregate cannot have its fields updated. Unlike §12 GAP 1, examples/Playhead GAP 6, §4's re-run and §13 finding 7, nothing is lost — the structure is not needed.

  2. Map being insertion-ordered makes the linked list evaporate. collections.md ordered Map for iteration predictability, and that happens to be the recency order an LRU cache keeps a second structure for: remove and re-insert, and a key moves to the end. One Map, ownership a tree, every refcount one, no cycle.

  3. Map.set on an existing key has no stated effect on order, and this cache is correct under one reading and silently wrong under the other. "Insertion-ordered" names the order for new keys. Both answers are defensible — first-seen for a stable config map, last-written for an LRU — and collections.md picks neither. Found by the first program whose correctness depends on it.

  4. Map.get on a Move value wants two spellings. Sixth sighting, and the first where a move-out is the right answer: remove then set is literally what a cache hit does. §13 finding 5 is evidence against move-out for the same operation on an environment. That is a cleaner shape than the open question has had.

  5. The missing break turns an O(1) operation into O(n). Eviction needs the first entry in iteration order, which is one step of the iterator. §7b records there is no break, nothing exposes Map.first(), so the spelling materialises every key to use one — defeating the data structure. First place in the corpus where the missing break has a measurable cost rather than being stylistic.

The two shapes. A data structure's back-edge is an index in disguise and dissolves under a better primitive; a language's cyclic value does not. Weak<T> is taught with the first and needed for the second — which narrows its design target usefully, because everyday graph code should not use it. A rarely-reached Weak<T> can afford to be expensive, or be forbidden outright in a realtime body rather than made cheap.

15. The write surface priced — examples/Editor

A text document with undo, on a payload where the difference is one keystroke.

  1. The CoW lint cannot be computed, because string's tier is unstated. aliasing.md proposes paying for CoW's invisibility with a diagnostic gated on computed layout, on the precedent of Atomic<T>'s size error. Line holds a string, and string's tier is an Open item. So that item is load-bearing twice — it decides most of the corpus's conformances and whether the CoW diagnostic can exist. Nothing about CoW can be ratified until string has a tier.

  2. Today's spelling, priced. self.lines.set(self.lines.get().copy().inserting(at, line)) duplicates every line in the document per keystroke — 10,000 string duplications for a 10,000-line file — and no CoW could elide it, because the cell holds the second reference for the whole expression. That is aliasing.md's "CoW complements .update rather than replacing it" with a number on it.

  3. The transform's -> R is load-bearing here, not a convenience. An undo record needs the text that was replaced, and returning it out of the transform is the only way to get it without a second traversal.

  4. .update gives write batching for free, and reactivity.md has no notion of it. A cell write is a notification point, which reactivity.md never states. With .set, N edits are N patch passes; inside one transform they are one, at transform exit — the only moment the contents are consistent. It also means a reactive read inside a transform would see a half-finished value, which is the re-entrancy hole arriving through the reactive system rather than through user code.

  5. Undo is where CoW is not enough, which revises the assessment. A snapshot is O(1) under CoW and shares the buffer — and then the next edit finds the buffer shared with the history entry, so it copies. Snapshot per keystroke, copy per keystroke; CoW moved the cost one statement right. The fix is a persistent structure whose edit copies only a root-to-leaf path, i.e. a rope, i.e. a recursive value type. So: CoW is still worth having for passing, assigning and reading (§4's re-run shows it is what keeps a read-only descent non-quadratic), but it is not the answer to the Duplicate row for a value that is deliberately snapshotted. An undo stack needs GAP 1 answered, and GAP 1 is now blocking two unrelated programs. GAP 1 is now answered (indirect), so the rope is writable — and rule 4 of that answer, the immutable box, is exactly what a persistent structure wants, since path-copying never writes through a shared node.

16. The corpus scan

Run after the write-surface round, pure, loops and Protected<T> were ratified, over all 96 files. Not a probe — a sweep for places the corpus and the docs disagree, and for what the corpus knows that nothing has recorded.

Twelve findings. Three are defects in decisions, four are migrations the ratifications implied, and the rest are things the corpus had been doing without anyone writing them down.

Defects in decided things

  1. &var at an @external declaration was over-broad, and the corpus proves it in one line. Rule 7 said C's const decides. Applied literally, SQLite takes a non-const sqlite3* for every call including sqlite3_errmsg, so every handle parameter becomes &var and the distinction carries nothing. It cannot: &var can only mean something where elp owns the storage C writes into. Refined in memory-model.md to the three boundary forms — no &var on an opaque handle, &var on a written slot or extent — which migrated nine slots and three extents and not one handle.

  2. Two &var arguments to one @external call must be allowed to alias, and the evidence is the corpus's most real-world FFI call:

    fluid_synth_write_s16(&state.get().synth, frames,
                          &var output, 0, 2,
                          &var output, 1, 2)

    One buffer, two logical channels, offset and stride as arguments — the shape examples/Playhead FINDING 3 celebrates as the reason Buffer<T> needs no layout parameter. Under a literal reading of the exclusivity rule ratified three decisions ago, interleaved stereo is unwritable. Exclusivity is between elp-side paths; a &var argument at the boundary lowers to a raw pointer rather than &mut.

  3. The idiom two documents quote as evidence for the Duplicate tier never type-checked. aliasing.md cites posts.copy().prepend(post) and state.messages.copy().append(...); collections.md declares fn Array.append(&var self, value T), returning unit. So .copy().append(x) is not a value and never was. Three sites, quoted twice as corpus evidence, in a language where they do not compile. The migration is update, which is cheaper anyway, so nothing is lost but the claim should not have stood.

Migrations the ratifications implied

  1. Six cell round-trips became transforms, and two of them are in examples/Playhead's audio callback, where each was a whole-record copy per buffer on the one thread with a deadline. update is realtime-legal — a Confined<T> is an Rc<RefCell<T>>, so it takes no lock and allocates nothing.

  2. copyWith made const the default on every cell payload in the corpus, and update reverses it. RenderState and StyleValues were const throughout only because the write path was a rebuild. This narrows reactivity.md's open item 1, which is "a constraint on copyWith" — identity-preservation for untouched fields — to store reducers alone, since cells no longer write that way.

  3. Twelve @external out-parameters and five call sites took &var.

  4. Method-name drift, with collections.md's surface list as the authority: insert 24 against inserting 2, remove 8 against removing 1, length 22 against count 3. Each minority is one file. The -ing pair is the interesting half — it reads as "returns a new collection", which is exactly the unit-returning confusion in finding 3.

What the corpus knew and nobody recorded

  1. Eleven components still use the pre-component form, export fn Name -> Component, across BlogStyle, SocialFeed and ChatRoom — the three original apps, none of which was migrated when component was decided. Nothing in those files is wrong about the language; they are simply older than it. Left alone here because it is a rewrite of three apps rather than a finding, and recorded so the count is known: eleven files.

  2. & has three meanings and nobody has counted them. &x at an argument is a borrow; &var x is a mutable borrow; and &x in prop position is not a borrow at all — reactivity.md makes it construct a Binding<T>, a retained shared handle. The third was decided deliberately and reads identically to the first. Now that mutation is spelled at the call site, the sigil carries three jobs.

  3. No unmarked recursive value type exists anywhere in the corpus. Checked mechanically over every object and enum: Expr is marked, and Env, Node and QuadNode<T> each reach themselves only through a cell or an array, so the indirection is already present. That is memory-model.md's claim-to-test for indirect holding across the whole corpus rather than across the probe that produced it.

  4. null survives in exactly the seven FFI-heavy files and nil everywhere else, which is more consistent than drift usually looks. It may be a deliberate line between an empty Optional and C's null pointer. Still nothing records an intent, and this is the third time it has been noticed.

  5. loop is a function name in examples/VulkanTriangle/main.elp, and it is legal only because control-flow.md refused the loop keyword a decision earlier. Accidental, and worth one line as confirmation that the refusal cost nothing.

The sweep — and the three apps were further behind than the count said

Finding 8 said eleven components used the pre-component form and left them. They are migrated now, and the form was the smallest thing wrong with them. BlogStyle, SocialFeed and ChatRoom are the original corpus and predate almost every decision; sweeping them surfaced six more things, and three are features the old corpus used that no document records.

Undocumented features, now written up as gaps in the files that used them. A field default standing in for a type (id = UUID.v4()), with no answer anywhere to when it runs — once per type or once per construction, which for UUID.v4() is the whole question. Go-style field tags (`json: "id"`), a second untyped metadata channel on every field that macros.md does not mention and whose only stated job is what @CodeGen(Codec<JSON>) is for. And @external(.OBJC) declared outside a block with a generic signature, three ways off-spec at once.

Four decided things the apps contradicted. class = "error-row" and type selectors in a .selp, both replaced by named styles. import { Styles } from .styles with Styles.screen at each use — there is no whole-sheet value, and this was in the newer files too (Expenses, Undo, Buffer), two of which referred to a stylesheet that did not exist at all. Multi-dot import paths (..types.job, ...internal.history) in nine files, where name-resolution.md settles that one dot means the package root and there is no .. at all. And var err Error — a bare interface-typed variable assigned nil, where absence is Optional<T>.

Two things that looked like drift and were not. export var as a prop is correct: grammar-script-notes.md keeps params and props as separate decided things, a param being a constant input with no cell and a prop being reactive and observed. That nearly got migrated away. And loop(&window, &renderer) in examples/VulkanTriangle is right to take & rather than &var, because pumpEvents and drawFrame mutate behind an opaque C handle rather than in elp storage — the sweep's own finding 1, confirmed from the other direction.

And one new gap, from the view layer. examples/Undo and examples/Buffer both write for line in lines by line over a [string], keying rows by their own text. Two identical lines collapse into one row, and an editor is the program most likely to contain two blank ones. This is exactly the case control-flow.md argues when it refuses to derive identity from a type — and here the explicit claim is wrong, with nothing in the language able to say so. What both files want is a line identity that survives editing, which is a rope's node identity, which is examples/Editor FINDING 5 arriving from the view layer.

Two files the sweep missed, found while freeing the backtick

examples/LinkShortener/types/link.elp and examples/Expenses/types/expense.elp still carried Go-style field tags and a field default (hits = 0, id = UUID.v4()) — the §16 sweep dropped both from the three original apps and never reached these two.

Finding them late is itself the finding: the sweep searched for the forms the apps used, and these are libraries. A sweep organised by program kind misses what a sweep organised by feature would not, which is worth knowing before the next one.

What the scan did not find

No violation of pure: every pure fn in the corpus is legal under the definition functions.md gives, which was already true before the rule existed. No string treated as Duplicate. No cycle that Weak<T> would have to break outside examples/Interpreter. And no second realtime helper beyond the one already marked.

17. The last core-language probe — examples/Json

A JSON value, a hand-written lexer, a recursive-descent parser, a serialiser, and the @CodeGen(Codec<JSON>) macro written in elp. Chosen as the final non-reactivity entry because it is the most-cited missing type in these docs — memory-model.md names a JSON value as one of the four recursive shapes, and four corpus files already write @CodeGen(Codec<JSON>) against a type that did not exist — and because it touches the widest band of untested surface in one coherent program.

Twenty-seven findings. The macro is the one that matters.

The macro: there is no way to write a literal AST

macros.md claims "elp data (incl. interfaces/types) is uniformly first-class" and rests the whole compile-time evaluator on it. Writing the first macro body in the corpus shows that claim is true of what a macro reads and false of what it writes: there is no literal syntax for the one kind of data a macro exists to produce.

codec.elp generates twelve lines of elp in ninety, and halfway through it collapses — every Statement.call(...) and MatchArm.of(...) it builds takes strings, because there is no way to write an expression as data. So the builder API is not an alternative to source-text construction; it is source-text construction with extra steps.

Every macro system that works in practice has a quoting form: Lisp's backquote, Rust's quote! crate (so load-bearing it is effectively part of the language), Swift's string-interpolated syntax nodes. macros.md's open question 1 asks what reflection exposes; this is the other half and the larger one.

The file was then rewritten against a proposed quote form, which is what probes are for, and macros.md now carries the design. Four decisions, scored on one criterion — can a reader see the holes, which is the real complaint about #name. A quote is parsed as elp rather than captured as tokens, which is what lets a hole be an ordinary identifier; holes are declared in the quote's argument list, and inside the block an identifier is a hole if and only if it is declared, which is the substitution rule and the hygiene rule for bound names in one sentence; a hole's type decides how it splices, so a [Statement] hole splices in order and Rust's #(#x),* repetition syntax never arises; and computation happens outside the quote.

Four things that rewrite found. The form needs exactly one sigil, and the corpus wanted it anyway — quote(Self = node.name(), …) is ambiguous because Self already names the receiver's type, so the hole carries the raw-identifier delimiter grammar-script-notes.md adds: `Self`. That delimiter exists for a reason with nothing to do with macros (type is a keyword inside @external and the corpus names a field, a parameter and a built-in element's prop type), and marking only the keyword collisions is a better position than Rust's rather than a retreat to it, because the ordinary hole stays bare and highlights for free. A hole needs a type because the same field splices two ways — "title" in one position and title in another — which Rust handles by convention (#name beside #name_str) and this handles by string versus Identifier, which also means Field.identifier() has to exist beside Field.name(). The repetition problem disappears because an elp macro is a pure fn whose loop is an ordinary for, where a procedural macro is a token-stream transformer with no loop of its own. And hygiene for free identifiers is still open and is where it bites: JSON inside the quote is imported by the macro's file and the generated code lands in the user's module, while Map is atmospheric and always resolves — so the failure is intermittent rather than reliable.

And the escape does not exist, which is what bounds how much any of this matters. The obvious way to avoid quoting is to not generate code: write Codec<JSON> once as a default method over any reflectable type, which is Swift's Codable as a user sees it. interfaces.md forbids it — "a default method's body may only call other methods of the same interface — it can never reach into the implementing object's private fields, full stop" — and encoding is reaching into fields. The decode direction confirms it from the other side: fromJSON must construct a Self field by field and patterns.md checks an object literal exhaustively, so there is no partial initialisation to build into. Same wall Swift hits, same reason init(from:) is synthesised rather than defaulted. So the macro is not a convenience over a generic implementation; it is the only expressible form.

Three more came with it:

  • A macro has no diagnostic channel. @CodeGen(Default) and @CodeGen(ToJSON) are both used in the corpus and unimplemented here; the honest response is to reject the unknown name at the attachment site, and a pure fn cannot emit a diagnostic at all. Returning nothing silently is the only option available and the worst of the three. macros.md lists macro diagnostics as "not discussed at all yet"; this is their shape.
  • The Go-style field tags were the macro's input, not a duplicate of it. examples/BlogStyle GAP 2 dropped them on the grounds that naming a JSON key "is exactly what @CodeGen(Codec<JSON>) is for". Writing the macro shows the key is now whatever policy the macro hardcodes, so a field named displayName cannot serialise as display_name. What replaces them is undecided: a field-level attribute (needing attributes on fields, and one macro able to read another's), or a naming-policy argument that handles the common case and not the exception.
  • The decode direction wants conformance as data. fromJSON has to ask "does this field's type conform to Codec<JSON>?" so the recursion bottoms out, and "is it Optional<T>?" so a missing key is nil. That is a bigger reflection ask than reading a field list.

What it tested about things already ratified

  • indirect is not needed for recursion here, and is needed anyway. Both containers hold a Map or a [T], so the indirection is already present and the size equation terminates — which is memory-model.md's claim-to-test confirmed by a program rather than by a sweep. But without the marker JSON is Duplicate, and then every nested read deep-copies a subtree. With it the box is immutable, JSON is Copy, and a read is a pointer copy. The tier is the stronger reason to have the marker: the recursion case has an escape in every container type and the tier case does not. That doc half-anticipated it as a layout convenience and never connected it to conformance.
  • pure survives its most demanding customer unchanged. A macro body allocates heavily, recurses and mutates locals, all of which are pure under functions.md's closed set — which is why allocation was deliberately left out of it. It also confirms the termination point: the body loops over an unbounded field list and nothing proves it halts.
  • break and continue both have evidence now. continue gets its first corpus use skipping insignificant whitespace, which is the canonical one; break ends a number scan.
  • &var T as an accumulator parameter, declared and written at every call site, through a recursive emitter. The first non-trivial use outside the probe that argued for it.
  • Set<char> is the corpus's first Set, and collections.md said it had "no evidence to design against beyond consistency". A lexer's delimiter test is the evidence.
  • The (a, b) match-scrutinee form does real work outside a router for the first time: JSON.equals is seven arms that way and thirty-six nested.

New gaps, and one is large

  1. Building a string has no spelling. A serialiser appends; string is immutable, so out = out + part is O(n²) over the document, and there is no builder, no append, no reserve. aliasing.md named this cost precisely when it ratified the tier — "a cheap implicit copy and an expensive explicit build, which is exactly where a program loops without noticing" — and this is that program. The decision still holds, because a mutable string would cost the tier and the tier carries most of the corpus. What it argues for is stdlib surface: [char].joined(), used twice here, and a Buffer<uint8>-backed writer for the streaming case.
  2. Index<K, V> silently requires V: Copy. operators.md has fn at(&self, key &K) -> V, returning by value out of a borrow. For a Duplicate payload there is no implementation — it cannot move out and it cannot copy without a deep copy nobody asked for at a []. Either the interface carries the bound or the payload needs a cheap tier.
  3. A type iterable two ways cannot conform to Iterable<T>. A JSON is an array of values and an object of entries; one iterator() and no overloading on return type means named view methods instead. The rule worth stating: Iterable is for a type with one obvious traversal.
  4. Range patterns over char. '0'..'9' is how every scanner spells this and nothing says whether .. is int-only. The iterable side probably should not generalise — iterating 'a'..'z' is a Unicode trap — which would make this the first case where the pattern form and the expression form legitimately differ.
  5. The numeric tower, forced from outside the program. A JSON number is an arbitrary decimal: int loses 1.5 and a float loses integer identity past 2^53. The value type splits INTEGER and DECIMAL rather than guessing. And an overflowing integer literal arrives from input rather than from source, so it cannot be a compile error, which is the first time operators.md's open "widths, literal defaulting, overflow" has a runtime face.
  6. Cross-numeric == has no answer. 1 and 1.0 are equal in JSON's model and are different cases here; comparing them needs a widening conversion and operators.md forbids implicit numeric conversion. Left false with the cost stated.

A doc contradiction, and it is load-bearing

defer exists, and aliasing.md says it does not — twice. reactivity.md designs it in full (scope-scoped rather than function-scoped, both forms, LIFO, running on normal exit, cancellation unwind and panic unwind) and states explicitly that it is "a general language feature rather than an effect feature". aliasing.md then argues twice from "elp has no defer, nothing at scope exit": once concluding a cycle of handles is never broken, and once in the exactly-once-release open item, whose premise is therefore wrong.

It does not close that item — defer is at-most-once-if-you-write-it, the same as with — but the language now has three scope-exit constructs (defer, the since-deleted with ... as x { }, and Scoped) across two documents that each reason as if one of the others did not exist. The parser uses defer to decrement a depth counter, which is the shape that makes the overlap obvious.

Two decisions vindicated, and one dissent

Insertion-ordered Map makes parse-then-write preserve key order, which no other language's JSON library gives without a second structure. collections.md ordered Map so a compile-time macro could emit identical code every build; strings.md then leaned on that for scalar-wise comparison. Third unrelated payoff from one decision.

char as a scalar value removes the bug every UTF-16 JSON escaper has — no surrogate pair to reassemble, no half-character state. What it does not cover is \uXXXX output, which needs a scalar-to-integer conversion strings.md does not give; not needed here, since elp's output is UTF-8 and conforming parsers accept it, but a strict-ASCII mode could not be written.

And loop was refused one decision ago; this file wants it three times. Recorded as weak evidence and written as loop deliberately, so the refusal has a dissenting site rather than a silent one. It is a readability preference at the place a reader asks how a loop terminates, not a program that cannot be written — the refusal's stated costs, no divergence information and no break value, are still unpaid by anything here.

18. A pairwise mutation — examples/Ledger

Written to settle two notes an outside review left on the corpus that no existing program could test, because no existing program does either: a transform that fails partway, and two related elements mutated in one operation. A double-entry transfer is both at once, which is why it is the program — debit one account, credit another, do neither if you cannot do both.

Five findings.

  1. CORRECTED — a transfer can be written atomically, and this probe missed it. With the ledger in a cell, nesting costs nothing: the outer transform holds the lock and cannot suspend, and the two inner transforms are sequential, so their borrows never overlap. Exclusivity forbids two live paths, not two paths in a row, and l.accounts is the field projection rule 6 grants.

    What survives is narrower and still worth having: a plain field cannot be the unit of atomicity. Ledger is Move with a var accounts field, so there is no lock to hold and nothing to nest inside, and the three spellings the file documents are what is left when the container is not a cell. The original claim — that no spelling exists — was wrong, and an outside reviewer's framing is what found it: a multi-object transaction is a missing operation rather than a flaw in update, and chasing what that operation would need turned up that it already exists.

  2. Validate-then-apply is the middle ground and nothing says so. What makes the third spelling survivable is that everything able to fail happens before anything is written. That is good practice anywhere; here it is load-bearing for correctness, and aliasing.md ratified the transform on the grounds that its critical section is syntactically total — a statement about control flow, not about consistency. Written out, the rule is a transform must not contain a failure path, which is the second of the three candidates that file lists.

  3. Map.get returning V makes a validation read a deep copy. Checking two balances duplicates two hold arrays to ask about two numbers. Third sighting of the borrowing read (LruCache GAP 2, Interpreter FINDING 5, Json's Index), and the first where the cost sits on a path that runs per transaction.

  4. The single-element case is fine, and the contrast is the finding. Placing a hold touches one account, is one transform, and reads well. Everything awkward comes from the second element — update is not the problem, a pairwise operation is.

  5. The failure path is a comment, because writing it would be writing a bug. Folding the check into the transform reads better than the version the file ships — one pass, no double lookup, the check beside the thing it checks — and the Err return leaves the hold appended, so a rejected authorisation permanently reduces the available balance. It type-checks, it runs, and the only symptom is a balance drifting down under load.

19. Composition — examples/Dashboard

The first program in the corpus where the reactive model meets the concurrency model. Every other .velp reads state that lives on the cell thread; this one reads state produced by workers that are not on it, which is the ordinary shape of every progress bar ever written and which the design had never been asked to express.

Five primitives in one place — background, Channel<T>, Synchronized<T>, Published<T> and defer — and the result is a table rather than a gap list, because they do not all fail the same way.

pairresult
defer + backgroundcomposes — designed
defer + effectcomposes — designed
Channel + background + breakcomposes
Published<T> + a component readno mechanism, wants frame
cancellation + Synchronized.updateunsound — partial write
Synchronized.with + a markup readlegal and wrong

Three categories, and they want three different responses.

No mechanism. aliasing.md builds Published<T> for a reader with its own clock: the writer never blocks and never notifies. reactivity.md's model is that a read subscribes and a write patches, and a patch is cell-thread-bound. So a value published by a worker cannot notify anything, and the only way to show it is to poll once a frame — which is frame, a construct examples/Playhead FINDING 13 already has a correction for and which reactivity.md does not mention at all. Both halves read as complete on their own; what joins them is undesigned.

Legal and wrong. Synchronized<T>.with in a markup read takes a worker's lock on the cell thread, inside a turn with a frame budget. Every rule is satisfied — the type is Sendable, the read is legal, the lock is correct — and the only thing that notices is the frame-budget diagnostic, after the fact. Two correct features, one bad program, no rule to point at.

Unsound — and RESOLVED by a property the design already owed. reactivity.md makes cancellation cooperative: it lands at a yield point and unwinds the stack, a transform may call anything, so it may yield, and the unwind leaves the payload half-written. The transform's guarantee was that its critical section is syntactically total, and cancellation is precisely a non-syntactic exit.

The remediation cost nothing, because the restriction that fixes it was already queued. aliasing.md required that a Synchronized transform must not background, receive from a channel or lock a second Synchronized — which is exactly the list of yield points. Ratified as nonsuspending, the third body property (functions.md), carried by the transform's parameter type: update(nonsuspending fn (&var T) -> R) -> R. One marking, two jobs — the deadlock the rule was written for, and this.

Its cost is viral marking on every helper reachable from a transform, and a helper that does I/O cannot be called from one at all. render(path) in this probe is exactly that, the refusal is correct, and the fix is to compute before the transform and write inside it — examples/Ledger FINDING 2's validate-then-apply, for the third time from a third direction.

20. Rejection — examples/Rejected

Sixteen programs that are all supposed to be refused, which is the corpus's only safety probe. It was written expecting to be a regression suite and it is not.

Each case carries four things the design documents do not, because they are about the wrong program rather than the right one: what the author wanted, why the refusal is worth its cost, what the compiler should say, and what to write instead.

Writing the message turned out to be the test. A rule whose diagnostic cannot be written is a rule that is not finished — it is naming a mechanism, a duration or a property nobody has decided — and that is a mechanical criterion where rereading the rule and wondering is not. It sorted the file by itself, and the verdicts below are its output rather than a judgement: refused means the message is writable, unfinished means it is not, uncaught means there is no rule to write one for.

Seven are refused cleanly, by rules that name the shape: a Confined<T> captured by a background body, two &var arguments to one call, a field holding a borrow, a write through an indirect field, a pure fn reading a cell or declaring &var, and a const where mutation is required.

Five are unfinished, and they all failed the message test for the same reason — the diagnostic would have to name something nobody has decided. Mutating a collection while iterating needs a borrow duration nothing states, so control-flow.md's claim that it "needs no rule of its own" rests on an assumption that is not written down. Allocating in a realtime body needs the allocates-or-not property functions.md costed and nobody built, so that rule cannot currently fire on anything. A transform reaching a second lock needs the by-position restriction that lost pure as its candidate. Assigning through an index has three plausible messages — a parse error, an unknown method, an unimplemented feature — and the record picks none. A Copy conformance the fields deny has no stated outcome at all.

Those five are not holes in the design; they are the distance between a decision and a checker — and a project with no compiler cannot tell the two apart, which is the argument for writing this file now rather than after one exists.

Four are uncaught, and the four split three ways, which only became visible once each had an INSTEAD line. Cancellation unwinding a transform has no correct spelling at all — it is unsound and it is the shortest fuse in the record. A lock on the cell thread and a coroutine outliving its component are lints rather than errors, because the same call is correct in another context, and both need the thread-affinity body property to have something to name. A non-terminating macro is already designed in shape and missing only a number.

And one refused case is worth revisiting rather than celebrating. A pure fn may not take an accumulator, and an accumulator is not impure in any interesting sense — examples/Json's writer is exactly that shape and simply does not say pure. The rule is defensible and may be stricter than it needs to be, which is the kind of thing only a wrong program surfaces.

The number worth keeping: of sixteen ways to write something wrong, nine are not currently caught, and not one of the nine is caught by accident. A corpus that only asks can I express this would have found none of them.

21. Adversarial input — examples/Untrusted

A feed reader over a server it does not control. The third axis: §20 asks whether the language refuses a wrong program, §19 asks whether features compose, and this asks what happens when the data is chosen by someone who wants the program to fail.

Ten findings, and not one of them is a bug in a program. Every one is a ratified decision meeting input it was not designed against.

decisionholds forfails for
a duplicate by key trapsyour lista server's list
indirect is a refcounted boxany deptha chain that is freed
scalar-wise ==a user typingimpersonation
.copy()'s depth is openergonomicsamplification
overflow is undecidedliteralsa sum of input

The two that are rules rather than features

A markup for over untrusted ids is a remote crash, and the recommended spelling is the one that does it. control-flow.md decided that a duplicate by key traps, in the register of an out-of-bounds index. Compose that with a list whose ids come from a server: by post.id is what every document recommends, identity_by_value stays silent because a projection is a real claim, and the claim is only true if the server is honest. Two posts with one id — a buggy backend, a replayed cursor, an attacker — and the client traps. The more carefully a developer follows the design, the more directly they are exposed, because the spelling the lint would have flagged cannot collide.

The original reasoning holds and is narrower than it looked: by is an assertion of uniqueness, a false assertion is a defect, and SwiftUI's warn-and-continue is undefined behaviour renamed. All true when the list is yours. When the list is someone else's the assertion is about data rather than about the program, and a defect in the data should not be a defect in the program. Three ways out, and the third is the one to argue about: dedupe at every boundary (the unrepresentable-mistake rule failing), drop the duplicate (defined, cheap, loses data quietly), or make the trap a property of the key's provenance — which nothing in the language can express, and which is the same gap §20 case 14 found from another direction.

Dropping a long indirect chain is unbounded recursion in the runtime. A comment thread is const id string, indirect var reply Optional<Comment> — the second-most common recursive type after an AST, and the marker is required and present. The box is refcounted, so freeing the head frees the reply, which frees the next: one native frame per link, on a chain whose length the server chose. It parses, it renders, and the process dies in the deallocator when the user navigates away.

memory-model.md has a table that looks like it covers this and does not — its scoped-release comparison gives "recursive release of fields (drop glue): no", which is true and is about Scoped. The refcount cascade is the runtime's, and it is recursive whatever with does, so a reader checking that table concludes the opposite of the truth. Rust has the same bug for a long Box chain and the standard fix is an iterative drop — and indirect rule 4, replaceable but never written through, is exactly what such a drop needs and exactly what a program cannot use to write one, since the drop is not a program.

And a fifth candidate body property, which settles an argument

Every limit in the ingest layer is a number that file invented — depth, size, count. examples/Json FINDING 13 established that this is correct: recursion depth is the parser's own problem. The generalisation is less comfortable, because the mechanism now exists. functions.md shipped two body properties this week, a third was already queued, thread affinity is a fourth, and "this body is bounded" is a fifth with the clearest closed set of any of them — no unbounded recursion, no allocation sized by its input, no call to something not itself bounded.

Withdrawn, and the objection is better than the proposal. Boundedness cannot be established by the kind of check the other properties use: a function with no recursion can loop a number of times its input chooses, and one allocating a fixed amount per iteration still has no useful upper bound. A closed set of forbidden operations cannot see either, so the property would promise more than any checker could deliver — and an over-promising property is worse than none, because people rely on it.

What the language owes instead is narrower and real: the three places it does unbounded work on a program's behalf, where the program cannot intervene — .copy()'s depth, the refcount cascade freeing a deep indirect chain, and the macro evaluator's step count. Those are runtime obligations, not user-facing properties.

And the argument in functions.md is settled a different way than either candidate suggested. Three body properties means three keywords, which is the cost that file warned about and then paid without arguing, so it now carries an admission test instead of a count: a candidate must be a closed set of forbidden operations, propagate call-wise from signatures, be checkable from a signature alone, and have a corpus program that needs it.

bounded fails the first. Thread affinity fails the second, and that is the more useful result — "must run on the main thread" is not a restriction on a body, it is an obligation on callers, and it propagates the other way. §10 finding 7 had it right the first time: "main-thread affinity is a property of a call, not of a value." A property of a call is not a property of a body, and filing it as one was a conflation.

So the set is three, with a reason rather than a vacancy.

Why this is a different axis

tradeoffs.md names the pattern one level down — a decision checked against the program that asked for it, with the cost landing on a program written later. This is the same failure against data: a decision checked against input the author controls, with the cost landing on input they do not.

Two of the five are rules to decide rather than features to build. The other three are open questions that turn out to have a security face nobody had attached to them, which is worth more than it sounds — an open question with a consequence gets answered, and one without drifts.

The three questions a probe is for

Supplied by an outside reviewer while this round was being written, and worth adopting as the standing rubric, because scoring the existing corpus against it says something uncomfortable.

  1. Safety — can the program express an invalid ownership, aliasing, lifetime or concurrency operation, and does the language reject it reliably?
  2. Expressiveness — can it express ordinary algorithms and data structures without contortions, privileged escape hatches or excessive boilerplate?
  3. Composability — do individually reasonable features still behave sensibly when combined?

A fourth was added after §19 and §20 were written, because neither of them reached it and it is not a special case of the other three:

  1. Adversarial data — does a decision still hold when the input is chosen by someone who wants the program to fail? §21 is the first entry written to it, and every finding it produced is a ratified decision rather than a mistake, which is what makes the axis distinct: safety asks whether a wrong program is refused, and this asks whether a right one survives.

The corpus was lopsided, and it was lopsided in the direction that flattered the design. Eighteen programs, and nearly all of them tested expressiveness: they are written in the most plausible spelling and the gaps are what the spelling could not say. That is why the gap log is long and useful.

Almost nothing tests safety by writing something invalid and checking it is refused. The corpus has two instances — examples/QuadTree/tree-places.elp, which forbids itself three constructs to see whether the rest suffices, and examples/Ledger FINDING 5, which writes a bug as a comment because writing it as code would compile. Every other rejection in the record is argued rather than demonstrated. A design that has never been handed a wrong program does not know whether its rules fire.

And nothing tests composability at all, which is what open-questions.md's composition question is about. Every probe exercises one area; the interactions between eight concurrency primitives, three scope-exit constructs and two body properties have no program at all.

And the corpus is a list of obligations, not a list of features. Put there by an outside reviewer and worth keeping as the standing caution: a finding discharges in one of four ways, and only one of them is a new construct. It may be a tighter restriction (nonsuspending), a runtime obligation (the drop cascade), a documentation rule (identity is a policy, not a ==), or the example being wrong (examples/Ledger FINDING 1). Three of those four happened in one round, which is the argument for the caution rather than against it.

One methodological qualification, also from outside, and it applies to every entry here. These are conceptual tests: they establish what the design as described appears to permit or refuse, not what a compiler does. There is no compiler. That is the right order — this is the work to do before one exists — and the distinction is worth preserving as the corpus grows, because the day a front end returns, every verdict in examples/Rejected becomes a claim that can be checked rather than argued.

So the next entries were chosen by what is missing from this rubric rather than by what is interesting: §19 puts five primitives in one place and asks whether they still mean what they meant alone, and §20 is sixteen programs written to be rejected. Between them they found one unsound pair, four composition failures nothing catches, and five rules that name a mechanism nobody has built.

Suggested order

  1. Operators, including ==/=== and whether they are interface-driven. Everything below references it and generics.md already owes an answer.
  2. Optional narrowing, because it decides how much the rest of the language has to work around nil.
  3. Collections — Map, indexing and bounds, iteration protocol (already open in reactivity.md), value semantics vs .copy().
  4. Tuples — done (patterns.md), and the answer was that there is no tuple type.
  5. Char and strings — done (strings.md).
  6. Piping — done (functions.md), and the answer was no |>. In a method-oriented language it is a second spelling for method chaining, and the corpus's free functions are parallel rather than composed. Extension methods on foreign types are rejected with it.