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 / evidence / core925-20261107-r3

94b08ba hive forge: command id replay, commit errors, 400 for bad input (#925) Drake Stapleton committed 2026-11-07
..
README.md4480
SHA256SUMS1395
cargo-test.txt4138
drive-cases-branch.cmd351
drive-cases-branch.out2793
drive-http-branch.cmd350
drive-http-branch.out2668
drive-http-main.cmd346
drive-http-main.out3742
drive-migrate-branch.cmd355
drive-migrate-branch.out480
drive-migrate-main.cmd351
drive-migrate-main.out662
drive-table-branch.cmd351
drive-table-branch.out2151
drive-table-main.cmd348
drive-table-main.out265

README.md

Core #925 evidence, round 3: command ids and the Queen's local read (DRA-288, DRA-162)

Host only, 2026-11-07, DGX Spark, every command under taskset -c 5,6 nice -n 10, cargo with --offline -j2. Ephemeral 127.0.0.1 ports, scratch HOME and database per run; the live cockpit and its database were not touched. Runs are from the working tree that became this commit; the fresh-clone rerun of the commit is kept outside the tree with the PR handoff.

Round 3 adds #925 acceptance 2 (duplicate command id replay) and the five points of the local read of 7ad96d1e: commit errors of UPDATE ... RETURNING are no longer lost (update_returning, WAL required at open, no in-memory fallback at cockpit start), a ttl out of range is 400 invalid, the default ttl is 300 in code and docs, a bad JSON body or missing field is 400 invalid, and the upgrade-together rule is documented. Round 1 and 2 evidence stays in evidence/core925-20261107/.

Binaries (sha256):

Binarysha256
omc (seed, omega-mv e5b32567 pin)2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f
task.bin (om/hive-task/task.om)cf832002a7f674f859d52b15b476db4ef5434c27e78c1c1f9a797bca57ac5d9f
drive.bin (om/hive-task/drive.om)453a79aebe262626ff5bcc00d8173e23dd0938a933a14e266d3ed1c3e33a4073
cockpit branch (cargo build --offline -j2 -p spark-cockpit-rs, debug, this tree)bd8b8a6d1f549071b7893bcc9f58bb7be24f4d3ac9fef361c08eb621f912608a
cockpit main (9d7b3433)7679ee6a2d7e2d6dedce8a3127550cdc087c57741be4e984ed18109207150682

Each drive-<mode>-<build>.cmd holds the exact command, exit code and wall time; .out holds the output. cargo-test.txt is cargo test -p spark-hive -p spark-cockpit-rs.

RunResult
cases88/88 PASS (28 new: 25 command id cases, 3 of them on the check order with a bad ttl, and 3 malformed op 7 inputs; bad_op_seven became bad_op_eight)
http branch53 PASS, 0 FAIL, 0 NOT_RUN
http main (negative control)14 PASS, 39 FAIL, exit 1
table branch2052 rows (1992 plus 60 command id rows), 0 mismatches; reap count matches; 29/29 mutants killed
table maindriver error exit 80: main's table has no fence columns, so the rows cannot be seeded (expected)
migrate branch10/10 PASS (adds forge_commands; reopening the migrated file is a no-op)
migrate main (negative control)4 PASS, 6 FAIL, exit 1
cargo testspark-cockpit-rs 34 passed, spark-hive 24 passed, exit 0

What the new checks show:

  • Command id replay: identical claim, heartbeat, submit, verify and reclaim under one id return the same body (for claim and heartbeat the row is also compared before and after, so a replayed heartbeat does not extend the lease; a replayed reclaim does not sweep a lease that expired in between). A different payload under the id is 409 command_conflict. On main, which ignores command_id, the claim, heartbeat, conflict, reclaim and id-shape checks FAIL; the submit and verify replays PASS on main too, because a repeated submit or verify already answers the same body there.
  • Ids of 128 bytes are accepted, 129 bytes and a / are 400 invalid; a refused claim is not recorded, so the same id is decided again and granted once the lease expires.
  • Two cockpit processes on one file: one id sent to both replays the first answer; 40 simultaneous trials of one id on both processes give the same body twice and one record each.
  • Commit failure: commit_unsafe_db_refused_at_start_row_unchanged gives the cockpit a rollback-journal database while sqlite3 holds a reader. The branch exits 1 with `Cockpit refused to start: hive store: SQLite database busy, nothing changed, retry: database is locked` (it cannot switch the file to WAL and no longer falls back to memory). Main serves the file and answers the claim 500, so the check FAILs on main. The lost-commit path inside a served request cannot be forced through HTTP once WAL is required; the unit test store::tests::test_update_returning_reports_commit_failure shows query_row losing the failure (row returned, change rolled back) and update_returning reporting Busy.
  • Main's 400-trial race in this run had 2 raw 500 losers (loser_other=2), so main also fails race_two_cockpits_single_grant here; the branch had 400 single grants and 400 409 losers.

Not run: push, CI, merge, deploy, and any hardware or GPU path.