Skip to content

Remove the 212e42b0 annotation workarounds; pin the seed that carries them - #1686

Merged
ehartford merged 2 commits into
mainfrom
public-return-annotation-cleanup
Sep 25, 2026
Merged

ehartford merged 2 commits into
mainfrom
public-return-annotation-cleanup

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Removes the 210 redundant -> Unit annotations 212e42b added when it made visibility an inference boundary (#1683 restored public return inference); keeps six intentional ones with a recorded rationale (docs/public-return-inference-audit.md). Diagnostics.error and __driver_exit then infer Never, which exposes and removes the dead fallback returns after fatal diagnostics in the build layer, and moves the checksum-failure temp-file deletion before its fatal diagnostic. A negative regression pins that a caller cannot continue after Diagnostics.error.

Seed transition. No published seed can drive this tree (the pinned 8d3cc36 seed predates public inference; main's a5c6f43 compiler embeds the old Unit signature and reports four missing returns in build/selfhost.w; unreachable code after a Never call is a hard error, so no seedable two-step exists). The seed is cut from this tree: nightly-20260925-local-1-607a52f543e7, asset SHA-256 7456c37b78f284670ce7fac060656ab1f4f243e99a1570736deb9ae65b715c53, bootstrapped locally to a byte-identical stage2/stage3 fixpoint at 607a52f; it checks build.w and compiles the native build runner (19.6s, no fallback). seed.lock and the workflow pins are bumped to it in the second commit; :seed fetched and digest-verified the published asset.

Status: draft until the full battery driven by the new seed is green and posted here (build, fixpoint, drop-audit, move-audit, test, test-green, last-green, user-programs-safe).

Eric Hartford added 2 commits September 25, 2026 16:46
Audit all 232 historical annotations; remove 210 redundant surviving Unit annotations and preserve six intentional contracts. Restore inferred Never for fatal build diagnostics and remove unreachable continuations, retaining error aggregation and cleanup.

Evidence: LLDB at SemaCheck.w:9894 observed block_diverged=1 on the dead continuation; local fixed-parser self-compile and fresh compiler build.w check pass. Scanner, runtime-domain negative mutation, spec inventory, and user-programs-safe gates pass. This is local verification, not a canonical pinned-seed battery; parser foundation must land and reseed first. See docs/public-return-inference-audit.md.
…s the annotation cleanup

The pinned seed (8d3cc36) predates public return inference, and main's
a5c6f43 compiler embeds the old `Diagnostics.error -> Unit` stdlib, so
neither can evaluate this tree's build layer (four "missing return"
errors in build/selfhost.w). Unreachable code after a `Never` call is a
hard error, so the cleanup cannot be split into a two-step an existing
seed could drive. The seed chases the tree: it is cut from 607a52f,
bootstrapped locally to a byte-identical stage2/stage3 fixpoint, and it
checks build.w and compiles the native build runner without fallback.
Its lock and workflow pins land with the cleanup; the branch's full
battery driven by this seed validates it before merge.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery verdict — green. Driven by the pinned seed nightly-20260925-local-1-607a52f543e7 (src/main digest 7456c37b… = seed.lock), cold c_import cache epoch, on 2ac144c0 (tree = 607a52f5 + the lock/pin commit):

gate result
build ok
:fixpoint ok (stage2 == stage3, all units)
:drop-audit ok
:move-audit ok
:test ok — 1290 behavior, 1129 compile-error, 210 spec, 38 internals; seed-driver accepted the new seed (973.7s wall)
:test-green ok
:last-green ok, published
:user-programs-safe ok

Logs: ~/.local/with-staging/modeled-c-completion/out/logs/battery*.log, status out/battery-status.txt. The seed asset was fetched and digest-verified by :seed before the battery; the candidate compiled the native build runner without fallback (19.6s) before publication. Ready for merge; after the squash, reseed main per the runbook (git pull, src/main build, :install-user) and with build :seed in ~/with to refresh the local seed.

@ehartford
ehartford marked this pull request as ready for review September 25, 2026 21:26
@ehartford
ehartford merged commit 1e83944 into main Sep 25, 2026
@ehartford
ehartford deleted the public-return-annotation-cleanup branch September 25, 2026 21:29
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