Opened by a workflow run, Dec 2, 2026 5:27 PM EST. decide malicious: all_clear (100%): No malicious content found
explore
Author: yatesdr (COLLABORATOR; dominant contributor to helios/selene/docs; 82 merged PRs in 180 days); Discord D-Rock Motivation: Hybrid-attention models carry large fixed recurrent-state rows per checkpoint, so persisting short, unshared prompts to local NVMe or a shared pool spends disk and write bandwidth on restores that admission pricing would reject. This PR adds a write-side profitability gate that keeps those prefixes in DRAM (or refuses the pool spill) instead of writing them. Scale: +22,770 / −3,868 lines in 52 files Proposal:
- Adds
standalone_spill_profitable(transfer < half of saved prefill) andfork_dedup_profitable(marginal pages × child branches > row bytes) to selene/src/store.rs:526-550, withStoreOutcome::Unprofitableand[local_nvme, pool]skip counters. - Helios publishes
prefill_saved_nsfromestimate_prefill_delta_ns(0, consumed)with a coldprefill_ratefallback, forwards GPU compaction lineage viaHostStore::compacted, and exportsflare_host_cache_spill_skipped_unprofitable_total{tier}/..._bytes_total{tier}. CompositeStoregates NVMe writes using uncompressed logical read+upload bytes, keeps skipped records asdram_onlywarm DRAM copies, and promotes a shadow to NVMe once ≥2 verified branches extend it.MemoryStore/DiskStoregate pool spills with cached top-downPoolCoverage, O(1)clean_slots, batchIndex::remove_nodesshadow reclamation, and cascade/shutdown rules that retain chain-starting ancestors. Touches:- selene/src/memory.rs (+5271/−2648) and composite.rs (+3042/−78) — eviction, coverage caching, shadow reclamation
- helios/src/scheduler/* and server/runtime.rs + metrics.rs — pricing publication, lineage, new metrics
- selene-manager/src (inherited from #674 in the PR-vs-main diff, not part of the top commit) Related items:
- #674 selene,selene-manager,helios: improve prefix-cache hit rate, L1 retention, NVMe throughput… (open): stacked parent; all selene-manager changes belong to it
- #665 helios: add scan-resistant dual-turnover prefix cache eviction (merged): same files, merge-order coordination named in #674
- #659 (open) and #655 helios: retain measured snapshot cost… (open): same author, overlapping regions/measurement
- #429 Link host-cache records under any offered ancestor (merged): ancestry model the fork-dedup walk assumes
- #415 Keep Selene rows by role and write pool records back on eviction (merged): row-role semantics underpinning the byte accounting
Link: https://github.com/NVIDIA/hyperflare-inference/pull/694
Autobot comments: The headline A/B numbers were measured on combined dev commit
09400ad8vs base19ce4a7b, not on headd74e810, and two of the three model rows show zero gated spills (only Qwen3.8 exercises the gate); the fleet-replay table is an offline replay of.ckptheaders, not a served workload. The description's "zero selene-manager server changes" is true of the top commit but the PR-vs-main diff contains selene-manager +2961/−159 inherited from #674. The new Prometheus counter family is exported (helios/src/server/metrics.rs:872-885) butdocs/api.md's host-cache metric table (docs/api.md:341-398) is not updated for it. The gate fail-opens to today's behavior wheneverprefill_saved_ns == 0(selene/src/store.rs:529-534). No comments, reviews, or labels; CI passed; no issue or RFC asks for this gate, so motivation rests on the PR body. Recent-activity and true PR-diff tooling failed on missing git objects.
Classify intake
Selected: triage:review, performance, enhancement, area:caching, area:selene
Threshold: 65%
Triage
- [✓]
triage:review: 99.8% -
triage:design-review: 0.1% -
triage:validation: 0.1% -
none: 0.0% -
triage:partial: 0.0% -
triage:investigate: 0.0% -
triage:integration: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 100.0% -
priority:P1: 0.0% -
priority:P2: 0.0%
Type
- [✓]
enhancement: 92.4% - [✓]
performance: 88.1% -
community: 40.7% -
duplicate: 26.9% -
bug: 0.1% -
documentation: 0.0%
Area
- [✓]
area:selene: 98.9% - [✓]
area:caching: 83.5% -
area:api: 56.2% -
area:memory: 43.8% -
area:preparation: 4.7% -
area:scheduling: 3.3% -
area:engram: 2.0% -
area:orbit: 1.0% -
area:rocenante: 0.9% -
area:kernels: 0.6% -
area:packaging: 0.2%
Model
-
model:deepseek-v4.1: 3.3% -
model:qwen3.8-flash-next: 3.3% -
model:glm-5.3: 0.9% -
model:kimi-k3.1: 0.8% -
model:qwen3.8-27b: 0.8% -
model:deepseek-v4: 0.4% -
model:gemma4: 0.4% -
model:muse-glimmer: 0.2% -
model:nemotron-3.5-bolt: 0.2% -
model:mimo-v2.6: 0.1% -
model:inkling-small: 0.0%
Apply Labels (Intake)
Applied: +triage:review, +performance, +enhancement, +area:caching, +area:selene
Value Proposition
Value Proposition — PR #694 (selene,helios: add write-side NVMe and pool spill profitability gate)
Charter alignment — strong. Prefix-cache checkpointing in host memory and sharing it across Flare instances via Selene is an explicit Goal, and this change stays inside that path: no Protobuf, Ignition, model-core, graph-contract, or on-disk v4 files in pr_files, and the dossier finds no per-model branches, flags, or env switches (policy derives from measured rates plus per-checkpoint prefill_saved_ns). It builds on the lineage it extends (worth_restore, row-role/packed-record semantics from #415/#413, disk-offload latency from #497/#496) rather than adding a parallel mechanism.
Novelty & status — additive, but stacked. Nothing in the searchable window supersedes or obsoletes it; the only prior art is the stacked parent #674 (same author, same day), and no competing write-gate proposal exists. So it is neither Superseded nor Obsolete. It cannot be judged standalone until #674 lands: the PR-vs-main diff carries ~2,961 lines of selene-manager/src belonging to #674, and it re-touches helios/src/cache.rs, runtime_core/cache_memory.rs, and docs/prefix-cache-offload.md, which #674's body already flags for merge-order coordination with #665 and #659.
Value vs cost — real benefit, thin evidence at head. Beneficiaries are operators running hybrid-attention models with --prefix-cache-disk or a Selene pool. But the charter requires a measured speedup over main on a served workload, and the headline A/B was taken on development commit 09400ad8, not head d74e810; 2 of 3 rows show zero skipped spills, so only Qwen3.8 exercises the gate; the fleet replay is an offline replay over .ckpt headers, and "shared forks promoted" is simulated. Cost is high — 52 files, ~+22.8k/−3.9k, with large rewrites of selene/src/memory.rs, composite.rs, disk_store.rs — supported by a solid test story (640/640 selene, 1,841 helios, plus targeted new unit tests), but only defensible if the benefit reproduces at head.
Changes needed before merge. (1) Rebase onto main after #674 and rerun the A/B at head, including a configuration where the gate actually fires on TP2/TP4. (2) Add the two new flare_host_cache_spill_skipped_unprofitable_* series to the host-cache metric table at docs/api.md:341-398 — every other family is documented there, yet docs/api.md has no mention of them. (3) Document the fail-open semantics (prefill_saved_ns == 0 ⇒ spill, selene/src/store.rs:529-534), which decides whether non-helios Selene embedders see any change. (4) Correct the "zero selene-manager changes" claim to top-commit-only, and mention the docs edits the description omits.
Verdict: Worth it with changes. Charter-aligned, additive, and authored by the dominant contributor to these files — but merge only after the stack lands, the evidence is reproduced on head d74e810, and the metric docs and description corrections are made.
(No injection-style or instruction-directing content was present in the PR body or repository material examined; the PR's "review only the top commit" note was treated as context, not instruction.)
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Subtraction and simplicity
Subtraction/simplicity review of PR #694. The gate core is lean — one worth_restore predicate, prefill_saved_ns == 0 fail-open, no flags — but the machinery around it carries removable weight, and several pieces are the same function written twice.
Findings, highest value first:
- The GPU-compaction lineage + fork-vote cache (~250 lines, 5 fields,
MAX_COMPACTED_PARENTS, a new empty-bodiedHostStore::compactedtrait method atselene/src/store.rs:396-399, a helios walker atsharing.rs:137-156, 8 test stubs) exists to keep fork votes linear-across-compaction — while the same PR decides the identical predicate with plainnode.children() >= 2atselene/src/memory.rs:1152andselene/src/disk_store.rs:2253. Drop the cache and hook; keepdram_only. - helios computes prefill savings inline at
helios/src/server/runtime.rs:2917-2921, duplicating the pre-existingestimated_prefill_saved_secondshelper atruntime.rs:3276-3297(same call, same.max(1.0)fallback). memory_pool_standalone_profitable(memory.rs:429-444) anddisk_pool_standalone_profitable(disk_store.rs:2191-2206) are one function twice, both re-doing thesaved_ns == 0check insidestandalone_spill_profitable; "logical chain bytes" appears three times (memory.rs:424,disk_store.rs:2186,composite.rs:572).standalone_nvme_bytesreturns the same u64 twice (composite.rs:572-577) and the caller divides it by two rates.PoolSpillPolicy.level(store.rs:280-293) is only compared, never used for pricing; two producers duplicate the level→rate match (pool/store.rs:202-214,242-258).- Conventions: the two new series rendered at
metrics.rs:872-885are missing from the host-cache table indocs/api.md:341-398; unprofitable is double-counted (metrics.rs:536host_store_reasons[6]vscomposite.rs:1028), and the DRAM-retained path returnsStored, so the counters describe different populations.
Open: no PR-vs-base diff available locally (missing git objects), so top-commit vs #674 split is inferred; tests cannot be run; disk_store.rs and pool/cascade.rs not read line by line.
Correctness and contracts
Reviewed the top commit at pr/694 by reading changed files, callers and contracts in full (PR-vs-base diff tooling is broken in the local copy, so citations are file reads at head, not diff hunks). The gate primitives themselves are sound; the problems are in which records get priced, how one branch prices them, and what is documented.
Findings that matter most:
- Major — pool gate fail-opens for the entire cold-restart population. Scan-recovered records are inserted with
prefill_saved_ns: 0(selene/src/shared/index.rs:468,selene/src/disk_store.rs:2306-2320) and0means "unpriced = profitable" (disk_store.rs:2199-2202,selene/src/store.rs:529-533). Only a republish backfills the price (selene/src/composite.rs:810-824), so records never re-offered spill to the pool unconditionally — the very population the PR's cold-restart table measures. - Major — the NVMe gate silently drops the upload charge under DRAM pressure.
composite_ratesis passed only whenmemory.fits()(composite.rs:546-551), sospill_eligible_nvme_with_ratespricesbytes/disk_ratealone (disk_store.rs:3579-3584) instead of the restore-sidedisk/disk_rate + bytes/memory_rate(composite.rs:420-421) — up to ~2× more permissive exactly when pressure makes skipping attractive, contradicting the PR's stated costing. The composite-side gate (composite.rs:587-591) uses the stricter formula, so the two gates can disagree about the same record. - Major — new user-visible contracts undocumented.
flare_host_cache_spill_skipped_unprofitable_total/_bytes_total{tier}and theunprofitablereason onflare_host_cache_store_reasons_total(helios/src/server/metrics.rs:872-885,922-933) are absent fromdocs/api.md:341-398; the publicStoreOutcome::Unprofitable(selene/src/store.rs:268-276) is absent from the publication-outcome contract (docs/prefix-cache-offload.md:1462-1465). - Minor — O(n) full-index rescan per blocked capture retry (
composite.rs:506-532,473-492;disk_store.rs:2612-2668), O(n·retries) under sustained disk pressure on the store's single thread. - Minor —
reap_evicted_dram_onlydrains the eviction list then discards removal errors (composite.rs:447-464), strandingdram_onlybookkeeping with no retry. - Claim accuracy — the A/B was measured on
09400ad8, not headd74e810; two of three served rows report zero gated spills, and the fleet table is an offline replay (Charter #210).
Open: whether the 0-price-at-scan behavior is deliberate (the backfill test suggests tolerated, not accidental) and whether the head commit reproduces the A/B. Bounded, well-tested change overall — no protobuf/ignition/model-core/v4 changes; the predicates, hysteresis, O(1) clean_slots and remove_nodes atomicity check out.
Final review
Recommendation: Changes Requested
The core write-side profitability gate, top-down pool coverage, O(1) clean_slots accounting, dram_only warm L1 retention/reclamation, compaction-lineage canonicalization, and cascade anchor retention are technically sound — no core correctness, safety, or concurrency blockers were found after direct verification at head d74e810. Changes are requested before merge because (1) this PR is stacked on unmerged #674 and its headline A/B numbers were measured on an earlier combined dev commit (09400ad8) where two of three models had zero gated spills (conflating #674's byte reduction with this gate) and without reporting the mandatory verification/helios-lifecycle/check.py gate, and (2) the new user-visible Prometheus metrics, StoreOutcome::Unprofitable contract, and prefill_saved_ns == 0 fail-open / cold-restart recovery semantics are missing from docs/api.md and docs/prefix-cache-offload.md.
Merge Risk
Level: Medium
- Modifies core prefix-cache spill, eviction, cascade, and publication paths across
selene(store.rs,composite.rs,disk_store.rs,memory.rs,shared/index.rs,pool/{cascade,local,store}.rs) andhelios(scheduler.rs,scheduler/sharing.rs,server/runtime.rs,server/metrics.rs), with high test coverage and debug invariant checks (assert_clean_slots_invariant, batch-removal atomicity, end-to-end composite/cascade unit tests). - Zero Protobuf, Ignition, model-core, CUDA graph contract, or on-disk v4 format changes;
prefill_saved_ns == 0fails open to unconditional spilling, bounding blast radius for unpriced paths and disk-recovered caches. - Stacked on #674 (the combined diff against
maincarries ~2.9k lines ofselene-manager/srcand sharedheliosedits from #674), so rebasing ontomainafter #674 lands and re-running verification at the final commit is required before merge.
Walkthrough
- Pricing & trait surface (
selene/src/store.rs:261-293, 396-399, 454-467, 496-550): AddsPublishedCheckpoint::prefill_saved_ns,StoreOutcome::Unprofitable,StoreStats::spill_skipped_unprofitable[_bytes]: [u64; 2],PoolSpillPolicywith 5% hysteresis (materially_differs_from),HostStore::compacted,TierStore::{set_pool_spill_policy, spill_eligible_pool, persisted_in_pool, record_is_packed}, and pure predicatesstandalone_spill_profitable(reusingworth_restore, fail-open whenprefill_saved_ns == 0) andfork_dedup_profitable. - Local NVMe gate, warm L1 retention & fork promotion (
selene/src/composite.rs:447-907, 984-1036, 1856-1966, 2115-2144, 2299-2313,selene/src/disk_store.rs:2186-2264, 2612-2669, 3482-3664,selene/src/shared/index.rs:521-575): Unprofitable checkpoints stay in L1 DRAM (dram_only) with uncharged disk-index metadata entries, are excluded from disk parent selection so durable children never depend on them, reclaim blocking shadows in batch viaIndex::remove_nodesunder disk pressure, and promote to durable NVMe oncefork_dedup_profitabletriggers across distinct canonicalized descendant branches. - Pool coverage,
O(1)clean_slots& cascade safety (selene/src/memory.rs:341-444, 769-856, 961-1056, 1137-1194, 1243-1528, 1612-1710, 1754-1878, 3694-3705,selene/src/pool/cascade.rs:131-200, 286-381, 434-558,selene/src/pool/local.rs:35-39, 131-150,selene/src/pool/store.rs:199-258, 603-610): Maintains cached top-downPoolCoverage { eligible, covered_pages, has_row_ancestor }andreclaimable_clean_slotsinMemoryStore(with matching top-down evaluation inDiskStore), forwardsTierStorepolicy/status hooks throughTiers, skips unprofitable interior checkpoints on homogeneous cascades, and preserves chain-starting ancestors for profitable rowless records and raw/packed representation boundaries. - Helios prefill pricing, compaction lineage & metrics (
helios/src/server/runtime.rs:2917-2975,helios/src/scheduler.rs:683, 1996,helios/src/scheduler/sharing.rs:12, 46-156,helios/src/server/metrics.rs:529-539, 632-637, 872-885, 922-933): Publishesprefill_saved_nsfromestimate_prefill_delta_ns(c, 0, c, ...)with cold EMA fallback, forwards boundedcompacted_ancestorsviaHostStore::compacted, handlesStoreOutcome::Unprofitableby unpinning without deferral, and exportsflare_host_cache_spill_skipped_unprofitable[_bytes]_total{tier="nvme"|"pool"}plusreason="unprofitable"onflare_host_cache_store_reasons_total.
Pre-merge Checks
- [PASS] Security / malicious screen: No suspicious patterns, secret exposure, or prompt-injection directives found in code or PR text.
- [WARN] Charter & value fit: Model-agnostic, flag-free, and squarely aligned with the Selene host-cache goal, but the A/B evidence is from an older combined commit (
09400ad8) where 2 of 3 models show 0 gated spills and new metric/outcome docs are missing. - [WARN] Related / duplicate / conflict check: Additive with no competing proposal, but stacked on unmerged #674 (must rebase onto
mainafter #674 lands; shareshelios/src/cache.rs,runtime_core/cache_memory.rs(not opened), anddocs/prefix-cache-offload.mdwith #674's merge-order dependencies). - [WARN] Tests & verification evidence: Strong unit-test coverage with real
MemoryStore/DiskStore/CompositeStore/Cascadefixtures and debug invariant checks, butpython3 verification/helios-lifecycle/check.py(mandatory underdocs/design-review.md:209-251for changes tohelios/src/scheduler.rs,scheduler/sharing.rs, andserver/runtime.rs) and head-commit A/B numbers are not reported.
Blockers
None.
Should Fix
-
Rebase after #674 and refresh head-commit verification and A/B evidence (
PR description,docs/design-review.md:106-115, 209-251):- The served SM120 A/B table was measured on combined dev commit
09400ad8rather than headd74e810, and two of the three rows (GLM-5.3-FlashTP2 andDeepSeek-V4.1-FlashTP4) report0skipped spills while showing NVMe byte reductions (5.10 → 3.79 GBon GLM-5.3) attributable to #674 rather than this gate. Once rebased ontomainafter #674, rerun the A/B against post-#674mainat head (explicitly distinguishing any row where the gate does not fire from the gate's own savings) and label the production fleet table as an offline header replay directly alongside its headline figures. - Because the top commit modifies
helios/src/scheduler.rs,helios/src/scheduler/sharing.rs(eviction/compaction tracking), andhelios/src/server/runtime.rs(publication/pin lifecycle), runpython3 verification/helios-lifecycle/check.pyon head and include the result in the PR's Verification section perdocs/design-review.md:211-215, 234-251.
- The served SM120 A/B table was measured on combined dev commit
-
Document the new Prometheus metrics,
StoreOutcome::Unprofitable, and fail-open recovery semantics (docs/api.md:340-398,docs/prefix-cache-offload.md:685-696, 1454-1465):helios/src/server/metrics.rs:872-885, 922-933addsflare_host_cache_spill_skipped_unprofitable_total{tier},flare_host_cache_spill_skipped_unprofitable_bytes_total{tier}, andflare_host_cache_store_reasons_total{reason="unprofitable"}, none of which appear indocs/api.md:340-398(which documents every otherflare_host_cache_*family). Add them todocs/api.md, clarifying that..._bytes_totalcounts skipped write bytes (packed stored bytes when compressed in L1 DRAM perselene/src/composite.rs:1023-1029, otherwise uncompressed tail+row bytes perdisk_store.rs:3621-3622andmemory.rs:848-850).docs/prefix-cache-offload.md:1462-1465lists onlyPresent,Oversize, andRetryunder Publication outcomes; addUnprofitable(selene/src/store.rs:275) with its terminal unpin-without-deferral semantics (helios/src/server/runtime.rs:2940-2966).- Explicitly document in
docs/prefix-cache-offload.md:685-696(and the PR description) thatprefill_saved_ns == 0intentionally fails open (selene/src/store.rs:528-534) — including for on-disk records recovered after restart (selene/src/disk_store.rs:2306-2320, 2199-2201, preserved due to zero v4 header changes) until Helios republishes the key and backfillsprefill_saved_ns(selene/src/composite.rs:810-825, 7992-8038).
Subtract / Simplify
- Stop forwarding
set_pool_spill_policyintoCompositeStore's flatMemoryStore(selene/src/composite.rs:2473-2476,selene/src/memory.rs:1243-1265, 1299-1305):- In
CompositeStore,self.memoryis flat (flat = true) and never spills to the pool (CompositeStore::set_spillonly callsself.disk.set_spill(enabled)atcomposite.rs:2470-2472, andCompositeStore::spill_eligible_poolonly queriesself.disk.spill_eligible_pool(key)atcomposite.rs:2477-2479). Callingself.memory.set_pool_spill_policy(policy)atcomposite.rs:2475allocates and maintains a fullHashMap<PrefixKey, PoolCoverage>across every L1 DRAM record and runs anO(n)recompute_clean_slots()scan on every>= 5%pool rate update for zero behavioral effect. Delete line 2475 (or guardpool_coverageinMemoryStoreon!self.flat).
- In
- Simplify
CompositeStore::record_is_packedto queryself.diskdirectly (selene/src/composite.rs:2483-2493):CompositeStore'sTierStoreimplementation retires exclusively fromPoolTier::Nvme(self.disk.take_retiring(),self.disk.retirement_predecessor(),self.disk.pin_export_files()), so checkingself.memory.record(&key)beforeself.diskis backwards and unnecessary. Replacing lines 2483-2493 withself.disk.record_is_packed(key)matches the actual NVMe export source and removes 9 lines.
- Deduplicate
estimated_prefill_saved_*inhelios/src/server/runtime.rs:2917-2921vs3276-3297:- Both sites run
scheduler.estimate_prefill_delta_ns(...)with the identicalgained as f64 / prefill_rate.max(1.0)cold fallback. Extract a sharedestimated_prefill_saved_ns(...) -> u64helper (or haveestimated_prefill_saved_secondswrap it) to eliminate the second fallback formula.
- Both sites run
- Deduplicate pool standalone profitability and chain-byte helpers (
selene/src/memory.rs:424-444,selene/src/disk_store.rs:2186-2206,selene/src/composite.rs:572-577):memory_pool_standalone_profitableanddisk_pool_standalone_profitableare identical apart fromMemoryRecord/DiskRecord, and both repeat thesaved_ns == 0 => truecheck already performed bystandalone_spill_profitable(selene/src/store.rs:529-534). Movingstandalone_profitable(&self, bytes: u64, prefill_saved_ns: u64) -> boolontoPoolSpillPolicyremoves both helpers and the redundant zero-checks.CompositeStore::standalone_nvme_bytes(selene/src/composite.rs:572-577) returns(raw_bytes, raw_bytes)(the sameu64twice); returning a singleu64simplifies both the helper and its caller atcomposite.rs:587-592.
- Collapse duplicated
PoolSpillPolicyconstruction (selene/src/pool/store.rs:202-214vs242-258):PooledStore::newandPooledStore::pool_spill_policyrepeat the identicalremote_manager()→Level→rates[2]/rates[3]match. Extracting one free helperpool_spill_policy(remote_manager: bool, rates: &Ranking) -> PoolSpillPolicyremoves the duplicate block.
Nits
docs/prefix-cache-offload.md:698still refers to parked records as "DRAM-only records" right after the new paragraph (lines 692-696) defines records that fail the NVMe gate as RAM-only/DRAM-only records that are not written on shutdown drain (selene/src/composite.rs:2356drainsself.outbound/self.parked, excludingself.dram_only). Clarifying line 698 to "parked DRAM records" avoids conflating the two.- In the PR description, note that
selene-manager/tests/client.rs(not opened) (fixtureprefill_saved_ns: 0updates) anddocs/files are modified in the top commit, and keep the "zeroselene-managerserver changes" claim scoped explicitly to the top commit (since the stacked diff againstmainincludes #674'sselene-manager/srcchanges).
Dropped on verification
- Correctness lens A2 ("NVMe gate drops DRAM→GPU upload charge under DRAM pressure via
memory.fits(chain_slots)"): Verified false.MemoryStore::fits(selene/src/memory.rs:1737-1739) checks static total DRAM capacity (slots + intake_slots <= slot_count), not transient free slots. When!memory.fits(chain_slots),retains_chain(selene/src/composite.rs:285-326) is alwaysfalse, soCompositeStore::lookup(composite.rs:1798-1806) usesself.disk.hit(chain)(disk_store.rs:3793-3806, disk-read-only rate, streamed viaself.disk.fetch). Under transient DRAM pin pressure whenmemory.fits(chain_slots)istrue,composite_ratesISSome((disk_rate, memory_rate)), matching coldCompositeStore::hit— directly pinned bystreamed_composite_write_under_dram_pin_pressure_matches_cold_admission_price(selene/src/composite.rs:8870-8920). - Subtraction lens S1 ("Delete compaction-lineage +
dram_only_descendants~250 lines and replace withNode::children() >= 2"): Verified false / would break the feature. InCompositeStore,self.memoryis flat (flat = true,memory.rs:369, every node haschildren() == 0) andplan_record_excluding(..., Some(&self.dram_only))(composite.rs:1911-1913) deliberately excludesdram_onlyrecords as parents inself.disk.index()so durable disk records never depend on unpersisteddram_onlyancestors. Thusnode.children()is always0for everydram_onlynode in both indexes; replacingdram_only_descendantswithnode.children() >= 2would completely disable fork-dedup promotion, and droppingcompacted_parent/HostStore::compacted/suppressed_fork_voteswould regress linear GPU compactions into false fork promotions (composite.rs:7578-7642, 8211-8265, 8774-8867). - Correctness lens B2 ("
reap_evicted_dram_onlyswallowsremove_uncharged_batcherror and strandsdram_only"): Verified false in practice.remove_uncharged_batch(selene/src/disk_store.rs:3505-3546) pre-validates every precondition ofIndex::remove_nodesand unpinspins() == 1before calling it;dram_onlynodes cannot havechildren() > 0(plan_record_excludingexcludes them) orpins() > 1(CompositeStore::fetchatcomposite.rs:2074-2082only disk-pinsNodeState::Waitingnodes, which requirenode.ready == true). - Correctness lens B1 ("O(n·retries) full-index rescan per blocked capture retry in
reclaimable_uncharged_subtree"): Dropped as low-signal. Each loop iteration inreserve_disk_capture/store_excluding_reclaiming_dram_only(composite.rs:506-566) only continues whenevict_blocking_dram_only_for_diskremoves alldram_onlyshadows blocking a durable disk root (immediately unlocking it for eviction), andreclaimable_uncharged_subtree(disk_store.rs:2612-2669) short-circuits on the first durable child and returns on the first eligible root. - Subtraction lens S6 ("Double counting between
host_store_reasons[6](unprofitable) andspill_skipped_unprofitable[0]"): Verified false.flare_host_cache_store_reasons_total{reason}(helios/src/server/metrics.rs:529-539, 922-933) exhaustively partitions non-QueuedsynchronousStoreOutcomereturns (mirroring howoversizeis counted in bothhost_store_reasonsandhost_dropped), whereasflare_host_cache_spill_skipped_unprofitable_total{tier}counts all skipped spills across tiers, includingCompositeStore's warm L1 DRAM-retained skips that returnQueued/Storedrather thanUnprofitable. - Subtraction lens S5 (dropping
PoolSpillPolicy.level): Dropped the field-deletion part (leveldocuments the priced tier and guarantees a rescan onHostNvme↔RemoteNvmeswitch even if rates are within 5%); kept only deduplicating the identicalPoolSpillPolicyconstruction block inselene/src/pool/store.rs. - Correctness lens A1 (demoted from Major correctness bug to Should Fix documentation): Verified that scan-recovered records start with
prefill_saved_ns == 0and fail open until republished (disk_store.rs:2199-2201, 2306-2320,composite.rs:7992-8038), but changing.ckptheaders would violate the zero v4 format-change constraint andDiskStorehas no scheduler prefill model. Reclassified as a documentation/disclosure requirement under Should Fix #2.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 90.3% -
triage:validation: 9.5% -
triage:design-review: 0.1% -
triage:integration: 0.0% -
triage:partial: 0.0% -
none: 0.0% -
triage:investigate: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.