#1 [high] PR #549 verified findings (pre-test)
PR #549 "Report KV pages held by active requests" (draft, head 5ed7af8, +218/-10, 7 files, author WynnD, assoc NONE). Closes #537.
VERIFIED TRUE:
- SchedulerStats derives PartialEq/Eq (scheduler.rs:112); embedded whole in CopyoutResources (runtime.rs:1053-1059); compared at runtime.rs:2448 to gate retry_copyouts. New request_pages(reserved_pages) therefore join a behavioural key. CONFIRMED structurally.
- refill_reservations (scheduler.rs:1383-1425) pops from free_pages into reserved_pages -> free_pages changes on refill; commit (2433-2438) moves reserved->private with free_pages unchanged. So magnitude of extra copy-out retries is plausible but NOT proven statically.
- pin_request (cache.rs:551-563) calls self.pin(id)? then self.chain(id)? again; unpin_request (565-580) same -> 2 chain walks + 2 Vec allocs per call.
- Drift assertion #[cfg(test)] cache.rs:817-837 now compares request_pinned_pages vs full scan filtered request_pins>0. Runs on EVERY stats() read across the suite. This is the strongest correctness evidence and is host-independent.
- Compaction correct: compact_ancestor cache.rs:613-646, uncount(616)+tail_pages restore(617), debug_assert_eq!(node.request_pins, child.request_pins) at 627, heir inherits pages 629-631.
- eviction_candidates (658-664) requires pins==0 for leaf; compaction only when direct_pins==0 && child_count==1 -> request-pinned node never leaves nodes as leaf. Sound.
- unchecked usize subtraction cache.rs:576 (request_pinned_pages -= tail_pages.len()) guarded only by direct_request_pins==0 early-out (566) + subset invariant -> release build would wrap. Latent.
- retire order: request.take() at 3143, unpin_request(prefix)? at 3159 -> an Err leaks the pin after slot emptied. Latent.
- Inbound: ticket pages popped at 1704-1706, live request private_pages=Vec::new() at 1803, phase Inbound 1737 -> in neither gauge.
- docs/api.md:302 "read from scheduler state on each scrape" FALSE: metrics.rs render loads atomics only; stored only on progress passes (runtime.rs:1148-1149).
- PR body shared-ancestor sentence ("counts once for every request") contradicts code+test (counts once total; test asserts 3 not 4).
- PR body "a checkpoint leaves nodes only at zero pins" wrong for compaction.
- Test duplication: new scheduler test (tests.rs:970-1034) repeats branching_requests_own_distinct_tail_pages_and_terminal_snapshots (1036-1081) step for step.
- direct_request_pins used ONLY for the guard at cache.rs:566 (grep: 83,461,553,566,570).
VALUE GAP (own evidence): 399/21504 = 0.0186 request share vs #537's vLLM reference ~9% on comparable load. Narrows bounds but does not achieve vLLM parity; #537's cheaper option (split cached into pinned/idle) not taken nor explained.
HARDWARE: cn5 = 4x RTX PRO 6000 Blackwell SM120, models listed GLM-5.3-Flash-NVFP4 (TP4) + dinov2. cn7 = 1x GB10 arm64 SM121, Qwen3.8-27B-NVFP4 TP1 (documented qualified native ARM64 path, docs/windows.md:179,361). 16 GiB scratch both. No GPU kernel, no numerics, no throughput change, no per-model code -> A/B throughput test would be pure waste.
#3 [high] PR #549 head 9cca87ac — delta vs prior report, verified
Head 9cca87ac (draft, +246/−16, 8 files). Discussion: 1 bot review (Changes Requested, 2026-11-26), author asks for re-review 2026-11-27 04:56. No CI checks.
FIXED at this head (verified in code):
- Copy-out retry key: runtime.rs:2441-2450 builds CopyoutResources with SchedulerStats { request_pages: 0, reserved_pages: 0, ..stats() }; compared at 2455
retry_copyouts = retry || progress || self.copyout_resources != Some(resources). Restores pre-PR behaviour. CopyoutResources declared runtime.rs:1053-1059. - retire() ordering: unpin_request at scheduler.rs:3155 precedes request.take() at 3157 — a failed release now leaves the slot intact.
- cache.rs:548-550 doc comment corrected (cache now describes only tail_pages; private pages noted as scheduler-owned).
- docs/api.md:302 now says worker publishes (not "read from scheduler state on each scrape").
- Three mirrored
if inbound.is_none()pin blocks replaced by pin_prefix/unpin_prefix (scheduler.rs:1643-1645, 1656, 1678; helpers at 2025-2040).
STILL OPEN:
- pin_request/unpin_request walk chain twice: cache.rs:552
self.pin(id)?(chain at 523) then 554self.chain(id)?again; unpin mirrors at 569/571. Four reviews + synthesizer call this should-fix; the fold (pin_with(id, request)) rewrites exactly the functions that own the counter. - Three ways to take a request pin: pin_prefix(.., true) + direct cache.pin_request/unpin_request at scheduler.rs:1889, 2977, 2979, 2997, 2998, 3155.
- docs/api.md:307-310 self-contradictory: says request+reserved is the comparable figure, then says "Dividing either gauge by flare_total_kv_pages excludes ...".
- docs/api.md:311-312 documents a #[cfg(test)] drift assertion in the operator API page.
- docs/api.md:302 "on every scheduler pass" overstates: published only when progress (runtime.rs:1148-1149), plus startup 722 and drained shutdown 745.
- docs/api.md field table (332-362) has no rows for the two gauges; JSON snapshot deliberately excludes them but api.md never says so.
- PR body still says "counts once for every request that references it" (code/test: once total, test asserts 3 not 4) and "a checkpoint leaves nodes only at zero pins" (false for compaction).
- New scheduler test tests.rs:970-1034 replays branching_requests... (1036-1081) step for step; only 1010-1033 is new.
CORRECTION to my prior §2.2: #537's own option 1 is literally "flare_request_kv_pages ... then request/total matches vLLM". The PR implements that. The 399/21504 = 1.9% vs #537's ~9% comparison is NOT apples-to-apples (different model, pool size 21504, different load), so "off by 5x / does not deliver" was overstated. Reframe: ratio comparability with vLLM is unverified and is a reporter question, not a hardware question.
COVERAGE GAP: author's reported run --lib -- cache:: scheduler:: server::metrics does NOT select server::runtime::phase_tests, so the runtime.rs change (copy-out key) is unexercised by the 508-test claim. Copy-out deferral tests exist at helios/src/server/runtime/phase_tests.rs:6357-6431 (local_copyout_defers_without_a_pin..., local_copyout_rechecks_headroom_after_each_queued_pin, local_copyout_discards_an_evicted_unpinned_deferral) and 6176 reoffer_counters.
#4 [high] Report of 2026-11-27 (head 9cca87ac) — recommendation flips to host-only
Head 9cca87ac. Recommendation: DO NOT refer to hardware test. The one behaviour-changing defect (gauges in the copy-out retry key) is fixed, and what remains is (a) should-fix structural/doc items that do not change the assertions a test would carry, (b) a coverage gap in the author's own reported test run, and (c) an observability-only change whose arithmetic is host-computable. So hardware time buys ~nothing; host CI + one scrape is the right spend. Key content: verified-fixed list, remaining items (pin_request double chain walk; three request-pin entry points; docs/api.md:307-310 contradiction, 311-312 cfg(test) in API page, 302 publish cadence, 332-362 missing rows / JSON omission unstated; PR body's two false sentences; duplicated scheduler test), coverage gap (508-test filter omits server::runtime::phase_tests which hold the copy-out deferral tests at phase_tests.rs:6357-6431, 6176), correction of my prior §2.2 overstatement, contingency one-job cn7 plan.