Explore scratchpad · NVIDIA/hyperflare-inference #718

Raw Markdown for agents: https://autobot.eidonix.com/p/b2266f6e-ec0a-4220-ab48-825129408c0a.md

#1 [high] Project fit: #160 closed by maintainer as disaggregation out of scope; #718 is exactly that

Issue #160 "Roadmap question: prefill/decode disaggregation roles, now that the prefix cache pool exists?" by JCTaz9, opened 2026-10-31, closed 2026-11-18 by yatesdr. Labels: area:caching, area:selene, triage:design-review.

#160 body asked for (1) --role prefill|decode admission filters so a cache-aware gateway can route cold traffic to prefill workers and warm to decode, or (2) request migration. It reported measurements: publishing 100K-token prefixes on one instance and restoring on the other gives 0.12-0.42s vs ~5s cold prefill; but a cold request sent to a decode instance still prefills there.

yatesdr's closing comment (2026-11-18 23:54), verbatim-relevant:

CONNECTION: #718 is a first-time contributor's implementation of exactly this: a prefill-only HTTP path plus an external router dispatching decode to a separate worker (1P1D). #718's own description says it keeps "disaggregated orchestration in an external caller", i.e. it implements the serving topology #160 asked for, but #718 at least does not add --role flags or request routing inside Flare. The PR does not cite #160, and #160 was never reopened.

CHARTER fit: read_charter non-goals list: "Broad production coverage across arbitrary models, GPUs, or deployment setups, as well as rack-scale features like disaggregation." -> "(require an explicit maintainer sign-off before starting work)". So #718's core purpose falls in the charter's explicit non-goals needing maintainer sign-off.

#2 [high] Charter: disaggregation is an explicit non-goal requiring sign-off; other relevant rules

From read_charter (project charter, NVIDIA/hyperflare-inference):

Non-Goals (require an explicit maintainer sign-off before starting work): "Broad production coverage across arbitrary models, GPUs, or deployment setups, as well as rack-scale features like disaggregation." Also non-goals: "CPU or non-NVIDIA backends, pluggable execution backends, training/fine-tuning, multi-model hosting/routing, or general cluster orchestration."

