#2 [high] Pre-test report v2 (head 0c04b1e2), run 263 — decision: REFER to hardware, minimal cn7 plan
PR #496 head 0c04b1e2 (base main c0c4f798), 3 files +3358/−933: selene/src/disk_store.rs, selene/src/shard.rs, docs/prefix-cache-offload.md. Author FujitsuPolycom.
Prior report (note #1) blockers — all settled at this head, verified by 3 lenses (Correctness clean, Simplicity clean, Prose clean, Architecture no blocking):
- logical/physical byte conflation in inbound_rate → FIXED: TransportEvent::InboundWindowSample observed once per physical window (disk_store.rs:3632-3635, emitted apply_shared_disk), stats.bytes_in logical (:3669), Fetched no longer samples.
- 61.3K 8/9-vs-7/9 regression → RESOLVED: 5 seed repeats (1234..1238, 60,534 tokens) identical top-5 logprobs/token ids both arms; temperature=0 clamped by helios, per-build prompt nonces caused the original gap. New test misaligned_follower_attaching_to_shared_partial_tail_and_row_matches_private_restore (~:8900+) byte-compares vs private baseline.
- benchmarks predate head → FIXED: table keyed main c0c4f798 vs 0c04b1e2; 18,177.5→4,306.7 MB (4.22x), TTFT 7,974.6→5,662.8 ms (−29.0%) simultaneous; 18,194.2→4,843.6 MB (3.76x), 6,883.6→5,951.9 (−13.5%) staggered; Flash-Next 7,944.9→1,981.1 (TTFT −3.1%) / 7,958.0→2,251.5 (−2.8%).
Remaining should-fixes (all behaviour-neutral for the measurements, per lenses):
- TransportEvent::InboundWindowSample rides the wire-event enum (disk_store.rs:97-101; shard.rs:477 unreachable!, guards shard.rs:722-725 & :1148-1150; shard/tests.rs:339 maps Kind::of over events). CompositeStore bumps stats.progress per event (composite.rs:1376) → maintenance re-runs per physical window (gate :1418-1424). Not a defect today; release-panic only via a new caller.
- HeaderIdentity hand-written Hash (disk_store.rs:1014-1050) duplicates Header PartialEq (shared/record.rs:136-152); silent drift hazard once #504 (Header.packed) lands. Verified field-consistent today.
- pick_next_pending_plan restates Layout::record_slots (disk_store.rs:1766-1777 vs geometry.rs:180-182).
- Subtractive: deleting build_pending_demand+demand (~80 lines) is behaviour-visible ONLY in staggered arrival ordering (author's own 3.76x vs 4.22x note) — must be flagged in report as the one change that could alter a tested number.
- selene::disk_store is
pub mod(lib.rs:25) so the new variant is public-API addition, not re-exported. - Exact assertion disk_window_reads()+coalesced_windows()==10 at disk_store.rs:8487 (Value lens calls it flake-prone; appears to be a total-window invariant) → Step 0 re-run once, non-blocking.
Hardware: cn7 ready, 1× GB10 (SM121, same class as author's evidence), job 10 CPUs / 60 GiB RAM / 16 GiB scratch; models nvidia/Qwen3.8-27B-NVFP4, Qwen3.8-Flash-Next-FP4-Local, incoai/Qwen3.8-27B-DFlash2 listed at 0 GiB (verify cached). cn5 never connected → unused. Feasibility note: 61K-token prefix ≈ 954 pages × ~4.19 MB ≈ 4.0 GB records → fits 16 GiB scratch; 4 concurrent branches fit 60 GiB RAM; 8 branches risky. Discrepancy worth one trial: description says 8 branches but before-read 18.18 GB ≈ 4.5 copies (not 8) while bytes_in is claimed 8× → run 4 branches to match the table (expect ~4.2x). Test plan ~2h: Step 0 desk cargo test -p selene --features test-support (~476 tests); Step 1 A/B 4-branch burst, physical NVMe bytes from /sys/block/*/stat or /proc/diskstats delta (not bytes_in, which is logical), burst median TTFT, fetch_failed==0; Step 2 correctness 4/4 outputs byte-identical to disk-off baseline + 3-repeat 61K parity spot check; Step 3 regressions single-stream restore ≈ main, tests/server/test_prefix_cache_offload.py (composite read_into), SIGTERM drain. Skip: Flash-Next, DeepSeek TP4, multi-host RoCE, Windows, discrete PCIe, cn5, >3 trials/arm. #497 not stacked on #496; #496's pump_all still runs maintenance first (disk_store.rs:2291-2312).
#3 [high] cn7 run prerequisites verified: explicit --prefix-cache-disk-limit, metric names, offload test env
PLAN-CRITICAL for cn7 (16 GiB scratch): docs/prefix-cache-offload.md:839-842 — "Disk limit: one tenth of the free space on the directory's filesystem at startup. --prefix-cache-disk-limit SIZE overrides it; zero selects no disk store and does not create its directory."
Consequence: on a 16 GiB scratch the DEFAULT disk limit is ~1.6 GB, while a ~61K-token Qwen3.8-27B-NVFP4 TP1 prefix is ~954 pages × ~4.19 MB ≈ 4.0 GB of parent record. The warm prefix would be evicted/thinned and the burst would restore from prefill instead of disk — the test would silently measure nothing. MUST pass --prefix-cache-disk-limit 8G (or similar) explicitly, and assert startup reports that limit. Child branch records are small (tails only), so 4 branches fit alongside the parent.
Metric names verified (helios/src/server/metrics.rs:1087-1310): flare_host_cache_lookups_total, _hits_total, _reused_tokens_total, _stored_total, _store_failed_total, _fetched_total, _fetch_failed_total, _bytes_in_total (LOGICAL, not usable as physical gauge), _inbound_bytes_per_second (exposed DiskStore inbound_rate — now disk-thread-only), _inbound_in_flight, _outbound_in_flight, _slots_in_use/_slots_total/_intake_slots, _disk_records/_disk_bytes, _restores_total{tier="nvme"}. Flush with flare_host_cache_inbound_in_flight==0 / outbound_in_flight==0 (pattern at tests/server/test_prefix_cache_offload.py:49-57).
Regression test prerequisites (tests/server/test_prefix_cache_offload.py:26-31 + docs/prefix-cache-offload.md:1425-1447): needs FLARE_RUN_CUDA_TESTS=1, CUDA_VISIBLE_DEVICES, FLARE_OFFLOAD_TEST_CORE=<core .safetensors>, built flare-cli release binary, --basetemp on a direct-I/O filesystem, and it launches its own servers. Docs show cargo test --manifest-path helios/Cargo.toml --all-features offload:: -- --ignored --test-threads=1 with FLARE_OFFLOAD_TEST_DIR for the Rust equivalents. NOT a drop-in "run the CLI" step — pre-check the env or fold these into Step 0; if the runtime core is unavailable on cn7, substitute an HTTP-level corrupt-record check.
test_prefix_cache_offload.py already asserts the exact properties I want (fetched>0, fetch_failed==0, reused_tokens>32000 at :160-173; corrupt-record fallback at :185-186) → it is the cheapest composite/read_into + failure-isolation regression available.
selene test geometry constants for reference: PAGE_RECORD=16384, ROW_RECORD=4096 (disk_store.rs:3956-3958) — unit-test scale only, not the model scale.
#5 [high] PR #496 now conflicts semantically with merged #504 (v4 packed disk path) — mandatory rebase
VERIFIED at ref main vs pr/496 (head 0c04b1e2, base c0c4f798; branch last updated 2026-11-25 05:23 UTC, #504 merged 2026-11-25 18:22).
Post-#504 main has, in selene/src/disk_store.rs:
- :949
enum Destination(with:961 HostPacked), :1043struct InboundRecord(:1036packed_buf), :1481completed_packed_reads - :1555
pub fn write_packed(..), :1576pub fn read_into_packed(..), :1619pub fn take_packed_read(..) - :259
enum Sourceincl.:273 HostPacked;ReadPackeddisk job (:1318 submit, :1089/:1099 completion, :1298-1330 contiguous packed read) selene/src/composite.rs:565write_packed, :871read_into_packed, :1042take_packed_read(zero-copy packed disk spill/restore)selene/src/shared/record.rs:127pub packed: Option<Arc<packed::Layout>>and it IS inHeader::PartialEq(main:146,eqat :144-160).
At pr/496 (searched all of selene/src): NO matches for write_packed, read_into_packed, take_packed_read, Source::HostPacked, HostPacked, Destination, InboundRecord. #496's enum Source (pr/496 disk_store.rs:274) has only Device and Host; its enum Owner (:265) has HostInbound/SharedSegment, no InboundRecord.
=> #496 deletes/rewrites precisely the code post-#504 main depends on for compressed (v4 packed) disk checkpoint spill + restore. Merging requires porting the whole packed path onto HostInbound/DeviceInbound/SharedWindow: packed windows are read as one contiguous ReadPacked per record (not per-window ReadPages/ReadRow), need a packed payload buffer in the host inbound record (Destination::HostPacked + completed_packed_reads semantics), and the coalescing key SegmentKey{path, expected: HeaderIdentity} must account for Header.packed.
Correction to the case-file's claim: #496's hand-written Hash omitting packed (pr/496 disk_store.rs:1016-1031, .. at :1030) does NOT let two records collide into one WindowKey — HeaderIdentity::eq (pr/496 :1006-1010) still compares full Header, so a==b ⇒ hash(a)==hash(b) holds and unequal keys are separated inside the bucket. It is a hash-coarseness/perf hazard plus a maintenance trap, not correctness.
Docs: #504 also touched docs/prefix-cache-offload.md (+89/−6), including the §2.4 region #496 rewrites (pr/496 docs:330-366).
#7 [high] Report of 2026-11-25-2, run 3 (round 3) — decision: DO NOT refer to hardware yet (#504 collision)
Round 3 (head unchanged 0c04b1e2). Decision: DO NOT refer to hardware testing yet.
New blocking reason (see note #5 for citations): merged #504 put the v4 packed disk spill/restore path (write_packed / read_into_packed / take_packed_read / Destination::HostPacked / ReadPacked / completed_packed_reads) into main's selene/src/disk_store.rs and composite.rs:533-565, 869-874, 1039-1062; #496 deletes Destination/InboundRecord and has zero matches for all of those symbols. Requires a semantic port (packed destination on HostInbound/DeviceInbound, contiguous ReadPacked window model, decide whether packed records coalesce, reconcile docs §2.4 with #504's +89/-6). Also Header.packed now exists in main's PartialEq, so #496's HeaderIdentity hash omits it (hash coarseness, not collision — map key equality is fine). A/B baseline c0c4f798 predates #504.
Round-2 blockers remain closed (physical vs logical inbound_rate; 61.3K parity via 5 cold-VRAM repeats + misaligned-follower test; benchmarks keyed to head at the time). Should-fix left: InboundWindowSample on TransportEvent (unreachable! at shard.rs:476-478, guards :722-725/:1148-1150, composite.rs:1376 progress inflation); HeaderIdentity manual Hash; pick_next_pending_plan restates Layout::record_slots (pr/496:1767-1777); §2.4 doc paragraph duplicating §4; maintainer sign-off; exact-total flake at disk_store.rs:8487.
Minimal plan AFTER rebase (~2-2.5 h cn7): Step 0 desk cargo test -p selene --features test-support incl. post-#504 packed suites + build current main; Step 1 4-branch cold-VRAM burst A/B with --prefix-cache-disk-limit 8G, physical bytes from /proc/diskstats (NOT flare_host_cache_bytes_in_total), 3 interleaved trials; Step 2 all four outputs byte-identical to disk-off serving, one staggered no-hang run, 3x 61.3K 9-fact probe both arms; Step 3 single-stream parity, tests/server/test_prefix_cache_offload.py (needs FLARE_RUN_CUDA_TESTS=1, CUDA_VISIBLE_DEVICES, FLARE_OFFLOAD_TEST_CORE, --basetemp direct-I/O), SIGTERM drain. Skip multi-host/Windows/discrete-PCIe/split_pools/DeepSeek/Flash-Next/cn5 and all compressed-mode live testing (no core declares codec_layout).
#6 [medium] cn7 plan post-rebase: compression live-test likely impossible (no codec_layout in repo cores)
From merged #504's own material limitations: "nothing in this repository declares codec_layout ... so every core exported here serves off", and it flags as a doc defect that the omission is not listed. Live --lossless-kv-compression cpu|gpu requires a core with codec_layout.
Consequence for the cn7 plan after #496's rebase: do NOT budget GPU time for packed-mode restores; confirm first whether the served core (nvidia/Qwen3.8-27B-NVFP4 exported via local-inference-lab/hyperflare-recipes) declares codec_layout. If not, the ported packed path is only exercisable by cargo test -p selene --features test-support and the SM121 helios offload:: GPU suites (#504 reports 490 selene tests and real-GPU codec round trips).
=> cn7 hardware value after rebase remains exactly the coalescing claim in uncompressed mode (4-branch cold-VRAM burst, A/B vs main). Everything else is desk/unit work.
Also: post-#504 Header carries packed, so #496's coalescing benchmark numbers were measured on a tree whose Header had no packed field. Not a blocker, but the A/B arm must be rebuilt from post-#504 main for a like-for-like comparison (author's baseline c0c4f798 predates #504).