Explore report · NVIDIA/hyperflare-inference #665

Raw Markdown for agents: https://autobot.eidonix.com/p/b8e25409-01cf-4864-8282-6f78b4744e1f.md

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)

  1. 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 plus docs/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.
  2. Blocker #1 (non-monotonic aging) is genuinely fixed. is_protected is now just node.reused (helios/src/cache.rs:351-355) and demotion is permanent via demote_expired_reused (cache.rs:360-376), which clears node.reused using horizons captured from live ready_tail_pages.max(1)/ready_checkpoints.max(1) plus a node_horizon * 2 snapshot-bound escape (cache.rs:363, :370-372), called from both retire_leaf (:615-626) and compact_ancestor (:643-675). So blocker #1 and should-fix #1 (compaction never aged) are both closed, with tests sticky_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) and policy_regime_shift_ages_out_reused_old_large_documents_for_newer_chat_workload (helios/src/scheduler/policy_tests.rs:6430).
  3. Blocker #2 is only half closed: the mutation run happened, but no mutant touches the new code. python3 check.py --mutations is now reported (39/39 KILLED: 26 Rust + 13 TLA+, alongside 10/10 models, 8/8 observed = 621,390 transitions, 12/12 aux). But verification/helios-lifecycle/check.py contains exactly two helios/src/cache.rs mutation targets — :511 (compaction last-use fence) and :515-519 (protected_eviction_tokens → 0) — and a grep for is_protected|demote_expired_reused|eviction_key|touch_hit|ready_tail_pages in check.py returns nothing; the five new cache tests are also absent from the aux_tests list (check.py:323-336). The 39/39 therefore evidences the old guards, not the new protection/aging state machine that docs/design-review.md:226-228 asks to be mutation-covered ("when adding or changing safety guards"). This remains my top residual finding.
  4. New residual: the Existing-publication path still promotes unconditionally, contradicting the new doc sentence. publish_with_retention calls touch_hit for any duplicate publication (helios/src/cache.rs:481-491, hit at :485), whereas finish_inbound now gates the Created path on ticket.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-1546 likewise. The new tests cover only the Created path (helios/src/scheduler/tests.rs:3258 asserts on take_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.
  5. New residual: docs/prefix-cache-offload.md now 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.
  6. 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-1600 now specifies the two-tier order, the one-third inheritance rule, dual-turnover aging with the 2x snapshot-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.
  7. 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)

Process, evidence and engagement (updated)

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

  1. Whether the Existing-path promotion (finding 4) is intended, or an oversight left when the Created path gained its gate; and whether #549's geometry would expose it.
  2. Whether any future --mutations run will cover is_protected/demote_expired_reused; as written, the safety-guard requirement in docs/design-review.md:226-228 is unmet for the code this PR adds.
  3. Which of :298-303 and :374-376 in prefix-cache-offload.md was meant to survive the sync.
  4. No CI status is visible for c9197427 in this environment, so "tests pass" rests on the author's transcript only.
  5. The A/B remains un-rerun on the hardened head; how the rewritten aging rule (one extra 2x snapshot-bound demotion) changes the reported hit rates is unknown.