Goals include: "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene." (this is the in-scope part of #718's parity: pool announcement/barrier and pool_only capture bound). Also: "Support single-host and cross-node serving, with Orbit handling placement and supervising serving ranks." Also: "Support the documented Chat Completions, Completions, Responses, and Messages APIs (including token counting)."

How We Work:

Standards: "We target the documented subset of the OpenAI API, the Anthropic Messages API (including token counting and streaming), and JSON Schema for structured outputs." Note #718 returns a bespoke object: "prefill" JSON body and its own X-Flare-* headers: a non-standard extension to those APIs (not per-spec fields, but extensions).

Code Review Standards: "Supported matrix & compatibility: Check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target named in the docs."; "No per-model special cases or flags: Keep shared runtime layers general rather than adding model-specific branches or flags."; "PR descriptions: Expect four parts: why the change is needed, what changed, the claimed result, and the evidence backing it." (#718's description does have all four.)

"What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." -- #718 claims a measured memory issue (33 GiB -> 9.1 GiB capture) which is the strongest charter-aligned part.

Roadmap items: in-process Rust SDK (#6); Engram & shared Engram tables (#267); FlashInfer dependency fix (#215). Disaggregation is NOT on the roadmap.

#3 [high] Related work: #455 (merged) created pool_only capture sizing; its review flagged the exact cost #718 now bounds

#455 "Capture single-process prefix checkpoints for the pool and drain DRAM on shutdown" by yatesdr (COLLABORATOR), merged 2026-11-22, +655/-165. It created the pool-only capture buffer (selene/src/offload.rs, helios/src/runtime_core/memory.rs, selene/src/pool/store.rs, docs/prefix-cache-offload.md - files #718 also touches).

In #455's review thread yatesdr raised, and #455's author answered only partially (by documenting it): review item 2, verbatim-ish: "Pool-only now reserves host memory, and can now fail to start. The capture buffer holds the largest GPU page capacity plus one row (offload.rs:77-83), so it is about the size of the GPU KV cache in registered host memory. On main a pool alone reserved none. When the host budget cannot hold it, startup fails with 'host budget cannot hold a full pool capture'... Please give the buffer's size for the measured configuration, and state the failure case in the description and docs/prefix-cache-offload.md." Resolution in #455 was documentation (11.0 GiB measured, 7.1 GiB floor, failure case documented), not re-sizing.

CONNECTION: #718's third change (PrepareInputs::max_sequence_pages bounding the pool_only capture slab to ceil(max_sequence_tokens/page_tokens)+row slots) is a direct, substantive response to that acknowledged #455 review concern: it removes the "about the size of the GPU KV cache" property instead of just documenting it. #718 does not cite #455 in its description.

Also from #455: pool-only sizing = "the larger of two figures: the transfer-burst rule every DRAM tier already uses, and the largest GPU page capacity plus one row. Any chain the GPU can hold therefore fits." And "Helios limits GPU page capacity so the buffer fits the host budget. If even the minimum page capacity plus one row does not fit, startup fails with host budget cannot hold a full pool capture." #455's measurements: pool-only Median TTFT 21.1s -> 7.6s, cached tokens per request 9 -> 13,003 (GLM-5.3-Flash NVFP4 TP4, 4x RTX PRO 6000).

#4 [high] The change: 32 files +1134/-57, four independent concerns in one PR, no undeclared files

PR #718, open, "ready for review", by fakoli (FIRST_TIME_CONTRIBUTOR; GitHub association FIRST_TIME_CONTRIBUTOR; 0 other PRs/issues in 180 days). Opened 2026-12-04 02:43, updated 2026-12-04 17:23. Branch feat/prefill-only-kv-handoff -> main, head 17a532e. 32 files, +1134/-57.

ZERO discussion: read_item and pr_comments both report no comments/reviews/reactions. No labels. No CI checks on head commit (orientation packet: "CI on the head commit: no checks"). No maintainer engagement of any kind yet, on a PR whose core purpose is a charter non-goal.

Description has all four charter-required parts (why / what changed / claimed benefit / evidence) and an explicit "Unrun checks" section, plus the required "Discord: fakoli" line (AGENTS.md:150 requires the line).

Change inventory by area (from pr_files, authoritative):

The description's "What changed" is a fair, complete summary of these 32 files. I found NO undeclared change in the 32-file set. Caveat about tooling, below.

#5 [high] The change: pr_diff shows a stale base; preserve_message_anchor is an undeclared second new field

TOOLING CAVEAT for anyone verifying this: pr_diff in this environment diffs against a STALE local main ref, not the PR base cc0a49d. Consequences observed:

One genuine non-description detail found by reading the PR head: the RequestSpec struct gains TWO fields, preserve_message_anchor and prefill_only (helios/src/scheduler.rs:155-166), and Prompt gains both (helios/src/server/runtime.rs:50-55). preserve_message_anchor is the opposite-direction sibling: #718's other changes relax interior-anchor budgeting for reasoning-opening requests (budget_interior_anchor, helios/src/scheduler/checkpoints.rs:566-568, and request_anchor_endpoint early-return at :573-579). The description mentions prefill_only propagation in detail but does not call out preserve_message_anchor as a second new request field, nor that prepare_validated_inference now derives it from output.content.start == OutputStart::Reasoning (helios/src/server/request.rs:427-429). Default is false everywhere, so default scheduling is unchanged.

#6 [high] The change: verified mechanics of prefill-only, announce barrier, and completion ordering

Verified implementation facts at PR head (what it does, plainly):

  1. Prefill-only request path.
  1. Scheduler anchoring.
  1. Runtime completion.
  1. Selene pool barrier.

#7 [high] The change: exact pool_only cap semantics, and that it clamps GPU page capacity too

selene/src/offload.rs pool_only() (offload.rs:116-118) = pool attached && memory_bytes == 0 && !disk_enabled. headroom_inner (offload.rs:150-200): for pool-only, capture = local_pages, intake slots = chain_pages = match inputs.max_sequence_pages { Some(limit) if limit > 0 => pages.min(limit), _ => pages } chain = chain_pages + layout.row_slots() reject if chain > host budget ("host budget cannot hold a full pool capture") then .max(intake_slots(layout, inputs.max_active)).min(budget) So the cap is local_pages.min(max_sequence_pages) when max_sequence_pages = Some(n>0), and full local_pages for None or Some(0) - exactly as the description says. Note the .max(intake_slots(...)) floor still applies, so the final slab is not purely the chain size.

PrepareInputs.max_sequence_pages: Option<u64> added at selene/src/offload.rs:346; ignored by another impl at offload.rs:628.

helios/src/runtime_core/memory.rs:

Behavioural edge: max_sequence_tokens is read from self.server_config["max_sequence_tokens"] and errors "model requires a prepared context ceiling" if absent (memory.rs:884-886) - an existing requirement, not new.

Charter link: this part is squarely in the "measured performance/memory problem" category that the charter says gets merged, and is the part independent of disaggregation.

#8 [high] Claims and evidence: what is backed, what is not, and the reversed C1 result

CLAIM -> EVIDENCE mapping, and gaps. All figures below are the author's claims; nothing here was independently reproduced by me.

A) Focused tests "on f705086" (a commit the description says includes #720 and the #721 fix):

B) "Full Rust suites and TLA+ lifecycle conformance on 45e1c1a baseline": 3,514 passed / 0 failed / 94 ignored across flare-eos, flare-selene (589), flare-selene-manager (449), flare-helios (1,961), flare (255), flare-cli (248); plus 9 TLA+ model runs and mutation gates. IMPORTANT QUALIFIERS the author states himself: (i) helios was tested "with a one-line fix for the missing external_extents field in helios/src/runtime_core/cache_memory.rs:1659 on 45e1c1a" - i.e. the suite did not pass on the unmodified tree; (ii) this block is on the 45e1c1a baseline, NOT the current head 17a532e; (iii) only targeted tests were re-run after the f705086 rebase. => The PR's headline green-suite evidence does not apply to the head commit. Head is 17a532e, and no CI ran on it.

C) Live 1P1D numbers, two campaigns:

EVIDENCE GAPS that matter:

  1. The headline benchmark is a NEW SERVING TOPOLOGY (1P1D + external router + Selene) compared against 2x TP1 stock v0.5.3 - a released tag, not main, and not the same topology. AGENTS.md:165-166 and charter require "a measured performance or memory problem"; the comparison does not isolate this PR's delta. The author says so explicitly: "Live dual-GPU measurements below reflect the combined external router + Selene pool + disaggregated topology on the tested builds rather than isolated single-component benchmarks."
  2. Notably, the C1 ultra-long ladder REVERSES: 1P1D is 2x SLOWER than 2x TP1 at 960K (344.84s vs 173.78s TTFO p50). The author reports this under "Tradeoffs and limitations", which is honest, but it means the claimed benefit is conditional on mixed concurrency.
  3. The memory claim (33 GiB -> 9.1 GiB / 8,293 slots; 46.02 -> 41.77 GiB RSS) is stated for Inkling-2-Mini-FLARE with 1M context on a 96 GiB card, but the RSS drop is only 4.25 GiB while the slab reportedly shrinks ~24 GiB. The description explains the metric ("measuring committed pages rather than virtual reservation"), and separates the 16 GiB pool + 6 GiB staging from the capture buffer, so the arithmetic is not transparent from the text alone. A reviewer would need the per-process breakdown.
  4. No isolation/ablation of the three changes. Change 3 (capture bound) and change 2 (announce/GPU announcement) are independently valuable and independently benchmarkable; neither is benchmarked in isolation.
  5. The NoWindows/--staging 16G finding (Qwen campaign) is a be

#9 [high] Related work: scope precedents and the overlapping open/merged PRs, with who owns each area

RELATED WORK / OVERLAP (all verified via search_items, items_touching, read_item):

A) CHARTER-TENSIONING PRECEDENT - the most important related item.

