#1 [high] PR #607 essentials (what is being validated)
PR #607 "selene,selene-manager,helios: fix pool staging UAF, chain walk DoS, multi-process put corruption, and offload lifecycle bugs", author lukealonso (COLLABORATOR, Helios owner), head 4f12cae, merged 2026-11-29 17:17, +1211/-41 in 16 files. Labels: area:caching, area:selene, bug, duplicate, triage:review. Fixes #439 (closed).
Six fix groups:
- selene-manager/src/pool/claims.rs:1513-1516 — Core::window_released returns Ok(()) early when claim.channel().is_some(), so remote gRPC WindowReleased cannot clear reader bit 0 / drop window.extent while the data-channel handler reads the staging extent.
- selene-manager/src/pool/mod.rs:113-117 + index.rs:171-227 — entry_from rejects parent.consumed_tokens==0 or >= key.consumed_tokens; walk_chain rejects page_tokens==0, max_nodes==0, bounds visited entries.
- selene/src/pool/agent.rs:1561-1565 (+ net.rs:163 debug_assert) — forget_window after release_slot on failed channel.send; selene/src/pool/engine/requester.rs:1177 — withdraw_queued requires jobs_left==0 && peers_left.is_empty() && !released.
- selene-manager/src/pool/{core,claims,store_bridge}.rs — StoreHandle::next_transfer monotonic transfer IDs; Core::put_answer hoists record-relative first_page (store_bridge.rs:643-647).
- helios/src/server/runtime.rs:2114-2121 — Worker::park clears blocked/pool_lookup/pool_lookup_started/pool_plan/restore_wait before begin_pool_lookups on extended tokens.
- selene/src/memory.rs:2344-2349 drain_compressed calls start_deferred unconditionally; selene/src/composite.rs:1125-1134 disk_read releases incomplete memory copy + quarantines on error.is_record_read(); selene/src/shared/index.rs:503-511 take_while→filter in Index::expired (+docs/prefix-cache-offload.md).
Tests: 11 new regression tests; PR reports 5 selene + 5 selene-manager + 1 helios target all passing; declared NOT run: FLARE_RUN_CUDA_TESTS=1 live GPU/RDMA/multi-process, helios chat-template tests (FLARE_TEST_TEMPLATE_DIR), flare/Cargo.toml --locked (pre-existing deepseek-recipe lockfile mismatch). Known non-blocking caveats (final review Should Fix): (a) claims.rs guard also skips two Violation checks for channel claims on the untrusted gRPC path; (b) composite.rs quarantines permanently on transient record-open/read errors (EMFILE/EIO). No performance/speedup claim anywhere in the PR; it is a correctness/DoS fix. Only perf-adjacent change: Index::expired scans all entries every 60s when --prefix-cache-max-age is set (off by default).
#2 [high] Hardware inventory and what it can/cannot exercise
Available hardware (only cn7 usable):
- cn5: OFFLINE. 4x NVIDIA RTX PRO 6000 Blackwell Max-Q (SM120), 96 GiB each, amd64; job gets 48 CPUs/125 GiB/16 GiB scratch. Models: facebook/dinov2-base, local-inference-lab/GLM-5.3-Flash-NVFP4, nvidia/GLM-5.3-Flash-NVFP4, timm/vit_base_patch14_dinov2.lvd142m.
- cn7: READY. 1x NVIDIA GB10 (SM121, unified LPDDR5x, shares DRAM with CPU), arm64; job gets 10 CPUs, 60 GiB RAM, 16 GiB scratch. Models: incoai/Qwen3.8-27B-DFlash2, local-inference-lab/GLM-5.3-Flash-NVFP4, nvidia/GLM-5.3-Flash-FP4-Local, nvidia/Qwen3.8-27B-NVFP4, nvidia/Qwen3.8-Flash-Next-FP4-Local, zai-org/GLM-5.3-Flash.
Consequences for test design:
- 1 GPU on cn7 → TP1 cores only. Helios requires one GPU per rank (docs/model-preparation.md:468-470), so NO multi-rank/peer-rank paths: withdraw_queued peer-DMA gating (requester.rs:1177), linked multi-process put first_page (store_bridge.rs) and multi-rank staging slot paths cannot be exercised on cn7. They need cn5 (4 GPUs) when it is back, or 2 Spark hosts.
- GB10 is SM121 and shares DRAM with CPU (docs/model-preparation.md:475-499): prepare/export the core ON cn7, an SM120 core is refused by the architecture check. Qwen3.8-27B NVFP4 native ARM64 serving is qualified on RTX Spark (docs/windows.md:179-183). 60 GiB total RAM shared with the GPU → use a small single-GPU model and modest --prefix-cache-memory; 16 GiB scratch forces FLARE_OFFLOAD_TEST_DIR to the scratch disk and small disk limits.
- Data-channel (non-shared-memory) path IS reachable on one host: manager binary
selenewith--listen 127.0.0.1:P --listen-data 127.0.0.1:P+1, clientflare run ... --prefix-cache-pool 127.0.0.1:P. That is the only way to reach claims.rs window_released's channel guard, and it needs no second host (selene-manager/docs/network-operations.md:3-15,57-89). - RDMA data channel needs an RDMA device +
--features rdma(selene-manager/Cargo.toml:19, Dockerfile.rdma; docs/network-operations.md:108-136); GB10/Spark has a ConnectX-7 port used for RoCE multi-host (docs/multi-host.md). Optional stretch, not a correctness gate (selene-manager/docs/qualification.md:54-57).
#3 [high] Test-plan command set and cn7 constraints (final)
Commands (repo root, cn7): CPU tier:
- cargo test --locked --release --manifest-path selene/Cargo.toml --features test-support --target-dir flare-cli/target
- same for selene-manager (needs
selenebuilt first in the same target dir: rank_processes uses target-dir/release/examples/rank_node) — selene-manager/docs/qualification.md:43-47 - rdma variant: --features test-support,rdma for both (adds pool_channel
over_rdmar1/r2; needs libibverbs+CMake and an active RDMA port, Soft-RoCE ok) — qualification.md:36-37,54-57 - helios: FLARE_TEST_TEMPLATE_DIR=$T/bin prlimit --pid $$ --memlock=67108864:67108864 ; cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --target-dir flare-cli/target --lib (template tests FAIL, not skip, without FLARE_TEST_TEMPLATE_DIR: tests/frontend/prepare_templates.py --output DIR --recipe qwen38 --recipe glm53 ... needs huggingface-hub==1.33.0 — native-serving.yml:28-31,56-63)
- the 11 PR tests by name (matching PR command lines). GPU tier (cn7):
- export core ON cn7 (SM121 required; SM120 core refused — docs/model-preparation.md:468-478)
- offload HTTP suite: CUDA_VISIBLE_DEVICES=0 FLARE_RUN_CUDA_TESTS=1 FLARE_OFFLOAD_TEST_CORE=CORE .venv/bin/python -m pytest tests/server/test_prefix_cache_offload.py -q --basetemp SCRATCH/http (needs Qwen TP1 core with ordinary+MTP5 graphs; --basetemp on direct-I/O fs)
- manual pool-over-TCP (forces DATA_CHANNEL mode): selene --name pool --memory 2G --staging 512M --root SCRATCH/root --nvme 4G --listen 127.0.0.1:9200 --listen-data 127.0.0.1:9201 --metrics 127.0.0.1:9108 ; flare run CORE --gpus 0 --prefix-cache-pool 127.0.0.1:9200 --prefix-cache-memory 1G manager metrics: selene_pool_channel_windows_total{carrier="stream"}, selene_pool_channel_bytes_total, selene_pool_quarantined_bytes (core.rs:1008-1019); flare metrics: flare_host_cache_{stored,fetched,fetch_failed,hits,reused_tokens}_total.
- skip tests/server/test_cache_memory.py on cn7 (needs ≥4 concurrent requests with 130k output tokens each, 60 GiB unified RAM). Traps: /dev/shm must hold --memory+--staging (pool tests want 4g); manager needs protoc and io_uring (run directly, or deploy/seccomp-io-uring.json); FLARE_OFFLOAD_TEST_DIR on the 16 GiB scratch; GB10 60 GiB shared with GPU → [memory] reserve="4G", small --prefix-cache-memory/-disk-limit; known pre-existing flake a_record_put_into_a_manager_on_another_host_is_restored_over_tcp.