interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / evidence / CAND2-PREP-PATHFIX-20261005 / README.md

56 lines · 4583 bytes Raw Blame History Rendered
1# CAND2-PREP-PATHFIX-20261005: omegatool no longer depends on the checkout path
2
3Host only (CPU), no chip, no QEMU. Branch `cand3/omegatool-path`, omega code commit
4`9384895bdd08e6e8f6944d671fa0e3102b7d037c` (main a386d65 + this branch). Later commits on the
5branch add only this evidence directory and regenerated crumbs (no build input changes).
6
7## Root cause (source: CAND1-PATH2-2eec75b + baseline build, 2026-10-05)
8`Makefile` CFLAGS passed `-DOMEGA_PHYSICS_DIR="$(PHYSICS_DIR)"`. `src/omega_blackwell_gates.c`
9(M17 physics authority: two string literals `<dir>/m16/m16_native.h` and `cd '<dir>' && git status`)
10and `src/omega_blackwell_gates.c` / `src/omega_world_gates.c` (M18/M19 fallback `pd = OMEGA_PHYSICS_DIR`,
11one pooled literal) compiled it in: 3 strings, found with `strings -a` on a baseline build. No `__FILE__`,
12debug-info or omega-checkout paths were present (sources compile with relative paths; no `-g`).
13
14## Fix
15Removed the define. New `src/omega_physics_dir.h`: physics is resolved at run time:
161. `PHYSICS_DIR` environment variable if set and non-empty (make exports command-line variables, so
17 `make PHYSICS_DIR=/x test-m17` still works);
182. else the project default `../physics` relative to the current directory (same as `Makefile PHYSICS_DIR ?= ../physics`).
19It must contain `m16/m16_native.h` (realpath returned). Otherwise the gate fails with a message naming the
20value, its source and the fix; nothing else is tried. M17 then still checks the physics tree is clean; M18/M19
21still pass the absolute path to the nested clean-clone build. Build-time `physics.lock` check is unchanged.
22
23## Tests (`make test-omegatool-path`, mk/omegatool-path.mk)
24- `tests/omegatool_path/physics_dir_test.c`: env valid, env missing, env not physics (no fallback to ../physics),
25 empty env with/without ../physics. PASS.
26- `tests/omegatool_path/no_embedded_path_test.sh`: builds omegatool from two copies at different paths, greps both
27 for the copy path and PHYSICS_DIR, compares digests. PASS. Negative control: the baseline binary contained the
28 physics path (3 strings, see above), so the grep detects the defect.
29- Not run: `--run-m17-gates` / M18 / M19 end to end (they touch the chip). The gate code path changed only in how
30 the directory string is obtained.
31
32## Verification build (`pathfix_build.sh`, summary.txt, digests.tsv)
33Two checkout locations (build-A, build-B/nested/dir), A built twice, B once, fresh GitHub clones of omega (branch
34head above), physics 6d7cf0d, aienos bbad5e4, sovereign-core 2eec75b; fresh empty CARGO_HOME per location
35(`find "$CARGO_HOME" -mindepth 1 | wc -l` = 0 before `cargo fetch --locked`, see summary.txt). Same recipe as
36CAND1-RECON. Result: 9/9 artifacts SAME across 3 builds (table in summary.txt, per-build rows in digests.tsv);
37omegatool = 5a3084278ce62868b3655978bc161a0c635b368bddc588963849dd2c5cb343cd in both locations and both repeats,
38and contains neither checkout path nor the physics path.
39Deviation: sovereign-core's `omega.lock` pins CAND-1 omega cb06d08 and its build refuses another omega, so the
40three Rust artifacts are linked against a clean clone of the pinned omega (`omega-pinned`); the fixed omega's
41`libomega_gpu.a` has the same digest as CAND-1 (a4af088...), so they equal CAND-1's digests. A real CAND-2 needs
42the sovereign-core lock bump and a fresh run. Toolchain: see loc*-toolchain.txt (cc 13.3.0, rustc/cargo 1.98.1,
43mojo reported by the script but not used by these builds).
44Logs are truncated to the last 40 lines (full logs in scratch, not committed).
45
46CAND-1 records are untouched. This changes a candidate binary: a new candidate (CAND-2) is required.
47
48## Review round 1 (coordinator: M17 authority gap)
49The first version (d70bc4a, omegatool 6cd61d10...) only probed `m16/m16_native.h` and a clean `git status`, so an
50unrelated clean repo or a non-git directory passed. Now `omega_physics_dir_verify` (src/omega_physics_dir.h) requires
51`git -C <dir> rev-parse HEAD` == first line of ./physics.lock (40 hex, cwd-relative like src/omega_evidence.c) and, for
52M17, `git status --porcelain` to succeed and be empty; any git error refuses. M18/M19 check the pin only (their nested
53make re-checks it). Negative tests in test-omegatool-path: unrelated clean repo, non-repo dir, dirty pinned checkout,
54malformed/missing lock refused; correct clean checkout accepted. The old check (emulated in the test as `legacy_m17`)
55accepts the unrelated repo and the non-repo dir (red), the new one refuses both. The digests above are from the re-run
56at 9384895 (omegatool changed, all other 8 unchanged).