Skip to content

build: corpus hooks called through the field (#1635 workaround in compiler-owned code); reseed gate fails on a runner-compile fallback - #1636

Merged
ehartford merged 1 commit into
mainfrom
fix-callable-alias-call
Sep 24, 2026
Merged

ehartford merged 1 commit into
mainfrom
fix-callable-alias-call

Conversation

@ehartford

@ehartford ehartford commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Main 4932b8bd cannot compile the native build runner: build/corpora.w used let hook = corpus.<fn field>; hook(…) at six sites (prepare_reference, stage, migrate, finish_generated, verify_generated, lanes), which under D63 (a fn field is not Copy) binds an alias of the field place, and calling through that alias is compiler bug #1635 (FATAL: unhandled MirIntrinsic.GENERIC_CALL, argument dropped). The driver then falls back to comptime evaluation and dies on str.trim (:seed, :seed-driver). The battery never saw it (driven by the old seed) and the reseed gate passed (the fallback was a warning) — that build was installed and published as a seed for ~20 minutes and then withdrawn.

Verified with main's own compiler (this tree's seed-built stage1, which reproduces #1635): analyze build.w audit:codegen → violations=0 ok (main: 10096); the candidate compiles the runner with no fallback; :seed green; :seed-driver under the candidate fails only with "no ancestor process is the pinned seed" (the intended refusal). The compiler fix for #1635 is a separate PR (agent in progress) with the fixture. Bottom layer of the next stack.

…fn field is not Copy; the let-alias call is #1635 and killed the native build runner); the reseed gate fails when the candidate's runner compile falls back to comptime evaluation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant