Parent: https://github.com/aien-dev/aienix/issues/4 Depends on: read adapter #629, GPU slots/fences #533, residency manager #630. Baseline receipt: benchmarks #29.
Scope
Build the actual double-buffered ribbon scheduler for experts: while GPU consumes ready expert slots, a bounded read/verify/copy pipeline prepares future known-needed experts in a separate staging/slot region. Exchange slots only through Omega's completed-copy + retired-reader protocol. This is logical buffering; do not claim physical RAM-cell proximity.
Deliverables
- Explicit async tasks/queues for disk read, integrity check, GPU copy, publication, execution, retirement, with ownership, deadlines, bounded queue capacities and deterministic shutdown.
- Known-demand lookahead only at first (top-k selected by the real router, and later-stage dependencies actually determined); no speculative predictor in this issue.
- Single-buffer synchronous control mode, and two-buffer async mode with exact same checkpoint, token IDs, weights, arithmetic results and error propagation.
- Timeline trace of actual SSD read, host wait, GPU copy, GPU useful compute, exposed stall and overlap; define wall clock origin, prevent double-counting overlap.
- Handle hot-reused experts without pointless retransfer. Respect serialized GPU execution paths and current device-address-table use.
Acceptance
- Deterministic fake-I/O and fake-GPU tests demonstrate overlap when timeline allows it, and no speedup (rather than false reporting) when it does not.
- Stress cancellation, missing/corrupt expert, stalled NVMe, GPU error and shutdown while buffers are busy. No use-after-free, partially published data, double occupancy or unbounded resource growth.
- GB10 receipt compares single- vs double-buffer mode over same fixed model/prompt and reports TTFT, tok/s, IO bytes, copy/stall time, p95 tail latency, correctness and peak allocations. A slower result is a valid outcome.
Exclusions
No predictive future-router guessing, no weight tiling, no new model architectures, no 128K context enablement.