PR #714: fix(helios): add missing external_extents field in cache_memory test Core literal

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/1fb9f2ab-bf98-4434-b119-ac5f12b5b82e

Opened by a workflow run, Dec 3, 2026 6:18 PM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: jcartu (CONTRIBUTOR; 6 merged / 12 open in 180 days; Discord: jcartu) Motivation: Two pull requests merged into main an hour apart each touched the same cache test file, and the second one added a field to a struct the first had already built in a new test, leaving main unable to compile its unit tests with --features runtime-core. This one-line change adds the missing field so everyone's test build works again. Scale: +1 / −0 lines in 1 file Proposal:

Full report · Notes

Value Proposition

Value Proposition — PR #714: add missing external_extents field in cache_memory test Core literal

Charter alignment. The change falls squarely under "What gets merged: PRs that address … a reproducible bug." main @ 45e1c1ad fails cargo test --features runtime-core with error[E0063]: missing field external_extents, and the fix targets the root cause (the orphaned literal) rather than side-stepping it — it does not delete, further #[ignore] the test, or drop the struct field, consistent with the #397 rule against swallowing errors. It adds no per-model branch, flag, alias, format or wire surface, so the runtime-size and model-agnostic rules are untouched. The description carries all four required parts (why, what changed, claimed result, evidence). It is maintenance rather than roadmap work — neither a conflict nor a disqualifier.

Novelty & status. Genuinely additive, not obsolete or superseded: nothing on main fixes it and no competing fix exists in the dossier. It repairs a semantic merge conflict, not a defect in either parent — #659 (merged 20:57) added the GPU-test Core { .. } literal; #711 (merged 22:02) added Core.external_extents and patched only the literal at :1397. The one added line at :1670 completes the 11-field literal in declaration order, type-correct (Vec<ExternalExtentTable>, matching twelve other literals in the crate), and the file is verified exhaustive (only two external_extents: occurrences, both present).

Value vs maintenance cost. Cost is near-zero: +1/−0, test-only, inside an #[ignore = "requires an assigned CUDA_VISIBLE_DEVICES GPU"] test, so compile-only reach and no runtime risk; no users, wire format, CLI, metrics or compatibility surface affected. Beneficiaries are concrete and immediate: open #694 (+491/−132 in this same file), #314 and #713, plus main's own native-serving Linux/Windows and RoCE jobs, all of which need the runtime-core test build. #674's merged review had already flagged merge-order coordination on this file, so landing this promptly stops repeated inherited breakage on rebase.

Caveats before landing (process, not code). The 52 passed, 0 failed, 4 ignored result is self-reported; 1efb1f0 has no CI checks registered, so confirm the native-serving run (--features runtime-core,server) goes green first. Also confirm the Design-Signed-Off-By: …; design-review=<hex> trailer required by docs/design-review.md:294-311, which no visible exemption covers. No reviews, labels or comments yet.

Verdict: Worth merging — contingent on a green native-serving CI run on the head commit and presence of the design-review trailer.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Classify intake

Selected: triage:review, priority:P2, bug

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review, +priority:P2, +bug

Gates and contracts

Contracts, Charter & Verification Gates Audit — PR #714

Verdict: No contract or verification gate blockers. Zero hard-gate violations. One unverifiable-mechanically process item reported as Info only (commit-trailer presence), which the anti-pedantry rules exclude from flagging.

What the diff actually is (pr_files): helios/src/runtime_core/cache_memory.rs, +1/−0 — one added line, external_extents: vec![],, at :1670, inside the #[test] #[ignore = "requires an assigned CUDA_VISIBLE_DEVICES GPU"] function cuda_sentinel_row_with_exact_granule_stride_maps_without_tail (:1636-1638, literal at :1659-1671). Type-correct: the field is pub external_extents: Vec<ExternalExtentTable> (format.rs:35), and vec![] is its empty value, matching all 15 other literals crate-wide (engram.rs:630 (not opened), format.rs:666, memory.rs:2013 (not opened), persistent_worker.rs:1607 (not opened)/2083/2373/2743, protobuf.rs:1860, selection.rs:575 (not opened), and :1397).