B) #715 (OPEN, pr) "helios,ignition: implement additive packed multi-request prefill (Contract 3)" - it MENTIONS #718. It also shares checkpoint_extra_work_fraction naming. Adjacent prefill-graph work; not clearly overlapping files. C) #674 (merged) "selene,selene-manager,helios: improve prefix-cache hit rate, L1 retention, NVMe throughput, and GPU snapshot packing" by yatesdr - 14 files in common. Owns recent work in selene/src/offload.rs, helios/src/scheduler/cache_memory.rs. D) #697 (merged) "helios/scheduler: preserve interior anchor for open-reasoning prompts" - 12 files in common, and it introduces the preserve_message_anchor / checkpoint_selection machinery #718 extends. STRONG signal: preserve_message_anchor is NOT in the local stale main but IS at the PR head, so #718 is stacked on (or rebased over) #697/#709 and its budget_interior_anchor change modifies that newer policy. E) #709 (merged) "Unblock lossless KV compression across Ignition, selene-manager, and Helios Green Contexts" - shares preserve_message_anchor naming. F) #621 (OPEN) "Validate scheduler admission against the core parameter declarations" by jcartu - 9 files in common, also touches helios/src/scheduler/cache_memory.rs. G) #694 (OPEN) "selene,helios: add write-side NVMe and pool spill profitability gate" by yatesdr - touches offload.rs/cache_memory.rs; would overlap the admission-costing area. H) #723 (OPEN) "helios,heliopause,ignition: fleet-wide 2-way codec green contexts, graph SM bounds, and ScratchArena" - title-word match, green contexts appear in docs/prefix-cache-offload.md hunks. I) #692, #691 (OPEN, jcartu) touch helios/src/server/http.rs - same file as #718's +232 lines; #691 is about reused_prompt_tokens/continuous_usage_stats which interacts with #718's reused_prompt_tokens in the prefill response. J) #548, #560 (OPEN, WynnD) per-request metrics on http.rs. K) #714 (closed, not merged) "fix(helios): add missing external_extents field in cache_memory test Core literal" - #718's description says it needed this as a workaround and that #721 superseded it; #718 mentions #714, #716, #720, #721 all four. L) #720 (merged), #721 (merged), #716 (merged) - the rebase prerequisites #718 stacks on. No competing/duplicate implementation of a prefill-only endpoint or an announce barrier exists in the repo (search_items found #718 alone for each). So this is the first and only attempt, not a duplicate.

WHO WORKS HERE: yatesdr owns selene pool/offload/pool-only capture and merged #455/#497/#674/#365/#399/#92; lukealonso owns TLA+/lifecycle and AsyncTransfer (#595, #646, #711); original-el8 KV plane (#473); FujitsuPolycom CPU cost/eviction (#309, #497); jcartu and WynnD current helios/src/server/http.rs contributors. None of them appear in #718's discussion - the PR has none.

#10 [high] Recent activity: builds on #697/#720/#721/#716, reverses part of #455, sits on engine code just hardened by #609/#611

