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.