Skip to content

Releases

Morrow v2.4.21

Choose a tag to compare

@LeTrollologist LeTrollologist released this 21 Nov 19:29

Morrow v2.4.21

Region-escape hardening: indirect escapes through calls, containers, effects, and C
callback registration are now rejected, and lexical handler scopes capture outer
variables correctly.

Fixes

  • Interprocedural region summaries. Region tags propagate through callees that
    return a parameter, store through a destination parameter, or insert into a
    container. Transitive wrapper chains participate in the same summaries.
  • Branch aliases are preserved. A region alias is not dropped when one branch of
    an if reassigns it to another value; both paths are over-approximated.
  • Effect-operation parameters are checked. Handler-arm summaries are compared
    against perform arguments, so a handler that stores a region pointer through an
    effect destination parameter is rejected.
  • Lexical handler capture fixed. Handler bodies now see outer function locals;
    previously the scope-copy loop iterated a broken occupancy length.
  • C callback registration is rejected with a region pointer. Direct patterns
    such as register_cb(cb, region_ptr) produce
    Region Escape Violation: region-scoped value passed to C callback registration.
    Arbitrary C retention and unsupported indirect function-pointer calls remain
    documented boundaries.
  • Documentation and audit updated. C1 is marked done for supported paths;
    tests, fixed point, and the reproducible verification report reflect the new
    state.

Regression coverage

New negative controls, all verified to pass on v2.4.20 and rejected now:

  • region_indirect_return.mw
  • region_indirect_store.mw
  • region_indirect_container.mw
  • region_indirect_wrapper.mw
  • region_indirect_branch_alias.mw
  • region_indirect_effect.mw
  • region_callback_escape.mw

Positive controls cover read-only helpers, region-local containers, read-only
effects, and handler-body capture of outer variables.

Verification

  • forge test: 31 positive suites + 27 compile-fail suites passed
  • Self-hosting fixed point:
    B313880F4B87AA55867C88E3BC343EE5CE2AF7541674970DC6D039D3ED087DAF
  • stage2/stage3 binaries byte-identical (640000 bytes)
  • Release pipeline rebuilds all examples, benchmarks, archives, checksums, and the
    release page entry.

Morrow v2.4.20

Choose a tag to compare

@LeTrollologist LeTrollologist released this 19 Nov 18:31

Morrow v2.4.20

Hardening release: parser/LSP safety, collection bounds, benchmark tooling, C ABI,
setjmp interoperability, and safer release publishing.

Fixes

  • #14 — bounded parser recursion. Expression, statement, type, and unary
    parsing share a 512-level limit. Excessively nested input reports
    Parser nesting limit exceeded (maximum 512 levels) and stops instead of
    overflowing the stack.
  • #15 — unterminated block comments. The lexer reports
    Unterminated block comment at the comment's starting location. Valid multiline
    comments continue to work.
  • #16 — bounded LSP framing. Content-Length is strictly validated, messages
    are capped at 8 MiB, header lines at 255 bytes, and header count at 64. Malformed
    frames produce a JSON-RPC -32700 error and terminate cleanly.
  • #17 — explicit, non-destructive publishing. Publish/ship now require
    --publish; tag pushes are no longer forced by default; tag format is validated;
    tag conflicts produce clear failures. RELEASE_PROCESS.md and the Makefile
    document the behavior.
  • #18 — collection boundary safety. Invalid Vec indices return a zero value
    (or no-op for vec_set); invalid capacities and allocation failures are safe;
    HashMap lookup/insert/remove/free handle invalid state predictably. Contracts are
    documented and covered by boundary tests.
  • #19 — benchmark runner repaired. benchmarks/bench_runner.py is valid UTF-8,
    runs forge bench from the documented location, propagates failures, and the
    release gate now py_compiles every Python helper.
  • #20 — C ABI and setjmp hardening. Extern declarations use real C types
    (i32/i16/i8/u8/f32/f64/pointers/void), narrow returns are
    sign/zero-extended correctly, structs by value are rejected, and setjmp carries
    LLVM's returns_twice attribute. Added FFI + longjmp regression coverage.

