Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
About Files History Releases Proposed changes Issues For developers
gates: physics pins follow physics.lock; chip gates list physics.lock (#523)
merged bc486994a65e41a1 #566 · opened 2026-10-18 21:53 UTC · closed 2026-11-02 00:28 UTC · merged 2026-11-02 00:28 UTC
Imported from GitHub aien-dev/omega-mv#566, by drakestapleton
Base 62d1d0d668f897386a0e311374f8dbcc5c32dde8 · Head d96e156b1d8aa6521982761dbf4f0f88c3a976a4
Merged on GitHub as f9a9a40b598928fc6f92d7ffa6ff386941182663 ; reachable from main c7acd2607139eedfabeac16b6042cefe8ede431f (observed 2026-11-18T16:35:55Z)
drakestapleton wrote on 2026-10-18 21:53 UTC
Part of #523. Related: aien-dev/physics-mv#64 (the actual 0x51 fix), #529, #565.
Problem [OBSERVED]. The plan for #523 is: physics-mv#64 merges, then omega bumps physics.lock. That bump cannot reach M19 or COMPOSITION-GATE-GPU on current main, for two reasons:
tests/gates/run.sh pins physics to the literal 6d7cf0d4 in the chip:*|spark:*, rx-host-reference and faculty-arm steps, and make runs check-physics-lock first. Reproduced on the Spark: #529's tree with physics.lock set to bfea968 (physics#64 head) and run.sh unchanged:
$ tests/gates/run.sh chip:check-physics-lock
error: PHYSICS_DIR=.../build/pins/physics-src-6d7cf0d is at commit 6d7cf0d4 ... but physics.lock pins bfea96814bad ...
make: *** [Makefile:81: check-physics-lock] Error 1 (exit 2)
That is the same failure #508 fixed for e95e3ed (face 1 of #523).
None of the 19 gates that run those steps (M19, COMPOSITION-GATE-GPU, M5, R11 to R16, faculty-arm, rx-host-reference) list physics.lock as an input, so a lock-only bump would not even select them.
Fix. Those three run.sh steps call physics_pin (commit read from physics.lock, as the m-steps already do); rx-host-reference exports PHYSICS_COMMIT from the lock. The 19 gates list physics.lock. New host self-test tools/test_gate_physics_pin.sh (make test-gate-physics-pin, added to the chip-tool-selftests step) fails on a literal physics pin in run.sh, and on any gate whose step pins physics but does not list the lock.
Red / green [OBSERVED, Spark, 2026-10-18].
Self-test on origin/main + #529: exit 1, 3 literal pins + 19 gates missing the lock. On this branch: OMEGA_GATE_PHYSICS_PIN_PASS gates_checked=33, exit 0. tests/gates/run.sh chip-tool-selftests exit 0. crumb verify: 157 crumbs current.
With this change and the lock at bfea968 : chip:check-physics-lock exit 0 (pin_physics_src bfea968 ).
End-to-end on the chip, under flock /tmp/aien-gb10.lock, tree = #565 head d1622970 + this change + physics.lock = bfea968 (local test commit, not pushed): chip:test-m19 exit 0, 18/18 M19 gates, 177 total ; chip:test-composition-gate-gpu exit 0, COMPOSITION-2 gate (GPU tier): PASS.
Limits. In the same minutes, #565 alone (physics 6d7cf0d , no retry) also passed both gates, and 15 back-to-back runs of the channel probe (75 channel opens) gave no 0x51 with or without the retry. The host had free 2 MiB blocks then (buddyinfo order 9: 174 to 255). So this run proves the bump path works end to end. It does not show the retry absorbing a real refusal; that evidence is in #523 (100/100 opens under refusals, 2026-10-17). The kernel logged 115 NV_ERR_NO_MEMORY lines in the 12 hours before, so the refusal still happens on this boot.
Order to merge. physics-mv#64 (needs a rebase first: .crumb now conflicts with physics main 01ec3e3 , and its only Spark run had the chip gates NOT_RUN gpu_lock), then this PR, #529 and #565 (only generated .crumb files conflict; recompile), then a one-line physics.lock bump to the merged physics main commit.
🤖 Generated with Claude Code
Fetch it
A git bundle of the pull request's head, 16741 bytes.
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/bc486994a65e41a1 .bundle -o bc486994a65e41a1 .bundle
git fetch bc486994a65e41a1 .bundle refs/pull/566/head
Raw bundle · Diff
Provenance
This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:
github-import 1
aien-dev/omega-mv
566
d96e156b1d8aa6521982761dbf4f0f88c3a976a4
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":566,"url":"https://github.com/aien-dev/omega-mv/pull/566","export_sha256":"7319147b350ad908bf0b731068ec3be7b8dee848041dc862f71455e8e4680140 ","imported_utc":"2026-11-18T16:35:55Z"}
Changes
diff --git a/.crumb b/.crumb
index f3e51fe46 ..e58e1e452 100644
--- a/.crumb
+++ b/.crumb
@@ -48,7 +48,7 @@
},
{
"digest": "7ef7796693f23ad68d9a5bcaaee0f635018f4371139a040ba202d4ce7083ede8 ",
- "last_commit": "dd39bf71f ",
+ "last_commit": "dcccc0211 ",
"name": "docs",
"purpose": "Directory docs. Purpose not yet described by a human."
},
@@ -72,7 +72,7 @@
},
{
"digest": "f765ad87fdddd9b47f690b07298c951a0f7e7675dc5de4ffe44e33a0c14b1986 ",
- "last_commit": "a8a6a3d3c ",
+ "last_commit": "d94a503f7 ",
"name": "spec",
"purpose": "Directory spec. Purpose not yet described by a human."
},
@@ -83,27 +83,27 @@
"purpose": "Directory src. Purpose not yet described by a human."
},
{
- "digest": "5395ff8ff9afceebe8e453788f80a3064b831513cc4cb92fd55869115e06b874 ",
- "last_commit": "a8a6a3d3c ",
+ "digest": "8a5128b301c4495ba28ebe52e0c32efecd71bb1e383b8e1548131b25bc4fb666 ",
+ "last_commit": "cf52c95c2 ",
"name": "tests",
"purpose": "Directory tests. Purpose not yet described by a human."
},
{
- "digest": "308db0e6cf45c0a48f01f5f5f228450f191389de68006915b9ecf9c65b9a2e29 ",
- "last_commit": "a8a6a3d3c ",
+ "digest": "98d06797b2add5a5778d83cb583f7c02f15b87841bb0dc2f08630c9196d64dfd ",
+ "last_commit": "cf52c95c2 ",
"name": "tools",
"purpose": "Directory tools. Purpose not yet described by a human."
}
],
- "children_root": "sha256:07bf1706dcffbad66c0353871ff67a6749055da03cee8d8ebdf9a4c91e36bddc ",
- "compiled_at": "2026-10-30T12:31:50Z",
+ "children_root": "sha256:7a2f53b31bdbf521b1608b18f35e069dff36d28cc5ba1aee08f5bc22fdcda7b9 ",
+ "compiled_at": "2026-10-30T16:35:51Z",
"compiler": "crumb-compile/1",
- "digest": "sha256:904fca8c0e0cf3e3a5e5adb73393e01c7018b920bb542d289904240f70e400d6 ",
+ "digest": "sha256:91f55315ead2802d8710727200cfb4f295704b4f5b59a6ffd8f67c905ee1856d ",
"evidence_files": 12622,
"evidence_root": "sha256:b1a08e2ce56e6feada0d8a31f06fbd7adee57adc1c1ad8dec220293ee5d439f9 ",
- "files": 17849,
- "generated_at_commit": "52a82f392fa513ebbc2d9d719a0f14c385289b06 ",
- "source_tree": "sha256:75458da6553a0ee5ea2af95f46afb658e8a3f6e53cca6e3b4b9874035f78c2ed "
+ "files": 17850,
+ "generated_at_commit": "cf52c95c2ab8836aae42d47567faba0f8cd2c461 ",
+ "source_tree": "sha256:e6578d1dcd6a69115da3e45bf69cddf7798223054f1a65ea7bab58a6302fefe5 "
},
"owner_lane": "",
"provenance": {
diff --git a/Makefile b/Makefile
index 6b53cd124 ..fddb055ea 100644
--- a/Makefile
+++ b/Makefile
@@ -220,6 +220,12 @@ test-chipwait-campaign:
test-gate14-combine:
tools/test_gate14_combine.sh
+# Host-only self-test of the gate physics pins (omega#523): every tests/gates/run.sh step
+# that builds against physics takes physics.lock, and its gate lists physics.lock as an input.
+.PHONY: test-gate-physics-pin
+test-gate-physics-pin:
+ tools/test_gate_physics_pin.sh
+
# Host-only self-test of the E1 closure combiner (tools/e1_combine.sh): good
# synthetic constituent set accepted, every hostile mutant refused. No GPU.
.PHONY: test-e1-combine
diff --git a/tests/.crumb b/tests/.crumb
index 5fbfcb29c ..3b1173278 100644
--- a/tests/.crumb
+++ b/tests/.crumb
@@ -302,14 +302,14 @@
}
],
"children_root": "sha256:0c57282ff8cf1d34e5685e2729755f2978917e66debb5423961033be9d25c902 ",
- "compiled_at": "2026-10-30T12:31:50Z",
+ "compiled_at": "2026-10-30T16:35:51Z",
"compiler": "crumb-compile/1",
- "digest": "sha256:5395ff8ff9afceebe8e453788f80a3064b831513cc4cb92fd55869115e06b874 ",
+ "digest": "sha256:8a5128b301c4495ba28ebe52e0c32efecd71bb1e383b8e1548131b25bc4fb666 ",
"evidence_files": 16,
"evidence_root": "sha256:96d08097822ad95f4e562c19e0ba5df5a035774c48632f1832912c40a27bd27a ",
"files": 1386,
- "generated_at_commit": "52a82f392fa513ebbc2d9d719a0f14c385289b06 ",
- "source_tree": "sha256:a3b853bb9c0edfc5f1413ccaa2698cc6ea920f2e8795756121667cc9d37f6679 "
+ "generated_at_commit": "cf52c95c2ab8836aae42d47567faba0f8cd2c461 ",
+ "source_tree": "sha256:94babd60e657d9c6ac7276cd861340cf6a7c452e6a1010e2d9d03a5319114f70 "
},
"owner_lane": "",
"provenance": {
diff --git a/tests/gates/omega-composition-gate-gpu.gate b/tests/gates/omega-composition-gate-gpu.gate
index 38035da50 ..dd8a18529 100644
--- a/tests/gates/omega-composition-gate-gpu.gate
+++ b/tests/gates/omega-composition-gate-gpu.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-faculty-arm.gate b/tests/gates/omega-faculty-arm.gate
index 81af3d857 ..49946bfab 100644
--- a/tests/gates/omega-faculty-arm.gate
+++ b/tests/gates/omega-faculty-arm.gate
@@ -14,6 +14,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-m19.gate b/tests/gates/omega-m19.gate
index 8e8ae88eb ..c31dbfea3 100644
--- a/tests/gates/omega-m19.gate
+++ b/tests/gates/omega-m19.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-m5.gate b/tests/gates/omega-m5.gate
index a875f165f ..e1066a821 100644
--- a/tests/gates/omega-m5.gate
+++ b/tests/gates/omega-m5.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-prod-hygiene-silicon.gate b/tests/gates/omega-prod-hygiene-silicon.gate
index 3411fe93f ..1f0bff7a0 100644
--- a/tests/gates/omega-prod-hygiene-silicon.gate
+++ b/tests/gates/omega-prod-hygiene-silicon.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r11-own-hold.gate b/tests/gates/omega-r11-own-hold.gate
index 3cb32afda ..726a7e2ca 100644
--- a/tests/gates/omega-r11-own-hold.gate
+++ b/tests/gates/omega-r11-own-hold.gate
@@ -15,6 +15,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r12-silicon.gate b/tests/gates/omega-r12-silicon.gate
index 6dd9e2b7e ..947a9d95a 100644
--- a/tests/gates/omega-r12-silicon.gate
+++ b/tests/gates/omega-r12-silicon.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r13-host.gate b/tests/gates/omega-r13-host.gate
index 987e1fab6 ..2dc908bd9 100644
--- a/tests/gates/omega-r13-host.gate
+++ b/tests/gates/omega-r13-host.gate
@@ -15,6 +15,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r13-silicon.gate b/tests/gates/omega-r13-silicon.gate
index 0bb89eac8 ..75478ef56 100644
--- a/tests/gates/omega-r13-silicon.gate
+++ b/tests/gates/omega-r13-silicon.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r13-testbuild-host.gate b/tests/gates/omega-r13-testbuild-host.gate
index 556dcc051 ..9dbdbe544 100644
--- a/tests/gates/omega-r13-testbuild-host.gate
+++ b/tests/gates/omega-r13-testbuild-host.gate
@@ -15,6 +15,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r13-testbuild-silicon.gate b/tests/gates/omega-r13-testbuild-silicon.gate
index 264e58dd7 ..9c096cf3f 100644
--- a/tests/gates/omega-r13-testbuild-silicon.gate
+++ b/tests/gates/omega-r13-testbuild-silicon.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r14-host.gate b/tests/gates/omega-r14-host.gate
index 370753eb8 ..9f24bd750 100644
--- a/tests/gates/omega-r14-host.gate
+++ b/tests/gates/omega-r14-host.gate
@@ -15,6 +15,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r14-silicon.gate b/tests/gates/omega-r14-silicon.gate
index 8695eba50 ..2bcb044ca 100644
--- a/tests/gates/omega-r14-silicon.gate
+++ b/tests/gates/omega-r14-silicon.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r15-g7-host.gate b/tests/gates/omega-r15-g7-host.gate
index cde550d38 ..2100bf574 100644
--- a/tests/gates/omega-r15-g7-host.gate
+++ b/tests/gates/omega-r15-g7-host.gate
@@ -15,6 +15,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r15-parity-host.gate b/tests/gates/omega-r15-parity-host.gate
index afdef1a4b ..d0ce1f052 100644
--- a/tests/gates/omega-r15-parity-host.gate
+++ b/tests/gates/omega-r15-parity-host.gate
@@ -15,6 +15,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r15-parity-silicon.gate b/tests/gates/omega-r15-parity-silicon.gate
index e497ca9f7 ..6a8c5f6c8 100644
--- a/tests/gates/omega-r15-parity-silicon.gate
+++ b/tests/gates/omega-r15-parity-silicon.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r16-authpath-silicon.gate b/tests/gates/omega-r16-authpath-silicon.gate
index 2aab53c2f ..cee14e34c 100644
--- a/tests/gates/omega-r16-authpath-silicon.gate
+++ b/tests/gates/omega-r16-authpath-silicon.gate
@@ -13,6 +13,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-r16-authpath.gate b/tests/gates/omega-r16-authpath.gate
index fcbf9e66c ..c61abbca9 100644
--- a/tests/gates/omega-r16-authpath.gate
+++ b/tests/gates/omega-r16-authpath.gate
@@ -15,6 +15,7 @@ inputs:
- tools/
- aienos.lock
- argus.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/omega-rx-host-reference.gate b/tests/gates/omega-rx-host-reference.gate
index b23f3fb36 ..65c395bd7 100644
--- a/tests/gates/omega-rx-host-reference.gate
+++ b/tests/gates/omega-rx-host-reference.gate
@@ -1,5 +1,5 @@
# tests/gates/omega-rx-host-reference.gate
-# Mirrors hosted: rx-host.yml host-reference: the resident reaction host reference suite, receipts checked, qualification receipt emitted; physics-src at 6d7cf0d , aienos-src at aienos.lock (hosted 339 s)
+# Mirrors hosted: rx-host.yml host-reference: the resident reaction host reference suite, receipts checked, qualification receipt emitted; physics-src at physics.lock, aienos-src at aienos.lock (hosted 339 s)
# cache: never because the suite binds receipts to the candidate commit and reads pinned sibling sources.
gate: OMEGA-RX-HOST-REFERENCE
manifest_version: 2
@@ -13,6 +13,7 @@ inputs:
- tests/
- tools/
- aienos.lock
+ - physics.lock
- tests/gates/
run:
exec: tests/gates/run.sh
diff --git a/tests/gates/run.sh b/tests/gates/run.sh
index 66da8e1a9 ..14c320dad 100755
--- a/tests/gates/run.sh
+++ b/tests/gates/run.sh
@@ -20,8 +20,8 @@
# evidence-immutable.yml, crumb.yml). Manifests under tests/gates/ name this script plus one
# step word, so no manifest needs shell expansion (ADR 0028 P6).
#
-# Pinned sibling sources. The hosted jobs check out aien-spark/physics at physics.lock (rx-host
-# at its own hard-coded commit), aien-dev/aienux at aienos.lock and aien-dev/aienux at
+# Pinned sibling sources. The hosted jobs checked out aien-spark/physics at physics.lock,
+# aien-dev/aienux at aienos.lock and aien-dev/aienux at
# argus.lock, as physics-src/, aienos-src/ and aienos-argus/ next to the Makefile, and exclude
# them from git status. Here the same commits are materialised under build/pins/ (build/ is
# gitignored) from the sibling local clones ../physics and ../aienos, offline.
@@ -64,6 +64,9 @@ pin() {
) 9>"$PINS/.$name.lock"
obs "pin_${name//-/_}" "\"$sha\""
}
+# Every step that builds against physics takes the commit from physics.lock, never a literal:
+# the Makefile's check-physics-lock refuses any other commit, so a literal here goes red on
+# the next lock bump (it did for the e95e3ed bump, omega#508, and again for 048e5f5 , omega#523).
physics_pin() { pin physics-src physics "$(lock physics.lock)"; export PHYSICS_DIR="$PINS/physics-src"; }
aienos_pin() { pin aienos-src aienos "$(lock aienos.lock)"; export AIENOS_R7_DIR="$PINS/aienos-src"; export AIENOS_COMMIT="$(lock aienos.lock)"; }
argus_pin() { pin aienos-argus aienos "$(lock argus.lock)"; export ARGUS_REPO="$PINS/aienos-argus"; }
@@ -128,7 +131,7 @@ case "$step" in
compiler) make $NOPHYS test-compiler-quick; make $NOPHYS test-compiler-full ;;
one-layer-acceptance) make $NOPHYS test-one-layer-acceptance ;;
physics0) make $NOPHYS physics0-test ;;
- chip-tool-selftests) for t in test-m19r-qualify test-gate14-combine test-window-lane-guard test-unwritten-trap-host test-ldst-host; do make $NOPHYS $t; done ;;
+ chip-tool-selftests) for t in test-m19r-qualify test-gate14-combine test-gate-physics-pin test-window-lane-guard test-unwritten-trap-host test-ldst-host; do make $NOPHYS $t; done ;;
# seed compiler (no hosted mirror; Spark only): rebuild from the loader, full qualification, IR oracles required
seed) make OUT_DIR=build build/omegese/omegese build/omega_emit/omega_emit build/checker2/checker2
sh seed/omega-from-seed.sh
@@ -210,8 +213,7 @@ case "$step" in
;;
# rx-host.yml
rx-host-reference)
- pin physics-src-6d7cf0d physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf
- export PHYSICS_COMMIT=6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf PHYSICS_DIR="$PINS/physics-src-6d7cf0d "
+ physics_pin; export PHYSICS_COMMIT="$(lock physics.lock)"
aienos_pin; set -o pipefail; mkdir -p build
make test-r3 test-r7 test-r16-operator-authority-misuse test-r8 test-r9 test-r12 test-rx-emergency test-action-graph test-state-projection test-capability-query test-capability-graph test-skillroute-compose test-semantic-comm test-cognitive-routing test-sem-incremental test-cortex test-jspace-prod test-composition test-composition-attach-asan test-composition-gate test-fabric test-fabric-living | tee build/rx-host-reference.log
make test-machine-identity | tee -a build/rx-host-reference.log
@@ -239,8 +241,7 @@ case "$step" in
tools/rx_host_receipts.sh generation "$generation" "$OMEGA_CANDIDATE_COMMIT"
;;
faculty-arm)
- pin physics-src-6d7cf0d physics 6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf
- export PHYSICS_DIR="$PINS/physics-src-6d7cf0d "
+ physics_pin
aienos_pin; argus_pin; set -o pipefail; mkdir -p build
make OUT_DIR=build/pid $NOPHYS test-program-id
make OUT_DIR=build/prz $NOPHYS test-program-realize
@@ -277,9 +278,8 @@ case "$step" in
# Chip and spark steps follow physics.lock like every other step. Makefile check-physics-lock
# (a prerequisite of omegatool, rx_composition_gate_gpu and libomega_gpu.a) refuses any other
# physics commit, and omegatool itself now needs the physics API of the lock (nvrm_channel_n,
- # L136 via #614). The former hard-coded 6d7cf0d4 failed every such chip gate on the judge once
- # #614 moved the lock to 048e5f5 (main 18c653b3 , 2026-10-25). faculty-arm and rx-host-reference
- # keep their own pin: they mirror the hosted rx-host job, which checks out that commit itself.
+ # L136 via #614). The former hard-coded physics literal failed every such chip gate on the judge
+ # once #614 moved the lock to 048e5f5 (main 18c653b3 , 2026-10-25).
physics_pin
aienos_pin; argus_pin
make "$t"
diff --git a/tools/.crumb b/tools/.crumb
index e9e4932b5 ..0621a0c55 100644
--- a/tools/.crumb
+++ b/tools/.crumb
@@ -62,14 +62,14 @@
}
],
"children_root": "sha256:8d3d3b952374b3b72e667521f07bf028c4c02bcefff772ad1a71cfff3e5266f2 ",
- "compiled_at": "2026-10-30T11:28:28Z",
+ "compiled_at": "2026-10-30T16:35:51Z",
"compiler": "crumb-compile/1",
- "digest": "sha256:308db0e6cf45c0a48f01f5f5f228450f191389de68006915b9ecf9c65b9a2e29 ",
+ "digest": "sha256:98d06797b2add5a5778d83cb583f7c02f15b87841bb0dc2f08630c9196d64dfd ",
"evidence_files": 0,
"evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ",
- "files": 298,
- "generated_at_commit": "a8a6a3d3c47ce797430f045edc5eae11594ba36d ",
- "source_tree": "sha256:acd1f1b0080968db950791b4eb2dce39bb0289dc0c2e8794bfc7449023446105 "
+ "files": 299,
+ "generated_at_commit": "cf52c95c2ab8836aae42d47567faba0f8cd2c461 ",
+ "source_tree": "sha256:65a07410b748ab46a8676f92be085f4f7dd3dc4482dc79f2a04efc406c7e33f6 "
},
"owner_lane": "",
"provenance": {
diff --git a/tools/test_gate_physics_pin.sh b/tools/test_gate_physics_pin.sh
new file mode 100755
index 000000000 ..44cba59b9
--- /dev/null
+++ b/tools/test_gate_physics_pin.sh
@@ -0,0 +1,64 @@
+#!/usr/bin/env bash
+# tools/test_gate_physics_pin.sh -- host self-test (omega#523, omega#508).
+#
+# Every tests/gates/run.sh step that builds against physics must take the physics commit
+# from physics.lock, and every gate that runs such a step must list physics.lock as an input.
+# Why: the Makefile's check-physics-lock refuses any physics checkout other than the lock, so
+# a literal commit in run.sh turns every chip gate red on the next lock bump (it did for
+# e95e3ed -> 6d7cf0d4 in #508), and a gate that does not list physics.lock is never selected
+# by a lock-only bump, so the bump is judged without the gates it changes.
+#
+# Exit 0 when both hold, 1 with one line per violation otherwise. No GPU, no network.
+set -euo pipefail
+ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
+RUN="$ROOT/tests/gates/run.sh"
+fail=0
+
+# 1. No literal physics commit on a pin line.
+if grep -nE '^[^#]*pin[[:space:]]+physics-src[^[:space:]]*[[:space:]]+physics[[:space:]]+[0-9a-f]{7,40}' "$RUN"; then
+ echo "FAIL literal physics commit in tests/gates/run.sh (take it from physics.lock: physics_pin)"
+ fail=1
+fi
+
+# 2. The run.sh case labels whose block calls physics_pin (or pins physics by hand).
+labels="$(awk '
+ /^ [^ #][^)]*\)/ && $0 !~ /^ *\(/ { lab=$0; sub(/^ /,"",lab); sub(/\).*/,"",lab) }
+ /physics_pin|pin[ \t]+physics-src/ && lab != "" { print lab; lab="" }
+' "$RUN")"
+if [ -z "$labels" ]; then
+ echo "FAIL found no run.sh step that pins physics (parser out of date?)"
+ exit 1
+fi
+
+step_pins_physics() {
+ local step="$1" lab pat
+ while IFS= read -r lab; do
+ IFS='|' read -r -a pats <<<"$lab"
+ for pat in "${pats[@]}"; do
+ # shellcheck disable=SC2254
+ case "$step" in $pat) return 0 ;; esac
+ done
+ done <<<"$labels"
+ return 1
+}
+
+checked=0
+for g in "$ROOT"/tests/gates/*.gate; do
+ step="$(sed -n 's/^[[:space:]]*args:[[:space:]]*\["\([^"]*\)".*/\1/p' "$g" | head -n 1)"
+ [ -n "$step" ] || continue
+ step_pins_physics "$step" || continue
+ checked=$((checked + 1))
+ if ! grep -qx ' - physics.lock' "$g"; then
+ echo "FAIL $(basename "$g") runs step '$step', which builds against physics, but does not list physics.lock in inputs"
+ fail=1
+ fi
+done
+
+if [ "$checked" -eq 0 ]; then
+ echo "FAIL no gate runs a physics-pinning step (parser out of date?)"
+ exit 1
+fi
+if [ "$fail" -eq 0 ]; then
+ echo "OMEGA_GATE_PHYSICS_PIN_PASS gates_checked=$checked"
+fi
+exit "$fail"