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

GitHub aien-dev/omega-mv#1007 (code only)

closed derived 09742f2ffc82c307 #1007

Imported from GitHub aien-dev/omega-mv#1007 (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 c77d3ddf24120be55b47a4593a91a395292d76c2 · Head c9b46de14971acca49bcd2a6929e8216fcdf32fe

Fetch it

A git bundle of the pull request's head, 9039 bytes.

curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/09742f2ffc82c307.bundle -o 09742f2ffc82c307.bundle
git fetch 09742f2ffc82c307.bundle refs/pull/1007/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
1007
c9b46de14971acca49bcd2a6929e8216fcdf32fe
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":1007,"url":"https://github.com/aien-dev/omega-mv/pull/1007","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:13Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 14e68dda1..21daf3429 100644
--- a/.crumb
+++ b/.crumb
@@ -47,8 +47,8 @@
           "purpose": "Directory calibration. Purpose not yet described by a human."
         },
         {
-          "digest": "c90443bd3d00414c2b75a7dd64703381ba635c8b0fa0f355f222fb5dd0840424",
-          "last_commit": "28513391a",
+          "digest": "2411b918662a0730eac6b2c124ba266f5341c816de4495ce5873aab0fa289c87",
+          "last_commit": "ee12b0d07",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
@@ -90,13 +90,13 @@
         },
         {
           "digest": "8fd8f63c5ded617704f24bfe5b9468dd31df789dda1435b1a7606fddb79a0276",
-          "last_commit": "d386c39c1",
+          "last_commit": "a1667d594",
           "name": "src",
           "purpose": "Directory src. Purpose not yet described by a human."
         },
         {
           "digest": "34e29668599c7233865ec37777b8c5f2461f46fda4df5c2c1b38800c4d6807f2",
-          "last_commit": "dfdb68122",
+          "last_commit": "b3346c2ee",
           "name": "tests",
           "purpose": "Directory tests. Purpose not yet described by a human."
         },
@@ -107,15 +107,15 @@
           "purpose": "Directory tools. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:f5e922e1f6f271ce0efd8f3509c3010c59e9b2ccba7f3c92e0fbb73d0da9f499",
-      "compiled_at": "2026-10-31T15:09:50Z",
+      "children_root": "sha256:696e2afef9b40339c6c7fac1022456d616e68fd084a7fc2d1a975f790e44f681",
+      "compiled_at": "2026-10-31T15:45:06Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:1323360fdc3eaa957973d109942a12bf5c868d4bb834561551f892c2b239fc6b",
+      "digest": "sha256:d85df95f4a43b13f2238b859dbfbca390543d2c10402031b80d0657c41224ca8",
       "evidence_files": 14989,
       "evidence_root": "sha256:90148c46bbc2cd096c96064273ac90d63efb54260fe285e18d84429cdf657830",
       "files": 23230,
-      "generated_at_commit": "dfdb68122d5b4a511e30d338773b79a1588d40d9",
-      "source_tree": "sha256:f5eb71e42cded63f7922352e55768bf1ec442271d444f444763b0abdc50fa3a6"
+      "generated_at_commit": "0f79d213774f8283a237f4e4d854b81a3959248e",
+      "source_tree": "sha256:1d58af9aa3fe407dc0ef9b9ebd70918f74eb06d2e1e4aa0881ef3e94d695dab4"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/.crumb b/docs/.crumb
index 34875326a..d8844f1f4 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -124,14 +124,14 @@
         }
       ],
       "children_root": "sha256:c81d43c0c392dfec2b6ed5b38ba95ea7c592782b283950e32b777e7b9cfd9d61",
-      "compiled_at": "2026-10-31T13:47:48Z",
+      "compiled_at": "2026-10-31T14:45:54Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:c90443bd3d00414c2b75a7dd64703381ba635c8b0fa0f355f222fb5dd0840424",
+      "digest": "sha256:2411b918662a0730eac6b2c124ba266f5341c816de4495ce5873aab0fa289c87",
       "evidence_files": 34,
       "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc",
       "files": 147,
