LEVIATHAN vd52e79c4 · d52e79c486

leviathan-lang.com / docs / known issues

Known issues

Open issues in the compiler and standard library at the commit in the footer, grouped by priority. P0 = wrong output or crash on ordinary programs; P1 = high; P2 = medium; P3 = low.

P0 · critical

No open issues at this priority.

P1 · high

  • found 2026-11-02 · Details are in the project bug register.

P2 · medium

  • found 2026-11-03 · by the review of value-model M1 (round 1, finding 3; branch language-place-rule). [P2.4]: a missing diagnostic; every engine agrees. E1 misses a getter-only indexer when another indexer overload has a setter. readsGetterOnly(cls, "[]") asks whether the class has any set ([]), not one for the index type, so P get ([])(string k) beside set ([])(int i, P v) counts as a pair: g["k"].x = 5 and g["k"].bump() compile, and the change is lost on every engine.
  • found 2026-11-02 · Details are in the project bug register.
  • found 2026-10-31 · Details are in the project bug register.
  • found 2026-11-03 · by the unsafe-gate-13 design probes. [P2.4]: the permission decision for generated code depends on which macro form wrote it, and no supported construct misbehaves. A procedural macro's output is gated against the USE SITE's module, while a template macro's output is gated against the MACRO's module. RuleEngine::expandMacroCall restamps every procedural node with the call span (restampExpr, src/meta/Rules.cpp:1512, :1655), so noteFfiGatedUse attributes it to the caller's file; a template clone keeps its spans in the rule's file (RulesClone.cpp:516). (The research suspicion that procedural spans alias file 0 is refuted by the restamp; the request's claim that such code "fails closed" is false too.)
  • found 2026-10-19 · while fixing #substrate-b3c-002 (identical on master 95c86fe9). [P2.2]: output is correct on every engine; native memory grows linearly. Storing the result of a call on an interface-typed (maybe-struct) field into another such field, when the value is a struct (u = v.bump(k) with IBump u, v), leaks about 32 B per store on --build-native.
  • found 2026-10-19 · while fixing #substrate-b3c-002 (identical on master 95c86fe9). [P2.2]: output is correct on every engine; native memory grows linearly. A CONSUMED value-struct receiver (p = p.bump(i), P a struct, bump an in-language method) leaks the receiver window's record — about 95 B per call for a two-field struct — on --build-native.
  • found 2026-10-19 · Details are in the project bug register.
  • found 2026-10-13 · fixing #substrate-b3d2-001 (identical on master e6bbd673). [P2.2]: output correct on every engine (and natively under LANG_HEAP_POISON); the native ownership emission is wrong. tests/corpus/ownership/ownership.lev section 38 releases a counted reference-class object after it was freed: mergedStores → lvrt_release on a tag-5, non-value-class payload whose block already carries the free tombstone. Today the out-of-line lvrt_release drops it (lv_is_counted's lv_payload_is_freed test), so nothing is written. It becomes a P0.3 write into a live block if that block is reused between the free and the stale release, or if the release site is ever emitted as inline ARC (D29 keeps the tombstone test off that path). Found with a scratch runtime whose lv_is_counted traps on a freed COUNTED payload (a value-struct record excepted, read without LANG_HEAP_POISON, since poison overwrites its class id). Repro (22 lines, the delta-debugged section; traps every run with that runtime, inline ARC on or off):
  • found 2026-10-12 · Details are in the project bug register.
  • found 2026-10-27 · by trusted-types 04's new verify pass over the docs examples (docs_examples_ir_verify_*; identical on master a9a241c7). [P2.3-adjacent]: every engine prints the right value (native is leak-flat at exit), but --ir-verify rejects checker-accepted code. An array literal used as a map KEY is reported as a scope-owned allocation that survived its frame.
  • found 2026-10-27 · by trusted-types 04's new verify pass over the docs examples (identical on master a9a241c7). [P2.3-adjacent]: every engine prints the right value, but --ir-verify rejects checker-accepted code. A using declaration of an interface type bound to a call result fails the ownership verifier.
  • found 2026-08-20 · Details are in the project bug register.
  • found 2026-10-11 · by the typed-substrate doc 15 B3e work (branch substrate-b3e; PRE-EXISTING: identical on master 4d82042). [P2.2]: output correct on every engine; memory grows without bound on --build-native. A struct store through a SET accessor (h.p = P(i, i) with set p(P v) backing = v;) leaks the stored record: 64 B per store.
  • found 2026-07-27 · Details are in the project bug register.
  • found 2026-08-01 · by the orchestrator, triaging the full suite on the merged S6 tree. Marker note: no marker fits cleanly — the failure is loud (a wasm module fails to instantiate, rc 1), no actively-maintained engine per this file's own definition (--ir, LLVM) is wrong, and nothing is silently incorrect. Filed at P2 as the closest honest tier because a lane is red on master and, worse, the same lane reports green in most checkouts while testing nothing (below). Re-tier on owner ruling.
  • found 2026-10-19 · Details are in the project bug register.
  • found 2026-10-08 · while surveying the language for the owner's blog series. A function declaration inside a function body is a parse error, and the diagnostics never say so. [P2]: owner ruling 2026-10-08 says nested functions should be valid (below), but their semantics (capture, hoisting) are not ruled yet, so the semantics-ruling cap (override 2) applies.
  • found 2026-10-06 · by the repo-cleanup merge of language-bug-p08-001.
  • found 2026-10-28 · while writing the decimal corpus (branch language-decimal, decimal session 02; master 03756cc1 behaves the same with an int field, so it is not decimal's). [P2.3-adjacent]: every engine prints the right values, but --ir-verify rejects checker-accepted code (exit 1). A value struct read out of a Map with at(k) into a local, then changed with a mutating call, fails the ownership verifier.
  • found 2026-10-28 · while checking the --expand round trip of tests/corpus/decimal/decimal_reify.lev (branch library-decimal; the same with a float field, so it is not decimal's). [P2.3]-adjacent: fails loud on every engine for code the reference documents as compilable (the --expand output of a reified lambda, lang.reification-expand); no engine computes a wrong value. A lambda with an untyped parameter passed to the F parameter of a generic constructor is checked with that parameter unknown when F is not given explicitly (Box<(Item) => bool> c = Box((x) => ...)), and also in the explicit construction expr::Expr::<(Item) => bool>((x) => ..., ...) that --expand prints for every reified lambda. A literal beside a float or decimal member then keeps its default type and the comparison is rejected.
  • found 2026-11-04 · by the language-486 session (noted in tests/corpus/ownership/weak_record_target.lev, never registered). Engines disagree: reading a weak slot that holds a struct (record) while its owner is still alive prints None on --run but Some natively (and the value). One of the two is wrong; the weak-reference rule for value records (M2: records are counted) decides which. Repro: the alive-owner rows of weak_record_target.lev.
  • found 2026-11-05 · by the metaprogramming research session (probes with build/leviathan dated 2026-11-04, --run and --run --ir; a compile-time diagnostic, identical on both). [P2.3]: a documented splice position fails loud for one reflected type and not the other. meta::Method.returnType cannot be spliced as a type, while meta::Param.type can. $p.type in a type position works; $m.returnType (and $m.type, which the splice docs imply for "a method") does not.
  • found 2026-11-05 · by the metaprogramming research session (build/leviathan dated 2026-11-04, --run and --run --ir; compile-time, identical). [P2.3]: a documented inject fails loud where a hand-written equivalent compiles. The inject ... at member of C collision check ignores parameter types: two overloads that share a name and a syntactic return type but differ in parameter type are reported as a collision.
  • found 2026-11-05 · by the metaprogramming research session (build/leviathan dated 2026-11-04, --run and --run --ir; identical). [P2.1]: the intended reflected spelling is not ruled. meta::Param.type and meta::Field.type echo the spelling written at the use site, not one canonical spelling: the same type written bare through use NS::Thing; and written NS::Thing reflects as two different strings, which breaks any string-keyed registry (matching a param type against another member's return type, or against a set of known type names).
  • found 2026-11-05 · by the metaprogramming research session (build/leviathan dated 2026-11-04, --run and --run --ir; parse-time, identical). [P2.3]: a documented splice position fails to parse in one anchor. An inject ... at namespace N template whose declaration returns a spliced type ($f.type name(...)) is a parse error, while the same template at at member of C works (the splices reference lists "declarations at namespace scope" as a position).
  • found 2026-11-05 · by the value-model M4 L4 integration (branch value-model-m4); narrowed the same day by the PO's ruling (a). [P2.2]: performance only, output correct on every engine. A collection verb called by name through erasure on a FIELD, a GLOBAL or an ELEMENT receiver keeps the place's count, so the row copies on every call and a loop of them is quadratic. Since ruling (a), a LOCAL receiver (an erased-T or interface-typed local included) transfers its count the way master's x = x.add(v) did (Lowerer::lowerVerbByName; probes tests/corpus/collection_verbs/alias/a16–a19; lane corpus_collection_verbs_erased_linear_llvm).
  • found 2026-11-03 · by the language-override-arity review (round 2, probe fp6); identical on the pre-lift baseline 3fbbd4e4. [P2.1]: engines diverge, and what a range arm on a type-parameter value should do when the bound type does not order against the range's ends is not ruled. The non-generic form is a compile error (a range arm needs a subject the comparison operators order); a generic body binds no demand for an arm, so the binding compiles. A range arm on an erased T bound to bool or to a class with no (>=) takes else on --run, matches on --ir and natively for bool, and raises on --ir and natively for the class.
  • found 2026-11-01 · by the review of the P0 batch. [P2.1]: engines diverge. A timer callback a worker body registers runs on the worker's globals natively and on the program's on the cooperative leg. A worker sets G = 2 and a timer it started reads G: --run and --ir print 1, native prints 2. Cause: the loop dispatches the callback with no current task, so lv_task_spawn gives it table 0. Fix: record the table at registration. The reference already tells a body to keep its work inside the body.
  • found 2026-11-01 · by the P0 batch. [P2.3]: residual of the snapshot at spawn.
  • found 2026-11-01 · by the contract-assertions rework (branch language-contracts-rework-front). [P2.1 by analogy, filed P2 on the orchestrator's instruction]: a report's text changes across --expand. --expand keeps a predicate's text only when the printed tree spells it the same way: parentheses the program wrote without needing them, nested infix nodes inside a call argument, and spacing are not preserved, so ContractViolation.predicate of the expanded program differs from the original's. The clause's infix spine prints only the parentheses precedence needs (srcPredicate, src/meta/AstPrinter.cpp), which covers the plain cases.
  • found 2026-11-01 · by the contracts review. [P2.1]: the place rule of a mutating call on an interface value is open for two shapes.
  • found 2026-11-01 · Details are in the project bug register.
  • found 2026-11-01 · Details are in the project bug register.
  • found 2026-11-02 · Details are in the project bug register.
  • found 2026-11-02 · by the fresh review of the P1 batch. [P2.2]: output correct on every engine, memory grows on --build-native.
  • found 2026-11-02 · by the fresh review of the P1 batch (pre-existing). [P2.2]: output correct, a native leak per call. A generic ternary return leaks 64 B per call: T pick<T>(T a, T b, bool c) => c ? a : b; with pick(a, b, i % 2 == 0).v at 200k iterations: 12,801,120 B, expected flat. Cause not found; the likely area is the erased ?: merge copy on return.
  • found 2026-11-02 · Details are in the project bug register.
  • found 2026-11-02 · by the review of the P2 batch (pre-existing). [P1.1-shaped, filed P2: the intended meaning needs a ruling]: A computed accessor's BARE own name reads void: in class C { int n = 3; int get c() { if (n == 0) return 0; n = n - 1; return c + 1; } }, C().c prints 1 on every engine; this.c dispatches and gives 3. The reference calls the bare name the raw field, and a computed accessor has none. Decide: dispatch as this.c does, or a compile error. Pointer: selfAcc in the Name arms of src/ir/Lower.cpp and rawField_ in Evaluator (Name read).
  • found 2026-11-02 · by the review of the second P2 batch (pre-existing). [P2.1]: every engine agrees, against the owner's strict left-to-right ruling. A call as a compound target's base runs twice: gaf()[0] += 4 calls gaf() twice. The index memo covers the indices only. Pointer: Lowerer::chainIndexNodes and Evaluator::IdxMemo.
  • found 2026-11-02 · Details are in the project bug register.
  • found 2026-11-05 · Details are in the project bug register.
  • found 2026-11-03 · by the value-model M2 L1 review; narrowed 2026-11-05 (the stack half fixed on branch language-485). [P2.2]: head = Node(i, head) on a self-referencing struct (struct Node { int v; Node? next; }) lowers to CopyVal r <- head — a deep copy of the whole chain on every rebind — so building an n-node chain costs O(n^2) record copies on every engine: natively 20k nodes 24 s, 50k 3 min, 100k 26 min; --ir 3.9 s at 3k, 24.8 s at 6k. Repro: tests/corpus/ownership/struct_chain_deep.lev with n raised. Fixed on language-485 (not this entry): the task-stack overflow — lvrt_copyval, the R-19 record teardown and the interpreters' copyValue / Object destruction now run on heap work-stacks, so a chain of any length copies and drops (struct_chain_deep_stack_floor pins it at LANG_TASK_STACK=65536 on all three engines).
  • found 2026-11-03 · by the value-model M2 L1 review (pre-existing, not M2). [P2.2]: string s = string(); leaks 32 B per construction natively (64 B before value-model M2): a string-stamped register holds a tag-5 object. Repro: void f() { string s = string(); } called N times; native [heap] live-at-exit grows 32 B per call.
  • found 2026-11-03 · by the re-check of language-478 fix round 3.
  • found 2026-11-03 · by the frontend_cost lane. [P2.2]: output is correct; the empty program's front end grew from 381.6 M Ir (--ir, measured at 0a255093) to 417.7 M Ir at 31b1ccb2, +9.5 %, unnoticed until value-model M1 tipped the 420 M ceiling in tests/run_frontend_cost.sh. language-478 (1706ea23) reads 420.4 M. Repro: bash tests/run_frontend_cost.sh build/leviathan on master. frontend_cost is in tools/known-reds.txt until the drift is bisected, the non-deliberate part recovered, and the ceilings reset; the fix removes the row. Bisected 2026-11-03 (--ir empty, M Ir, master first-parent): 0a255093 381.5 → 820f8f5f 383.2 → a3ee9a85 389.1 → 5f8a955e 396.1 (+7.0, contracts prelude merge) → 3c7f1b7c 402.0 → 1c3766bf 407.8 → aad4b9df 409.9 → b190121d 418.0 (+7.6, unsafe-gate M2: ResolverUnsafe.cpp, 75 lines, on an empty program — first suspect) → 31b1ccb2 417.7. Attributed 2026-11-07 (Release callgrind, --ir empty): master df243dad reads 425.6 (ceiling 421) and --run 324.1 (ceiling 321). The unsafe gate makes two whole-prelude walks in the prelude's own check run. The §5.1 sweep judged nothing there; it is skipped since the language-479 landing: --ir 422.2, --run 320.6. The §3.2 marking walk is needed, because user-run clones of prelude generics read its stamps. Removing it means stamping at allocation in the prelude phase, a change to how §3.2 produces the stamp; that question is with the owner (PO language-59, 2026-11-07) and is not built. The contracts step (+7.0) is the prelude text it added, which is deliberate. Value-model M1–M5 added +7.9 on --ir (probe, 2026-11-07, Release callgrind, first-parent).
  • found 2026-11-01 · Details are in the project bug register.
  • found 2026-10-27 · by the fresh review of trusted-types 06 (probes p_weak.lev / p_weak2.lev; master 2f9a7a49 behaves the same). [P2.1]: engines diverge and a semantics ruling must pick the intended behavior. A weak field of an interface type (weak IIterable<int>? w) that is assigned an Array, a Map or a Set reads back None on the interpreters but the collection itself on LLVM.
  • found 2026-10-26 · by static-members landing 2 (migrating the libraries to import-required) [P2.3]: a documented feature fails loud (a compile error on every engine).
  • found 2026-10-26 · Details are in the project bug register.
  • found 2026-10-19 · by the weak-release review rework (identical on the pre-4e887ddd base and with no weak field anywhere — not the release pass). [P2.3-adjacent]: every engine prints the right value, but --ir-verify rejects checker-accepted code (exit 1). A ?: whose arms read an erased T field out of a temporary object fails the ownership verifier.
  • found 2026-10-19 · Details are in the project bug register.
  • found 2026-10-13 · by the review of the #substrate-b3d2-001 fix. [P2.3]: a leak (traded for a use-after-free). Reassigning a struct PARAMETER from a place — int sH(QM p, C s) { p = s.q; return p.v; } (QM has a string field) — leaks the heap copy, 64 B per call (master: flat, but it SIGSEGVs once the rebound parameter is written). The scope-owned CopyVal takes the arena route; since the fix a struct with counted fields gets a heap copy there, but ownershipOwningRegs (src/ir/Ownership.cpp, cand[p] = 0 for every parameter) never treats a parameter as owning, so nothing frees it. Repros: review scratchpad arenarev-o3-param-rebind.lev, arenarev-o4-param-rebind-write.lev. Fix direction: lower a parameter reassignment into a fresh owning local. Regression test: none yet. Also (2026-10-19, language-enum-compare-leak): rebinding a struct parameter to a CALL RESULT leaks 64 B per call for any struct, scalar-only ones included — P pnext(P p) => P((p.v + 1) % 4); int mut2(P p) { p = pnext(p); return p.v; } called in a loop: 2,656 / 19,936 / 192,736 B live-at-exit at 30 / 300 / 3,000 calls (the owned call result lands in the non-owning parameter register); the enum form int bump(Dir d) { d = next(d); return d.code(); } is identical.
  • found 2026-10-12 · by the batch-2 re-review (L2). [P2.2]: valid-looking code rejected with a misleading type error (master compiled it and failed at run time).
  • found 2026-10-08 · by the orchestrator's verification of the #substrate-m1-003 rework. [P2.2]: memory grows without bound on an active engine; output is correct. The struct result of a user-defined struct operator leaks one record per evaluation on --build-native. Pre-existing: the pre-M1 build (b02b1d0) leaks 192 B per iteration on the same shapes; d0573dd's Arith operand reclaim cut it to 64 B (the operands are reclaimed now; the operator's own result record is not).
  • found 2026-10-09 · by the typed-substrate B1 work (branch substrate-b1; identical on master 8145c74). [P2.3-adjacent]: no engine prints a wrong value, but the --ir-verify conformance check rejects checker-accepted code, so such a program cannot sit in a verified corpus. An expression-position match with a block arm that breaks leaves its result register — Int-stamped from the checker's type — written VOID by the result's Default seed, which --ir-verify reports as a stamp violation.
  • found 2026-10-28 · by the fresh review of language-protected-access (probe c08; master behaves the same, no engine code changed on that branch). [P2.1]: engines diverge. A memberwise construction of a base class written in a derived constructor (class P { int x = 0; int y = 0; } class D : P { new D() { P(41, 2); } }) assigns the base's fields in place on the oracle (D().x prints 41) but not on the IR interpreter or LLVM (0). The checker treats the call as in place (Checker::inPlaceCtorCall) and the oracle follows it; Lower does not lower a ctor-less in-place call to field stores. A ruling must pick one: in-place memberwise assignment on every engine, or a compile error ("a class with no constructor has no in-place call; assign the fields"). Workaround: give the base a constructor and call P::P(41, 2). Regression test: none yet.
  • found 2026-11-03 · Details are in the project bug register.
  • found 2026-08-15 · during perf-epic C2 (record-row capacity word), PRE-EXISTING and layout-independent — the identical figure was measured at the base commit (63148dc) on the DENSE row and after the change on the record row, so the capacity work neither caused nor moved it. [P2]: resource defect on an actively-maintained engine (LLVM lane), exit 0, correct output; not P1 because no value is ever wrong and growth is bounded per build loop, not per iteration.
  • found 2026-09-14 · while verifying branch language-bug-dagon-p05-001 (test infrastructure, not a compiler bug).
  • found 2026-10-02 · writing the statements chapter of the reference. At the outermost level of a script, a using declaration and a bare { ... } block are parse errors ("expected expression"), although the same statements parse inside a function body or inside the body of an if / while. [P2.3]: documented statement forms (using Type name = expr;, { stmt* }) fail loud at script top level. (A top-level var is legal since type-discipline 03, typed from its initializer before the walk.)
  • found 2026-10-08 · Details are in the project bug register.
  • found 2026-10-11 · Details are in the project bug register.
  • found 2026-10-20 · while setting up the GTK test app (~/code/ide, the first outside consumer of FFI). [P2.3]: a documented manifest form fails loud on the oracle and the IR interpreter while LLVM runs it — a [[native]] table whose path names a library FILE (plan row kind = "file") is never handed to the interpreters, so they dlopen a name guessed from the nickname. docs/reference/trident/native-libraries.md documents path as "a library file, or a folder to search"; naming the versioned file is the way to link a library on a box without its -dev package (no unversioned lib*.so symlink, no .pc), e.g. path = "/lib/x86_64-linux-gnu/libgtk-4.so.1".
  • found 2026-10-20 · building the ~/code/ide GTK app's tile system. [P2.1]: the engines diverge and a ruling must confirm the intended behaviour — IR and LLVM default-construct a class-typed field by running the class's zero-parameter labeled constructor; the oracle builds it memberwise. With a constructor that has side effects (here: one that calls gtk_list_box_new) the lowered engines run it once per owning object, before the owner's own constructor, and crashed the app (GTK called before initialization) where the oracle would not.
  • found 2026-10-25 · Details are in the project bug register.
  • found 2026-10-28 · while writing tests/corpus/decimal/decimal_reify.lev (branch library-decimal, decimal session 04's cell-union ruling; the same with an int? local, so it is not decimal's). Semantics-ruling cap (override 2), no P0/P1 marker: fails loud on every engine, and whether such a capture binds is not documented (docs/reference/metaprogramming/reification-binds.md's internal note leaves nullable captures unpublished). A reified lambda that captures a T? local whose flow type is narrowed to None (it was assigned None) is rejected with cannot reify capture of a non-value type, though the binds union holds None and a T? capture that is not narrowed binds.
  • found 2026-10-28 · while widening the reified cell union (branch library-decimal). [P2.4]-adjacent: an unsupported construct errors, but with an internal diagnostic instead of the reifier's named one; whether a narrow-numeric literal should reify (as int/float) or be rejected is a ruling (cap, override 2). A literal that adopts a sized numeric type (byte, int8/16/32, uint, float8/16/32) beside a sized field inside a reified lambda fails with call to 'Lit': argument for parameter 'value' has type 'byte', expected 'string | int | float | decimal | bool | None', an error about a constructor call the user never wrote.
  • found 2026-10-28 · by the fresh review of decimal session 05 (branch language-decimal-columnar; master b61aa90f behaves the same for a scalar-only struct). [P2.2]: output is correct on every engine; memory grows without bound on --build-native. Storing a struct into a dense or columnar Array element from ERASED generic code — Array.with(i, v) (prelude/core.lev ~:7357, r[i] = v on a T) or any gWith<T>(Array<T> xs, int i, T v) { xs[i] = v; ... } — leaks the stored record on every call.
  • found 2026-10-29 · (same probe). bind rejects a value type (int, string, a struct), but the check does not look inside unions or optionals, so bind int|string => 5; and bind A? => ...; are accepted and inject. The check is Checker.cpp:1374-1388 ("cannot 'bind' the value type 'int' (a struct/primitive): dependency injection cannot carry a value through — pass it as an explicit argument instead"). A union parameter is filled by the union's own bind (exact-type lookup on the canonical string, CheckerOverload.cpp:973-974).
  • found 2026-10-29 · while writing the generic-override pin of frontend-cache session 03 Note 2026-11-02: confirmed: the override drops e->resolved on console.writeln, so isConsoleMember misses and the call becomes a CallDyn by name, which finds no body for the bodiless native. Fix shape: a lowered body for Console.writeln/write (its Print ops) registered in mod_->byDecl when a program overrides them, keeping the direct Print path otherwise (Lowerer::collectClass, the native intrinsic arm). (tests/corpus/prelude_generic_override_binding.lev). The session-01 compiler (535f491a) behaves the same, so it predates the prelude-phase work. [P2.1]: the engines diverge, and IR and LLVM lose output silently. When a program class overrides io::Console.writeln<T> (or write<T>), every console.writeln(...) on the library's own console prints nothing on --ir and on LLVM, while the oracle prints it.
  • found 2026-10-29 · Details are in the project bug register.
  • found 2026-10-29 · by allocation-churn track 1 (the R-19 premise check; identical on the master d3e44eee runtime and on perf-heap-window). [P2.1]: a crash on a legal program shape. A self-referencing value struct (struct S { int v; S? next; }) forms chains of records whose teardown recurses once per record, so a deep enough chain overflows the C stack when it is freed. The deep copy recurses the same way (lvrt_copyval, one frame per record), so in the language the copy overflows first: building such a chain by value (S c = S(i, h); h = c;) dies at ~20,000 records with task stack overflow (task #1, stack 1048576B; raise LANG_TASK_STACK) inside lvrt_copyval. The teardown overflow, reproduced through the runtime rows (a chain built without copies, then vfreed):
  • found 2026-10-30 · by the float-format cloud session (branch language-float-format, M4 lanes); unrelated to float formatting. Passing a T? (here a class implementing an interface) to an overload set whose only candidates take the interface and a generic Array<T> is rejected, and the message names the generic candidate. (The Atlantis face, atlantis_suite_serialization, is resolved by the library: packages/atlantis gained an __atlEnc(IJsonSerializable?) overload. What remains is the misleading diagnostic below.)

P3 · low

  • found 2026-11-03 · by the unsafe-gate M2 re-check. [P3]: the orchestrator's judgment, not an owner ruling and not a marker. By the markers, P2.4 would apply if refusing this were the intended behaviour, but that is undecided. The exporting module holds the native permission and chose the export, so this is equivalent to a wrapper function void closeIt(ffi::Library l) => l.close();, which the three-layer model permits. A module with the native permission can expose a gated ffi::Library (or ffi::Callback) member to a module without it, through an interface the native module declares itself. The native module subclasses ffi::Library and implements its own interface, so the inherited gated sym (or close) becomes the interface's implementation. In the consuming module, s.sym(..) statically names the ungated interface member, so no gated use is recorded, and at run time the gated ffi::Library.sym runs. Resolver::checkGatedSurface (src/sema/ResolverUnsafe.cpp) refuses this shape in prelude classes only. A program class is not checked.
  • found 2026-10-13 · by the typed-substrate B4 grading (callgrind on the closing build, master 65cc709f; bisected to 2c1b4feb). [P3]: no P0–P2 marker applies: output is identical on every engine and the cost is a constant factor, not the asymptotic or memory behavior P2.2 covers. int.toString() on the typed native path makes one out-of-line memcpy call per conversion since 2c1b4feb: that commit (the #substrate-b3b-001 fix) moved lvrt_int_to_str's digit loop into the shared lv_fmt_i64 and copies the digits with lvrt_str_new(out, buf + i, 23 - i); the C compiler now emits that variable-length copy as a library call. P7 (bench/substrate-research/p7_tostring.lev, 3M conversions) spends lvrt_int_to_str_v -> __memcpy_avx_unaligned_erms 3,000,002 calls = 45.0M Ir (4.6% of the program). P7's Ir went from 937.4M at the B3c landing (91143293, and 0701fd97, where lvrt_int_to_str_v makes no memcpy call) to 969.3M on master (+3.4%), and its wall from 54 to 58 ms (3-offset median, bench/substrate-research/RESULTS-final.md). This is why P7 misses its ≤ 55 gate at B4.
  • found 2026-10-12 · Details are in the project bug register.
  • found 2026-10-12 · by the typed-substrate B3d.3 repro sweep (identical on master 4e6f5a2f and on the B3d.3 base 49480158). [P3]: a verifier false alarm; output identical on every engine. --ir-verify reports a register-type violation when an Array is indexed with a byte: the prelude's Array.([]) getter stamps its index parameter Int (its declared int), but a byte argument reaches it unconverted, so the write-consistency assertion sees a Byte value in an Int-stamped register.
  • found 2026-10-11 · while checking the lvrt_raise_oob sibling for #substrate-b3b-001 (identical on master a179a14). [P2.1]: engines diverge on checker-accepted code and a ruling must pick whether Range stringifies. r.toString() / "${r}" on a Range fails loud on --run and --ir but prints an empty string natively.
  • found 2026-08-19 · Details are in the project bug register.
  • found 2026-07-22 · while running the full post-merge suite for the wasm browser-fetch packet.
  • found 2026-10-11 · by typed-substrate doc 15 B3c (the cne role audit, LANG_CNE_DEBUG=1). Seven lvrt_* rows the LLVM backend calls are not declared in runtime/lv_abi.h — lvrt_sysnow, lvrt_sysmonotonic, lvrt_syswinsize, lvrt_systermisraw, lvrt_syssignalopen, lvrt_syssignalnext, lvrt_syssignalclose — they are declared only as fn("lvrt_…", …) in src/backend/LlvmGen.cpp and defined in runtime/lv_runtime.c (:4893, :5128, :5146…), outside the normative boundary contract (lv_abi.h §2.1: "every value crosses the generated<->runtime boundary … [the rows] below"). No marker of P0–P2 fires (no program output, diagnostic or resource behavior differs on any engine); recorded at the lowest tier because since B3c the header's parameter CONSTNESS is load-bearing for the emitter (lv_abi.h §2.1 [A8]): a row outside the header has no role row, so cneCall routes every register cell it receives as read+written (always correct, one redundant copy-out per input cell) and reports it under LANG_CNE_DEBUG=1.
  • found 2026-10-28 · by the tools/test.sh gate run of branch language-decimal-kernel (decimal session 01), which does not touch tools/heavy*. [P3]: no P0–P2 marker applies: a test-scheduler self-test timing check, no engine, program or output involved. heavy_selftest check [8] "quiet's hard cap" fails under phase-1 suite load: tools/heavy quiet --max 3s -- sleep 60 was stopped after 2,205 ms, below the check's 2,900 ms floor (tools/heavy-selftest.sh:174), while the exit code (99), the "split the benchmark" message and the slot release all passed (53 passed, 1 failed). Phase 1 is fail-fast, so the flake stopped the gate at test 1,101 of 2,371. The same test passed alone straight after (tools/heavy lane -- ctest -R '^heavy_selftest$'). The cap either starts its clock before the selftest's t0 or is enforced early when the box is loaded; which one was not investigated.
  • found 2026-11-05 · by the metaprogramming research session (build/leviathan dated 2026-11-04, --run and --run --ir; compile-time, identical). Filed P3: the documented rule surface does not promise it, and the qualified spelling is a one-token workaround (no P0-P2 marker applies). A $for iterator expression in a rule template cannot call a same-namespace helper function unqualified.
  • found 2026-11-03 · by the language-override-arity review (round 1); filed P3 by the Track B orchestrator: a documented compile error with no wrong output, so no P0-P2 marker applies. Indexers are the one dispatch the same-arity lift (request lift-override-arity-error) left out: an overloaded indexer overridden below the receiver's static type is still a compile error at the use. Methods and operators dispatch on the overload the checker chose (Expr::dispatchKey); an indexer has no such key on any engine, so lifting it is a request-sized change across the checker, the lowerer and LLVM.
  • found 2026-11-02 · by the review of the P2 batch (pre-existing). [P3.1-shaped: a corner of an unsupported key type]: A function name as a Map key on a store: m[twice] = 1 fails --ir with IR: not yet lowerable: name 'twice' (methodRefsAllowed_ is false while the store target is typed), and --run raises key not found: <closure> at the read. Each site is a new closure, so twice == twice is false.
  • found 2026-08-21 · Details are in the project bug register.
  • found 2026-10-07 · by the perf-epic D11 Stage 2 architect sign-off. Hot typed functions are emitted without cache-line alignment, so an unrelated module size change can move a function across a 64-byte line and cost ~8–11% wall time with byte-identical code. Measured: unpeeled fib (--no-recursion-peel) went 258 → 286 ms best-of at n = 40 between 091ccb8 and master; the function body is byte-identical (22 instructions) and net callgrind Ir is identical — master's fib sits at 0x355a0 and straddles the line at 0x355c0, the old one sat 64-byte aligned. The peeled fib straddles the same way, so this may also be part of figure 1's 1.28x residue. [P3]: performance only, no wrong output.
  • found 2026-10-27 · by the fresh review of trusted-types session 03 (branch language-narrowing-rules, probe q1). The engines disagree on a member call on a None that the checker typed as present. Before the session-03 review fix, the checker typed an assignment's target before its right side, so a[s.length()] = h(s = None) inside if (s != None) was accepted although every engine evaluates the right side first (a[idx()] = h(7) prints rhs then index on --run, --ir and native). That shape is now a compile error (pin tests/negative/narrowing_assign_index_rhs_write.lev), but the divergence it exposed remains for any value that reaches a member call while holding None against its static type:
  • found 2026-10-28 · while retargeting emit_determinism off Dagon (branch runtime-remove-gui-floor). [P3.3]: emission determinism is implemented (W11 session 01); only the lane's coverage is missing. On a warm native object cache the emit_determinism lane compares cached objects, not fresh emissions. The lane (CMakeLists.txt, tests/run_emit_determinism.sh) sets no LEVIATHAN_CACHE=off, and the cache key does not include the source directory, so the second directory's compile is a cache hit on the first one's object and cmp compares a file with its own copy. Measured on this box: 4.1 s warm against 29.9 s with LEVIATHAN_CACHE=off for the same script. A change that made emission depend on path lengths again (the clsOrder class of bug the lane exists for) would stay green in every warm gate and show only in a cold full run.
  • found 2026-10-29 · (same probe). A failed injection reports only missing required argument 'x' and never says a bind was looked for. Source CheckerOverload.cpp:976-983; the explicit form is better: no binding in scope for injected type 'ILogger' (CheckerInfer.cpp:889). Every exact-type miss reads the same: bind ConsoleLogger against an ILogger parameter, bind ILogger against a ConsoleLogger parameter, a bind of a sub-interface, bind A against A?. Fix shape: when the parameter type is injectable (a class, interface or union) and no default was supplied, append a note: "no bind <type> in scope (binds match the exact parameter type)", naming any bind of a related type that was in scope. Pin: a negative test for each of the four misses.
  • found 2026-10-29 · Details are in the project bug register.
  • found 2026-10-29 · by allocation-churn track 1 (rewriting the memory-limits paragraph of docs/reference/compiler/native-backends.md). [P3.1]: a reference page states a diagnostic the runtime never prints. The "Memory limits of a natively built program" list says running out of the 64 MiB arena "prints lvrt: arena exhausted and exits with status 1"; no such message exists, and an exhausted arena falls back to the heap.
  • found 2026-10-29 · by the fresh review of allocation-churn track 2 (perf-small-strings). [P3]: assigned by the orchestrator's review ruling (wasm-only host rendering; the program's own values are right). On the wasm target the JS host renders a DENSE Array<struct> as <dense-array> in std::sysHostEcho and DOM calls, while a boxed one renders its elements — lv_host.js marshalArr (:388) handles the boxed layout only. Pre-existing for every dense array; small strings (track 2) make it more reachable: a struct whose string fields all hold ≤ 7 bytes is never counted, so its Array now goes dense where it used to stay boxed.
  • found 2026-10-30 · by the float-format cloud session; unrelated to float formatting. atlantis_suite_views_errors depends on directory-listing order: the boot-failure report lists Resources/Views/broken_if.lhtml:2 before broken.lhtml:3 on an ext4 cloud VM, the golden has the other order. Repro: ctest -R '^atlantis_suite_views_errors$' on a fresh checkout (lines 3-4 swap). Expected: the view loader sorts the files it reports (or the report is sorted) so the output is filesystem-independent.
  • found 2026-11-04 · by the language-492 re-review (N1, docs/reviews/language-492.md). A rule splice of a type string (no recorded type tree, e.g. a $s.type attribute string) rejects "(int) => (int | None)" as ambiguous, so no string can spell a function returning a union (src/meta/RulesClone.cpp ~741-748, 772); field types splice by tree and are unaffected. Expected: an explicitly bracketed return type is accepted. Also N2: the hole error is followed by a spurious "no method" error.
  • found 2026-11-04 · Details are in the project bug register.