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

490fc5d feat: Omegese guardrail as a separate opt-in Constraint (aien-omegese-constraint) (#555) aien-spark committed 2026-10-16
..
README.md5831
SHA256SUMS434
host-tests.txt3002
must1-red-run.txt2370
mutants-red.txt15387
qwen-vocab-release.txt10427
real-oracle-walks.txt769

README.md

Omegese constraint receipts (2026-10-15)

Branch 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.

Oracle: 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.

All receipts are at code commit 63bd631, after both review passes.

GateReceiptResult
Host tests (cargo test -p aien-omegese-constraint --no-fail-fast, debug)host-tests.txt24 passed, 0 failed, 3 ignored (the ignored ones need the real binary or the tokenizer and run below)
Exact-oracle walks on EchoChainModel (64-token synthetic table with one- and two-boundary tokens, \n among them), 12 seeds, greedy and sampledhost-tests.txt, exact_walks_write_the_one_programevery 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
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 framingshost-tests.txt, every_allowed_token_keeps_the_target_reachableno allowed token leads nowhere; replies framed as asked
Forced closing when no token marks the fence; a header the oracle refuses fails when the constraint is builthost-tests.txt, the_closing_is_forced_when_no_token_marks_it, a_header_the_oracle_refuses_fails_at_constructionpass
A refusal goes through the rollbackhost-tests.txt, an_oracle_refusal_goes_through_the_rollbackthe history equals what was emitted, every layer at the ledger, the pending head forgotten, warm run equals cold run
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_constraintsame tokens, outcome, call log and head reads; zero oracle calls
Fence-only arm; unfenced masked armhost-tests.txt, the_fence_only_arm_forces_the_fence_and_nothing_else, the_unfenced_arm_ends_on_the_stop_tokenthe 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)
Oracle process: a hung process is killed at the deadline; an early exit reports its own messagehost-tests.txt, a_hung_oracle_is_killed_at_the_deadline, an_early_exit_reports_its_own_messagepass
Real oracle, 40 seeded walks on the synthetic table (OMEGESE_BIN, --ignored)real-oracle-walks.txt35 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
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_interchangeable3315 prefix pairs, identical item lists (881 with items on both sides)
Qwen vocabulary (151669 tokens, ~/models/qwen3-30b-a3b-instruct-2507-fp8/tokenizer.json) on 25 dev programs, 47 walks (header forced and not), release buildqwen-vocab-release.txtevery 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
Review MUST, red before green: a blank run holding a newline ( \n) was checked against its spacemust1-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)
Red before green: ten mutants of constraint.rs, each alone, at 63bd631mutants-red.txteach 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
cargo clippy -p aien-omegese-constraint --all-targets -- -D warnings, cargo fmt --allrun locally, and CIclean

The mapping rule, measured on Qwen

Of the tokens made only of bytes Omegese text can hold:

  • 34823 cross no word boundary;
  • 45553 cross one;
  • 35 cross two or more.

The 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.

Per-step latency

Wall time of one masked step: its oracle calls (one subprocess each) plus the scan of the vocabulary. The machine was shared with other sessions.

Build, tableStepsCalls per stepMedianp95Max
release, Qwen 15166922796.6213.4 ms20.6 ms26.5 ms
debug, synthetic 6456853.082.8 ms5.1 ms8.3 ms

SHA256SUMS lists the receipts.

CALC-EXEMPT: every figure above is copied from a receipt line, not derived.