Repository navigation
build: corpus hooks called through the field (#1635 workaround in compiler-owned code); reseed gate fails on a runner-compile fallback - #1636
Merged
Conversation
…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
ehartford
force-pushed
the
fix-callable-alias-call
branch
from
September 24, 2026 16:43
405da50 to
93f1a33
Compare
ehartford
marked this pull request as ready for review
September 24, 2026 18:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main
4932b8bdcannot compile the native build runner:build/corpora.wusedlet hook = corpus.<fn field>; hook(…)at six sites (prepare_reference, stage, migrate, finish_generated, verify_generated, lanes), which under D63 (afnfield 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 onstr.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.build/corpora.w: the six hooks are called through the field (corpus.stage(&ctx, …)), the spec-conformant spelling; the comment names A call through a let-alias of a non-Copy fn field (let r = c.run; r(21)) lowers as a call to a function NAMEDrwith the argument dropped — FATAL unhandled GENERIC_CALL; broke the build runner (build/corpora.w:74) #1635.src/main.wreseed_gate_smoke: "warning: build runner compile failed" in the candidate's smoke stderr is now a gate failure ("a seed must drive every action natively").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;:seedgreen;:seed-driverunder 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.