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
build store: bootstrap-runtime-producer entry does not key the resolved seed compiler; a PATH-resolved entry serves seed-driver runs #2761
Found 2026-10-27 running a layer gate as plain src/main build :gate (no WITH in env).
What happened, in order:
bootstrap-runtime-producer ran with "seed" resolved by comp_resolve_seed_compiler (build/compiler.w:627): WITH unset, so PATH with (the installed compiler, generation 09fb77de) — out/bootstrap-lib/.producer recorded 09fb77de. The result was published to the shared build store (~/.local/with-build-cache/5eec102cd973…).
Later runs WITH=$PWD/src/main restored that entry ([cache] bootstrap-runtime-producer: restored from the build store) instead of re-recording the seed's generation dacc1bee. The store record's env-mismatch check did not refuse it: the WITH read that decided the output is not among the recorded env effects, and the recorded compiler dep is an absolute path whose hash still matched.
With .producer != driver generation, build_runner_link_root (src/main.w:1837) finds no runtime root of the seed's generation, so every action falls back to the driver's comptime evaluator, and c-migrator-basic-tests (plus the corpus-integrity targets) fail there on comptime: array literal passed to a &List parameter stays CV_ARRAY; .len() is refused in the evaluator #2760 — a failure that presents as a migrator/comptime bug, not as a stale producer record.
Deleting the store entry and re-running with WITH set re-records .producer=dacc1bee, the runner links, and the target passes.
Fix direction: the producer target's output is a pure function of which compiler "seed" resolves to, so that identity belongs in its store key / recorded effects (e.g. record the WITH env read like other env effects, or hash the resolved compiler path+generation into the target signature). A store entry whose recorded generation differs from the current driver's resolved seed generation should not verify for bootstrap-runtime-producer.
Fixed in #3257. Root cause: comp_resolve_seed_compiler read WITH and PATH with a bare env(), so the producer's record held nothing about which compiler made it (its state file had no env:WITH line and no compiler dep line). The reads now go through ctx.env_input; the record carries env:WITH. Cost, stated in the PR: a seed-driven run in a new worktree rebuilds stage1 rather than restoring another worktree's, because the recorded WITH value is a path.
Activity
Issues batch G: #2680 #1153 #2369 #2761 #1014 (#3257)
ehartford commentedon Nov 11, 2026
Fixed in #3257. Root cause:
comp_resolve_seed_compilerread WITH and PATH with a bareenv(), so the producer's record held nothing about which compiler made it (its state file had no env:WITH line and no compiler dep line). The reads now go throughctx.env_input; the record carries env:WITH. Cost, stated in the PR: a seed-driven run in a new worktree rebuilds stage1 rather than restoring another worktree's, because the recorded WITH value is a path.