Repository navigation
feat(egl): environment-optimized dynamic libraries wave — Codex gpu-e4-e5 carried + packages 2/4/5/7/8, U2/X2/V2, rt_* sites routed, Rust twins - #675
Closed
ormastes wants to merge 5 commits into
Conversation
…4-e5 (24 commits) carried + packages 2/4/5/7/8 non-Codex halves, follow-ups U2/X2/V2, direct rt_* sites routed, Rust twins for 8 C-only rt_* Single commit rooted on origin/main (the branch history of PR #626 is superseded: a merge of main into a pushed branch is refused by the 64-commit outgoing bound and a squashed merge re-conflicts on every later main edit). Content = the wave branch merged with main; provenance, per-package table and gate verdicts are in the PR body. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RWALUeGMTW8V9QKacRoE1r
…m (mcp-stdio-roundtrip t32-mcp-server-runnable ) The push gate validate_ledger_text requires one must_check_db.sdn row per bootstrap-tier must_check_gates.sdn row; these ids landed on main with manifest rows only. Rows added as todo/never with the manifest command byte-identical. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RWALUeGMTW8V9QKacRoE1r
ormastes
had a problem deploying
to
self-review-admission
September 12, 2026 13:04 — with
GitHub Actions
Error
#675) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RWALUeGMTW8V9QKacRoE1r
…tal.shs (its opt-out line was stale on this tree) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RWALUeGMTW8V9QKacRoE1r
…ard) into the advisory step check-guard-wiring.shs --rev reported it as NEW unwired on the pushed tree. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RWALUeGMTW8V9QKacRoE1r
ormastes
temporarily deployed
to
self-review-admission
September 12, 2026 15:14 — with
GitHub Actions
Inactive
Owner
Author
|
Superseded by #693 (same content re-rooted as one commit on current main). |
ormastes
temporarily deployed
to
self-review-admission
September 12, 2026 15:24 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
What this is
The EGL wave (Environment-optimized dynamic Libraries) landing as one PR. It carries
two lanes at once:
codex/gpu-e4-e5-production-sol-20260912— 24 commits (EGL packages 1,6 and 8 core: startup admission and variant lifecycle, GPU provider/completion
authorities, environment policy collection and native-worker handoff), merged onto a
gate-synced
mainatbd8df49e8d4. That Codex session hit its usage limit, so itsbranch was not going to land on its own; this PR carries it rather than letting the
work rot on a branch.
collected-receipts commit, and the U2/X2/V2 follow-ups applied from their own
worktrees and committed here with their receipts' numbers.
49 commits ahead of
main.origin/mainwas merged in twice (it advanced 105 then 37 commits while this ran); the first merge had one conflict, the second none.Per package
callable_map_v1— the loader owner every upstream module deferred to — with ten stable refusal codes; artifact bytes hashed before and after the mapping so a rename-swap inside the hash→load window is refused (SwappedDuringLoad, code 11, distinct from the pre-load mismatch because one refuses an inert artifact and the other refuses after constructors ran); operation family widened fromi64(i64,i64)toi64(i64...)arity 0..6 with executed native==static parity at 0/1/2/3/6;session_callable_adapter_v1binding a session's facets through a typed capability token that cannot be replayed across sibling sessions of the same published plansmf_dlsymreturns a section offset,exec_mapping_map_rxhas no entry ABI,src/os/smf/smf_dynlib.splis Codex'segl-prod-integrationlane); artifact identity is not fd-pinned — three shared-descriptor routes were measured unavailable on this seed/kernel, including/proc/self/map_filesreturning EPERM; the one-statement production hook is stated, not made, because every candidate call site is Codex-ownedparse_result_provider_seam_v1over a frozen five-source corpus (a struct of callables, no registry); dialect identity computed from the tables a dialect executes rather than declared — four independent digests (grammar / actions / schema / semantic) whose probe domain is derived from the tables themselves, so an entry that changes moves the digest with nothing else edited; SDN admitted as a second dialect through the same seam; a compatibility example proving the seam result is byte-identical to what the frontend's public entry already producesparse_full_frontend_with_scope—frontend.splis Codex-owned, and the hook must not be applied until per-request identity verification (~2 s/request on this seed) is replaced by an admit-once entry; sosh is blocked (below)deferredset feeds the next, proven over a live loop with a task whose cost exceeds the whole budget (forced at round 4 behind 3 deferrals, read from the loop rather than restated); a device execution body joined to T's authority route, so the CPU rasterizer refuses a device-lane lease (LaneMismatch) and a spent authority stays spent even when the host queue then disagrees; measured transfer costs from the backend's own damage/readback receipts instead of declared numbers, with the sticky-damage limitation pinned as a checked number (4096 → 8192 bytes) rather than docstring prosepresent()ownsscripts/audit/egl-host-capability-ledger.shs, 444 lines) that describes a host in four explicit states and never blocks a push — deliberately an audit, not a gateGate verdicts
Binary for every spec number below:
/home/yoon/dev/simple/bin/release/aarch64-unknown-linux-gnu/simple,50093192 bytes, 2026-09-06 09:59:11 +0900, sha256
3d120a6f9ab5704b…— the deployedRust seed. No rebuild: the changes are
src/libandsrc/compilersource, read onevery run.
check-no-direct-rt.shs --roots src --rev HEAD --baseline-rev origin/maincheck-guard-wiring.shscheck-workspace-root-guard.shscheck-test-tree-divergence-delta.shs origin/main HEADcheck-c-runtime-compiles-push.shscheck-runtime-api-regression-push.shs origin/main..HEADcheck-merge-content-conservation-push.shs origin/main..HEADcheck-cpu-hotloop-idiom.shscpu_lane_hotloop_ok=truecheck-runtime-source-list-parity.shscargo check --release --bin simple(CARGO_TARGET_DIR=/home/yoon/cargo-egl)check-bug-status-consistency.shsorigin/main(verified per file); this branch's two new records add nonecheck-push-must-pass.shs --self-testorigin/main: its three inputs are byte-identical here, and the same command in a detached worktree atorigin/main(202b68d) answers identicallyGate work done on the branch, not deferred
rt_*sites that refused the earlier push are gone. They werefound by dumping
--offendersat both revisions and diffing per file: 8 inhost_environment_snapshot_v1.spl(new, Codex) and 1 insimd_capabilities.spl.Fixed by adding four typed aliases (
cpuid,xgetbv,cpu_is_x86_64,x86_avx512_os_state_usable) tosrc/lib/nogc_sync_mut/sffi/host.spl— theallowlisted provider whose header says product code should import from it instead of
declaring
extern fn rt_*— and deleting Codex's deadhost_x86_avx512_os_state_usable_nativewrapper (zero callers in
src/ortest/). The baseline file was not touched andthe allowlist was not extended. Two "fixes" were considered and rejected in the
commit message: reimplementing the C probe in Simple (loses the
SIMPLE_RUNTIME_FORCE_NO_X86_XSTATEtest override and the non-x86false), andallowlisting
simd_capabilities.spl(would retire 13 pre-existing violations as aside effect — a policy change for the guard's owner).
check-gpu-provider-abi-lifetime-v1.shs(Codex's, measured rc=0 with a real verdictline) is wired into the advisory job;
check-test-runner-executes-bodies.shs(arrived from
mainalready unwired there, executesbin/simple, honestly RED here)is baselined with the measurement written next to it — wiring it would install a
red gate and an opt-out line would be a false statement.
chrome-layout-geometry-diffinconfig/check/must_check_gates.sdn, present onmain, absent in both the merge baseand the branch tip, gone from the merge result. Restored verbatim; that file is now
byte-identical to
main. This is the stale-merge content-loss classvcs.mdwarnsabout: no conflict, no failing check.
check-merge-content-conservation-push.shsfixed at thesource: its definition extractor matched
^(pub )?fn NAME, so when one parent hadfn shared_text_is_asciiandmainwidened it topub(crate) fn, the correctlymerged result looked like a lost definition. Widened to accept a Rust visibility
scope — which makes the extractor see more definitions on every side, so it cannot
mask a real loss. Selftest still 6/6, including the lost-definition incident replay.
Specs
36 specs added or modified by this branch were run individually; 31 green.
Every Claude-agent and U2/X2/V2 spec passes, including the three that gate the work
above:
host_environment_snapshot_v1_spec12/12 (the module whoseextern fn rt_*declarations were replaced),
session_callable_adapter_v1_spec9/9,parse_dialect_identity_and_adapters_v1_spec11/11,environment_resident_executor_deferral_v1_spec8/8,parse_result_provider_seam_v1_spec8/8 (unchanged, no example edited).4 are red, all Codex's, and all red at Codex's own base. Verified by running them
in a detached worktree at
bd8df49e8d4on the same binary — the four verdict linescome back byte-identical (5/8, parse-error with 0 executed, 3/6, 4/5). Filed as
doc/08_tracking/bug/egl_gpu_e4_e5_base_four_red_specs_2026-09-12.mdwith theattribution evidence rather than fixed here: they are the environment policy/handoff
surface the Codex lane owns end to end, that session is out of budget, and guessing at
another lane's semantics is how a carrier becomes a clobber.
The whole
test/01_unit/compiler/driver/directory was additionally swept per filefor the parse-seam work — 182 specs at HEAD and again at Codex's base
bd8df49e8d4.179 of 182 are byte-identical base→HEAD. The three that differ are benign: one
cost spec times out on both sides, and V's and V2's two new specs are absent at base
and green at HEAD (8/8 and 11/11). That directory carries a large pre-existing red
backlog (85 of 182 non-OK on both sides), which is why it is reported as a delta.
Known blocked, stated rather than hidden
src/compiler/80.driver/parser_variant_build_plan_v1.spl:89-92reassigns a local named
feature, which the deployed compiler parses as the spec-DSLgroup keyword, so the whole module fails with
parse: Unexpected token: expected Colon, found Assignand every consumer ofParserVariantBuildPlanV1is blocked. The fix is a two-token rename(
feature→feature_id); it is the only occurrence of the pattern insrc/and itbelongs to that module's Codex owner, so it is stated here rather than applied.
os.apps.shell.shell_script.StmtKindand thefrontend's
StmtKindcollide, and enum-variant resolution is program-global by name,so the frontend's wins inside
shell_script.splitself; an aliased import cannothelp. The adapter was written, measured red, and deleted rather than left as dead or
skipped code.
doc/08_tracking/bug/shell_stmtkind_collides_with_frontend_stmtkind_2026-09-12.md.parse_full_frontend_with_scope;frontend.splis Codex-owned and the hook is gatedon the ~2 s/request identity-verification cost being replaced by an admit-once entry.
is recorded at
doc/08_tracking/bug/test_tree_divergence_preexisting_egl_wave_2026-09-12.{md,txt}as
vcs.mdrequires.🤖 Generated with Claude Code
https://claude.ai/code/session_01RWALUeGMTW8V9QKacRoE1r