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 / docs / native / PI5-5-CORTEX-RUNS.md

68 lines · 5190 bytes Raw Blame History Source

PI5-5 Cortex memory on the Raspberry Pi 5 (qualification record)

Tier: PI5-CORTEX-QUALIFICATION. Image: make pi5-fact (the PI5-4 pi5-unlock-card image, production-class Store opened by the Slot 1 recovery secret, plus the Cortex fact stage). It never builds on the TEST-key store tier. Hardware runs F1 to F3 are NOT_RUN in this document until the Pi is free; the host proof is below.

What is reused

What is new

Host proof (file-backed card, dev/tests/pi5_fact_test.c, run by stage-test and stage-sanitize)

77 checks, ASan + UBSan clean. Every boot reopens the file and starts from a cold C state. Boot 1 (card fact) remembers prefer short notes and prints its Store generation; boot 2 (no request) recalls the same text at the same generation, adds no record, chain ok; the wrong secret recalls nothing, prints no fact text and leaves the card byte-identical (also when a fact request comes with it); the right secret afterwards recalls again; a second fact keeps both in order; a card with no journal says none and creates none; the request checker refuses every malformed layout. Mutation proof (make -f stage.mk pi5-fact-mutants): CK_FACT_MUTANT_NO_APPEND (the commit skipped, success still reported) and CK_FACT_MUTANT_RECALL_BLIND (recall never reads the journal) both make the test fail (mutants killed).

Pi runs (PASS, 2026-10-13, Raspberry Pi 5, main dd99eda, make pi5-fact)

Each run is one tryboot of the hub (~/workspace/pi5/pi5-run-fact.sh, KLOG=1): a soft reboot into AIENOS and back, NOT a power cut. The Store partition head was zeroed before F1 (the PI5-4 Store's throwaway secret no longer exists). Secrets S and W are throwaway QUALIFICATION ONLY request files, kept outside git and deleted from the card after each run.

F1 remember (UNLOCK.REQ S, FACT.REQ "prefer short notes"):

store: opened generation=1 boot_count=0 prev_commit=none anchor=valid-resume
store: committed generation=2 boot_count=1
fact_stage: remembered id=1 t=1 store_gen=4 bytes=18 text="prefer short notes"
fact_stage: readback id=1 t=1 store_gen=4 text="prefer short notes"

F2 recall on the next boot (UNLOCK.REQ S, no FACT.REQ):

store: opened generation=4 boot_count=1 prev_commit=dd99eda1ec2d3e6b097bfb71a9583b153e3face7 anchor=valid-resume
fact_stage: recalled id=1 t=1 store_gen=4 text="prefer short notes"

F3 wrong secret W:

store: REFUSED proof=keyed step="recovery secret rejected (K_vol unwrap tag failed); disk not opened" rc=-2004 (RecoverySecretRejected); disk left as found, not reformatted
fact_stage: NOTHING RECALLED: the Store is not open (recovery secret missing or rejected, or the disk was refused); no Cortex was read, nothing was written

Limits: tryboot reset, not a power cut (a power-cut recall run is owed, done by hand); secret from the card, no TPM; the anchor shares the disk, so a whole-disk rollback is not detectable; single runs.