Contracts, Charter & Verification Gates Audit — PR #716
Verdict: no contract-boundary, vendored-dependency, or Charter violations. One mandatory-verification gate is unsatisfied at head d061454: the Layer-1 cargo test for a core-loading change was replaced by cargo check, and the PR's own new test has never executed.
Gate 1 — Signed core-format / wire / captured-graph / public contract boundaries: PASS
- No proto change.
helios/proto/runtime_core.proto:662-686EngramTableandhelios/proto/core.proto:267(not opened) are byte-identical tomain: no newEncodingvalue, no new field, no reserved identifier consumed. The PR reuses the existingembedding_width = 3(runtime_core.proto:666), which the producer already emits verbatim (heliopause/src/export/core.rs:1674 (not opened): embedding_width: table.embedding_width) and which signed-core validation already requires to be non-zero (helios/src/core/schema.rs:345). So this is not a new contract surface, and no owner approval underdocs/design-review.mdprinciple 1 (captured-graph operation families) or principle 15 is triggered. - No normative doc is contradicted. I searched
docs/forembedding_width|scale_block|row_bytesandengram: no document states the NVFP4 engram row/scale geometry, so nothing needs updating.docs/core-format-design.md:91-102describes engram payload files;docs/runtime-core-design.md:326describes plane assembly only;helios/manifest.md:506-531covers bindings/mailboxes, not widths.docs/core-format-design.md:556-557("Engram vocabulary, table encoding geometry, and hash methods … must agree") governs the combiner and is unaffected — the change only widens what the runtime decoder accepts. - No model-specific branch, flag, alias, or default.
helios/src/runtime_core/engram.rs:119-131is the samematch encodingwith the NVFP4 arm now reading geometry from metadata:(width, 16, (width/2) as usize, (width/16) as usize)guarded byglobal_scalefinite/positive andembedding_width > 0 && % 16 == 0. The only remaining constants are NVFP4's inherent 16-element block and the untouched FP8 tuple (:120). This is precisely the Charter's "keep the runtime small and model-agnostic… no per-model branches (#267, #334)" direction, and it removes rather than adds a hardcoded model shape. - The derived geometry is validated against the signed payload, not trusted.
plane()atengram.rs:199-211requiresstored_rows * row_bytes == span.nbytesfor both weight and scale planes before constructingPlane. A mis-derivedrow_bytestherefore fails as"Engram payload geometry mismatch"instead of silently serving wrong bytes, and 160 →(160, 16, 80, 10)reproduces the retired constant exactly, so existing signed 160-wide cores load unchanged (docs/design-review.mdprinciple 13 /AGENTS.md:435-448satisfied by construction).
Gate 2 — Vendored upstream dependencies & cross-PR conflicts: PASS
- One in-repo file changed (
pr_files:helios/src/runtime_core/engram.rs, +57/−2). No vendored upstream file was forked (nothing underhelios/native/or any vendor directory is touched). - The external companions named in the description (
local-inference-lab/flashinfer#215,local-inference-lab/hyperflare-recipes#154) are linked, and are neither build- nor load-time dependencies of this diff; the in-repo prerequisite is already-merged #711. So the "unmerged external dependency without a pin or link" condition is not met.
Gate 3 — Mandatory verification evidence: ONE GATE UNSATISFIED (Major)
No formal/lifecycle/benchmark gate applies, correctly:
- No admission, cancellation, fences, generations, speculation, cache compaction, snapshot aliases, response ownership, offload aggregation, readiness, or rank coordination is touched, so TLA+
verification/helios-lifecycle/check.pyis not triggered — confirmed: that tree contains zero matches forengram|runtime_core. - No completion-vector / state-view extent arithmetic, so no Kani trigger (and
runtime_corehas no#[cfg(kani)]harnesses). - No performance claim, so no
main-vs-branch served A/B benchmark is required.
But Layer 1 is not met. This is a core-loading change, and cargo check cannot substitute for cargo test.
- Routing:
AGENTS.md:228sends "Change Protobuf metadata or core loading/export" todocs/runtime-core-design.md+ the#model-core-compatibilityrules;AGENTS.md:435-448requires loading/serving compatibility validation and "retain readers and tests needed by existing cores";docs/verification.md:32— "A core field change needs loading and compatibility tests." - The rule is explicit and non-waivable:
docs/design-review.md:180-186— mandatorycargo test --locked --release … --features runtime-core,server— plus "cargo checkdoes not substitute forcargo test"; and:247-251— "Disclosure does not excuse skipping runnable CPU checks. … Leaving an applicable crate test … unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable." - The PR's evidence is
cargo check --locked --release --features runtime-core,server, and the new testnvfp4_tables_accept_width_128_and_160_and_reject_unaligned_widths(engram.rs:798-847) — the first NVFP4 decode test in the crate, since the old arm was an untested constant — has never been executed. The reject half is entirely new behavior and is unvalidated. - The stated cause is real, not an excuse I can dismiss as pedantic: I verified at the PR head that
helios/src/runtime_core/cache_memory.rs:1659-1670still lacksexternal_extents, socargo test --libcannot build crate-wide. However the check is runnable: #714 (fix(helios): add missing external_extents field in cache_memory test Core literal, open, reviewed "Ready To Merge", +1/−0) supplies exactly that line. The author can rebase onto it (or apply the one-liner locally) and reportcargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server --lib runtime_core::engram. No code change is requested — only the mandatory evidence, which is what makes this Major rather than Blocker: merge order after #714 resolves it. - No CI failure is being inferred from unobservable GitHub Actions state; the gap is the description's own statement plus the reproducible build state at this head.
Gate 4 — Material scope / claim contradictions: PASS (no Major)
- The named test exists exactly as described (
engram.rs:798-847); no fabricated test or benchmark; no unrelated tooling; scope is +57/−2 in one file. No contradiction of the "completely absent artifact" kind.
Info / Nit (not blocking, not pedantic process)
- Two undeclared diff edits, and the #714 dependency is narrower than described. The diff adds
async_transfers: vec andexternal_extents: vec todecode_fixture, repairing this file's own #711 breakage; the description credits #714 for unblocking test execution without saying it already fixed its own fixtures. Residual blocker is onlycache_memory.rs:1659(and any other module with the same omission). Worth one line in the description because it changes the remedy for the Major above. scale_blockis still pinned to 16 —engram.rs:144-145(table.scale_block != block) rejects any table whosescale_block != 16, and scale bytes are derived aswidth/16on that assumption. The claim "any other 16-aligned NVFP4 width" reads as consistent with this, since 16 is NVFP4's defining block size, so I do not treat it as a contradiction — but a sentence stating the retained block-16 requirement would remove the ambiguity.- Textual overlap with open #664 (kbenkhaled), which rewrites this same
matcharm and thePlanetype. Whichever lands second rebases; informational only. - No live export/serve replay of a 128-wide core, and no 160-wide core replay artifact. The producer (
hyperflare-recipes#154) and kernel support (flashinfer#215) are external to this repo, and mis-derivation is structurally blocked by the span-length check atengram.rs:201-203, so I am not raising this as a separate gate — but a replay note after the unit test runs would closedocs/design-review.mdprinciple 12's "preserve model core compatibility" evidence loop. Design-Signed-Off-Bytrailer on the head commit cannot be verified with the tools available (repository history queries fail repo-wide), so I make no finding either way.
Bottom line
No hard contract, vendored-file, Charter, or scope violation. The single actionable gate is #3: run the crate test layer — possible now that #714 exists as a one-line fix — and report the result before merge; cargo check is explicitly not sufficient for a change to the signed core-loading surface.