-      "generated_at_commit": "a20577258e854e38709c7e5fcc64b287c5b04105",
-      "source_tree": "sha256:841cadf2cc7e7f1a2bdeea8ed2189aa16fcd469c59401f2bd30ad4a037c299a9"
+      "generated_at_commit": "ee12b0d07f68d9b876081954eafbd9d53ceab855",
+      "source_tree": "sha256:fb06b867fab2d98761afc209f64fdf7bf18c3357fbce4a18717a3e6573571ed8"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/X86-LINUX.md b/docs/X86-LINUX.md
index b3fc24645..a228e63c3 100644
--- a/docs/X86-LINUX.md
+++ b/docs/X86-LINUX.md
@@ -538,8 +538,21 @@ Coverage distinctions must accompany any result:
   Each run gets a 10-second CPU limit; only `exec-parent` raises
   `RLIMIT_NOFILE` to 65600 because it duplicates a descriptor to 65537.
   `pure-child` runs outside `execpure`, so it exits 43 at its first fd check;
-  its later arms are not exercised. `gate669.om` at the current revision is
-  not reviewed and stays NOT_RUN.
+  its later arms are not exercised. `gate669.om` (sha `1f0e7222`) runs as the
+  x86 parent in a repository-shaped scratch: its 21 compiled, executed or
+  copied repository inputs (security673 corpora and consumers, the six
+  `seed/authority` gates, `effect-ok`, `seed/trace/sha256-gate.om`) are
+  SHA-pinned, `seed/rung4/om4.bin` is a copy of the operator compiler, and
+  `seed/omc/omc.om`, the source the gate rebuilds twice and compares, is copied
+  with its sha recorded. Its host children `/usr/bin/objdump` (binutils
+  2.42-4ubuntu2.10 arm64) with its shared objects and loader, and `/bin/true`,
+  are pinned; any pin mismatch is BLOCKED. The full run and argument `3`
+  (#671 hostile ingress) must exit 0; arguments `0`, `1` and `2` are the gate's
+  own fail-closed controls (child exit 7, self-SIGKILL, 30-second deadline
+  overrun) and must exit 99. Only whole `elapsed_ns=<digits>` stdout lines, the
+  gate's wall-clock observations, are masked before the native/x86 comparison;
+  their count and every other byte and scratch file must match. Each arm has a
+  300-second deadline.
 
 The disassembly check linearly decodes code bytes, including unreachable code,
 while carving source-matched jump-protected literal spans. A mnemonic inventory
diff --git a/seed/omc/qualify-x86.py b/seed/omc/qualify-x86.py
index 7450a1ee6..9e5bf8970 100755
--- a/seed/omc/qualify-x86.py
+++ b/seed/omc/qualify-x86.py
@@ -391,7 +391,7 @@ def expanded_cases(files, record):
     for case in cases(files, record):
         plan = {} if case.operation in ("conductor", "bridge") else plan_case(ROOT, case.name.split(":", 1)[0], case.source)
         if plan:
-            for key in ("source", "stdin", "args", "expected_exit", "driver", "blocker"):
+            for key in ("source", "stdin", "args", "expected_exit", "driver", "blocker", "deadline"):
                 if key in plan and (case.operation == "differential" or key in ("driver", "blocker")):
                     setattr(case, key, plan[key])
             case.evidence.update(plan.get("evidence", {}))
@@ -403,7 +403,7 @@ def expanded_cases(files, record):
         if plan and case.operation == "differential":
             for variant in plan.get("variants", ()):
                 yield Case(case.name + ":" + variant["name"], case.source, variant["stdin"], tuple(variant["args"]),
-                           driver=case.driver, expected_exit=variant["expected_exit"],
+                           driver=case.driver, expected_exit=variant["expected_exit"], deadline=case.deadline,
                            evidence={**case.evidence, "stdin_bytes": len(variant["stdin"]),
                                      "stdin_sha256": digest(variant["stdin"]), "args": list(variant["args"]),
                                      "variant_of": case.name})
@@ -1938,6 +1938,16 @@ def main():
                 nofile = case.evidence.get("nofile", 256) if driver == "effect-scratch" else 256
                 arun = run([argv0, *args], case.stdin, native, child_timeout, cpu_seconds=cpu_seconds, nofile=nofile)
                 xrun = run([qemu, "-0", argv0, argv0, *args], case.stdin, emulated, child_timeout, cpu_seconds=cpu_seconds, nofile=nofile)
+                volatile = case.evidence.get("volatile_stdout_line") if driver == "effect-scratch" else None
+                if volatile:
+                    # Only whole lines PREFIX<digits> (wall-clock observations) are masked; the line count must match.
+                    pattern = re.compile(rb"(?m)^" + re.escape(volatile.encode()) + rb"[0-9]+$")
+                    counts = len(pattern.findall(arun[1])), len(pattern.findall(xrun[1]))
+                    case.evidence["volatile_stdout_lines_masked"] = list(counts)
+                    if counts[0] != counts[1]:
+                        raise Failure(f"runtime differential: {volatile} line count default={counts[0]} x86={counts[1]}")
+                    arun = (arun[0], pattern.sub(volatile.encode() + b"#", arun[1]), arun[2])
+                    xrun = (xrun[0], pattern.sub(volatile.encode() + b"#", xrun[1]), xrun[2])
                 diagnostics.update(default_run=result_details(arun), x86_run=result_details(xrun))
                 if "required_verdict" in case.evidence:
                     required = ("VERDICT " + case.evidence["required_verdict"]).encode()
diff --git a/seed/omc/x86_corpus_drivers.py b/seed/omc/x86_corpus_drivers.py
index e35aaf029..464b3b101 100755
--- a/seed/omc/x86_corpus_drivers.py
+++ b/seed/omc/x86_corpus_drivers.py
@@ -906,8 +906,52 @@ RENAMES_PACKETS = {
 }
 
 
-def host_child_mismatch():
-    for path, sha in HOST_CHILD_PINS.items():
+# gate669.om (sha 1f0e7222) execs two absolute host children: /bin/true through pkt-consumer.om and
+# dispatch-gate.om, and /usr/bin/objdump (Ubuntu binutils-aarch64-linux-gnu 2.42-4ubuntu2.10), the
+# independent decoder. objdump's shared objects and the loader are pinned with it because they hold the
+# decoder and its runtime (libc6 2.39-0ubuntu8.9); any other build refuses the row as BLOCKED.
+GATE669_HOST_PINS = {
+    "/bin/true": HOST_CHILD_PINS["/bin/true"],
+    "/usr/bin/objdump": "f2e917a5d118ebf5679b24740e20d30338308e7f3f0630527c469de452d5a250",
+    "/lib/aarch64-linux-gnu/libopcodes-2.42-system.so": "50dd8b3da6956c691363f04fcd3b3774083749cef2108f152747839f13adcef8",
+    "/lib/aarch64-linux-gnu/libbfd-2.42-system.so": "d9d9cc536c3a752ce0fd09e554ce2e31f98a5d42201984a608ed1e577e4ad0de",
+    "/lib/aarch64-linux-gnu/libctf.so.0": "be124ffe36abc3d3068092e5a05300aee0c7b9fa6f59acbb289aedae788ddbae",
+    "/lib/aarch64-linux-gnu/libsframe.so.1": "c56f579c7f266b5bfcbdc9d448d2a8f1a8223483b390d98e311526598bf29a5d",
+    "/lib/aarch64-linux-gnu/libz.so.1": "e3bc90ee8cce46778c2f46c2a3e580d3b930f7b455910f25ea400a0b797fb9dc",
+    "/lib/aarch64-linux-gnu/libzstd.so.1": "fe726238b170b83aa83bf1f8a79109b8b61b9eb45234304511d093bbe5f5fb20",
+    "/lib/aarch64-linux-gnu/libc.so.6": "0f1905dc27dbc6715875c70527bc8da846a10084c9c483e9d8ff76dce8d69d0e",
+    "/lib/ld-linux-aarch64.so.1": "390027e5f45f236bd1838bc54bf464c5ff01d260ab9f8b415ea8276641bce505",
+}
+REVIEWED_HOST_PIN_SETS = (HOST_CHILD_PINS, GATE669_HOST_PINS)
+# Every repository file gate669.om compiles, executes or reads, by its id in the gate's names table.
+# Each is copied into private scratch; effect-ok is the committed AArch64 image dispatch-gate execpures.
+GATE669_INPUTS = {
+    _S673 + "branch-corpus.om": "7d5ffd00736dbbb14407e4dbb86d34dc8395d93e371a72ee1981f4971ef60760",
+    _S673 + "branch-mutate.om": "b7637f58dd565166c246abf7a29c5986fb79f2832ae46bb86a6828cb2890b692",
+    _S673 + "branch-check.om": "9f1603358c9f558123f4b17f46f77824676edf3455e9f108a1fa119929c2fe59",
+    _S673 + "array-fill.om": "bcfb200a48291c27d4a700ea074e02616a881767c8838a52ad2dfd7b83b52d33",
+    _S673 + "oracle-corpus.om": "41118388d232dd6897bebf9b239f4174a2e5054cdd07a4753c4ce60bf7c022fa",
+    _S673 + "gate-child.om": "459a60da8e660ee1f433a9679bb41467074fda45997e5168e23e92ebad0d570b",
+    _S673 + "hostile-corpus.om": "c11698a1dd4c2373dbed7381fa62417bce9d370cc0c6471a3d7a14f6df0c4b05",
+    _S673 + "branch-forms.om": "afcffb8088b8d64388a2754fa290b44d7cc443561097a91e7e25b5b2682b6f11",
+    _S673 + "packet-corpus.om": "bbbdba6bade49926645b481b81c13465c4acacf7b02f3d73ae063805bfef30bf",
+    _S673 + "pkt-consumer.om": "7f0ea5e3a0064457d3f4d12e9e74e664b7f59a4ca90083b8132b779604ff5310",
+    _S673 + "renames-corpus.om": "9c44348b9cb258195be17e59318d90def4745327baed621b0fc46442f50ad883",
+    _S673 + "renames-consumer.om": "4fed8e605272e03994b565fd799136a96ab14239ccc8bc7526c819f3148e6c69",
+    _S673 + "path-consumer.om": "9bb5cd0e59d12af8b13de79db7a949b5278263b638309dfc6a86ab77c0382232",
+    "seed/authority/action-gate.om": "0ab62ba91d3599d6db89dc429afc1f3821f1dea3b2d8f225cbaa7c2eb01d7e81",
+    "seed/authority/delegate-gate.om": "e2e5661459ff55e62ed25eaa32936feba67c847245a779db171e0aebee80086f",
+    "seed/authority/reuse-gate.om": "37de7562021caf6439daea12f8039f882dfdb1caf18d74043a3f7d443ade40dd",
+    "seed/authority/store-gate.om": "cbbf1025c8e509e2b4b4d60751799d3a4fb63be629e5fecad4b092428b6a2189",
+    "seed/authority/dispatch-gate.om": "2c66da93749707e846f68c4d4d401718a2a7432ecc8b5b86deb66b162711a4ea",
+    "seed/authority/lock-gate.om": "d79579aa7693b5ae2f567a38129ff5d80ce5fe66da2ae13b82a6889f4b1db837",
+    "seed/authority/effect-ok": "4caebbb143d76413098649f9569eadc495aad8ca744a91ba7b29fe1bad4c7471",
+    "seed/trace/sha256-gate.om": "71abf0150e94163d139871ec9dc89579e6063f297341a33026d71464835aada5",
+}
+
+
+def host_child_mismatch(pins=HOST_CHILD_PINS):
+    for path, sha in pins.items():
         try:
             observed = digest(Path(path).read_bytes())
         except OSError as error:
@@ -1007,6 +1051,39 @@ def effect_plan(root, rel, sha):
             exit_authority=_S673 + "pure-child.om: read 3 must equal -1 or ret 43")
         plan.update(stdin=b"public-input", expected_exit=43)
         return plan
