Repository navigation
D30 step 2 (part 2): runtime definitions declare their own contracts; seed nightly-20261020-local-1-e1d2b25e6d04 - #2492
Merged
Merged
Conversation
added 2 commits
October 20, 2026 09:10
…cts; seed nightly-20261020-local-1-e1d2b25e6d04 The @[effect] pins move from lib/std's and src/'s externs onto the rt/ definitions — with_thread_spawn (fn_ptr, ctx: escape_value), with_vec_push_str (val: escape_value), with_vec_append_bytes (v: write) — and #2482's extern-inheritance (Zcu.note_runtime_contract_extern, Sema.runtime_contract_externs) goes: one fact in one place, the definition, which is what the runtime bundle's interface carries. A runtime ABI definition's pin is applied at declaration, as an extern's pin is, and kept through the body's inference: applied only after the body check it was too late — std.thread's spawn_os is checked before the runtime's body, and read `worker` as consume alone, so the lane twin of err_thread_spawn_closure_captures_ref stayed green by accident of the inherited extern and red without it. Under the lane spawn_os.worker now reads escape_value exactly as in the object world. tools/rt_decl_audit.w compares @[effect] pins beside parameter types: on the tree before this commit it reports the five pinned externs against their unpinned definitions (the gate on deleting the externs, plan §10 correction 3); here 0 divergent over 1216 definitions. seed.lock: nightly-20261020-local-1-e1d2b25e6d04, the first seeds whose Sema accepts the pins on rt/ (the seed compiles rt/ for stage1): darwin cut on the laptop (fixpoint over 16 units, :release-checks green), linux-x86_64 on eric-5090, windows-x86_64 on win10 (fixpoints). linux-aarch64 is held on the 10-15 release (#2490: its seed cannot bootstrap main) and windows-aarch64 until the dispatched cross seed is pinned (D137). Workflow pins moved with tools/bump_seed_pins.w.
…studio128 is gone, Eric 2026-10-20)
This was referenced Oct 20, 2026
Merged
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.
Completes D30 step 2 (plan §10): the
@[effect]pins move fromlib/std's andsrc/'s externs onto thert/definitions (with_thread_spawn,with_vec_push_str,with_vec_append_bytes), #2482's extern-inheritance is deleted (one fact, one place — the definition, which the runtime bundle's interface now carries:@[effect(fn_ptr: escape_value, ctx: escape_value)]onwith_thread_spawn), andtools/rt_decl_audit.wcompares pins beside types (5 divergent on main before the move, 0 here).Found on the way: a runtime definition's pin applied after its body check was too late —
spawn_osis checked before the runtime's body and readworkeras consume alone. The pin is applied at declaration, as an extern's, and kept through inference; under the lanespawn_os.workerreadsescape_valueexactly as in the object world.seed.lock→nightly-20261020-local-1-e1d2b25e6d04, the first seeds whose Sema accepts a pin on a runtime definition (#2488): darwin cut on the laptop (fixpoint over 16 units,:release-checksgreen — studio128 is gone, Eric 2026-10-20), linux-x86_64 on eric-5090, windows-x86_64 on win10 (fixpoints). linux-aarch64 held on the 10-15 release (#2490/#2491 in progress) and windows-aarch64 until the dispatched cross seed (run 39452556233, D137) is pinned. Workflow pins moved withtools/bump_seed_pins.w.Evidence (driven by the new seed,
~/.local/with-staging/d30-step2bat d6dba2a)::seed-driverok,:gategreen,rt-decl-audit0 divergent,:bundle-interface-testsgreen, lane sweeps on the releaseWITH_RT_IN_UNIT=11702/1702, 1790/1790, 283/283,with run tools/battery.wGREEN (322 s). Docs commit on top (plan §10, handoff) is outside the green key.