Simplicity scratchpad · NVIDIA/hyperflare-inference #332

Raw Markdown for agents: https://autobot.eidonix.com/p/d8b6f715-fd50-405a-a851-0b43ef06f3e7.md

#1 [high] D1 should-fix: duplicate emptiness guard in capture.rs print block

PR #332, head c3cc87e.

capture.rs:3137-3141:

if reach.unresolved_count() > 0 {
    for line in reach.unresolved_report(&output.index.ranks[0].functions) {
        eprintln!("export: rank {}: {line}", request.rank);
    }
}

reachability.rs:205-210 in unresolved_report: let occurrences = self.unresolved_count(); if occurrences == 0 { return lines; }. occurrences == 0 iff self.unresolved is empty, so the caller's guard duplicates the callee's condition and changes nothing.

Smaller version: drop the if and keep the for. Then unresolved_count (reachability.rs:190-195, pub(crate)) has no caller outside reachability.rs (grep: only capture.rs:3137 and reachability.rs:207) and can be a private fn.

Also: the two-line print block has no test (see maintainer note in review 2026-11-19 item 6, and no test mentions capture_rank printing); that is coverage, not my lens.

#2 [high] D2 should-fix: inactive-range rule computed twice (candidate + scan)

PR #332, head c3cc87e. reachability.rs.

candidate (131-145) computes the inactive lookup and returns Ok(true) for a value in an inactive range; scan (259-271) repeats the same lookup:

let inactive = self.inactive.partition_point(|&(start, _)| start <= pointer);
let in_free_block = inactive > 0 && pointer < self.inactive[inactive - 1].1;
if (!self.candidate(pointer)? || in_free_block) && let Some(misses) = misses.as_deref_mut() {
    misses.push((base + offset, pointer));
}

Reported condition is !candidate || in_free_block = A || !L where A = value in an inactive range, L = value inside a recorded interval (inactive ranges lie inside segments, so A implies L for candidate). The same predicate is "in an inactive range, or in a gap".

Smaller version with no new type: make candidate return whether the value must be reported —

This is the same code as maintainer item 2 in the 2026-11-20 review ("One rule, one place", reachability.rs:262-265), still open at this head.

#3 [high] D3 nit: site data retained for all ~2.6k addresses, report prints 10

PR #332, head c3cc87e. reachability.rs:57-61 (UnresolvedEntry), 170-186 (blob insert), 222-238 (report), test 751-770.

The report prints at most UNRESOLVED_EXAMPLES (=10) distinct addresses (line 224 examples.iter().take(UNRESOLVED_EXAMPLES)), but blob stores a full UnresolvedCandidate — including graph: String cloned with site.graph.to_owned() and four usizes — for every distinct address. The author's export printed 2,646 and 2,637 distinct addresses per rank, so ~2.6k site records (and heap Strings) per rank are written and never read.

Smaller version: first: Option<UnresolvedCandidate>, filled only while the map holds fewer than UNRESOLVED_EXAMPLES addresses:

struct UnresolvedEntry { first: Option<UnresolvedCandidate>, order: usize, occurrences: usize }
// in blob(), per miss:
if let Some(entry) = self.unresolved.get_mut(&address) { entry.occurrences += 1; continue; }
let first = (self.unresolved.len() < UNRESOLVED_EXAMPLES).then_some(UnresolvedCandidate { ... });
self.unresolved.insert(address, UnresolvedEntry { first, order: self.unresolved.len(), occurrences: 1 });

(computing first before .entry/get_mut avoids borrowing self.unresolved twice; the get_mut first also stops cloning site.graph for repeats, which the current or_insert_with closure never runs but the order computation does not avoid). Report then does for (address, entry) in &examples { let Some(candidate) = &entry.first else { continue }; ... }.

order must stay unless print order may become nondeterministic (HashMap iteration); the alternative that also deletes order and the sort at 222-223 is a bounded Vec<(u64, UnresolvedCandidate)> of examples plus the map for counts — two containers, so I recommend the Option, which keeps one map as the maintainer asked (2026-11-19 review, item 4).