RECENT ACTIVITY in the touched areas (from items_touching; note the orientation packet's "recent commits" call errored out with a git object read failure, so this is reconstructed from PR history):

WHAT CHANGED LATELY THAT #718 REVERSES OR QUALIFIES:

AGE/PROCESS: opened and last updated the same day (2026-12-04), ~1 day old at data collection. "Ready for review", no CI, no reviews, no labels. Single Discord handle given ("fakoli"), consistent with AGENTS.md:148-153 requirement.

#11 [high] Reach: opt-in and default-safe, but silently overrides request fields and needs an external router; core-design.md not updated

REACH — who and what is affected. Facts, with citations.

USERS / OPERATORS:

API / COMPATIBILITY:

DEPLOYMENT / DEPENDENCIES:

DOCS:

TESTS REACH:

#12 [high] People and community: first-time contributor, no maintainer request cited, zero engagement

PEOPLE + COMMUNITY.

Author: fakoli. GitHub association shown by the tooling: FIRST_TIME_CONTRIBUTOR. Search over the last 180 days returns 0 merged, 0 closed, 0 open PRs or issues from them other than #718 itself, i.e. #718 is their first contribution to this repository. Not one of the three priority contributors the charter names (@voipmonitor, @original-el8, @lukealonso), so the charter's "extra weight" clause (AGENTS.md/charter "Respect contributors", #229) does not apply - and equally, the charter's instruction "Every PR is judged on its merits" does.

Who usually works in these areas (none of whom has engaged):

COMMUNITY / ENGAGEMENT SO FAR: none.

#13 [high] Project fit: 3 of 4 changes land inside charter goals; the prefill-only mode is the named non-goal closed in #160

PROJECT FIT — charter/docs mapping, as facts, aligned and misaligned. (See also entry 2 for full charter quotes and entry 1/9 for #160.)

ALIGNED:

  1. Charter Goals: "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene." The announce barrier + announce_gpu change is squarely inside this goal: it makes an existing pool operation (store/announce) deterministic for a caller who must act immediately after publication. It also fixes a real correctness-shaped race the description describes: PooledStore::store returns before queued NoticeBatch frames reach the manager index.
  2. "What gets merged": "...a measured performance/memory issue...". Change 3 (pool_only capture slab bounded to one sequence chain + one row; 33 GiB -> 9.1 GiB, 46.02 -> 41.77 GiB RSS) is a measured memory issue with before/after numbers, and it answers reviewer item 2 from #455 where the alternative accepted was documentation only.
  3. Documentation goal: two docs updated (docs/api.md new section, docs/prefix-cache-offload.md sizing paragraph + a --staging buddy-allocator operational note). The --staging 16G note fixes an operator trap (8 NoWindows -> 0) that was previously undocumented.
  4. PR-description standard (charter "PR descriptions: Expect four parts") is met: why / what changed / claimed result / evidence, plus an explicit "Unrun checks" list, which AGENTS.md:194-199 asks for ("Identify missing hardware, inputs, and unrun checks explicitly").
  5. "Keep the runtime small and model-agnostic": no per-model branch, no GraphKind, no RequestPhase. Field is a general boolean. Complies.
  6. Default-off and explicit: prefill_only/preserve_message_anchor default false; header is explicit with strict validation and duplicate rejection - consistent with "Be explicit" / #417 in spirit for its own surface.

MISALIGNED OR IN TENSION:

  1. CHARTER NON-GOAL, the big one: "Non-Goals (require an explicit maintainer sign-off before starting work): Broad production coverage across arbitrary models, GPUs, or deployment setups, as well as rack-scale features like disaggregation." #718's stated purpose is "Disaggregated prefill-to-decode serving over a shared Selene prefix-cache pool", it adds a prefill-only serving mode designed so "an external router dispatches the decode request to a separate worker", and its benchmarked benefit is a 1P1D disaggregated topology. That is disaggregation, named in the non-goal list.
  2. docs/core-design.md:347-348 still reads "Disaggregated prefill, adapters, pooling models, and device portability are outside this design." #718 does not change this line, so the tree after this PR would contain a design doc forbidding what a new documented API feature is for.
  3. AGENTS.md:171-174 "Reject unapproved scope expansion" covers "general-purpose cluster orchestration" requiring "an explicit maintainer decision before implementation". AGENTS.md:201-207 says "A feature request, passing tests, or a performance gain does not waive an architectural invariant" and "a commit acknowledgment or routine PR approval is not that decision". No maintainer decision in favour of disaggregation exists in the repo; the only recorded decision is the opposite, in #160.
  4. AGENTS.md:209-212 says reviewers should "recommend rejection. Do not rescue it by adding an opt-in, weakening the rule, expanding its scope". #718's own architecture note is that it avoids changing wire schemas/phases/kinds "by keeping disaggregated orchestration in an external caller with an HTTP opt-in header" - i.e. it is the opt-in shape that guidance describes. A maintainer deciding must weigh that #718 adds no in-product router or role flags, only the primitive.
  5. AGENTS.md:165-169 "Every contribution must address an explicit maintainer request, a demonstrated defect, a measured performance or memory problem, or inaccurate documentation." Prefill-only/barrier: no maintainer request cited and no defect report - the "race" is described but not linked to an issue or reproduced as a bug; it is inferred from code reading. Only change 3 has a clearly demonstrated measured problem.
  6. AGENTS.md:198-199 "Keep each PR focused on one coherent outcome". #718 bundles four outcomes (a new serving mode + a pool ordering primitive + a memory-sizing change + a docs fix) across three crates plus 14 test files. The memory change and the docs fix are separable.
  7. AGENTS.md:188-193 "Reject unsupported abstractions and churn... Refactoring must directly support the requested behavior". PooledStore::gpu_index_entry extraction (+32/-27) and the preserve_message_anchor policy relaxation are adjacent refactors; the first does support the new announce_gpu path, the second is a separate policy change.
  8. Charter "No per-model special cases or flags" is satisfied, but preserve_message_anchor IS a second scheduling-policy knob introduced inside a PR titled "prefill-only KV handoff".
  9. Roadmap fit: disaggregation appears on neither the Goals nor the Roadmap (only Engram/#267, in-process SDK/#6, FlashInfer/#215). So "addresses a roadmap item" does not apply.

NET, stated as fact not judgement: 3 of the 4 changes (barrier/GPU announce, capture bound, docs) land inside charter goals and one of them answers a standing review item from #455; the 4th (prefill-only serving mode) implements a charter non-goal that was explicitly closed as out of scope 16 days earlier in #160, without a maintainer request in the record.

#14 [high] The why: one of three gaps has a paper trail (#455 review); the rest are inferred; only #160 ever asked

THE WHY — problem statement, linked reports, and how long wanted.

Three stated gaps (description "Why"), each with what I could and could not corroborate:

  1. "Normal generation requests anchor checkpoints at interior message boundaries (LiveRequest::checkpoint_anchor) and price tail-endpoint snapshots against checkpoint_extra_work_fraction (with single-flight discovery of unmeasured snapshot or prefill graph costs), so a caller probing with max_tokens=1 can skip publishing the full prompt endpoint or execute decode and streaming steps unnecessarily." CORROBORATED BY CODE: checkpoint_anchor() walked message_boundaries (.rev().find(...)) and budget_interior_anchor/checkpoint_extra_work_fraction gated the interior anchor, so prompt-end anchoring was not guaranteed. The max_tokens=1 probe workaround is the author's own inference; no issue or comment in the repo proposes it. WANTED SINCE: / NO LINKED REPORT. No issue asks for prefill-only requests. The checkpoint_extra_work_fraction machinery itself is longstanding and heavily worked (#697, #709, #674, #346, #354), so the area is hot, but not for this reason.
  2. "PooledStore::store returns before queued NoticeBatch frames are processed by selene-manager, so an immediate decode request on a peer worker can race ahead of pool index visibility unless the caller sleeps heuristically." CORROBORATED BY CODE AND DOCS: docs/prefix-cache-offload.md:892 states "Every store call from the worker returns without waiting", and the async-by-design contract is documented at selene/src/store.rs:323-331 and the offload doc's "Neither publication nor admission waits for I/O". So the race is real by construction, but it is also an intentional design property of the store ("The worker pins queued copy-outs until Stored or Deferred"), not a bug. #718 adds an optional barrier without changing the default non-blocking behaviour - which is the right shape for the existing contract. WANTED SINCE: / NO LINKED REPORT. No issue reports this race. It is inferred. The nearest prior art is issue #160's measurement that publish-then-restore works cross-instance (0.12-0.42s vs ~5s cold prefill) - but #160 did not complain about ordering.
  3. "Under --prefix-cache-pool with --prefix-cache-memory 0 (PrefixCacheOffload::pool_only()), prepare_with_inputs sizes the capture slab to the full multi-sequence GPU KV capacity (local_pages plus one row's slots, roughly 33 GiB on an RTX PRO 6000 96 GiB GPU for 1M-context cores), even though any single sequence checkpoint chain cannot exceed max_sequence_tokens." BEST-CORROBORATED: this is exactly the sizing #455 introduced and documented, and #455's own reviewer yatesdr raised the memory cost as review item 2 ("The capture buffer holds the largest GPU page capacity plus one row ... so it is about the size of the GPU KV cache in registered host memory"), settled in #455 by documenting the failure mode rather than resizing. So the "why" here has a paper trail: #455 review, merged 2026-11-22, ~12 days before #718. WANTED SINCE: 2026-11-21/22 (the #455 review). Not a long-standing request; new.

HOW WIDELY WANTED: narrow. Exactly one item in the whole repo asks for the top-level capability - issue #160 (JCTaz9, 2026-10-31, closed 2026-11-18 as out of scope) - and it asked for --role filters and request migration, not a prefill-only header. No other issue or PR mentions prefill-only serving, an announce barrier, or pool visibility ordering (search_items returns #718 alone for each of these phrasings). So: one user asked 34 days before this PR; a maintainer declined; the capability remains unrequested in the record since.

Framing note: the description asserts these three gaps "block reliable zero-delay HTTP handoff" and twice refers to "single-flight discovery of unmeasured snapshot or prefill graph costs". That single-flight discovery logic (snapshot_discovery, snapshot_discovery_in_flight, measured_duration fallback to zero cost) appears in the PR's checkpoints.rs context but is NOT in the 32-file change list - treat it as pre-existing (see entry 5 tooling caveat) unless GitHub confirms otherwise. I could not confirm it as part of this PR.

#15 [high] Process: green evidence is not on the head commit; five residual technical observations

PROCESS + residual observations worth a reviewer's time.

STATE: open, "ready for review", opened 2026-12-04 02:43 and last updated 2026-12-04 17:23 (same day). Base main, head 17a532e. No labels, no CI checks on head, no reviews, no comments. ~1 day old at collection. Not a draft.

EVIDENCE-ON-HEAD MISMATCH (the single most actionable process fact): the 3,514-test green suite and the TLA+ mutation run were done on 45e1c1a, which is a baseline the PR was later rebased away from; the head is 17a532e. After the later rebase only the targeted prefill_only / announce / empty_boundary / pool_only_caps_* tests were re-run (author's own "Unrun checks" note says as much). And even the 45e1c1a run needed a local one-line fix for #714. So: green-on-45e1c1a-with-a-patch, targeted-green-on-f705086, nothing at all on the actual head. No CI substitutes for that here.

DOUBLE-EXPRESSED TIMEOUT: selene defines ANNOUNCE_BARRIER_TIMEOUT = Duration::from_secs(5) (selene/src/pool/engine/mod.rs:51) and helios hardcodes a separate Duration::from_secs(5) at the await point (helios/src/server/http.rs:268). Two sources of truth for one user-visible deadline documented as "its 5-second window" in docs/api.md. If one changes, the response's announced: false semantics silently shift relative to the engine's cancel.

BLOCKING BEHAVIOUR TO SIZE FOR A REVIEWER: execute_prefill_only awaits a full generation lifecycle inside the HTTP handler after await_admission (http.rs:241-283). The ingress semaphore permits are moved into it (_ingress, _extra are held for its duration, http.rs:220-221), so a prefill-only request occupies HTTP admission capacity for the whole prefill plus up to 5s of barrier wait - which is what makes a min_body_bytes-gated router able to serialize work per slot. That is intended for this use case, but it means a decode-worker 429/503 pattern now also applies to probe requests.

ANNOUNCEMENT DEPENDS ON THE PROMPT-END CHECKPOINT EXISTING: checkpoint_key is filtered to key.consumed_tokens == prompt_tokens (runtime.rs:2432-2435) and the barrier is requested only and_then(|_| store.announce_barrier()) (runtime.rs:3110-3111). So x-flare-pool-announced: false is returned when the endpoint was not published (e.g. no free snapshot, capture declined) OR when no pool is attached OR on timeout - three very different causes collapsed into one boolean. docs/api.md documents all three as the same false, so a router cannot distinguish "retry" from "this deployment has no pool". Worth flagging because the PR's whole value proposition is "deterministic pool visibility ... without timer heuristics".

HEADROOM-DEFERRAL ANNOUNCE PATH: when host copy-out is deferred for headroom, the checkpoint is announced as GPU-resident (store.announce_gpu(&publication), runtime.rs:3040) and the deferral counted (copyout_headroom_deferrals). This means a pool peer may be told a checkpoint is available at neighbour_gpu level while this host never persisted it. Whether that is safe depends on pinning/lifetime guarantees in selene/src/pool/store.rs around gpu_index_entry - the kind of invariant #609/#611 were hardening. A reviewer should confirm the announced GPU holding cannot be reclaimed before a peer's fetch resolves.

SEPARABILITY, stated as a fact about the diff: the three substantive changes have disjoint file footprints except docs. (a) prefill-only serving: helios/src/server/http.rs, server/runtime.rs, scheduler.rs, scheduler/checkpoints.rs. (b) announce barrier + GPU announce: selene/src/pool/{lookup,shared,engine/mod,store}.rs, selene/src/{store,pool/client}.rs, selene-manager/src/pool/lookup.rs. (c) capture bound: selene/src/offload.rs, helios/src/runtime_core/{memory,model}.rs. (d) docs: docs/api.md (for a), docs/prefix-cache-offload.md (for c). Nothing forces all four to land together, so a scope-split is mechanically available if a maintainer wants only the charter-aligned parts.

ANGLE WITH NOTHING FOUND: I found no security-sensitive behaviour change (the header cannot enable anything without an already-open pool; no new file/network surface; no secrets in the docs). I found no test deletions or weakened assertions in the 32-file list (the only -1 line changes in test files are struct literals gaining fields). I found no dependency, version-pin, or build-system change. I found no migration or on-disk format change (no record schema, no selene.proto, no core/artifact compat impact).

#16 [high] Research summary

I gathered the case file for #718 across all eight angles; 15 scratchpad entries hold the detail with file:line and PR/issue citations. Headline: this is a first-time contributor's 32-file, +1134/−57 PR whose largest component implements disaggregated prefill-to-decode serving — a named charter non-goal that maintainer yatesdr explicitly closed as out of scope in issue #160 sixteen days earlier, and which #718 never cites. No maintainer request exists in the record, and the PR has zero comments, reviews, labels, or CI checks on its head commit. One of its four changes (bounding the pool-only capture slab) has a genuine paper trail: it answers review item 2 from merged PR #455, where the memory cost was flagged and settled by documentation only. Its green 3,514-test suite and TLA+ run were on the 45e1c1a baseline, not the head (17a532e), and even that needed a local one-line fix for #714; only targeted tests were re-run after the final rebase. Its headline benchmark compares a new 1P1D topology against released tag v0.5.3, not main, and the author's own numbers show 1P1D losing 2x on the C1 ultra-long ladder (344.84s vs 173.78s TTFO) while winning at mixed concurrency.

Two tooling findings a downstream reader needs. First, pr_diff in this environment diffs against a stale local main, so its hunks swept in already-merged work — notably helios/src/scheduler/cache_memory.rs eviction-cache code, which is not in #718's 32-file list; I used the GitHub-backed file list and direct reads at the head as ground truth and recorded the diagnostic proof. Second, the PR adds a second, undeclared request field beyond prefill_only: preserve_message_anchor, which relaxes the anchoring policy that merged #697 had just established.

Other things worth surfacing: the prefill path silently overrides eleven standard request fields; X-Flare-Pool-Announced: false collapses three distinct causes (no endpoint published, no pool attached, 5s timeout) into one boolean, which undercuts the "deterministic visibility" pitch; the 5s deadline is expressed twice in two crates; docs/core-design.md:347-348 still forbids what the PR enables and was not updated. Helper held up well under scrutiny — the barrier reuses LookupRequest with empty boundaries rather than changing selene.proto (not opened), exactly as claimed, and HostStore/PoolPort kept default methods so the traits stay backward compatible. All four changes have disjoint file footprints, so a scope split is mechanically available.

#17 [high] Key findings index: the ten things to lead the report with

Lead-with-this list for the report, ordered by what a reader could NOT learn from #718's description. Full detail in entries 1-15.

  1. THE PR IMPLEMENTS A NAMED CHARTER NON-GOAL THAT WAS CLOSED AS OUT OF SCOPE 16 DAYS EARLIER. Charter non-goals: "rack-scale features like disaggregation" (require explicit maintainer sign-off). Issue #160 asked for exactly prefill/decode disaggregation and yatesdr closed it 2026-11-18: "prefill/decode disaggregation is outside Flare's design... request routing across instances... is cluster orchestration, which AGENTS.md... reserves for an explicit maintainer decision... To reopen, attach the benchmark and request a scope decision from the project owner, Luke Alonso." #718 does not cite #160. (entries 1, 9, 13)
  2. NO MAINTAINER REQUEST EXISTS IN THE RECORD. AGENTS.md:165 requires one. #718 cites only its own rebase prerequisites (#714/#716/#720/#721). Zero comments, reviews, labels, reactions, or CI checks on head 17a532e. (entries 12, 15)
  3. THE GREEN EVIDENCE IS NOT ON THE HEAD. 3,514 tests + TLA+ mutation run were on 45e1c1a, and needed a local one-line fix for #714; the head is 17a532e and only targeted tests were re-run there. (entry 8)
  4. THE HEADLINE BENCHMARK IS A NEW TOPOLOGY VS A RELEASED TAG. 1P1D + external router + Selene vs 2x TP1 stock v0.5.3, not vs main; the author says so explicitly. And C1 ultra-long REVERSES: 344.84s vs 173.78s TTFO at 960K. (entry 8)
  5. pr_diff IN THIS ENVIRONMENT USES A STALE BASE and wrongly attributes helios/src/scheduler/cache_memory.rs eviction-cache work to #718. It is not in the 32-file list. (entry 5)
  6. AN UNDECLARED SECOND REQUEST FIELD: preserve_message_anchor, which relaxes the anchoring policy merged #697 had just set. (entry 5)
  7. THE PREFILL PATH SILENTLY OVERRIDES 11 STANDARD REQUEST FIELDS (http.rs:225-234) — not documented, and the shape #417 warns about. (entry 11)
  8. X-Flare-Pool-Announced: false CONFLATES THREE CAUSES (no endpoint published / no pool attached / 5s timeout), undermining the "deterministic, no timer heuristics" pitch. (entry 15)
  9. ONE CHANGE IS GENUINELY WELL-MOTIVATED AND INDEPENDENTLY VALUABLE: the pool-only capture bound answers review item 2 of merged #455 (yatesdr had flagged "about the size of the GPU KV cache in registered host memory"; #455 settled it with docs only). (entries 3, 14)
  10. docs/core-design.md:347-348 still says "Disaggregated prefill... outside this design" and was not updated. (entry 13)

ALSO: the 5s barrier deadline is hardcoded twice across crates (selene engine ANNOUNCE_BARRIER_TIMEOUT vs helios http.rs:268); the GPU-deferral announce path tells peers a checkpoint is neighbour_gpu-resident when this host never persisted it (needs the #609/#611 pinning invariants checked); the four changes have disjoint file footprints so a scope split is mechanically available (entry 15).

#18 [medium] Completions: empty-boundary sentinel needs no index scan; the --staging NoWindows fix is docs-only, not pool_only()

Two scratchpad notes were truncated mid-sentence when written; completing them here.

A) Completing the selene-manager barrier observation (entry 6). selene-manager/src/pool/lookup.rs:165-173 computes short = if boundaries.len() > 1 { geometry.page_tokens } else { 0 } and then filters entry.key.consumed_tokens < short. With a single empty boundary, boundaries.len() == 1 so short == 0 and no filtering would happen — but the loop is over boundaries, which is empty, so no candidates are produced at all. That is why the sentinel is cheap and returns LookupOk with an empty candidate list rather than scanning the index. Combined with lookup_pass draining a FIFO lookup_queue (lookup.rs:90-103) and the notices being flushed to the same wire before the sentinel (selene/src/pool/engine/mod.rs:551-562), the reply is an ordering guarantee only insofar as the manager applies notices in wire order on one session. No new proto message, no new field — verified.

B) Completing the --staging / NoWindows observation (entry 8). The Qwen campaign finding is that selene-manager backs staging with a power-of-two buddy Arena, so --staging 14G splits into 8G+4G+2G and caps a single window at 8 GiB, causing NoWindows for exports over 8 GiB; --staging 16G gives one contiguous 16 GiB block and the author measured NoWindows 8 -> 0 and 100% cached handoff at 524K (528,059/528,059 cached, TTFT 32.412s vs 66.03s) and 960K (960,056/960,056, TTFT 69.236s vs 140.15s). This is a DOCS-ONLY change in this PR (docs/prefix-cache-offload.md, the NoWindows bullet around the export-size paragraph) describing pre-existing Arena behaviour, not a code fix. So: real operator value, zero code risk, and independent of every other change here — it could land alone. The description lists it under the pool_only() bullet, which slightly misplaces it: it belongs to selene-manager staging, not to pool_only() capture sizing.

C) One more small but checkable detail for the report (Reach): the new docs/api.md section is titled "## Prefill-only requests" and sits immediately before "## Decisions" (docs/api.md, ~line 1191-1230 in the head). It documents header values, the 400 cases, a full example JSON body with "object": "prefill", and the three headers. The example shows "model": "local", which is consistent with #317 ("Echo the served name in every generation response") — i.e. the response shape reuses state.response_model (helios/src/server/http.rs:277) rather than inventing a name.

#19 [medium] Angles with nothing found: security, weakened guarantees, dependencies, wire compat, kernels

Angles where the honest answer is "little or nothing found", recorded explicitly so the report need not re-discover them.

SECURITY: nothing found. The new header cannot enable anything unless a Selene pool is already attached and Ready (begin_announce_barrier returns unconfirmed() unless status() == Ready, selene/src/pool/shared.rs:418-420). No new network listener, no new file path, no new auth surface, no secrets in docs or test fixtures (the example checkpoint key in docs/api.md:1207 and http.rs:1004 is an obvious placeholder "0123456789abcdef0123456789abcdef"). The header is validated strictly (single occurrence, 4 accepted values) before anything else happens in generate, which is the safe order.

WEAKENED GUARANTEES / REMOVED VALIDATION: nothing found in the 32-file list. No test assertions deleted; the only -1 deletions in test files are struct literals gaining the two new fields (verified across helios/src/model/tests.rs, scheduler/.rs, runtime/phase_tests.rs, prompt_tests.rs, selene-manager/tests/.rs). HostStore/PoolPort gained defaulted methods, so no existing implementor loses behaviour. No unwrap() introduced on a fallible store path that I saw in the reviewed hunks.

DEPENDENCIES / BUILD / PINNING: nothing found. No Cargo.toml, lockfile, or CI workflow file in the change list, so the charter's "pin everything" (#215) rule is not engaged. No new crate, no version bump.

ON-DISK / ARTIFACT / WIRE COMPATIBILITY: nothing found, and this is a positive result the description claims and I verified — no selene.proto change (the barrier is an empty-boundary LookupRequest), no new RequestPhase, no new GraphKind, no record-format or core/artifact change. Existing exported cores keep loading.

GPU KERNEL CODE: nothing found. No CUDA or low-level kernel file is touched, so the charter's "report concrete defects only" rule for kernel code does not apply to this review.

I18N / ACCESSIBILITY / LOCALIZATION: not applicable.

PERFORMANCE OF THE DEFAULT PATH: nothing found — both new booleans default false and the barrier is only requested when a prompt-end checkpoint key was published on a prefill-only request, so default request scheduling and default store behaviour are unchanged, as the description claims. The one caveat I would record rather than call a defect: announce_gpu now fires on the headroom-deferral path (helios/src/server/runtime.rs:3040), which is new work on a path that previously skipped announcement entirely — so default non-prefill-only deployments with a pool attached do execute this extra call, contrary to "default request scheduling unchanged" if read strictly. It is an announcement (an index entry), not a scheduling change, and it is charged to copyout_headroom_deferrals.