+    if sha == "1f0e7222556bcc5082be924aedb739427d18dd0f52327766181949a0c82697b0":
+        evidence.update(
+            effect_review="makedir build and build/security673-native in private scratch (refuses an existing one "
+                          "with 91); fopen/fchmod/fclose only of names in its fixed table or numbered files under "
+                          "build/security673-native; fork/execprog of seed/rung4/om4.bin (a copy of the operator "
+                          "compiler), its own numbered AArch64 builds, and the pinned absolute /usr/bin/objdump; "
+                          "grandchildren are pkt-consumer.om and dispatch-gate.om execs of pinned /bin/true, "
+                          "dispatch-gate.om execpure of the pinned effect-ok image, and lock-gate.om/dispatch-gate.om "
+                          "forks writing only build/authority-store; killpid only of an observed fork PID after its "
+                          "30-second deadline; waitpid/sleepns/monons for that deadline. No network or device words",
+            host_children=dict(GATE669_HOST_PINS),
+            effect_inputs=[{"path": p, "sha256": s, "mode": 0o700 if p.endswith("effect-ok") else 0o600}
+                           for p, s in GATE669_INPUTS.items()],
+            compiler_copy="seed/rung4/om4.bin",
+            subject_source="seed/omc/omc.om",
+            volatile_stdout_line="elapsed_ns=",
+            exit_authority=_S673 + "README.md and gate669.om main: full run exit0 after the GATE669 PASS line; "
+                                   "argument 3 (#671 hostile ingress) exit0; arguments 0, 1, 2 (child exit7, "
+                                   "self-SIGKILL, 45-second sleep past the 30-second deadline) must fail with 99")
+        mismatch = host_child_mismatch(GATE669_HOST_PINS)
+        if mismatch:
+            return {"blocker": "BLOCKED_ON pinned host child: " + mismatch, "evidence": evidence}
+        for path, pin in GATE669_INPUTS.items():
+            item = Path(root) / path
+            observed = digest(item.read_bytes()) if item.is_file() and not item.is_symlink() else "absent"
+            if observed != pin:
+                return {"blocker": f"BLOCKED_ON pinned gate669 input: {path} sha256 {observed} is not the pinned {pin}",
+                        "evidence": evidence}
+        plan.update(stdin=b"", args=(), expected_exit=0, deadline=300,
+                    variants=[{"name": "hostile671", "stdin": b"", "args": ("3",), "expected_exit": 0}] +
+                             [{"name": f"control{m}", "stdin": b"", "args": (str(m),), "expected_exit": 99}
+                              for m in range(3)])
+        return plan
     return {}
 
 