Related test issue: unresolved_examples_are_capped_while_occurrences_are_counted (751) asserts no capping at all; line 767 asserts reach.unresolved[&address].order == index, pinning the bookkeeping field rather than behaviour. Print order is already proven by unresolved_report_bounds_examples_and_counts_hidden_occurrences (867: lines[1] ends with 0x3058). Suggested: drop line 767 and rename the test (e.g. distinct_addresses_are_counted_once_with_their_offset).

#8 [high] Research summary

Reviewed PR #332 (head c3cc87e, 2 files, +434/−30) through the simplicity lens, reading each changed function in heliopause/src/export/reachability.rs and the print block in capture.rs in context, against the charter, AGENTS.md (contribution scope, focused validation), docs/design-review.md and docs/verification.md.

Findings (all recorded in the scratchpad with citation, line and the smaller version):

No blocking simplicity problems: the new state is one map as the maintainer asked, and no option, flag or parallel path was added.

#9 [high] Lens D summary: findings index, rules cited, limits

PR #332 "Report unresolved kernel argument address candidates during export", head c3cc87e, base main, 2 files (+434/−30): heliopause/src/export/capture.rs, heliopause/src/export/reachability.rs. Reviews: yatesdr requested changes three times (2026-11-18, 11-19, 11-20); one author reply 2026-11-19 with export numbers; flare-autobot case file opened 2026-11-25. No CI checks on the head commit.

Lens D (simplicity) findings, by severity — detail in notes D1-D7:

Nothing blocking in this lens: the change adds no option, flag, fallback branch or parallel path; it works through the existing Reachability maps and the existing progress/eprintln output, and it does not touch the retention decision (reference() is still called only for a live interval hit). Tests were added for the new behaviour (report, cap, ordering, inactive boundaries, non-retention at :929-966).

Overlap with other lenses (do not re-report): maintainer item 1 from 2026-11-20 (report only 8-byte-aligned offsets; scan still steps data.windows(8) one byte at a time, reachability.rs:259) and item 3 (a test for the straddling-window case) are correctness findings for another reviewer; item 4 commit-message disagreements and item 5 sign-off are bookkeeping. AGENTS.md:176-181 and docs/verification.md:23 are the rules I cite for the test-duplication points; AGENTS.md:170-175 ("Reject unsupported abstractions and churn") for the redundant accessors and visibility. files: no per-model/per-flag concern; docs/design-review.md principle 1 ("as simple as possible") applies.

Not done / limits: I did not compile or run cargo test (no shell tool in this review), so all counts come from reading the code; the D3 memory figure (≈2.6k records per rank) comes from the author's own reported distinct-address counts, not from a measurement of mine.

#11 [high] R2 D1 should-fix: capture.rs:3219 guard repeats unresolved_report's zero check

Round 2 (head 1ac7073d, "fix: report aligned unresolved kernel argument addresses during export").

heliopause/src/export/capture.rs:3219-3223

    if reach.unresolved_count() > 0 {
        for line in reach.unresolved_report(&output.index.ranks[0].functions) {
            eprintln!("export: rank {}: {line}", request.rank);
        }
    }

