interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / docs / inference / evidence / omegese-constraint-20261015 / README.md

47 lines · 5831 bytes Raw Blame History Rendered
1# Omegese constraint receipts (2026-10-15)
2
3Branch `feat/omegese-constraint` (PR #555), new crate `crates/aien-omegese-constraint`, built on main 9196c786 (ADR 0004 step 2, PR #550) and since merged up with main. Host only: no chip run, no GPU, and the 30B engine and the door untouched. Nothing in the workspace depends on the crate; with no constraint, generation is the step 2 loop unchanged.
4
5Oracle: `omegese next --machine`, built from aien-spark/omega 6c1827ba (`crates/aien-omegese-constraint/omegese.lock`; CI builds the same commit). The programs walked are the public dev programs (`tests/one_layer/omegese/dev`) and the arm examples (`tools/exp445/arms/examples`). No held-out task text was read.
6
7All receipts are at code commit 63bd631, after both review passes.
8
9| Gate | Receipt | Result |
10|---|---|---|
11| Host tests (`cargo test -p aien-omegese-constraint --no-fail-fast`, debug) | `host-tests.txt` | 24 passed, 0 failed, 3 ignored (the ignored ones need the real binary or the tokenizer and run below) |
12| Exact-oracle walks on `EchoChainModel` (64-token synthetic table with one- and two-boundary tokens, ` \n` among them), 12 seeds, greedy and sampled | `host-tests.txt`, `exact_walks_write_the_one_program` | every walk writes the one target program inside the fences and ends on the stop token; multi-item tokens were picked; two-boundary tokens were refused and counted |
13| Soundness step by step: every allowed token at every masked step checked against the exact oracle, for 2 targets (ending on a newline and not) × 4 framings | `host-tests.txt`, `every_allowed_token_keeps_the_target_reachable` | no allowed token leads nowhere; replies framed as asked |
14| Forced closing when no token marks the fence; a header the oracle refuses fails when the constraint is built | `host-tests.txt`, `the_closing_is_forced_when_no_token_marks_it`, `a_header_the_oracle_refuses_fails_at_construction` | pass |
15| A refusal goes through the rollback | `host-tests.txt`, `an_oracle_refusal_goes_through_the_rollback` | the history equals what was emitted, every layer at the ledger, the pending head forgotten, warm run equals cold run |
16| Every switch off is byte-identical to no constraint (graph on and off, greedy and sampled) | `host-tests.txt`, `every_switch_off_is_byte_identical_to_no_constraint` | same tokens, outcome, call log and head reads; zero oracle calls |
17| Fence-only arm; unfenced masked arm | `host-tests.txt`, `the_fence_only_arm_forces_the_fence_and_nothing_else`, `the_unfenced_arm_ends_on_the_stop_token` | the fence alone is forced, the rest is the free run; without a fence the reply is the program and ends on stop, and `finished()` claims completion only where the stop was forced (completion there is `FinishReason::Stop`) |
18| Oracle process: a hung process is killed at the deadline; an early exit reports its own message | `host-tests.txt`, `a_hung_oracle_is_killed_at_the_deadline`, `an_early_exit_reports_its_own_message` | pass |
19| Real oracle, 40 seeded walks on the synthetic table (`OMEGESE_BIN`, `--ignored`) | `real-oracle-walks.txt` | 35 walks ended on eof and `omegese emit` accepted all 35; 5 were cut by length, completed by `omegese complete`, and accepted; 5685 masked steps, 3.08 oracle calls per step |
20| Blank-run equivalence the mask relies on (a run of blanks reads as one space, or as one newline if it holds one) | `real-oracle-walks.txt`, `real_oracle_blank_runs_are_interchangeable` | 3315 prefix pairs, identical item lists (881 with items on both sides) |
21| Qwen vocabulary (151669 tokens, `~/models/qwen3-30b-a3b-instruct-2507-fp8/tokenizer.json`) on 25 dev programs, 47 walks (header forced and not), release build | `qwen-vocab-release.txt` | every program written exactly, reply = fence + program + fence; 2279 masked steps, 2232 took Qwen's own next token, the other 47 are the eof steps (the closing fence); 0 two-boundary refusals of Qwen's own token, 0 other refusals; soundness: 22134 allowed continuations checked against the oracle, 0 refused |
22| Review MUST, red before green: a blank run holding a newline (` \n`) was checked against its space | `must1-red-run.txt` (the fix reverted on top of the new tests) | red: synthetic walks and the step-by-step check fail on ` \n` after `ret`; on Qwen 1364 of 22879 checked continuations refused. Green at 63bd631 (`host-tests.txt`, `qwen-vocab-release.txt`) |
23| Red before green: ten mutants of `constraint.rs`, each alone, at 63bd631 | `mutants-red.txt` | each turns at least one test red: M1 two-boundary tokens allowed; M2 separators unchecked; M3 the part after the separators unchecked; M4 switch off masks instead of `Any`; M5 a refusal read as `Any`; M6 the first separator read raw; M7 eof tokens without a backtick; M8 the closing rewritten from the start; M9 no forced closing; M10 header not checked |
24| `cargo clippy -p aien-omegese-constraint --all-targets -- -D warnings`, `cargo fmt --all` | run locally, and CI | clean |
25
26## The mapping rule, measured on Qwen
27
28Of the tokens made only of bytes Omegese text can hold:
29
30- 34823 cross no word boundary;
31- 45553 cross one;
32- 35 cross two or more.
33
34The 35 are always refused: 72655 token-step refusals were counted over the 2279 masked steps. Qwen's own tokenizer never chose one of them on the dev programs, so the refusal cost nothing there.
35
36## Per-step latency
37
38Wall time of one masked step: its oracle calls (one subprocess each) plus the scan of the vocabulary. The machine was shared with other sessions.
39
40| Build, table | Steps | Calls per step | Median | p95 | Max |
41|---|---|---|---|---|---|
42| release, Qwen 151669 | 2279 | 6.62 | 13.4 ms | 20.6 ms | 26.5 ms |
43| debug, synthetic 64 | 5685 | 3.08 | 2.8 ms | 5.1 ms | 8.3 ms |
44
45`SHA256SUMS` lists the receipts.
46
47CALC-EXEMPT: every figure above is copied from a receipt line, not derived.