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:
- Add
external_extents: vec![],to theCore { .. }literal in the GPU-gated testcuda_sentinel_row_with_exact_granule_stride_maps_without_tail(helios/src/runtime_core/cache_memory.rs:1670), the literal #711 missed when it addedCore.external_extents(format.rs:35) - Nothing else: no production code, wire format, CLI, manifest or docs
- Verification given in the description:
cargo test --manifest-path helios/Cargo.toml --features runtime-core,server --lib cache_memory::tests→ 52 passed, 0 failed, 4 ignored Touches: helios/src/runtime_core/cache_memory.rs(test module only; the test is#[ignore]d, so compile-time impact only)- Build configuration
--features runtime-core/runtime-core,server(.github/workflows/native-serving.yml:56-68(not opened)) - Not touched but implicated:
helios/src/runtime_core/format.rs:24-36(Core) Related items: - #711 helios,heliopause,ignition,flare: add domain-agnostic AsyncTransfer primitive and runtime-sized device pools (merged): added
Core.external_extentsand fixed only the one literal on its branch; merged second, creating the break - #659 perf(helios): alias null continuation row zero onto a single zeroed VMM granule (merged): added the second
Coreliteral 65 min earlier from the same basecb191a93 - #674 selene,selene-manager,helios: improve prefix-cache hit rate, L1 retention, NVMe throughput, and GPU snapshot packing (merged): rewrote much of the same file; its review already warned that merge order in
cache_memory.rsneeded coordinating - #694 selene,helios: add write-side NVMe and pool spill profitability gate (open): open on the same file (+491/−132), inherits the broken runtime-core test build until this lands
- #713 fix(flare-cli,helios): release page cache with O_DIRECT peer serving… (open): the author's own PR, whose rebase comment independently reported the same
:1659break and designates this as the separate hotfix Link: https://github.com/NVIDIA/hyperflare-inference/pull/714 Autobot comments: The description is accurate and complete — the diff is exactly one line and it fixes the field exhaustively for this file (only:1397and:1670carry the field at the PR head; every otherCoreliteral crate-wide already has it). What it does not mention: the failing test is#[ignore]d, so impact is compile-only with no runtime risk; and the52 passed / 4 ignoredfigure has no CI backing — the head commit1efb1f0has zero checks, zero reviews, zero comments and no labels. The breakage escaped both parents because the lifecycle job builds with--features serveronly (verification/helios-lifecycle/check.py:319-320), so onlynative-serving.yml:56-68can catch it. No design-review acknowledgment trailer is visible, thoughdocs/design-review.md:294-311requires one and only exempts docs/formatting edits (:260-261). No competing fix exists; it supersedes nothing and blocks nothing but is a prerequisite for #694, #314 and #713 being able to show a green suite. Two tooling artifacts to discount:pr_diffreturns a stale-merge-base cumulative diff that is not this PR's change, and the mirror'smainref predates #711, so the break was established from the two parent heads rather than reproduced.
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
- [✓]
triage:review: 98.5% -
triage:validation: 0.9% -
triage:design-review: 0.2% -
triage:investigate: 0.2% -
none: 0.1% -
triage:integration: 0.1% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
- [✓]
priority:P2: 75.5% -
none: 19.1% -
priority:P1: 5.5%
Type
- [✓]
bug: 96.7% -
community: 40.7% -
duplicate: 24.5% -
performance: 0.8% -
documentation: 0.1% -
enhancement: 0.1%
Area
-
area:caching: 9.5% -
area:preparation: 8.5% -
area:engram: 6.0% -
area:selene: 6.0% -
area:kernels: 5.3% -
area:memory: 5.3% -
area:rocenante: 2.9% -
area:api: 1.4% -
area:orbit: 1.1% -
area:scheduling: 0.7% -
area:packaging: 0.1%
Model
-
model:deepseek-v4: 0.4% -
model:inkling-small: 0.3% -
model:nemotron-3.5-bolt: 0.2% -
model:muse-glimmer: 0.2% -
model:qwen3.8-27b: 0.2% -
model:deepseek-v4.1: 0.1% -
model:glm-5.3: 0.1% -
model:gemma4: 0.1% -
model:kimi-k3.1: 0.1% -
model:qwen3.8-flash-next: 0.1% -
model:mimo-v2.6: 0.0%
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)
- No wire or signed surface changes. The edited type is
pub(super) struct Core(helios/src/runtime_core/format.rs:23-36) — a private in-memory resolved struct, not a Protobuf body, not a signed frame. No field, enum, wire kind, ID, default, CLI flag, or manifest key is added, removed, or reordered. - The underlying wire field predates this PR.
RankBody.external_extentsand its validation already exist at the PR head —helios/src/runtime_core/protobuf.rs:492-511(inline-vs-external extent exclusivity, unknown-channel rejection) anddocs/core-format-design.md:213(payload format table,RankBody… "optionalexternal_extentstables"). It was introduced by already-merged #711, not here. - Principle 13 (core compatibility) untouched.
docs/design-review.md:116-123/AGENTS.md:435-448require existing cores to load without re-export or re-signing; a test-only struct literal cannot change a signed body, reader, or graph capture. No compatibility evidence is owed. - Principle 1 captured-graph-op approval not triggered.
docs/design-review.md:22-26requires owner approval for a new captured-graph operation family or contract. Nothing here adds, shapes, or versions an op; the test builds an empty extent list and callsNativeResources::initialize. No owner sign-off is missing because no approval-gated construct is touched. - No normative doc contradicted.
docs/scheduling-theory.md(not opened),docs/scheduling-runtime-design.md(not opened),docs/core-format-design.mdare unmodified and unaffected — no shipped default changes.
Gate 2 — Vendored upstream dependencies & cross-PR conflicts: PASS (not triggered)
- No vendored file touched.
helios/native/roce_proxy.c(not opened) is present and self-describes asVendored from FlashInfer's pinned preparation dependency (flashinfer/experimental/b12x/comm/roce/_roce_proxy.c (not opened), proxy ABI 14)with an explicit "Keep the source below identical" invariant (:6-8,ROCE_ABI_VERSION 14at:160). It is absent frompr_files— not forked, not diverged. - No dependency, pin, or external-reference change. No manifest, lockfile, submodule, or recipe reference touched. The description links no unmerged upstream PR or unmerged external recipe, so there is no unpinned external dependency.
- No cross-PR conflict. The two merged parents (#659 at 20:57, #711 at 22:02, both from base
cb191a93) are the other halves of a semantic merge conflict the diff repairs; nothing is reverted or superseded. No competing fix exists.
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:
- No change to admission, fences, generations, cancellation, speculation accounting, cache compaction, snapshot aliases, response buffering/ownership, offload aggregation, readiness, or rank coordination — behaviorally or structurally. The modified statement is a struct field initializer.
- No change to completion-vector validation, prepared completion contracts, state-view extent arithmetic, or sequential validators → Kani N/A.
- No safety guard added or changed →
--mutationsN/A. - No existing gate is weakened or silently skipped (
docs/verification.md:140-144; "never touch covered code without running its formal checks"). The test in question did not compile before this PR, and it is not in the lifecycle checker's executed set (verification/helios-lifecycle/check.py:325-338listsscheduler::cache_memory::tests::*ofhelios/src/scheduler/cache_memory.rs(not opened) — a different module fromhelios/src/runtime_core/cache_memory.rs), so the fix restores a check rather than displacing one. Notably the edit makes no attempt to delete the test, drop the struct field, or add another#[ignore]— the #397 anti-swallowing rule is respected. - No core-format change → no live export/serve + legacy replay gate.
- No performance claim anywhere in the description → no
main-vs-branch served-workload A/B benchmark required. - Layer 1 is the correct and satisfied layer.
docs/design-review.md:180-184names exactlycargo test --locked --release ... helios with --features runtime-core,servermatching.github/workflows/native-serving.yml(not opened). The author's reported command (--manifest-path helios/Cargo.toml (not opened) --features runtime-core,server --lib cache_memory::tests→ 52 passed / 0 failed / 4 ignored) is that command with a test filter.cargo checksubstituting forcargo testis not happening here. - No failing CI/test evidence against this PR. Neither the description nor the Discovery Dossier reports a failing check on
1efb1f0. The dossier's "no checks registered at snapshot time" is explicitly not a failure and is not flaggable under my calibration rules. The only reported failure is onmain@45e1c1ad— the pre-fix state the PR exists to repair — disclosed with a reproduction command and a post-fix pass count, and independently corroborated in #713's comment. - Claim substantively verified by inspection: I re-derived exhaustiveness rather than trusting the description. Every
Core { .. }inhelios/src/runtime_core/is now complete:cache_memory.rs:1386(→:1397) and:1659(→:1670),engram.rs:602(not opened),format.rs:645,memory.rs:2003(not opened),model.rs:1804,persistent_worker.rs:1607 (not opened)/2083/2373/2743,protobuf.rs:518/1539/1860,selection.rs:575(not opened). The one construct that looks like a field-less literal,model.rs:1829-1832, uses functional-update syntax (..worker_core()), which needs no field. So no residualE0063remains in the crate.
Gate 4 — Material scope / claim contradictions: PASS
- No phantom artifact claimed. No benchmark, exported core, compliance report, or test is claimed to exist that is absent from the diff. The only evidence line names a command and counts, and the command is the repo's own documented one.
- No unrelated bulk. +1/−0 in one file; nothing resembling bundled standalone tooling.
- Tooling artifact to discount, not a finding:
pr_diffreturns a cumulative stale-merge-base diff (.github/workflows/native-serving.yml(not opened),AGENTS.md,docs/*.md, a largecache_memory.rshunk from #659/#674). That is not this PR's change —pr_files(one file, +1/−0) is authoritative, and the artifact was already identified in the #713 review. - Routing observation to other lenses, not reported as a violation here: the test now compiles but still cannot execute anywhere (it is
#[ignore]d and not incheck.py's executed list), so the VMM granule-tail path it guards has no executed coverage. That is a pre-existing gap introduced by merged #659, not created by #714, and repairing it is explicitly out of this PR's stated scope.
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)
- No CI / no observable check runs on
1efb1f0— my tools cannot query Actions, and neither the description nor the dossier shows a failure. Not a finding. - No
docs/TODO.txtbookkeeping demand — inappropriate for a small bug fix. - PR-description line-number nuance — the body cites
:1659for the "missed literal"; at the PR head the literal begins at:1659and the added field is:1670. Accurate enough, cosmetic, not a contradiction. - Informational overlap with open draft PRs — none; #694/#314/#713 only inherit the breakage and are unblocked by this, which is a benefit rather than overlap.
- Charter alignment — squarely inside "PRs that address … a reproducible bug"; root cause addressed rather than tolerated; no per-model branch, flag, alias, or format; no scope expansion under
design-review.md:135-146. Also within the< 200 LOCsmall test-fix class where a targeted unit run and no GPU/lifecycle/contract gate is exactly the expected bar.
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:
helios/src/runtime_core/cache_memory.rs:1397,:1670helios/src/runtime_core/engram.rs:630helios/src/runtime_core/format.rs:666helios/src/runtime_core/memory.rs:2013helios/src/runtime_core/model.rs:1827helios/src/runtime_core/persistent_worker.rs:1610,:2086,:2376,:2835helios/src/runtime_core/protobuf.rs:1670,:1864helios/src/runtime_core/selection.rs:584
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:
- identical architecture probe —
cache_memory.rs:1377-1385≡:1650-1658:let mut architecture = [0; 2]; for (value, attribute) in architecture.iter_mut().zip([75, 76]) { ... "cuDeviceGetAttribute" ... .unwrap(); } - identical properties block —
cache_memory.rs:1400-1406≡:1673-1679:AllocationProperties { kind: 1, handles: 0, location: Location { kind: 1, device }, windows: std::ptr::null_mut(), flags: [0; 8] } - identical granularity probe —
cache_memory.rs:1407-1413≡:1680-1686:driver.check("cuMemGetAllocationGranularity", (driver.granularity)(&mut alignment, &properties, 0))
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)
- No CLI flag, config key, env var, manifest, or docs change —
pr_filesis one file,+1 −0. - No suppressed/disabled test, no
allow(dead_code), no deleted assertion. helios/src/runtime_core/test_support.rsis a core-fixture publisher/authenticator helper (publisher(),authorize(),inspect()), not aCoreconstructor — not an existing home for Follow-up 1.
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.
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)
- Mirror staleness, not a defect:
search_codeforexternal_extentsand forstruct Coreinhelios/src/runtime_coreatref=mainreturns no matches, while atpr/714it returns many. The localmainsnapshot predates#659(1cc15c01, sentinel-row aliasing) and#711(45e1c1ad, AsyncTransfer) — which is exactly why the twoCoreliterals atcache_memory.rs:1386/:1659exist and whyalias_planeatmain's:67still has the pre-#4735-parameter signature versus the 6-parameter midpoint-grouped version at PR head (cache_memory.rs:67and caller at:141). This astute-looking discrepancy explains the PR but is not a code bug; I verified it rather than reporting a false positive. - PR-description verification numbers (
52 passed, 0 failed, 4 ignoredforcache_memory::tests) do not reconcile with this module's 18#[test]with 2#[ignore]. Description accuracy is outside this lens (handled by other specialists); the code claim — restoring--features runtime-coreunit-test compilation — is satisfied by the field addition, and the test at:1636remains#[ignore = "requires an assigned CUDA_VISIBLE_DEVICES GPU"], so it still compiles but does not run in CI.
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.
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
- Compile-only reach: the only edited construct is a struct field initializer in a
#[cfg(test)]module (cache_memory.rs:896+), inside a test that requires an assigned CUDA GPU (:1637). No served, exported, wire, CLI, or metric surface changes;Coreispub(super)(format.rs:24), so it cannot affect any artifact or default. - Restores rather than displaces a check: before the PR the
--features runtime-coretest build fails withE0063, and the affected test was never inverification/helios-lifecycle/check.py's executed set (:319-338builds with--features serveronly, and listsscheduler::cache_memory::tests::*from a different module), so no existing gate is weakened, deleted, or#[ignore]d. - Unblocks the queue:
native-serving.yml:63(Linux) and:68(Windows) runcargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server, androce = ["runtime-core", ...](helios/Cargo.toml:27); every open helios PR rebasing onto post-#711main inherits the breakage until this lands.
Walkthrough
#711(format.rs:15-36) addedpub external_extents: Vec<ExternalExtentTable>toruntime_core::format::Coreand extended the first test literal (cache_memory.rs:1386-1398, field at:1397).#659had already added a secondCore { .. }literal in its sentinel-row GPU test (cache_memory.rs:1659-1671); because it lacked the new field, post-#711mainfails to compile that test module — a semantic (ordering) merge conflict, not a defect in either parent.- This PR adds the missing
external_extents: vec![],at:1670, completing the 11-field literal (format.rs:25-35) in declaration-adjacent order and matching the other 13 sites (engram.rs:630,format.rs:666,memory.rs:2013,model.rs:1827,persistent_worker.rs:1610/2086/2376/2835,protobuf.rs:589/1670(RankBody)/1864,selection.rs:584). - Value correctness verified, not just compilability: the only consumers are
protobuf::validate_async_transfers(protobuf.rs:492-511, reached only viaformat.rs:519whenexecutionisSome) andNativeResources::prepare_async_transfers(mod.rs:1489-1494, which returns early whenasync_transfersis empty). Withexecution: Noneand no inline channel extents,vec![]is the only valid value — a non-empty table without a matching manifest is actively rejected at export/validation. - Exhaustiveness re-derived independently: 14
Core {sites searched inhelios/src/runtime_core/and 14 correspondingexternal_extents:initializers;model.rs:1829-1832uses functional-update syntax (..worker_core()), so it needs no field. Wire-sideRankBody/CoreBodyliterals outsideruntime_core(core/export.rs,core/protection.rs,core/cache.rs,core/schema.rs) all end in..Default::default()(e.g.export.rs:3054,schema.rs:1213) or clone (model.rs:1676), so no residualE0063site exists anywhere in the crate.
Pre-merge Checks
- [PASS] Security / malicious screen: One inert field initializer in a test; no new dependency, network, file, env, or privilege surface. No instruction-like or exfiltration content in the PR body.
- [PASS] Charter & value fit: Squarely "PRs that address … a reproducible bug", root cause fixed rather than tolerated (no test deletion, no new
#[ignore], no dropped struct field — the #397 rule is respected); no per-model branch, flag, alias, format, or wire change. All four required description parts are present, including theDiscord: jcartuline (docs/design-review.md:163-169). - [PASS] Related / duplicate / conflict check: No competing or duplicate fix; it repairs the seam between merged
#659and#711and supersedes nothing. It is a prerequisite for open#694/#314/#713, which inherit the breakage on rebase (merged#674's review had already asked for merge-order coordination on this file). - [PASS] Tests & verification evidence: The reported
52 passed, 0 failed, 4 ignoredreconciles exactly with the tree: filtercache_memory::testsmatches bothruntime_core::cache_memory::tests(18#[test], 2#[ignore]at:1363/:1637→ 16+2) andscheduler::cache_memory::tests(38#[test], 2#[ignore]at:1911/:2025→ 36+2), withpub mod scheduler;unconditional atlib.rs:30. Layer 1 (docs/design-review.md:180-184) is the correct and sufficient layer for a test-literal fix; no TLA+/Kani/mutation/GPU-benchmark trigger applies.
Blockers
None.
Should Fix
None.
Subtract / Simplify
helios/src/runtime_core/cache_memory.rs:1386-1398,:1659-1671(and 12 more) — collapse hand-maintainedCoreliterals onto struct-update syntax (follow-up PR, out of this PR's scope).#711edited 13 of 14 literals and missed this one; that is the bug, and it recurs on the next field add. Every field ofCore(format.rs:24-36) already implementsDefault(Contextderives it at:38), so a test-onlyfn empty() -> Corein thetestsmodule enablesCore { architecture, ..Core::empty() }today. The idiom already exists one file over atmodel.rs:1829-1832(..worker_core()), which is exactly why that second literal needed no edit from#711whilecache_memory.rs's second literal did. Keep it#[cfg(test)]rather thanimpl Default for Core, because a default-constructed core is invalid by construction (format.rs:287-289: emptyallocations/graphs→invalid("unsupported or empty runtime core")).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). Onefn cuda_device() -> (Driver, c_int, [i32; 2])helper would delete the duplicate architecture probe,AllocationPropertiesliteral, and granularity probe; the compact closure form already exists atpersistent_worker.rs:1356-1366. No assertion changes.
Nits
- Description cites
:1659for the "missed literal"; the literal begins at:1659(let mut core = Core {) and the added field is at:1670. Cosmetic; use:1670when diffing by line number. - The repaired test remains
#[ignore]d (:1637) and is not inverification/helios-lifecycle/check.py's aux list (:325-338), so thetail == 0VMM path still has no executed CI coverage. Pre-existing from merged#659(which supplied SM120 hardware evidence), explicitly outside this PR's stated scope — worth a tracked follow-up, not a request here. - If the PR page or tooling ever shows extra files (
.github/workflows/*,AGENTS.md(not opened),docs/*.md) for this PR, that is the known stale-merge-base diff artifact;pr_files(one file, +1/−0) is authoritative, and the head state already contains#659's sentinel code and#711's field, so a merge adds only this line.
Dropped on verification
- "
52 passed / 4 ignoreddoes not reconcile with this module's 18 tests / 2 ignored" (Code-Correctness audit): False. The filter also matcheshelios/src/scheduler/cache_memory.rs(lib.rs:30compilesschedulerunconditionally): 16 + 36 = 52 runnable, 2 + 2 = 4 ignored. The author's numbers are exactly reproducible. - "Design-review acknowledgment trailer may be missing" (Contracts audit
Info): Unobservable, not absent — commit bodies are not readable through these tools (search_historyfails withfatal: Failed to traverse parents of commit ef38cb93…), and.githooks/commit-msg:50-63machine-rejects any commit lacking exactly oneDesign-Signed-Off-By: …; design-review=<hex>trailer. Not a flaggable finding. - "No CI checks on
1efb1f0": Anti-pedantry category — no failure is reported anywhere, andnative-serving.yml:6triggers on anypull_request, so a run registers on its own. Recorded as a pre-merge check, not a finding. pr_diffreturning a large cumulative diff (.github/workflows/native-serving.yml(not opened),AGENTS.md(not opened),docs/*.md, a multi-hundred-linecache_memory.rshunk from#659/#674): Tooling artifact, not this PR's change. Decisive proof: the head state already contains the#659sentinel machinery (sentinel_granules,fixed_segments, midpoint-ordered placement) and the#711field, andpr_filesreports one file, +1/−0.- "The missing field may exist at other
Core/RankBodyliterals too": False forCore— all 14 sites verified with the field. False forwire::RankBody/CoreBody— those literals use..Default::default()(export.rs:3054,schema.rs:1213,cache.rs:9219,model.rs:1615/1645) or..rank.clone()(model.rs:1676), so noE0063risk exists outside the one fixed site. - "
vec![]may silently change async-transfer behavior": False.prepare_async_transfersearly-returns onexecution == None(mod.rs:1489-1490) and on an emptyasync_transferslist (:1492-1494);validate_async_transfersis reached only withSome(execution)(format.rs:519). An empty table list is inert and selects the legacychannel.extentspath (mod.rs:1515-1553). - "The design-review test-literal edit needs simulator/formal/GPU runs": Not triggered — no admission, fence, generation, cancellation, speculation, compaction, snapshot-alias, response-buffering, readiness, or rank-coordination change (
docs/design-review.md:209-230); the modified statement is a field initializer. docs/TODO.txtbookkeeping / description phrasing notes / overlap with draft#694,#314,#713: Excluded per the anti-pedantry rule; those PRs only inherit the breakage this fixes.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 98.9% -
none: 0.9% -
triage:verify-for-closure: 0.1% -
triage:integration: 0.1% -
triage:design-review: 0.1% -
triage:validation: 0.0% -
triage:partial: 0.0% -
triage:investigate: 0.0% -
triage:superseded: 0.0%
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:
- Same silicon family as the documented driver quirk. The code comment this test exists for (
cache_memory.rs:376) names "NVIDIA Linux driver 615.71.10 … Blackwell VMM" anddocs/runtime-core-design.md:879-888qualifies the whole feature on "sixteen RTX PRO 6000 Blackwell GPUs with NVIDIA driver 615.71.10". A failure here is actionable against known hardware; a failure on GB10 is a new, confounded data point. - Host-side build prerequisites already in place.
helios/build.rs:7-79compiles prototypes underruntime-core, soprotoc(protobuf-compiler) is required, pluscmake/liburing-devper.github/workflows/native-serving.yml:36(not opened). Use cn5's amd64 Linux host for both the build and the run so build artifacts are never mixed. cn7would dilute the result. GB10 is SM121 with unified memory (docs/model-preparation.md:478(not opened); budget =MemAvailable,docs/runtime-core-design.md:807-810), so the KV-page arithmetic that the sentinel saving feeds is capped elsewhere, and GB10 is arm64 (different toolchain). Keep it out unless maintainers separately want SM121 qualification (docs/TODO.txt:373).
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:
cache_memory.rs:1716layout.fixed_segments() == (2, alignment, 0)— the exactly-two-granule row produces no unaliased tail (the driver-quirk avoidance path).:1717verify_physical_invariants(...)— contiguous plane coverage, granule-aligned offsets, alias ranges enclosing every touched page.:1763g1_seen == probe— writing the 4 KiB probe at row 0 also changes the second granule: the two granules really are one physical mapping.:1729row 0 reads back all zeros;:1775row 1 (0x7Bfill) is untouched — aliasing did not bleed into the next row.
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
- Serving a model (
facebook/dinov2-base,local-inference-lab/GLM-5.3-Flash-NVFP4, …) — nothing in this PR touches model I/O, and no perf claim is being tested. - Full
--features runtime-core,serversuite or the workspace — CI owns it; it is 10× the compile for no coverage of this change. cn7/GB10 — only if maintainers separately want SM121 sentinel-row qualification; then run only Steps 1, 3, 4 there and record arch separately so it is never pooled with cn5.- TLC / Kani /
cargo-mutants— no admission, fence, generation, cancellation, snapshot-alias contract, or sequential-validator change.
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:
- Report the analytic number from Step 5 (
(floor(row_bytes/alignment) − 1) × alignmentbytes/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. - Leave a served A/B to a separate PR if maintainers want the
#210bar cleared for the feature:mainvs#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
- Description's verification command is not runnable as written (process, low).
cargo test --features runtime-core,server --lib cache_memory::testsneedsFLARE_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 acrossruntime_core::cache_memory::tests18/2 andscheduler::cache_memory::tests38/2, withpub mod scheduler;unconditional atlib.rs:30), which reconciles with the author's figure. - 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
--ignoredand the lifecycle checker builds--features serveronly. 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#714makes it buildable. - 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. - 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
- Test? Yes — one GPU of
cn5, ~20 min wall / ≤5 min GPU, one job. - Why: the change unblocks the first-ever execution of the
#659sentinel-row VMM aliasing path on Blackwell (docs/verification.md:14;docs/runtime-core-design.md:884); CI cannot run it. - Do: Step 1 build (
--features runtime-core --lib --no-run), Step 2 negative control (assertion mutant must fail), Step 3 the repaired test (fixed_segments()==(2,alignment,0), granule-1 aliasing, row 0 zero, row 1 intact), Step 4 the partial-tail sibling test, Step 5 the CPU anchor (38 × 2 MiB = 76 MiB/rank). - Don't: serve a model, run
runtime-core,server, use cn7, or hunt for a speedup — none is claimed here; the saving is#659's and is KV-page capacity, reported analytically.
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:
- PR #714 is genuinely
+1/−0:external_extents: vec![],athelios/src/runtime_core/cache_memory.rs:1670, inside the#[ignore]d testcuda_sentinel_row_with_exact_granule_stride_maps_without_tail(:1636-1638). It is inert at runtime —execution: Noneat:1667, andprepare_async_transfersearly-returns atmod.rs:1489-1494. The sibling literal from#711already had the field at:1397. - Every pass criterion in Step 3 exists verbatim:
:1716assert_eq!(layout.fixed_segments(), (2, alignment, 0)),:1717verify_physical_invariants,:1729row 0 all-zero,:1763assert_eq!(g1_seen, probe),:1775row 1 intact. Sibling test at:1363-1364; driver-quirk comment at:376-378(615.71.10 / Blackwell / partial-handlecuMemMap). - Supporting citations hold:
docs/verification.md:14is quoted exactly; saving formula(floor(row_bytes/alignment) − 1) × alignmentatdocs/runtime-core-design.md:811-817;sentinel_saved_bytesatcache_memory.rs:69-71,sentinel_granules:63,fixed_segments:133-141;row_backing_bytessubtracting it atmemory.rs:454-471; driver load atos.rs:11-12; SM 75/76 re-validation atmod.rs:350-359. - The Step 2 negative control is sound: line 1763 is the exact line,
row1(0x7B, 4 MiB) is in scope and cannot equal the 4096-byte 0xA3 probe, so the mutant must fail wherever the test runs. - Charter confirms no benchmark is owed:
#210binds PRs claiming speed, and this one claims none.
Corrections I made to the plan's own reasoning (three real issues):
- 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:887states 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. - The
--listcheck will appear to fail (low, but it is a copy-paste step). Step 1 expects$BIN --list | grep cache_memoryto show "the 18 runtime_core::cache_memory::tests entries." Withpub mod schedulerunconditional,grepalso matchesscheduler::cache_memory::tests— the real count is 56 (18 + 38), not 18. An operator following the plan would think the build was wrong. - 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.