@@ -1102,9 +1179,12 @@ def prepare_case(root, work, driver, compiler, *, case=None):
     if driver == "effect-scratch":
         case = case or {}
         if "host_children" in case:
-            mismatch = host_child_mismatch()
-            if mismatch or case["host_children"] != HOST_CHILD_PINS:
-                raise ValueError("BLOCKED_ON pinned host child: " + (mismatch or "reviewed pin set changed"))
+            pins = case["host_children"]
+            if pins not in REVIEWED_HOST_PIN_SETS:
+                raise ValueError("BLOCKED_ON pinned host child: reviewed pin set changed")
+            mismatch = host_child_mismatch(pins)
+            if mismatch:
+                raise ValueError("BLOCKED_ON pinned host child: " + mismatch)
         for rel in case.get("effect_dirs", []):
             if Path(rel).is_absolute() or ".." in Path(rel).parts:
                 raise ValueError("unsafe effect scratch directory")
@@ -1117,6 +1197,24 @@ def prepare_case(root, work, driver, compiler, *, case=None):
             dest.parent.mkdir(parents=True, exist_ok=True)
             dest.write_bytes(_pinned(root, rel, item["sha256"]))
             dest.chmod(item["mode"])
+        if "compiler_copy" in case:
+            # The operator-selected compiler, trusted as the qualification's oracle input, as the gate's om4.bin.
+            dest = work/case["compiler_copy"]
+            if Path(case["compiler_copy"]).is_absolute() or ".." in Path(case["compiler_copy"]).parts:
+                raise ValueError("unsafe compiler copy path")
+            dest.parent.mkdir(parents=True, exist_ok=True)
+            shutil.copyfile(compiler, dest)
+            dest.chmod(0o700)
+            case["compiler_copy_sha256"] = digest(dest.read_bytes())
+        if "subject_source" in case:
+            # The source the gate qualifies (it rebuilds itself twice and compares); not an effect input.
+            rel = case["subject_source"]
+            if Path(rel).is_absolute() or ".." in Path(rel).parts:
+                raise ValueError("unsafe subject source path")
+            data = (root/rel).read_bytes()
+            (work/rel).parent.mkdir(parents=True, exist_ok=True)
+            (work/rel).write_bytes(data)
+            case["subject_source_sha256"] = digest(data)
         return ()
     resources = dict(RESOURCE_PINS)
     if driver == "security673-gate":