Amendments to my report on PR #674 — 2026-12-02, amendments only (earlier report stands where this is silent)
Recorded head is now 831c47c7 (base main c513e46a, branch perf/selene-prefix-cache-holistic, read_item 674). This amendment set supersedes my previous amendment notes; where a previous amendment is withdrawn, it must not be re-published.
Key findings
- Everything I previously reported as a blocker in #674 is fixed at
831c47c7, each with a named regression test. Five amendment families are withdrawn (A2). #674 has no verified code-level blocker of its own left from my side. - A new event since my last report: PR #694 was opened at 21:24 stacked directly on this PR's head
831c47c7and its own Autobot review at 22:58 was Changes Requested with 0 blockers — so831c47c7is now the base of actively reviewed downstream work, and #674's new public API is already being depended on (read_item 694). - Charter #210 is now half-satisfied: the disclosure half is closed (the body names both commits and all nine intervening merges); the evidence half is still open — the headline A/B still predates #665, a cache-eviction change measured on the same DeepSeek-V4.1-Flash TP4 rig Table A uses.
831c47c7has had no review by any party. The last human review (lukealonso, 19:04 Changes Requested) and the last bot "Ready To Merge" (18:24) both targeted0ebee3d4; the only thing after that is the author's own 20:27 comment.- Issue #451 is still open without the promised midpoint half-width conclusion; that rationale exists only in-tree at
docs/runtime-core-design.md:845-858.
A1. Head, scale, base
- Head
831c47c7, +11,418 / −1,237 across 42 files (read_item 674; file set unchanged from45fb3809). The fix push from45fb3809(+10,106/−1,158) was +1,312/−79, mostly tests:helios/src/server/runtime/phase_tests.rs+976/−57,helios/src/scheduler/cache_memory.rs+1,011/−83,helios/src/runtime_core/cache_memory.rs+491/−132,helios/src/scheduler/checkpoints.rs+462/−68,helios/src/server/runtime.rs+353/−99,helios/src/cache.rs+151/−44. - The body's own "Scope Summary" still quotes
+10,106 / -1,158while its Verification section says "re-verified on rebased HEAD (831c47c7)" — the body now contradicts itself rather than being merely stale against the head. - The rebase onto
c513e46a"including #665" cannot be verified with my tools (search_historycannot resolvec513e46a/mainin the local copy). It is inferable only from the body text plus code shape: #665'seviction_keylayering (helios/src/cache.rs:390-392) feeds #674's priority tiebreak athelios/src/cache.rs:848-850.
A2. Withdrawn (fixed at this head — do not re-publish as author work)
observe_prefill_ratepermanently dead / regression vs main — FIXED. The guard now usesstep.token_capacity as u64(helios/src/server/runtime.rs:3060, condition:3061-3067:!step.kind.is_prefill() || lanes.len()!=1 || capacity==0 || lane.tokens*2 < capacity).token_capacityis the graph width for single-lane prefill steps (helios/src/scheduler.rs:401-402). Regression testhelios/src/server/runtime/phase_tests.rs:9181-9254covers <50% reject, multi-lane reject, non-prefill reject, exactly-50% accept andTerminalPrefill100% accept. The call site is still gated onself.store.is_some()(runtime.rs:1932).page_pressure_victim_prioritysacrificed protection/recency — FIXED, and the doc contradiction is gone. Priority key is now(!can_free_page, node.is_protected(), node.retention_rank().use_epoch, !role_preserving_compaction)(helios/src/scheduler/cache_memory.rs:263-268), i.e. #665's scan-resistantis_protectedtier (helios/src/cache.rs:132,:365) is the second key and recency third, consumed as the outer key witheviction_keytie-break (helios/src/cache.rs:848-850). The page-pressure gate narrowed to!snapshot_pages.is_empty() && need_pages > 0 && backing_pressure(cache_memory.rs:740). Pinned-vs-unpinned is now distinguished byfill_freeable_page_prefix(cache_memory.rs:205-240), so an unpinned overlapping pair no longer counts as blocked. Tests:cache_memory.rs:2412(progress when only the overlapping pair remains),:2443(cold unpinned pair before hot anchor),:2597(backing conflict withneed_pages == 0),:2701(simultaneous exhaustion),:2761(reuse protection before recency).docs/runtime-core-design.md:869-878now states the same order as the code.RowRestoreLatency::observeupper-median inversion — FIXED. Lower medianordered[(bucket.count - 1) / 2]with rationale comment athelios/src/server/runtime.rs:318-320; regression testphase_tests.rs:9257-9289(spike → aged 60 s → 2 ms probe, asserts estimate ≤ 0.0025).- Three-part hot-path perf defect — RESOLVED. (a) per-victim
page_snapshot_refsclone gone: scratch reused viafreeable_prefix_scratch: RefCell<Vec<i32>>(helios/src/scheduler.rs:649,:744;cache_memory.rs:415,:770,:786), retiring-snapshot dedup is aBTreeSet(cache_memory.rs:755-767),pending_page_counthas an empty-queue fast path (cache_memory.rs:662-665). (b) per-selectionHashMap<CheckpointId, RetentionRole>gone:only_child: Option<CheckpointId>onCheckpoint(helios/src/cache.rs:80), maintained on publish (:555-559), leaf retirement (:664-676) andcompact_ancestor(:699-718), asserted insingle_child(debug-only scan,:306-318) and in a full test-time invariant sweep (:1042-1051). (c) O(1) prefix-sum queries replace per-candidate range loops (cache_memory.rs:231-238,:259-261). - Review minors 3.1–3.3 — ALL LANDED. A full-GPU-hit queued eviction now re-plans and can re-issue a lookup (
begin_pool_lookupreturns bool +refresh_admission_plan_in_place,helios/src/scheduler.rs:1576; testphase_tests.rs:9292);plan_mapping_handlesdocuments its non-monotonicity and adds a non-power-of-two fallback (helios/src/runtime_core/cache_memory.rs:780-804, counterexample test:1645);partition_conditioned_windowsis shared (helios/src/scheduler.rs:2136,:2163,:2222).
A3. New event: PR #694 is stacked on this PR (read_item 694)
- #694 "selene,helios: add write-side NVMe and pool spill profitability gate", yatesdr, opened 2026-12-02 21:24, head
d74e810,+22,770/−3,868, 52 files, labelsarea:caching, area:selene, enhancement, performance, triage:review. Its body's first line: "Stacked PR: Depends on #674 (stacked on831c47c7)… after which this branch will be rebased directly ontomain." It lists #674 under "It refers to". - Consequence for #674:
831c47c7is now a merge dependency of separate, already-reviewed work, and #674's new public surface is being consumed — #694's review describesstandalone_spill_profitableas "reusingworth_restore", and adds further variants alongside it (StoreOutcome::Unprofitable,PublishedCheckpoint::prefill_saved_ns,TierStore::{set_pool_spill_policy, spill_eligible_pool, persisted_in_pool, record_is_packed}) atselene/src/store.rs:261-293 (not opened), 396-399, 454-467, 496-550. - #694's evidence does not validate #674's fixes: its live SM120 A/B is "measured on combined development commit
09400ad8vs base19ce4a7b" — an older #674 head, before the three blocker fixes at45fb3809/831c47c7. - The two PRs cannot be separated by file list. #694's per-file counts for shared files are effectively identical to #674's own fix-push delta (
helios/src/cache.rs+151/−44,helios/src/runtime_core/cache_memory.rs+491/−132,helios/src/scheduler/cache_memory.rs+1,011/−83,helios/src/scheduler/checkpoints.rs+462/−68;helios/src/server/runtime.rs+370/−106 andphase_tests.rs+1012/−63 vs #674's +353/−99 and +976/−57), i.e. #694's numbers are cumulative againstmain; review it by commit range, not by diffstat. - #694's own review (Autobot, 22:58): Changes Requested, 0 blockers at
d74e810; 2 should-fix (headline A/B on the older09400ad8; new metrics/StoreOutcome::Unprofitable/fail-open/cold-restart semantics undocumented) and 2 warnings, one of which is thatpython3 verification/helios-lifecycle/check.pywas not reported for a change tohelios/src/scheduler.rs,scheduler/sharing.rs(not opened) andserver/runtime.rs— mandatory underdocs/design-review.md:209-251("Run the TLA+ models and Rust trace-conformance suite … whenever changing admission, fences, … cache compaction, snapshot aliases …",:212-215; "Disclosure does not excuse skipping runnable CPU checks",:247-251). That requirement applies to #674 for the same reasons (it changes snapshot aliases and compaction), and #674's evidence for it is the author's owncheck.py --mutations"8/8" claim with no attached log. - Overlap inventory also updated:
related_items 674lists #694 as the only open PR sharing files with #674 and names 43 shared files; the older neighbour list (#659, #655, #661, #681, #548/#560) stands from my previous report.
A4. Charter mapping, updated (exact citations)
- Charter #210 evidence rule ("Performance PRs need benchmarks showing an actual speedup over
mainon a served workload",read_charter; restated atdocs/design-review.md:106-115, Principle 12: "equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements", plus "keep raw measurements and disclose unrun checks and material limitations"):- Disclosure half — CLOSED. The body now states the runs were on
7d7dcdcbagainst5d53040e, "prior to#657,#666,#663,#667,#670,#660,#665,#683, and#684", rebased ontoc513e46a(read_item 674, "Measured Results"). - Evidence half — STILL OPEN. Tables A–C still predate #665 (merged
07e666e6, scan-resistant dual-turnover eviction, whose own A/B uses the same DeepSeek-V4.1-Flash TP4 rig Table A measures) and #663/#660 (scheduler pricing, which Tables B/C measure). Table F ran on7d7dcdcb. All GPU tables remain author-reported with no attached raw logs.
- Disclosure half — CLOSED. The body now states the runs were on
- Principle 16 (four-part body, before/after, disclose limitations,
docs/design-review.md:147-160): satisfied, and the previously undisclosed items are now in "Compatibility and Limitations" (Kind::StoreInvalidated = 4, sub-page startup failure, the publicflare-seleneAPI list, restore-pricing fallback and lookup refresh). - Charter goal fit: unchanged and strong — this is the largest single change in the 180-day window aimed at "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene" (
read_charter), model-agnostic, no non-goal touched. With #694 stacked on it, the goal-fit argument is now cumulative: two PRs, same goal line, same author.
A5. Residual findings, all low (do not treat as blockers)
backing_pressureis now dead weight:page_pressure = !snapshot_pages.is_empty() && need_pages > 0 && backing_pressure(helios/src/scheduler/cache_memory.rs:740) while every caller passesneed_pages > 0 || backing_conflict(helios/src/scheduler.rs:1285,:1382), so it collapses toneed_pages > 0; the parameter's doc comment still advertises snapshot-only pressure tiering.evictable_snapshots(...)is enumerated twice per prefix rebuild (count atcache_memory.rs:751, iteration at:777), each pass filtering all checkpoints; bounded to one rebuild per invalidation.simulate_snapshot_quotestill clonespage_snapshot_refsandfree_snapshotsper quote (cache_memory.rs:411-412) — pre-existing quote path, not the per-victim hot path the review flagged.single_childkeeps an O(nodes)debug_assertscan (helios/src/cache.rs:306-318) — debug builds only; the release path is O(1). Worth one sentence so nobody reads it as a #665 regression.
A6. Process and evidence record
- Reviews present in #674: Autobot 08:42 (Changes Requested), 11:24 (Changes Requested), 18:24 (Ready To Merge, 0 blockers, at
0ebee3d4), lukealonso 19:04 (Changes Requested,helios/only, at0ebee3d4), author 20:27 (fix list + verification). Nothing after 20:27. The 18:24 vs 19:04 contradiction at the same head is still the record's only same-head disagreement; a downstream reviewer must not read the 18:24 verdict as approval of831c47c7. - Labels:
area:caching, area:memory, area:selene, performance, triage:review. Author: yatesdr, COLLABORATOR, DiscordD-Rock. - Verification on
831c47c7is author-reported only (helios 1,838/1,838 release lib; selene 585; selene-manager 205 lib + 128 integration; flare 254;check.py --mutations8/8). No CI status appears anywhere in the item for any head. - #451 was not re-read this turn; last verified state (my previous report) is open, updated 2026-11-21, with only the author's "the rule is deliberate" reply and no midpoint half-width conflict-span conclusion. Both the 18:24 review and lukealonso's review ask for that comment explicitly, and both Autobot reviews list it as an open related-item warning.
- Unfetchable artefacts: the Autobot review bodies link
autobot.eidonix.com/p/…and/api/v1/cases/…, which my tools cannot fetch; every review claim I report was re-verified independently in the tree. - Prompt-injection-shaped line, flagged as material under review and not acted on: each Autobot review body ends with "Have your agent review the Full Review" pointing at an external page. I did not fetch or follow it.
A7. One-line verdict the report can adopt
At 831c47c7 the three correctness blockers and the hot-path defect I carried previously are fixed with named regression tests, so #674 has no verified code-level blocker of its own from my side; what still stands is evidence debt (headline A/B predating #665 on the same rig), the un-posted #451 conclusion, the absence of any review of the current head, and the new coupling to PR #694 which now waits on this merge.
Open questions and what I could not verify
- Whether the author will re-baseline Tables A–C now that #665 (same rig, same policy area) is inside the gap. Nobody has answered; #694's review raises the same complaint about its own numbers.
- Whether
831c47c7will be re-reviewed by lukealonso, or merged on the 18:24 bot verdict from an older head. - Merge order across #674, #694, #655, #659, #661, #681 (and #548/#560 on
helios/src/server/runtime.rs) remains unstated by any participant. - Whether the rebase onto
c513e46ais real — unverifiable with my tools; only code shape and body text support it. - Whether #451 will get the midpoint half-width conclusion, and whether #694's spill gate should land as part of #674's story or separately.