Parent: https://github.com/aien-dev/aienix/issues/4
Scope / ownership
Own host-side read-only checkpoint slicing and storage I/O, not GPU allocation or cache policy. Existing OWN-30B checkpoint loader, FP8 block-128 scale handling, safetensors index/shards: qwen3_moe_omega.rs. Existing persistent-KV store is not the expert-weight store.
Deliverables
- Define a versioned expert-weight artifact index keyed by (model digest, layer, expert ID, projection type, quantization format, data digest). Preserve original weight/scales layouts and correct byte ordering/alignment; fail on missing/duplicate IDs and format mismatch.
- Deterministic, reversible checkpoint-to-expert indexer that does not overwrite the original checkpoint; support random reads of one selected expert without scanning or decoding all shards.
- Asynchronous bounded Linux-host NVMe read adapter into caller-provided staging buffers, with queue depth, size/capacity limits, cancellation, deadline and structured errors. Try buffered/direct I/O behind a common interface; choose based on measurement, not assumption.
- Integrity check of each cold block before it is marked ready. Avoid trusting a manifest digest that covers only the index and not underlying weight shards; see existing shard-binding issue.
- Tiny deterministic fake adapter for concurrency, latency, failure, corruption and cancellation tests. No privileged device access and no filesystem repartitioning.
Acceptance
- Random-access expert weight/scales round-trip against existing fully resident loader, byte-for-byte for supported FP8 source files.
- Invalid metadata/hash, EOF, short read, stalled read, cancellation and insufficient capacity return explicit errors with no partial 'ready' state.
- Host tests and sanitized/negative controls; GB10 read-only NVMe measurements in a separate recorded receipt.
- No new GPU math, no promise of SSD-as-RAM bandwidth.
Dependency
Can proceed alongside P0 baseline and the Omega GPU-slot contract; integration follows in later P2 issues.