You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Seed-built stage1 of main (4932b8bd, D62/D63) diverges from the stage2 compiler: false "use of moved value" in src/main.w:2992, contextual-join internal error in test/complexity/stdlib.w #1631
On main 4932b8bd (closures stack, D62/D63) the stage1 built by the pinned seed (nightly-20260922-local-1-8c859a7d0559, with build :dev → out/bootstrap/bin/with-stage1) and the stage2/release compiler disagree on the SAME source:
with-stage1 check src/main.w → error: use of moved value --> src/main.w:2992:47 (comp.emit_object_to_path(actual_options.source_path, obj_path)) and :3003, :3004; out/release/bin/with check src/main.w → ok. (The battery's :test/:fixpoint are stage2/stage3, so they were green.)
Fixpoint (stage2 == stage3) holds, so the stage2 compiler is self-consistent; the divergence is stage1's: the old seed miscompiles the new Sema (or the new Sema's D63 code has behavior that differs under the seed's codegen — e.g. the fn-not-Copy flip changed how the compiler's own callable values are moved/copied, and the seed's semantics for those sites are the OLD ones). Consequences: the iterate tier (:dev, stage1 fixtures) is unreliable on this tree — an agent verifying with stage1 sees false errors — until a seed built from a post-D63 compiler is cut. Blocked on: main must first be able to drive the build runner (fix for the let run = c.run alias call, in progress), then cut the seed from that build.
Route to pin: build stage2 vs stage1 in one tree, diff --dump-mir/--trace-ownership main:_N for run_cli's actual_options.source_path between the two binaries; the differing Sema decision names the miscompiled site.
Re-diagnosed under the NEW seed (nightly-20260925, main 1814a14): the same seed-built stage1 binary rejects src/main.w both via check src/main.w and via a direct build src/main.w -O1 ("use of moved value" at actual_options.source_path, ~2991), while with build :stage2 — which compiles the generated out/gen/main.w — succeeds, and that stage2 checks the source clean. So this is not stage1-vs-stage2 and not the old seed: it is two compile paths (direct source vs the generated main) giving two answers for one program — a D65 case for docs/mir-sema-hardening.md (§1 table row). Route: diff --trace-ownership main:_N for actual_options.source_path between check src/main.w and check out/gen/main.w with the same binary; the differing Sema decision names the site. Not blocking the battery (stage2/3 are the gate).
Activity
seed.lock: darwin bootstraps from nightly-20260925-local-1-fa33bda543…
ehartford commentedon Sep 24, 2026
Re-diagnosed under the NEW seed (nightly-20260925, main 1814a14): the same seed-built stage1 binary rejects
src/main.wboth viacheck src/main.wand via a directbuild src/main.w -O1("use of moved value" atactual_options.source_path, ~2991), whilewith build :stage2— which compiles the generatedout/gen/main.w— succeeds, and that stage2 checks the source clean. So this is not stage1-vs-stage2 and not the old seed: it is two compile paths (direct source vs the generated main) giving two answers for one program — a D65 case fordocs/mir-sema-hardening.md(§1 table row). Route: diff--trace-ownership main:_Nforactual_options.source_pathbetweencheck src/main.wandcheck out/gen/main.wwith the same binary; the differing Sema decision names the site. Not blocking the battery (stage2/3 are the gate).main.w: run_cli copies the source path instead of field-moving it — t…
Sema: the field-move path is a record, not an i64 with a 16-bit start…
Modeled C D66: discriminated variadic contracts, borrowed record view…