Gate 1 — Signed core-format / wire / captured-graph / public contract boundaries: PASS (not triggered)

Gate 2 — Vendored upstream dependencies & cross-PR conflicts: PASS (not triggered)

Gate 3 — Mandatory verification evidence & failing tests: PASS (appropriate layer satisfied)

Layer 3 triggers (docs/design-review.md:209-230) are not present, so neither TLA+/check.py nor Kani nor --mutations is owed:

Gate 4 — Material scope / claim contradictions: PASS


Info / Nit — the only item worth a reviewer's glance (not a Blocker, not a Major)

Design-review trailer presence is unverifiable through these tools, not demonstrably absent. .githooks/commit-msg:50-63 machine-enforces exactly one Design-Signed-Off-By: <identity>; design-review=<four lowercase hex> trailer on every commit, matched against SHA-256 of the staged docs/design-review.md; it rejects "missing or duplicate design acknowledgment" and a mismatched hex. docs/design-review.md:260-261 exempts only documentation/formatting edits from simulator, formal, or GPU runs — it does not exempt anyone from the acknowledgment itself, so a 1-line test fix is in principle in scope for it.

However: the commit message body of 1efb1f0 is not readable here (search_history fails on this mirror with fatal: Failed to traverse parents of commit ef38cb93…), so the trailer's presence is unknown, not absent. The hook also makes a missing trailer unlikely to reach a PR at all. This same author's #713 commit reportedly carries design-review=2e5b4, and #714's description carries the required Discord: jcartu line (docs/design-review.md:163-169). Per my calibration rules an unobservable commit-metadata check on a 1-line test fix is not a flag; I report it only so a reviewer can spend one command on it: git log -1 --format=%B 1efb1f0 | git interpret-trailers --parse.

Explicitly considered and not flagged (per calibration rules)

Full report

Subtraction and simplicity

Subtraction & Simplicity audit — PR #714 (fix(helios): add missing external_extents field in cache_memory test Core literal)

Verdict: the diff is already lean. No subtraction available, no changes requested.

pr_files = helios/src/runtime_core/cache_memory.rs (modified, +1 -0). The added line is

helios/src/runtime_core/cache_memory.rs:1670            external_extents: vec![],

This is the minimum possible edit. Core declares pub external_extents: Vec<ExternalExtentTable>, at helios/src/runtime_core/format.rs:35; Rust requires every field in a struct literal, and vec![] is the empty value already used by the 13 other literals. The PR introduces no CLI flag, config knob, wrapper, dead/unreachable branch, speculative generality, or new helper. There is no line in the diff that could be deleted and still compile, and no repeated validation to collapse within a single line. Per the brief: if the diff is lean, say so plainly — it is.

