Explore scratchpad · NVIDIA/hyperflare-inference #742

Raw Markdown for agents: https://autobot.eidonix.com/p/5b68e61a-2b57-41a6-bfc8-72567f7daf32.md

#1 [high] Change: what PR #742 does, size, and how the cap flows

PR #742 "selene,helios: bound pool-only capture buffer to max_sequence_pages", author fakoli (FIRST_TIME_CONTRIBUTOR), open, ready for review, opened 2026-12-05, head 02990da, base main f46a99220a. 9 files, +115/-10. No comments/reviews, no CI checks.

Change in code (verified in diff, result 1):

#2 [high] Related work: closed #718 is superseded by #742; #742 takes only its pool_only() part

#718 "helios,selene,selene-manager: add prefill-only KV handoff, announce barrier, and bounded pool-only capture" by fakoli, +1134/-57 over 32 files, opened 2026-12-04, CLOSED (not merged) 2026-12-05 08:52. Labels: area:api, area:memory, area:selene, enhancement, performance, triage:design-review. #742's body says "Supersedes the bundled pool_only() change previously included in closed #718." and the local index records #742 as referring to #718 ("this closes").

#718's scope that #742 does NOT carry (so those parts are currently unlanded/abandoned):

#718's own claimed pool_only() numbers differ from #742's: on JMNI-Labs/Inkling-2-Mini-FLARE, 1M ctx, RTX PRO 6000 96 GiB, capture went from ~33 GiB to 9.1 GiB / 8,293 slots, combined RSS 46.02 -> 41.77 GiB. #742 claims 11.8 GiB / 16,475 slots for Qwen4-35B-A3B with 24 GiB container limit. Different model/hardware, so not directly contradictory, but the two bodies report different hardware/container limits for what is described as the same patch.

#718 discussion: two flare-autobot comments only — (1) case file opened; (2) "Review Stopped: Auto-Review halted due to finding: It is low value or does not align with the project charter" with a Value Proposition Report link (autobot.eidonix.com/p/1cf7d0ca...). #718 referred to #714 (closed), #716 (merged), #720 (merged), #721 (merged); referred to by #715 (open) and #742 (open).

#3 [high] Community: #160 scope thread — maintainer ruled disaggregation out of scope; #742 is presented as the in-scope remnant

#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: "prefill/decode disaggregation is outside Flare's design. docs/core-design.md (lines 347-348) states 'Disaggregated prefill ... outside this design', and 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."

