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

docs: teach seeded Omega with an explicit identity boundary

merged 0b57b68d0a1eace9 #684 · opened 2026-10-24 09:01 UTC · closed 2026-11-02 00:28 UTC · merged 2026-11-02 00:28 UTC

Imported from GitHub aien-dev/omega-mv#684, by drakestapleton

Base 62d1d0d668f897386a0e311374f8dbcc5c32dde8 · Head b2f1a5fc32a288818b98298b88a71f8c8e7f556e

Merged on GitHub as f9a9a40b598928fc6f92d7ffa6ff386941182663; reachable from main c7acd2607139eedfabeac16b6042cefe8ede431f (observed 2026-11-18T16:35:47Z)

drakestapleton wrote on 2026-10-24 09:01 UTC

Verification

Static checks PASS: 24 local/pinned file links; three shell snippets pass sh -n; worked fixture matches the pinned source; 11 named compiler functions exist; compiler blob SHA-256 matches the documented historical pin; git diff --check passes. Parent independently reviewed the documentation and scope.

AArch64 compiler reconstruction/execution, rename experiment, fresh-checkout replay and repository judge gates are NOT_RUN. This is a documentation candidate, not native qualification. Do not close #619 from this partial delivery.

Changes

Add README teaching entry and docs/TEACH_OMEGA.md following the existing seeded forward-call fixture, consistent rename, and invalid-assignment refusal. Pin teaching compiler 29b12760f4c962606411d6bf25032aedef063301 rather than describing a moving branch as qualified.

Explain seed ancestry, exact expected exits, offline CPU-only reproduction and dependencies. Separate native direct ELF emission from the legacy semantic identity/realization/receipt machinery; the tutorial does not claim that missing integration exists. Correct the front page's unrestricted semantic-equivalence claim. Update CONTRIBUTORS as that file requires.

Reuse and credit existing docs/seed-birth-walkthrough work without overwriting it. No runtime, compiler, test-policy, crumb, historical receipt or deployment change.

Refs #619. Required AIEN Verification and other repository gates remain in force. Candidate 4bc0bfdefed99e84f49422db38aa184d25ada841, tree a1e301b325a7e59080bd98d6657cc8a3220fd524.

drakestapleton wrote on 2026-10-24 09:14 UTC

Generated metadata repaired at d813f5a2a1fba657d4c02ec2c506ef0e473dd90c using the exact pinned crumb compiler built from source with installed GCC. Initial verify reproduced docs/root STALE (2/157); canonical compile changed only generated fields; verify then passed 157/157 and repeat compile rewrote 0. Evidence roots unchanged.

Hosted rerun confirms crumb check now passes and evidence-immutable/CodeQL checks succeed. AIEN Verification stops at missing exact-head signed Spark bundle (NOT_RUN, exit 2), not a documentation or runtime assertion failure. No protection bypass, workflow weakening or fabricated bundle. Draft remains pending qualification/fresh native tutorial replay.

Fetch it

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

curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/0b57b68d0a1eace9.bundle -o 0b57b68d0a1eace9.bundle
git fetch 0b57b68d0a1eace9.bundle refs/pull/684/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
684
b2f1a5fc32a288818b98298b88a71f8c8e7f556e
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":684,"url":"https://github.com/aien-dev/omega-mv/pull/684","export_sha256":"7319147b350ad908bf0b731068ec3be7b8dee848041dc862f71455e8e4680140","imported_utc":"2026-11-18T16:35:47Z"}

Changes

