#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.