Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/patches/4d4e48caa0655a00 # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/omega-mv#501 (code only) closed derived `4d4e48caa0655a00` #501 Imported from GitHub aien-dev/omega-mv#501 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `f4a9849fb127f8d2d664dfc56890752ad180c507` · Head `5c769ac51cc8da1a83056161ce27a7a814a49cec` ### Fetch it A git bundle of the pull request's head, 4281 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/4d4e48caa0655a00.bundle -o 4d4e48caa0655a00.bundle git fetch 4d4e48caa0655a00.bundle refs/pull/501/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 501 5c769ac51cc8da1a83056161ce27a7a814a49cec ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":501,"url":"https://github.com/aien-dev/omega-mv/pull/501","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:05Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index 81f377ee2..7366545dd 100644 --- a/.crumb +++ b/.crumb @@ -83,8 +83,8 @@ "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "4eb9d4d76234448c0ed691f0aeb9c90d785f8a47b1b1291d728bbe3e1509dc10", - "last_commit": "88e24bdd", + "digest": "76a54670c39315746400de02d121b6b98a66a9023bef40b6bf082f67b54172b2", + "last_commit": "fa7f5dc8", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, @@ -95,15 +95,15 @@ "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:e1a8c008214ad5dbc33a3e184d7e882dc56d1d50f9bd14c58f8773992961557e", - "compiled_at": "2026-10-16T19:04:20Z", + "children_root": "sha256:e3bce88c3d093bb088de001231471ac77311cf7107bc0e599df50c1647035973", + "compiled_at": "2026-10-18T14:42:04Z", "compiler": "crumb-compile/1", - "digest": "sha256:32086cfe6b319e0c0229bec39553d1b32f7460aa660ad888d5eb5990522e705a", + "digest": "sha256:843272858f59a8e240b72be46c469f97a429b3359f05035163a1a5354454a025", "evidence_files": 11127, "evidence_root": "sha256:4528085ec1661c442b64fb5dc8def65067ea2620ff88e42bcf52d58b7642ea6e", "files": 14109, - "generated_at_commit": "88e24bdd57b27817d030d0ad95f62c3f3eacf426", - "source_tree": "sha256:e01c9caa38757306582443fe69f52cb061c3d27250f8ad0b9f4b4f43b009dc14" + "generated_at_commit": "fa7f5dc8ce27d24377b4075fc50874eb363e5a76", + "source_tree": "sha256:c458426c01fa18c56fe98384d9faa5dda31bb8d834535b6de50e790fea91470c" }, "owner_lane": "", "provenance": { diff --git a/tests/.crumb b/tests/.crumb index bd5535a8b..65c2cc32c 100644 --- a/tests/.crumb +++ b/tests/.crumb @@ -199,8 +199,8 @@ "purpose": "Simulated M16 driver for numeric resource-lifecycle tests. No device execution or numeric parity" }, { - "digest": "f3085ce1facdcdb22bfedc85de659dd5e512aa7b59cd8103666c24a4456681c3", - "last_commit": "6d8d92ad", + "digest": "90f911fdc77a5445da01137b0f6c16a42e4f0ac8b8e78eeb8c0210597eeb3767", + "last_commit": "36f0f3a4", "name": "osh", "purpose": "osh lexer host driver, vendored aien-protocols PR#16 draft vectors (5ae5292)" }, @@ -295,15 +295,15 @@ "purpose": "Directory tests/visor. Purpose not yet described by a human." } ], - "children_root": "sha256:ddc3618190458bc5073e3bee67ffccc68a2ee9f065f2cb0d86545386a29fddf8", - "compiled_at": "2026-10-16T19:04:20Z", + "children_root": "sha256:ca64d7b2d0acaebfe84ae8f3f569f7a0ed9326ccf36cef291aa7b17060706ecf", + "compiled_at": "2026-10-18T14:42:04Z", "compiler": "crumb-compile/1", - "digest": "sha256:4eb9d4d76234448c0ed691f0aeb9c90d785f8a47b1b1291d728bbe3e1509dc10", + "digest": "sha256:76a54670c39315746400de02d121b6b98a66a9023bef40b6bf082f67b54172b2", "evidence_files": 16, "evidence_root": "sha256:96d08097822ad95f4e562c19e0ba5df5a035774c48632f1832912c40a27bd27a", "files": 1270, - "generated_at_commit": "88e24bdd57b27817d030d0ad95f62c3f3eacf426", - "source_tree": "sha256:e6c4f0021d383ba2e59da0d85d06a0b98170f6d188289c891b5745200548e6fc" + "generated_at_commit": "fa7f5dc8ce27d24377b4075fc50874eb363e5a76", + "source_tree": "sha256:45c7109fbe077e98fc8f5134ef5e426a5b0b767b91fd9894595d845bd44a2748" }, "owner_lane": "", "provenance": { diff --git a/tests/osh/.crumb b/tests/osh/.crumb index 07209abd9..e23403491 100644 --- a/tests/osh/.crumb +++ b/tests/osh/.crumb @@ -4,7 +4,7 @@ "children": [ { "digest": "d16052a41951da04f9d5581286bf1b523c4fd4a8b22b2f5a9f77ab724f000c38", - "last_commit": "181e2ea8", + "last_commit": "6d8d92ad", "name": "e2e", "purpose": "end-to-end tests of the osh program: argprint helper plus a runner comparing native and OSH_INTE" }, @@ -22,14 +22,14 @@ } ], "children_root": "sha256:0c30d758ea0a085e950c5df69c53069c317df4141043e14a83e19247106399f3", - "compiled_at": "2026-10-10T08:29:30Z", + "compiled_at": "2026-10-16T08:09:18Z", "compiler": "crumb-compile/1", - "digest": "sha256:f3085ce1facdcdb22bfedc85de659dd5e512aa7b59cd8103666c24a4456681c3", + "digest": "sha256:90f911fdc77a5445da01137b0f6c16a42e4f0ac8b8e78eeb8c0210597eeb3767", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 93, - "generated_at_commit": "181e2ea8961e1067efc0337b6b4dddc9f19d6947", - "source_tree": "sha256:67f4c363f1a849cf10cbae3aa94fb4675c59d42a075e6a260cc264bebc52319d" + "generated_at_commit": "670624f98fa9c10d8bec6ee50a51e22180ba2307", + "source_tree": "sha256:bc0c2805bc13962c3de63e31e132141aa4bc56e3004565d9efb4b2c2893a2c7e" } }, "name": "osh-tests", diff --git a/tests/osh/vectors/README.md b/tests/osh/vectors/README.md index 480c5d82e..2bbafc34e 100644 --- a/tests/osh/vectors/README.md +++ b/tests/osh/vectors/README.md @@ -30,7 +30,7 @@ v016 to v020 were added in omega PR #336 for the codes 236 `GROUP`, 246 `BRACE_E ## Bash-verified vectors (omega PR #336 review fixes) -`bash_vectors.tsv` holds 52 lexer vectors whose expectations come from real GNU bash 5.2, not from the reference tokenizer. Columns (TAB separated): id, input, expect, equiv. `bash_verify.sh` runs both the input and its continuation-free equivalent (or, when equiv is `-`, the script rendered from the expected tokens) under bash and requires identical transcripts (stdout, stderr, files written); the result is recorded in `bash_verified.log` (first line: the bash version, 5.2.21 when written). `make osh-bash-verify` runs it. The lexer driver then checks the lexer against the same expect column and also lexes the equivalent script, so the OSC lexer, the C reference and bash are three separate oracles for backslash-newline handling. +`bash_vectors.tsv` holds 60 lexer vectors whose expectations come from real GNU bash 5.2, not from the reference tokenizer. Columns (TAB separated): id, input, expect, equiv. `bash_verify.sh` runs both the input and its continuation-free equivalent (or, when equiv is `-`, the script rendered from the expected tokens) under bash and requires identical transcripts (stdout, stderr, files written); the result is recorded in `bash_verified.log` (first line: the bash version and path, 5.2.21 when written; second line: the pinned environment, since the script re-runs itself under `env -i` with `LC_ALL=C`, `TZ=UTC` and `PATH=/usr/bin:/bin`). `make osh-bash-verify` runs it. The lexer driver then checks the lexer against the same expect column and also lexes the equivalent script, so the OSC lexer, the C reference and bash are three separate oracles for backslash-newline handling. Findings pinned here: backslash-newline is removed before the next byte is classified, mid-operator (`|\|` is `||`, `a>\>f` is `>>`, `2\>f` redirects fd 2, `1\2>f` is fd 12), after `$` (`$\$`, `"$\(`, `$\{`), in tilde and brace detection, inside double quotes, and not inside single quotes. A backslash in a comment is literal: `# c\e b` runs `e b`. `x+=1` is an append assignment and `$_` the last-argument parameter; both are refused (248 `APPEND_ASSIGN`, 225 `SPECIAL_PARAM`). diff --git a/tests/osh/vectors/bash_verified.log b/tests/osh/vectors/bash_verified.log index 4fcb019fc..67569ad2f 100644 --- a/tests/osh/vectors/bash_verified.log +++ b/tests/osh/vectors/bash_verified.log @@ -1,4 +1,5 @@ -bash: GNU bash, version 5.2.21(1)-release (aarch64-unknown-linux-gnu) +bash: GNU bash, version 5.2.21(1)-release (aarch64-unknown-linux-gnu) (/usr/bin/bash) +env: env -i, LC_ALL=C TZ=UTC PATH=/usr/bin:/bin file: bash_vectors.tsv c01 same out:[a][b]|errmark|out:[x=]|errmark c02 same out:[a]|errmark|out:[x=]|errmark diff --git a/tests/osh/vectors/bash_verify.sh b/tests/osh/vectors/bash_verify.sh index ff2ce60ec..f60cf5da1 100755 --- a/tests/osh/vectors/bash_verify.sh +++ b/tests/osh/vectors/bash_verify.sh @@ -4,6 +4,11 @@ # script rendered from the expected tokens when the equiv column is "-") and requires identical transcripts # (stdout, stderr, and the files written). Usage: bash_verify.sh [bash_vectors.tsv] Writes bash_verified.log. set -u +# omega#344: pin the reference environment (R1 acceptance record, aien-architecture#161 section 3 item 1): +# re-run under env -i with a fixed locale, time zone and PATH, and record them in the log. +if [ "${BASH_VERIFY_PINNED:-}" != 1 ]; then + exec env -i BASH_VERIFY_PINNED=1 PATH=/usr/bin:/bin LC_ALL=C TZ=UTC TMPDIR="${TMPDIR:-/tmp}" bash "$0" "$@" +fi here=$(cd "$(dirname "$0")" && pwd) tsv=${1:-$here/bash_vectors.tsv} ver=$(bash --version | head -1) @@ -42,7 +47,7 @@ render() { # expect tokens -> script } n=0; bad=0 log="$here/bash_verified.log" -{ echo "bash: $ver"; echo "file: bash_vectors.tsv"; } > "$log" +{ echo "bash: $ver ($(command -v bash))"; echo "env: env -i, LC_ALL=C TZ=UTC PATH=/usr/bin:/bin"; echo "file: bash_vectors.tsv"; } > "$log" while IFS=$'\t' read -r id inp exp eq; do case $id in c*) ;; *) continue ;; esac n=$((n + 1)) ```