Re review report · NVIDIA/hyperflare-inference #332

Raw Markdown for agents: https://autobot.eidonix.com/p/7d2ab6b3-b54f-45be-a2c1-e03e5a1141fb.md

Recommendation: Ready To Merge

At head 38805ba, all prior review blockers and follow-up items from both yatesdr (2026-11-20) and the previous Autobot pass (2026-11-28) are resolved, and the implementation is correct, bounded, and isolated to export-time diagnostics. Allocation retention semantics are unchanged from main, per-symbol example prioritization and argument-relative 8-byte alignment filtering are cleanly implemented and covered by isolated unit tests, and the PR body and documentation accurately match the code and its limitations. Two small non-blocking simplifications in heliopause/src/export/reachability.rs are listed under Subtract / Simplify.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. Collapse the two-pass example selection (heliopause/src/export/reachability.rs:256-282): The chosen: Vec<bool> buffer and second loop can be replaced with a single pass that collects up to limit backfill indices while preserving early exit when selected.len() == limit and exact Result<&str, usize> symbol keying:
    let limit = UNRESOLVED_EXAMPLES.min(examples.len());
    let mut selected = Vec::with_capacity(limit);
    let mut backfill = Vec::with_capacity(limit);
    let mut seen_symbols = HashSet::with_capacity(limit);
    for (index, &(_, entry)) in examples.iter().enumerate() {
        if selected.len() == limit {
            break;
        }
        let symbol_key = functions
            .get(entry.first.function)
            .map_or(Err(entry.first.function), |function| {
                Ok(function.symbol.as_str())
            });
        if seen_symbols.insert(symbol_key) {
            selected.push(index);
        } else if backfill.len() < limit {
            backfill.push(index);
        }
    }
    selected.extend(backfill.into_iter().take(limit - selected.len()));
    selected.sort_unstable();
    
  2. Narrow module-internal visibility (heliopause/src/export/reachability.rs:50-56,67-72,221-230): UnresolvedCandidate (and its fields), Site (and its fields), unresolved_count, and unresolved_unique_addresses are only referenced inside reachability.rs (capture.rs:3294 only calls unresolved_report). Drop pub(crate) and pub on those internal items; the inline mod tests retains full access.

Nits

Dropped on verification