Store v1 over NVMe, 512-byte LBA: QEMU qualification (2026-09-25)
Lane: feat/p3-store-512b-crash-qemu (PR #136), code commit
51eaa4c80bfa806d737c0068a0ce9b82c1695e0c (clean tree), base main 123929a.
Test-only. QEMU only. No ADR 0015 format, recovery-policy, NVMe-policy, or
Machine 1 changes. P3_STORE_QEMU and P3_STORE_NATIVE are not claimed.
Reproduce: ./scripts/qemu_store_512b_crash_test.sh
Same commit: AIENOS_STRICT=1 ./scripts/verify_all.sh exit 0, 273 PASS,
0 FAIL, 0 SKIPPED (this script is not yet part of verify_all).
What each tier proves, and what it does not
| Tier | Marker | Method | Claim | Not claimed |
|---|---|---|---|---|
| Smoke | STORE_NVME_INTEGRATION_512B_QEMU | provision, one transaction, reopen through the real NVMe driver at 512-byte LBA | the Store engine runs over 512-byte geometry via BoundedNvme | Machine 1 behaviour |
| 1 | STORE_512B_CRASH_OBSERVED_QEMU | host SIGKILLs QEMU at each of the 7 engine checkpoints, settle 0 and 3, then reopens | after a VM/process crash at any checkpoint the store reopens Valid at generation N or N+1 as ADR 0015 orders | power loss: QEMU's accepted writes survive in the host file whether flushed or not; volatile-cache loss is #133's scope |
| 2a | STORE_512B_ROOT_TEAR_CLOSURE | host proof over the Tier 1 images killed at after_first_flush and after_final_flush: the images differ only in one superblock slot, and all 256 sector subsets of that 8-sector write are enumerated | on a 1-LBA-atomic device (AWUPF=0) a torn root write can only leave the old or the new slot, because every non-zero superblock byte lies in sector 0 and the engine only overwrites a zero or valid slot (sectors 1..7 zero in both) | device behaviour below one-LBA atomicity |
| 2b | STORE_512B_INJECTED_ROOT_RECOVERY_QEMU | deterministic media-corruption injection into the inactive slot by aienos-store-tool (kernel encoder and CRC; CRC recomputed so each case reaches the check it names) | the engine's malformed-peer, graph-bad-newer and unsupported-version decisions hold over the native NVMe path | these are not crashes and not torn writes |
The peer classification in every line is Store::peer_condition(), the
engine's own decision at open, not a re-derivation in the guest.
Results
=== Integration Smoke (512-byte LBA) ===
PASS integration smoke (provision + transact, 512b non-atomic qualification active)
PASS reopen smoke (generation=2 state=Valid peer=Valid)
=== Tier 1: Checkpoint SIGKILL Campaign ===
settle=0 cp=before_first_write saw=1 reopen=1 slot=1 gen=1 state=Valid peer=Zero expect=N -> OK
settle=0 cp=after_payloads saw=1 reopen=1 slot=1 gen=1 state=Valid peer=Zero expect=N -> OK
settle=0 cp=after_catalog saw=1 reopen=1 slot=1 gen=1 state=Valid peer=Zero expect=N -> OK
settle=0 cp=after_commit_record saw=1 reopen=1 slot=1 gen=1 state=Valid peer=Zero expect=N -> OK
settle=0 cp=after_first_flush saw=1 reopen=1 slot=1 gen=1 state=Valid peer=Zero expect=N -> OK
settle=0 cp=after_superblock_write saw=1 reopen=1 slot=1 gen=2 state=Valid peer=Valid expect=N_NP1 -> OK
settle=0 cp=after_final_flush saw=1 reopen=1 slot=1 gen=2 state=Valid peer=Valid expect=NP1 -> OK
settle=3 cp=before_first_write saw=1 reopen=1 slot=1 gen=4 state=Valid peer=Valid expect=N -> OK
settle=3 cp=after_payloads saw=1 reopen=1 slot=1 gen=4 state=Valid peer=Valid expect=N -> OK
settle=3 cp=after_catalog saw=1 reopen=1 slot=1 gen=4 state=Valid peer=Valid expect=N -> OK
settle=3 cp=after_commit_record saw=1 reopen=1 slot=1 gen=4 state=Valid peer=Valid expect=N -> OK
settle=3 cp=after_first_flush saw=1 reopen=1 slot=1 gen=4 state=Valid peer=Valid expect=N -> OK
settle=3 cp=after_superblock_write saw=1 reopen=1 slot=1 gen=5 state=Valid peer=Valid expect=N_NP1 -> OK
settle=3 cp=after_final_flush saw=1 reopen=1 slot=1 gen=5 state=Valid peer=Valid expect=NP1 -> OK
STORE_512B_CRASH_OBSERVED_QEMU: PASS
=== Tier 2a: Root Tear Closure (host proof over Tier 1 images) ===
settle=0 STORE_ROOT_TEAR_CLOSURE: PASS (slot=1 old=zero new=gen2 sector_bytes=512 differing_sectors=[0] combinations=256 as_old=128 as_new=128)
settle=3 STORE_ROOT_TEAR_CLOSURE: PASS (slot=0 old=gen3 new=gen5 sector_bytes=512 differing_sectors=[0] combinations=256 as_old=128 as_new=128)
STORE_512B_ROOT_TEAR_CLOSURE: PASS
=== Tier 2b: Injected Root Recovery (media corruption, one defect per case) ===
case=bad_crc decode=BadSuperblockCrc gen=1 state=DegradedRecovery peer=Malformed readonly=1 expect=degraded:Malformed -> OK
case=wrong_magic decode=BadSuperblockMagic gen=1 state=DegradedRecovery peer=Malformed readonly=1 expect=degraded:Malformed -> OK
case=nonzero_reserved decode=NonzeroReserved gen=1 state=DegradedRecovery peer=Malformed readonly=1 expect=degraded:Malformed -> OK
case=wrong_slot_id decode=WrongSuperblockSlot gen=1 state=DegradedRecovery peer=Malformed readonly=1 expect=degraded:Malformed -> OK
case=region_mismatch decode=Ok gen=1 state=DegradedRecovery peer=Malformed readonly=1 expect=degraded:Malformed -> OK
case=seeded_garbage decode=BadSuperblockMagic gen=1 state=DegradedRecovery peer=Malformed readonly=1 expect=degraded:Malformed -> OK
case=unsupported_version decode=UnsupportedVersion gen=none state=none peer=none readonly=0 expect=refuse:UnsupportedVersion -> OK
case=graph_bad_newer decode=Ok gen=1 state=DegradedRecovery peer=GraphBadNewer readonly=1 expect=degraded:GraphBadNewer -> OK
case=control_new_root decode=Ok gen=2 state=Valid peer=Valid readonly=0 expect=valid:gen2 -> OK
STORE_512B_INJECTED_ROOT_RECOVERY_QEMU: PASS
=== Final Summary (commit 51eaa4c80bfa806d737c0068a0ce9b82c1695e0c) ===
STORE_NVME_INTEGRATION_512B_QEMU: PASS
STORE_512B_CRASH_OBSERVED_QEMU: PASS
STORE_512B_ROOT_TEAR_CLOSURE: PASS
STORE_512B_INJECTED_ROOT_RECOVERY_QEMU: PASS
STORE_512B_CRASH_RECOVERY_QEMU: PASS
P3_STORE_QEMU: NOT CLAIMED (QEMU campaign; native persistence conditions separate)
P3_STORE_NATIVE: NOT CLAIMED
Reading the settle=3 tear-closure line: generation 5 overwrites the generation-3 superblock in slot 0, so the proof covers overwriting a live older root, not only a zero slot.
Changes from the first #136 revision
- Tier 2 renamed from "deterministic torn root recovery" to injected-root
recovery. The old cases pre-filled the slot with
0xAA, a state the engine never writes, and applied the magic and reserved defects after the CRC, so all three only exercised the CRC check. - Injection base moved from genesis (
before_first_write) toafter_first_flush, with the real generation-2 superblock as the source. os.urandomgarbage replaced by a fixed-seed xorshift64 stream.- All
python3removed from the script (aienos-store-tool). - Guest peer telemetry now comes from the engine (
PeerCondition); the old guest heuristic labelled any decodable peerGraphBadfrom mount state.