Verification

  • forge test: 30 positive suites + 20 compile-fail suites, all passing.
  • Self-hosting three-stage fixed point recorded in releases/v2.4.20.json.
  • Release gate builds all 22 examples; supported examples execute with expected exit
    codes, and build-only examples remain documented in docs/RUNTIME.md.
  • Benchmark runner and Python syntax gate pass.
  • FFI, SQLite build paths, and ABI/setjmp regressions pass.

Morrow v2.4.19

Choose a tag to compare

@LeTrollologist LeTrollologist released this 11 Nov 06:52

Morrow v2.4.19

Security, soundness, runtime-diagnostics and release-gate release.

Fixes

  • #4 — type-checker soundness. Undefined types, incompatible call arguments,
    invalid let annotations/assignments, bad return expressions and missing returns
    are rejected. Diagnostics name the callee/function and expected/actual kinds.
  • #5 — region cleanup on every exit. Return, break and continue now emit
    morrow_region_exit for every active region, innermost first, including nested
    regions. morrow_region_live_count() exposes runtime balance for tests.
  • #6 — controlled runtime diagnostics. Unhandled effects print
    Runtime error: unhandled effect <effect>::<op>; division/modulo by zero prints
    Runtime error: division by zero; both exit with status 1.
  • #7 — command-injection fix. Process spawning no longer uses system().
    Windows uses CreateProcessA; POSIX uses wordexp(WRDE_NOCMD) +
    posix_spawnp. forge quotes output paths, so shell metacharacters are literal.
  • #8 — release runtime gate. The release pipeline executes supported examples
    with expected exit codes, reports pass/fail/skip, and fails the release on a
    runtime mismatch. SQLite and interactive-server prerequisites are documented.
  • #9 — test integrity. assert_true now exits the suite on failure; test and
    benchmark retries were removed; formatter tests compare the semantic token stream.
  • #11 — documentation/algorithm truth pass. let mutability, narrowing,
    escape sequences, crypto/checksum claims, and SQL-builder safety claims match the
    implementation. FNV-1a and CRC-32 now produce standard vectors; \0 is a real
    escape; the README headline example is compiled by the suite.
  • #13 — short-circuit &&/||. Logical operators lower to explicit control
    flow; the right operand is not evaluated when the left determines the result.

Verification

  • forge test: 28 positive suites + 18 compile-fail suites.
  • Self-hosting three-stage fixed point recorded in releases/v2.4.19.json.
  • Supported examples executed by the release gate; build-only examples and their
    prerequisites are listed in docs/RUNTIME.md.
  • New regressions: process injection, region cleanup, runtime diagnostics,
    short-circuiting, standard hash/checksum vectors, README example.

Morrow v2.4.18 — Pointer Semantics, Sized Integers, and a Standalone Toolchain

Choose a tag to compare

@LeTrollologist LeTrollologist released this 09 Nov 15:48

Morrow v2.4.18 — Pointer Semantics, Sized Integers, and a Standalone Toolchain

Release date: 2026-11-09
Toolchain: forge 2.4.18 (morrow standalone 2026)
Self-hosting fixed point: D9FF387175979C534040AB5ED9AAAB9696C95FDEA096393678D2E994F877CDFE
(stage2.ll == stage3.ll, stage2.exe == stage3.exe, 536,064 bytes)

This release closes the three remaining Critical/High findings from
docs/AUDIT-2026-11-08.md that were blocking normal
systems programming: pointer/reference semantics, sized integers, and
location-independent toolchain paths.