diff --git a/.crumb b/.crumb
index f3e51fe46..406bca88f 100644
--- a/.crumb
+++ b/.crumb
@@ -47,8 +47,8 @@
           "purpose": "Directory calibration. Purpose not yet described by a human."
         },
         {
-          "digest": "7ef7796693f23ad68d9a5bcaaee0f635018f4371139a040ba202d4ce7083ede8",
-          "last_commit": "dd39bf71f",
+          "digest": "f2e0f691ab7a4a80acecc1cf0dd4bd7e3212bc4f9341ef6604ea7b089f42b7b2",
+          "last_commit": "caaa96055",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
@@ -72,38 +72,38 @@
         },
         {
           "digest": "f765ad87fdddd9b47f690b07298c951a0f7e7675dc5de4ffe44e33a0c14b1986",
-          "last_commit": "a8a6a3d3c",
+          "last_commit": "62d1d0d66",
           "name": "spec",
           "purpose": "Directory spec. Purpose not yet described by a human."
         },
         {
           "digest": "aaf5acb82fd4c720cd60c85fd6087f636c72a98e2f3740c9295dcfa525dc64d7",
-          "last_commit": "bf54b19fa",
+          "last_commit": "089e5b053",
           "name": "src",
           "purpose": "Directory src. Purpose not yet described by a human."
         },
         {
           "digest": "5395ff8ff9afceebe8e453788f80a3064b831513cc4cb92fd55869115e06b874",
-          "last_commit": "a8a6a3d3c",
+          "last_commit": "62d1d0d66",
           "name": "tests",
           "purpose": "Directory tests. Purpose not yet described by a human."
         },
         {
           "digest": "308db0e6cf45c0a48f01f5f5f228450f191389de68006915b9ecf9c65b9a2e29",
-          "last_commit": "a8a6a3d3c",
+          "last_commit": "62d1d0d66",
           "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:eb02dd44f5e43bb21e5b5d7edc7a6443eed4f135590e27b997b74ea2c35d7852",
+      "compiled_at": "2026-10-30T16:34:31Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:904fca8c0e0cf3e3a5e5adb73393e01c7018b920bb542d289904240f70e400d6",
+      "digest": "sha256:1a034fb5e46787d5e45401ef85e43770a855fca1405211589f65f6206eb77a74",
       "evidence_files": 12622,
       "evidence_root": "sha256:b1a08e2ce56e6feada0d8a31f06fbd7adee57adc1c1ad8dec220293ee5d439f9",
-      "files": 17849,
-      "generated_at_commit": "52a82f392fa513ebbc2d9d719a0f14c385289b06",
-      "source_tree": "sha256:75458da6553a0ee5ea2af95f46afb658e8a3f6e53cca6e3b4b9874035f78c2ed"
+      "files": 17850,
+      "generated_at_commit": "caaa96055dd05ff6429fb42e9e007765c92c4f16",
+      "source_tree": "sha256:494b3dc11cf810712c4f957fb7c7f992cb56e82607146a190401a88b745c67e2"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index dda6d20b5..3dff2bfb2 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -5,6 +5,7 @@ Every model below did real work. A model is listed only for work it did. The orc
 
 | Model | What it did |
 |---|---|
+| Codex | Seeded-program teaching guide and explicit legacy identity/receipt boundary (issue #619); static documentation checks only |
 | Grok 4.7 | Merged current main (`089e5b053`) into #936. Conflicts were generated crumbs (`.crumb`, `tests/.crumb`); regenerated them with the crumb.lock tool (`d0f0b95d`). |
 | Grok 4.7 | Restored the offline DAG evaluator's forbidden-symbol guard from #590 (`3bd56731`): generation store, authority, world, and calls that map or run code. |
 | Grok 4.7 | Imported the offline DAG evaluator `tools/dagsim` verbatim from closed PR #590 (`3bd56731`) and wired a host `test-dagsim` target. Analytical fixture checks only. No validated cost claim. |
diff --git a/README.md b/README.md
index 1cfed2960..28d900db0 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,7 @@ Papers: [Omega](https://doi.org/10.5281/zenodo.23547810), [The Token Is the Inst
 
 - [The Omega programme: seed to model](https://github.com/aien-dev/omega-mv/issues/599)
 - [Omega 1.0 roadmap: readiness audit, milestones and acceptance gates](docs/ROADMAP-1.0.md)
+- [One small Omega program, and the identity boundary](docs/TEACH_OMEGA.md): a bounded lesson for issue #619. It uses a historical teaching pin, not the current compiler, and it does not claim the legacy identity machinery covers seeded programs.
 - [Remaining C source/header inventory](docs/migration/C-TO-OM-INVENTORY.md)
 - [Experimental `.om` deterministic-stream successor](seed/physics0/README.md): source/host checks passed; native compilation and execution NOT_RUN.
 - [Alpha model/platform qualification](https://github.com/aien-dev/aien-architecture-mv/issues/305)
diff --git a/docs/.crumb b/docs/.crumb
index 433100df5..013beba40 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -124,14 +124,14 @@
         }
       ],
       "children_root": "sha256:c81d43c0c392dfec2b6ed5b38ba95ea7c592782b283950e32b777e7b9cfd9d61",
-      "compiled_at": "2026-10-30T02:47:38Z",
+      "compiled_at": "2026-10-30T16:28:56Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:7ef7796693f23ad68d9a5bcaaee0f635018f4371139a040ba202d4ce7083ede8",
+      "digest": "sha256:f2e0f691ab7a4a80acecc1cf0dd4bd7e3212bc4f9341ef6604ea7b089f42b7b2",
       "evidence_files": 34,
       "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc",
-      "files": 138,
-      "generated_at_commit": "e615e9ff47d03199514580f655d7670e61ab7e2f",
-      "source_tree": "sha256:ba44cf86b50127e2ec3824c2e913e032178628d69910a85ca9125cc1ed960bb5"
+      "files": 139,
+      "generated_at_commit": "67ef39c81611a36af45ec4a5dbc619aa9d2a8db9",
+      "source_tree": "sha256:3adbab94c92660032d5ce4a1206da94f42ed12b398f70bdf0b12e8da45358a1a"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/TEACH_OMEGA.md b/docs/TEACH_OMEGA.md
new file mode 100644
index 000000000..4c68293b5
--- /dev/null
+++ b/docs/TEACH_OMEGA.md
@@ -0,0 +1,196 @@
+# One small Omega program: source, executable, and the identity boundary
+
+This lesson follows the existing seeded `.om` forward-call fixture. It also
+explains where the older semantic-identity machinery lives **without pretending
+that the two pipelines are integrated**. It is a bounded contribution to
+[#619](https://github.com/aien-dev/omega-mv/issues/619), not its closure.
+
+## What problem is being solved?
+
+The [2026-09-29 decision record](adr/OMEGA-SYSTEMS-CORE-0000.md)
+sets the goal: replace convention-dependent C/assembly with explicit machine
+semantics, reproducible compilation, and separate semantic, runtime, wire and
+device layouts. The later seed work makes compiler ancestry inspectable: explicit
+instruction words build small translators, then a compiler written in Omega.
+See the existing [seed-birth walkthrough](https://github.com/aien-dev/omega-mv/blob/b30ba6cf729eb9295c7f8883cfff0519b90a63e1/docs/SEED_BIRTH.md)
+and its [recorded replay](https://github.com/aien-dev/omega-mv/blob/b30ba6cf729eb9295c7f8883cfff0519b90a63e1/evidence/seed-birth-20261022/README.md).
+Those are development-branch documents, not files already integrated on `main`.
+
+Published Arm instruction and ELF formats are upstream specifications, not
+Omega inventions. The seed notes attribute them. Existing Linux, the shell and
+host utilities remain dependencies. [CONTRIBUTORS](../CONTRIBUTORS.md) attributes
+project implementation to AI models orchestrated by Drake Stapleton; this lesson
+does not invent a personal account of who typed the compiler.
+
+## Pin and prerequisites
+
+Use the teaching pin `29b12760f4c962606411d6bf25032aedef063301`, the R5
+compiler described by the existing replay above. This is **not the newest compiler,
+a production recommendation, or a combined profile**. Later native-host and
+device work has separate review and qualification, including
+[PR #678](https://github.com/aien-dev/omega-mv/pull/678) and
+[PR #676](https://github.com/aien-dev/omega-mv/pull/676).
+Do not substitute one profile's compiler hash or evidence for another's.
+
+Execution requires **AArch64 Linux**, Git, a POSIX shell, and ordinary utilities
+used by the bootstrap (`printf`, `tr`, `cat`, `sed`, GNU-compatible `stat`, `cmp`,
+`chmod`, `mkdir`, `cp`, `wc`, `cut`, `grep`, `sha256sum`). No model, GPU, CUDA
+installation, physics checkout, or package download is part of this example.
+Cloning needs network access; after checkout the recipe is offline. An x86 host
+can inspect source but cannot natively execute these AArch64 binaries.
+
+Use a disposable checkout: the bootstrap writes `build/seed/birth`, `seed/out`,
+and rung-4 generated files, including a measured-size field in `om4.s`.
+Inspect the [bootstrap](https://github.com/aien-dev/omega-mv/blob/29b12760f4c962606411d6bf25032aedef063301/seed/omega-from-seed.sh)
+and [rung-4 builder](https://github.com/aien-dev/omega-mv/blob/29b12760f4c962606411d6bf25032aedef063301/seed/rung4/mk4.sh)
+before executing them. Never run historical receipt-writing gates in a checkout
+whose evidence you intend to preserve.
+
+## Follow the source
+
+The unchanged input is
+[`seed/rung4/tests/r5b_fwd.om`](https://github.com/aien-dev/omega-mv/blob/29b12760f4c962606411d6bf25032aedef063301/seed/rung4/tests/r5b_fwd.om):
+
+```text
+fn main to int
+ret later
+end
+fn later to int
+ret 7
+end
+```
+
+`main` returns the result of `later`, even though its declaration follows the
+call. The expected observable result is **process exit 7**, not printed text.
+A nonzero program result is not automatically a compiler/test failure.
+
+In the pinned
+[`seed/omc/omc.om`](https://github.com/aien-dev/omega-mv/blob/29b12760f4c962606411d6bf25032aedef063301/seed/omc/omc.om),
+follow these function names:
+
+| Stage | Implementation and intermediate representation |
+| --- | --- |
+| Read source | `main` reads stdin into bounded `inp`; `tok` scans tokens. |
+| Discover/check names | `prescan` and `namescan` collect declarations; `stmt`, `s_name`, `s_assign` and expression readers enforce this subset's rules. This is not a claim of the full OSC contract system. |
+| Emit and resolve | Statement/expression handlers emit instruction words into `out`; `resolve` fills call offsets after addresses are known. |
+| Make the executable | `eof_prog` constructs the entry/exit sequence; `elfhdr` writes the ELF64 little-endian AArch64 header; `writeout` sends the image to stdout. |
+| Run | Linux loads that ELF; the generated entry calls `main` and passes its result to the Linux exit syscall. |
+
+There is no C compilation or linking step in this construction path. The
+bootstrap's fixed-point comparisons establish self-consistency of the tested
+compiler builds, not general semantic correctness or diverse-compilation trust.
+
+## Replay on a suitable CPU host
+
+These are **expected results derived from source and the linked historical
+replay**, not a claim that this lesson's author reran them. Execute each block
+in order in the same shell. Each block fails closed on an unexpected result.
+
+```sh
+set -eu
+git clone https://github.com/aien-dev/omega-mv.git omega-teaching-replay
+cd omega-teaching-replay
+git checkout --detach 29b12760f4c962606411d6bf25032aedef063301
+test "$(git rev-parse HEAD)" = 29b12760f4c962606411d6bf25032aedef063301
+sh seed/omega-from-seed.sh
+printf '%s  %s\n' \
+  191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 \
+  seed/out/omc | sha256sum -c -
+mkdir build/teaching
+seed/out/omc < seed/rung4/tests/r5b_fwd.om > build/teaching/fwd
+chmod +x build/teaching/fwd
+rc=0
+build/teaching/fwd > build/teaching/fwd.stdout || rc=$?
+test "$rc" -eq 7
+test ! -s build/teaching/fwd.stdout
+printf 'forward-call exit=%s\n' "$rc"
+```
+
+Expected: bootstrap exits 0 and prints `RC=0`; hash check prints
+`seed/out/omc: OK`; compilation exits 0; program exits 7 with no stdout;
+the last line is `forward-call exit=7` and the block exits 0.
+
+### A meaning-preserving change
+
+Rename the internal function consistently; keep the externally required `main`.
+This changes source bytes but not the intended call/result. Byte equality is a
+stronger, implementation-specific expectation for this exact rename, **not a
+universal test of semantic equivalence** and not a `SEMANTIC_ID` computation.
+
+```sh
+sed 's/later/after/g' seed/rung4/tests/r5b_fwd.om > build/teaching/renamed.om
+seed/out/omc < build/teaching/renamed.om > build/teaching/renamed
+cmp build/teaching/fwd build/teaching/renamed
+chmod +x build/teaching/renamed
+rc=0
+build/teaching/renamed > build/teaching/renamed.stdout || rc=$?
+test "$rc" -eq 7
+test ! -s build/teaching/renamed.stdout
+printf 'renamed exit=%s\n' "$rc"
+```
+
+Expected: compiler and `cmp` exit 0, program exit 7, no program stdout,
+`renamed exit=7`. The new rename experiment is **NOT_RUN** here; if comparison
+fails, preserve its output and report FAIL rather than changing expected bytes.
+
+### A safe refusal already in the bootstrap
+
+[`r5b_assign.om`](https://github.com/aien-dev/omega-mv/blob/29b12760f4c962606411d6bf25032aedef063301/seed/rung4/tests/r5b_assign.om)
+tries `later = 2` where `later` is a function. The names pass makes that an
+invalid assignment, rather than silently treating the function name as a variable.
+
+```sh
+rc=0
+seed/out/omc < seed/rung4/tests/r5b_assign.om \
+  > build/teaching/refused.bin 2> build/teaching/refused.stderr || rc=$?
+test "$rc" -eq 7
+grep -q 'error 7' build/teaching/refused.stderr
+printf 'invalid-assignment compiler-exit=%s\n' "$rc"
+```
+
+Expected: compiler exit 7, diagnostic containing `error 7`, final line
+`invalid-assignment compiler-exit=7`. **Do not execute refused.bin.** The
+bootstrap already asserts this exact exit and diagnostic. The program result 7
+above and compiler refusal 7 here are different events from different processes.
+
+## Where semantic identity and receipts fit: and do not yet fit
+
+The seeded fixture above does **not** travel through the legacy C
+`OmegaProgram` pipeline. No canonical semantic encoding, `SEMANTIC_ID`,
+`REALIZATION_ID`, or signed qualification receipt is emitted by this recipe.
+A SHA-256 of the executable is an artifact fingerprint, not semantic identity.
+For this lesson, the missing native integration is **MISSING_IMPLEMENTATION**,
+not an invitation to revive the legacy C path as the permanent foundation.
+
+The existing legacy implementation supplies a precise comparison and source map:
+
+| Concept | Existing source, format and test |
+| --- | --- |
+| Parse/check a restricted unary function | `omega_language_parse_line` and `omega_language_lower_program`, exercised by `lower_fn` in [test_program_id.c](../tests/program/test_program_id.c). This is a different source grammar from `.om`. |
+| Bind meaning, not spelling/cost | [program identity v2](../spec/program-identity.md): `omega_program_compute_id` hashes a domain tag, canonical body-root id, input/output type ids and pre/postcondition ids. [omega_program.c](../src/omega_program.c) and [omega_canonical.c](../src/omega_canonical.c) implement it. |
+| Inspect intermediate bytes | [canonical object encoding](../spec/canonical-encoding.md) and [program IR layout](../src/omega_program_ir.h); [IR tests](../tests/test_omega_program_ir.c) exercise round trips and refusals. These are distinct encodings, not the emitted ELF. |
+| Realize and compare | [program realization V0](../spec/program-realization.md) links `omega_program_realize_check`, scheduling, emission and `omega_realization_verify_program`; unsupported bodies and stale ids fail closed. Native comparison requires AArch64. |
+| Receipt binding | [omega_receipt.h](../src/omega_receipt.h) defines receipt canonicalization/identity; an execution log alone does not satisfy that schema or establish qualification. |
+
+For example, the identity test compares `fn f(x: u64) -> u64 { x + 1 }`
+with changed names/representation and separately with `x + 2`. Equality is
+about the supported canonical body and contract, **not every mathematically
+equivalent arbitrary program**. The documented v1 failure was omission of the
+body from the hash, allowing different programs to share an id; v2 fixes that.
+The realization design also records the earlier error of emitting `3x - 2`
+regardless of the requested program. These are attributed design records, not
+newly reproduced failures or claims that all compiler defects are solved.
+
+## Evidence and remaining work
+
+- Historical AArch64 bootstrap replay: linked above, exact R5 pin and compiler
+  fingerprint; not a fresh run of this whole lesson.
+- This documentation pass: source/path/snippet and shell-syntax inspection only.
+  Execution, the new rename comparison, and repository judges: **NOT_RUN**.
+- Full #619 acceptance still needs an independent fresh CPU replay with revision,
+  OS/architecture, commands, stdout/stderr and exit statuses, plus an honestly
+  scoped native identity/receipt story. Preserve failures and never rewrite old
+  receipts to make the example pass.
+- GB10/device/model qualification is outside this CPU lesson. It requires its own
+  exact compiler/profile, hardware, operator scheduling and evidence; a host pass
+  cannot establish it. No hardware extension is necessary to learn this example.