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 / MERGE_TRAIN.md

106 lines · 8397 bytes Raw Blame History Source

The merge train

Drake, 2026-10-21: "batch the tests ... make this the standard for doing these from now on. Call it the merge train." Ledger L384. Every lever on the 35B serving path is tested and merged on the train. No lever loads its own full-model copy for its own gate.

One cycle is: one candidate build holding every READY lever, one 35B load (two at most, see load-only switches), one shared suite run against stored references, and one verdict per lever. A failing lever is switched off and the rest ride on.

Files:

whatwhere
the commandevidence/merge-train/merge-train (bash + jq + curl)
the suite (data)evidence/merge-train/suite.json
run folders, verdict tablesevidence/merge-train/runs/<UTC stamp>-<candidate sha8>/
the reference store~/.local/state/aien-q36/merge-train/refs/<model dir>/<reference build sha8>/alone/, CURRENT symlink
host goldens (no load needed)evidence/q36-host-20261020/gen-*.json
per-request switchescargo feature aien-test-switches in crates/aien-serve-http

1. Per-request switches (aien_test)

A test build (cargo build --release -p aien-serve-http --features aien-test-switches) reads an extra request field:

"aien_test": {"stroke": false, "exact_head": false, "mutant": 4, "row_swap": 2}
switcheffect, this request onlydefault
strokefalse: this row steps on its own one-row graph, never in a stroke with other rowstrue
exact_headfalse: the plain one-pass head instead of the exact two-pass headtrue
mutantgraph mutant k (the AIEN_Q36_TEST_MUTANT numbers) for this row's steps0
row_swapat this row's k-th step the scheduler trades rows with another decoding conversation (both go red)off
prefill_chunk, prefix_pool, state_bf16names reserved for L369, L375, L313; refused until their lever wires them

Honesty rules, enforced in code:

Load-only switches (a setting read once at start, such as AIEN_OMEGA_GDN_STATE_BF16=1 or AIEN_BOARD_DIR) are a suite arm with server_env. The train loads a second server for them after the first one stops, so a cycle loads twice at most. An arm can name log_proof, a word the server log must show, so a build that ignored the setting is marked NOT-ON-TRAIN, not PASS.

2. The suite format (suite.json)

The suite is data. A lever joins by adding JSON, not code.

kindrequestsPASS when
goldenone chat request (user, max_tokens)token ids == the host golden's generated_ids
togetherthe first n prompts of prompts.txt at once, stagger_ms apart in groups of 8, max_tokens by ntok(i)every reply == the same request alone (reference store)
turn2the stored turn-2 messagesids == the stored turn 2
toolone request with toolsthe reply is a parsed tool call named expect_tool
scriptthe owner's own gate script, run against the train's server ($PORT, $OUT, $SERVER_LOG substituted in args)the script exits 0 (1 FAIL, other: ERROR)

Red controls (the proof that a comparison can fail): "expect": "red" on a golden case, or expect_red (row list), expect_red_min, others_red_max on a together case with aien_test_on ({"<row>": {switches}}). A red control that comes back identical is RED-FAIL and fails every lever it covers.

3. The reference store

References are the token ids of every suite prompt served alone (one request at a time) plus turn 2, computed once per (model, reference build) and kept under ~/.local/state/aien-q36/merge-train/refs/<model dir>/<sha8>/alone/. CURRENT points at the one in use. No gate re-runs the reference side unless the reference build changes.

merge-train ref <port> <sha8>              # compute from the reference build serving on <port>
merge-train ref-import <alone-dir> <sha8>  # import an existing gate's alone/ folder
merge-train ref-use <sha8>                 # switch CURRENT

Goldens (evidence/q36-host-20261020/) come from the host reference model and need no load at all. Today's reference: 5b726818, imported from L354's evidence/q36-batch-20261021/alone/ (the single door, 02:42Z). L354's batch gates on bin-16b0e6f8 matched it 32/32.

4. The cycle

  1. Join. A lever owner pushes the lever branch, posts a READY line on ~/handoffs/BOARD.md, and adds the lever's cases to suite.json by commit on serve/merge-train (or by ledger note on L384, and L384 adds them). A new switch goes in TestSwitches (crates/aien-serve-http/src/engine.rs) and in the engine's honored list, with a host test that the switch changes only its own row.
  2. Build. L354 (the serving lane) merges every READY lever branch onto the ship branch with this branch, builds once with --features aien-test-switches, and pins ~/.local/state/aien-q36/bin-<sha8>/ (binary, lib, BUILD.txt naming every lever branch and sha, SHA256SUMS).
  3. Run. merge-train run ~/.local/state/aien-q36/bin-<sha8> --post. The train loads the candidate under q36-extra (Q36_EXTRA_LEDGER=L384, port 18100 by default, never 18091), runs every request arm, stops the server, loads a second server only for enabled load-only arms, and writes runs/<stamp>-<sha8>/verdict.md (lever x case table, then every cell) and receipt.json (loads, load seconds, suite seconds).
  4. Post. --post appends one BOARD line with every lever's verdict and adds a ledger note to each lever's item.
  5. Ship. The live build is the same merge without the feature. It is built from the same commit and gated by the cells that passed.

5. When a lever fails

6. Rules