Pointer, reference, and cast semantics (C-03 / issue #3)

  • parse_type retains *mut T, *const T, &T, and &mut T in the interned type.
  • Scalar &lvalue lowers to real storage; struct/String/pointer bindings keep the
    by-reference pointer value used by the compiler's calling convention.
  • *mut Struct field stores use correct offsets; *mut u8/i8 indexing uses byte
    stride, and u16/u32 indexing uses 2/4-byte strides.
  • Casts are type-directed: width truncation plus sign/zero extension; pointer casts
    are i64 identity.
  • Address-of a non-lvalue is diagnosed.
  • ffi_demo.exe now exits 0 (prints 40 and 100 instead of access-violating).

Sized integer semantics (issue #10)

  • i8/i16/i32/i64/u8/u16/u32/u64 now carry width and signedness through type checking.
  • Arithmetic and storage wrap modulo 2^width; assignments, fields, and index stores
    normalize to the destination width.
  • Signed loads/casts sign-extend; unsigned loads/casts zero-extend; i8 array reads
    of -1 now produce -1.
  • Signed vs unsigned division/remainder and comparisons are distinguished, including
    u64 high-bit comparisons.
  • Integer literals outside i64 are rejected instead of silently wrapping.

Examples: let v: u8 = 250 + 10 → 4; 300 as u8 → 44; i8 load of 0xFF → -1;
u64 0-1 > 1 → true.

Standalone, location-independent toolchain (issue #12)

  • std/, compiler/, and lib/crt resolve from the executable's installation root
    via GetModuleFileNameA, not the caller's working directory.
  • Windows link lines use absolute lib/crt paths.
  • forge new scaffolds a buildable fn main() -> i64 { 0 } project.
  • Unsupported --target triples are rejected before writing files or running clang.

Verified by building from an unrelated directory, scaffolding/building a project in
place, and checking --target bogus fails.

Bootstrap and correctness fixes found during self-hosting

  • Optimizer handler-balance check now uses the real TirFunction.args block list.
  • Generic pointer arguments normalize to the bare container identity (Vec<*mut T>
    behaves as Vec<T> for shallow generics), and generic type symbols retain their
    closing >.
  • as binds looser than unary &, so &mut counter as *mut T means
    (&mut counter) as *mut T.

Verification

Gate Result
Native suites 23 positive
Compile-fail suites 18
Examples 22/22 build
CWD/scaffold/target tests pass
Bootstrap stage2/stage3 IR and executable byte-identical
Distribution Morrow-v2.4.18-win64.zip, forge.exe, mwc.exe, SHA256SUMS.txt

New regression coverage in tests/syntax_features_test.mw: pointer storage, field
offsets, byte/word indexing, casts, integer arithmetic/storage/loads, u64
comparisons, CWD-independent builds, forge new, and unsupported-target rejection.

Compatibility

Source-compatible with v2.4.17. Programs that relied on unsized integer behavior
(260 in a u8, zero-extended i8 loads, pointer-as-value &scalar) now follow
their declared types. Struct fields still occupy 8-byte slots with normalized
values, and u64 is carried in the i64 register representation.

Morrow v2.4.17 — Formatter Safety and Dynamic Effect Dispatch

Choose a tag to compare

@LeTrollologist LeTrollologist released this 09 Nov 11:34

Morrow v2.4.17 — Formatter Safety and Dynamic Effect Dispatch

Release date: 2026-11-09
Toolchain: forge 2.4.17 (morrow standalone 2026)
Self-hosting fixed point: D3310C7410197C6934B91165FFC6B11E2BE6CE6F2C526EB62C2F6F48C6A15F6D
(stage2.ll == stage3.ll, stage2.exe == stage3.exe, 492,544 bytes)

This is a correctness patch for the two Critical findings in
docs/AUDIT-2026-11-08.md. There are no syntax changes.

C-01 — forge fmt no longer destroys source

forge fmt previously dropped imports, effect declarations, pub, yields,
comments, and pointer/reference spelling, and could write a partial file after a parse
error. It now:

  • refuses to write when tokenization or parsing reports an error;
  • refuses comments, and refuses any file whose formatted output would change the token
    stream (ignoring only semicolons and trailing commas);
  • validates that the formatted candidate parses before touching the original;
  • preserves let/var and ->, re-escapes string literals, and preserves refined
    type aliases;
  • replaces files via temp file + backup + restore, never deleting an existing backup.

Files containing constructs the printer cannot represent yet (imports, effects,
pub, pointers, struct literals, handlers) are refused with a diagnostic and left
byte-for-byte unchanged. Full lossless printing remains Phase 15 P0-1 in the roadmap.

C-02 — handlers now win for IO, FS, and Process

The TIR pass used to rewrite built-in effects to runtime calls whenever the perform
was not lexically inside a handle in the same function. That bypassed handlers
around callees and compiled IO.print(i64) as puts((char*)i64).

Every perform is now dynamic. morrow_effect_find_handler searches the user handler
stack first, then returns a static default frame. Defaults are installed only for the
canonical signatures:

  • FS: all six standard operations;
  • Process: spawn(String, String);
  • IO.print: String.

Default dispatch performs the real runtime operation and resumes the continuation.
generics_and_relational.mw now runs, FS.read_file under a handler returns the
mock value, and IO.print(i64)/Process.spawn dispatch to user handlers.

Verification

Gate Result
Native suites 23 positive
Compile-fail suites 18
Examples 22/22 build in the local pipeline
Bootstrap stage2/stage3 IR and executable byte-identical
Distribution Morrow-v2.4.17-win64.zip, forge.exe, mwc.exe, SHA256SUMS.txt

New regression tests:

  • tests/formatter_tests.mw: safe file formats; comments, parse errors, effects,
    and struct literals are refused unchanged; no temp/backup left behind.
  • tests/effects_test.mw: IO/FS/Process-shaped effects performed in a callee
    under a handler dispatch to that handler. The suite fails on v2.4.16.

Compatibility

Source-compatible patch. forge fmt is now deliberately conservative: it may refuse
a file it previously (incorrectly) "formatted". Rebuild downstream tooling against
this toolchain; bin/mwc.exe and bin/forge.exe are rebuilt from the fixed sources.

Morrow v2.4.16 — Instantiation identity exists; the consumer does not

Choose a tag to compare

@LeTrollologist LeTrollologist released this 02 Nov 12:10

Morrow v2.4.16 — Instantiation identity exists; the consumer does not

Release date: 2026-11-02
Toolchain: forge 2.4.16 (morrow standalone 2026)
Self-hosting fixed point: D9217D1E573A2837A2FEDCA46DCDCACD03F8E0255B835CA15218FA344D69F810
(stage2.ll == stage3.ll, stage2.exe == stage3.exe, 471552 bytes)

The representation change is in. It does not yet satisfy the acceptance criteria, and
this note says exactly which ones and why.

What changed

  • parse_type no longer discards a type's argument list: Vec<String>, Vec<i64> and
    Vec<Vec<String>> are interned as distinct symbols at parse time.
  • tc_resolve_type resolves a declaration by the bare name but keeps the concrete symbol
    on the resulting type, so Vec<i64> and Vec<String> are distinguishable types.
  • The two struct-field paths (expr_field, stmt_field_assign) look fields up by bare name.
  • codegen never resolves types by name (no struct_defs reference at all), so this is
    confined to the typecheck layer.

Acceptance criteria — measured, not asserted

# Criterion Result
1 Vec<String> vs Vec<i64> distinct identities Met — two symbols, carried on TcType.sym
2 vec_get from Vec<String> → String Not met — see below
3 vec_get from Vec<i64> → i64 Not met — same reason
4 Wrong String/i64 pairing → diagnostic Met, unchanged (case 19: 1 own finding)
5 &Vec<String> reference preserved Not met — &/*mut are still stripped, exactly as before this release
6 &mut Vec<String> mutable reference preserved Not met — same
7 u8[0..100] refinement behavior Met — refinement suites pass unchanged
8 forge check without monomorphization Met — check/argkinds/lsp paths untouched
— Nested generics do not collapse Met at identity level (Vec<Vec<String>> keeps both brackets)

Why 2 and 3 cannot pass yet

alloc_stmt_let(arena, sym, expr) carries only a name and an initializer — a binding's
declared type is not in the AST at all. So

let mut v: Vec<String> = vec_new();   // annotation parsed, interned ... then dropped

v's type comes from vec_new()'s return (Vec, bare), and vec_get(&v, 0) sees no
element type. The element-substitution code is written and in place, but it has nothing to
read.

I attempted to let the report compare struct symbols anyway to satisfy criterion 1 visibly,
and the corpus rejected it immediately: vec_push/vec_get produced
want=struct got=struct for every call, because a param declared &mut Vec<T> now interns
as Vec<T> while an argument carries Vec. That is template-vs-instantiation noise, not a
mismatch, so the comparison is disabled and the reason is written into the code.

What the next change must be (not smuggled into this one)

One AST field: the declared type symbol on stmt_let (and the same for parameters and
returns, which already have ty_sym). With it, criteria 2, 3 and the refs in 5/6 become
implementable — the identity machinery they need already exists.

Verification

Gate Result
IR parity stage2.ll == stage3.ll = D9217D1E…4D69F810
Executable parity stage2.exe == stage3.exe, 471552 bytes
Native / compile-fail suites 23/23, 18/18
Corpus back to the v2.4.13 baseline: 16 → 2, 17 → 1, 19 → 2 (each includes the 1 std baseline line), case14 → 0
Examples / benchmarks 22/22 built, all benchmarks complete

Morrow v2.4.15 — Where generic types are lost, and why the monomorphizer cannot help

Choose a tag to compare

@LeTrollologist LeTrollologist released this 02 Nov 11:26

Morrow v2.4.15 — Where generic types are lost, and why the monomorphizer cannot help

Release date: 2026-11-02
Toolchain: forge 2.4.15 (morrow standalone 2026)
Self-hosting fixed point: EBD9E24CBD561FC05B222071B98A0237685BC33CAEA1C76F7D5BE426E907F78A
(stage2.ll == stage3.ll, stage2.exe == stage3.exe, 467968 bytes)

Investigation only. No compiler code changed — docs/GENERIC-TYPES.md records the
answer, the evidence, and the design direction for v2.4.16.

The answer

A reusable representation does not exist — and the monomorphizer is not the reason.
The parser destroys generic arguments before monomorphization ever runs:

// compiler/parser.mw:117-131, parse_type
if check(p, tok_lt()) {
    advance(p);                       // consume '<'
    ...                               // consume to the matching '>'
}                                     // and return only the base symbol

Vec<i64>, Vec<String>, Vec<T> — as annotation, parameter, or return type — all become
the single symbol Vec. Whatever a later phase does, it never received the argument.

The three criteria, answered

Criterion Answer Evidence
Vec<String> vs Vec<i64> distinct identities No, for types parser erasure; TcType has kind/sym/left/right, no type arguments. Only functions get identity, as mangled symbols (identity__i64, forge.mw:278-287)
survival through params/calls/returns No a call keeps its turbofish in expr.int_val until monomorphization rewrites it; parameters and returns never had it
reachable without a later phase No monomorphization runs before typechecking on the build path (forge.mw:875-878) but is not run on check, argkinds or lsp (forge.mw:1018, :1000, lsp.mw:325), and its output is a mutated AST, not a type table

The lifetime caution was warranted: the representation that does exist is produced only on
one of four paths, so "it distinguishes instantiations" was true and still insufficient.

Chosen direction (for v2.4.16, not this release)

Intern the concrete type name in parse_type — Vec<i64> as its own symbol — reusing
the mechanism the monomorphizer already trusts (a fresh interned symbol per distinct name).
TcType.sym already holds a name symbol, so no TcType change is needed;
tc_resolve_type gains one fallback to find the template's fields by stripping the argument
list.

Rejected: reusing monomorphizer output (would change what forge check means and is absent
on three paths) and a type-argument list on TcType (touches every allocation and
comparison).

Risks recorded before any code is written

  1. Refinement intervals (u8[0..100]) share parse_type and must keep working.
  2. tc_resolve_type has two plain-name maps (types, struct_defs) that will both miss
    instantiated names — the parser change and the fallback are one unit.
  3. Vec<i64> (parser) and Vec__i64 (monomorphizer) will be different symbols for the same
    concept; acceptable, but must be documented or conflated later.
  4. &mut Vec<T> must keep producing ty_ref/ty_ptr exactly as today — the region-escape
    rules depend on those kinds.

Verification

Gate Result
Compiler changes none
Corpus 21 files unchanged and green as recorded
Native / compile-fail suites 23/23, 18/18
Fixed point 3-stage closure, stage2.exe == stage3.exe

Morrow v2.4.14 — Explicit generic return substitution (result only)

Choose a tag to compare

@LeTrollologist LeTrollologist released this 02 Nov 11:19

Morrow v2.4.14 — Explicit generic return substitution (result only)

Release date: 2026-11-02
Toolchain: forge 2.4.14 (morrow standalone 2026)
Self-hosting fixed point: FC3E508F91CE8F05952B53AB685AEF2ACC5C4ED7B773087A58FF082E1328AAEF
(stage2.ll == stage3.ll, stage2.exe == stage3.exe, 467968 bytes)

One small change at the shared call-result point, and the corpus decides whether it is
right.

The change

typeck.mw (call result, user functions): if the declared return type is the callee's
type parameter and the caller wrote ::<T>, the call's result type comes from that
instantiation instead of resolving T to the int placeholder.

fn id<T>(x: T) -> T
id::<String>("hello")   // result: String   (was int)
id::<i64>(7)            // result: i64      (was int, matched by accident)

Substitution is not argument validation

The substitution touches the result type only. Argument checking happens earlier, per
argument, against the declared parameters, and is untouched — which the corpus verifies
directly:

Case Expectation Before After
case3_generic_string — id::<String>("hi") 0 findings 0 0
case3b_generic_turbofish_mismatch — id::<i64>("hi") 1 finding 1 1 ✓ still reported
case14_generic_result_string_ok — want_string(id::<String>("hi")) 0 findings 1 (false positive) 0 ✓ fixed
case15_generic_result_int_ok — want_int(id::<i64>(7)) 0 findings 0 0 ✓ unchanged

id::<i64>("hi") remains reported after the change: the return type is now derived from the
instantiation while the argument is still checked on its own. That pair is the reason the
change is trustworthy.

What this does not fix

The accessor class is untouched, exactly as predicted:

Case Before After
case16_accessor_string_ok — want_string(vec_get(&v,0)) over Vec<String> 1 own 1 own (still a false positive)
case19_incompatible_must_report — same over Vec<i64> 1 own 1 own (still correctly reported)

And the aggregate over compiler/main.mw is 229, unchanged. That is the point: success
here is not a smaller count. The count did not move because the compiler's own findings are
arguments whose expressions are int-inferred, not turbofish results — a different class.

Verification

Gate Result
Corpus 21 files; the four affected cases measured before/after
Argument checking independent case3b still reports, by design
Native / compile-fail suites 23/23, 18/18
Fixed point 3-stage closure, stage2.exe == stage3.exe

Morrow v2.4.13 — Isolating the generic-result loss; no checker changes

Choose a tag to compare

@LeTrollologist LeTrollologist released this 02 Nov 09:17

Morrow v2.4.13 — Isolating the generic-result loss; no checker changes

Release date: 2026-11-02
Toolchain: forge 2.4.13 (morrow standalone 2026)
Self-hosting fixed point: 65E43B0AFBF6FCD8A8C17C029E8829DFB1D75DB9A31AB8446F11D141DB57C245
(stage2.ll == stage3.ll, stage2.exe == stage3.exe, 467968 bytes)

Tests and analysis only. The typechecker was not changed — the corpus now isolates the
problem, and locating it changed the plan.

Six new isolation cases (corpus: 20 files)

Attribution is now measured, not assumed: baseline_import_collections.mw reports 1
finding from std alone (want=String got=u8 :: hashmap_insert), and each case's own count
is total − baseline.

Case Situation Today (own) Target
14 want_string(id::<String>("hi")) 1 false positive 0
15 want_int(id::<i64>(7)) 0 0
16 want_string(vec_get(&v,0)) over Vec<String> 1 false positive 0
17 want_int(vec_get(&v,0)) over Vec<i64> 0 0
18 hashmap_insert(&mut m, "key", 1) 0 0
19 want_string(vec_get(&v,0)) over Vec<i64> 1 1 (must report)

Cases 15 and 17 pass by accident — the placeholder kind int happens to match i64.
They are in the corpus so any future fix must keep them passing.

The shared point, and why it is not one fix

The call-result type is produced in exactly one place per callee kind:

typeck.mw:737   let ret_sym = target_fn.ret_ty_sym;
typeck.mw:738   return tc_resolve_type(tc, types, struct_defs, ret_sym);
typeck.mw:745   let ret_sym = ext.ret_ty_sym;        (extern functions)

tc_resolve_type knows aliases and struct names only; T is neither, so it becomes
ty_int. Every generic-returning callee collapses there — one shared point, so no
vec_get/hashmap_insert special case is needed.

But the two false positives arrive with different information:

  • case 14 carries its instantiation in the turbofish, already stored in
    expr.int_val. A substitution at line 737 is sufficient, needs no new state, and is
    provably correct for that class.
  • case 16 has no turbofish. T is only knowable from the container's element type,
    which TcType does not record for struct instantiations (Vec stores data, len,
    cap, arena — not T). No lookup at line 737 can recover it. It needs element-type
    tracking, which is a representation change, not a rule.

A helper table of "functions that return their first argument's element" would make case 16
green while encoding the same kind of knowledge the project keeps deleting. Rejected on
purpose, and recorded as rejected.

Verification

Gate Result
Corpus 20 files; six new cases measured with own/baseline attribution
Native / compile-fail suites 23/23, 18/18
Checker changes none
Fixed point 3-stage closure, stage2.exe == stage3.exe

Morrow v2.4.12 — The corpus localises the loss instead of counting it

Choose a tag to compare

@LeTrollologist LeTrollologist released this 02 Nov 09:01

Morrow v2.4.12 — The corpus localises the loss instead of counting it

Release date: 2026-11-02
Toolchain: forge 2.4.12 (morrow standalone 2026)
Self-hosting fixed point: F23E5B37C9ED0585AF7745EF9C3DAABF73C9AF1476E220657C17F1E2837E0517
(stage2.ll == stage3.ll, stage2.exe == stage3.exe, 467968 bytes)

No compiler change. The diagnostic corpus grew from 6 to 13 cases and now records an
expected count per case — because a total is not evidence, and an "ok" case can be
satisfied by not checking at all.

Four areas, each with a positive and a negative

Area Positive Negative
struct field String field → String param: silent i64 field → String param: 1 finding
call result String-returning call → String param: silent i64-returning call → String param: 1 finding
collection accessor vec_get → i64 param: silent for the case vec_len → String param: 1 finding
typed variable let s: String → String param: silent let n: i64 → String param: 1 finding

What it localised

Field lookups, function returns and typed variables already carry their kind. The
aggregate count of 229 is dominated by collection/generic plumbing: vec_get returning T,
hashmap_insert taking a String key. That is one loss of information, not four — so
the next fix belongs in how T-typed callees report results, not in a rule that re-derives
kinds at every argument.

Two counts per case, and why

The report carries no source positions, so it cannot say which file a finding came from —
and importing std::collections typechecks std's own calls. Each case therefore records:

  • own — findings naming a callee declared in the case file;
  • baseline — findings contributed by imported std at this version, named exactly
    (want=String got=u8 :: hashmap_insert), so a change in std is visible rather than
    absorbed into a count.

That baseline line is itself a finding about std worth keeping: hashmap_insert's key
parameter is declared String and the inferred argument is u8.

Enforcement

Untouched. Diagnostic stage only; experimental and default enforcement remain not-started,
gated on a corpus that is now broader but still far from complete.

Verification

Gate Result
Corpus 13/13 as specified, with per-case counts
Native / compile-fail suites 23/23, 18/18
Fixed point 3-stage closure, stage2.exe == stage3.exe