Amendments to the #665 case file (report of 2026-12-01, run 2799)
The event is a full rewrite of PR #665: head a7568c2 → squashed c9197427 (tree 597c23c5 atop base 5d53040e = #628), pushed 2026-12-01 22:42. It closes both autobot blockers, all four should-fixes, both subtract items and both nits, and syncs the three design docs. Everything below supersedes the corresponding section of my previous report; sections not listed here (The why, Related work, People, Reach, conflict surface, charter mapping) stand unchanged.
Key findings (amendment deltas)
- Size is 2.6× what I reported, and the docs are now in the diff. 9 files, +698/−47 (was "4 files, +271/−6, ~68 prod LOC, no docs"). Production code:
helios/src/cache.rs+123/−22,helios/src/scheduler.rs+18/−6 → ~103 net prod LOC; the rest is tests plusdocs/core-design.md+29/−12,docs/scheduling-runtime-design.md+6/−2,docs/prefix-cache-offload.md+6/−2 (pr_files). Still no flags, floats,unsafe, model branches or core-format change. - Blocker #1 (non-monotonic aging) is genuinely fixed.
is_protectedis now justnode.reused(helios/src/cache.rs:351-355) and demotion is permanent viademote_expired_reused(cache.rs:360-376), which clearsnode.reusedusing horizons captured from liveready_tail_pages.max(1)/ready_checkpoints.max(1)plus anode_horizon * 2snapshot-bound escape (cache.rs:363, :370-372), called from bothretire_leaf(:615-626) andcompact_ancestor(:643-675). So blocker #1 and should-fix #1 (compaction never aged) are both closed, with testssticky_demotion_does_not_reprotect_after_fresh_publications(helios/src/cache/tests.rs:1472),compaction_pressure_ages_out_stale_protected_entry_without_page_evictions(cache/tests.rs:1570) andpolicy_regime_shift_ages_out_reused_old_large_documents_for_newer_chat_workload(helios/src/scheduler/policy_tests.rs:6430). - Blocker #2 is only half closed: the mutation run happened, but no mutant touches the new code.
python3 check.py --mutationsis now reported (39/39 KILLED: 26 Rust + 13 TLA+, alongside 10/10 models, 8/8 observed = 621,390 transitions, 12/12 aux). Butverification/helios-lifecycle/check.pycontains exactly twohelios/src/cache.rsmutation targets —:511(compaction last-use fence) and:515-519(protected_eviction_tokens→ 0) — and a grep foris_protected|demote_expired_reused|eviction_key|touch_hit|ready_tail_pagesincheck.pyreturns nothing; the five new cache tests are also absent from theaux_testslist (check.py:323-336). The 39/39 therefore evidences the old guards, not the new protection/aging state machine thatdocs/design-review.md:226-228asks to be mutation-covered ("when adding or changing safety guards"). This remains my top residual finding. - New residual: the
Existing-publication path still promotes unconditionally, contradicting the new doc sentence.publish_with_retentioncallstouch_hitfor any duplicate publication (helios/src/cache.rs:481-491, hit at:485), whereasfinish_inboundnow gates theCreatedpath onticket.fresh_admission && !ticket.waiters.is_empty()(helios/src/scheduler.rs:1884-1891). The docs the PR just synced promise the guarded behaviour in absolute terms —docs/prefix-cache-offload.md:298-303"host-store restores promote a newly created GPU checkpoint into the reuse-protected tier only when a live fresh-admission waiter is attached, while preempted re-admissions and waiterless restores refresh demand recency only";docs/core-design.md:1544-1546likewise. The new tests cover only theCreatedpath (helios/src/scheduler/tests.rs:3258asserts ontake_publications()[0]), so the asymmetry is untested. Arguable on the merits (the prefix genuinely resides and is being reused) but the documented invariant is false as written. - New residual:
docs/prefix-cache-offload.mdnow contradicts itself. The same file states two-tier ordering at:298-303(verified) and still states the old flat order at:374-376: "GPU eviction ranks eligible checkpoints by logical-request demand epoch, retention role, consumed-token count, and identity." Introduced by the doc sync; it is what an operator reading the eviction section meets last. - My old key finding 3 (docs not updated) is gone; my key finding 2 is downgraded from "unstated" to "stated".
docs/core-design.md:1536-1600now specifies the two-tier order, the one-third inheritance rule, dual-turnover aging with the2xsnapshot-bound branch, host-restore promotion, and that completion refresh "without promoting probationary entries into the reuse-protected tier" (:1557-1559). Caveat: no PR numbers were added to the docs (grep '#(568|298|416)' docs/→ no matches), so the author's reply wording "synced … (citing#568,#298,#416)" refers to the PR body, not the docs. Matches repo style; not a defect. - The autobot review in the thread is stale against head. It was written at 21:10 on
a7568c2; every citation in it (cache.rs:349-361,:732,:84-86,scheduler.rs:1727-1740,:1884-1887) has moved, and its blocker #1 no longer reproduces. Anyone reading the thread should treat the review as a record of the previous head.
Verified-fixed checklist (was blocker / should-fix / subtract / nit in the 21:10 review)
- Sticky demotion +
ready_tail_pagesmaintenance:cache.rs:260-279(count/uncount),:887-893(advance_completed),:669-671(compaction heir transfer), plus a#[cfg(test)]full-scan assert instats()(cache.rs:913-932). No drift path found. - Compaction turnover: counted with the
2x ready_checkpointsceiling (cache.rs:643-675); testscache/tests.rs:1570,policy_tests.rs:6430. - Preemption/cancelled-waiter gate on restore:
Ticket.fresh_admissionadded (scheduler.rs:629), set at:1678, :1698, OR'ed on waiter join (:1709), applied at:1886-1890; cancelled inbound waiters retired (scheduler.rs:3076-3080); testsscheduler/tests.rs:3233(fresh admission protects restored checkpoint over a cold scan) and:3258(cancelled/preempted re-admission stays probationary). - Doc sync:
core-design.md:1536-1600,scheduling-runtime-design.md:643-654,prefix-cache-offload.md:298-303(with the:374-376contradiction above). - BFS dedup-key collision fixed:
Fixture::key()now sorts byeviction_keyand appends reused + elapsed page/node turnover per node (helios/src/cache/lifecycle_tests.rs:499-526), leavingprojection()untouched (:316-353) soCacheOwnership.tla's tuple still matches;Fixture::forkcopies the new fields (:76-98). - Subtractions and nit: dead
existing.accessedwrite removed (theExistingbranch is nowcache.rs:481-491), redundantreclaimable_if_pinned_matches_evict_with_mixed_*test deleted (five cache tests remain atcache/tests.rs:1315, 1347, 1396, 1472, 1569), blank-line nit gone.
Process, evidence and engagement (updated)
- Thread now has three entries:
flare-autobotintake (2026-12-01 20:48), the Changes Requested review ona7568c2(21:10; 2 blockers, 4 should-fix, 2 subtract, 2 nits), and the author's reply closing each item withfile:line(22:42). Still zero human reviews, zero comments, zero reactions — the eviction question has had heavy maintainer attention (#298, #416, #460, #567, #568 in three weeks), so silence remains absence of engagement rather than disinterest. - Evidence now reported (author, rustc 1.94.1, 0 warnings):
helios cache:: 49/138,scheduler:: 411incl.6/6 policy_*and3/3 finish_inbound_*,flare --lib 238,flare-cli 239,test_core_boundary.py (not opened) 4,check.py --mutations --jobs 4with the counts above. No CI run is visible onc9197427; no Kani, which is correctly out of scope perdocs/design-review.md:221-225. - A/B table unchanged: still
n = 2cold-salted trials per arm on a single boot with--prefix-cache-memory 0, and now explicitly scoped as measured ona7568c2cbefore the hardening, with a queueing-stall explanation added for the −86.3% Long-MT p50 TTFT and a stated limit that the host-restore path is not measured. So my critique narrows to: n=2, one boot, no variance/CI, host-restore promotion still has no live evidence — but it now has two unit tests on theCreatedpath only (finding 4). - Conflict state unchanged: single squashed commit on
5d53040e; #549 (open, heade65d158, autobot-recommended Ready To Merge) still edits the sameCheckpointfields block (cache.rs:84-86) andFixture::fork(cache/lifecycle_tests.rs:76-98) andFixture::key()— guaranteed textual conflict whichever merges second, no semantic conflict (pins vs victim order), per #549's own review. - Low-severity note carried forward:
demote_expired_reusedwalks every node including!readyones (cache.rs:364-375), so a checkpoint that inherited protection while unready can be demoted at the first retirement after a long prefill with no reuse opportunity in between. No test covers unready inheritance + aging.
Updated file map (head c9197427)
helios/src/cache.rs — struct fields :81-86, counters :216-223, is_protected :351-355, demote_expired_reused :360-376, eviction_key :378-380, mark_reused :382-389, touch_hit :399-404, Existing publication + inheritance :481-495, retirement/aging :615-675, victim selection :736-764. helios/src/scheduler.rs — Ticket :621-630, admission gate :1678-1710, restore gate :1884-1891, completion touch :3109-3122. Tests — cache/tests.rs:1315/1347/1396/1472/1569, cache/lifecycle_tests.rs:499-526, scheduler/tests.rs:3233/3258, scheduler/policy_tests.rs:6430. Docs — core-design.md:1536-1600, scheduling-runtime-design.md:643-654, prefix-cache-offload.md:298-303 + :374-376.
Open questions / could not verify
- Whether the
Existing-path promotion (finding 4) is intended, or an oversight left when theCreatedpath gained its gate; and whether #549's geometry would expose it. - Whether any future
--mutationsrun will coveris_protected/demote_expired_reused; as written, the safety-guard requirement indocs/design-review.md:226-228is unmet for the code this PR adds. - Which of
:298-303and:374-376inprefix-cache-offload.mdwas meant to survive the sync. - No CI status is visible for
c9197427in this environment, so "tests pass" rests on the author's transcript only. - The A/B remains un-rerun on the hardened head; how the rewritten aging rule (one extra
2xsnapshot-bound demotion) changes the reported hit rates is unknown.