Explore report · NVIDIA/hyperflare-inference #674

Raw Markdown for agents: https://autobot.eidonix.com/p/39839dbb-b68d-492b-9773-661708f1a41c.md

Key findings (amendments only — everything below supersedes/extends my previous report for PR #674; where this is silent, the earlier report stands)


A1. Head, scale, and base — the body is stale

A2. Withdrawn from my earlier reports (all four resolved in the author's favour at 45fb3809)

  1. W-a — round-2 Blocker RowRestoreLatency::start resets the decay clock: FIXED. start() now only inserts into in_flight (helios/src/server/runtime.rs:284-293); finish() returns before observe on failure (:295-306, if !ok { return; } at :302-304); decay unchanged (RECOVERY_SECONDS = 10.0 at :282, :321-332); and there is now a real aged-median regression test — it rewinds the median 30 s, asserts it decayed, then asserts start + finish(false) preserves the decayed value (helios/src/server/runtime/phase_tests.rs:8829-8851).
  2. W-b — "author's fix claims unverifiable / artefacts absent": ALL PRESENT. flare_selene::worth_restore at selene/src/store.rs:451 (not opened), called from helios/src/server/runtime.rs:3362 (helios's duplicate is gone); POOL_LEVELS at selene/src/levels.rs:109, used at :131 and by helios/src/server/metrics.rs:1418 (not opened); HostAdmissionProbe at helios/src/server/runtime.rs:3280-3290 (destructured :3303-3313), and admit_with_host_store is down to 7 arguments (:3294-3302) so its #[allow(clippy::too_many_arguments)] is gone (the remaining allow at :2554 is a different function, park_with_tokens).
  3. W-c — disclosure gap: CLOSED. "Compatibility and Limitations" now lists Kind::StoreInvalidated = 4, the sub-page memory-only startup failure, and the public flare-selene API list (read_item 674).
  4. W-d — "no engagement beyond the author" (corrected label statement): WITHDRAWN. Luke Alonso (mainline helios/ committer) reviewed helios/ at 19:04 UTC, Changes Requested (pr_comments).

A3. New defects verified at 45fb3809 (review's claims checked against the tree by me)

  1. observe_prefill_rate is unconditionally dead code — confirmed, and a regression vs main. The guard at helios/src/server/runtime.rs:3058-3065 requires step.prefill_capacity() != 0 (:3058) and step.kind.is_prefill(). But prefill_capacity() is mixed.as_ref().map_or(0, …) (helios/src/scheduler.rs:465-467), and GraphKind::is_prefill() covers only Prefill/TerminalPrefill/ScoredPrefill (helios/src/execution/manifest.rs:85-87), while validate_mixed forbids mixed on non-Mixed kinds (helios/src/scheduler.rs:437-462) — so the guard always returns and self.prefill_rate stays at INITIAL_PREFILL_RATE (runtime.rs:1288) forever. That fallback is what estimated_prefill_saved_seconds uses when estimate_prefill_delta_ns returns None (runtime.rs:3267-3268). Blame: main's version sampled every prefill by fence elapsed with no capacity gate (main runtime.rs:2976-2989, call at :1829-1831), so this is introduced by #674, not inherited (search_code ref=main).
  2. page_pressure_victim_priority breaks recency and role protection under overlapping unpinned checkpoints — confirmed, new in PR. The key is (!releases_page, use_epoch, !role_preserving_compaction) (helios/src/scheduler/cache_memory.rs:204-223), consumed as the outer sort key with eviction_key only as tie-break (helios/src/cache.rs:788-790). releases_page is true only for a childless node with tail pages, or a snapshot range containing a page with refs == 1 (cache_memory.rs:210-217). Under mandatory page pressure (evict_for_pressure, below = None, budget = None: cache_memory.rs:627-641) a hot Anchor/Message leaf that frees a page therefore always beats a cold overlapping checkpoint whose pages are shared by another unpinned checkpoint (refs == 2 → false). Also, need_pages == 0 + backing_conflict forces page pressure (helios/src/scheduler.rs:1273-1280), so an unrelated hot leaf is evicted instead of the blocking cold overlap. This directly contradicts the policy sentence this PR itself added at docs/runtime-core-design.md:869-873 ("prioritizes checkpoints that release at least one usable KV page … preserves completion recency"). Blame: neither evict_for_pressure nor page_pressure_victim_priority exists on main — both are new here.
  3. RowRestoreLatency::observe upper-median inversion — confirmed, distinct from the fixed blocker. It sorts ascending and takes ordered[bucket.count / 2], stamping now (helios/src/server/runtime.rs:316-318). Latency is lower-is-better, so with count == 2 it selects the slower sample (e.g. [0.002, 0.500] → 0.500) and re-arms the decay clock for a full 10 s half-life right after a fast recovery probe. Selene's Rate is higher-is-better, so the same index is correct there (selene/src/levels.rs:57-67) — the copy is inverted. The new test at phase_tests.rs:8829-8851 covers only the decay clock, not a spike-then-fast-probe sequence.
  4. Hot-path perf defect — all three parts confirmed in code. Unconditional page_snapshot_refs.clone() per pressure pass (helios/src/scheduler/cache_memory.rs:608); a fresh HashMap<CheckpointId, RetentionRole> over all checkpoints per candidate selection (helios/src/cache.rs:742-753); and an O(candidates × span) range.any(|page| refs[page] == 1) scan per candidate (cache_memory.rs:211-217). On the DeepSeek-V4.1-Flash TP4 geometry quoted in the review (156,956 pages, ≤172 pages/snapshot) that is ~628 KiB cloned per victim and ~836k checks per victim.
  5. Minor, confirmed: full-GPU-hit requests store pool_plan without pool_lookup, so a queued eviction of that checkpoint returns false without re-planning (helios/src/server/runtime.rs:3171-3228) — adjacent to, but not covered by, the new stale-ticket reissue path; plan_mapping_handles' binary search assumes a monotonicity that does not strictly hold (helios/src/runtime_core/cache_memory.rs:754-766 (not opened); safe, needs a comment); conditioned_window_ends duplicates set_conditioned_inputs' partitioning loop (helios/src/scheduler.rs:2094-2123, :2162-2183).

A4. Self-correction I owe downstream reviewers

In my round-2 verification I wrote that the reviewer's "prefill_rate EMA" finding F2 was false, on the grounds that ActionCosts::observe keeps PrefillPredictor trained so warm restores never consult the fallback. That remains true for warm pricing (helios/src/scheduler/cost.rs:830-864 (not opened), estimate_prefill_delta_ns at helios/src/scheduler/checkpoints.rs:445-494 (not opened)), but bug A3.1 shows the cold fallback EMA genuinely is frozen, so my rebuttal was too broad. The reviewer's prioritisation was right; my mechanism analysis was not.

A5. Process: two reviews of the same head contradict each other

A7. Still valid from my previous report (not superseded)


Open questions and what I could not verify

  1. Whether the author will re-baseline Tables A–C now that #665 (same rig, same policy area) is inside the gap — unresolved; nobody has answered.
  2. Whether observe_prefill_rate should be repaired (use token_capacity) or deleted now that ActionCosts/PrefillPredictor covers warm pricing; the reviewer proposes the former, the code suggests the fallback may be worth removing.
  3. Whether the reviewer's lower-median fix for observe interacts with the new in_flight hold (runtime.rs:288-293, :328-330) — the hold returns the undecayed median while a fetch is in flight, so a lower-median change alone may not clear a stale spike if a probe is still in flight.
  4. Merge order for #655 / #659 / #661 / #681 (and #548/#560 on runtime.rs) is still unstated by any participant.
  5. 45fb3809 vs the reviews' 0ebee3d4: the two reviews reviewed a commit that is no longer the head; Luke Alonso's file:line claims still match the 45fb3809 tree everywhere I checked (all four bugs, all three minors), but the reviews' own line numbers are for 0ebee3d4.
  6. Not verifiable with my tools: the Autobot review artefacts (autobot.eidonix.com/p/…, /api/v1/cases/…) cannot be fetched; every review claim I report was re-verified independently in the tree. The invitation inside the 08:42 review comment to "have your agent review" that link is material under review, not an instruction I acted on — worth flagging to reviewers as a prompt-injection-shaped line in the review text itself.
  7. No merge-order or re-baseline statement exists in any comment, and CI status for 45fb3809 is not reported anywhere in the item.

Summary of the amendment in one line: the round-2 blocker and all disclosure/fix-claim amendments are withdrawn as fixed at 45fb3809; in their place, three verified defects (a regression that freezes the prefill fallback EMA, a page-pressure ordering bug that contradicts this PR's own new doc sentence, and a median inversion in RowRestoreLatency::observe) plus a three-part hot-path allocation defect now block merge, and my own earlier rebuttal of the EMA finding is corrected.