heliopause/src/export/reachability.rs:230-235

    pub(crate) fn unresolved_report(&self, functions: &[wire::Function]) -> Vec<String> {
        let mut lines = Vec::new();
        let occurrences = self.unresolved_count();
        if occurrences == 0 {
            return lines;
        }

Every entry has occurrences >= 1 (reachability.rs:209 occurrences: 1), so unresolved_count() == 0 iff self.unresolved is empty, which is exactly when the report returns early. The guard cannot change output; the for over an empty Vec is a no-op. Same finding as round-1 note #1 (line numbers moved from 3137 to 3219 after the rebase); the author's 2026-11-28 comment addresses maintainer items 1-7 but not this.

Fix: delete the if, keep the loop. unresolved_count then has one caller, inside reachability.rs (report line 232), so drop pub(crate) (reachability.rs:215) and make it fn. Verified by search: the only production use of unresolved_count outside reachability.rs is capture.rs:3219.

Why it matters: two copies of one rule; a future "no unresolved candidates" line in the summary would be silently suppressed by the caller. docs/design-review.md:16 (keep it simple) and AGENTS.md:188-193 (no fallback layers / churn) are the rules.

#12 [high] R2 D2 resolved: inactive rule now stated once in candidate()

Round-1 finding #2 (inactive-range rule computed twice) is resolved at head 1ac7073d.

reachability.rs:156-170 candidate does the one inactive lookup (partition_point at 157-159, returns Ok(false)) and the interval lookup (161-168, returns Ok(true) after reference()). reachability.rs:294-304 scan now only negates it:

        for (offset, bytes) in data.windows(8).enumerate() {
            let pointer = u64::from_le_bytes(bytes.try_into().unwrap());
            if pointer >= floor
                && pointer < ceiling
                && !self.candidate(pointer)?
                && let Some(misses) = misses.as_deref_mut()
                && (base + offset).is_multiple_of(8)
            {
                misses.push((base + offset, pointer));
            }
        }

in_free_block no longer exists anywhere in heliopause (search: only is_multiple_of(8) at 300). blob's excluded numeric holes and allocation-content scans pass None for misses (scan_spans 396-412), so they keep old behaviour.

Remaining nit (new, low): the name contradicts the semantics. candidate returns true when the value resolved to a live allocation it retained (doc 153-155), so scan reads as "if not a candidate then report". Rename to retains/resolved, or invert to return reportability (fn unresolved(&mut self, value) -> ExportResult<bool>), so the call site reads if self.retains(pointer)? { continue } or if self.unresolved(pointer)? {...} instead of a double negative. Single call site (298), one-line change.

#13 [high] R2 D3-D9 nits at head: exact lines and smaller versions

Head 1ac7073d, heliopause/src/export/reachability.rs. All three round-1 nits still present; exact current lines recorded.

D3 (retention far beyond output) — reachability.rs:58-62 struct UnresolvedEntry { first: UnresolvedCandidate, order: usize, occurrences: usize }, filled at 195-211 with graph: site.graph.to_owned(). UNRESOLVED_EXAMPLES = 10 (76) and the report takes 10 (249). Author's aligned run: 762 and 832 distinct addresses per rank (PR comment 2026-11-28), so ~800 heap-backing site records per rank are written and never printed. Fix: first: Option<UnresolvedCandidate>, fill only while self.unresolved.len() < UNRESOLVED_EXAMPLES; print order is by order, so the first 10 printed are the first 10 inserted — output identical, hidden-count line still sums occurrences only (264-269). Keep order (HashMap order is not insertion order).

D4 (accessors) — unresolved_unique_addresses (222-224) has one production use (242) and no unique test coverage: assertions at 779, 794, 838, 1068 all repeat reach.unresolved.len() asserted immediately before (772, 793, 835, 1067). Inline self.unresolved.len() at 242 and delete it. unresolved_count (215) becomes module-private once capture.rs:3219 goes (see note 11).

D5 (visibility + unreachable fallback) — UnresolvedCandidate (50) and Site (67) are pub(crate) with pub fields; every use is in reachability.rs (production 201, 343; tests 753, 760). Make them private structs. The function.map_or("unknown", …) fallbacks at 257-258 cannot fire in export: graph rejects an out-of-range index (322-324 kernels.get(node.function as usize).ok_or_else(...)) and capture.rs:3001-3081 pushes exactly one wire::Function per kernel in kernel order into the same functions moved into the index at 3129, so functions[candidate.function] is always in bounds. Fix: let function = &functions[candidate.function];. Test 877/890 passes &[] and asserts kernel unknown (unknown) (898) — i.e. it pins the unreachable state; pass a real one-element list instead.

D6 (tests) — duplicated 300-char summary literal at 865-867 and 894-896 (each future wording change edits two places); unresolved_examples_are_capped_while_occurrences_are_counted (783) never calls unresolved_report and only has 12 all-shown addresses, so it does not test capping (877 does, at 891/901-904). Rename and split. Also 1130-1131 asserts reference retains a name, which is unrelated to this change and covered by numeric_leaves_and_inactive_candidates_do_not_retain (582-583).

D7 (clone per repeated call site) — reachability.rs:172-194: let key = (data.to_vec(), numeric.to_vec()) (pre-existing cost), then Some(misses) => misses.clone() (175) and self.blobs.insert(key, misses.clone()) (191). On main the repeated-blob path returned before scanning; now every repeated call site clones the miss vector (and let order = self.unresolved.len() at 196 runs on hits too). Fix:

if !self.blobs.contains_key(&key) {
    let mut misses = Vec::new();
    for (start, end) in subtract_ranges(0, data.len() as u64, &excluded) {
        self.scan(&data[start as usize..end as usize], start as usize, Some(&mut misses))?;
    }
    self.blobs.insert(key.clone(), misses);
}
for &(offset, address) in &self.blobs[&key] { /* same body */ }

&self.blobs[&key] and &mut self.unresolved are disjoint field borrows, so this compiles. The author's own export shows one address occurring 1286 times, so repeated blobs are the common case.

D8 (new, micro-nit) — reachability.rs:249-250: for &(address, entry) in examples.iter().take(...) already binds address: &u64, which formats with {address:#x}, so let address = *address; on 250 is a dead rebind; delete the line.

D9 (new, micro-nit) — candidate (156-170) returns true for the retained/live case, so scan reads !self.candidate(pointer)? = "if not a candidate, report". The doc comment (153-155) says so but the name is inverted against the report's vocabulary. Rename to retains (then if !self.retains(pointer)? && …) or invert to fn unresolved(&mut self, ..) -> ExportResult<bool>. One call site (298).

#14 [high] R2 review context and verdict for PR #332 head 1ac7073d

Round 2 review of PR #332, head 1ac7073d ("fix: report aligned unresolved kernel argument addresses during export"), base main, 4 files +599/−37 (heliopause/src/export/{capture,reachability}.rs, docs/TODO.txt, docs/runtime-core-design.md). Reviewed through lens D (simplicity) only.

Scope read in full at head:

What changed since round 1 (head c3cc87e → 1ac7073d):

Lens D verdict: one should-fix (D1, note 11) and seven nits (D3-D9, note 13). The change adds no option, flag, fallback layer or parallel path; retention semantics unchanged (reference still only on a live-interval hit); the diagnostic is print-only. No blocking findings in this lens.

Limits: no shell, so nothing was built or run; all claims are read from head source. Whether functions stays in kernel order is an invariant of capture.rs:3001-3081 I verified by reading, not by test.

#16 [high] R2 report: PR #332 head 1ac7073d, lens D

Round-2 final report (entry #16 supersedes #10). Severity-ordered, lens D only.

Verdict: should-fix (1) + nits (7 grouped). No blocking findings in this lens.

SHOULD FIX

  1. capture.rs:3219-3223 — if reach.unresolved_count() > 0 duplicates reachability.rs:232-235's occurrences == 0 early return (every entry has occurrences >= 1, so zero-sum iff empty map). Delete the guard; drop pub(crate) on unresolved_count (reachability.rs:215). Rules: design-review.md:16, AGENTS.md:188-193.

NITS 2. reachability.rs:58-62/195-211 — first: UnresolvedCandidate (heap String + 4 usizes) retained for every distinct address (~800/rank in the author's aligned run) while the report prints 10 (76, 249). Use first: Option<…>, fill only below the cap; output unchanged because order is insertion order. 3. reachability.rs:222-224 — unresolved_unique_addresses has one production use (242) and four test assertions (779, 794, 838, 1068) that each repeat the reach.unresolved.len() asserted one line earlier. Inline it. 4. reachability.rs:50, 67, 257-258 — UnresolvedCandidate/Site are pub(crate) with pub fields but used only in this module; function.map_or("unknown", …) twice cannot fire in export (graph() rejects out-of-range indices at 322-324; capture.rs:3001-3081 pushes one Function per kernel in order, moved into the index at 3129). Use &functions[candidate.function]; test 877/890's &[] currently pins the unreachable "kernel unknown (unknown)" state (898). 5. reachability.rs:247-248 — collects and sorts all ~800 entries to print 10. With item 2, filter to first.is_some() (<=10) before sorting and derive hidden counts by subtraction from occurrences. 6. reachability.rs:783, 865-867, 894-896 — the 300-char summary literal is written twice, and unresolved_examples_are_capped_while_occurrences_are_counted neither calls unresolved_report nor exceeds the cap (877 proves capping). Rename and assert the sentence once. 7. reachability.rs:172-194 — every repeated call site clones the cached miss vector (175, 191) where main returned early; fill the cache in place and iterate &self.blobs[&key] (disjoint field borrows from self.unresolved). 8. reachability.rs:250 dead rebind let address = *address; (the pattern already binds &u64, which formats) and 156-170/298 inverted name candidate (returns true when it retained a live allocation, read as !self.candidate(..) at the report site): rename to retains or invert to unresolved. 9. Duplicated explanation: reachability.rs:45-49 vs the printed sentence 237-239 vs runtime-core-design.md:154-157 vs a second sentence at runtime-core-design.md:339-341; candidate's doc 153-155 restates its own code. Keep the printed line and 154-157. 10. reachability.rs:1130-1131 asserts reference retains a name — unrelated to this change and already covered at 582-583; delete from the boundary test.

Rules cited: docs/design-review.md:16 (keep Helios simple), AGENTS.md:188-193 (no churn/comment expansion/fallbacks), AGENTS.md:194-199 (focused validation), docs/verification.md:22-23 (no tests restating implementation).

Limits: no shell, nothing built or run; all line numbers read at head 1ac7073d. The functions/kernels parallel-order invariant is read from capture.rs, not proven by a test. Not re-reported (other lenses / already handled): the alignment blocker (landed at 300 + tests 1046-1069), the inactive-geometry disagreement (author's 2026-11-28 justification is a semantics choice, and the summary wording now matches), TODO/docs additions.

#17 [high] Research summary

Re-reviewed PR #332 at head 1ac7073d (4 files, +599/−37) through the simplicity lens. I read the whole of heliopause/src/export/reachability.rs (production 45-493, tests 495-1251), capture.rs:2930-3240 plus its two changed hunks, both documentation hunks, and the whole PR conversation (no attempt to direct the reviewer found).

What changed since round 1: the round-1 should-fix "inactive rule computed twice" is fixed — in_free_block is gone and scan now negates the single candidate() lookup; the 8-byte alignment filter and its straddling-window test landed at reachability.rs:300 and :1046-1069. The round-1 should-fix "duplicate emptiness guard" survives at capture.rs:3219, and all five round-1 nits survive unchanged.

Verdict for this lens: no blocking findings; one should-fix and a set of nits, each with a concrete smaller version. Should fix: capture.rs:3219-3223 repeats the zero-check unresolved_report already performs at reachability.rs:232-235 (every entry has occurrences >= 1, so zero-sum iff the map is empty), which also needlessly makes unresolved_count pub(crate). Nits: first-site records with a heap String are retained for every distinct address (~800 per rank in the author's own aligned run) while only 10 print; the report collects and sorts all of them to print ten; unresolved_unique_addresses has no unique caller or assertion; two module-local structs are pub(crate) and a map_or("unknown", …) fallback cannot fire in export (graph() bounds-checks the index); a 300-character summary literal is written twice in tests and the "capped" test never tests the cap; the cached miss vector is cloned on every repeated call site where main returned early; a dead rebind at :250; the name candidate reads inverted at its only call site; and the same explanation is written four times across the struct docs, the printed line and two design sentences. All findings, with lines, fixes and the cited rules (docs/design-review.md:16, AGENTS.md:188-199, docs/verification.md:22-23 (not opened)), are in scratchpad entry #16. Limits: no shell, so nothing was built or run; every claim is read from head source.

#18 [high] R2 supersession map: which round-1 notes are stale for the final report

Use scratchpad entry #16 as THE report; entry #10 (round-1 report) and entries #1-#9 are superseded and their line numbers are stale (they refer to head c3cc87e, before the 2026-11-28 rebase).

Mapping of round-1 notes to head 1ac7073d status:

New round-2 items not in any round-1 note: #13 (D8 dead rebind let address = *address; at reachability.rs:250; D9 inverted candidate naming) and #15 (D10 explanation written four times; D11 the report collects and sorts all ~800 entries to print ten, with the smaller filtered version).

Facts the report needs that appear only in these notes: reviewer blocker 1 (alignment) is satisfied at reachability.rs:300 with tests 1046-1069; blocker 3 (straddling test) landed as 1046-1069; the docs sentence is at docs/runtime-core-design.md:154-157 and the phase-ordering sentence at :339-341; the TODO follow-up is appended at the end of docs/TODO.txt. The change adds no option, flag, fallback layer or parallel path, and retention semantics are unchanged (reference is still called only on a live-interval hit at reachability.rs:164-167), so nothing in this lens is blocking. Limits: no shell; nothing built or run; line numbers read at head 1ac7073d.

#4 [medium] D4 nit: two map accessors whose callers collapse to one

PR #332, head c3cc87e. reachability.rs:190-199, tests 739-747, 760-762, 802-806.

unresolved_count (190-195) and unresolved_unique_addresses (197-199) are one-line wrappers: the first sums occurrences, the second returns self.unresolved.len(). Production callers: unresolved_report (:207, :216-220) and capture.rs:3137 (the redundant guard, see D1). So after D1 the first has one caller and can be fn (private); the second has one caller and can be inlined as self.unresolved.len().

They also produce duplicate assertions in the tests, because each wrapper restates a fact of the map:

Smaller version: delete unresolved_unique_addresses; keep unresolved_count private to the module; in tests assert reach.unresolved.len() and reach.unresolved[&address].occurrences once each, and let unresolved_report_* tests (which already assert "24 occurrences and 12 distinct addresses") carry the rendered-total behaviour.

Guidance: docs/verification.md:23 warns against tests that merely restate implementation text; AGENTS.md "Reject unsupported abstractions and churn" (line 170-175) for the redundant accessors.

#5 [medium] D5 nit: needless pub(crate) on two module-local structs; unreachable "unknown" fallback

PR #332, head c3cc87e.

  1. UnresolvedCandidate (reachability.rs:49-55) and Site (66-71) are declared pub(crate) with pub fields, but grep shows every use is inside reachability.rs (production at :176, :311; tests at :721-729). Nothing in capture.rs or the rest of export names them. They can be plain private structs with private fields, matching UnresolvedEntry (:57). Same for unresolved_count (:190): after D1 its only caller is unresolved_report.

  2. The "unknown (unknown)" rendering (reachability.rs:227, 232-233) is a path a real export cannot take. graph rejects an out-of-range function index (kernels.get(node.function as usize).ok_or_else(...), :290-292), so candidate.function recorded at :314 is always a valid index into the kernels slice; capture_rank builds functions by pushing once per kernel in that same order (capture.rs:2911-2993, kernels pushed at :2895), so functions[candidate.function] is always in bounds. The fallback exists only for the test that passes &[] (:858, :875).

Smaller version: let function = &functions[candidate.function]; and use function.symbol, function.module. That deletes both map_or calls; then the bound test stops asserting "kernel unknown (unknown)" and instead passes a one-element functions list. If the author prefers keeping the guard, one comment should state that functions must stay in kernels order — otherwise the two lists remain silently coupled, which is the coupling the 2026-11-19 review (item 4) asked to remove.

#15 [medium] R2 D10-D11 nits: duplicated explanation; unbounded sort for bounded output

New round-2 findings beyond the round-1 list.

D10 (nit) — one explanation written four times. The same sentence about aligned candidates that resolve to no active allocation appears in:

D11 (nit) — the report sorts every recorded address to print ten. reachability.rs:247-248 collects all entries (~800 per rank on the author's export) into a Vec and sorts it, then takes 10 (249). With D3's first: Option<…> the smaller version is:

let mut examples: Vec<_> = self.unresolved.iter().filter(|(_, e)| e.first.is_some()).collect();
examples.sort_unstable_by_key(|(_, entry)| entry.order);   // ≤ 10 elements
...
let hidden_addresses = self.unresolved.len() - examples.len();
let hidden_occurrences = occurrences - examples.iter().map(|(_, e)| e.occurrences).sum::<usize>();

Same output, no full-map sort, and the hidden-occurrence arithmetic stops subtracting distinct counts from occurrence totals (the bug class the 2026-11-26 review flagged at :238). Keep order and the ≤10-element sort: HashMap order is not insertion order.

#6 [low] D6 nit: duplicated report sentence in two tests; misleading test name

PR #332, head c3cc87e. reachability.rs tests.

The same 300-character summary sentence is written out twice verbatim (lines 833-835 in unresolved_report_names_the_kernel_and_its_symbol, 862-864 in unresolved_report_bounds_examples_and_counts_hidden_occurrences), plus once in unresolved_report_is_empty_without_candidates implicitly. Any wording change to the report (which the maintainers have already revised twice: rank label, symbol, inactive ranges) now edits two literals in the tests. Also note test 751's name (unresolved_examples_are_capped_while_occurrences_are_counted) promises a cap it does not assert — no test has more than 10 addresses except 845, which does.

Smaller version: assert the counts separately,

assert!(lines[0].starts_with("kernel argument scan: 1 occurrence and 1 distinct address "));
assert_eq!(lines[1], "  graph \"prefill-8192\" node 0 kernel cublasLt::splitKreduce_kernel (module), argument 0, offset 0: 0x3008");

and keep the full-sentence check in exactly one test (845, which already checks the cap and the hidden-count line).

Guidance: AGENTS.md:176-181 requires focused validation; docs/verification.md:23 rejects tests that restate implementation text.

#7 [low] D7 nit: cached miss list cloned per call site

PR #332, head c3cc87e. reachability.rs:147-169 (blob).

Before this PR, blob began if !self.blobs.insert(...) { return Ok(()) } — repeated argument bytes were scanned once and then skipped. Now every call clones the cached miss list:

let misses = match self.blobs.get(&key) { Some(misses) => misses.clone(), None => { ... } };

The clone (and, on the cached path, data.to_vec() + numeric.to_vec() to build the key) runs per call site, so a graph family that repeats an identical argument blob pays a Vec copy per node. The borrow conflict is only with self.scan(&mut self) inside the None arm; it can be resolved without cloning the cached value into an owned copy by inserting the empty list first and filling it through a &mut:

if !self.blobs.contains_key(&key) {
    self.blobs.insert(key.clone(), Vec::new());
    let mut misses = Vec::new();
    for (start, end) in subtract_ranges(0, data.len() as u64, &excluded) { self.scan(.., Some(&mut misses))?; }
    self.blobs.insert(key.clone(), misses);   // or take the entry and assign
}
for &(offset, address) in &self.blobs[&key] { ... }

The final for then reads the slice by reference instead of owning a clone. Nit: the effect is bounded by the miss list length, so this is cleanup rather than a defect.