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 anyset ([]), not one for the index type, soP get ([])(string k)besideset ([])(int i, P v)counts as a pair:g["k"].x = 5andg["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::expandMacroCallrestamps every procedural node with the call span (restampExpr,src/meta/Rules.cpp:1512,:1655), sonoteFfiGatedUseattributes 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 master95c86fe9). [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)withIBump u, v), leaks about 32 B per store on--build-native. - found 2026-10-19 · while fixing
#substrate-b3c-002(identical on master95c86fe9). [P2.2]: output is correct on every engine; native memory grows linearly. A CONSUMED value-struct receiver (p = p.bump(i),Pa struct,bumpan 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 mastere6bbd673). [P2.2]: output correct on every engine (and natively underLANG_HEAP_POISON); the native ownership emission is wrong.tests/corpus/ownership/ownership.levsection 38 releases a counted reference-class object after it was freed:mergedStores→lvrt_releaseon a tag-5, non-value-class payload whose block already carries the free tombstone. Today the out-of-linelvrt_releasedrops it (lv_is_counted'slv_payload_is_freedtest), 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 whoselv_is_countedtraps on a freed COUNTED payload (a value-struct record excepted, read withoutLANG_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 mastera9a241c7). [P2.3-adjacent]: every engine prints the right value (native is leak-flat at exit), but--ir-verifyrejects 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-verifyrejects checker-accepted code. Ausingdeclaration 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 master4d82042). [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)withset 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; master03756cc1behaves the same with anintfield, so it is not decimal's). [P2.3-adjacent]: every engine prints the right values, but--ir-verifyrejects checker-accepted code (exit 1). A value struct read out of aMapwithat(k)into a local, then changed with amutatingcall, fails the ownership verifier. - found 2026-10-28 · while checking the
--expandround trip oftests/corpus/decimal/decimal_reify.lev(branchlibrary-decimal; the same with afloatfield, so it is not decimal's). [P2.3]-adjacent: fails loud on every engine for code the reference documents as compilable (the--expandoutput of a reified lambda,lang.reification-expand); no engine computes a wrong value. A lambda with an untyped parameter passed to theFparameter of a generic constructor is checked with that parameter unknown whenFis not given explicitly (Box<(Item) => bool> c = Box((x) => ...)), and also in the explicit constructionexpr::Expr::<(Item) => bool>((x) => ..., ...)that--expandprints for every reified lambda. A literal beside afloatordecimalmember then keeps its default type and the comparison is rejected. - found 2026-11-04 · by the
language-486session (noted intests/corpus/ownership/weak_record_target.lev, never registered). Engines disagree: reading aweakslot that holds a struct (record) while its owner is still alive printsNoneon--runbutSomenatively (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 ofweak_record_target.lev. - found 2026-11-05 · by the metaprogramming research session (probes with
build/leviathandated 2026-11-04,--runand--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.returnTypecannot be spliced as a type, whilemeta::Param.typecan.$p.typein 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/leviathandated 2026-11-04,--runand--run --ir; compile-time, identical). [P2.3]: a documented inject fails loud where a hand-written equivalent compiles. Theinject ... at member of Ccollision 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/leviathandated 2026-11-04,--runand--run --ir; identical). [P2.1]: the intended reflected spelling is not ruled.meta::Param.typeandmeta::Field.typeecho the spelling written at the use site, not one canonical spelling: the same type written bare throughuse NS::Thing;and writtenNS::Thingreflects 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/leviathandated 2026-11-04,--runand--run --ir; parse-time, identical). [P2.3]: a documented splice position fails to parse in one anchor. Aninject ... at namespace Ntemplate whose declaration returns a spliced type ($f.type name(...)) is a parse error, while the same template atat member of Cworks (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-Tor interface-typed local included) transfers its count the way master'sx = x.add(v)did (Lowerer::lowerVerbByName; probestests/corpus/collection_verbs/alias/a16–a19; lanecorpus_collection_verbs_erased_linear_llvm). - found 2026-11-03 · by the
language-override-arityreview (round 2, probefp6); identical on the pre-lift baseline3fbbd4e4. [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 erasedTbound toboolor to a class with no(>=)takeselseon--run, matches on--irand natively forbool, and raises on--irand 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 = 2and a timer it started readsG:--runand--irprint1, native prints2. Cause: the loop dispatches the callback with no current task, solv_task_spawngives 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.--expandkeeps 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, soContractViolation.predicateof 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
mutatingcall 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;withpick(a, b, i % 2 == 0).vat 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().cprints1on every engine;this.cdispatches and gives3. The reference calls the bare name the raw field, and a computed accessor has none. Decide: dispatch asthis.cdoes, or a compile error. Pointer:selfAccin theNamearms ofsrc/ir/Lower.cppandrawField_inEvaluator(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] += 4callsgaf()twice. The index memo covers the indices only. Pointer:Lowerer::chainIndexNodesandEvaluator::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 toCopyVal 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;--ir3.9 s at 3k, 24.8 s at 6k. Repro:tests/corpus/ownership/struct_chain_deep.levwithnraised. Fixed onlanguage-485(not this entry): the task-stack overflow —lvrt_copyval, the R-19 record teardown and the interpreters'copyValue/Objectdestruction now run on heap work-stacks, so a chain of any length copies and drops (struct_chain_deep_stack_floorpins it atLANG_TASK_STACK=65536on 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): astring-stamped register holds a tag-5 object. Repro:void f() { string s = string(); }called N times; native[heap] live-at-exitgrows 32 B per call. - found 2026-11-03 · by the re-check of
language-478fix round 3. - found 2026-11-03 · by the
frontend_costlane. [P2.2]: output is correct; the empty program's front end grew from 381.6 M Ir (--ir, measured at0a255093) to 417.7 M Ir at31b1ccb2, +9.5 %, unnoticed until value-model M1 tipped the 420 M ceiling intests/run_frontend_cost.sh.language-478(1706ea23) reads 420.4 M. Repro:bash tests/run_frontend_cost.sh build/leviathanon master.frontend_costis intools/known-reds.txtuntil the drift is bisected, the non-deliberate part recovered, and the ceilings reset; the fix removes the row. Bisected 2026-11-03 (--irempty, M Ir, master first-parent):0a255093381.5 →820f8f5f383.2 →a3ee9a85389.1 →5f8a955e396.1 (+7.0, contracts prelude merge) →3c7f1b7c402.0 →1c3766bf407.8 →aad4b9df409.9 →b190121d418.0 (+7.6, unsafe-gate M2:ResolverUnsafe.cpp, 75 lines, on an empty program — first suspect) →31b1ccb2417.7. Attributed 2026-11-07 (Release callgrind,--irempty): masterdf243dadreads 425.6 (ceiling 421) and--run324.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 thelanguage-479landing:--ir422.2,--run320.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 (POlanguage-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; master2f9a7a49behaves the same). [P2.1]: engines diverge and a semantics ruling must pick the intended behavior. Aweakfield 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-
4e887dddbase and with noweakfield anywhere — not the release pass). [P2.3-adjacent]: every engine prints the right value, but--ir-verifyrejects checker-accepted code (exit 1). A?:whose arms read an erasedTfield 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-001fix. [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; }(QMhas a string field) — leaks the heap copy, 64 B per call (master: flat, but it SIGSEGVs once the rebound parameter is written). The scope-ownedCopyValtakes the arena route; since the fix a struct with counted fields gets a heap copy there, butownershipOwningRegs(src/ir/Ownership.cpp,cand[p] = 0for every parameter) never treats a parameter as owning, so nothing frees it. Repros: review scratchpadarenarev-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 formint 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-003rework. [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'sArithoperand 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 master8145c74). [P2.3-adjacent]: no engine prints a wrong value, but the--ir-verifyconformance check rejects checker-accepted code, so such a program cannot sit in a verified corpus. An expression-positionmatchwith a block arm thatbreaks leaves its result register —Int-stamped from the checker's type — writtenVOIDby the result'sDefaultseed, which--ir-verifyreports as a stamp violation. - found 2026-10-28 · by the fresh review of
language-protected-access(probec08; 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().xprints41) 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 callP::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
usingdeclaration and a bare{ ... }block are parse errors ("expected expression"), although the same statements parse inside a function body or inside the body of anif/while. [P2.3]: documented statement forms (using Type name = expr;,{ stmt* }) fail loud at script top level. (A top-levelvaris 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 whosepathnames a library FILE (plan rowkind = "file") is never handed to the interpreters, so they dlopen a name guessed from the nickname.docs/reference/trident/native-libraries.mddocumentspathas "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 unversionedlib*.sosymlink, no.pc), e.g.path = "/lib/x86_64-linux-gnu/libgtk-4.so.1". - found 2026-10-20 · building the
~/code/ideGTK 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 callsgtk_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(branchlibrary-decimal, decimal session 04's cell-union ruling; the same with anint?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 aT?local whose flow type is narrowed toNone(it was assignedNone) is rejected withcannot reify capture of a non-value type, though the binds union holdsNoneand aT?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 (asint/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 withcall 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; masterb61aa90fbehaves 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 columnarArrayelement from ERASED generic code —Array.with(i, v)(prelude/core.lev~:7357,r[i] = von aT) or anygWith<T>(Array<T> xs, int i, T v) { xs[i] = v; ... }— leaks the stored record on every call. - found 2026-10-29 · (same probe).
bindrejects a value type (int,string, a struct), but the check does not look inside unions or optionals, sobind int|string => 5;andbind A? => ...;are accepted and inject. The check isChecker.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->resolvedonconsole.writeln, soisConsoleMembermisses and the call becomes aCallDynby name, which finds no body for the bodiless native. Fix shape: a lowered body forConsole.writeln/write(itsPrintops) registered inmod_->byDeclwhen a program overrides them, keeping the directPrintpath otherwise (Lowerer::collectClass, thenative intrinsicarm). (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 overridesio::Console.writeln<T>(orwrite<T>), everyconsole.writeln(...)on the library's own console prints nothing on--irand 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
d3e44eeeruntime and onperf-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 withtask stack overflow (task #1, stack 1048576B; raise LANG_TASK_STACK)insidelvrt_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 aT?(here a class implementing an interface) to an overload set whose only candidates take the interface and a genericArray<T>is rejected, and the message names the generic candidate. (The Atlantis face,atlantis_suite_serialization, is resolved by the library:packages/atlantisgained 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 gatedffi::Library(orffi::Callback) member to a module without it, through an interface the native module declares itself. The native module subclassesffi::Libraryand implements its own interface, so the inherited gatedsym(orclose) 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 gatedffi::Library.symruns.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 to2c1b4feb). [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-linememcpycall per conversion since2c1b4feb: that commit (the#substrate-b3b-001fix) movedlvrt_int_to_str's digit loop into the sharedlv_fmt_i64and copies the digits withlvrt_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) spendslvrt_int_to_str_v -> __memcpy_avx_unaligned_erms3,000,002 calls = 45.0M Ir (4.6% of the program). P7's Ir went from 937.4M at the B3c landing (91143293, and0701fd97, wherelvrt_int_to_str_vmakes nomemcpycall) 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
4e6f5a2fand on the B3d.3 base49480158). [P3]: a verifier false alarm; output identical on every engine.--ir-verifyreports a register-type violation when anArrayis indexed with abyte: the prelude'sArray.([])getter stamps its index parameterInt(its declaredint), but abyteargument reaches it unconverted, so the write-consistency assertion sees aBytevalue in anInt-stamped register. - found 2026-10-11 · while checking the
lvrt_raise_oobsibling for#substrate-b3b-001(identical on mastera179a14). [P2.1]: engines diverge on checker-accepted code and a ruling must pick whetherRangestringifies.r.toString()/"${r}"on aRangefails loud on--runand--irbut 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
cnerole audit,LANG_CNE_DEBUG=1). Sevenlvrt_*rows the LLVM backend calls are not declared inruntime/lv_abi.h—lvrt_sysnow,lvrt_sysmonotonic,lvrt_syswinsize,lvrt_systermisraw,lvrt_syssignalopen,lvrt_syssignalnext,lvrt_syssignalclose— they are declared only asfn("lvrt_…", …)insrc/backend/LlvmGen.cppand defined inruntime/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, socneCallroutes every register cell it receives as read+written (always correct, one redundant copy-out per input cell) and reports it underLANG_CNE_DEBUG=1. - found 2026-10-28 · by the
tools/test.sh gaterun of branchlanguage-decimal-kernel(decimal session 01), which does not touchtools/heavy*. [P3]: no P0–P2 marker applies: a test-scheduler self-test timing check, no engine, program or output involved.heavy_selftestcheck [8] "quiet's hard cap" fails under phase-1 suite load:tools/heavy quiet --max 3s -- sleep 60was 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'st0or is enforced early when the box is loaded; which one was not investigated. - found 2026-11-05 · by the metaprogramming research session (
build/leviathandated 2026-11-04,--runand--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$foriterator expression in a rule template cannot call a same-namespace helper function unqualified. - found 2026-11-03 · by the
language-override-arityreview (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] = 1fails--irwithIR: not yet lowerable: name 'twice'(methodRefsAllowed_is false while the store target is typed), and--runraiseskey not found: <closure>at the read. Each site is a new closure, sotwice == twiceis 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'sfibsits 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, probeq1). The engines disagree on a member call on aNonethat the checker typed as present. Before the session-03 review fix, the checker typed an assignment's target before its right side, soa[s.length()] = h(s = None)insideif (s != None)was accepted although every engine evaluates the right side first (a[idx()] = h(7)printsrhsthenindexon--run,--irand native). That shape is now a compile error (pintests/negative/narrowing_assign_index_rhs_write.lev), but the divergence it exposed remains for any value that reaches a member call while holdingNoneagainst its static type: - found 2026-10-28 · while retargeting
emit_determinismoff Dagon (branchruntime-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 theemit_determinismlane compares cached objects, not fresh emissions. The lane (CMakeLists.txt,tests/run_emit_determinism.sh) sets noLEVIATHAN_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 andcmpcompares a file with its own copy. Measured on this box: 4.1 s warm against 29.9 s withLEVIATHAN_CACHE=offfor 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. SourceCheckerOverload.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 ConsoleLoggeragainst anILoggerparameter,bind ILoggeragainst aConsoleLoggerparameter, a bind of a sub-interface,bind AagainstA?. Fix shape: when the parameter type is injectable (a class, interface or union) and no default was supplied, append a note: "nobind <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 "printslvrt: arena exhaustedand exits with status1"; 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 DENSEArray<struct>as<dense-array>instd::sysHostEchoand DOM calls, while a boxed one renders its elements —lv_host.jsmarshalArr(: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 itsArraynow 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_errorsdepends on directory-listing order: the boot-failure report listsResources/Views/broken_if.lhtml:2beforebroken.lhtml:3on 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-492re-review (N1,docs/reviews/language-492.md). A rule splice of a type string (no recorded type tree, e.g. a$s.typeattribute 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.