Explore scratchpad · NVIDIA/hyperflare-inference #694

Raw Markdown for agents: https://autobot.eidonix.com/p/0af74874-92de-4200-8751-38e35d90dd08.md

#1 [high] Change: size and file map of PR #694

PR #694 "selene,helios: add write-side NVMe and pool spill profitability gate", author yatesdr (COLLABORATOR), opened 2026-12-02, base main, head d74e810, state open/ready-for-review, labels: none, reviews: none, CI on head: passed (per orientation packet).

Size: 52 files, +22770/−3868.

Note: the PR body says "zero … selene-manager server … changes", but selene-manager/src is touched in 5 files (+2961/−159), including store.rs +2728. That is a discrepancy worth checking (may be inherited from #674 through the stack, or may be new in the top commit — pr_diff is unavailable because the local copy cannot resolve base commit c513e46a, so top-commit-only diff could not be computed).

#2 [high] Change: new profitability API in selene/src/store.rs (top commit vs #674)

Verified by comparing files at pr/694 (head d74e810) against pr/674 (parent branch head 831c47c7) — the tool resolves pr/<n> only for items in the local copy; pr/694 itself cannot be read (git cannot resolve base c513e46a) but individual files at pr/674 can, so the top-commit delta is diffable file-by-file.

New in the top commit (selene/src/store.rs):

#3 [high] Change: NVMe write gate and dram_only shadow mechanics in selene/src/composite.rs

selene/src/composite.rs (local NVMe tier of CompositeStore, DRAM + Disk):

#4 [high] Change: helios publication of prefill_saved_ns, compaction lineage forwarding, and metrics

helios side of the top commit (files verified at pr/694 head d74e810):

#5 [high] Change: selene memory.rs pool gate (PoolCoverage, dram_only shadows, remove_nodes, cascade)

selene/src/memory.rs (top commit):

#6 [high] Related work and recent activity: searches, stacked parent, and unavailable git history

Attempted searches (search_items over PRs/issues, 30-day window) against the new terminology returned only #694 itself: "profitability spill unprofitable NVMe", "prefix cache hybrid attention recurrent state rows NVMe", "fork dedup shared prefix promotion", "worth_restore prefill pricing restore" (this last also surfaced #674, whose description mentions estimate_prefill_delta_ns + RowRestoreLatency). No separate issue or PR asks for a write-side spill profitability gate, and no issue tracks the "hybrid-attention recurrent row makes short prompts unprofitable to persist" problem. The problem is stated only in #694's own summary; the only prior art is #674 (same author, same day, stacked parent) and the restore-side pricing it introduced. Issue #451 (GPU KV pages excluded under handle-count limits) belongs to #674, not #694; #694 inherits it through the stack. Earlier same-author PRs on this exact code path (orientation packet related list): #429 "Link host-cache records under any offered ancestor, not only the nearest" (merged), #415 "Keep Selene rows by role and write pool records back on eviction" (merged), #413 "Link Selene pool puts to held ancestors and store each page once" (merged), #497 "Reduce disk offload restore latency…" (merged), #504 lossless KV compression (merged), #496 coalesced disk fetches (merged), #607/#610/#611 (merged, hardening), #665 (merged, helios scan-resistant dual-turnover eviction), #659 and #655 (open, same author). #674's own body names #665 (helios/src/cache.rs, docs/prefix-cache-offload.md) and #659 (helios/src/runtime_core/cache_memory.rs) as editing the same regions as the stack, so that merge-order coordination carries over to #694, which touches both files. items_touching/related_items/search_history are unusable here: the local copy is missing objects (Could not read c513e46a…), so no commit-level "recent activity" data could be gathered; the orientation packet records the same failure for every area.