#1 [high] Change: what PR #665 does and its size
PR #665 (open, ready for review, opened & last updated 2026-12-01, base main, head a7568c2). Author FujitsuPolycom. Labels: area:caching, performance. No reviews, no comments, no CI checks.
Files (4, +271/-6, all in helios/src):
- cache.rs +64/-4
- cache/tests.rs +192/-0 (4 new tests)
- cache/lifecycle_tests.rs +6/-1
- scheduler.rs +9/-1
What it does, plainly: GPU prefix-checkpoint eviction previously ordered victims only by (RetentionRank{use_epoch, role, consumed_tokens}, id) — i.e. pure recency-ish LRU (cache.rs:90-96 retention_rank, cache.rs:732 min_by_key). Adds a 1-bit per-checkpoint "reused" protection flag plus a turnover-based aging scheme, and sorts protected entries after unprotected ones in the victim key:
- New Checkpoint fields: reused, reused_at_evicted_pages, reused_at_evicted_nodes (cache.rs:84-86).
- New PrefixCheckpointCache counters evicted_pages, evicted_checkpoints (cache.rs:218-221), incremented only in retire_leaf for ready nodes (cache.rs:601-609).
is_protected(cache.rs:346-361): false if !reused; otherwise demotes when BOTH page_turnover >= tail_pages.max(1) AND node_turnover >= ready_checkpoints.max(1) since the node's last hit.eviction_key(cache.rs:363-365) → (bool is_protected, RetentionRank, id); used by eviction_candidate_within_budget min_by_key (cache.rs:732) and by the lifecycle test fixture projection (lifecycle_tests.rs:499-502).touch_hit(cache.rs:384-389) = touch + mark_reused; called on: duplicate publication PublishResult::Existing (cache.rs:471), fresh admission hits in RequestScheduler::admit_planned_with_checkpoint_accounting viafresh_admission = accounting.is_none()(scheduler.rs:1727, 1734-1739), and successful host restore in finish_inbound when PublishResult::Created (scheduler.rs:1884-1887).- Inheritance (cache.rs:478-481): a new checkpoint is born
reusediff parent is_protected AND parent_len.saturating_mul(2) >= tail_tokens (parent is >= 1/3 of the new endpoint). - Completion
touchin RequestScheduler::retire (scheduler.rs:3107-3118) and preemption re-admissions stay plaintouch(refresh recency only, no protection), which is the point: completion recency no longer confers protection.
Eviction filter order preserved: below, immediate, protected_token_budget filters still run first (cache.rs:712-731), then the new key. eviction_candidates(), reclaimable_if_pinned, retirement fences unchanged.
#2 [high] Related work: #298/#416 are the origin of the completion-recency rule #665 partially reverses
#298 (merged 2026-11-15, voipmonitor) is where the completion-recency rule that #665 targets came from. Its second cause/fix row: "Recency came from admission time. A request that ran for minutes finished ranked below everything admitted meanwhile, so its conversation was evicted first, just before the client continued." Fix: successful completion refreshes the published terminal and its direct parent; third commit narrowed the refresh to terminal+parent (not the ancestor chain). #416 (merged 2026-11-23, jcartu) extended that: RequestScheduler::retire queues reused keys, take_reused() → treating completion as a host store "reuse" event too.
Connection to #665: #665 does NOT undo the completion touch — RequestScheduler::retire still calls cache.touch (scheduler.rs:3107-3118) and does so through plain touch, so the completion refresh still moves a checkpoint to MRU within the unprotected tier, but it no longer promotes the node into the protected tier (only touch_hit does, cache.rs:384-389). So #665 partially reverses the protection consequence of #298/#416 while keeping recency. #298 was motivated by 200k–580k-token Kimi K3.1 agent sessions on a 16-GPU host; #665's motivating workload is DeepSeek-V4.1-Flash on 4x RTX PRO 6000 TP4. Docs text in docs/core-design.md:1540-1558 still describes the #298 completion-refresh policy as the whole story and does not mention reuse protection (unchanged by #665 — see separate entry).
#3 [high] Related work: #567 closed in favour of #568; #665 modifies #568's ordering invariant
#567 "Preserve resident prefixes on ordinary completion of message requests" (avifenesh, opened 2026-11-28, CLOSED same day unmerged) attacked the identical problem — a final decode snapshot competing with cached inputs, i.e. which checkpoint should survive GPU pressure — by disabling eviction for requests with message_boundaries. lukealonso closed it "in favor of #568, which addresses the same prefix-eviction problem using an age-discounted marginal-value victim budget inside PrefixCheckpointCache rather than disabling all eviction". His stated criterion for a solution: keep RetentionRank demand-recency ordering, let Anchor/Message and mandatory reclamation reap older checkpoints freely by LRU, allow zero-cost role-preserving compaction, and bound protected victim destruction by leaf_tokens/(1+age) <= gain_tokens.
Relevance to #665: #665 is the third successive attempt at this same eviction tradeoff in ~4 days (#567 closed → #568 merged 2026-11-28 → #665 opened 2026-12-01) and it modifies #568's ordering: #568's description states "Victim ordering remains strictly (node.retention_rank(), node.id)" and docs/core-design.md:1565 still says Anchor/Message captures "reclaim lower-rank victims strictly by demand-recency order". #665 inserts is_protected as the FIRST sort key, so a protected (reused) lower-rank victim is now kept ahead of an unprotected higher-rank one. That is a deliberate, documented-in-DRM change to the invariant #568's review certified, and #665's description does not mention #568 or that it changes #568's ordering guarantee.
#4 [high] Related work: #568 added the budgeted victim filter #665 now re-orders
#568 "Bound optional Endpoint checkpoint eviction by age-discounted marginal gain" (lukealonso, COLLABORATOR, merged 2026-11-28, +1051/-44, 12 files) is the direct predecessor patch in helios/src/cache.rs (5deacda9 per search_history on helios/src/cache.rs). It added to helios/src/cache.rs (+56/-4):
protected_eviction_tokens(node, rank)(now cache.rs:684-704) andeviction_candidate_within_budget(below, immediate, protected_token_budget)(now cache.rs:706-734, witheviction_candidatedelegating with None at :736-743).- The
below/immediate/protected_token_budgetfilters that #665 keeps in front of its new key. - Its own stated invariant: "Victim ordering remains strictly
(node.retention_rank(), node.id)" and "Recent large prefixes are therefore preserved against small terminal deltas while older anchors decay and remain freely reclaimable by newer requests".
#665's single-line change at cache.rs:732 (min_by_key: (node.retention_rank(), node.id) → self.eviction_key(node) = (is_protected, retention_rank, id)) is exactly the line #568 said must stay strictly retention-rank. All of #568's budget arithmetic (protected_eviction_tokens, remaining_budget in quote_snapshots) is untouched, so budgeted victims are still counted against leaf_tokens/(1+age) but the order in which they are offered now puts unreused nodes first.
Also relevant: #568 shipped 5 end-to-end workload policy tests in helios/src/scheduler/policy_tests.rs (reverse-order 1.5K document revisits keeping >=7/8 anchors; regime shift aging out 4/4 stale documents; a 256-token reasoning reply reclaiming an older 128-token anchor). #665's diff does not touch policy_tests.rs, and its description reports only unit tests, so whether those #568 policy workloads still pass under the new first key is not shown in the description. Its evidence line claims scheduler:: 408 (4 ign) passed, which per the module list would include policy_tests if those live under scheduler::.
Citations: #568 description (victim ordering sentence), helios/src/cache.rs:684-743, docs/core-design.md:1561-1583.
#5 [high] Change: design docs (core-design.md) still describe the old ordering; not updated
Docs that describe the eviction/recency policy and are NOT updated by #665 (the PR touches only 4 files, all under helios/src):
- docs/core-design.md:1538-1583 "Demand recency / retention role" section. Lines 1540-1559 spell out the exact
touchpolicy #665 changes (each successful admission gets a demand epoch; "Cache reuse and promotion touch only the selected checkpoint's snapshot"; completion refreshes terminal + direct parent; preemption carries the admission epoch without refreshing). Lines 1561-1583 spell out victim selection: removable = unpinned leaf or single-child ancestor; "OptionalAnchorandMessagecaptures reclaim lower-rank victims strictly by demand-recency order"; Endpoint captures use "the same demand-recency order while bounding cumulative protected victim destruction by their marginal token gain"; age-discountedleaf_tokens/(1+age). There is no mention of a reuse-protection tier,is_protected, or turnover aging anywhere in docs/ (search for retention_rank/RetentionRank in docs/ returns only core-design.md:1576). - The charter's Code Review Standards require checking "interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target named in the docs" and PRs' four-part descriptions; the charter does not itself mandate doc updates, but #298, #416, #567, and #568 all edited docs/(core-design|prefix-cache-offload|scheduling-runtime-design|api).md as part of their diffs — i.e. the local norm in this area is to update the design docs alongside a policy change.
- verification/helios-lifecycle/ TLA+ models contain no
RetentionRankreference (search in verification/ → no matches), so no formal model encodes the ordering #665 changes; the PR claims 10/10 models, 8/8 trace suites, 12/12 checks pass, which is consistent with the models not covering victim order.
#6 [high] Change: description-vs-diff check, and what the description leaves out
Verified against the head (a7568c2) rather than the description:
- Description says "Call
touch_hitonly on fresh admission hits (accounting.is_none()) ... duplicate publications ... and host restores". Matches: scheduler.rs:1727let fresh_admission = accounting.is_none();+ :1734-1739 branch; cache.rs:471 in the PublishResult::Existing path; scheduler.rs:1884-1887 in finish_inbound gated onmatches!(result, PublishResult::Created { .. })(so the Existing-restore path gets touch_hit only via cache.rs:471, not twice). fresh_admission = accounting.is_none()is true for BOTH genuinely-new admissions and re-admissions the runtime performs without carryingCheckpointAccounting(runtime.rs:3085-3098admit_with_checkpoint_accountingpassesaccounting: Option, None for a first-time request at runtime.rs:1643/:3866/:4061 and Some(clone) for preemption readmission at runtime.rs:1518/1534/1551/3174). The preemption/readmission path therefore carries Some(accounting) and correctly gets plaintouch— matching the description's "preemption re-admissions refresh recency only".- Retry inside admit_with_host_store (runtime.rs:3169 fallback after a Capacity failure, and :3147 no-hit path) passes
accounting.clone(), i.e. the same carried accounting, so retries do not re-mark reuse unless accounting was None at entry. - Description says the ordering stays
(self.is_protected(node), node.retention_rank(), node.id)after below/immediate/protected_token_budget filters — matches cache.rs:712-732. - Description does NOT say: (a)
is_protectedreadsself.tail_pages(the cached page count of the whole cache, cache.rs:224 field, maintained by count/uncount) as the page-turnover threshold, andself.ready_checkpointsas the node threshold, so the aging horizon is dynamic and shrinks/grows with cache occupancy rather than being per-node; (b)evicted_pages/evicted_checkpointsare only incremented fornode.readyleaves inretire_leaf(cache.rs:604-609) —compact_ancestor(cache.rs:626-657) never increments them, so repeatedly compacting single-child ancestors (a common pressure path) ages protection not at all; (c)mark_reusedusesself.nodes.get_mut(&id).unwrap()(cache.rs:370) — an unchecked unwrap on a publictouch_hit; touch() validates first so it is safe today, but it is the onlyunwrapadded on a &mut path. - Description says "no core-format changes" — true: only in-memory struct fields; no wire/Protobuf/serialization of Checkpoint (Checkpoint is a runtime struct; no serde derive in the diff).
#7 [high] Process: ready for review, zero CI, zero comments; mutation run not reported
- Process: PR #665 is open, "ready for review", opened and last updated 2026-12-01 (same day). No reviews, no comments, no reactions (pr_comments → "No comments"). Orientation packet: "CI on the head commit: no checks" — i.e. zero CI signal at intake. The repo's CI for this path is
.github/workflows/helios-lifecycle.yml(pull_request onhelios/**andverification/helios-lifecycle/**, runspython3 verification/helios-lifecycle/check.py --tlc-jar ...thencargo kani --manifest-path helios/Cargo.toml --features runtime-core --lib) and.github/workflows/native-serving.yml(cargo test on helios with--features runtime-core,server). The PR claims the TLA+ run locally ("verification/helios-lifecycle/check.py --jobs 4: 10/10 models, 8/8 trace suites, 621,390 transitions, 222,817 CacheOwnership.tla, 12/12 checks") — that matches the shape of the mandatory Layer-3 requirement in docs/design-review.md:209-230 ("Run the TLA+ models and Rust trace-conformance suite whenever changing ... cache compaction, snapshot aliases ..."). - docs/design-review.md:226-228 also requires
check.py --mutations/ cargo-mutants "when adding or changing safety guards". #665 adds a safety guard (is_protecteddemotion gate). The description reports onlycheck.py --jobs 4(no--mutations) and does not mention Kani. Compare #568, which ran and reportedcheck.py --mutations(all 12 TLA+ and 20 Rust mutations, including its "unbounded endpoint leaf eviction" guard at verification/helios-lifecycle/check.py:515-519) and #582, which ran--mutations --jobs 8. - Note the existing mutation target at check.py:515-519 sits on the very line #665 builds on: it replaces
self.protected_eviction_tokens(node, rank)with0to assert "short terminal endpoint must not evict a larger protected anchor leaf". #665 re-orders the min_by_key on the same filter chain; whether that mutation still detects is not reported. - The PR is small and self-contained (4 files, all under helios/src; no docs, no verification/, no CI workflow edits), so it needs no new approval path beyond normal review.
#8 [high] Claims and evidence: what is claimed, what backs it, what is missing
Claims in the description and what backs each:
- "Rust release (rustc 1.94.1, 0 warnings): helios cache:: 137, scheduler:: 408 (4 ign), flare --lib 238 (4 ign), flare-cli 239 (3 ign) passed." — Author-reported only; no CI on the head commit. Notably the PR adds 4 tests to cache/tests.rs and does not report a before/after count, and it reports no
server::orruntime-core,serversuite (native-serving.yml runs--features runtime-core,server), noflare-selenesuite (which #416/#298 reported). The newfinish_inboundcall is in scheduler.rs but the restore path lives inserver::runtime— phase tests there are not listed as run. - "TLA+ check.py --jobs 4: 10/10 models, 8/8 trace suites, 12/12 checks" — Author-reported; no
--mutationsdespite docs/design-review.md:226-228 (see process entry), and no Kani run reported. - The A/B table (scan-thrash 24x8K vs 8x214K: hit 19.76%→37.31% mean, 1.89x; evicted 168/215→132/217; saved tok/s +96.4%. Long-MT 4x127K 4-turn vs 12x8K: 28.62%→49.71% mean, 1.74x; evicted 17/24→12/24; TTFT p50 23,886.7/22,228.7 → 2,876.8/3,459.5 ms, -86.3%; saved tok/s +75.8%; Bg 727→752). Method stated: single-boot A/B vs
5d53040eon 4x RTX PRO 6000, DeepSeek-V4.1-Flash TP4,--scheduler-policy balanced --mtp-draft-tokens 7 ... --kv-cache-limit memory --memory-limit 83GiB --prefix-cache-memory 0, 2,606,848 KV tokens / 20,366 pages, 0 errors/preemptions, 2 cold-salted trials/arm. So: 2 trials per arm, single boot, n=2 — the description itself does not report variance/CI, and "cold-salted" is not defined in the text. The TTFT -86.3% figure on Long-MT is an order-of-magnitude jump that the hit-rate change (1.74x) does not by itself explain; no per-request distribution or p99 is given. - "Serving sanity: HTTP 200, 37*41=1517, 204/204 finite logprobs, 0 failed requests on both boots" — smoke test only.
- "Limits: No effect when KV capacity fits idle sessions without eviction or active scans exceed KV capacity. Measured on SM120 TP4 (128-tok pages, --prefix-cache-memory 0); Selene restore touch_hit is verified by unit tests and TLA+, not live offload." — Honest scoping; note
--prefix-cache-memory 0means the host/DRAM tier is off in both arms, so the host-restoretouch_hitin finish_inbound (scheduler.rs:1886) has NO live evidence in this PR at all, only the unit-test claim (and I found no new unit test that drives finish_inbound's touch_hit specifically — the 4 new tests in cache/tests.rs are cache-level only). - "68 net prod LOC: cache.rs +64/-4, scheduler.rs +9/-1" — matches pr_files; the remaining ~193 added lines are tests (cache/tests.rs +192, lifecycle_tests.rs +6/-1). "No CLI flags, floats, unsafe, model branches, or core-format changes" — consistent with the diff (all integer counters, no new config).
- Charter angle on evidence: charter line "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)" — satisfied in shape (served workload, A/B vs a named main commit). Charter "Keep the runtime small and model-agnostic" — no per-model branch and zero knobs, so it lines up. Charter "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene" (goal) — the change only affects GPU-tier eviction; host/Selene retention is untouched, and the PR says so.
#10 [high] Reach: #549 (open) conflicts textually in the same struct literal; scheduler.rs neighbours
Files touched and who else is in them right now:
- helios/src/cache/lifecycle_tests.rs and helios/src/cache/tests.rs: #549 (open, WynnD, "Report KV pages held by active requests") edits the same two files and adds
direct_request_pins/request_pinstoCheckpoint(pr/549 fork at lifecycle_tests.rs:64-81) plusrequest_pinned_pagesto PrefixCheckpointCache (:95). #665 adds three otherCheckpointfields and twoPrefixCheckpointCachecounters, and both edit the sameFixture::forkliteral (lifecycle_tests.rs:64-98 at pr/665 vs :64-96 at pr/549) and the samekey()sort (lifecycle_tests.rs:499-502). → guaranteed textual conflict in the struct literal, whichever merges second. No semantic conflict: #549's counters do not change victim choice and #665 does not touch pins. - helios/src/cache.rs: #549 same-file; #568 and #460 already merged (see related-work entries).
- helios/src/scheduler.rs: #549, #655, #661, #663, #654, #548, #560, #621, #571 all touch it; none of them touch
admit_planned_with_checkpoint_accountingorfinish_inboundexcept #661/#582-family (checkpoint accounting). #655 (yatesdr, open, same day) addssnapshot_discoveryto RequestScheduler and clears it inretire(:3067-3069 per its review) — #665 editsretire's neighbours but not that block; low conflict risk. - Prior commits on default branch since #665 branched (5d53040): none touch its files (orientation packet), so the PR is currently rebase-clean, but it is 1 day old.
Items from the orientation packet judged not related: #619/#613/#612/#588/#664/#659/#662/#660/#661/#654/#663/#655 (scheduler pricing, export, offload, compression, metrics — different policy layer); #460 (counters) is related only as the source of the
ready_checkpoints/tail_pagescounters thatis_protectedreads.
#12 [high] Why: no issue asks for this; motivation is author-measured, and the policy area has churned 5x in 3 weeks
- Nothing in the tracker asks for scan-resistant / frequency-aware prefix eviction. Searches for "scan thrash", "reuse frequency protection", "TinyLFU", "LRU victim order", "idle session eviction", "multi-turn hit rate evicted" return only #665 itself (or unrelated items). So the "why" rests on the author's own measurement, not on a linked issue or user report. The PR links no issue and cites no reproduction from a user.
- The nearest prior user-facing pain that motivated eviction policy work: #298 (voipmonitor; "a request that ran for minutes finished ranked below everything admitted meanwhile, so its conversation was evicted first, just before the client continued" — 16-GPU RTX PRO 6000 Kimi K3.1, 200k-580k-token agent contexts); #255/#327 (host-tier hit-rate complaints, different tier); #567 (avifenesh: "final decode snapshot competes with cached inputs"); #600 (multi-turn/tool transcript cache misses on a fork image). None of these is a scan/thrash report, and none is referenced by #665.
- How widely wanted: the eviction-policy question has been touched five times in three weeks (#298 2026-11-15, #416 2026-11-23, #460 2026-11-23, #568 2026-11-28 merged after closing #567, #665 2026-12-01). That is sustained maintainer/contributor attention on the same 40 lines of cache.rs, but it is maintainer-driven design, not a backlog item.
- The description's own framing ("Naive 1-bit frequency caches fail in two regimes: linear multi-turn frontiers T_k have zero direct hits until turn k+1, and unbounded protection livelocks on workload phase shifts") is a design-rationale statement with no linked experiment; the two failure regimes are asserted, not demonstrated in the PR body.
#13 [high] Project fit: aligns with evidence/zero-knob rules; misses design-review mutation and doc-update expectations
Facts, both aligning and not: Aligns:
- Charter "How We Work → Bring real evidence. Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)": #665 gives a served-workload A/B against a named main commit (5d53040e) with an explicit settings line. Shape matches.
- "Keep the runtime small and model-agnostic ... no per-model special cases or flags": zero new flags, no model branches, integer-only arithmetic, ~68 prod LOC in helios/src. Matches the "smallest footprint in shared code" principle explicitly.
- "PR descriptions: Expect four parts: why / what / claimed result / evidence": present and in order.
- Goal "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene": untouched; #665 is GPU-tier only, and says so.
- docs/design-review.md: "Budget physical memory across the lifecycle" and "eviction ... must not branch on model or hardware" (design-review.md:50) — satisfied. Does not align / needs care:
- docs/design-review.md:209-230 makes Layer-3 formal conformance and (for new safety guards)
--mutationsmandatory and says "Disclosure does not excuse skipping runnable CPU checks ... Leaving an applicable crate test, simulator sweep, TLA+ conformance run, or Kani proof unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable" (:247-251). #665 reports a TLA+ run but no--mutationsand no Kani. This is a process gap against the repo's own written standard, not a judgement about the code. - docs/design-review.md:195-208 requires scheduling/cost-policy changes be evaluated against
scripts/scheduling_sim/; a victim-ordering change in the checkpoint cache is arguably in that family (the simulator has no checkpoint-eviction model per #568/#655's own notes, so the answer may be "N/A" — but the PR does not say so, whereas #568 and #655 both explicitly state the simulator does not model checkpoint eviction). - The design doc that specifies the changed behaviour (docs/core-design.md:1538-1583) is not updated, which the charter does not mandate but every comparable merged PR in this area did (#298, #416, #567, #568, #582, #655 all edited docs/*).
#14 [high] Research summary
Case file for PR #665 (helios: scan-resistant dual-turnover prefix cache eviction) is gathered across all nine angles, with 13 scratchpad entries carrying file:line and PR citations.
What it is. A ~68-production-LOC change in helios/src/cache.rs (+64/−4) and helios/src/scheduler.rs (+9/−1) plus ~198 lines of tests. It adds a 1-bit reused flag and two turnover counters per checkpoint, a touch_hit that marks reuse, inheritance of protection from a parent (when the parent is ≥1/3 of the new endpoint), and — the operative one-line change — replaces min_by_key((retention_rank, id)) with (is_protected, retention_rank, id) at cache.rs:732.
Most important findings for a reader.
- This changes an invariant a merged PR certified three days earlier: #568 states "Victim ordering remains strictly
(node.retention_rank(), node.id)", and docs/core-design.md:1565 still says Anchor/Message captures "reclaim lower-rank victims strictly by demand-recency order". #665 inserts protection as the first key and updates no docs. - It is the third attempt in four days at the same eviction tradeoff: #567 (closed same day in favour of #568 by lukealonso) → #568 (merged) → #665, which modifies #568.
- It partially reverses the effect of #298/#416: completion still calls plain
touch(recency within tier) but no longer confers protection — exactly the #298 "conversation evicted just before the client continued" fix, now scoped to that. - Undeclared mechanics: page-turnover threshold is the whole cache's
tail_pagesandready_checkpoints(dynamic horizon);compact_ancestornever increments the turnover counters, so ancestor compaction does not age protection;mark_reuseduses an uncheckedunwrap. - Evidence gaps: 2 trials/arm single-boot, no CI on head, no
--mutationsor Kani run despite docs/design-review.md:226-251 making them mandatory for a new safety guard, noserver::/runtime-core,serversuite reported, and the host-restoretouch_hithas no live evidence at all (both arms ran--prefix-cache-memory 0). - No issue or user report motivates scan resistance — searches return only #665 itself; motivation is author-measured.
- #549 (open) edits the same
Checkpointstruct literal and the sameeviction_keysort inlifecycle_tests.rs— a certain textual conflict.
Zero reviews, comments or reactions, and no autobot intake, so the PR has drawn no community engagement yet.
#17 [high] Report skeleton: which entry answers which angle, and what I could not verify
Where each angle lives in the scratchpad, so the report can be assembled without re-reading the PR:
- The change: entries 1 (what it does, files, LOC, call sites), 6 (description vs diff, and the three undeclared mechanics), 5 (docs still describe the old order).
- The why: entry 12 (no linked issue; five eviction-policy PRs in three weeks; rationale asserted not shown).
- Related work: entries 2 (#298/#416 origin of the completion touch, partially reversed), 3 (#567→#568→#665 sequence and the invariant change), 4 (#568's filter chain and its "strictly retention_rank" statement).
- Recent activity: entry 14.
- People: entry 9.
- Community: entry 15.
- Project fit: entry 13 (charter alignment on evidence and zero-knob design; docs/design-review.md:226-251 mutation/Kani expectation, :195-208 simulator note, missing doc update).
- Claims and evidence: entry 8 (test counts, TLA+ run, A/B table with n=2, serving sanity, stated limits, and which claims have no live backing).
- Reach: entries 10 (#549 textual conflict in lifecycle_tests.rs
Checkpointliteral +key()sort; scheduler.rs neighbours) and 11 (affects mandatory and optional-capture eviction; no knobs, no metrics, no docs; host tier untouched except restoretouch_hit). - Process: entry 7 (ready for review, zero CI, no reviews,
--mutationsnot reported).
Gaps a report writer should state plainly rather than paper over:
- I did not read
helios/src/scheduler/policy_tests.rsto check whether #568's five end-to-end workload policy tests (reverse-order document revisits keeping ≥7/8 anchors, regime shift aging out 4/4 stale documents, etc.) still hold under the new first key; the PR reportsscheduler::408 passed but does not single them out. - I found no new test that exercises
finish_inbound'stouch_hit(scheduler.rs:1886) specifically; the four added tests in cache/tests.rs are cache-level only (scan-vs-reused victim, inheritance threshold, dual-turnover demotion, reclaimable_if_pinned parity). - I did not verify the A/B numbers independently (no access to the measurement hardware); they are author-reported, n=2 trials/arm, single boot.
- Search for user-facing scan/thrash reports returned nothing in the local copy (open items plus 30 days closed); older items were not exhaustively searched.
#9 [medium] People: author FujitsuPolycom's history and who owns cache.rs
Author is FujitsuPolycom (GitHub association CONTRIBUTOR; Discord "Dooner"). Last 180 days: 15 merged, 11 closed, 3 open. Recent work is concentrated in helios scheduling/checkpoint policy and export paths:
- #582 helios: avoid splitting prefill on zero-budget checkpoint anchors (merged 2026-11-29, +2264/-20, helios/src/scheduler/{checkpoints,checkpoint_lifecycle_tests}.rs + docs + check.py). That PR is the one that introduced/latched
CheckpointAccounting::zero_budget_anchorand theclear_reservations()preservation that #665 now keys on: #665'sfresh_admission = accounting.is_none()gate is about exactly theCheckpointAccountingobject #582 reshaped. - #540 Retain bounded timing-refresh and acceptance credit across idle (merged); #497 Reduce disk offload restore latency (merged, docs/prefix-cache-offload.md §2.12); #586/#587 heliopause export; #649 1-hop closed-ring RoCE prefill proxy (open); #660 budget interior conversation-anchor splits (open, same day); #661 smaller prefill chunks under active age-priced streams (open, same day, draft).
- Note on process: #582 went through two review rounds with voipmonitor and lukealonso finding two real blockers (duplicate Anchor captures) and a rebase conflict with #613; #661 today is still a draft. So this author ships large scheduler changes but is expected to iterate under review. Who else works here: helios/src commits last 180 days — Luke Alonso (235), Martin Vit (52), yatesdr (48). The eviction policy in cache.rs specifically has been authored by yatesdr (#460 counters, #549 request pages) and lukealonso (#568 budgeted eviction, #595 TLA+ blindspot). voipmonitor wrote #298 (the completion-recency rule being altered). yatesdr and lukealonso are the de-facto reviewers of this file (yatesdr reviewed #416 and #549; lukealonso reviewed/closed #567 and authored #568). Community engagement on #665 so far: none — no comments, no reviews, no reactions; the case file has not even been opened by flare-autobot (no "A case file has been opened for 665" comment), unlike #549/#655/#567/#568 which all got automated intake + autobot reviews.
#11 [medium] Reach: affects both mandatory and optional-capture eviction; no operator surface, no metrics
Who/what this affects, verified from the code paths:
- Every deployment that runs the GPU prefix cache under pressure:
evict(cache.rs:759-775, used by RequestScheduler::ensure_resources scheduler.rs:1272 and refill_reservations :1356) and the budgeted optional-capture patheviction_candidate_within_budget(scheduler/cache_memory.rs:365 in quote_snapshots loop, :1125 in tests) both now pick victims by the new key. So the change reaches mandatory reclamation for admission AND optional Endpoint/Anchor capture quoting — i.e. it can change which Anchors survive, not just which leaves are dropped. - Configuration/defaults: no new flags or defaults (consistent with charter "No magic defaults"). The policy is entirely implicit — an operator cannot disable, tune, or observe it: no metric, no log, no CLI. Compare #549 which exposed gauges; #665 exposes nothing, so a deployment that regresses has no diagnostic surface.
- Compatibility: no wire/Protobuf/core-format change; existing exported cores load. In-memory only.
- Documentation: none updated. docs/core-design.md:1538-1583 (the section that specifies this exact policy), docs/scheduling-runtime-design.md, docs/prefix-cache-offload.md (host tier, unaffected) all stay as-is. An operator reading the design doc after this lands would be told victim order is "strictly demand-recency".
- Host/Selene tier: unaffected by the GPU ordering, but scheduler.rs:1884-1887 now calls touch_hit on a successful host restore, which raises that checkpoint's GPU protection — a cross-tier side effect the description states but does not measure.
- Observability gap for the deciding reader:
CacheStats(cache.rs:880-905) has no field for the reused/protected state or the turnover counters, so "how many victims were protected at this eviction" is not reported anywhere.
#15 [medium] Recent activity: cache.rs history (#568/#460/#298) and quiet file vs busy scheduler.rs
Recent activity in the area, and how #665 sits in it:
- Base commit is 5d53040e ("helios: gate offload Copy Engine batches during peer-copy graphs", #628, yatesdr, 2026-12-01). Orientation packet: no commits on the default branch since 5d53040 touch any of #665's four files, so the PR is currently rebase-clean.
- Last 8 commits touching helios/src (≤60 days) are almost all same-day 2026-11-30/12-01 and none is in cache.rs: a3c80e19 (#657 mDNS advertising, Luke Alonso), 5d53040e (#628), e8a3a7c7 (#656 conditional speculative acceptance, Luke Alonso), cd1daa3e (#638, flare-autobot), a4720050 (#625 eos::map_host, flare-autobot), e85019b9 (#645 prefill scheduling overhaul, Luke Alonso), bf7562ae (#646, Luke Alonso), f2ca2c41 (#647, Luke Alonso). i.e. the recent churn is scheduler/cost/offload, not eviction; #665 lands in a comparatively quiet file.
- Commit history of helios/src/cache.rs (newest first): a7568c2c (#665), 5deacda9 (#568), 6d6fe0c6 (#460), 29192ef7 (#298), 617ef929, 585159c9, be744283, 28f0833b, acbf2858, 230c5b40, 2c99983e, 2a8ec907, e1be7511, 2b12d68f, 92ef66ff. So the three most recent substantive edits to this file are #568 (budgeted eviction), #460 (counters), #298 (recency) — #665 builds on #460's counters (
ready_checkpoints,tail_pages) and #568's filter chain, and reverses #298's protection effect (not its recency). - Nearby open work in helios/src/scheduler.rs, none overlapping the two hunks #665 edits: #655 (snapshot cost retention, yatesdr, same day), #661 (draft, author's own), #663/#654/#662 (age pricing), #548/#560 (metrics), #621, #571. #655 does clear
snapshot_discoveryinretire, adjacent to but not overlapping #665'srefresh_recencyblock.
#16 [medium] Community: no comments, reviews, reactions or autobot intake; discussion is on Discord
- Comments: none. Reviews: none. Reactions: none.
pr_commentsreturns "No comments" — the PR is ~0-1 day old at intake (opened and last updated 2026-12-01). - No automated intake either: contrast #549, #655, #567, #568, which each have a "A case file has been opened for N" comment plus one or more flare-autobot reviews. #665 has neither, so nothing has looked at it in public yet.
- Discussion channel stated in the PR: "Discord: Dooner" (the author's handle). Any design discussion that shaped the policy is therefore off-GitHub and not reviewable from the PR.
- Interest level implied by history: the eviction-policy question itself has drawn heavy maintainer attention (#298, #416, #460, #567, #568 in 3 weeks, with yatesdr and lukealonso reviewing), so a cold reception on this specific PR is absence of engagement, not evidence of disinterest.
- No linked issues, no "closes", no cross-references from other items pointing at #665.