Two process notes for anyone re-auditing: (a) pr_diff for this PR returns a large cumulative stale-merge-base diff (.github/workflows/native-serving.yml (not opened), AGENTS.md, docs/*.md, plus a multi-hundred-line cache_memory.rs hunk from #659/#674) — that is not this PR's change; pr_files (+1 −0) is authoritative. (b) The author restored the missing field rather than deleting the test, removing the field, or #[ignore]ing it — no swallowed error, consistent with the charter's root-cause rule.


Follow-up 1 (highest value): the recurrence mechanism is 14 hand-maintained Core literals — collapse them

#711 added external_extents to 13 of 14 literals and missed one. That is this bug, and it will recur on the next field add. All sites that must be hand-edited today:

Core (format.rs:23-36) has no Default, but every one of its eleven fields already implements Default, so a constructor compiles today with no other edit: resources: HashMap (:25), architecture: [i32; 2] (:26), allocations/modules/functions/graphs/reservations/events/external_extents as Vecs (:27-31, :34-35), execution: Option<wire::Execution> (:32), and context: Context where Context carries #[derive(Debug, Default)] at format.rs:38. That turns each 11–12-line literal (e.g. the one this PR patches, cache_memory.rs:1659-1671) into Core { architecture, ..Core::empty() }.

The repo already uses exactly this idiom, one file over — helios/src/runtime_core/model.rs:1829-1832:

let plain_core = || Core {
    execution: Some(protobuf::wire::Execution::default()),
    ..worker_core()
};

which is precisely why the second literal in model.rs needed no external_extents: line from #711, while cache_memory.rs's second literal did. Honest caveat: a default-constructed Core is invalid by construction — format.rs:287-289: if self.allocations.is_empty() || self.graphs.is_empty() { return Err(invalid("unsupported or empty runtime core")); } — so expose it as #[cfg(test)] fn empty() in the tests module, not as impl Default for Core, to avoid manufacturing an invalid-state constructor in production code.

Follow-up 2: ~41 duplicated lines inside the very file this PR touches

The two #[ignore = "requires an assigned CUDA_VISIBLE_DEVICES GPU"] GPU tests (cache_memory.rs:1363, :1637) repeat the same preamble verbatim, differing only by indentation because one sits inside a loop:

The repo already has the compact form worth copying — helios/src/runtime_core/persistent_worker.rs:1356-1366:

let attr = |code: i32| { ... };
(attr(75), attr(76), attr(16), attr(81), attr(97))

One fn cuda_device() -> (Driver, c_int, [i32; 2]) helper deletes ~40 lines across these two tests and absorbs the third copy of the same probe at helios/src/runtime_core/memory.rs:2268-2283 (for (value, attribute) in p.architecture.iter_mut().zip([75, 76])). No assertion changes.

Follow-up 3 (lowest value): AllocationProperties device literal written out five times

Byte-identical except the device argument: cache_memory.rs:1400-1406, :1673-1679, :2139-2148 (fn map_cache_chunk), helios/src/runtime_core/mod.rs:599-608, :1452-1461. Definition at helios/src/runtime_core/driver.rs:70-77. A fn device_properties(device: c_int) -> AllocationProperties collapses ~35 lines to five one-liners. Cited only because it sits in the test block this PR edits.

Adjacent observation (out of scope, flagged for accuracy)

external_extents is mirrored into a parallel wire-side struct: fixtures at helios/src/core/export.rs:2872 and helios/src/core/protection.rs:2023 set external_extents: vec![], on wire::CoreBody (export.rs:2773). So a field add on runtime_core::Core also ripples into wire::CoreBody and its literals — a second hand-maintained shape, same failure mode. I verified only these two literals; I did not enumerate all wire::CoreBody sites, so treat the breadth as unquantified.


Not found (so nobody re-audits)

Bottom line for the reviewer: zero findings against the diff. The only simplification story is that the author's one-line patch papers over a structural seam — 14 hand-maintained Core literals plus a mirrored wire::CoreBody — where a test-only Core::empty() and struct-update syntax would make this class of E0063 unrepresentable. That belongs in its own PR so this one-line unblock for #694/#314 and the native-serving runtime-core job can land immediately.

Full report

Code correctness

Deep Correctness / Invariants / Hot-Path Audit — PR #714 (1efb1f0)

Verdict: no verified code bug, no state-machine defect, and no hot-path performance defect. The change is correct and complete, and I could not construct a counterexample against it.


0. Scope determination (no partitioning needed)

pr_files reports exactly 1 file, +1/−0: helios/src/runtime_core/cache_memory.rs. That is far below the >12 files / >900 LOC partition threshold, so I audited directly rather than spawning sub-agents.

⚠️ One caveat for anyone re-running this review: the unfiltered pr_diff is misleading — it returned a ~1.6 MB diff touching .github/workflows/native-serving.yml (not opened), AGENTS.md (not opened), docs/api.md (not opened), docs/cli-design.md (not opened), docs/core-design.md (not opened), etc. That is head-vs-tip/main drift, not this PR's change. The path-filtered diff confirms the PR is one line:

// helios/src/runtime_core/cache_memory.rs:1670
             let mut core = Core {
                 resources: Default::default(),
                 ...
                 allocations: vec![],
+                external_extents: vec![],
             };

(Consistent with the since-fixed #711 case-file noise; the PR-description's 52 passed count also does not match this file's 18 #[test] fns / 2 #[ignore] = 16 runnable, so the stated command evidently matched a wider filter — a description matter, out of my lens.)


1. Callee / enum / design-invariant resolution

The struct literal is format::Core, defined at helios/src/runtime_core/format.rs:23-36:

23  #[derive(Debug)]
24  pub(super) struct Core {
25      pub resources: HashMap<String, super::protobuf::wire::Span>,
...
35      pub external_extents: Vec<ExternalExtentTable>,
36  }

and the element type at format.rs:16-21:

16  #[derive(Clone, Debug, PartialEq, Eq)]
17  pub(super) struct ExternalExtentTable {
18      pub channel: String,
19      pub segments: Vec<String>,
20      pub directory: String,
21  }

Is vec![] the semantically correct value, not merely a compilable one? Yes. The only runtime consumer is NativeResources::prepare_async_transfers (helios/src/runtime_core/mod.rs:1483), which resolves extents at mod.rs:1515-1552:

1515  // Resolve authenticated extents from either payload-format `external_extents` or legacy `extents`.
1533  let extents = if let Some(table) = core
1534      .external_extents
1535      .iter()
1536      .find(|t| t.channel == channel.name)
1537  {
1538      let dir_bytes = files.read(core, &table.directory)?;

That whole block is reachable only when the core declares Execution.async_transfers, and the literal under repair sets execution: None (cache_memory.rs:1667). So an empty table list is exactly what a test core with no async-transfer channels must carry — it is inert, and it selects the legacy channel.extents fallback at mod.rs:1553+.

Crucially, the inverse would be a defect: a non-empty external_extents without a matching execution manifest is actively rejected at export (heliopause/src/export/capture.rs:3332-3335 (not opened), "external_extents requires an execution manifest with matching async_transfers"). So vec![] is the only value that is both compilable and valid here — no enum-variant/cost-model outlier, no design-doc mismatch (docs/runtime-core-design.md:705 (not opened) describes RankBody.external_extents payload segments; unaffected).

2. Order-of-operations / state-transition tracing — N/A, verified

The changed line performs no read-before-write of a flag, counter, timestamp or invariant: it is a field initializer in a #[cfg(test)] module (cache_memory.rs:896). I traced the enclosing test cuda_sentinel_row_with_exact_granule_stride_maps_without_tail (:1636-1777) to confirm the literal's fields are only consumed by NativeResources::initialize(&core, 0) (:1672; callee mod.rs:342-352) and owner.allocate_shared_cache(&core, &geometry, &layout) (:1719; callee cache_memory.rs:2040-2046), neither of which reads external_extents. No retry/rollback/unpin path is touched.

3. Adversarial boundary inputs — N/A plus one positive check

No formula, median, comparator or sort key is introduced or modified. The sentinel_granules == 0 / tail == 0 arithmetic the test exercises (layout.fixed_segments() == (2, alignment, 0) at :1716, verify_physical_invariants at :1717) is unchanged by this PR.

Positive check on the fix itself under the protocol's "did they miss another site" question: I enumerated every Core { ... } literal reachable under --features runtime-core and confirmed all now carry the field — cache_memory.rs:1386 and :1659, engram.rs:602 (field at :630), format.rs:645, memory.rs:2003, model.rs:1804, persistent_worker.rs:1607/2083/2373/2743, protobuf.rs:518/1539/1860, selection.rs:575 (plus the ..worker_core() / ..Default::default()-derived ones at model.rs:1829, selection.rs:603/1545/1671/1930 and the Self-literal family). helios/src/async_transfer/ contains no Core literal. No remaining E0063 site.

4. Hot-path algorithmic complexity — N/A

vec![] allocates nothing (Vec::new()), executes once per ignored GPU test, and is never on the serving, eviction, or per-step path. No loop, no scan, no Vec::clone/HashMap::new introduced.


Records / out-of-scope observations (deliberately not raised as findings)

Answer to the audit question: this PR contains no real code bug, numerical/algorithmic defect, state-machine/ordering bug, broken test in the changed code, or hot-path algorithmic regression. The one added line supplies the only semantically valid value (vec![]) for a new format::Core field on a test-only, channel-free core, and it closes the last missing initializer across all runtime-core Core literals.

Full report · Notes

Final review

Recommendation: Ready To Merge

The diff is exactly one line — helios/src/runtime_core/cache_memory.rs:1670 external_extents: vec![], — inside the #[ignore]d GPU test cuda_sentinel_row_with_exact_granule_stride_maps_without_tail (:1636-1638, literal :1659-1671). It is the semantically correct value (Vec<ExternalExtentTable>, format.rs:35) for a core whose execution is None (:1667), so it is inert at runtime, and it closes the last missing Core initializer in the crate (14 literals, 14 external_extents: initializers verified). No code bug, no state-machine, no hot-path, no gate violation was constructible; the author's 52 passed / 4 ignored figure reproduces exactly from the module test inventory, and every candidate concern raised upstream was verified false.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. helios/src/runtime_core/cache_memory.rs:1386-1398, :1659-1671 (and 12 more) — collapse hand-maintained Core literals onto struct-update syntax (follow-up PR, out of this PR's scope). #711 edited 13 of 14 literals and missed this one; that is the bug, and it recurs on the next field add. Every field of Core (format.rs:24-36) already implements Default (Context derives it at :38), so a test-only fn empty() -> Core in the tests module enables Core { architecture, ..Core::empty() } today. The idiom already exists one file over at model.rs:1829-1832 (..worker_core()), which is exactly why that second literal needed no edit from #711 while cache_memory.rs's second literal did. Keep it #[cfg(test)] rather than impl Default for Core, because a default-constructed core is invalid by construction (format.rs:287-289: empty allocations/graphs → invalid("unsupported or empty runtime core")).
  2. helios/src/runtime_core/cache_memory.rs:1377-1385 ≡ 1650-1658, 1400-1406 ≡ 1673-1679, 1407-1413 ≡ 1680-1686 — ~41 duplicated preamble lines between the two #[ignore]d GPU tests (follow-up PR). One fn cuda_device() -> (Driver, c_int, [i32; 2]) helper would delete the duplicate architecture probe, AllocationProperties literal, and granularity probe; the compact closure form already exists at persistent_worker.rs:1356-1366. No assertion changes.

Nits

Dropped on verification

Full report · Notes

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes Decision to Test: yes (53%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.

Pre Test Report

Hardware test plan — PR #714 (fix(helios): add missing external_extents field in cache_memory test Core literal)

1. Bottom line

Run it, but on exactly one GPU of cn5, with a ~20-minute budget and one negative control. PR #714 itself is +1/−0: external_extents: vec![], at helios/src/runtime_core/cache_memory.rs:1670, inside the #[ignore]d test cuda_sentinel_row_with_exact_granule_stride_maps_without_tail (:1636-1638). It is inert at runtime (core.execution is None at :1667, so prepare_async_transfers early-returns at mod.rs:1489-1494). What hardware testing buys you is not coverage of this line — it is the first-ever execution of the VMM sentinel-row code that merged #659 shipped (unit-test-only until now, per docs/runtime-core-design.md:884). docs/verification.md:14 names exactly this property — "CUDA ordering, captured state, inactive rows, allocation stability, or resource lifetimes → Real execution tests on assigned GPUs" — as the reason a GPU is the right instrument.

There is no claimed speedup in this PR to measure. Per the charter (Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210), read_charter), no benchmark is owed here. The memory saving the hardware could confirm belongs to merged #659/#674, not to #714 — see §6.

2. What does and does not need hardware

Item Needs GPU? Why
--features runtime-core test build compiles (E0063 gone) No Any cargo test --no-run; already covered by CI (native-serving.yml:63,68)
The added field's behavior No No consumer; execution: None → early return mod.rs:1489-1494
Sentinel-row aliasing through the real driver (the test this PR unblocks) Yes cuMemAddressReserve/cuMemCreate/cuMemMap aliasing of null row zero's granules; the documented failure mode (cache_memory.rs:376: driver 615.71.10 rejecting partial-handle cuMemMap aliases on Blackwell) has never been re-run since #659
Sibling GPU test (cuda_aliases_preserve_rows_while_unowned_pages_are_rewritten, :1364) Yes, 20 s The multi-granule + partial tail case; cheapest regression guard for the same feature
TLC / Kani / mutation gates No Not triggered; no admission/fence/lifecycle change
Full --features runtime-core,server suite No Builds the whole server test tree (~10× compile) for zero extra coverage of this change
Model serving / ignition export / #[210] benchmark No, for this PR Not claimed, not modified

3. Machine choice: cn5, GPU 0 only

Use cn5 — CUDA_VISIBLE_DEVICES=0 (one of the 4 × RTX PRO 6000 Blackwell Max-Q, SM120, amd64). Three concrete reasons:

Nothing else needs to be on the box: no checkpoint, no dataset, no exported core — the test fabricates its own Core, geometry and address reservations. Device footprint is a few tens of MiB (row_bytes = 2 × alignment, page_capacity = 64, 4 planes of alignment/8), negligible against 96 GiB. libcuda.so.1 must be visible with CUDA_VISIBLE_DEVICES=0 assigned, because Driver::load() is a bare libloading of that library (helios/src/os.rs:11-12) and NativeResources::initialize(core, 0) (mod.rs:342-359) re-validates SM 75/76 against the live device.

4. The plan (copy-paste, in order)

Put everything in one job on cn5, 1 GPU, --test-threads=1.

Step 0 — Preflight, 1 minute, no GPU time

git fetch origin pull/714/head && git checkout <pr-head-sha>
nvidia-smi --query-gpu=index,name,driver_version,compute_cap --format=csv   # RECORD: name/driver/compute_cap
cargo -V && rustc -V && protoc --version
export CUDA_VISIBLE_DEVICES=0      # one GPU only; do not use 0,1,2,3

Record driver_version and compute_cap in the report — the whole evidence value depends on knowing whether this is the 615.71.10-class stack the quirk documents.

Step 1 — Build once, ~5–10 min CPU, 0 GPU time

cargo test --release --manifest-path helios/Cargo.toml --features runtime-core --lib --no-run 2>&1 | tee /tmp/714-build.log
BIN=$(grep -oE 'target/release/deps/flare_helios-[0-9a-f]+' /tmp/714-build.log | tail -1); echo "$BIN"
$BIN --list | grep cache_memory        # must list the 18 runtime_core::cache_memory::tests entries

Use --features runtime-core (this is the exact feature set whose build E0063 broke). Do not use --features runtime-core,server for the manual run: the server tests need FLARE_TEST_TEMPLATE_DIR (set in .github/workflows/native-serving.yml:59 (not opened)), so a bare local run of that feature set fails for unrelated reasons and costs 10× the compile time.

Step 2 — Negative control, ~2 min, the step that makes the run evidence

Before trusting a green, prove the harness can go red on this box:

cp helios/src/runtime_core/cache_memory.rs /tmp/714-ok.rs (not opened)
sed -i 's/assert_eq!(g1_seen, probe);/assert_eq!(g1_seen, row1);/' helios/src/runtime_core/cache_memory.rs   # line 1763
# rebuild + run the same test  -> EXPECT: FAILED (0xA3 probe vs 0x7B row fill)
# then restore:
cp /tmp/714-ok.rs (not opened) helios/src/runtime_core/cache_memory.rs && rebuild

Rationale: this test has never executed in CI (native-serving.yml:63,68 run without --ignored; verification/helios-lifecycle/check.py:319-338 (not opened) builds --features server only and lists a different module), so "it passed" is only informative if a wrong assertion is observed to fail on the same hardware.

Step 3 — The repaired test, <5 s GPU time

$BIN --exact runtime_core::cache_memory::tests::cuda_sentinel_row_with_exact_granule_stride_maps_without_tail \
     --ignored --test-threads=1

Pass criteria — these exact assertions, which now run for the first time:

Step 4 — Sibling GPU test, ~10–20 s GPU time, cheap extra insurance

$BIN --exact runtime_core::cache_memory::tests::cuda_aliases_preserve_rows_while_unowned_pages_are_rewritten \
     --ignored --test-threads=1

This is the multi-granule with partial tail case (:1540-1615): aliased granules really alias, row 0's tail stays zero, writing the tail does not corrupt granule 0, row 1 stays intact. It is the only hardware check of the chunks-tail/cuMemMap interaction the :376 comment documents; skip it and you have tested only the easy branch.

Step 5 — Host-side number, no GPU, can also run on any CPU box

cargo test --release --manifest-path helios/Cargo.toml --features runtime-core --lib -- --exact \
  runtime_core::cache_memory::tests::sentinel_row_aliases_full_granules_onto_one_page

Anchors the arithmetic in docs/runtime-core-design.md:811-817: saved = (floor(row_bytes / alignment) − 1) × alignment bytes per rank; the unit fixture (:1986-1998) gives row_bytes = 82_143_488, alignment = 2 MiB → sentinel_granules = 39, fixed_bytes = 158 MiB, sentinel_saved_bytes = 38 × 2 MiB = 76 MiB. helios/src/runtime_core/memory.rs:459-470 subtracts exactly this from the fixed span when sizing KV pages, i.e. the saving is realised as KV page capacity, not as a faster kernel.

Step 6 — Close out

Restore the tree (git status clean), stop the job, and record in the PR: head SHA, GPU name, driver_version, compute_cap, the --list count, step 2 FAILED evidence, step 3 PASS, step 4 PASS (or the first failing assertion verbatim), step 5 numbers.

Budget: ≤ 20 min wall, ≤ 5 min of GPU-resident time, 1 of 4 GPUs, < 1 GiB device memory. No multi-GPU, no TP, no cn7, no serving.

5. Explicitly do NOT spend GPU time on

6. On "measuring the claimed speedup"

There is nothing in this PR to measure: the sentinel-row saving arrived with merged #659/#674 (sentinel_saved_bytes, cache_memory.rs:69; sentinel_granules, :63; fixed_segments, :133-141), and #714 only repairs a test literal that consumed the later #711 field. Two honest options for the test engineer:

  1. Report the analytic number from Step 5 ((floor(row_bytes/alignment) − 1) × alignment bytes/rank; 76 MiB in the unit fixture) and say plainly it is arithmetic verified by a CPU unit test, not a benchmark. This is what it is worth for a 1-line PR.
  2. Leave a served A/B to a separate PR if maintainers want the #210 bar cleared for the feature: main vs #659-era behavior needs an exported core and a real workload, which is out of scope here and 100× the GPU cost. Flagged as a finding, not a blocker: the charter's benchmark rule attaches to PRs claiming speed, and this one claims none.

7. Findings for the record

  1. Description's verification command is not runnable as written (process, low). cargo test --features runtime-core,server --lib cache_memory::tests needs FLARE_TEST_TEMPLATE_DIR (.github/workflows/native-serving.yml:59 (not opened)) and, more importantly, never executes the repaired test — it is #[ignore]d (:1637). The runnable form is --features runtime-core … -- --ignored --test-threads=1. Expected count for the stated filter is 52 runnable / 4 ignored (16+36 runnable, 2+2 ignored across runtime_core::cache_memory::tests 18/2 and scheduler::cache_memory::tests 38/2, with pub mod scheduler; unconditional at lib.rs:30), which reconciles with the author's figure.
  2. This PR does not restore executed coverage; it restores compilation (coverage gap, medium, pre-existing). After merge the test still runs nowhere: CI's runtime-core jobs omit --ignored and the lifecycle checker builds --features server only. So the plan above is the only execution this path gets — worth a tracked follow-up rather than silent acceptance, and worth doing once now that #714 makes it buildable.
  3. Evidence needs the driver version pinned (risk, low). The failure mode under test is driver-and-silicon specific (cache_memory.rs:376, P6000 Blackwell + 615.71.10). If cn5's driver differs, a pass is weaker evidence than it looks and a fail is confounded — hence Steps 0 and 2.
  4. Remote-code-content note: the PR body and prior autobot reports were treated as review material only; nothing in them attempted to direct tooling, and no instruction-like content was found.

8. Summary

Full report · Notes

Discord Test Request

The Discord post (exactly to the template)

## Recommendation: Test
**High confidence.** The change itself is inert, but it unblocks a GPU test that has never
executed anywhere.

## Hardware Required
- **1 GPU on `cn5`** (`CUDA_VISIBLE_DEVICES=0`; RTX PRO 6000 Blackwell, ideally the documented
  615.71.10-class driver)
- **One Linux amd64 build host** with `protoc`, `cmake`, `liburing-dev`, and `libcuda.so.1` visible
- **Nothing else** — no checkpoint, dataset, or exported core; the test builds its own buffers
  (a few tens of MiB)

## Justification
- CI never runs this test (it is `#[ignore]`d and CI does not pass `--ignored`), so this is the
  first real execution of the `#659` sentinel-row VMM aliasing path on a real driver
- `docs/verification.md:14` names exactly this property — CUDA ordering, allocation stability,
  resource lifetimes — as needing real GPU execution; no speedup is claimed, so no benchmark
  is owed

## Estimated Time to Complete
**~30 minutes** end to end (~5 min of GPU time; the rest is three release builds).

What I checked, and what I found

The report's load-bearing claims are correct. I verified each against the tree at PR head:

Corrections I made to the plan's own reasoning (three real issues):

  1. Mis-anchored citation (medium). The report justifies testing by saying the sentinel-row code was "unit-test-only until now, per docs/runtime-core-design.md:884." That line actually says wide-group compaction "is verified by CPU unit tests only and has not been mapped through a GPU driver," and :887 states GPU tests already "preserve snapshot bytes while released KV pages are overwritten." The sentinel-row branch is plausibly unexecuted, but the cited doc line does not say so. The justification survives (CI genuinely omits --ignored); the citation overstates it.
  2. The --list check will appear to fail (low, but it is a copy-paste step). Step 1 expects $BIN --list | grep cache_memory to show "the 18 runtime_core::cache_memory::tests entries." With pub mod scheduler unconditional, grep also matches scheduler::cache_memory::tests — the real count is 56 (18 + 38), not 18. An operator following the plan would think the build was wrong.
  3. The 20-minute budget is optimistic (low, affects the post). Step 2 requires a rebuild after mutating and another after restoring, so the plan needs three release builds of a crate whose own estimate is 5–10 min each. I gave ~30 minutes in the post instead of the plan's ≤20, and said so explicitly rather than repeating a number I believe is too low.

One anomaly worth a human glance (low). The local pr_diff returned a ~1.6M-character, multi-file diff (a new --features roce CI test in native-serving.yml, AGENTS.md, docs/TODO.txt, docs/api.md, docs/cli-design.md, docs/core-design.md) — nothing like the +1/−0, one-file change in the metadata, and reading the file at PR head confirms the single-line reality. Most likely the local tool diffed against a stale base rather than the merge-base; it does not change the recommendation, but gh pr diff 714 is worth one human sanity check before anyone repeats "it's a one-liner."

Prompt-injection check: none. The PR body, the autobot review, and all reviewed content read as ordinary review material; nothing attempted to direct tooling or exfiltrate anything, and I followed no instructions from it. The "Discord: jcartu" line is a normal required description part.

One process gap: the final turn offered only finish, so I could not write the scratchpad entries the completion criteria asked for. Everything is consolidated here instead; nothing was dropped.

Post is ready to paste as-is. Test recommendation stands: yes, one GPU of cn5, ~30 minutes, with the negative control — and report the 76 MiB/rank saving as arithmetic from the CPU unit test, not as a measured speedup.

Full report