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

62 lines · 4480 bytes Raw Blame History Rendered
1# Core #925 evidence, round 3: command ids and the Queen's local read (DRA-288, DRA-162)
2
3Host only, 2026-11-07, DGX Spark, every command under `taskset -c 5,6 nice -n 10`, cargo with
4`--offline -j2`. Ephemeral 127.0.0.1 ports, scratch HOME and database per run; the live cockpit and
5its database were not touched. Runs are from the working tree that became this commit; the
6fresh-clone rerun of the commit is kept outside the tree with the PR handoff.
7
8Round 3 adds #925 acceptance 2 (duplicate command id replay) and the five points of the local read
9of `7ad96d1e`: commit errors of `UPDATE ... RETURNING` are no longer lost (`update_returning`, WAL
10required at open, no in-memory fallback at cockpit start), a ttl out of range is 400 `invalid`, the
11default ttl is 300 in code and docs, a bad JSON body or missing field is 400 `invalid`, and the
12upgrade-together rule is documented. Round 1 and 2 evidence stays in `evidence/core925-20261107/`.
13
14Binaries (sha256):
15
16| Binary | sha256 |
17|---|---|
18| omc (seed, omega-mv `e5b32567` pin) | `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f` |
19| `task.bin` (om/hive-task/task.om) | `cf832002a7f674f859d52b15b476db4ef5434c27e78c1c1f9a797bca57ac5d9f` |
20| `drive.bin` (om/hive-task/drive.om) | `453a79aebe262626ff5bcc00d8173e23dd0938a933a14e266d3ed1c3e33a4073` |
21| cockpit branch (`cargo build --offline -j2 -p spark-cockpit-rs`, debug, this tree) | `bd8b8a6d1f549071b7893bcc9f58bb7be24f4d3ac9fef361c08eb621f912608a` |
22| cockpit main (`9d7b3433`) | `7679ee6a2d7e2d6dedce8a3127550cdc087c57741be4e984ed18109207150682` |
23
24Each `drive-<mode>-<build>.cmd` holds the exact command, exit code and wall time; `.out` holds the
25output. `cargo-test.txt` is `cargo test -p spark-hive -p spark-cockpit-rs`.
26
27| Run | Result |
28|---|---|
29| `cases` | 88/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`) |
30| `http` branch | 53 PASS, 0 FAIL, 0 NOT_RUN |
31| `http` main (negative control) | 14 PASS, 39 FAIL, exit 1 |
32| `table` branch | 2052 rows (1992 plus 60 command id rows), 0 mismatches; reap count matches; 29/29 mutants killed |
33| `table` main | driver error exit 80: main's table has no fence columns, so the rows cannot be seeded (expected) |
34| `migrate` branch | 10/10 PASS (adds `forge_commands`; reopening the migrated file is a no-op) |
35| `migrate` main (negative control) | 4 PASS, 6 FAIL, exit 1 |
36| cargo test | spark-cockpit-rs 34 passed, spark-hive 24 passed, exit 0 |
37
38What the new checks show:
39
40- Command id replay: identical claim, heartbeat, submit, verify and reclaim under one id return the
41 same body (for claim and heartbeat the row is also compared before and after, so a replayed
42 heartbeat does not extend the lease; a replayed reclaim does not sweep a lease that expired in
43 between). A different
44 payload under the id is 409 `command_conflict`. On main, which ignores `command_id`, the claim,
45 heartbeat, conflict, reclaim and id-shape checks FAIL; the submit and verify replays PASS on main
46 too, because a repeated submit or verify already answers the same body there.
47- Ids of 128 bytes are accepted, 129 bytes and a `/` are 400 `invalid`; a refused claim is not
48 recorded, so the same id is decided again and granted once the lease expires.
49- Two cockpit processes on one file: one id sent to both replays the first answer; 40 simultaneous
50 trials of one id on both processes give the same body twice and one record each.
51- Commit failure: `commit_unsafe_db_refused_at_start_row_unchanged` gives the cockpit a
52 rollback-journal database while `sqlite3` holds a reader. The branch exits 1 with
53 `Cockpit refused to start: hive store: SQLite database busy, nothing changed, retry: database is
54 locked` (it cannot switch the file to WAL and no longer falls back to memory). Main serves the
55 file and answers the claim 500, so the check FAILs on main. The lost-commit path inside a served
56 request cannot be forced through HTTP once WAL is required; the unit test
57 `store::tests::test_update_returning_reports_commit_failure` shows `query_row` losing the failure
58 (row returned, change rolled back) and `update_returning` reporting `Busy`.
59- Main's 400-trial race in this run had 2 raw 500 losers (`loser_other=2`), so main also fails
60 `race_two_cockpits_single_grant` here; the branch had 400 single grants and 400 409 losers.
61
62Not run: push, CI, merge, deploy, and any hardware or GPU path.