#1 [high] Change: what PR #549 does, size, files
PR #549 "Report KV pages held by active requests", author WynnD (association NONE), open, draft, opened 2026-11-26, head 5ed7af8, base main, 7 files +218/-10, no reviews, no CI checks on head, no comments at all (pr_comments empty).
Files: docs/api.md (+9), helios/src/cache.rs (+60/-1), helios/src/cache/lifecycle_tests.rs (+3), helios/src/cache/tests.rs (+24), helios/src/scheduler.rs (+38/-9), helios/src/scheduler/tests.rs (+66), helios/src/server/metrics.rs (+18).
Substance:
- cache.rs:
Checkpointgainsdirect_request_pinsandrequest_pins(subset of direct_pins/pins);PrefixCheckpointCachegains maintainedrequest_pinned_pagescount (cache.rs:222-224); newpin_request/unpin_request(cache.rs:548-580) that call pin/unpin then increment/decrement request pins along the whole ancestor chain, adding/subtractingnode.tail_pages.len()when a node's request_pins crosses 0/1;unpin_requesterrors whendirect_request_pins == 0;compact_ancestorgetsdebug_assert_eq!(node.request_pins, child.request_pins)(cache.rs:627);CacheStats::request_pinned_pages(cache.rs:188-189) exposed from stats (cache.rs:842); the test-only drift assertion instatsnow includes request_pinned_pages vs a full scan filteringrequest_pins > 0(cache.rs:817-837). - scheduler.rs:
SchedulerStatsgainsrequest_pagesandreserved_pages(scheduler.rs:130-133); computed inRequestScheduler::stats(scheduler.rs:1217-1228) as sum over live slots ofprivate_pages.len()+cache.request_pinned_pages, and sum ofreserved_pages.len(). - scheduler.rs pin call-site swaps: admission pin when
inbound.is_none()→ pin_request (1643-1649) and matching rollout unpins on the two error paths (1657-1691); ticket waiters (1900); boundary publication created (2971/2973) and existing-ready resume path (2991/2992); retirement release (3159). Plain pin retained when inbound.is_some() (ticket parent), and in pin_checkpoint/unpin_checkpoint (scheduler.rs:2038-2044) used by runtime.rs for host-store copy-out/export. - metrics.rs: two AtomicU64 gauges stored in
Metrics::scheduler(metrics.rs:514-518) and rendered asflare_request_kv_pages/flare_reserved_kv_pages(metrics.rs:1306-1318); not added to JSONSnapshot(server/metrics.rs:106cached_pagesfield list unchanged; snapshot() at :355-393 omits them). - docs/api.md:298-305 new prose paragraph defining both gauges and the ratio statement.
Claimed: visibility only, no allocation/eviction/scheduling change. Test evidence: Linux x86_64 release --lib -- cache:: scheduler:: server::metrics: 508 passed. Live scrape on two-GPU DeepSeek-V4.1-Flash with #536, base AzallazA fork 5ffe4d54 (needs engram, upstream #482). Closes #537.
#2 [high] Why: issue #537 (the motivating request) detail
Issue #537 "Metrics: KV cache usage cannot be computed with vLLM semantics (pages held by active requests are not exposed)", by Napuh, opened 2026-11-26 09:07 (same day as PR #549 opened; PR closes it). No comments on the issue.
Content: vLLM vllm:kv_cache_usage_perc = fraction of KV blocks held by running requests; prefix blocks with ref_count 0 count free. Existing Flare gauges total/free/cached/snapshot_backing give only bounds: 1-free/total very high (idle prefix + snapshot backing count as used); 1-(free+cached+snapshot)/total ~0% with active requests (lower bound); 1-(free+snapshot)/total ~16% (upper bound); vLLM same hw/load ~9%.
Root cause cited at v0.3.2 (c0c4f79): scheduler.rs:1697-1703 + Cache::pin cache.rs:499-522 — prefix-hit requests pin the chain and share tail pages in place, so those pages stay in flare_cached_kv_pages while in use; mid-request checkpoint capture moves private prompt pages into cache (scheduler.rs:2887-2911 shared_pages.extend(private_pages.drain(..pages))).
Proposal: (1) flare_request_kv_pages distinct pages referenced by active requests (each once) so ratio vs total_kv_pages matches vLLM; OR (2) split cached into pinned vs idle; optionally a ready-made flare_kv_cache_usage_ratio.
PR #549 implements proposal (1) plus an extra flare_reserved_kv_pages; it does NOT implement (2), the ratio gauge, nor the JSON snapshot field.
Referred to by: PR #541 (Grafana example mentions), #548 (mentions), #549 (closes).
Wanted-ness: single issue, one reporter, no comments, opened the same day the PR was opened — no long-standing demand visible in the local copy.
#3 [high] Change: verification of what the diff does and does not do
Verified against the head (5ed7af8):
pin_request/unpin_request(helios/src/cache.rs:548-580) call existingpin/unpin(cache.rs:519-546), then walkchain(id)(cache.rs:312-321) incrementingrequest_pinson the node and every ancestor, adding/subtractingnode.tail_pages.len()whenrequest_pinscrosses 0/1.unpin_requestrejects whendirect_request_pins == 0(cache.rs:566-568).CacheStats::request_pinned_pages(cache.rs:188) comes from the maintained field (cache.rs:842); the test-only drift assertion now compares it withnodes.values().filter(request_pins > 0).map(tail_pages.len()).sum()(cache.rs:817-837).compact_ancestor(cache.rs:613-646) keeps pages in the heir and gainsdebug_assert_eq!(node.request_pins, child.request_pins)at cache.rs:627 — debug builds only, so the description's "compaction asserts" is a debug assertion, and "a checkpoint leaves nodes only at zero pins" is pre-existing behaviour (eviction_candidatesrequiresdirect_pins == 0, cache.rs:658-663), not new enforcement by this PR.SchedulerStats::request_pages= Σprivate_pages.len()over live slots +cache.request_pinned_pages;reserved_pages= Σreserved_pages.len()(scheduler.rs:1216-1228). Slots hold at most one request (LiveRequestinslot.request), which is what "at most one slot per active request" means.- All request-owned pins verified swapped: admission when
inbound.is_none()and its two error-path unpins (scheduler.rs:1643-1691), ticket waiters (1900), boundary publish Created + parent unpin (2971-2974), Existing-ready resume (2991-2992), retirement (3159). Plain pins kept for the ticket parent (1647, 1662, 1688, 1882, 1918) and forpin_checkpoint/unpin_checkpoint(2038-2044), which runtime.rs uses for host-store copy-out/export (runtime.rs:2360-2489, 2698-2703).request.prefixis only ever set on the four request-pin paths (1902, 2979, 2996), so theunpin_requestat 3159 cannot fire without a matching request pin. No undeclared pin path found. - Gauge plumbing: two
AtomicU64s (metrics.rs:265-266) stored inMetrics::scheduler(metrics.rs:517-518, inside the same loop ascached_pages) and rendered asflare_request_kv_pages/flare_reserved_kv_pagesgauges (metrics.rs:1309-1318). JSONSnapshot(metrics.rs:90-129,snapshot()at :355-393) is untouched — matches the description. Metrics refresh happens on progress in the worker loop (runtime.rs:1148-1153) plus worker start/shutdown (722, 745). - Docs: docs/api.md:298-305 is prose only; the field table at docs/api.md:325-355 (which maps JSON field →
flare_*metric) was NOT given rows for the two new gauges, even though the table is the "one row per field" contract and the gauges are not in JSON. Small documentation inconsistency worth flagging.
#4 [high] Related work: #460 is the direct predecessor of the cache counter approach
PR #460 "Keep checkpoint cache counts instead of scanning for stats" by yatesdr (COLLABORATOR), merged 2026-11-23, +52/-3 in helios/src/cache.rs and cache/lifecycle_tests.rs. Commit 6d6fe0c6 / main history.
It created exactly the machinery #549 extends: kept ready_checkpoints/unready_checkpoints/tail_pages counters updated at publication, advance_completed, retire_leaf, compact_ancestor, plus the #[cfg(test)] assertion in stats comparing them to a full scan. #460's reason: the runtime loop reads stats on every pass (host-store copy-out retry key and the metrics refresh), and the scan was 49-58% of runtime-thread samples on a 4×RTX PRO 6000 GLM-5.3-Flash TP4 box with a Selene cache holding 500-900 checkpoints.
Consequence for #549: the design constraint "stats must not scan nodes" has a measured owner (yatesdr) and a measured justification; #549 honours it for the runtime build (counters only) but pin_request/unpin_request add an O(chain depth) walk per pin, and stats under cfg(test) still scans. This is the same file/area, so yatesdr is the natural reviewer and #549 is a direct follow-on to #460. #460 also references #459.
#5 [high] People: new contributor with two parallel metrics PRs, no engagement yet
WynnD = commit author "Wynn Drahorad" (commit 5ed7af86 "Report KV pages held by active requests"). GitHub association with the repo: NONE. In the last 180 days: 0 merged, 0 closed, 2 open — #548 (latency histograms/process metrics, closes #536) and #549 (this one, closes #537). Both opened 2026-11-26, both drafts, both signed "Discord: oystersmiles", both use the same evidence method (Linux x86_64 release lib tests + live scrape on a local two-GPU DeepSeek-V4.1-Flash llama-swap entry built from the repo Dockerfile on top of AzallazA fork commit 5ffe4d54, which carries the engram encoding from upstream PR #482 — an open PR by another author). Both descriptions explicitly say they and the other "merge in either order" and touch different regions of helios/src/server/metrics.rs. No prior history in this repo, so no standing as a priority contributor (charter names @voipmonitor, @original-el8, @lukealonso). People who own these areas: helios/src commits in last 180d — Luke Alonso (207), Martin Vit (47), yatesdr (47); docs — Luke Alonso (367). cache.rs/metrics.rs page-count work is yatesdr's (#92, #141, #168, #400, #415, #429, #460, #351); scheduler pin/prefix-cache pressure work is voipmonitor's (#298, #299). Engagement on #549 so far: none — no comments, no reviews, no reactions, and unlike #548 and #541 no flare-autobot case-file comment was posted on #549.
#6 [high] Related work: #537's other proposals unimplemented; #541 and #148/#149 connect
- Issue #537 (by Napuh, 2026-11-26 09:07) and issue #536 (metrics latency histograms) were both filed the same day as the two PRs that close them, and by the same external reporter pattern; #537 has zero comments. No evidence in the local copy of a long-standing or widely-requested need — one reporter, one day, one issue.
- #537 offers two alternatives plus an optional convenience: (1)
flare_request_kv_pages[implemented by #549], (2) splitflare_cached_kv_pagesinto pinned/idle [NOT implemented], and "a ready-made ratio gauge with vLLM semantics (e.g.flare_kv_cache_usage_ratio)" [NOT implemented; #549 leaves the ratio to the operator, documented in docs/api.md:303-305]. A reader of #537 might expect any of the three. - Cross-reference with #541 (open Grafana example, jere357): the autobot review there twice tells the author that "request-held pages appear in no gauge (issue #537)" and asks them to reword the KV panel description — i.e. #541's docs/review reasoning is written against the pre-#549 world; merging #549 makes that statement stale.
- #351 (merged, yatesdr) established that free + cached + snapshot_backing = pool for qualification's conservation check, and its qualification clients live under qualify/ at that time (now no
qualify/folder exists at head — only scripts/qualify_worker_failure.py and tests/reference/*). Since #549 does not add a JSON field and does not change free/cached/backing, those checks are unaffected. - Issue #148 (closed, duplicate of #149): cache-aware gateways wanted vLLM/sglang-compatible load gauges (
vllm:kv_cache_usage_perc). Same underlying need (KV pressure visible in a vLLM-compatible way), different proposal (a/v1/loadsroute); #149 is closed and the route is not on main. Not superseded by #549 but adjacent evidence that KV-usage exposure has been asked for before.
#7 [high] Claims and evidence: what the numbers actually show, and the gap that remains
Verified by reading the code (not by running it):
- Definition mismatch. docs/api.md:298-300 defines
flare_request_kv_pagesas "distinct KV pages that active requests reference … each page counted once even when several requests reference it". The scheduler value (scheduler.rs:1216-1222) isΣ request.private_pages.len()(correctly distinct: each page is owned by one slot)+ cache.request_pinned_pages.request_pinned_pagescounts a checkpoint's tail pages once if ANY request has request_pins > 0 on it (cache.rs:558-560), so shared checkpoint pages do dedupe across requests — that part matches. - But
private_pagesfor other requests are not deduped against pinned checkpoint pages, and a request'sshared_pages(the page chain it actually reads) is never used at all in the stat. After a boundary publication the request's own prompt pages move intoshared_pagesviaprivate_pages.drain(..pages)(scheduler.rs:2976-2978) and the new checkpoint is request-pinned, so those pages are counted once through the cache — consistent. Reservations are excluded from request_pages and reported separately, which matches the docs. - The test
request_kv_pages_count_shared_prefix_pages_once(scheduler/tests.rs:971-1032) assertsrequest_pages == shared + first_private + second_private, wheresharedis one request'sshared_pages.len()— i.e. the test bakes in that shared pages are counted once for both requests. It also asserts both become 0 aftercancel()whilecached_pages > 0. Note the test cancels rather than completing, so the terminal-publication path (retire with publish=true) is not the one asserted; retire'sunpin_requestis shared code, so coverage is partial, not absent. - The live numbers in the description are small: request_kv_pages 399/402 with reserved 3/2, against total 21504 and free 15582/15400, cached 2037/2043. Sanity: 21504-15582-2037 = 3885 pages unaccounted by free+cached, far more than 402 — the PR's own evidence shows request_pages does NOT close the gap the issue hoped for. The description acknowledges only that request+reserved stayed below total-free-cached.
- Reported ratio 0.0186/0.0187 == 399/21504 and 402/21504 (≈0.01856/0.01869) — arithmetic checks out.
- The PR's claim "No allocation, eviction, or scheduling decision changes" is consistent with the diff: no decision path reads the new counts; only Metrics and stats do. Caveat verified:
pin_requestadds an O(chain) walk plus an extrachain()call afterpin()(which itself walks the chain), so per-request admission/retirement work grows slightly; nothing reads the counters on the hot path.
#8 [high] Claims and evidence: test suite claimed, CI absent, live run not reproducible
Not executed by me — recorded as claimed, with what backs it:
- "Linux x86_64, release profile,
--lib -- cache:: scheduler:: server::metrics: 508 passed." Backed only by the description; no CI checks on head 5ed7af8 (orientation packet: "CI on the head commit: no checks"). The description itself says the Windows build and the full helios suite were not run and "CI covers" them. Compare #460 (the same machinery) which ran the full helios library: 1,542 passed, plus a revert check. - The drift assertion in
statsis the strongest safety net and it is real: everystats()call undercfg(test)comparesrequest_pinned_pagesto a full scan (cache.rs:818-837), so any cache/scheduler test that reads stats checks the counter. But it only runs in test builds — a release build has no check that pins and pages agree. request_kv_pages_count_shared_prefix_pages_once(scheduler/tests.rs:971) andrequest_pins_count_each_shared_page_once(cache/tests.rs:320-341) exist as described, including the "releasing the parent without a request pin is an error" assertion.counters_expose_fixed_names_without_request_payloads(metrics.rs:1784-1836 area) covers both gauges' types and values as described.- Live scrape evidence: two-GPU DeepSeek-V4.1-Flash, container built from repo Dockerfile together with #548's branch counterpart (#536's PR), swapped into a llama-swap entry, base AzallazA fork 5ffe4d54 (engram only in upstream #482, still open). The description admits the instance also served the agent's own traffic, so the gauges include it; no other runtime was compared. This is a single unreproducible instance run — the numbers cannot be re-derived by a reviewer.
- Untested by design or omission: multi-rank/TP (the gauges are per-worker sums over that worker's slots and its cache; each rank reports its own
total_kv_pages, so "dividing by total" is per-rank), multi-host Selene, and the Inbound/host-restore path's plain-pin branch (covered by the drift assertion only indirectly, since ticket-parent pins deliberately do not count as request pins).
#9 [high] Project fit: charter evidence bar and "smallest footprint" vs the chosen of two issue options
Facts, both where it lines up and where it does not:
- Lines up: charter "What gets merged" includes "bad docs" and PRs addressing a maintainer request; #537 is an issue in this repo, so #549 addresses a filed report. Charter's "PR descriptions: why / what changed / claimed result / evidence" — #549 has all four parts. It adds no per-model branch, no flag, no dependency, no API field, so it does not trip the model-agnostic, "pin everything", or "don't silently ignore API fields" rules. It is observability only.
- Tension: charter "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
main… 'hypothetical users' aren't enough". #549's evidence is a single local two-GPU scrape on a fork-based container, self-admittedly polluted by the agent's own traffic, with no repeatable script, plus an unrun Windows build. There is no CI on the head commit. A reviewer cannot reproduce either the test run or the scrape. - Tension: charter "Solve the right problem in the right place… Look for the smallest footprint in shared code, or a way to solve it without new code at all." #549 adds two counters, a new pin API pair and a second pin bookkeeping dimension on every checkpoint to answer one metric. The issue itself listed the cheaper alternative (2) — split
flare_cached_kv_pagesinto pinned/idle — which reuses existingpins/direct_pinscounts and needs no per-node subset counters and no new API. The PR picked the more invasive of the two options without saying why. - Neutral / factual: docs/api.md's health-and-metrics section is the documented contract for
/metrics(docs/api.md:281-355). The new gauges are documented in prose (298-305) but the field/metric table (325-355) was not extended, and the JSON snapshot intentionally omits them (documented as "The fields in the table are integers…" at :316-323, and the gauges are not fields). Nothing in the repo's roadmap (SDK #6, Engram #267, FlashInfer #215) covers observability, so this is not a roadmap item. - AGENTS.md:77, :103 ask descriptions to connect each material claim to its evidence; AGENTS.md:64 warns against claiming beyond the stated evidence. #549 is disciplined about scope ("Visibility only… No allocation, eviction, or scheduling decision changes") but its live numbers do not demonstrate the outcome the issue wanted (a usable KV-usage ratio) — see the Claims entry.
#10 [high] Process and reach: draft, no CI, no intake comment, operator-only, no compat break
- Draft, opened and last updated 2026-11-26 (same day), head 5ed7af8, base main; no commits on main since it branched touched its files (orientation packet). 7 files, +218/-10.
- No CI checks on the head commit. No reviews, no comments at all (pr_comments returns nothing) — unlike sibling PRs #548 and #541, which both received flare-autobot case-file comments within ~30 minutes of opening. That absence is itself a fact for a reader: the automated intake has not run on #549 (possibly because the PR is a draft).
- Reach: operators only. Two new Prometheus gauges; JSON snapshot unchanged, so
flare_helios::server::Snapshotconsumers, the terminal dashboard (dashboard.rs), qualification Python clients (tests/server/test_cache_memory.py:34 readsflare_free_kv_pagesfrom text) andscripts/qualify_worker_failure.py:143are all unaffected. Free/cached/total semantics unchanged, so #351's free+cached+backing=pool conservation check still holds. - Compatibility/merge: description states it and #548 "merge in either order" because they touch different regions of helios/src/server/metrics.rs (page gauges beside
cached_pageshere, histograms beside the completion counter there). Verified the regions are distinct (metrics.rs:1309-1318 here vs #548's completion counter), so no textual conflict is likely; both add fields toSchedulerStatsin scheduler.rs — #548 does not (it works in runtime.rs/http.rs/latency.rs), so no conflict there either. - Deployment: no config, no default, no flag, no dependency change. Cost: per-request
pin_request/unpin_requestwalk the ancestor chain an extra time (cache.rs:551-563, 565-580); the metric read itself is O(slots) and safe on the runtime thread, which matters because stats is read on every progress pass (runtime.rs:1148-1153) and #460 was created precisely to keep that read cheap. - Documentation: docs/api.md 298-305 (prose only) and nothing else; docs/prefix-cache-offload.md:747 lists the SchedulerStats host fields but was not updated (it never listed cached_pages either, so not a regression).
#12 [high] Research summary
Case file assembled for PR #549 ("Report KV pages held by active requests", WynnD, draft, 7 files +218/−10, head 5ed7af8, no CI, no comments or reviews). Ten scratchpad entries cover every angle.
Key things a reader cannot get from the description: (1) the live-scrape evidence shows flare_request_kv_pages at 399/402 against 21504 total with 3885 pages still unaccounted by free+cached, so the gauge does not close the gap issue #537 set out to close; (2) #537 offered a cheaper alternative (split cached_kv_pages into pinned/idle, reusing the existing pin counts) that the PR did not take or explain; (3) the "compaction asserts" claim is a debug_assert only and "a checkpoint leaves nodes only at zero pins" is pre-existing behaviour, not new enforcement; (4) the docs prose was added but the JSON-field↔Prometheus table in docs/api.md was not extended; (5) no CI ran on the head commit and no automated intake comment appeared, unlike sibling PRs #548/#541.
The change is a direct successor to merged PR #460 (yatesdr), which created the very counters and drift assertion it extends; that also supplies the measured reason stats must not scan nodes. Related: #548 (same author, same day, different region of metrics.rs, stated to merge in either order), #541 (its review text still tells readers request-held pages appear in no gauge), #537 (the issue), #148/#149 (earlier vLLM-compatible KV-load request, closed unmerged). Project fit: description has all four charter parts and no model branch/flag/dependency, but the charter's evidence bar and "smallest footprint" rule are the tension points. Reach is operator-only: JSON snapshot, terminal dashboard and qualification clients are untouched.
#17 [high] Amendment: new head 9cca87ac "Keep page gauges out of the copy-out retry key" — what changed and what did not
New head since report #16: 9cca87ac "Keep page gauges out of the copy-out retry key" (Wynn Drahorad, 2026-11-26), on top of 5ed7af86. PR now 8 files, +246/−16, still draft, no CI evidence, no review on the new head (last comment is the author's 2026-11-27 04:56 "review the pushed changes"; the autobot review of 2026-11-26 22:38 is against the old head). Cited PR: https://github.com/NVIDIA/hyperflare-inference/pull/549
FIXED:
- Blocker (copy-out retry key) — fixed.
CopyoutResources { scheduler: SchedulerStats { request_pages: 0, reserved_pages: 0, ..self.scheduler.stats() } }(runtime.rs:2441-2453). Key is now byte-equivalent to pre-PR semantics; sound because every movement of request/reserved pages (admission, commit scheduler.rs:2433-2438, retirement) also movesfree_pages/cached_pages/active_requests, which stay in the key.SchedulerStatsPartialEq is used only here (runtime.rs:1053-1059, 2455).- BUT: no test for the fix (phase_tests.rs untouched), the Evidence section still reports the pre-fix 508-test run, and the PR description's "What changed" still lists only cache.rs / scheduler.rs / metrics.rs / docs/api.md — runtime.rs (+8/−1) is undocumented, and "No allocation, eviction, or scheduling decision changes" is still stated without recording that the gauges had briefly perturbed deferred copy-outs.
docs/api.md"gauges read from scheduler state on each scrape" replaced with worker-publishes wording (:302-303). Done.- Ratio paragraph rewritten (:303-312): reserved outside numerator,
request + reserved= comparable figure, request-pinned tail pages in both gauges, excludes retirement-draining and in-flight restore pages. Done. cache.rs:548-550doc comment now states the cache's half only ("a request's own private pages are counted by the scheduler"). Done.- Pin-release-before-take: retirement now releases
unpin_requestat scheduler.rs:3149-3157 beforerequest.take()(:3157), so a failed release leaves the request inspectable. Semantics preserved (record_publicationmoved too, queues an id only).
NOT DONE / NEW PROBLEMS:
- Pin-kind conditional not simplified as asked. Instead of carrying the choice in the
pinnedbinding, the commit addspin_prefix(id, request: bool)/unpin_prefix(scheduler.rs:2025-2040) pluslet request_pin = inbound.is_none()(:1643), used at only one of five request-pin sites (1645, 1656, 1678).cache.pin_request/unpin_requestare still called directly at :1889 (ticket waiters), :2977/:2999 (boundary publication), :3155 (retirement). Net +13 lines, two idioms for one operation, boolean-flag parameter — the opposite of the "carry it once inpinned" ask and against the Subtract aim. - Subtract/Simplify (~90 lines) untouched: scheduler/tests.rs still +66 (the duplicate of
branching_requests_own_distinct_tail_pages_and_terminal_snapshots, tests.rs:971-1034 vs 1037+), cache/tests.rs still +24,pin_request/unpin_requeststill walkchain()twice (cache.rs:551-563, 565-580). - docs/api.md 312: test internals leaked into the operator contract — "the test-only assertion in
Cache::statscompares the maintained request-pinned count with a full scan of every checkpoint on each read". The reviewer asked for the drift assertion as evidence in the PR, not as documented runtime behaviour; it exists only undercfg(test)(cache.rs:818-837). The field↔Prometheus table at docs/api.md:332-362 still has no rows forflare_request_kv_pages/flare_reserved_kv_pages(finding #4 of the report stands). - New prose inaccuracy: "The worker publishes both on every scheduler pass and a scrape reads the last published values" (docs/api.md:302-303). Publishing is gated on
progressand also happens once at worker start and once after shutdown (runtime.rs:722, 745, 1148-1149) — so it is "each pass that made progress", not every pass, and not only scheduler passes. Note #15's progress-gating observation stands. - Minor: "Dividing either gauge by
flare_total_kv_pages…" — dividing the reserved gauge gives no meaningful ratio; only the request (or request+reserved) gauge divides usefully.
#19 [high] Amendment addendum: the copy-out fix sits outside the claimed test filter
Correction/completion of entry #17 (same commit 9cca87ac, PR #549):
The fix's own file is outside the claimed test filter. The commit's only source change is helios/src/server/runtime.rs (+8/−1). The PR's Evidence section still reports cargo test --lib -- cache:: scheduler:: server::metrics, a name filter that does not select server::runtime::*; nothing in the new commit adds a test, and helios/src/server/runtime/phase_tests.rs is untouched by it. So the copy-out-key fix has no claimed coverage at all. Existing tests that could incidentally catch a regression: local_copyout_defers_without_a_pin_until_pending_admission_headroom_returns (phase_tests.rs:6357), local_copyout_rechecks_headroom_after_each_queued_pin (:6408), completed_copyout_retries_capacity_waiters_without_a_new_model_fence (:5890) — they assert copyout_headroom_deferrals counts, but only catch the regression if a page-boundary-crossing decode happens between deferred-copy-out retries, which I did not verify. Recommendation: one test that decodes across a page boundary while a copy-out is deferred and asserts the deferral count does not move.
Pin release moved but the failure mode it protects is now reachable earlier. retire (scheduler.rs:3094) now calls record_publication(prefix) and cache.unpin_request(prefix) at :3149-3156, before self.slots[..].request.take() at :3157. Previously a failed unpin_request lost the request; now it returns Err with the slot intact and retire is retryable (cancel/finish/fail_ticket/release_after_shutdown all re-enter it). record_publication dedups through offered_publications, so a retry cannot double-offer. Semantics equivalent otherwise; the terminal flush of self.publications order changed only in that the prefix id is now queued before the Created-terminal bookkeeping block (:3160-3168) — no reader depends on that order (store pulls the whole list).
Equivalent-quality nit in new prose (docs/api.md:309-310): "Dividing either gauge by flare_total_kv_pages …" — dividing the reserved gauge alone has no meaning; only request, or request+reserved, divides usefully. The sentence lists both because the previous one names request+reserved; a one-word fix ("Dividing that sum or the request gauge …").
#21 [high] Amendment: engagement changed — bot review now exists with Changes Requested
Supersedes report #16's "no autobot intake comment / no engagement" line for PR #549:
- The PR now has two flare-autobot comments: case file opened 2026-11-26 21:35 (case 993b6a3c, intake c610511d) and an Autobot Review at 2026-11-26 22:38, Recommendation: Changes Requested (98f8d847), plus the author's reply at 2026-11-27 04:56 asking for re-review. So the "unlike its sibling PRs, no automated intake comment appeared" observation is stale — it was true when I looked, and the comment has since appeared. No human review, no human comment: engagement is still bot-only.
- The bot review independently reaches five of my findings — docs prose accuracy (scrape vs worker publish; ratio sentence; snapshot-backing residual),
retirereleasing the pin beforerequest.take(), thepin_requestdoc comment claiming private pages, the duplicate scheduler test (+55 removable lines), folding pin_request/unpin_request (~25 lines), andflare_reserved_kv_pagesas unasked-for (~22-25 lines, conditional) — i.e. the same "subtract" tension the charter raises. It recommends "Changes Requested" and explicitly says "Nothing below asks for new code". - It does not mention: the ledger gap (#537's ~3,885 unaccounted pages in the PR's own scrape), that #537's cheaper pinned/idle split of
flare_cached_kv_pageswas neither taken nor explained, thatdocs/api.md's field↔Prometheus table (332-362) still lacks the two gauges, that the compaction claim is adebug_assert, or that the description is now stale about runtime.rs. Those remain my report's distinct findings.
#22 [high] Research summary
Amended the #549 case file for the new event (head 5ed7af86 → 9cca87ac, "Keep page gauges out of the copy-out retry key"). Notes 17–21 hold the detail.
Closes / strike from the old report: the copy-out retry-key blocker is fixed (runtime.rs:2441-2453) and I verified the zeroing is sound, not merely expedient — every transition the key no longer sees moves no cache resource, and SchedulerStats' PartialEq is used only there. Also done: the "read on each scrape" prose, the whole ratio paragraph, the cache.rs:548-550 doc comment, and the retire pin-release reordering before request.take() (retire is now re-enterable, record_publication dedups). The "no automated intake comment" observation is stale: a flare-autobot Changes Requested review exists (2026-11-26 22:38) plus the author's re-review request; still no human engagement.
Stands, with new detail: the subtract item was answered by adding code — pin_prefix/unpin_prefix plus a request_pin boolean at only three of five sites, leaving two idioms and the ~90 removable lines untouched. Two new prose inaccuracies: test internals (cfg(test) drift assertion) leaked into the operator contract, and "publishes on every scheduler pass" is wrong (progress-gated, plus start and shutdown). The ledger gap, the untaken cheaper #537 option, the unextended field↔Prometheus table and the debug_assert claim all stand unchanged.
New finding: the fix lives in helios/src/server/runtime.rs, which the PR's claimed test filter (cache:: scheduler:: server::metrics) does not select, and no test was added — the copy-out fix has no claimed coverage. Series context: the author now has four open drafts in two days (#548, #549, #552, #553) and #553's auto-review was halted on charter-alignment grounds, the same value gate #549 faces, which #549 answers only through the independently filed issue #537.
#23 [high] Amendment block for the report: what to replace, strike and add for #549 after 9cca87ac
Delivered to the reader as amendments to case file run 1349. Detail lives in notes #17 (what changed/what did not), #18 (series), #19 (fix outside the claimed test filter), #20 (zeroing soundness), #21 (engagement). Order to present:
Replace in the Scale/scope section: head 5ed7af86 → 9cca87ac "Keep page gauges out of the copy-out retry key" (Wynn Drahorad, 2026-11-26); 8 files, +246/−16 (was 7 / +218/−10), still draft. New diff file helios/src/server/runtime.rs (+8/−1); docs/api.md +16; scheduler.rs now +51/−14. The description's "What changed" still omits runtime.rs and still asserts "No allocation, eviction, or scheduling decision changes" without noting the gauges had briefly perturbed deferred copy-outs (docs/api.md's own text also still frames the numbers as scrape-time, see below).
Strike (closed by this event):
- Checkpoint-2 blocker "gauges leaked into the copy-out retry key" → fixed at runtime.rs:2441-2453 by zeroing
request_pages/reserved_pagesin the key; soundness verified (note #20;SchedulerStatsPartialEq used only at runtime.rs:2455). - The three prose items and the
cache.rs:548-550doc comment → done (docs/api.md:302-312; cache.rs:548-550). - "retire can fail after
request.take()" → done: release at scheduler.rs:3149-3156 precedes take at :3157; retire is retryable andrecord_publicationdedups viaoffered_publications(scheduler.rs:2001-2011). - Note #13's "no automated intake comment" and note #16's "no engagement" → stale: flare-autobot case file 2026-11-26 21:35 and Autobot Review 22:38, "Changes Requested" (case 993b6a3c, review 98f8d847), plus the author's 2026-11-27 04:56 re-review request. Still no human review or comment. The bot reaches five of my findings independently (prose accuracy ×3, pin-before-take, pin_request doc comment, duplicate scheduler test, folding the pin API,
flare_reserved_kv_pagesunasked-for); it does not reach the four findings below.
Stands, with new detail:
- Subtract/Simplify answered by adding:
pin_prefix/unpin_prefix(scheduler.rs:2025-2040) +request_pin(:1643) cover only :1645/:1656/:1678; directpin_request/unpin_requestremain at :1889, :2977, :2999, :3155 → two idioms, boolean-flag parameter, ~+13 lines; the ~90 removable lines untouched (scheduler/tests.rs still +66, duplicate test at tests.rs:971-1034 vs :1037+; cache/tests.rs +24; doublechain()walk cache.rs:551-563, 565-580). - Two new prose inaccuracies: docs/api.md:311-312 documents the
cfg(test)drift assertion (cache.rs:818-837) as runtime behaviour; docs/api.md:302-303 "publishes both on every scheduler pass" is wrong (progress-gated runtime.rs:1148-1149, plus start :722 and shutdown :745). Minor: docs/api.md:309-310 "Dividing either gauge byflare_total_kv_pages" invites dividing the reserved gauge. - Unchanged: ledger gap (#537's 399/402 vs ~3,885 unaccounted; 21504 − 15582 − 2037), #537's cheaper pinned/idle split neither taken nor explained, field↔Prometheus table docs/api.md:332-362 still lacks both gauges, compaction claim is
debug_assert_eq!only (cache.rs:627).
New finding: the fix's only source change is in helios/src/server/runtime.rs, while the Evidence section still reports --lib -- cache:: scheduler:: server::metrics (does not select server::runtime::*), no test was added, server/runtime/phase_tests.rs is untouched, and the 508-test result predates the fix → the copy-out fix has no claimed coverage. Candidate tests that could catch it only incidentally: phase_tests.rs:5890, 6357, 6408. Ask for one test that decodes across a page boundary with a copy-out deferred and asserts copyout_headroom_deferrals does not move.
Series context: WynnD has four open drafts in two days — #548 (+548/−25, closes #536), #549, #552 (+929/−26, stacked on #548), #553 (+303/−9) — plus issue #551; none merged. #553's auto-review was halted 2026-11-27 05:17: "Review Stopped — It is low value or does not align with the project charter" (value-proposition gate); #549's answer to that gate is the independently filed #537.
#25 [high] Amendment (3rd event, bca7358c): what changed — scale, description, threads
PR #549 third commit bca7358c (Wynn Drahorad, 2026-11-27) "Fix KV-page docs ratio and fold duplicated page tests". PR description rewritten (item updated 2026-11-28 02:10).
SCALE CORRECTION: my prior report said 8 files +246/−16. Authoritative now (pr_files): 8 files, +202/−34 — docs/api.md +14/−0, cache.rs +73/−5, cache/lifecycle_tests.rs +3, cache/tests.rs +15/−4, scheduler.rs +49/−19, scheduler/tests.rs +22/−5, server/metrics.rs +18, server/runtime.rs +8/−1. Net +168 vs +230 at 9cca87ac: the diff shrank because the two duplicate tests were folded and the pin API unified.
CODE CHANGES IN THIS COMMIT:
- cache.rs:519-589 —
pin/unpinbodies became privatepin_with(id, request: bool)/unpin_with(id, request: bool); each now walkschain()ONCE (cache.rs:523, 553) instead of pin()+chain() twice;pin_request/unpin_requestare thin wrappers (cache.rs:580-589). Thedirect_request_pins/request_pinslogic is otherwise identical (verified line by line). Doc comment kept at :580-582. - cache/tests.rs:321-373 —
request_pins_count_each_shared_page_oncedeleted and merged intobranching_pins_ancestors_and_prevents_direct_ancestor_unpin; new assertions at :334, 340-345, 357-360 cover the zero↔one crossings, plain pin for copy-out not moving the count, and compaction keeping the shared page counted once in the heir. - scheduler/tests.rs:970-1032 —
request_kv_pages_count_shared_prefix_pages_oncedeleted and merged intobranching_requests_own_distinct_tail_pages_and_terminal_snapshots; assertions at :1016-1031. - scheduler.rs:1200-1236 — stats loop hoisted into one pass computing active_requests/request_pages/reserved_pages; behaviour identical.
- docs/api.md:298-310 — prose rewritten (see next note).
DESCRIPTION REWRITE (what it now says):
- Adds a
helios/src/server/runtime.rsbullet documenting the zeroed copy-out retry key — closes my "description still omits runtime.rs" finding. - Evidence now reports
cargo test --features runtime-core,server --lib -- server:: scheduler:: cache::: 809 passed, 1 failed (known template failure) — the filter now DOES select server::runtime, closing my test-filter finding; run is at the new head. - New sentence: "The head commit bca7358 differs from it only in documentation, tests, and the internal structure of the pin bookkeeping (one chain walk instead of two)" — verified true.
- Evidence on the inequality changed to
request + reserved ≤ total − free(402 and 404 against 5922 and 6104), explicitly rejecting the cached subtraction because pinned tails are in both gauges. The bot had asked for exactly this. The ~3,885-pagetotal − free − cachedresidual is still unattributed.
ENGAGEMENT: third comment 2026-11-27 06:27, flare-autobot, Recommendation Changes Requested (0 blockers, 2 should-fix, 3 subtractive, 5 nits). Acknowledges the 9cca87a blocker, the retire ordering and the cache.rs doc comment as fixed. Names "one self-contradictory API paragraph, four mechanical description corrections, and about 75 of the 246 added lines" — the 246 is stale (the diff is +202/−34) and the ~55-line duplicate test it counted is already gone. The full review body is behind a link (autobot.eidonix.com/p/a4996188-...), only the summary is on the PR. Still no human review or comment. The listing no longer shows a draft marker that earlier notes recorded — worth confirming with the author.
#26 [high] Amendment (3rd event): findings closed vs still open after bca7358c
Consolidated for the report patch after bca7358c.
STRIKE — now closed:
- "Two new prose inaccuracies" (my §5 at 9cca87ac) — ALL THREE fixed at docs/api.md:298-310: the
cfg(test)drift-assertion sentence is gone from docs (it now lives only in the description's What-changed/Evidence, where it belongs); "publishes both on every scheduler pass" replaced by "when a scheduler pass makes progress, and again at startup and after the shutdown drain" (matches runtime.rs:722, 1148-1149, 743-746); the "Dividing either gauge" nit replaced by "(flare_request_kv_pages + flare_reserved_kv_pages)overflare_total_kv_pagesis the share …". - "The fix sits outside the claimed test filter" (§4) — Evidence now reports
-- server:: scheduler:: cache::, which selectsserver::runtime::*, at the current head, 809 passed / 1 known failure. Coverage of the fix itself is still only incidental (phase_tests.rs:6357-6384 assertscopyout_headroom_deferralsbut does not force a page-boundary crossing between retries), so the ask for one deliberate test stands but is no longer an evidence-gap finding. - "Subtract/Simplify answered by adding code" — reversed. The two duplicate tests are folded (scheduler/tests.rs duplication gone, cache/tests.rs duplication gone) and
pin_request/unpin_requestare nowpin_with/unpin_withwith one chain walk (cache.rs:519-589), exactly what the review asked. Remaining subtractive residue is small: thepin_prefix/unpin_prefixbool-flag wrappers (scheduler.rs:2019-2033) beside directcache.pin_request/unpin_requestat scheduler.rs:1882, 2970-2972, 2990-2991, 3148 — two idioms, ~+17 lines. - "
pin_request/unpin_requestwalkchain()twice" — fixed (singlechain()at cache.rs:523, 553).
STANDS — with updated line numbers:
- ~3,885-page ledger residual: unchanged in substance. New description bound
request + reserved ≤ total − freeis arithmetically right (21504−15582=5922, 21504−15400=6104) and no longer dominated by cached, but it is now vacuous — the gauge is 405 of a 5,922-page bound. Nothing attributes the residual (21504−15582−2037 = 3,885), which is snapshot backing:flare_snapshot_backing_pagesexists (scheduler.rs:127, metrics.rs:1295-1297, docs/runtime-core-design.md:873-876) and is the missing third term, but the PR never shows the numbers closing. - #537's cheaper pinned/idle split still neither taken nor explained.
- Field↔Prometheus table docs/api.md:330-361 still lacks rows for
flare_request_kv_pagesandflare_reserved_kv_pages(and forflare_snapshot_backing_pages), while the prose above it (docs/api.md:298-310) describes both and the table's own intro at :321-323 says "the page fields … are instantaneous gauges". This is now the most mechanical of the open items. - Compaction claim still
debug_assert_eq!only (cache.rs:632-636, the request-pin one at :636); the rewritten description still says "Compaction asserts …" without noting it is compiled out of release builds. unpin_request's new error path (cache.rs:547-549) is still reachable-by-construction only; see the new coverage loss in the next note.- Open question: correct under TP/multi-rank and multi-host Selene — unexercised, unchanged.
Bot vs me, second round: the bot now independently names the docs paragraph, four "mechanical description corrections" and ~75 removable lines. It still does NOT reach: the 3,885-page residual, the rejected cheaper option, the missing table rows, the debug_assert claim, or that its own 246-line arithmetic is stale.
#27 [high] Amendment (3rd event): new finding — the request-pin release guard lost its only test
New finding introduced by bca7358c, from folding the tests.
The commit deleted request_pins_count_each_shared_page_once (cache/tests.rs) and merged a subset of its assertions into branching_pins_ancestors_and_prevents_direct_ancestor_unpin (cache/tests.rs:321-373). One assertion did not survive: the old test asserted cache.unpin_request(parent).is_err() — that releasing a request pin on a checkpoint that holds only transitive request pins is rejected. The merged survivor asserts only the plain-pin guard, cache.unpin(parent).is_err() (cache/tests.rs:336).
Verified exhaustively: unpin_request appears in only two places in tests, cache/tests.rs:338 and :359, both unwrap(). Nothing anywhere asserts the error at cache.rs:547-549 ("checkpoint has no request pin to release").
Why it matters: the PR description still documents that behaviour as a guarantee ("unpin_request reverses it and rejects a release when the checkpoint holds no request pin"), and retire now surfaces that same error before emptying the slot (scheduler.rs:3144-3149), so a spurious release is a live failure mode on the retirement path. The guard is now asserted only by the debug_assert!(node.request_pins > 0) underflow check (cache.rs:562), which is compiled out in release — the same release-build weakness I flagged for the compaction assertion (cache.rs:636).
Ask: re-add assert!(cache.unpin_request(parent).is_err()) before cache.unpin(parent) at cache/tests.rs:336 (one line), or drop the prose claim.
Related: this is the opposite of the direction the second review wanted ("remove ~10 lines from cache/tests.rs"), which is why the lost assertion is easy to miss — the change looks purely subtractive.
#28 [high] Amendment (3rd event): series and engagement changes; the bot's own count is stale
Third event context for the report's People/Series and open-questions sections.
Series state as of 2026-11-28 02:10 (was: #548/#549/#552/#553 open + #551 issue):
- #548 "Add per-request histograms and vLLM-parity request metrics" — still open, bot Changes Requested 2026-11-26, description since rewritten ("the updated #548").
- #552 "Report request timings on final responses" — closed.
- #553 "Add vLLM-compatible per-request metrics" — closed (this was the one whose auto-review was Stopped on charter/value grounds).
- #560 "Emit vLLM-compatible per-request metrics from runtime instants" — new, open, 2026-11-28 02:04, +1898/−123, 18 files, closes #551, stacked on the updated #548. So the author re-filed #552's work as #560 after #553 was stopped. That accounts for 5 of the 18 files #549 also touches, but it does not touch
SchedulerStats(verified: at pr/560, scheduler.rs has norequest_pages/reserved_pages, and docs/api.md there has no kv-page rows), so no conflict with #549's gauges; only textual overlap in docs/api.md and metrics.rs regions. - #549 is the only one of the series a reviewer can land on operator-substance grounds; the value-proposition gate that stopped #553 has not been applied adversely to #549 (its 06:27 review still recommends Changes Requested on content, not Stopped).
Engagement: still exclusively flare-autobot. No human review, no maintainer comment on #537, nothing on the PR from anyone else. Third bot comment 2026-11-27 06:27 (Recommendation: Changes Requested, 0 blockers). Note the bot's own arithmetic in that review — "about 75 of the 246 added lines" — is stale: the diff is now +202/−34, and the ~55-line duplicate scheduler test it counted has already been folded away by the very commit it is reviewing. Worth flagging to a reader so the "75 removable lines" figure is not taken at face value; the real remaining residue is ~17 lines of pin_prefix/unpin_prefix wrappers.
Draft status: earlier notes recorded #549 as a draft; the current listing shows it as an ordinary open PR with no draft marker, so that line in the old report should be dropped or qualified ("no longer shown as a draft").
Still no CI check on the head; the only test evidence is the author's local run (809 passed, 1 known template failure) quoted in the description.
#30 [high] Amendment (3rd event): final verification of the four standing findings + series re-read
Verification pass at head bca7358c, done after the amendment notes were written. All four open findings re-checked in code; nothing changed since note #26, and two get sharper.
-
Missing table rows — CONFIRMED, and stronger than stated.
docs/api.md:330-361(intro at :321-323, "the page fields … are instantaneous gauges") has rows forcached_pages(:350),free_pages(:351),total_pages(:352),page_tokens(:353) but norequest_pagesorreserved_pagesrow, so as written the table declares the new fields cannot exist.search_codefor "request_kv_pages|reserved_kv_pages|snapshot_backing" in docs/api.md returns only the prose at :298-310.flare_snapshot_backing_pages— an existing metric, documented at docs/runtime-core-design.md:873-876 — is also absent from the table, which is pre-existing (not this PR's debt) but is the proof that the table is incomplete in exactly the area this PR extends. -
debug_assertonly — CONFIRMED. cache.rs:632-636:direct_pins,child_count,pins, and at :636request_pinsare alldebug_assert_eq!. The description's "Compaction asserts that the removed ancestor and its heir agree on request pins" is true only in debug builds. Release builds rely on: (a)request_pinned_pagesbeing recomputed only on the 0↔1 crossing (cache.rs:536-541, 561-567), (b) compaction movingtail_pagesinto the heir while both carry equalrequest_pinsand the parent wasdirect_pins == 0, and (c)uncountremoving the ancestor's tail pages fromtail_pageswhilerequest_pinned_pagesis untouched because the pages are now the heir's. Traced: consistent. So this is a doc-accuracy item, not a correctness bug — worth stating plainly so a reviewer does not chase it as a bug. -
3,885 residual — CONFIRMED unattributed. Third term is
flare_snapshot_backing_pages: it counts page ids excluded by owned snapshots including rows awaiting GPU retirement (scheduler.rs:127, cache_memory.rs:230-241, 493-498; docs/runtime-core-design.md:873-876) and those pages are removed fromfree_pagesatreserve_snapshot(cache_memory.rs:234), so they sit intotal − freebut in neithercachednor either new gauge. The PR never scrapes that metric. The arithmetic identity to ask for:total ≈ free + cached + snapshot_backing + request_private_not_cached. -
Coverage loss — CONFIRMED exhaustively.
unpin_requestoccurs in tests only at cache/tests.rs:338 and :359, both.unwrap(). The guard at cache.rs:547-549 has no asserting test anywhere, while the description says "unpin_request… rejects a release when the checkpoint holds no request pin" and the PR adds prose in docs describing the scheduling consequence.
Also re-confirmed: metrics.rs:1309-1318 carries accurate help strings for both gauges ("Distinct KV pages referenced by active requests: private pages plus pinned prefix-checkpoint pages, each counted once." / "KV pages reserved for active requests' growth and not yet written."), and metrics.rs:517-518 is the publish pair; the renderer's test at :1782-1797 covers names and values. So the metric surface is complete and self-consistent — the docs table is the only place the two gauges are missing.
Series re-read (#553 closed, #551 open, #560 open): #553 was Stopped by the value-proposition gate twice (05:17 and 06:40) before the author closed it as "Superseded by #560" (2026-11-28 02:05). Its self-assessment is the useful part: "builds the same vLLM metrics object from the model worker's recorded instants instead of HTTP-layer clocks, so queue_time_ms is reported, time to first token starts at scheduling as vLLM defines it". #549's problem is the mirror image — it reports a state maintained at pin changes rather than sampled at scrape — and the author has now twice produced a redesign that moved a metric's measurement point toward the runtime instant. That is the strongest available argument that #549's design choice was deliberate, and it is the reason #537's cheaper pinned/idle split deserves an explicit answer rather than silence: the author clearly does think about measurement points, so the omission reads as an argument withheld, not overlooked.
#31 [high] Amendment block for the report: what to replace, strike and add for #549 after bca7358c
Patch order for the report after bca7358c. Detail lives in #25 (what changed), #26 (strike/stands), #27 (lost test), #28 (series), #29 (docs check), #30 (verification). Present as an amendment to case file run 1483, exactly as the second amendment was presented — do not recompose the whole report.
-
Header/scale. Head
9cca87ac→bca7358c; 8 files, +202/−34; drop "draft"; note the description was rewritten (four of the old description findings closed). -
Key findings — replace the list. New top three in order of importance: (a) the commit fixed everything the first review's "should fix" list named except the description's own arithmetic, and the subtractive direction reversed — the diff is 62 net lines smaller, the duplicate tests are folded, and the pin walk happens once; (b) in doing so it silently dropped the only test of the request-pin release guard (#27) — the one new defect; (c) the two findings no reviewer has reached are now the whole of the substantive case: the unattributed 3,885-page residual (#30 item 3) and the missing table rows, which as written make the table contradict the prose (#30 item 1).
-
Strike the §5 prose block, §4 test-filter finding, and the two subtract/simplify findings (#26).
-
Add the lost-test finding (#27), with the one-line fix.
-
Keep, renumbered: ledger residual (now vacuous bound), cheaper option (add the #560 evidence from #30 — the author twice moved a measurement point toward the runtime instant, so the withheld argument is conspicuous), table rows,
debug_assert(state explicitly it is doc-accuracy, not a bug —#30item 2 traced the release behaviour and it is consistent). -
Community/People: third bot review 06:27, Changes Requested, 0 blockers; bot's "246 added lines / ~75 removable" is stale against +202/−34; still nothing human; still no CI. Series: #552/#553 closed, #560 open, #551 open, #548 open.
-
Open questions: Q5 answered (prose confirmed fixed by the reviewer); Q3 downgraded to a coverage nicety; Q4 upgraded (the guard that
retirenow surfaces early has no test); Q1 and Q2 stand as the report's distinctive value.
One thing NOT to claim: the second review's stated blocker-like item, "one self-contradictory API paragraph", could not be reproduced from the public material (#29) — the paragraph reads consistently against the code. Say that, and say the full review is off-site, so it may rest on a detail in a linked page I could not read. Do not assert the bot is wrong.
#32 [high] Research summary
Goal met: the third event (head 9cca87ac → bca7358c, "Fix KV-page docs ratio and fold duplicated page tests") has been worked into the case file, and the amendment set is in notes #25–#31.
Amendments, in report order (only what changes):
-
Header/scale. Head
bca7358c; 8 files, +202/−34 (was +246/−16 — the diff shrank by 62 lines); drop "draft". The description was rewritten and now documentsruntime.rs, quotes a test run at the new head with a filter that does selectserver::runtime, and states the head's delta over9cca87aaccurately. -
Strike. All three prose inaccuracies fixed (
docs/api.md:298-310: test-only assertion out of operator docs; "publishes when a pass makes progress, plus startup and shutdown drain"; ratio reformulated as(request+reserved)/total). The "fix outside the claimed test filter" finding is closed (Evidence now runs-- server:: scheduler:: cache::, 809 passed/1 known failure). The subtract/simplify findings are reversed: duplicate tests folded (scheduler/tests.rs:970-1032,cache/tests.rs:321-373) andpin_request/unpin_requestunified intopin_with/unpin_withwith a singlechain()walk (cache.rs:519-589). -
New finding (the one new defect). Folding the tests dropped the only assertion of the request-pin release guard: the deleted test asserted
unpin_request(parent).is_err(), andunpin_requestnow appears in tests solely as twounwrap()s (cache/tests.rs:338,:359). The description still promises that rejection, andretirenow surfaces the error before emptying the slot (scheduler.rs:3144-3149); the remaining backstop is adebug_assert(cache.rs:562). One line atcache/tests.rs:336restores it. -
Stands. The ~3,885-page residual is still unattributed and the new bound
request + reserved ≤ total − free(404 vs 6104) is now vacuous; the missing third term isflare_snapshot_backing_pages, which exists and is never scraped. The field↔Prometheus table (docs/api.md:330-361, intro :321-323) still lacks both gauges, so the table as written denies fields the prose above it describes. Compaction isdebug_assert_eq!only (cache.rs:632-636) — traced and consistent in release, so doc-accuracy, not a bug. #537's cheaper pinned/idle split still unanswered, and the #560 history (author twice moved a measurement point to the runtime instant) makes that omission conspicuous rather than accidental. -
Engagement/series. Third bot review 2026-11-27 06:27, Changes Requested, 0 blockers; its "246 added lines / ~75 removable" is stale against the current diff. Still no human review and no CI. #552 and #553 are closed (#553 stopped twice by the value-proposition gate, then superseded); #560 is new and does not conflict with #549's fields.
One caveat recorded rather than asserted: the second review's headline "one self-contradictory API paragraph" could not be reproduced — the public paragraph checks out clause by clause against the code — and the full review body is off-site.
#33 [high] Amendment text as delivered (3rd event) — ready to paste into the report
This is the amendment as it should appear in the report — it replaces the equivalent sections of note #24 (Report of 2026-11-27, run 1483) and nothing else. Detail: #25 (what changed), #26 (strike/stands), #27 (lost test), #28 (series), #29 (docs check), #30 (verification), #31 (patch order).
Amendments to the case file for PR #549 — third event: head 9cca87ac → bca7358c ("Fix KV-page docs ratio and fold duplicated page tests")
1. Replace in the header / scale section
- Head:
9cca87ac→bca7358c(Wynn Drahorad, 2026-11-27), basemain. Drop the "draft" label — the listing now shows an ordinary open PR. - Size: 8 files, +202/−34 (was +246/−16; the diff shrank by 62 lines):
docs/api.md+14/−0,cache.rs+73/−5,cache/lifecycle_tests.rs+3,cache/tests.rs+15/−4,scheduler.rs+49/−19,scheduler/tests.rs+22/−5,server/metrics.rs+18,server/runtime.rs+8/−1. - The PR description has been rewritten: it now documents
runtime.rsand the zeroed copy-out retry key, quotes a test run taken at the new head with-- server:: scheduler:: cache::(809 passed, 1 known template failure), states the boundrequest + reserved ≤ total − free(402/404 against 5922/6104), and describes the head's delta over9cca87acorrectly.
2. Strike — closed by this event
- All three prose inaccuracies (
docs/api.md:298-310): thecfg(test)drift-assertion sentence is gone from the operator docs; "publishes both on every scheduler pass" became "when a scheduler pass makes progress, and again at startup and after the shutdown drain" (matchesruntime.rs:722,1148-1149,743-746); "Dividing either gauge" became "(flare_request_kv_pages + flare_reserved_kv_pages)overflare_total_kv_pagesis the share …". Verified clause by clause against the code (#29). - "The fix sits outside the claimed test filter" — closed: the filter now selects
server::runtime::*and the run is at the new head. The only residual is that coverage of the deferred-copy-out path remains incidental (phase_tests.rs:6357-6384assertscopyout_headroom_deferralswithout forcing a page-boundary crossing between retries). - "Subtract/Simplify answered by adding code" — reversed. Both duplicate tests are folded (
scheduler/tests.rs:970-1032,cache/tests.rs:321-373), andpin_request/unpin_requestare now thin wrappers over privatepin_with/unpin_with(cache.rs:519-589) that walkchain()once instead of twice (cache.rs:523,:553). That also closes the double-walk finding. - Description staleness ("
runtime.rsundocumented", "no scheduling decision changes" unqualified) — fixed.
3. New finding — the request-pin release guard lost its only test
Folding request_pins_count_each_shared_page_once into branching_pins_ancestors_and_prevents_direct_ancestor_unpin dropped its cache.unpin_request(parent).is_err() assertion; the survivor keeps only the plain-pin guard (cache/tests.rs:336). unpin_request now occurs in tests exactly twice (cache/tests.rs:338, :359), both .unwrap(); nothing asserts the error at cache.rs:547-549, which the description still promises ("unpin_request … rejects a release when the checkpoint holds no request pin"). It matters because retire now surfaces that error before emptying the slot (scheduler.rs:3144-3149) and the only backstop left is debug_assert!(node.request_pins > 0) (cache.rs:562), compiled out in release. One line at cache/tests.rs:336 restores it. Easy to miss because the commit reads as purely subtractive.
4. Stands, with updated line numbers
- The ~3,885-page residual is unattributed and the new bound is vacuous.
request + reserved ≤ total − freeis arithmetically right but bounded by 5,922/6,104 pages while the gauge reports 402/404.21504 − 15582 − 2037 = 3885is snapshot backing:flare_snapshot_backing_pagesalready exists (scheduler.rs:127,metrics.rs:1295-1297,cache_memory.rs:230-241,docs/runtime-core-design.md:873-876) and those pages leavefree_pagesatreserve_snapshot, yet the PR never scrapes it. Ask for the identitytotal ≈ free + cached + snapshot_backing + request-private-not-cached. - #537's cheaper pinned/idle split still neither taken nor explained — and the #560 history makes the omission conspicuous: the author has twice redesigned a metric by moving its measurement point to the runtime instant (
queue_time_msreported, TTFT from scheduling), so the withheld argument reads as deliberate rather than overlooked (#30). - Field↔Prometheus table
docs/api.md:330-361(intro:321-323) still has no row forflare_request_kv_pagesorflare_reserved_kv_pages, so the table as written denies fields the paragraph above it describes;flare_snapshot_backing_pagesis missing too (pre-existing). The metric surface itself is complete and self-consistent (metrics.rs:1309-1318,:517-518, test:1782-1797) — the table is the only gap. - Compaction is still
debug_assert_eq!only (cache.rs:632-636). Traced: release behaviour is consistent (request_pinned_pagesmoves only on 0↔1 crossings,cache.rs:536-541,561-567;uncountleaves it alone at:268-275because the heir now owns the pages), so this is doc accuracy, not a correctness bug — say so, so no reviewer chases it as one. - Remaining subtractive residue is small:
pin_prefix/unpin_prefix(id, request: bool)(scheduler.rs:2019-2033) beside directcache.pin_request/unpin_requestat:1882,:2970-2972,:2990-2991,:3148— two idioms, ~17 lines.
5. Engagement and series
- Third bot comment, 2026-11-27 06:27, Recommendation Changes Requested (0 blockers, 2 should-fix, 3 subtractive, 5 nits); it credits the
9cca87ablocker, the retire ordering and thecache.rsdoc comment as fixed. Its arithmetic ("about 75 of the 246 added lines") is stale against a +202/−34 diff whose counted duplicate test this very commit already removed. Its headline "one self-contradictory API paragraph" lives only in the off-site full review; the public paragraph checks out against the code (#29) — record that it could not be reproduced, do not assert the reviewer is wrong. - Still no human review, no human comment, no maintainer response on #537, no CI check on the head.
- Series: #552 and #553 are closed (#553 Stopped twice by the value-proposition gate, 05:17 and 06:40, then closed as superseded); #560 "Emit vLLM-compatible per-request metrics from runtime instants" (+1898/−123, closes #551) is open and stacked on the updated #548. #560 shares 5 files with #549 but touches neither the new
SchedulerStatsfields nor the kv-page docs rows, so no conflict.
6. Two residual wording nits
docs/api.md:298 says "requests owning a model slot", broader than an operator's "active" (includes Inbound requests waiting on a host ticket); and neither gauge is stated to be per-rank, so the ratio is rank-local only by inference from :352.
7. Open questions — revised
Q5 (will the re-review confirm the fixed prose?) answered — yes. Q3 (TP/multi-rank correctness of the copy-out fix) downgraded to a coverage nicety. Q4 (the unpin_request error path) upgraded, because §3 shows that path is now untested while retire surfaces it earlier. Q1 (the residual) and Q2 (why the cheaper option was rejected) stand unchanged and remain the two findings no reviewer has reached.
#36 [high] Amendment (4th event): author's live-validation comment + newest bot review — what changed
PR #549, fourth event (head unchanged at bca7358c, 8 files +202/−34; no new commits).
-
NEW EVIDENCE — WynnD comment, 2026-11-28 03:26 "Live validation summary" (PR #549, comment 5 of 6). Build: "upstream main with this PR, #548, and #560 merged". Two hardware rows:
- New row: one RTX PRO 6000 Blackwell serving
local-inference-lab/Qwen3.8-Flash-Next-FLAREgb202 package, 20,480 KV pages; mid-run scrapes with 16 concurrent streams:flare_request_kv_pages54–80,flare_reserved_kv_pages16–22. Range across scrapes, not a point. - Restated row: two-GPU DeepSeek-V4.1-Flash, 2 chats: 399–402 request pages, 2–3 reserved, of 21,504 (identical to the description's earlier evidence — not new data).
- "Merge with #548 | clean in either order"; "Unit tests (server:: scheduler:: cache::) 809 passed; 1 unrelated template test".
- Math on the documented ratio
(request+reserved)/total: new run (54+16)/20480 = 0.34% … (80+22)/20480 = 0.50%; request-only 54/20480 = 0.26% … 0.39%. DeepSeek run (399+2)/21504 = 1.87%. #537 (Napuh) reports vLLM ≈9% on the same hardware/load where Flare's bounds were ~0–16%. So the two runs differ ~5× from each other and the newest is ~20× below vLLM's figure; the PR still shows no measurement where its ratio tracks vLLM. Caveat to state: models/loads/topologies differ, so this is suggestive, not a disproof — but it means the docs sentence "comparable to vLLM'skv_cache_usage_perc" (docs/api.md:308-310) and theCloses #537claim remain unevidenced, and the newest data leans against them. - The new row publishes no total/free/cached/snapshot_backing for the Qwen deployment, so the ledger identity cannot even be attempted there — the residual finding (total ≈ free + cached + snapshot_backing + request-private-not-cached) is untouched; DeepSeek row still leaves 21504 − 15582 − 2037 = 3885 pages unattributed as before.
- Positive: the range (54–80, 16–22) is the first evidence the gauges actually move within a run, supporting the progress-gated publishing prose (docs/api.md:305-307); it also means a scrape can read ~50% off another scrape of the same load — a sampling/staleness caveat the docs do not mention.
- Evidence-artifact problem persists and widens: the tested image contains three open PRs (#549, #548, #560), none reachable from a branch, so the run is not reproducible from the repo (same problem recorded in report run 1705). Cross-check: #548's own 03:26 comment claims 814 passed for the same build vs #549's 809 — consistent with #548 adding ~5 tests, so the two comments do not contradict.
- New row: one RTX PRO 6000 Blackwell serving
-
NEW ENGAGEMENT — flare-autobot comment, 2026-11-28 03:28 (4th bot comment; 2 minutes after the author's comment, not 90 minutes after a code update, and with no new commit — so it re-reviews the same head bca7358c). "Recommendation: Changes Requested", 0 blockers, 2 should-fix, 4 subtractive, 7 nits; headline: "bca7358 fixes every item from the previous round and folds the duplicate tests; what remains is one API-doc sentence, one restored test assertion, and about 55 of the +202 added lines that can simply be deleted."
- Its arithmetic is now current ("+202 added lines"), so the "bot's count is stale (75 of the 246)" finding is struck — superseded.
- "one restored test assertion" independently matches my standing finding (the deleted
cache.unpin_request(parent).is_err()guard, restore one line at cache/tests.rs:336). So that finding is no longer unreached by reviewers. Verification of the code re-run this event:unpin_requeststill occurs in tests only at cache/tests.rs:338 and :359, both.unwrap(); the guard at cache.rs:547-549 has no asserting test. - "one API-doc sentence" is not identifiable from the posted summary (full review is off-site at autobot.eidonix.com/p/d8ca7f9b-…). It may be my missing-table-row finding, but that finding is a missing row, not a sentence — do not claim it is covered. Re-verified: docs/api.md:330-361 still has rows for cached_pages (:350), free_pages (:351), total_pages (:352), page_tokens (:353) and none for request_pages/reserved_pages; the metrics surface itself is complete (metrics.rs:1309-1318 help strings, :517-518 publish pair, test :1782-1797).
- Counts moved 0/2/3/5 → 0/2/4/7 nits vs the previous round; the diff is unchanged, so this is review churn, not new code.
-
STANDS unchanged: no human review or comment on #549; no maintainer reply on issue #537 (still 0 comments); no CI check visible on head bca7358c;
debug_assert-only compaction assertion; #537's cheaper pinned/idle split still neither taken nor explained; residual unattributed; table rows missing; the two residual wording nits ("requests owning a model slot" vs "active", per-rank not stated).
#37 [high] Amendment text as delivered (4th event) — ready to paste into the report
Ready-to-paste amendment prose for PR #549, fourth event (no new commits; head bca7358c; 8 files, +202/−34). Amends report of 2026-11-27, run 1705 (note #35). Detail: #36.
Amendments to the case file for PR #549 — fourth event: author's live validation, fourth bot review
No new commits; head stays bca7358c, 8 files, +202/−34. Two comments arrived within two minutes on 2026-11-28: the author's live-validation summary (03:26) and a fourth flare-autobot review (03:28). Everything not listed here stands unchanged.
1. Replace the evidence section — there is now a second live run, and it undercuts the headline claim
The author posted a fresh (third) validation comment, with the image built from "upstream main with this PR, #548, and #560 merged":
- New run: one RTX PRO 6000 Blackwell,
local-inference-lab/Qwen3.8-Flash-Next-FLAREgb202 package, 20,480 KV pages, 16 concurrent streams — mid-run scrapes readflare_request_kv_pages54–80 andflare_reserved_kv_pages16–22. - Restated (not new): two-GPU DeepSeek-V4.1-Flash, 2 chats, 399–402 / 2–3 of 21,504 — unchanged from the description.
- Also claimed: merge with #548 clean in either order; 809 passed under
-- server:: scheduler:: cache::.
What changes in the report's evaluation:
- The documented ratio is now measurable twice, and it is tiny and unstable. (54+16)/20480 = 0.34 % to (80+22)/20480 = 0.50 % on the new run; request-only 0.26–0.39 %; the DeepSeek run is (399+2)/21504 = 1.87 %. #537 (Napuh) measured vLLM at ≈9 % on the hardware and load where Flare's own bounds were 0 %–16 %. Different models, loads and topologies, so this does not disprove anything — but the PR still contains no measurement on a load where a vLLM baseline exists, so "comparable to vLLM's
kv_cache_usage_perc" (docs/api.md:308-310) andCloses #537stay unevidenced, and the newest numbers lean against them. - The gauges move within a run, but by ~50 % between scrapes (54 versus 80 at the same concurrency). That supports the progress-gated publishing prose (
docs/api.md:305-307) and simultaneously exposes a caveat the docs omit: a single scrape is a stale-ish sample, and an operator alerting on the ratio inherits that jitter on a metric whose whole range is half a percent of the pool. - The residual ledger is still not attempted. The new row reports no
total/free/cached/snapshot_backing, so the identitytotal ≈ free + cached + snapshot_backing + request-private-not-cachedcannot be checked there at all; the DeepSeek row still leaves 21,504 − 15,582 − 2,037 = 3,885 pages unattributed, as before. - Reproducibility is now explicitly worse, not better: the tested image ships three open PRs (#549, #548, #560), none of which exist on any upstream branch, so nothing about the run can be rebuilt from the repository. (Cross-check: #548's own 03:26 comment reports 814 passed for the same build against #549's 809 — consistent, not contradictory.)
2. Replace the engagement paragraph — the bot's arithmetic is now current
A fourth flare-autobot comment landed at 03:28, two minutes after the author's validation comment and with no code change behind it: Changes Requested, 0 blockers, 2 should fix, 4 subtractive, 7 nits, headlined "bca7358 fixes every item from the previous round and folds the duplicate tests; what remains is one API-doc sentence, one restored test assertion, and about 55 of the +202 added lines".
- Strike the standing finding that the bot's line-count arithmetic is stale ("75 of the 246"): it now says "+202", which is correct for this head. What remains is review churn against an unchanged diff (nits 5 → 7, subtractive 3 → 4).
- Upgrade the lost-guard finding: the bot's "one restored test assertion" independently lands on the same defect I recorded (the folded test dropped
cache.unpin_request(parent).is_err(); nothing else asserts the guard atcache.rs:547-549;unpin_requestappears in tests only atcache/tests.rs:338and:359, both.unwrap()). It is no longer a finding no reviewer has reached — re-verified at this head. - Do not claim the bot's "one API-doc sentence" covers the missing table rows. The full review is off-site (
autobot.eidonix.com/p/d8ca7f9b-…) and unreadable; the table atdocs/api.md:330-361still has rows forcached_pages/free_pages/total_pages/page_tokensand none forrequest_pages/reserved_pages, so that finding stands untouched. - Unchanged: no human review, no human comment on #549, zero comments on #537, no CI check on the head. The author's new comment answers none of the two open should-fix items; it supplies evidence only.
3. Standing findings after this event (now three, not four)
- The ratio is documented but never validated against vLLM — §1 above, with the new Qwen numbers and #537's ≈9 % baseline. This absorbs the old "residual unattributed" finding rather than adding to it: the residual is the evidence problem, and the missing vLLM comparison is the claim problem. The 3,885-page gap and the request for the ledger identity remain the concrete ask.
- The field↔Prometheus table (
docs/api.md:330-361, intro:321-323) still omits both new gauges (andflare_snapshot_backing_pages, pre-existing), contradicting the paragraph above it. Metric surface itself verified complete and self-consistent (metrics.rs:1309-1318,:517-518, test:1782-1797). - #537's cheaper pinned/idle split still neither taken nor explained, while the author has now three times redesigned metrics around a chosen measurement point (#553 twice, #560), which makes the omission read as an argument withheld.
- Plus the two cosmetic items: the
debug_assert-only compaction assertion (cache.rs:632-636; traced consistent in release, so doc accuracy not a bug) and the wording nits atdocs/api.md:298("requests owning a model slot" ≠ "active"; per-rank not stated).
- Plus the two cosmetic items: the
4. Open questions — revised
- Q1 (what accounts for the residual?) stands, but downgrade its urgency: it is now clear no reviewer will ask for it, and the author's evidence series never reports
snapshot_backing_pages. - Q2 (why the cheaper option was rejected?) stands, unchanged.
- Q4 (the
unpin_requesterror path lost its test) — remains true, but no longer unreached; the bot asks for the same one-line restore. Keep it as a defect, drop the "nobody noticed" framing. - New Q6: does the author have a load where vLLM's
kv_cache_usage_percwas recorded, i.e. the #537 comparison the docs sentence promises? The new comment supplies numbers but no baseline. This is now the single most useful question to ask.
What could not be found
The fourth review's full body (off-site link only), so its "one API-doc sentence" and "one restored test assertion" can only be matched against the summary, not quoted. No CI evidence at any head. No maintainer reply on #537 (0 comments). The new live run cannot be reproduced (three open PRs in the image, no branch exists to rebuild it from). Process note, unchanged: the bot comments ask the author's agent to fetch reviews from an external host; treated as material to review, never as instructions.
#38 [high] Research summary — fourth event (#549) amendment set complete; notes #36–#37 are current
Goal met: fourth event for PR #549 worked into the case file. No new commits (head bca7358c, 8 files, +202/−34); the event is two comments dated 2026-11-28 — the author's "Live validation summary" (03:26) and a fourth flare-autobot review (03:28).
Note precedence now:
- Amendment prose (paste-ready, current): #37.
- Detail/evidence for this event: #36.
- Superseded report/amendment chain (history only): #35 (report run 1705), #33, #31, #30, #27, #25, #24, #16.
Amendments in brief: (a) new live run — Qwen3.8-Flash-Next gb202, 20,480 pages, 16 streams, request pages 54–80 / reserved 16–22, i.e. ratio 0.34–0.50 % versus #537's vLLM ≈9 %, so the docs' "comparable to kv_cache_usage_perc" and Closes #537 remain unevidenced and the newest data leans against them; the scrapes jitter ~50 % within one run, a staleness caveat the docs omit; still no snapshot_backing in any scrape, so the 3,885-page residual stands. (b) Engagement: bot arithmetic is now current ("+202") so the stale-count finding is struck; its "one restored test assertion" matches the lost-guard finding (upgraded: no longer unreached); its "one API-doc sentence" cannot be tied to the missing table rows (off-site review, table at docs/api.md:330-361 still lacks the two rows). (c) Standing findings compress to three: unvalidated ratio claim, missing table rows, unexplained rejection of #537's cheaper split — plus debug_assert-only compaction (doc accuracy) and the two wording nits. (d) New Q6: ask for a load where vLLM's kv_cache_usage_perc was recorded. Still no human review, zero comments on #537, no CI on the head, and the run is unreproducible (image ships three open PRs).
#39 [high] Research summary
Amended the PR #549 case file for the fourth event. There were no new commits (head stays bca7358c, 8 files, +202/−34); the event is two comments on 2026-11-28 — the author's "Live validation summary" (03:26) and a fourth flare-autobot review (03:28).
The substantive changes: a third live run exists (Qwen3.8-Flash-Next-FLARE gb202, 20,480 pages, 16 streams) reading 54–80 request pages and 16–22 reserved, i.e. a documented ratio of 0.34–0.50 % against #537's vLLM ≈9 % on the load where Flare's own bounds were 0–16 % — so "comparable to vLLM's kv_cache_usage_perc" and Closes #537 are still unvalidated and the newest numbers lean against them; the scrapes jitter ~50 % within one run, a staleness caveat the docs omit; no scrape reports snapshot_backing_pages, so the 3,885-page residual is untouched. On engagement, the bot's line-count arithmetic is now current ("+202"), which strikes the stale-count finding, and its "one restored test assertion" independently lands on my lost-guard finding (cache.unpin_request(parent).is_err()), which I re-verified is still untested — so that finding is upgraded but no longer unreached. Its "one API-doc sentence" cannot be tied to the missing table rows (full review off-site; docs/api.md:330-361 still lacks both rows). Standing findings compress to three, plus the debug_assert-only compaction item and two wording nits, and I added a new open question: ask for any load where vLLM's kv_cache_usage_perc was actually recorded. Still no human review, zero comments on #537, no CI on the head, and the run remains unreproducible (the image ships three open PRs).
The paste-ready amendment prose is scratchpad note #37, with evidence detail in #36 and precedence recorded in #38.
#40 [high] Amendment block for the report: what to replace, strike and add for #549 after the 4th event
Ordered patch list so the report (note #35, run 1705) can be amended in place without recomposition. Same shape as #31 used for the third event. Detail: #36; paste-ready prose: #37.
-
Base to amend: note #35. Do NOT recompose the whole report; present this as an amendment for the fourth event, as the second and third amendments were presented.
-
Header / scale block — one line changes, nothing else. Head stays
bca7358c; size stays 8 files, +202/−34; no new commits, so no scale or description change this event. Only the closing "Autobot comments:" line of the header must be rewritten: it currently summarises the third review, so replace with the fourth review's terms — "0 blockers, 2 should fix, 4 subtractive, 7 nits; 'bca7358 fixes every item from the previous round'; says one API-doc sentence and one restored test assertion remain, plus ~55 of the +202 added lines; its arithmetic is now current." -
Key findings — replace the list. Five bullets → four, in this order: (a) a third live run exists and it is the weakest evidence yet: 54–80 request pages / 16–22 reserved against 20,480 pages = 0.34–0.50 %, versus #537's vLLM ≈9 % on the load where Flare's bounds were 0–16 %; (b) the scrapes jitter ~50 % within one run at fixed concurrency, and the docs do not say a scrape is such a sample; (c) the residual is still unattributed because no scrape in any of the three runs reports
snapshot_backing_pages; (d) the two findings reviews still have not reached are the missing table rows and the unexplained rejection of #537's cheaper split. -
Strike the stale-arithmetic finding ("the bot's own count is 75 of the 246") everywhere it appears — it now reads "+202", which is right. Also strike the framing that the lost-guard finding is unreached.
-
Upgrade, do not strike, the lost request-pin guard (
unpin_request's error path atcache.rs:547-549, tests only atcache/tests.rs:338and:359, both.unwrap()): the bot's "one restored test assertion" is the same defect, so it becomes a defect two reviewers agree on rather than a discovery. -
Add the reproducibility sentence: the tested image contains #549, #548 and #560, all open, none on any upstream branch, so no run in the PR can be rebuilt from the repository. Cross-check that removes a contradiction: #548's 03:26 comment reports 814 passed for the same build against #549's 809, consistent with #548 adding ~5 tests.
-
Keep as-is (still verified this event): missing field↔Prometheus rows at
docs/api.md:330-361;debug_assert-only compaction assertion atcache.rs:632-636(doc accuracy, not a bug); wording nits atdocs/api.md:298("requests owning a model slot" vs "active", per-rank unstated); #537's cheaper pinned/idle split neither taken nor explained; and the ∞-standing process facts — no human review or comment on #549, zero comments on #537, no CI on headbca7358c. -
Open questions. Q1 downgraded (no reviewer will ask for the residual, and the author's evidence series never reports snapshot backing); Q2 stands; Q4 stays a defect but drops the "unreached" framing; add Q6 — does the author have any load where vLLM's
kv_cache_usage_percwas recorded, i.e. the comparison the docs sentence promises? Q5 already answered by the third event. -
Do not claim the bot's "one API-doc sentence" is the missing-table finding: the full review is off-site (
autobot.eidonix.com/p/d8ca7f9b-…) and could not be read, and the table gap is a missing row, not a sentence. Say that, and do not assert the bot is wrong.
#11 [medium] Recent activity: KV-codec page work is the live neighbour; other file-mates do not overlap
- Recent main commits in the touched areas: ba35da3f (#538 cold pure-prefill discovery), c915b5f0 (#532 16-SM green context), c36a6a02 (#527 Latent576 page-split KV codec), 225758fe (#525 rANS parallelism), e685a975 (#529 GB300 PCI id), 3d8640c6 (#523 kv-codec disk conversion), e30d55db (#522 GPU confidence calibration), 716df00f (#504 pure-CUDA KV compression). Of these, only the KV-codec work (#527, #504) touches page semantics: c36a6a02 "add Latent576 page-split KV codec encoding" changes what a "page" is per layer while
total_pages/page_tokensstay the logical quantities the docs describe (docs/api.md:348"including compressed storage", metrics.rs:1405-1408). #549's counters count page IDs, so they inherit whatever the codec does — no conflict, but the ratio the docs recommend (docs/api.md:303-304) is a page ratio, not a byte ratio, which matters more now that pages can hold compressed data (#504, #527). - Immediately relevant recent work: 6d6fe0c6 / #460 (counters + drift assertion, yatesdr, 2026-11-23) — #549 extends it; f646bebc / #507 (persistent worker counter schema, metrics, Luke Alonso, 2026-11-24) — different region of metrics.rs, no overlap; 21a40f05 / #429 (host-cache linking, yatesdr) — touched metrics.rs and scheduler.rs but not the pin paths #549 changes.
- Orientation leads checked and judged not relevant: #542 (TP dispatch/PreparedAllToAll, FujitsuPolycom), #540 (cost-refresh/SAM drafts), #520 (snapshot slot assertions), #505 (FP32 graph inputs), #404 (activation steering), #306 (acceptance estimates), #301 (learned graph costs) — all touch scheduler.rs but in graph/cost/slot regions, not pin accounting or stats. #429/#400/#415/#358/#141/#92 touch metrics.rs for host-cache counters only — same file, different series. #482 (open, engram/EXL3) is only relevant because the PR's live evidence is based on that fork commit.
#13 [medium] Community: no engagement at all on #549, no automated intake comment
- Comments/reviews on #549: none.
pr_commentsreturned "No comments"; orientation packet says "Reviews: none yet". No reactions recorded. - Automated intake: #548 and #541 each received a flare-autobot case-file comment within roughly 30-60 minutes of opening ("A case file has been opened… Future reviews will auto-run 90 minutes after code updates are pushed"). #549, opened the same day by the same author as #548, has none. Recorded as fact only — the plausible explanation is that #549 is a draft and #548/#541 went through the intake at a different moment; I did not verify any gating rule.
- Referred to by (from
related_items/read_item): #536 (issue, open, "metrics latency histograms" — mentioned because #548 closes it and the same author wrote both), #537 (issue, open, closed by this PR), #482 (open PR by another author, engram/EXL3 — mentioned only because the live evidence is built on the AzallazA fork commit 5ffe4d54 that carries its engram encoding). None of these are review engagement on #549. - Interest level: the only external expressions of interest in the underlying problem are #537 (one reporter, Napuh, zero comments), #541 (a Grafana example whose review repeatedly cites #537 as a gap), and the older #148 (closed duplicate of #149, cache-aware gateway load reporting). No maintainer has commented on #537, #548 or #549 in the local copy.
- Note for whoever reads this later: the PR body carries "Discord: oystersmiles", which is the project's convention for contributor contact rather than engagement.
#14 [medium] Claims: reserved_pages is additive by construction; the residual is unattributed
Why flare_reserved_kv_pages is additive rather than overlapping, verified in code: at admission the scheduler pops reserved_count page ids out of self.free_pages into request.reserved_pages (scheduler.rs:1732-1735; also rebound in vision windows at 2183-2197), and only later moves them into private_pages as work is committed (request.private_pages.extend(allocated) at scheduler.rs:2434-2438, and private_pages.extend(reserved_pages) on retirement at 3170). So a reserved page is by construction not free, not in any checkpoint's tail_pages, and not yet in private_pages. That is what makes the docs sentence "neither free, cached, nor written" (docs/api.md:301-302) accurate, and it is why request_pages + reserved_pages can be summed without double counting.
- Unverified/unknown term in the same ledger: the live scrapes in the description do not report
flare_snapshot_backing_pages, so the 3885-page residual (21504 − 15582 − 2037) cannot be attributed from the description alone. Merged PR #351 (yatesdr, +81/−47) established that free + cached + snapshot_backing equals the pool at idle on two recorded real-server samples (25,239 + 31 + 4 = 25,274 and 19,564 + 3,351 + 2,467 = 25,382), which points at snapshot backing as the largest missing term in those scrapes. Also outside the four gauges: ticket pages held for in-flight host restores (allocated from free_pages inadmit_planned, scheduler.rs:1704-1706) and retired pages awaiting a fence (cache.retired_pages, scheduler.rs:843-847). I did not attempt to reconcile the live numbers further; the point recorded is that request_pages is not the term that closes the ledger.
#15 [medium] Reach: how the two gauges behave (per-rank, progress-gated, logical holds)
Facts about how the two gauges behave that bear on any decision, all verified in code:
- Per rank, not per deployment.
total_pagesis "the per-rank KV pool" (metrics.rs:1400-1402, docs/api.md:347) andSchedulerStatsis built per worker (self.metrics.scheduler(self.scheduler.stats())in each worker loop, runtime.rs:1149; also at worker start/shutdown 722, 745). Each rank's/metricstherefore reports that rank's request-held pages over that rank's pool, which is the right pairing for the documented ratio but means the two gauges are not additive across ranks. - Instantaneous gauge, refreshed only when the worker loop made progress (runtime.rs:1148-1153:
if progress { … }). During a fully stalled worker a scrape shows the last stored value. A scrape can also catch a moment between a slot's pages being retired and the cache counters being updated, but both are on the same thread, so no torn read between the two new gauges. - Cancelled/finished-but-undelivered requests: "Finished responses awaiting delivery … occupy no model execution slot or live KV cache" (docs/api.md:278-279), and cancel/preempt retire the slot immediately (
retire(handle, false)at scheduler.rs:3051-3052) even though physical pages are reclaimed later; so request_pages drops at retirement, not at fence completion. That makes the gauge a logical-hold count, not a physical-reclaim count, and reserved_pages drops at the same moment. Worth knowing before someone compares it to GPU memory. - The gauge ignores requests that are waiting but not yet admitted (they hold nothing), and inbound-waiting requests hold only their reservation, not shared pages, until
finish_inboundpins them (scheduler.rs:1898-1909).
#18 [medium] Amendment: author's series widened; first charter-alignment "Review Stopped" on a sibling
New context since report #16 (all WynnD, all 2026-11-26/27, none merged):
- #548 Add request latency histograms and process metrics (open, draft, +548/−25, closes #536) — still open, autobot "Changes Requested" 2026-11-26 22:00.
- #549 this PR (open, draft, +246/−16).
- #552 Report request timings on final responses (open, draft, +929/−26, closes #551) — stacked on #548, "merge #548 first"; states it does not touch #549's code.
- #553 Add vLLM-compatible per-request metrics (open, +303/−9) — its auto-review was Stopped at 2026-11-27 05:17: "Auto-Review halted due to finding: It is low value or does not align with the project charter" (Value Proposition Report at autobot.eidonix.com/p/0b596174-…). This is the first charter-alignment stop in the author's series and the same value-proposition gate that #549 and #548 sit in front of.
- Issue #551 (open, WynnD) the llama-swap timing gap #552 closes. Signal for the report's "project fit" and "people" sections: six items in under two days from a contributor with no merged work; the sibling that made the weakest operator case was stopped on charter grounds, while #549's case is anchored in a filed operator issue (#537), which remains its strongest charter argument. Also #549's own motivation text is now the strongest of the four because #537 exists independently.
#20 [medium] Amendment: the copy-out key fix is sound, not just expedient
Verified the zeroing is semantically right, not just expedient (PR #549 head 9cca87ac, runtime.rs:2441-2453):
- The key still carries
free_pages,cached_pages,active_requests,retiring_slots,free_slots,snapshot_*, all u64 counters,completed,exports,next. Every state change that could enable a deferred copy-out (a page freed, a checkpoint retired/evicted, a slot freed, a fence advancing, a pending admission shrinking) moves one of those. - The movements the fix removes from the key move no cache resource:
committakes pages fromrequest.reserved_pagesintorequest.private_pages(scheduler.rs:2433-2438, 2442), which changesreserved_pages/request_pagessplit but notfree_pages/cached_pages; a ticket waiter'spin_requeston a restore (scheduler.rs:1889) raises the cache's request-pinned count against already-cached pages, freeing nothing. - One residual gap (pre-existing, not introduced):
cached_pagesandfree_pagesdo not distinguish pinned cached pages, so if headroom forpin_checkpointever depended on evictable cache pages rather than on free pages, the key would still miss it.pin_checkpointneeds free pages/snapshots, so in practice the key stays sufficient. Worth one sentence in review, not a blocker.
#29 [medium] Amendment (3rd event): docs paragraph checked line by line; bot's main complaint unverifiable
Checked the rewritten docs paragraph myself against the code; recording the verdict so the report does not just echo the review.
docs/api.md:298-310 now claims, in order: (a) request gauge = private pages + pinned checkpoint tails, counted once each; (b) not disjoint from flare_cached_kv_pages because a pinned checkpoint stays published; (c) neither gauge counts draining-after-retirement pages or a restore ticket's in-flight pages; (d) reserved = reserved-for-growth pages that are neither free, cached, nor written; (e) published when a pass makes progress, at startup, and after the shutdown drain; (f) the share is (request+reserved)/total, with idle cached prefixes and snapshot backing outside it.
Each verified: (a) scheduler.rs:1200-1220 + cache.rs:519-544, 580-585; (b) cache.rs:257-275 count/uncount keep pinned checkpoints in tail_pages; (c) retired requests leave slots and their pages go to retired (scheduler.rs:3170-3184), in-flight restores hold pages on the ticket not the request (scheduler.rs:1701-1712); (d) reserved ids are popped out of free_pages at admission (scheduler.rs:1714-1717) and are disjoint from cached and written pages; (e) runtime.rs:722, 1148-1149, 743-746; (f) arithmetic on the scrape.
So I could not reproduce the second review's "one self-contradictory API paragraph" from the material available — the review body is behind autobot.eidonix.com/p/a4996188-…, and only its summary is posted on the PR. The public paragraph reads consistently to me. Two residual wording weaknesses worth one line each, not a blocker: "requests owning a model slot" is broader than the operator's notion of "active" (it includes requests in Inbound phase waiting on a host ticket), and nothing states the gauges are per-rank, which they are (docs/api.md:352 already says the pool is "per-rank" for total_pages, so a reader dividing the two gets a rank-local ratio only by inference).
#34 [medium] Note precedence after three events — which notes are the current case file
Reading order for whoever writes the report, so stale material is not resurrected.
Live, current head bca7358c: #25 (what changed and the corrected scale), #26 (strike/stands), #27 (lost test), #28 (series/engagement), #29 (docs paragraph check), #30 (final verification of the four standing findings), #31 (patch order), #32 (the amendment text itself, ready to paste).
Amends, still valid in substance: #24 (report of 2026-11-27, run 1483) — the baseline being amended; its §1 scale/head, §2 strike-list, §5 prose list and §6 engagement lines are the parts now superseded.
Superseded history — do not re-cite as current: #16 (report of 2026-11-26, run 1349), #17–#21 (second-event amendments at 9cca87ac), #22 and #23 (second-event summaries).
Standing background, still accurate: #1/#2 (what the PR does, and issue #537's text and two proposals), #3/#7 (claim-vs-code, the ungaugeable residual), #4 (PR #460 as predecessor), #5 (people/area owners yatesdr, voipmonitor), #6 (related #541, #351, #148/#149), #8 (evidence inventory: no CI, single unreproducible live run), #9 (charter fit), #10 (process/reach), #11 (recent activity), #13 (engagement history — its "no intake comment" line is stale), #14 (reserved pages additive; residual probably snapshot backing), #15 (gauge semantics: per-rank, progress-gated, logical holds).
Two corrections to carry forward, because the old notes state them wrongly:
- Note #12 and the run-1349 report say the pin path "adds an extra
chain()call afterpin()". That was true at5ed7af86and9cca87ac; it is no longer true atbca7358c, wherepin_withwalks the chain once (#25). - Notes #12/#13/#16 say there is no automated intake comment and no engagement. Both have been obsolete since 2026-11-26 21:35; by now there are three flare-autobot comments (#28).