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
GitHub aien-dev/omega-mv#916 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/72e65e0d3bd44372.bundle -o 72e65e0d3bd44372.bundle git fetch 72e65e0d3bd44372.bundle refs/pull/916/head
Provenance
github-import 1
aien-dev/omega-mv
916
ddabe6e5bfdb75674515605d2c58669b59d8ff97
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":916,"url":"https://github.com/aien-dev/omega-mv/pull/916","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:19Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 9c65d8602..6681faf5c 100644 --- a/.crumb +++ b/.crumb @@ -48,7 +48,7 @@ }, { "digest": "7ef7796693f23ad68d9a5bcaaee0f635018f4371139a040ba202d4ce7083ede8", - "last_commit": "851476aba", + "last_commit": "dcccc0211", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, @@ -60,7 +60,7 @@ }, { "digest": "8f0e5cb325040247440527f6b54b65cf72c47ff5adca75b4f32a1ddf2b2d6ade", - "last_commit": "43f25831b", + "last_commit": "1f320caad", "name": "mk", "purpose": "Directory mk. Purpose not yet described by a human." }, @@ -72,19 +72,19 @@ }, { "digest": "1cef97c8f2d852990d04fe5e791e877015c74a751648a020033a2459e02c5148", - "last_commit": "faebae8c1", + "last_commit": "d94a503f7", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { "digest": "199749684598b36b610b14a4c5b59703df5e53bba1db2b5939297c55ac423153", - "last_commit": "82a399b9f", + "last_commit": "bf54b19fa", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { "digest": "ea8ae97d49edc85af090218634c9bad13bcc91fa84f96e0d33fefe313704e111", - "last_commit": "f401f2baa", + "last_commit": "dcccc0211", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, @@ -96,14 +96,14 @@ } ], "children_root": "sha256:8091287983f9252d3cbab774326dd2cc2641e8e724c75b7b59bbbb319ceb72c9", - "compiled_at": "2026-10-30T02:47:38Z", + "compiled_at": "2026-10-30T03:23:59Z", "compiler": "crumb-compile/1", - "digest": "sha256:a1204166d25f213563dd1d6a90e11e05ede0b1b1dad70e0a74c29b8b3300bf8c", + "digest": "sha256:bc41057c82884b6aa2bdb9e2c9a1d6581d3afd84c49bd8a3ceba578759e25300", "evidence_files": 12611, "evidence_root": "sha256:9ee1ecc8a32bd724cae4237a844b3cb2e82a8e6af89626fa84c2b5ea77bec79e", - "files": 17821, - "generated_at_commit": "e615e9ff47d03199514580f655d7670e61ab7e2f", - "source_tree": "sha256:0ba3034275cdc2e57d2ac8280179bd4903fdfe0147a9a64ed54db7a1df23d48f" + "files": 17822, + "generated_at_commit": "7a7ea0d0402b09b7db157f383d59846f63b530d5", + "source_tree": "sha256:e38c1db15c34751f725140eeee92ee7cc4cd6b7a997e89cf4d6be8ce908d48a0" }, "owner_lane": "", "provenance": { diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index a3f04b7c7..dea84a7ef 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -6,6 +6,7 @@ Every model below did real work. A model is listed only for work it did. The orc | Model | What it did | |---|---| | Codex (GPT-6.1 Sol) | FR-9 x86-64 Linux backend integration from historical 7eca2ac3f, full-language lowering, contract-loop/output-capacity/dead-branch repairs, division/shift proof-aware diagnostics, original-conductor and historical-mutant qualification repair, independent disassembly and cross-architecture qualification; orphaned-lane recovery, current mutation re-anchoring and x86 OM-2 emitted-storage bound | +| Codex (GPT-6.1 Sol) | TileLab decimal-overflow and malformed-register-budget refusal repair, host regression fixtures and semantic negative controls (TL907-01) | | Codex (GPT-6.1 Sol) | Corrected qty prefix-query types and capacity-only diagnostic repairability, with exact-record regression controls (#911) | | Codex | Inference-cost driver compiler-failure status repair, host-only refusal regression probes and independent review; native Omega execution NOT_RUN | | Codex (GPT-6 Astra) | Bounded native peer credentials, multi-descriptor polling, single-iovec sendmsg, socket-option allowlist and host fixtures (#788) | diff --git a/seed/README.md b/seed/README.md index 75232c8e6..b37d60984 100644 --- a/seed/README.md +++ b/seed/README.md @@ -960,6 +960,30 @@ keep their error 9 at the line that uses them. - `seed/omc/omc.om`, 11,131 lines and 379 functions. The committed `seed/out/omc` is not refreshed in this change; the integration owner reseeds once per batch. +## TileLab planner input refusal (TL907-01) + +Build the candidate compiler with `sh seed/omega-from-seed.sh`, then run +`sh seed/tilelab/gate.sh` from the repository root on an AArch64 Linux host. +The gate prints the compiler and planner binary SHA256 values before checking +the exact planner output and process status in `seed/tilelab/expected.txt`. + +Planner dimensions remain decimal integers in the documented range. Decimal +overflow is refused before unsigned multiplication or addition can wrap. +An optional REGS budget must be a nonempty decimal `ulong`: malformed, +over-capacity and overflowing input returns usage status 3 without a plan. +A valid budget too small for any configuration still returns refusal status 2. +The maximum representable `ulong` budget is valid; parse failure is tracked +separately rather than interpreting its value as an unlimited budget. + +The host gate includes the independent audit's overflowing dimensions and +malformed REGS input, empty and over-capacity REGS controls, and maximum-value +acceptance. `seed/tilelab/parser_mutant.om` removes the overflow guard or the +REGS status check independently. Each mutant must compile, return success +and emit a plan for the corresponding invalid audit input; compiler failures +or unrelated runtime failures are not accepted as control evidence. +These checks qualify host parsing only. They do not access or qualify a GPU, +alter the empirical scheduling model, or rewrite historical evidence. + ## How the checks stay honest - `check/a64check.c` and `check/audit.sh` are reference checks only. They call the repo's existing C diff --git a/seed/tilelab/cases.txt b/seed/tilelab/cases.txt index 07143c05c..d37b2e2cf 100644 --- a/seed/tilelab/cases.txt +++ b/seed/tilelab/cases.txt @@ -8,6 +8,14 @@ 1 0 5 5 1 16385 8 8 1 x 8 8 +1 18446744073709551617 8 8 +1 8 18446744073709551617 8 +1 8 8 18446744073709551617 +1 1024 1024 1024 extra +1 8 8 8 18446744073709551616 +1 8 8 8 999999999999999999999 +1 8 8 8 -1 +1 8 8 8 100x 1 8 8 2 2 0 diff --git a/seed/tilelab/expected.txt b/seed/tilelab/expected.txt index 8a5033431..3de8a307d 100644 --- a/seed/tilelab/expected.txt +++ b/seed/tilelab/expected.txt @@ -40,6 +40,30 @@ rc=2 $ tilelab 1 x 8 8 refused: dimension zero or above 16384 rc=2 +$ tilelab 1 18446744073709551617 8 8 +refused: dimension zero or above 16384 +rc=2 +$ tilelab 1 8 18446744073709551617 8 +refused: dimension zero or above 16384 +rc=2 +$ tilelab 1 8 8 18446744073709551617 +refused: dimension zero or above 16384 +rc=2 +$ tilelab 1 1024 1024 1024 extra +tilelab: usage: tilelab 1 M N K [REGS] | tilelab 2 [MUT] +rc=3 +$ tilelab 1 8 8 8 18446744073709551616 +tilelab: usage: tilelab 1 M N K [REGS] | tilelab 2 [MUT] +rc=3 +$ tilelab 1 8 8 8 999999999999999999999 +tilelab: usage: tilelab 1 M N K [REGS] | tilelab 2 [MUT] +rc=3 +$ tilelab 1 8 8 8 -1 +tilelab: usage: tilelab 1 M N K [REGS] | tilelab 2 [MUT] +rc=3 +$ tilelab 1 8 8 8 100x +tilelab: usage: tilelab 1 M N K [REGS] | tilelab 2 [MUT] +rc=3 $ tilelab 1 8 8 tilelab: usage: tilelab 1 M N K [REGS] | tilelab 2 [MUT] rc=3 diff --git a/seed/tilelab/gate.sh b/seed/tilelab/gate.sh index dcd0cbf2d..0bcb70d6f 100755 --- a/seed/tilelab/gate.sh +++ b/seed/tilelab/gate.sh @@ -53,4 +53,27 @@ over 2 seq_err_ppt || bad "mut 2 seq_err not over tolerance" over 2 tree_err_ppt || bad "mut 2 tree_err not over tolerance" over 3 seq_err_ppt && bad "mut 3 fails for a reason other than tree order" over 3 tree_err_ppt || bad "mut 3 tree_err not over tolerance" -printf 'PASS tilelab %s cases, 3/3 softmax mutants fail for the intended reason\n' "$(grep -c '^\$ ' "$B/observed.txt")" +# All representable unsigned budgets remain valid, including the former failure sentinel. +"$B/tilelab" 1 8 8 8 18446744073709551615 > "$B/max-regs.txt" || bad "maximum ulong REGS refused" +grep -q '^pick cfg ' "$B/max-regs.txt" || bad "maximum ulong REGS did not produce a plan" +if "$B/tilelab" 1 8 8 8 "" > "$B/empty-regs.txt"; then rc=0; else rc=$?; fi +[ "$rc" -eq 3 ] || bad "empty REGS returned $rc, wanted usage refusal 3" +printf 'tilelab: usage: tilelab 1 M N K [REGS] | tilelab 2 [MUT]\n' > "$B/usage.txt" +cmp -s "$B/empty-regs.txt" "$B/usage.txt" || bad "empty REGS emitted a plan or unexpected diagnostic" + +# The .om fixture removes one guard at a time; both controls must actually compile and +# produce a successful plan for the otherwise-refused audit input (not merely fail). +seed/out/omc < "$D/parser_mutant.om" > "$B/parser-mutant" || bad "omc refused parser_mutant.om" +chmod +x "$B/parser-mutant" +for mut in 1 2; do + "$B/parser-mutant" "$mut" < "$D/tilelab.om" > "$B/mutant-$mut.om" || bad "could not remove parser guard $mut" + seed/out/omc < "$B/mutant-$mut.om" > "$B/mutant-$mut" || bad "omc refused parser mutant $mut" + chmod +x "$B/mutant-$mut" + if [ "$mut" -eq 1 ]; then + "$B/mutant-$mut" 1 18446744073709551617 8 8 > "$B/mutant-$mut.txt" || bad "overflow control did not reach the planner" + else + "$B/mutant-$mut" 1 1024 1024 1024 extra > "$B/mutant-$mut.txt" || bad "REGS control did not reach the planner" + fi + grep -q '^pick cfg ' "$B/mutant-$mut.txt" || bad "parser control $mut did not restore invalid-input acceptance" +done +printf 'PASS tilelab %s cases, 3/3 softmax mutants fail for the intended reason, 2/2 parser guards challenged\n' "$(grep -c '^\$ ' "$B/observed.txt")" diff --git a/seed/tilelab/parser_mutant.om b/seed/tilelab/parser_mutant.om new file mode 100644 index 000000000..ed42a98ca --- /dev/null +++ b/seed/tilelab/parser_mutant.om @@ -0,0 +1,90 @@ +note SPDX-License-Identifier: Apache-2.0 +note Host-only negative control: remove exactly one parser guard from source on stdin. +note Mode 1 removes overflow refusal; mode 2 removes malformed-REGS propagation. +om2 +text over "if gt v div sub ulong 0xffffffffffffffff digit 10" +text status "if ne get argbad 0 0" +text repl "if false" +global source uchar 65536 +global arg uchar 1 +fn matches pos ulong mode uchar to bool +if eq mode 49 +if gt add pos len over len source +ret false +end +for j ulong len over +if ne get source add pos j get over j +ret false +end +end +ret true +end +if gt add pos len status len source +ret false +end +for j ulong len status +if ne get source add pos j get status j +ret false +end +end +ret true +end +fn emit off ulong n ulong to void +pos = ulong 0 +while lt pos n bound 65536 +r = write 1 source add off pos sub n pos +if le r 0 +exit 4 +end +pos = add pos ulong r +end +end +fn main to int +if ne argcnt 2 +ret 2 +end +r = argread 1 arg 0 1 +if ne r 1 +ret 2 +end +mode = get arg 0 +if and ne mode 49 ne mode 50 +ret 2 +end +n = ulong 0 +while lt n len source bound 65536 +r = read 0 source n sub len source n +if lt r 0 +ret 3 +end +if eq r 0 +break +end +n = add n ulong r +end +if eq n len source +ret 3 +end +found = ulong 0 +where = ulong 0 +for i ulong n +if matches i mode +found = add found 1 +where = i +end +end +if ne found 1 +ret 5 +end +size = len status +if eq mode 49 +size = len over +end +emit 0 where +r = write 1 repl 0 len repl +if ne r long len repl +ret 4 +end +emit add where size sub n add where size +ret 0 +end diff --git a/seed/tilelab/tilelab.om b/seed/tilelab/tilelab.om index e87f452c5..6bf37c067 100644 --- a/seed/tilelab/tilelab.om +++ b/seed/tilelab/tilelab.om @@ -18,6 +18,7 @@ om2 text msg "tilelab: usage: tilelab 1 M N K [REGS] | tilelab 2 [MUT]\nrefused: dimension zero or above 16384\nrefused: no configuration fits the register budget\ncfg rt=\n ct=\n wm=\n wn=\n band=\n bm=\n bn=\n regs=\n ctas=\n l2_bytes=\n cost_ns=\npick \nrefused: unknown mode\nsmx direct_plus100_e9=\n seq_err_ppt=\n tree_err_ppt=\n one_err_ppt=\n tol_ppt=\nsmx FAIL\nsmx OK\nmut=\nmeasure \n dram_bytes=\n" global dig uchar 32 global ab uchar 256 +global argbad uchar 1 global xs f64 32 global vs f64 32 global ms f64 64 @@ -60,17 +61,27 @@ end end fn argdec i ulong to ulong +note Keep parse status separate: every ulong, including the old failure sentinel, is valid decimal input. +put argbad 0 0 r = argread i ab 0 20 if lt r 1 +put argbad 0 1 ret 0xffffffffffffffff end v = ulong 0 for k ulong ulong r c = get ab k if or lt c 48 gt c 57 +put argbad 0 1 ret 0xffffffffffffffff end -v = add mul v 10 ulong sub c 48 +digit = ulong sub c 48 +note Refuse before either unsigned operation could wrap. +if gt v div sub ulong 0xffffffffffffffff digit 10 +put argbad 0 1 +ret 0xffffffffffffffff +end +v = add mul v 10 digit end ret v end @@ -403,6 +414,11 @@ end regs = ulong 100 if ge argcnt 6 regs = argdec 5 +if ne get argbad 0 0 +say 1 +newline +ret 3 +end end ret plan argdec 2 argdec 3 argdec 4 regs end