The same thread was REOPENED-in-substance by fakoli on 2026-12-05 08:52 (same day #742 opened) with 1P1D measurements and an explicit scope question to @lukealonso, including the line: "(Note: I closed #718 and split out the charter-aligned #455 pool_only() capture-buffer bound by itself into https://github.com/NVIDIA/hyperflare-inference/pull/742.)" and three options (announce-barrier primitive only / minimal prefill-only mode / out of scope, keep selene contributions to pool sizing and shared prefix caching).

So: the author frames #742 as the deliberately narrow, charter-aligned remnant of the disaggregation work. The maintainer's stated preference (option 3 territory) is "keep upstream selene contributions scoped to pool sizing and shared prefix caching" — that is exactly what #742 does.

Link: #160 mentions #455, #718 (closes) and #742; #718 and #742 both mention #160.

#5 [high] People: fakoli first-time contributor; yatesdr owns the code and raised this exact cost in #455 review; lukealonso is project owner

#6 [high] Claims and evidence: intake floor not capped; RSS numbers not A/B'd on the head commit; no CI; model.rs path untested

Claims in #742's description and what backs them (verified against the diff and repo):

  1. "host capture memory stays proportional to one max_sequence_tokens chain" — true for the chain term only. The slab is chain.max(intake_slots(layout, max_active)).min(budget) (selene/src/offload.rs:179-181), so automatic intake (2max_activerow_slots + 2*WINDOW_PAGES, offload.rs:227-229) is a floor that is NOT capped, exactly as docs/prefix-cache-offload.md:1593-1600 now says ("the larger of automatic intake and one full single-sequence capture chain"). For high max_active the buffer can still exceed one chain.
  2. Table: "Allocated GPU KV capacity 99,008 pages (70.9 GiB) unchanged" — the diff does not change KV sizing inputs other than the headroom local_pages clamp (memory.rs:1132) and capture_growth clamp (memory.rs:1486), both of which can only relax the host-driven limit, so "unchanged/unthrottled" is consistent with the code direction. The helios test pool_capture_growth_caps_at_max_sequence_pages_without_throttling_gpu_pages (memory.rs:2440-2457) asserts only pages > max_sequence_pages on one synthetic core, not EQ of page counts.
  3. "18.74–19.06 GiB vs 7.83–8.04 GiB container RSS" delta matched to slab delta — the PR itself discloses these were observed "on a v0.6.0 (f705086) build carrying this exact patch rather than re-measured via an A/B restart on f46a99220a". So the live evidence is not an A/B on the PR head against base.
  4. Six-crate release test counts (12/650/448/2041/255/254) — described as executed on head 02990da in rust:1.94.1-slim-trixie; not independently visible (no CI checks on the head commit). helios run required FLARE_TEST_TEMPLATE_DIR prepared for 7 model aliases; eos was re-run single-threaded after a timing flake (adaptive_mid_mapping_fallback_merges_into_single_vma), which the PR discloses.
  5. Unrun: hardware CUDA tests, tests/server/test_prefix_cache_offload.py, qualify/host_cache.py, integrated/unified-memory hosts, multi-host sharded/RoCE, native Windows, Kani and TLA+ (argued not applicable: PR does not touch scheduler/cache_memory, lifecycle state machines or Kani-proven validators — consistent with .github/workflows/helios-lifecycle.yml which runs TLA+/Kani on helios/, selene/, selene-manager/** changes; that workflow's paths filter does match this PR, so CI would run it on the head commit if triggered).
  6. No test exercises the helios model.rs wiring (the Option-mapped value) nor asserts the pool only: capture buffer … log line; the two new tests exercise headroom_inner and capture_growth in isolation.
  7. Description says it supersedes the pool_only() change from closed #718 — #718 carried a near-identical capture bound (its own text: local_pages.min(limit) when limit > 0) plus HTTP/scheduler/pool primitives that #742 does not carry.

#7 [high] Project fit: charter goal 24 (host prefix cache via Selene) and AGENTS.md evidence rules; maintainer request origin in #455 review

Charter (read_charter) status line 24: goal "* Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene." Charter "What gets merged": PRs addressing a maintainer request, roadmap item, reproducible bug, measured performance/memory issue, or bad docs. This PR is framed as a measured memory issue (host RSS) and as the follow-up to a maintainer review comment (yatesdr in #455), and is deliberately restricted to pool sizing after #718's prefill-only HTTP surface was pushed back as out-of-scope disaggregation (#160 close reason; #718 close comment).

Charter/docs tensions:

#8 [high] Reach: pool-only single-process users only; may now admit MORE GPU pages and pass startup where main failed; internal API field added

Reach / impact of #742:

#9 [high] Related work: builds on #455/#497; overlaps open #737 in the same budget functions; #718 superseded; #705 Slabs path relevant

Related / overlapping work on the same code (all in helios/src/runtime_core/memory.rs + selene/src/offload.rs, host-budget and capture sizing):

#12 [high] Why: slab sized to whole-GPU KV, flagged in #455 review 2026-11-21; no issue filings; single author driving it

The why, and its history:

#13 [high] Research summary

Case file for PR #742 (fakoli, open, ready for review, head 02990da on base f46a9922, 9 files +115/−10, no CI checks, no comments or reviews). Twelve scratchpad entries cover all eight angles.

Key findings: (1) The PR is a one-commit extraction of the pool_only() capture-buffer bound that was bundled into #718, which the author closed on 2026-12-05 after autobot stopped its review for charter fit; #742 deliberately drops #718's HTTP/scheduler/pool-announce surface, which is still the subject of an open scope request to @lukealonso on closed issue #160. (2) The concern is not new: yatesdr's #455 review (2026-11-21) item 2 named exactly this cost ("about the size of the GPU KV cache in registered host memory") and asked for documentation, which #455 delivered; #742 changes that documented behaviour by capping. (3) Undeclared-in-headline effects I verified in code: the automatic-intake floor is not capped (offload.rs:179-181), and the clamps at memory.rs:1132/1486 can only relax host-driven KV throttling, so operators may see more GPU pages and startup succeeding where main failed (host budget cannot hold a full pool capture). (4) Real overlap/conflict risk with open #737 (lukealonso), which rewrites the same host-budget helpers and async_transfer_host_ram in the same two files. (5) Evidence gaps the PR itself discloses: the 18.7 vs 7.8 GiB RSS figures were not re-measured A/B on the head commit, no hardware CUDA/multi-host/Windows/Kani runs, and no test covers the new model.rs wiring.

Scratchpad holds the diff/file:line map, the #455→#718→#742 chronology, related-PR conflict notes (#455/#497/#737/#705/#711/#721), people and area-owner facts, charter/AGENTS.md mappings, reach/impact, claims-versus-evidence breakdown, and process state.

#14 [high] The change: description vs diff — precise on files/tests, understates the local_pages semantics and the model.rs Option asymmetry

Checked the #742 description against the diff; the description is unusually accurate for this PR, with these precise refinements a reader should know:

  1. Description: "Updated prepare_with_inputs_budget_with_progress for the new field." The diff does the minimum: the destructuring at selene/src/offload.rs:623-629 binds it as max_sequence_pages: _, i.e. it is ignored there. The field only takes effect through effective.headroom_inner(..., inputs, local_pages, host_budget) at selene/src/offload.rs:703-710, which both sizes the slab (bytes at :711-714) and performs the host budget cannot hold a full pool capture check. So there is exactly ONE place the cap is applied in selene.
  2. Description does not mention that the second helios call site handles a missing value differently from the first: helios/src/runtime_core/memory.rs:992-996 hard-errors when server_config["max_sequence_tokens"] is absent ("model requires a prepared context ceiling") and always passes Some(...), while helios/src/runtime_core/model.rs:1155-1157 uses .as_u64().map(...) and passes None (uncapped) if absent. In practice both read the same server_config (helios/src/server/config.rs:131-148), so None should not occur on the model path; it is still an undeclared asymmetry.
  3. Description's "clamped the minimum_pages headroom check as minimum_pages.min(max_sequence_pages)" is accurate but understates it: that argument is the local_pages that headroom_inner treats as GPU page capacity for the capture branch, so the clamp changes both the slab size and the startup-failure threshold, not only "the check".
  4. Description's claim "Passed max_sequence_pages in both memory.rs planning and model.rs host offload preparation" is accurate (memory.rs:1130, model.rs:1168).
  5. Description's test inventory matches the diff exactly: 1 new selene test, 1 new helios test, 8 max_sequence_pages: None fixture additions (helios/src/offload/pool/tests.rs:134; helios/src/runtime_core/memory.rs:2031; selene/src/offload/tests.rs:14,51; selene/src/offload/sharded/tests.rs:118,261,392,558; selene-manager/tests/client.rs:3255,3509; selene-manager/tests/offload.rs:139 — 11 insertion points across those files).
  6. The description does not say, and the diff does not do, anything about the intake_slots floor: chain.max(intake_slots(layout, max_active)).min(budget) (selene/src/offload.rs:179-181) means the buffer can still be larger than one sequence chain when max_active is high. The docs sentence ("larger of automatic intake and one full single-sequence capture chain") does say it; the PR's headline table does not show an intake-dominated case.
  7. No public CLI/config/default changes and no dependency changes; PrepareInputs (selene/src/offload.rs:330-347) is internal Rust API.

#17 [high] Amendments 2026-12-05 (head 66d6af3, +94/−21): what changed since the run-3699 report and what still stands

AMENDMENTS to report #16 (PR #742), after fakoli pushed 66d6af33 on 2026-12-05 ~09:19 and replied.

  1. Head/size/state changed.
  1. FIXED — the memory.rs/model.rs Option asymmetry (old report finding 5).
  1. FIXED — Some(0)/context == 0 (was autobot's only "should fix", my report noted the dead branch and the intake floor).
  1. CHANGED — minimum_pages.min(max_sequence_pages) at the headroom call was removed.
  1. STRENGTHENED evidence for "GPU pages unchanged".
  1. CHANGED tests.
  1. PARTIALLY addressed — intake floor (my "undeclared effect" (a)).
  1. STILL OPEN — direction of the change (unchanged): every clamp only shrinks the charge (offload.rs:165-168, memory.rs:1490, :1556-1557), so pool-only operators may see more GPU KV pages and startup succeeding where main errored with host budget cannot hold a full pool capture. Doc now says so (docs/prefix-cache-offload.md:1599-1602). Not in the title.

  2. #737 overlap — author's claim checked against pr/737 head 46e6a3b, and it is accurate in the narrow sense but not the wide one.

  1. STILL OPEN — evidence provenance. RSS telemetry is still the v0.6.0 (f705086) build, not an A/B on the new head (PR Evidence, "Live startup and memory telemetry provenance"); hardware CUDA / tests/server/test_prefix_cache_offload.py / qualify/host_cache.py / integrated / multi-host / Windows / Kani / TLA+ still unrun and disclosed; the six-crate runs are now claimed on 66d6af3 (selene 649 = 648 unit + 1 doctest, was 650 in the previous claim). No CI results are referenced for 66d6af3. A re-review is due ~90 min after the 09:19 push.

#20 [high] Research summary

Amendments to report #16 — PR #742, head 02990da → 66d6af3

New: branch push 66d6af33 (2026-12-05 09:19) plus an author reply; and main has advanced under the branch.

1. Scale/state. 2 commits now, +94/−21 in the same 9 files (was +115/−10): docs/prefix-cache-offload.md +15/−12, helios/src/runtime_core/memory.rs +32/−1, model.rs +12/−3, selene/src/offload.rs +9/−1, selene/src/offload/tests.rs +18/−4, 8 max_sequence_pages: None fixtures. Labels area:memory, area:preparation, area:selene, performance, triage:review. 3 discussion entries: case-file 08:55, autobot review Changes Requested 09:11 (0 blockers / 1 should-fix / 3 subtract / 4 nits), author reply 09:19. Still no maintainer comment and no CI results on the head.

2. Fixed — the memory.rs vs model.rs Option asymmetry (old finding 5). PlannedHostBudgets now carries pub max_sequence_pages: NonZeroU64 (memory.rs:34), set at :1595, threaded into a new prepare_offload parameter (model.rs:1047-1053, :1125) and straight into PrepareInputs (model.rs:1167-1173). The duplicate server_config["max_sequence_tokens"] lookup is gone. Residual: the parameter stays Option, and the two prepare_offload tests pass None (model.rs:1562, :1574).

3. Fixed — Some(0)/context == 0 (autobot's only should-fix, and my dead-branch note). context is filtered > 0 (memory.rs:993-996); the bound is NonZeroU64::new(context.div_ceil(contract.cache.page_tokens as u64)) (memory.rs:998-1000), so Some(0) is unrepresentable and selene's limit > 0 guard is redundant. The divisor is still unchecked at :999, but PreparedContract::validate rejects page_tokens == 0 (helios/src/model/contract.rs:536) at both entry points (helios/src/server/config.rs:214, helios/src/server/runtime.rs:956) and capacities() re-checks (memory.rs:697) — defended, so this is now a nit, not a should-fix.

4. Changed — the double clamp is gone. minimum_pages.min(max_sequence_pages) at the headroom call was removed (memory.rs:1136). The single clamp is chain_pages = inputs.max_sequence_pages.map_or(pages, |limit| pages.min(limit.get())) (selene/src/offload.rs:165-167), which now feeds both the slab bytes (:168-180) and the host budget cannot hold a full pool capture admission test (:171-177), including the first-pass device/tier_host charge (memory.rs:1126-1138). capture_growth (:1490) and planned_offload_host (:1556-1557) clamps unchanged.

5. Strengthened — "GPU pages unchanged". The helios test now asserts pages == uncapped_pages (memory.rs:2463) as well as pages > max_sequence_pages (:2464). Still one synthetic core; nothing asserts planned_offload_host or an integrated path.

6. Changed tests. The standalone selene bounded test is folded into pool_only_sizes_registered_capture_and_headroom_for_local_ranks (selene/src/offload/tests.rs:525-576), cases (10,None) (512,None) (512,Some(64)) (:531-535) plus slots < … (:558-560); destructure now uses .. (selene/src/offload.rs:622-628). Test count claim drops 650 → 649 (648 unit + 1 doctest).

7. Partially addressed — the intake floor (my undeclared effect (a)). Still uncapped in code: chain.max(intake_slots(layout, inputs.max_active) as u64).min(budget) (selene/src/offload.rs:178-180, intake_slots :226-229), but now stated in the doc (docs/prefix-cache-offload.md:1594-1597) and the PR body. The impact table still has no intake-dominated row, so wide max_active can still size the slab above one chain — disclosed, not quantified.

8. Still open — direction of the change. Every clamp only shrinks the charge, so pool-only operators may see more GPU KV pages and startup succeeding where main failed with host budget cannot hold a full pool capture. Now documented (docs/prefix-cache-offload.md:1599-1602), still not in the title.

9. Revised — #737 overlap: right narrowly, wrong broadly. Verified at pr/737 head 46e6a3b: #737 does not touch headroom_inner (selene/src/offload.rs:150-200 identical) and does not change host_pool_budget's semantics (:973-994; it only adds host_pool_budget_from/_and_total_with_reserve/_with_reserve). But it does change async_transfer_host_ram(host_future, apply_reserve) (helios/src/runtime_core/memory.rs:41-44 in #737), and async_transfer_host_total feeds host_growth (memory.rs:1483-1492) — the free-host bound this buffer is charged against. So merge order moves the buffer's bound even though the two edited functions don't. Conflict is textual and small: PlannedHostBudgets fields (memory.rs:32-35) plus ~14-line offsets (headroom call 1126 vs 1140; capture_growth callback 1490 vs 1505; struct literal 1593 vs 1607) — mechanical, risk stays Low.

10. New — base drift; the PR body's base label is stale. Head is 2 commits on f46a9922, but main fast-forwarded to 012219a1 (#713, Joshua Cartu, merged 2026-12-04 23:47). #713 added LinuxMemInfo/append_integrated_meminfo at main helios/src/runtime_core/memory.rs:193-300 and wired it into the Plan cache summary (main :1562-1563) — the same summary this PR's docs/log discussion touches, ~+161 lines of drift above #742's hunks. PlannedHostBudgets is unchanged on main (:32-35) and capture_growth is still at :667, so the rebase is mechanical but non-trivial, and the body's "Executed on … base f46a99220a" plus the six-crate counts now describe a pre-#713 tree.

11. Still open — evidence provenance. Unchanged except the head label: RSS 18.74–19.06 vs 7.83–8.04 GiB is still the v0.6.0 (f705086) build, not an A/B on 66d6af3; hardware CUDA, tests/server/test_prefix_cache_offload.py (not opened), qualify/host_cache.py (not opened), integrated, multi-host/RoCE, Windows, Kani and TLA+ remain unrun and disclosed. The push closed code findings, not the evidence gap; re-review due ~90 min after 09:19.

12. New small doc nit. docs/prefix-cache-offload.md:1605-1606 still says a capture with no resident ancestor "copies the full GPU chain", two sentences below the new min(GPU page capacity, ceil(max_sequence_tokens / page_tokens)) ceiling (:1595-1597). Harmless in behaviour (an over-long chain would drop as StoreOutcome::Oversize, selene/src/memory.rs:4183-4190 (not opened)) but reads as unbounded KV. The retained GLM-5.3-Flash example (:1598-1599) is also not recomputed under the cap.

Unchanged conclusions: charter fit (goal 24 host prefix cache; #718's HTTP/routing surface not carried) and the #160 scope caveat both stand; the cap remains the author's extrapolation of yatesdr's #455 documentation request.

#21 [high] AMENDMENT TEXT (final) — supersedes parts of note #16; use this for the report's amendment section

PR #742 amendments after head 02990da -> 66d6af3 (pushed 2026-12-05 09:19) and main drift. Details in notes #17 (delta), #18 (doc nit), #19 (base drift). This note is the authoritative text; where it disagrees with #16, this wins.

  1. SCALE/STATE. 2 commits, +94/-21 in the same 9 files (was +115/-10): docs/prefix-cache-offload.md +15/-12, helios/src/runtime_core/memory.rs +32/-1, helios/src/runtime_core/model.rs +12/-3, selene/src/offload.rs +9/-1, selene/src/offload/tests.rs +18/-4, 8 max_sequence_pages: None fixtures (helios/src/offload/pool/tests.rs:134, selene/src/offload/sharded/tests.rs x4, selene-manager/tests/client.rs x2, selene-manager/tests/offload.rs x1). Labels area:memory, area:preparation, area:selene, performance, triage:review. 3 discussion entries: case-file 08:55, autobot review "Changes Requested" 09:11 (0 blockers / 1 should-fix / 3 subtract / 4 nits), author reply 09:19. No maintainer comment; no CI results on the head.

  2. VOID: old finding 5 (memory.rs vs model.rs Option asymmetry). PlannedHostBudgets carries pub max_sequence_pages: NonZeroU64 (memory.rs:34), set at :1595, threaded into new param prepare_offload(..., max_sequence_pages) (model.rs:1047-1053, :1125) -> PrepareInputs (model.rs:1167-1173). Residual nit: parameter still Option, and the two prepare_offload tests pass None (model.rs:1562, :1574).

  3. VOID: Some(0) / context == 0 (autobot's only should-fix). context filtered > 0 (memory.rs:993-996); NonZeroU64::new(context.div_ceil(contract.cache.page_tokens as u64)) (memory.rs:998-1000) -> Some(0) unrepresentable, selene's limit > 0 guard redundant. Divisor still unchecked at :999 but PreparedContract::validate rejects page_tokens==0 (helios/src/model/contract.rs:536) at both entry points (helios/src/server/config.rs:214, helios/src/server/runtime.rs:956) and capacities() re-checks (memory.rs:697): defended -> nit, not should-fix.

  4. CHANGED: double clamp removed. capture.then_some(minimum_pages) (memory.rs:1136); single clamp chain_pages = inputs.max_sequence_pages.map_or(pages, |limit| pages.min(limit.get())) (selene/src/offload.rs:165-167) feeds slab bytes (:168-180) and the host budget cannot hold a full pool capture test (:171-177), incl. first-pass device/tier_host (memory.rs:1126-1138). capture_growth clamp memory.rs:1490; planned_offload_host memory.rs:1556-1557 — unchanged.

  5. STRENGTHENED: helios test pool_capture_growth_caps_at_max_sequence_pages_without_throttling_gpu_pages now asserts pages == uncapped_pages (memory.rs:2463) plus pages > max_sequence_pages (:2464). Still one synthetic core; planned_offload_host and integrated path unasserted.

  6. CHANGED TESTS: standalone selene bounded test folded into pool_only_sizes_registered_capture_and_headroom_for_local_ranks (selene/src/offload/tests.rs:525-576), cases (10,None)/(512,None)/(512,Some(64)) at :531-535, extra slots < ... assert :558-560; destructure uses .. (selene/src/offload.rs:622-628). Test-count claim 650 -> 649 (648 unit + 1 doctest).

  7. PARTIALLY ADDRESSED: intake floor still uncapped in code chain.max(intake_slots(layout, inputs.max_active) as u64).min(budget) (selene/src/offload.rs:178-180; intake_slots :226-229) but now stated in doc (docs/prefix-cache-offload.md:1594-1597) and PR body. Impact table still has no intake-dominated row: disclosed, not quantified.

  8. STANDS: direction of change. All clamps only shrink the charge -> pool-only operators may see MORE GPU KV pages and startup succeeding where main failed with host budget cannot hold a full pool capture. Now documented (docs/prefix-cache-offload.md:1599-1602); still absent from the title.

  9. REVISED: #737 overlap. At pr/737 head 46e6a3b, #737 does NOT touch headroom_inner (selene/src/offload.rs:150-200 identical) and does not change host_pool_budget semantics (:973-994; only adds host_pool_budget_from/_and_total_with_reserve/_with_reserve). But it does change async_transfer_host_ram(host_future, apply_reserve) (helios/src/runtime_core/memory.rs:41-44 in pr/737), and async_transfer_host_total feeds host_growth (memory.rs:1483-1492) — the free-host bound for this buffer. So merge order moves the bound even though the edited functions don't. Textual conflict small: PlannedHostBudgets fields (memory.rs:32-35) + ~14-line offsets (headroom call 1126 vs 1140; capture_growth callback 1490 vs 1505; struct literal 1593 vs 1607). Risk stays Low.

  10. NEW: base drift; PR body base label stale. Head = f46a9922 + 66d6af33, but main fast-forwarded to 012219a1 (#713, Joshua Cartu, merged 2026-12-04 23:47). #713 added LinuxMemInfo/append_integrated_meminfo at main helios/src/runtime_core/memory.rs:193-300, wired into the Plan cache summary (main :1562-1563) — the summary this PR's doc/log discussion touches; ~+161 lines above #742's hunks. PlannedHostBudgets unchanged on main (:32-35), capture_growth still :667 -> mechanical but non-trivial rebase. Body's "Executed on ... base f46a99220a" and the six-crate counts now describe a pre-#713 tree. Supersedes #16 "Recent activity" line "single commit on f46a9922 ... mechanical rebase".

  11. STANDS: evidence provenance. RSS 18.74-19.06 vs 7.83-8.04 GiB still the v0.6.0 (f705086) build, not an A/B on 66d6af3; hardware CUDA, tests/server/test_prefix_cache_offload.py, qualify/host_cache.py, integrated, multi-host/RoCE, Windows, Kani, TLA+ unrun and disclosed. Push closed code findings, not the evidence gap. Re-review due ~90 min after 09:19.

  12. NEW doc nit: docs/prefix-cache-offload.md:1605-1606 still says a capture with no resident ancestor "copies the full GPU chain", two sentences below the new ceiling (:1595-1597). Harmless (over-long chain would drop as StoreOutcome::Oversize, selene/src/memory.rs:4183-4190) but reads unbounded. GLM-5.3-Flash example (:1598-1599) not recomputed under the cap.

UNCHANGED from #16 (do not amend): charter fit (goal 24; #718's HTTP/routing surface not carried), the #160 scope caveat, the defect's origin in yatesdr's #455 review (2026-11-21, documentation ask), first-time-contributor status, autobot's precedent on #718.

#23 [high] Amendments 2026-12-05 run 3711 — head f26d8a8: page_tokens guard added; autobot round 2 stale; my prior 'should-fix closed at 66d6af3' was wrong

Amendments to report #22 (PR #742). Head 66d6af3 -> f26d8a8 (1 commit on top; branch history = f26d8a8b, f46a9922).

  1. SCALE/HEAD. Head f26d8a8 (+105/-21, 9 files; was +94/-21 at 66d6af3): docs/prefix-cache-offload.md +15/-12, helios/src/offload/pool/tests.rs +1, helios/src/runtime_core/memory.rs +43/-1, model.rs +12/-3, selene-manager/tests/client.rs +2, selene-manager/tests/offload.rs +1, selene/src/offload.rs +9/-1, selene/src/offload/sharded/tests.rs +4, selene/src/offload/tests.rs +18/-4. PR body rewritten again (Why / What changed / Claimed benefit / Evidence) and now states tests were run on head f26d8a8 with RUSTFLAGS="-D warnings"; selene 649 (648 unit + 1 doctest), helios 2,041 passed / 88 ignored, eos 12, selene-manager 448, flare 255, flare-cli 254. Discussion is now 5 entries: case file 08:55, autobot 09:11, author 09:19, author 09:49, autobot 09:51. Still no maintainer comment and no CI status visible.

  2. NEW FIX (high). The unguarded divisor is now gone: dedicated helper fn max_sequence_pages(context: u64, page_tokens: usize) -> Result<NonZeroU64> (helios/src/runtime_core/memory.rs:562-569) rejects page_tokens == 0 ("model requires a positive cache page size") and context == 0 ("model requires a prepared context ceiling") before div_ceil, and rejects a 0 result via .and_then(NonZeroU64::new). Call site memory.rs:1007, right after the retained > 0 filter on server_config["max_sequence_tokens"] (memory.rs:1002-1005). New unit assertions memory.rs:2454-2457: (0,64) err, (1024,0) err, (1025,64)==17 (ceil), (1_048_576,64)==16_384 — the last corroborates the PR body's max_sequence_pages = 16,384 for the Qwen4 1,048,576-token / 64-tok-page example.

  3. CORRECTION to report #22's autobot paragraph. I wrote that the 09:11 should-fix (unguarded div_ceil / context == 0) was "closed at 66d6af3 by NonZeroU64 plus a > 0 filter". Only the context == 0 half was closed there: at 66d6af3 the bound was NonZeroU64::new(context.div_ceil(contract.cache.page_tokens as u64)) (note #17), so page_tokens == 0 still panicked — reachable only if a config reached allocate_caches without PreparedContract::validate (helios/src/model/contract.rs:536, invoked from helios/src/model/catalog.rs:31 via helios/src/server/config.rs:214). The guard landed only at f26d8a8. Treat the earlier wording as superseded.

  4. NEW AUTOBOT REVIEW (09:51, "up to 66d6af3", 0 blockers / 1 should fix / 1 subtract / 2 nits, Changes Requested). Its only should-fix — "memory.rs:999 still calls div_ceil(contract.cache.page_tokens as u64) unguarded" — is fixed at f26d8a8 (item 2); the review was posted 2 minutes after the 09:49 push and reviews the previous commit. Its remaining subtract/simplify nit ("replace the dead .ok_or_else with .expect") is no longer applicable in the form asked: the error branches are the tested preconditions of the standalone helper (memory.rs:2454-2455), not dead code at a single call site. Net: zero open autobot should-fix items against f26d8a8, subject to the next re-review.

  5. PRIOR FINDING WITHDRAWN — base drift (my report #22 line "Base label is stale: main is now 012219a1 (#713), ≈+161 lines of drift" and notes #19/#21 item 10). Wrong. search_history at main puts f46a9922 at the tip, with 012219a1 (#713) as an ancestor; the PR head's memory.rs is main's file plus exactly this PR's +10 net lines above page_ceiling (main: PlannedHostBudgets 32-35 without the field, LinuxMemInfo 191-198, page_ceiling 561; head: field at 34, LinuxMemInfo 192-198, helper 562-569, page_ceiling 571) and 3004 -> 3046 lines (+42 net, i.e. the +43/-1 hunk). So the branch sits on the current main tip, the PR body's "base f46a99220a" is accurate, and the six-crate counts were run on the current base. Autobot's "Already rebased onto 012219a1 (#713)" is consistent with that tree. Drop the rebase-drift caveat; the only rebase risk left is open #737 (unchanged, note #17 item 9).

  6. STILL STANDING (unchanged by f26d8a8): intake floor uncapped — chain.max(intake_slots(layout, inputs.max_active) as u64).min(budget) (selene/src/offload.rs:178-180, intake_slots :226-228) with the clamp only on chain_pages (:165-167); under-documented direction of change (clamps only shrink the charge, so pool-only operators may get more GPU KV pages and startup succeeding where main failed) — doc now says it at docs/prefix-cache-offload.md:1599-1602 but the title does not; evidence provenance (RSS 18.74-19.06 vs 7.83-8.04 GiB still the v0.6.0/f705086 build, PR body's "Live startup and memory telemetry provenance" says so; hardware CUDA, tests/server/test_prefix_cache_offload.py, qualify/host_cache.py, integrated, multi-host/RoCE, Windows, Kani, TLA+ still unrun and disclosed); no maintainer review.

  7. NEW MINOR. PR body's What-changed item 2 says max_sequence_pages is passed "into headroom_with_inputs_for_budget (where headroom_inner clamps minimum_pages)" — the code clamps chain_pages (selene/src/offload.rs:165-167), and minimum_pages is passed unmodified as local_pages (memory.rs:1143). Body wording, not code. Also memory.rs:1007 shadows the field/function name (let max_sequence_pages = max_sequence_pages(...)) — cosmetic only.

  8. DOC, re-verified at head: docs/prefix-cache-offload.md:1593-1609 now reads "the larger of automatic intake and one full single-sequence capture chain (min(GPU page capacity, ceil(max_sequence_tokens / page_tokens)) plus one row's slots)", "Helios limits GPU page capacity so one sequence chain plus one row fits the host budget", "If even the capped minimum page capacity plus one row does not fit, startup fails with host budget cannot hold a full pool capture". The "copies the full GPU chain" sentence (docs :1605-1606) and the GLM-5.3-Flash 11.0 GiB / 7.1 GiB example (:1598-1599) are unchanged — old nit #18 still open, harmlessly.

#25 [high] AMENDMENT TEXT (final) 2026-12-05 run 3711 — head f26d8a8; supersedes specific lines of report #22

PR #742 amendments, head 66d6af3 -> f26d8a8 (2026-12-05, pushed 09:49). Reported as an amendment-only delta to report #22; everything in #22 stands except items A3/A5 below. Full evidence trail in note #24.

A1. HEAD/SIZE/STATE. Head is now f26d8a8 (+105/-21 in the same 9 files; was +94/-21 at 66d6af3) and the branch history is a single squashed commit f26d8a8b on base f46a9922 — the previously reported 2-commit shape is gone. Per-file: docs/prefix-cache-offload.md +15/-12, helios/src/offload/pool/tests.rs +1, helios/src/runtime_core/memory.rs +43/-1, model.rs +12/-3, selene-manager/tests/client.rs +2, selene-manager/tests/offload.rs +1, selene/src/offload.rs +9/-1, selene/src/offload/sharded/tests.rs +4, selene/src/offload/tests.rs +18/-4. Discussion is now 5 entries (case file 08:55, autobot 09:11, author 09:19, author 09:49, autobot 09:51); still no maintainer comment, no CI status. PR body rewritten a third time and its Evidence section now names head f26d8a8 with RUSTFLAGS="-D warnings": eos 12, selene 649 (648 unit + 1 doctest), selene-manager 448 (+1 ignored), helios 2,041 (+88 ignored), flare 255, flare-cli 254.

A2. FIXED — the remaining divide-by-zero. fn max_sequence_pages(context: u64, page_tokens: usize) -> Result<NonZeroU64> (helios/src/runtime_core/memory.rs:562-569) rejects page_tokens == 0 ("model requires a positive cache page size") and context == 0 ("model requires a prepared context ceiling") before div_ceil, and .and_then(NonZeroU64::new) rejects a zero result; call site memory.rs:1007, immediately after the retained > 0 filter on server_config["max_sequence_tokens"] (:1002-1005). Assertions added at memory.rs:2454-2457: (0,64) err, (1024,0) err, (1025,64)==17, (1_048_576,64)==16_384 — the last corroborates the body's max_sequence_pages = 16,384 for its Qwen4 1,048,576-token / 64-tok-page example. No other behaviour changed: the clamp is still single-point at selene/src/offload.rs:165-167, with capture_growth (memory.rs:1497) and planned_offload_host (memory.rs:1563-1566) unchanged from 66d6af3.

A3. CORRECTION to report #22. #22 said the 09:11 should-fix (unguarded div_ceil / context == 0) was "closed at 66d6af3 by NonZeroU64 plus a > 0 filter". Only the context == 0 half was closed there; at 66d6af3 the bound was still NonZeroU64::new(context.div_ceil(contract.cache.page_tokens as u64)), so page_tokens == 0 would panic in any path reaching allocate_caches without PreparedContract::validate (helios/src/model/contract.rs:536, called from helios/src/model/catalog.rs:31 via helios/src/server/config.rs:214). The guard landed only at f26d8a8.

#26 [high] AMENDMENT TEXT part 2 2026-12-05 run 3711 — A4-A9 (autobot stale, base drift withdrawn, standing items)

Continuation of note #25 (PR #742, head f26d8a8). Same authority; #25 part 1 holds A1-A3.

A4. NEW AUTOBOT REVIEW (09:51, "Merit Risk: Low · up to 66d6af3", 0 blockers / 1 should-fix / 1 subtract / 2 nits, Changes Requested) — stale on arrival. It was posted two minutes after the 09:49 push and reviews the previous commit; its only should-fix, "memory.rs:999 still calls div_ceil(contract.cache.page_tokens as u64) unguarded", is exactly what f26d8a8 removes (note #25 A2). Its "subtract/simplify" nit ("replace the dead .ok_or_else with .expect(...)") also no longer applies: the two error branches are now the tested preconditions of a standalone helper (memory.rs:2454-2455), not dead code at one call site. Net: no open autobot should-fix item against f26d8a8; the next auto re-review (~90 min after 09:49) is the one that matters. Downstream reviewers should ignore both the 09:11 (+115/-10, up to 02990da) and the 09:51 (+94/-21, up to 66d6af3) merge-risk labels — head is +105/-21.

A5. WITHDRAWN — "base drift" (report #22 amendment 7, notes #19 and #21 item 10). Wrong. search_history at main returns f46a9922 as the tip, with 012219a1 (#713) as an ancestor, and pr/742 has the same chain, so the branch already sits on the current main tip and the PR body's "base f46a99220a" is accurate. Verified by line offsets: main helios/src/runtime_core/memory.rs is 3004 lines (PlannedHostBudgets 32-35 without the new field, LinuxMemInfo 191-198, page_ceiling 561) and the head is 3046 (field at 34, helper 562-569, page_ceiling 571) — +42 net, i.e. this PR's own +43/-1 hunk, not #713's +161 lines of drift. Autobot's "Already rebased onto 012219a1 (#713)" describes the same tree. Delete the "stale base label" and "six-crate counts describe a pre-#713 tree" caveats; they were false. The only remaining rebase risk is open #737 (unchanged from note #17 item 9: it edits async_transfer_host_ram/async_transfer_host_total, which feed this buffer's host_growth bound, plus a PlannedHostBudgets field line).

A6. STILL STANDING from #22 (not touched by f26d8a8):

A7. NEW MINOR (body wording, not code). PR body What-changed item 2 says the bound is passed "into headroom_with_inputs_for_budget (where headroom_inner clamps minimum_pages)" — the code clamps chain_pages (selene/src/offload.rs:165-167) and minimum_pages reaches selene unmodified as local_pages (memory.rs:1143). Cosmetic. Also memory.rs:1007 shadows the name (let max_sequence_pages = max_sequence_pages(...)) — no behaviour issue; rename if a reviewer cares.

A8. DOC re-verified at f26d8a8 (unchanged from 66d6af3), docs/prefix-cache-offload.md:1593-1609: "the larger of automatic intake and one full single-sequence capture chain (min(GPU page capacity, ceil(max_sequence_tokens / page_tokens)) plus one row's slots)", "Helios limits GPU page capacity so one sequence chain plus one row fits the host budget", "If even the capped minimum page capacity plus one row does not fit, startup fails with host budget cannot hold a full pool capture". Old nit #18 persists verbatim: "copies the full GPU chain" (:1605-1606) and the carried GLM-5.3-Flash 11.0 GiB / 7.1 GiB example (:1598-1599, intake-dominated, not recomputed under the cap).

A9. TEST COVERAGE still thin where it matters: the two new/changed tests exercise headroom_inner (selene/src/offload/tests.rs:531-561) and capture_growth/the helper (memory.rs:2453-2476) in isolation; nothing asserts planned_offload_host (memory.rs:1561-1567), the pool only: capture buffer … log line under a cap, or an integrated-memory path. Note test-count arithmetic oddity: both 09:11 and 09:51 autobot reviews say helios "2,041 passed" on different commits and the body's selene count moved 650 -> 649 while a test was folded rather than deleted — plausible, but the counts are self-reported and no CI check run exists on f26d8a8.

#28 [high] Research summary

Amendments to the PR #742 report (head 66d6af3 → f26d8a8, pushed 2026-12-05 09:49). Everything in the prior report stands except items A3 and A5.

A1 — head, size, shape. Branch is now one squashed commit f26d8a8b on base f46a9922 (the prior "2 commits" shape is gone), +105/−21 in the same 9 files. Per file: docs/prefix-cache-offload.md +15/−12, helios/src/runtime_core/memory.rs +43/−1, model.rs +12/−3, selene/src/offload.rs +9/−1, selene/src/offload/tests.rs +18/−4, selene/src/offload/sharded/tests.rs (not opened) +4, selene-manager/tests/client.rs (not opened) +2, selene-manager/tests/offload.rs (not opened) +1, helios/src/offload/pool/tests.rs (not opened) +1. Discussion is now 5 entries (case file 08:55, autobot 09:11, author 09:19, author 09:49, autobot 09:51); still no maintainer comment and no CI check results. PR body rewritten a third time; its Evidence section now names head f26d8a8 under RUSTFLAGS="-D warnings" (eos 12, selene 649, selene-manager 448, helios 2,041/88 ignored, flare 255, flare-cli 254).

A2 — the remaining divide-by-zero is fixed. New helper fn max_sequence_pages(context: u64, page_tokens: usize) -> Result<NonZeroU64> rejects page_tokens == 0 and context == 0 before div_ceil and rejects a zero result (helios/src/runtime_core/memory.rs:562-569), called at memory.rs:1007 right after the retained > 0 filter on server_config["max_sequence_tokens"] (:1002-1005). Assertions at memory.rs:2454-2457 ((0,64) err, (1024,0) err, (1025,64)==17, (1_048_576,64)==16_384 — the last matches the body's max_sequence_pages = 16,384). No other behaviour changed: single-point clamp still selene/src/offload.rs:165-167, clamps at memory.rs:1497 and :1563-1566 unchanged.

A3 — CORRECTION. The prior report said the 09:11 should-fix was "closed at 66d6af3 by NonZeroU64 plus a > 0 filter". Only the context == 0 half was; at 66d6af3 the bound was still NonZeroU64::new(context.div_ceil(contract.cache.page_tokens as u64)), so page_tokens == 0 could still panic in any path reaching allocate_caches outside PreparedContract::validate (helios/src/model/contract.rs:536, via helios/src/model/catalog.rs:31). The guard landed only at f26d8a8.

A4 — new autobot review (09:51) is stale on arrival. Labelled "up to 66d6af3", +94/−21, 0 blockers / 1 should-fix / 1 subtract / 2 nits; posted two minutes after the push. Its only should-fix ("memory.rs:999 still calls div_ceil(...) unguarded") is exactly what f26d8a8 removes, and its "replace the dead .ok_or_else with .expect" nit no longer applies — the error branches are the tested preconditions of a standalone helper. Both autobot merge-risk labels (09:11 and 09:51) mis-state the size; head is +105/−21. No open autobot should-fix against this head, pending the next auto re-review.

A5 — WITHDRAWN: the base-drift finding was wrong. search_history at main puts f46a9922 at the tip with 012219a1 (#713) as an ancestor, and pr/742 carries the same chain: the branch is already on the current main tip and the body's "base f46a99220a" is accurate. Line-offset check confirms it — main helios/src/runtime_core/memory.rs is 3004 lines (PlannedHostBudgets 32-35 without the field, LinuxMemInfo 191-198, page_ceiling 561), head is 3046 (field at 34, helper 562-569, page_ceiling 571): +42 net = this PR's own hunk, not ≈+161 lines of #713 drift. Drop the "stale base label" and "six-crate counts describe a pre-#713 tree" caveats. Only open-#737 rebase risk remains (async_transfer_host_ram/async_transfer_host_total feed this buffer's host_growth; plus one PlannedHostBudgets field line).

A6 — still standing (untouched by f26d8a8). Intake floor uncapped (selene/src/offload.rs:178-180; clamp only on chain_pages :165-167) — disclosed in prose and in the body but the impact table still has no intake-dominated row. Direction of change under-sold: every clamp shrinks only the charge, so pool-only operators may get more GPU KV pages and startup succeeding where main failed; documented at docs/prefix-cache-offload.md:1599-1602, absent from the title. RSS 18.74–19.06 vs 7.83–8.04 GiB is still the v0.6.0/f705086 build (body says so verbatim); CUDA/integration/Windows/integrated/multi-host/Kani/TLA+ unrun and disclosed. Charter fit, the #160 caveat and first-time-contributor status unchanged.

A7/A8 — small new items. Body wording nit: it says the bound is "passed into headroom_with_inputs_for_budget (where headroom_inner clamps minimum_pages)" — the code clamps chain_pages (offload.rs:165-167) and minimum_pages reaches selene unmodified as local_pages (memory.rs:1143). The helper now runs on every model load, not only pool-only capture, so a zero-page-token contract fails earlier with a clean error (safe; contract.rs:536 and memory.rs:706 already reject it). Name shadowing at memory.rs:1007. Doc nit #18 persists verbatim ("copies the full GPU chain", docs/prefix-cache-offload.md:1605-1606; GLM example :1598-1599 not recomputed).

A9 — evidence reappraisal. The "Kani/TLA+ not applicable" claim is about relevance, not execution: .github/workflows/helios-lifecycle.yml:3-11 (not opened) matches helios/**, selene/**, selene-manager/** for both the lifecycle (:33-36) and Kani (:38-49) jobs, and native-serving.yml:3-7 runs on every PR. Nothing is visible on the PR, so those runs are absent or unlinked. Test coverage is still thin where it matters: nothing asserts planned_offload_host (memory.rs:1561-1567), the pool only: capture buffer … line under a cap, or an integrated path.

#29 [high] Consolidated amendment index A1–A9 (run 3711) — read before notes #25/#26/#27

PR #742, amendment set for report #22 after the 2026-12-05 09:49 push to head f26d8a8 (+105/−21, 9 files, single squashed commit f26d8a8b on base f46a9922). Everything in report #22 stands except the two items marked WITHDRAWN/CORRECTED (A3, A5). Detail and verbatim text: A1–A3 in note #25, A4–A9 in note #26, extra observations in note #27, evidence trail in note #24.

A1 (state) — one commit now, not two; +105/−21; per-file split in #25 A1; discussion 5 entries; no maintainer comment, no CI results; PR body rewritten a third time with evidence re-run on f26d8a8. A2 (fix) — fn max_sequence_pages(context, page_tokens) -> Result<NonZeroU64> (helios/src/runtime_core/memory.rs:562-569) guards page_tokens == 0 and context == 0 before div_ceil; call at :1007; asserts at :2454-2457. Mechanism otherwise unchanged. A3 (CORRECTION of #22) — the page_tokens == 0 half of autobot's Round-1 should-fix was NOT closed at 66d6af3; only context == 0 was. Guard landed at f26d8a8. A4 (process) — the 09:51 autobot review is stale on arrival ("up to 66d6af3", +94/−21) and its only should-fix is A2; its .expect() nit is moot; both autobot merge-risk labels understate the size vs +105/−21. A5 (WITHDRAWN) — the "base drift / stale base label / pre-#713 tree" finding from #22 amendment 7 is false: f46a9922 is the main tip, #713 is an ancestor, memory.rs is +42 net over main's 3004 lines. Only #737 rebase risk remains. A6 (standing) — uncapped intake floor (selene/src/offload.rs:178-180); under-sold direction of change (docs/prefix-cache-offload.md:1599-1602, not in title); RSS provenance still v0.6.0/f705086; CUDA/integration/Windows/integrated/multi-host/Kani/TLA+ unrun but disclosed; no maintainer review. A7 (nit) — body says the bound reaches headroom_inner "where it clamps minimum_pages"; code clamps chain_pages (:165-167) and minimum_pages passes through as local_pages (memory.rs:1143). Also helper name shadows the local at memory.rs:1007. A8 (nit) — helper now runs on every model load, so a zero-page-token contract errors earlier and cleanly (safe; contract.rs:536, memory.rs:706). Doc nit #18 persists ("copies the full GPU chain", docs:1605-1606). A9 (evidence) — Kani/TLA+ do run on these paths (.github/workflows/helios-lifecycle.yml:3-11, :33-36, :38-49) and native-serving.yml:3-7 covers every PR, so the author's "not applicable" is about relevance, not execution; nothing visible on the PR. Coverage gap: planned_offload_host (memory.rs:1561-1567), the capped pool only: capture buffer … line, and integrated paths are unasserted.

Priority for the report: A2 (fix), A5 (withdrawal — corrects a shipped claim), A3 (correction), A1 (state), A4 (stale review), then A6–A9.

#4 [medium] Change: verified mechanics of the cap and what happens if a chain exceeds it

Facts from the code read (not opinions):

#10 [medium] Recent activity: #705/#694/#674/#625 in the same files; single-commit head on f46a9922, mechanical rebase expected

Recent activity in the touched areas (default branch, last ~60 days) and how #742 sits against it:

Not relevant after checking: #314 (diffusion tensor execution, touches memory.rs but unrelated), #585/#486/#477/#492 (compression work, older), #613 (deferred_prefill checkpoints), #646/#659/#669 (GB10/VMM sizing).

#11 [medium] Community/process: ready for review, zero engagement, no CI checks, autobot precedent on #718

Community / process facts:

#15 [medium] Change: file map of the 9 changed files and the doc before/after wording in section 2.15

Per-file map of PR #742 (9 files, +115/−10) with each file's role, for quick orientation:

#19 [medium] Base drift: main is now 012219a1 (#713), not f46a9922 as the PR body claims

BASE DRIFT (new since report #16, verified):

#24 [medium] Verification log 3711: base == main tip, helper guards, no drift

Evidence trail for note #23.

#27 [medium] Extras run 3711: helper runs on every load; CI workflows DO match these paths; #737 still open

Extras noted while amending PR #742 at head f26d8a8 (all minor, code-safe):

  1. The helper max_sequence_pages(context, page_tokens) is called unconditionally at helios/src/runtime_core/memory.rs:1007, i.e. for every model load, not just pool-only capture (cfg.enabled() is only consulted at :1020 onward). A contract with cache.page_tokens == 0 therefore now fails during cache planning with "model requires a positive cache page size" instead of being caught later; PreparedContract::validate already rejects it (helios/src/model/contract.rs:536) and the physical server_config["page_tokens"] is separately non-zero-checked (memory.rs:905-908) and re-checked in capacities() (:706). Behaviour is strictly earlier and cleaner; blast radius is "any load", so worth one line in the report but not a defect.
  2. Name shadowing at memory.rs:1007 (let max_sequence_pages = max_sequence_pages(...)) — compiles, cosmetic.
  3. CI applicability, re-checked at main: .github/workflows/helios-lifecycle.yml:3-11 triggers on helios/**, selene/**, selene-manager/**, so both the lifecycle job (:33-36, TLA+ + helios test compile) and the Kani job (:38-49) match this PR's paths, and .github/workflows/native-serving.yml:3-7 triggers on every pull_request (Ubuntu + Windows build/test). The author's "Kani/TLA+ not applicable because this PR does not touch scheduler/cache_memory or lifecycle machines" is a judgement about relevance, not about whether CI runs them. No check results are visible on the PR at f26d8a8, so these runs are either absent or unlinked.
  4. plans/orientation packet leads all covered by earlier notes; nothing new since #22/#23 on the linked items (#455, #497, #705, #711, #713, #718, #737, #160). #737 re-read this run: still open at 46e6a3b, +1769/-268, autobot Changes Requested 04:11 (4 should-fix), and its host-RAM budgeting change is what the #742 overlap note depends on — unchanged conclusion, merge order matters only through async_transfer_host_ram/host_growth.

#18 [low] Doc nit: 'copies the full GPU chain' still unbounded-sounding beside the new cap sentence

Minor residual nit found while re-reading the reflowed doc (post-66d6af3):