interplane.Get Omega
Read in your language

aien

aien-dev/aien

Brought by drakestapleton

GitHub aien-dev/aien#26 (code only)

closed derived f8a0558288d572ce #26

Imported from GitHub aien-dev/aien#26 (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 c149760e8722ed943abcc5e3c7a33e2065b4036c · Head 797d62d1d5facb3bd46f2c7a738090b184c6db03

Apply it

git checkout -b patch-f8a0558288d572ce c149760e8722ed943abcc5e3c7a33e2065b4036c
curl -fsSL https://interplane.io/drakestapleton/aien/patches/f8a0558288d572ce.patch | git am

Raw patch (mbox) · 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/aien
26
797d62d1d5facb3bd46f2c7a738090b184c6db03
{"kind":"github-import","owner":"aien-dev","repo":"aien","number":26,"url":"https://github.com/aien-dev/aien/pull/26","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:52Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/README.md b/README.md
index 6aa7c5b..08fcbc2 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,10 @@ Allen has now evolved into the final Aien (2026-10-26). This repository was `aie
 
 **Pre-alpha.** Nothing here is qualified. Every claim in this repository links to a file under `evidence/` or to a receipt in [aien-dev/aien-receipts](https://github.com/aien-dev/aien-receipts); a sentence with no link is a plan, not a result.
 
+## How it works: one implemented evaluation flow
+
+The only evaluation flow on `main` today is the microjob admission kernel ([docs/GOAL_MICROJOBS.md](docs/GOAL_MICROJOBS.md)). Planners and models propose events for one objective, and a seeded Omega program ([`src/goal_microjobs/kernel.om`](src/goal_microjobs/kernel.om)) admits them or refuses them with a coded exit, from the plan and journal alone. It holds no identity and writes no Cortex memory. **[The worked lesson](docs/TEACHING.md)** rebuilds the pinned compiler from seed and runs the offline gate: 158 checks pass and 9 deliberately broken kernels are caught. A wrong compiler pin refuses with exit 3. [Replay record](docs/teaching-replay-2026-11-05.txt). Model inference, Cortex, B0 and hardware remain NOT_RUN.
+
 ## What lives here and what does not
 
 | Here | Not here (owner) |
diff --git a/docs/TEACHING.md b/docs/TEACHING.md
new file mode 100644
index 0000000..619350d
--- /dev/null
+++ b/docs/TEACHING.md
@@ -0,0 +1,59 @@
+# How it works: one objective through the microjob admission kernel
+
+This lesson follows one synthetic objective through the only evaluation flow implemented on `main`: the seeded Omega admission kernel for Aien #13 ([docs/GOAL_MICROJOBS.md](GOAL_MICROJOBS.md)). It covers the expected verdict, the refusals, and what the evidence does not show. The B0 contract, the source map, `inventory/` and `guard/` are still planned (see [PHASES.md](PHASES.md) and [PLAN.md](PLAN.md)). This lesson does not stand in for them.
+
+## The problem
+
+Aien keeps one persistent objective across many small jobs, some run by a model. A planner or model that reports its own success cannot be trusted to decide what counts as done. The design separates **proposing** from **admitting**: workers and models append events, and one small deterministic program decides from the plan and the journal alone which events are admitted.
+
+## The mechanism
+
+- **Identity, memory and authority stay outside.** The kernel holds no identity and writes no Cortex memory or runtime authority. The journal is the local replay log of one objective, not a second memory store (ADR 0022 owns durable memory; the Cortex writer does not exist yet). The boundary table is in [GOAL_MICROJOBS.md § Boundary](GOAL_MICROJOBS.md#boundary).
+- **The kernel** is [`src/goal_microjobs/kernel.om`](../src/goal_microjobs/kernel.om), compiled by [`scripts/goal_microjobs/build.sh`](../scripts/goal_microjobs/build.sh) with the pinned seeded compiler. It reads a header record, node records and event records as decimal words on stdin. It prints the derived state (`100`/`101`/`102`/`103` lines) or refuses with `199 seq code` and exits with that code.
+- **Admission rules** are in the event table of [GOAL_MICROJOBS.md § Records](GOAL_MICROJOBS.md#records-local-replay-abi-canonical-adapter-below). For example: a VERIFY is admitted only from the node's named verifier, never from the worker, and only when its digest equals the result. A DISPATCH is admitted only when every dependency is done and the budget can fund the reservation.
+- **The gate** [`tests/goal_microjobs/gate.sh`](../tests/goal_microjobs/gate.sh) runs the 12-node synthetic acceptance objective (concurrent nodes, a model failure with retry, a SIGKILL'd writer, an owner correction that resets exactly nodes 3, 7–12). It then rebuilds the kernel nine times, each with one rule deliberately broken, and requires every broken kernel to be caught.
+
+### Why these choices
+
+- **Seeded `.om`, one compiler pin.** The decision logic is first-party Omega, built by a compiler that rebuilds from seed-0. The build refuses any other compiler digest, so a replay cannot pass with a different compiler.
+- **Refusal codes, not booleans.** Each rule has its own exit code (33 wrong state, 34 stale generation, 39 wrong verifier, …), so a mutant that drops one rule shows up as a wrong code.
+- **Limitation, recorded at the time:** the historical compiler was an untracked build artifact, so the 2026-10-22 recipe ended `BLOCKED` on a fresh clone ([GOAL_MICROJOBS.md § Reproduce](GOAL_MICROJOBS.md#reproduce)). The replay below rebuilds it from seed instead.
+
+## Replay (offline, no model, no GPU)
+
+Requirements: Linux aarch64 (the compiler emits arm64 ELF), POSIX `sh`, `bash`, `git`, `python3`, `sha256sum`. No network after cloning, no account, no model.
+
+```sh
+set -eu
+git clone https://github.com/aien-dev/aien.git aien-lesson
+git clone https://github.com/aien-dev/omega-mv.git omega-seed
+git -C aien-lesson checkout --detach c149760e8722ed943abcc5e3c7a33e2065b4036c
+# 1. Rebuild the historical compiler from seed-0 at the commit that published it.
+git -C omega-seed worktree add --detach ../omega-29b1 29b12760f4c962606411d6bf25032aedef063301
+(cd omega-29b1 && rm seed/out/omc && sh seed/omega-from-seed.sh)   # ends RC=0
+sha256sum omega-29b1/seed/out/omc   # 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9
+# 2. Lay it out where build.sh expects it, under the pinned Omega checkout.
+git -C omega-seed worktree add --detach ../omega-c434 c434565c67552c0b01df2d7f76c1a04287c70560
+T=omega-c434/build/L574/toolchain
+mkdir -p "$T/build/bootstrap" "$T/seed/omc" "$T/tools"
+cp omega-29b1/seed/out/omc "$T/build/bootstrap/omc"
+cp omega-29b1/seed/omc/omc.om "$T/seed/omc/omc.om"   # 8608fa11f6a2cf1c50db22d871eef16b00d5bc719bc1a222cc3e456984ac5ebf
+git clone https://github.com/aien-dev/omega-bridge.git
+git -C omega-bridge show e461b7a:tools/verify-elf.sh > "$T/tools/verify-elf.sh"   # afe24b29f105241f268fbaf3bfdd8e010c790a13b8f807de1263f92aacca76cd
+# 3. Run the gate, writing outside the checkout.
+OMEGA_WORKTREE="$PWD/omega-c434" GM_RUN_ROOT="$PWD/run" bash aien-lesson/tests/goal_microjobs/gate.sh
+```
+
+**Expected:** exit 0 and one line `PASS <run>/offline-<time>/receipt.json checks=158`. The receipt records `verdict PASS`, `compiler_sha256 191b776e…`, `omega_source_commit c434565c…`, `mutants_caught 9`, `model_inference NOT_RUN`. `mutations.tsv` lists each broken rule, the probe, the refusal code a correct kernel gives, and the code the broken kernel gave instead.
+
+**Refusal cases:**
+- Inside the gate, the nine mutants (wrong verifier, self-reported success, dispatch before dependencies, stale generation, duplicate effect, model-call budget, double cancel, plan cycle, privacy-owner change) are each caught.
+- At the edge, pointing `OMEGA_WORKTREE` at any other Omega commit exits 3 with `BLOCKED: Omega checkout must be c434565c…`. A missing or different compiler also exits 3, before anything is compiled.
+
+The 2026-11-05 run of exactly this recipe is recorded in [teaching-replay-2026-11-05.txt](teaching-replay-2026-11-05.txt).
+
+## What this does and does not establish
+
+The receipt establishes the following, offline on synthetic fixtures at the pinned revisions: the kernel admits the acceptance objective's journal and every one of the nine rule mutants changes an observed refusal. It does **not** establish model inference, a Cortex write or restart, routing comparison, a B0 qualification, a phase completion, or any GPU or hardware behaviour. Those remain NOT_RUN, as [GOAL_MICROJOBS.md](GOAL_MICROJOBS.md) states. The receipt is unsigned.
+
+Upstream components: the seed chain and compiler are from [aien-dev/omega-mv](https://github.com/aien-dev/omega-mv) (commit `29b12760`, "omc born from seed-0"); `verify-elf.sh` is from [aien-dev/omega-bridge](https://github.com/aien-dev/omega-bridge); the microjob wire format follows the MJB1 draft in aien-protocols-mv#50.
diff --git a/docs/teaching-replay-2026-11-05.mutations.tsv b/docs/teaching-replay-2026-11-05.mutations.tsv
new file mode 100644
index 0000000..1ce553e
--- /dev/null
+++ b/docs/teaching-replay-2026-11-05.mutations.tsv
@@ -0,0 +1,9 @@
+verifier-identity	wrong-verifier	39	0	CAUGHT
+self-verification	self-reported-success	40	39	CAUGHT
+dependency-gate	dispatch-before-dependencies	43	0	CAUGHT
+generation-bump	stale-generation-dispatch	34	0	CAUGHT
+duplicate-effect	duplicate-effect	45	0	CAUGHT
+model-budget	model-call-budget	37	0	CAUGHT
+objective-cancel	cancel-twice	47	0	CAUGHT
+cycle-check	plan-cycle	20	0	CAUGHT
+privacy-owner	plan-changed-privacy-owner	17	0	CAUGHT
diff --git a/docs/teaching-replay-2026-11-05.raw.txt b/docs/teaching-replay-2026-11-05.raw.txt
new file mode 100644
index 0000000..f293f29
--- /dev/null
+++ b/docs/teaching-replay-2026-11-05.raw.txt
@@ -0,0 +1 @@
+PASS /tmp/sweep/issues/I9/aien10-run/offline-20261105T015338Z-AonbQB/receipt.json checks=158
diff --git a/docs/teaching-replay-2026-11-05.txt b/docs/teaching-replay-2026-11-05.txt
new file mode 100644
index 0000000..104384f
--- /dev/null
+++ b/docs/teaching-replay-2026-11-05.txt
@@ -0,0 +1,33 @@
+# Teaching replay record, 2026-11-05 (aien#10)
+
+Repository: aien-dev/aien at c149760e8722ed943abcc5e3c7a33e2065b4036c (main; clean tree, receipt field allen_tree_dirty false)
+Host: spark-b87b, Linux 7.0.0-1019-nvidia aarch64
+Tools: GNU bash 5.2.21, Python 3.12.3, git 2.43.0
+Wrapper: nice -n 19 taskset -c 0-9,15-19 (CPU placement only)
+
+Compiler, rebuilt from seed:
+  aien-dev/omega-mv worktree at 29b12760f4c962606411d6bf25032aedef063301; seed/out/omc removed, then `sh seed/omega-from-seed.sh` -> RC=0
+  seed/out/omc SHA-256 191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 (= build.sh compiler_pin; byte-identical to the committed file)
+  seed/omc/omc.om SHA-256 8608fa11f6a2cf1c50db22d871eef16b00d5bc719bc1a222cc3e456984ac5ebf (= build.sh seed_source_pin)
+  tools/verify-elf.sh from aien-dev/omega-bridge e461b7a, SHA-256 afe24b29f105241f268fbaf3bfdd8e010c790a13b8f807de1263f92aacca76cd
+  laid out under an omega-mv worktree at c434565c67552c0b01df2d7f76c1a04287c70560 as build/L574/toolchain/
+
+Command:
+  OMEGA_WORKTREE=<omega-mv worktree at c434565c> GM_RUN_ROOT=<scratch> bash tests/goal_microjobs/gate.sh
+Exit: 0
+Output: PASS <scratch>/offline-20261105T015338Z-AonbQB/receipt.json checks=158   (raw: teaching-replay-2026-11-05.raw.txt)
+Receipt (unsigned) SHA-256 e0fe6f9be7c2687134dab7e569a558dcfe4a035d54e3795932b68a23febaeecd:
+  verdict PASS; checks_passed 158; mutants_caught 9; compiler_sha256 191b776e...; omega_source_commit c434565c...;
+  kernel_executable_sha256 615d6757944765ab5dd710a420efe93315ffd8bffa666b823c59edc2aaa89bed; model_inference NOT_RUN
+Mutation table: teaching-replay-2026-11-05.mutations.tsv (SHA-256 3d1471d54066671b6b317c100773713da0191852c987ccc2933d75c93044ecb1)
+  columns: mutant, probe, refusal code a correct kernel gives, exit of the mutant kernel; all 9 CAUGHT
+
+Negative control: OMEGA_WORKTREE pointed at the omega-mv worktree at 29b12760 (wrong commit)
+  -> exit 3, "BLOCKED: Omega checkout must be c434565c67552c0b01df2d7f76c1a04287c70560"
+
+Source hashes: src/goal_microjobs/kernel.om 223c034257bca0ce9c241f8c7c1e563f6e5c2d39b0583530cb92024c69526c24;
+  tests/goal_microjobs/gate.sh bfcfcc3880aff81ecc8f3346efafcb30259510590f780be27ccca719dd77e7bc;
+  scripts/goal_microjobs/build.sh b0974f60224394868757709637d93132ac0cd34e0f19d7dffff095e1dc2a9137
+
+Scope: offline synthetic fixtures. Not run: model inference, Cortex write/restart, routing comparison, B0, GPU or hardware.
+The run was by an agent following the recipe; a human reader replay is not recorded.