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.