Amendments to the PR #742 case file — new event: head 66d6af3/f26d8a8 → 5021b7a3 (2026-12-05 10:30 push, autobot review 10:17)
Amendment-only. The run-3726 report (f26d8a8) and the run-3699 case file stand except where an item below voids or corrects them. Every claim re-checked against the current head this run.
Key findings (amendments, priority order)
- A1 — head, base, size. Head is now one squashed commit
5021b7a3("selene,helios: bound pool-only capture buffer to max_sequence_pages"); base isf46a9922, whichsearch_history(ref=main)confirms is the currentmaintip (next entry below is5d11354d/ #705), so no base drift. Scale is 9 files, +105/−21 (pr_files: docs/prefix-cache-offload.md +15/−12, helios/src/runtime_core/memory.rs +59/−3, helios/src/runtime_core/model.rs +13/−4, selene/src/offload.rs +10/−1, selene/src/offload/tests.rs +18/−4, selene/src/offload/sharded/tests.rs +4/−0, helios/src/offload/pool/tests.rs +1/−0, selene-manager/tests/client.rs +2/−0, selene-manager/tests/offload.rs +1/−0). Nothing else in the run-3726 report changes shape. - A2 — the two clamps now share one helper. New
fn capture_chain_pages(pages: u64, max_sequence_pages: NonZeroU64) -> u64 { pages.min(max_sequence_pages.get()) }athelios/src/runtime_core/memory.rs:675-678, used at:1502(thecapacitiesgrowth closure) and:1568(planned_offload_host); the previously duplicated inline.minis gone. Selene's single enforcement point is unchanged in shape and in lines read this run:chain_pages = inputs.max_sequence_pages.map_or(pages, |limit| pages.min(limit.get()))(selene/src/offload.rs:166-168), admission test (:176-177), slab term (:179-181). - A3 — the "Option asymmetry" finding is now fully void; guard moved to the lookup.
fn max_sequence_pages(context: NonZeroU64, page_tokens: usize) -> Result<NonZeroU64>(memory.rs:563-568) rejects onlypage_tokens == 0("model requires a positive cache page size") and.expect(...)s thediv_ceilresult.context == 0is now unrepresentable earlier:self.server_config["max_sequence_tokens"].as_u64().and_then(NonZeroU64::new).ok_or_else(|| invalid("model requires a prepared context ceiling"))?(memory.rs:1006-1009), consumed at:1010, helper called at:1012. PrivateNativeModel::prepare_offloadtakes a non-optionalNonZeroU64(helios/src/runtime_core/model.rs:1125), while the selene-facingPrepareInputs::max_sequence_pagesstaysOption<NonZeroU64>deliberately (selene/src/offload.rs:343-346). Consequence: thecontext == 0unit assertion fromf26d8a8is dropped by design (test at memory.rs:2456-2490 now asserts only thepage_tokens == 0error at:2458) — a simplification, not a coverage loss. - A4 — the direction of the change is now directly unit-asserted (was inference). memory.rs:2476-2479 asserts
capture_growth(&layout, 512, reserved, 0, 1) == Nonewhilecapture_growth(&layout, capture_chain_pages(512, max_pages), reserved, 0, 1) == Some(0)— the same host charge that previously refused GPU pages now admits them capped.:2481-2489assertspages == uncapped_pagesandpages > max_pages.get()(GPU page count not throttled).selene/src/offload/tests.rs:531-560folds the(512, Some(64))case intopool_only_sizes_registered_capture_and_headroom_for_local_ranksand asserts the capped floor is strictly smaller (:558-560). - A5 — autobot's round 3 (10:17) supersedes round 2, and two of my earlier criticisms must be withdrawn. Verdict: Ready To Merge, 0 blockers / 0 should fix / 1 subtract / 1 nit, covering
f26d8a8. Its size figure (+105/−21) matchespr_filesand its "already sits on currentmain(f46a9922)" is accurate, so the run-3726 criticisms of those figures are void. It is again stale on arrival (posted 13 minutes before5021b7a3), unsigned, and no autobot review exists for the current head. - A6 (new, minor) — the cap is conservative against the prepared context ceiling, not the runtime limit. Helios reads
server_config["max_sequence_tokens"](memory.rs:1006), the prepared ceiling, while the runtimelimits.max_sequence_tokenscan be smaller (helios/src/model.rs:261-273fit_contextshrinks it towardpages*page_tokens - draft_pages;helios/src/model/catalog.rs:46-47only enforces<= prepared_sequence_tokens). So on KV-limited deployments the capture reserve is still sized for a full prepared-context chain: never under-reserved, but part of the PR's own claimed saving is left on the table. This is the only new substantive observation at this head. - A7 (new cross-PR fact) — a second open PR now references #742. #743 ("fix(helios,selene): measure active offload transfer duration…", jcartu, open, +556/−56,
related_items) lists #742 and states "no textual conflicts with open siblings (#742, #734, #737)". It shares onlydocs/prefix-cache-offload.md(its:1841-1847paragraph, a different section from this PR's:1593-1609) and touchesselene/src/memory.rs/helios/src/offload/transfer*, notoffload.rs/model.rs, so no merge-order risk is added; #737 remains the only open PR sharing this PR's three host-budget files.
Standing items (unchanged, re-verified line positions)
- Intake floor is still uncapped and still unquantified:
chain.max(intake_slots(layout, inputs.max_active) as u64).min(budget)(selene/src/offload.rs:179-181,intake_slotsat:226-228). The impact table still has no intake-dominated row, so a widemax_activedeployment can still size the slab above one sequence chain — disclosed, not measured. - Doc nit persists.
docs/prefix-cache-offload.md:1605-1606still says a capture with no resident ancestor "copies the full GPU chain", two sentences after the new ceilingmin(GPU page capacity, ceil(max_sequence_tokens / page_tokens))(:1595-1597, plus "If even the capped minimum page capacity plus one row does not fit, startup fails withhost budget cannot hold a full pool capture" at:1601-1602). Behaviour is safe (an over-long chain drops asStoreOutcome::Oversize). The GLM-5.3-Flash TP4 example (11.0 GiB / 1,664 slots, 7.1 GiB full-chain floor,:1598-1599) is carried from #455 and not recomputed under the cap. - Startup error string unchanged (
selene/src/offload.rs:177). - Evidence provenance unchanged. The 18.74-19.06 GiB vs 7.83-8.04 GiB RSS figures are still from the
v0.6.0(f705086) build, not an A/B on head. Author re-reports all six crates green in--locked --releaseunderRUSTFLAGS="-D warnings"at5021b7a3("3,659 passed, 0 failed, 96 ignored"), self-reported. No CI check is visible on the PR, although.github/workflows/native-serving.yml:45-81(not opened) andhelios-lifecycle.yml:33-36(not opened) would exercise selene/selene-manager/helios. - No maintainer review of any head; labels unchanged (
area:memory, area:preparation, area:selene, performance, triage:review); author is still a first-time contributor, and yatesdr's #455 review remark (2026-11-21) asked for documentation, so the cap remains the author's extrapolation from it. #718 is still superseded for the sizing piece only.
Withdrawals from earlier notes (do not repeat)
- "Base drift / stale base label / pre-#713 tree" — void:
maintip isf46a9922, the PR base. (Supersedes the earlier012219a1(#713) note.) - "Option asymmetry between
memory.rsandmodel.rs" — void (A3). - "Autobot understates size (+94/−21) / misreports the base" — void (A5).
- "Unguarded
div_ceil/ divide-by-zero panic" — void sincef26d8a8, doubly closed at5021b7a3. - "
capture_growthandplanned_offload_hostduplicate the.min" — void (A2).
Open questions / not found
- Whether maintaining the cap counts as the "explicit maintainer request" from #455 (documentation only) or as unrequested scope needing a fresh ask — unanswered; no maintainer has commented on any head.
- Why the chain term is capped but the intake floor is not, and what slab size the widest in-repo
max_activedeployment actually gets — no intake-dominated row anywhere. - Whether an A/B restart on head is required to accept the RSS evidence — not stated; no CI run exists to substitute.
- Merge order vs #737 (open, +1769/−268): if it lands first, does its host-wide
--pool-ram-memory/UVA change invalidate the Qwen4-35B-A3B arithmetic (70.9 GiB → 11.8 GiB)? - No organic demand found: no issue reports
host budget cannot hold a full pool capture; the nearest is #160 (disaggregation scope, closed). - Not verified: the per-crate test-count arithmetic across heads — self-reported and uncheckable without a CI run.