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#393 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/9e71cfea6485675d.bundle -o 9e71cfea6485675d.bundle git fetch 9e71cfea6485675d.bundle refs/pull/393/head
Provenance
github-import 1
aien-dev/omega-mv
393
d4eaa109664b8b6a39126b9cfe0138303d71c691
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":393,"url":"https://github.com/aien-dev/omega-mv/pull/393","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:42Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 5347bf4d4..649c5917f 100644 --- a/.crumb +++ b/.crumb @@ -87,14 +87,14 @@ "purpose": "Directory spec. Purpose not yet described by a human." }, { - "digest": "6cc8a37d1405d58a7e23506d19364e68b870a254c94c74e922cac923518c8ce8", - "last_commit": "2f93d2d0", + "digest": "45f2fb899d6f8abded15802e2f48225a059418447445a5e633ea6ad7ba8e4c0f", + "last_commit": "7035d390", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "9b685c0445e3dfb80ea33118ce501b38e78296e9e09aa8e284129fa75e7759c3", - "last_commit": "2f93d2d0", + "digest": "da44f2645649bb91f45ea053154f09ea8ed82aba1fe2402df1ca523df561014a", + "last_commit": "7035d390", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, @@ -105,15 +105,15 @@ "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:fcf5e929bf877830e27b401778779199ba18c15a8a9c282ece0147741731467a", - "compiled_at": "2026-10-10T08:08:05Z", + "children_root": "sha256:61c0acaf01af02fa323c01b7e0755d423fcc74d5150d1784dfeb168aabb75c5f", + "compiled_at": "2026-10-10T08:21:38Z", "compiler": "crumb-compile/1", - "digest": "sha256:d42aa2ff63fe9eb748b78efe111f14ba915ed89608dc2b59f731489481d0ffc0", + "digest": "sha256:03cd43503974802ebe78bec655c713070061adc26f7031484d5d7b1740aebcc5", "evidence_files": 6829, "evidence_root": "sha256:d430e46c9eac00396e5c58c2c8e60eb961500973312cc5eee25cf9d37e75bea2", "files": 9236, - "generated_at_commit": "2f93d2d05ba362934a51dcef7225c6729c281cdc", - "source_tree": "sha256:71880454345585ea168f82e9639edcd7491ea789b7b74b44ef07e9e5b12ebc73" + "generated_at_commit": "7035d390ef31204e937857d19e6eee1da0766478", + "source_tree": "sha256:907ea56439cbeaa2de4ec81ea538fba18d06e54e539054b66f11eca2849996fd" }, "owner_lane": "", "provenance": { diff --git a/src/.crumb b/src/.crumb index 4c75be2db..6b3e5aed5 100644 --- a/src/.crumb +++ b/src/.crumb @@ -115,8 +115,8 @@ "purpose": "Directory src/language. Purpose not yet described by a human." }, { - "digest": "5b7ed01407c21b01b66bb4420c3970d5be863fc025cdd8a676ff82876bad591b", - "last_commit": "2f93d2d0", + "digest": "fd9a3316ace41bf54816c650b3253a920f879e456317b7d6f8287fbaf29fe7f7", + "last_commit": "7035d390", "name": "osh", "purpose": "osh (Omega-native shell, arch#158) lexer unit: layout list, generator, osh_lex.osc, C reference " }, @@ -175,15 +175,15 @@ "purpose": "Directory src/visor. Purpose not yet described by a human." } ], - "children_root": "sha256:99e5a0ca5639d0470c4efd7030f2f6d389cedb152afe767da29c4219b97c107b", - "compiled_at": "2026-10-10T08:08:05Z", + "children_root": "sha256:0f07be3afaec3200bfb522d839746ff2727b081c5678faf6e81070f163bd1877", + "compiled_at": "2026-10-10T08:21:38Z", "compiler": "crumb-compile/1", - "digest": "sha256:6cc8a37d1405d58a7e23506d19364e68b870a254c94c74e922cac923518c8ce8", + "digest": "sha256:45f2fb899d6f8abded15802e2f48225a059418447445a5e633ea6ad7ba8e4c0f", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 445, - "generated_at_commit": "2f93d2d05ba362934a51dcef7225c6729c281cdc", - "source_tree": "sha256:b38482563d404a2e1f4182842dac10cac43f8b9077780e079b2907f7d7b0f630" + "generated_at_commit": "7035d390ef31204e937857d19e6eee1da0766478", + "source_tree": "sha256:186897a83d2a94653aff1798ac7e6c4460a3a23083f80518f4cd04b88ec7a056" }, "owner_lane": "", "provenance": { diff --git a/src/osh/.crumb b/src/osh/.crumb index 43a2ba03e..af46d97ff 100644 --- a/src/osh/.crumb +++ b/src/osh/.crumb @@ -4,20 +4,20 @@ "children": [ { "digest": "d057727aa808c45ef47c25b8c463fa019dec4fe8b34510e4c311687aadcc92df", - "last_commit": "2f93d2d0", + "last_commit": "462f9f32", "name": "host", "purpose": "osh Linux host: execution service (request decoder, resolution, builtins, redirections, pipeline" } ], "children_root": "sha256:dbc2cd0ef8a9f4f7a95465a7ae9dec9b2156648abb768d43d425fc3c4e775843", - "compiled_at": "2026-10-10T08:08:05Z", + "compiled_at": "2026-10-10T08:21:38Z", "compiler": "crumb-compile/1", - "digest": "sha256:5b7ed01407c21b01b66bb4420c3970d5be863fc025cdd8a676ff82876bad591b", + "digest": "sha256:fd9a3316ace41bf54816c650b3253a920f879e456317b7d6f8287fbaf29fe7f7", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 31, - "generated_at_commit": "2f93d2d05ba362934a51dcef7225c6729c281cdc", - "source_tree": "sha256:69e0bf997046ac181c8cc85a3ed96254229ddec91c5f1d1284e87f446b354825" + "generated_at_commit": "7035d390ef31204e937857d19e6eee1da0766478", + "source_tree": "sha256:3a88a5f121ffabcbb4c9cb8b37046a24edf351134a702836ec6557e9d87daea7" } }, "name": "osh", diff --git a/src/osh/osh_expand.osc b/src/osh/osh_expand.osc index a14f59241..6890c78f5 100644 --- a/src/osh/osh_expand.osc +++ b/src/osh/osh_expand.osc @@ -20,7 +20,7 @@ // 209 CAP_FIELDS 210 CAP_OUT 211 CAP_VALUE 212 CAP_VARREQ 243 AMBIGUOUS_REDIRECT 244 VALUE_NUL 245 VALUE_GLOB // 239 UNSUPPORTED_BUILTIN (argv[0] after expansion is set eval exec . source trap shift read return break continue // local readonly alias wait : declare typeset let command type umask hash ulimit getopts jobs pushd popd dirs -// history unalias fg bg builtin enable shopt mapfile times caller disown suspend logout bind help compgen complete +// history unalias fg bg builtin enable shopt mapfile readarray times caller disown suspend logout bind help compgen complete // fc compopt; // names over 8 bytes such as readarray are not caught) 213 WORKSPACE_SIZE 214 ABI_MAGIC 215 ABI_VERSION 216 ABI_LENGTH // 217 ABI_RESERVED (also: the parser has not completed the list, or an expander cell is corrupt) @@ -522,6 +522,13 @@ fn cmd_end(w: cells) -> u64 { if w[cb] > 0 { let b: u64 = classify(pack8o(w, w[cb + 4], w[cb + 5])); if b == 99 { return fail(w, 239, w[44]); } + // readarray is the one bash builtin longer than 8 bytes, so pack8o cannot carry it: matched here (#344) + let o9: u64 = w[cb + 4]; + if w[cb + 5] == 9 { + if pack8o(w, o9, 8) == 0x7265616461727261 { + if w[3264 + o9 + 8] == 0x79 { return fail(w, 239, w[44]); } + } + } w[cb + 3] = b; } let pb: u64 = 832 + w[30] * 4; diff --git a/src/osh/osh_expand.osc.in b/src/osh/osh_expand.osc.in index 9c7186133..8e2db6f5b 100644 --- a/src/osh/osh_expand.osc.in +++ b/src/osh/osh_expand.osc.in @@ -19,7 +19,7 @@ // 209 CAP_FIELDS 210 CAP_OUT 211 CAP_VALUE 212 CAP_VARREQ 243 AMBIGUOUS_REDIRECT 244 VALUE_NUL 245 VALUE_GLOB // 239 UNSUPPORTED_BUILTIN (argv[0] after expansion is set eval exec . source trap shift read return break continue // local readonly alias wait : declare typeset let command type umask hash ulimit getopts jobs pushd popd dirs -// history unalias fg bg builtin enable shopt mapfile times caller disown suspend logout bind help compgen complete +// history unalias fg bg builtin enable shopt mapfile readarray times caller disown suspend logout bind help compgen complete // fc compopt; // names over 8 bytes such as readarray are not caught) 213 WORKSPACE_SIZE 214 ABI_MAGIC 215 ABI_VERSION 216 ABI_LENGTH // 217 ABI_RESERVED (also: the parser has not completed the list, or an expander cell is corrupt) @@ -521,6 +521,13 @@ fn cmd_end(w: cells) -> u64 { if w[cb] > 0 { let b: u64 = classify(pack8o(w, w[cb + 4], w[cb + 5])); if b == 99 { return fail(w, 239, w[@EX_A0@]); } + // readarray is the one bash builtin longer than 8 bytes, so pack8o cannot carry it: matched here (#344) + let o9: u64 = w[cb + 4]; + if w[cb + 5] == 9 { + if pack8o(w, o9, 8) == 0x7265616461727261 { + if w[@OUT@ + o9 + 8] == 0x79 { return fail(w, 239, w[@EX_A0@]); } + } + } w[cb + 3] = b; } let pb: u64 = @PIPES@ + w[@EX_PIPE@] * 4; diff --git a/src/osh/osh_expand_ref.c b/src/osh/osh_expand_ref.c index b3679a082..c6f519e3e 100644 --- a/src/osh/osh_expand_ref.c +++ b/src/osh/osh_expand_ref.c @@ -364,6 +364,8 @@ void osh_xr_pipe(const uint8_t *in, size_t n, const OshRefLex *lx, const OshRefP if (!c.status && c.blk[0] > 0) { uint64_t a0o = c.blk[4], a0l = c.blk[5]; int b = classify(pack_name(out->out + a0o, a0l)); + /* readarray: the one bash builtin longer than 8 bytes; pack_name cannot carry it (mirrors cmd_end, #344) */ + if (a0l == 9 && memcmp(out->out + a0o, "readarray", 9) == 0) b = 99; if (b == 99) { c.woff = c.a0off; err(&c, 239); } else c.blk[3] = (uint64_t)b; } diff --git a/tests/.crumb b/tests/.crumb index b9781e081..6ad77857c 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": "48d32158b5b7f5ae704d3a462d51dad4c4ab5e6b94e8118a7cd8e59f4fa21be2", - "last_commit": "2f93d2d0", + "digest": "c15fd1a221b663f3ba62123287cc252988c25f586ed9fd8748b69fdc2745d30b", + "last_commit": "7035d390", "name": "osh", "purpose": "osh lexer host driver, vendored aien-protocols PR#16 draft vectors (5ae5292)" }, @@ -289,15 +289,15 @@ "purpose": "Directory tests/visor. Purpose not yet described by a human." } ], - "children_root": "sha256:446d54c91485acc65c5927c911cadff768ebe250aa357c3dc9ebcdcb078e9d3d", - "compiled_at": "2026-10-10T08:08:05Z", + "children_root": "sha256:eb874c9c1a8de48624a30db539e8ac9ec6a433e1cd0ec7de1ed9a63a528544cd", + "compiled_at": "2026-10-10T08:21:38Z", "compiler": "crumb-compile/1", - "digest": "sha256:9b685c0445e3dfb80ea33118ce501b38e78296e9e09aa8e284129fa75e7759c3", + "digest": "sha256:da44f2645649bb91f45ea053154f09ea8ed82aba1fe2402df1ca523df561014a", "evidence_files": 11, "evidence_root": "sha256:d5c1bceb4d57ef0eb42797c58801b5926509711614c3e38bb7105b6efa3942f2", "files": 948, - "generated_at_commit": "2f93d2d05ba362934a51dcef7225c6729c281cdc", - "source_tree": "sha256:d1793ce9716df5dc2a33985098584ad53ce8794c2e4ad8c125405e9bf056c7fb" + "generated_at_commit": "7035d390ef31204e937857d19e6eee1da0766478", + "source_tree": "sha256:a951746dcd511135a6dda48860d41d21b86c3b0459a4f2b720611dcb5709105e" }, "owner_lane": "", "provenance": { diff --git a/tests/osh/.crumb b/tests/osh/.crumb index a4d4a7cf8..4e600cf7b 100644 --- a/tests/osh/.crumb +++ b/tests/osh/.crumb @@ -10,7 +10,7 @@ }, { "digest": "d0f42501a21a18f494990b88f370ef66e89265cde98d55a6ab6a93880d7ec9fb", - "last_commit": "2f93d2d0", + "last_commit": "462f9f32", "name": "host", "purpose": "tests for the osh Linux host adapter execution service (hand-built request records, helper-mode " }, @@ -22,14 +22,14 @@ } ], "children_root": "sha256:241feb8a2f188c8542457a158587a5382360916abaf958e03884644df77e573f", - "compiled_at": "2026-10-10T08:08:05Z", + "compiled_at": "2026-10-10T08:21:38Z", "compiler": "crumb-compile/1", - "digest": "sha256:48d32158b5b7f5ae704d3a462d51dad4c4ab5e6b94e8118a7cd8e59f4fa21be2", + "digest": "sha256:c15fd1a221b663f3ba62123287cc252988c25f586ed9fd8748b69fdc2745d30b", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 93, - "generated_at_commit": "2f93d2d05ba362934a51dcef7225c6729c281cdc", - "source_tree": "sha256:3cc71e1cbdeec81e3a15989fe1a2cef93684efa323772e07ad278eed3b0c58ce" + "generated_at_commit": "7035d390ef31204e937857d19e6eee1da0766478", + "source_tree": "sha256:82620760e44b070c8fdafdfd4ba37d388ff5b30fc0bf6a2b633a904f9dfb2b24" } }, "name": "osh-tests", diff --git a/tests/osh/test_osh_expand.c b/tests/osh/test_osh_expand.c index 76398caa8..0ffeb9356 100644 --- a/tests/osh/test_osh_expand.c +++ b/tests/osh/test_osh_expand.c @@ -761,6 +761,8 @@ static const Case CASES[] = { {"unsupported in second command", "a | exec b\n", "", "refuse 239 UNSUPPORTED_BUILTIN off=4"}, {"each unsupported name", "trap\n", "", "refuse 239 UNSUPPORTED_BUILTIN off=0"}, {"read is unsupported", "read x\n", "", "refuse 239 UNSUPPORTED_BUILTIN off=0"}, + {"readarray is unsupported (9-byte name, #344)", "readarray x\n", "", "refuse 239 UNSUPPORTED_BUILTIN off=0"}, + {"readarray via variable", "$R x\n", "R=readarray", "refuse 239 UNSUPPORTED_BUILTIN off=0"}, {"continue return break local readonly alias wait", "wait\n", "", "refuse 239 UNSUPPORTED_BUILTIN off=0"}, {"export NAME=value is not split", "export A=$Y B\n", "Y=a b", "ok | P0 conn=1 | C0 b=4 argv=\"export\",\"A=a b\",\"B\" as= rd="}, {"export value keeps glob bytes", "export A=$Y\n", "Y=*", "ok | P0 conn=1 | C0 b=4 argv=\"export\",\"A=*\" as= rd="},