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):
| Binary | sha256 |
|---|---|
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.
| Run | Result |
|---|---|
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) |
http branch | 53 PASS, 0 FAIL, 0 NOT_RUN |
http main (negative control) | 14 PASS, 39 FAIL, exit 1 |
table branch | 2052 rows (1992 plus 60 command id rows), 0 mismatches; reap count matches; 29/29 mutants killed |
table main | driver error exit 80: main's table has no fence columns, so the rows cannot be seeded (expected) |
migrate branch | 10/10 PASS (adds forge_commands; reopening the migrated file is a no-op) |
migrate main (negative control) | 4 PASS, 6 FAIL, exit 1 |
| cargo test | spark-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 ignorescommand_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 400invalid; 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_unchangedgives the cockpit a rollback-journal database whilesqlite3holds 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 teststore::tests::test_update_returning_reports_commit_failureshowsquery_rowlosing the failure (row returned, change rolled back) andupdate_returningreportingBusy. - Main's 400-trial race in this run had 2 raw 500 losers (
loser_other=2), so main also failsrace_two_cockpits_single_granthere; the branch had 400 single grants and 400 409 losers.
Not run: push, CI, merge, deploy, and any hardware or GPU path.