interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / evidence / store_512b_qemu_2026-09-25.md

90 lines · 7582 bytes Raw Blame History Source

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

TierMarkerMethodClaimNot claimed
SmokeSTORE_NVME_INTEGRATION_512B_QEMUprovision, one transaction, reopen through the real NVMe driver at 512-byte LBAthe Store engine runs over 512-byte geometry via BoundedNvmeMachine 1 behaviour
1STORE_512B_CRASH_OBSERVED_QEMUhost SIGKILLs QEMU at each of the 7 engine checkpoints, settle 0 and 3, then reopensafter a VM/process crash at any checkpoint the store reopens Valid at generation N or N+1 as ADR 0015 orderspower loss: QEMU's accepted writes survive in the host file whether flushed or not; volatile-cache loss is #133's scope
2aSTORE_512B_ROOT_TEAR_CLOSUREhost 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 enumeratedon 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
2bSTORE_512B_INJECTED_ROOT_RECOVERY_QEMUdeterministic 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 paththese 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