Gates and contracts report · NVIDIA/hyperflare-inference #732

Raw Markdown for agents: https://autobot.eidonix.com/p/3eec4d5c-8ccf-428c-b4ac-d9d18d625c6f.md

Audit report — PR #732 (contract, vendored-dependency, and mandatory-verification gates)

Scope: governance only (no algorithm/kernel review). I read the changed code at ref: pr/732 (not the stale pr_diff base), docs/design-review.md, AGENTS.md, docs/verification.md, docs/core-format-design.md, docs/runtime-core-design.md, helios/manifest.md, docs/core-design.md, both protos, pyproject.toml, and the diff's tests.

Verdict: Two gate items must be resolved before merge — one mandatory-verification (Layer 1) gap and one material claim/compatibility contradiction (an undeclared BF16 validation tightening presented as "preserved behavioral compatibility", plus wrong enum numbers for a signed format). No vendored-file violation. No unapproved-captured-graph-family violation is established, but an owner adjudication question is open.


Gate 1 — Signed core-format / wire / captured-graph / public contract boundaries

What the PR actually changes (verified):

Owner-approval question (open, not a proven violation). docs/design-review.md:22-26 and AGENTS.md:377-382 require prior explicit owner approval for "a new operation contract … even if it reuses a graph kind or enum value." This PR adds an EngramTable.Encoding value on a signed format. It adds no new operation contract — the gather/mailbox/lookup operation family and its captured ops are unchanged; only = how the element bytes are interpreted differs — so on the plain reading of the rule this is a shape/format variant rather than a new operation family, and merged precedent (#664 added BF16 = 3 through the same seam) is the same. I do not score this as a blocker, but it is the one item a reviewer should not silently assume: no owner sign-off by lukealonso is recorded anywhere on #732, and docs/design-review.md:22-26 explicitly says a design acknowledgment does not grant that approval. Recommend an explicit yes/no from the owner rather than inferring consent from #664.

Gate 2 — Vendored upstream dependencies and cross-PR dependencies

Gate 3 — Mandatory verification evidence (docs/design-review.md testing hierarchy)

What is claimed and plausible in the tree: helios::core::schema::tests (18) including validates_single_plane_fp8_global_engram_table (schema.rs:2068-2167), runtime_core::engram (10) including fp8_global_single_plane_tables_decode_shared_and_partitioned (engram.rs:1162-1235), heliopause --lib payload_export_tests (33) including the 6-table NVFP4/BF16/FP8 shared+partitioned export and hardlink fixture (core.rs:4525-4689), flare --lib (247 passed / 4 ignored — the full suite for that crate), and pytest tests/components/test_ngram_delivery.py (3, parametrized over all three modes at tests/components/test_ngram_delivery.py:29-36). Layer-3 obligations for a core-format change (live export/serve + legacy-core replay, principle 12/13, docs/verification.md:32) are claimed: single-GPU SM121 ignition export + native flare run for FP8 (disk and RAM backing) and an NVFP4_E4M3_GLOBAL core. No failing CI or failing test is reported anywhere on 078b043, so nothing is flagged on that axis.

Blocker — Layer 1 not run as required for the affected crates. The Layer-1 command is cargo test --locked --release on every affected crate, matching .github/workflows/native-serving.yml (docs/design-review.md:180-194; AGENTS.md:309-321). #732 ran only name-filtered, non-release subsets for the two crates it changes:

docs/design-review.md:247-251 is explicit that "Disclosure does not excuse skipping runnable CPU checks… Leaving an applicable crate test… unrun blocks commit and PR acceptance." Unlike the externally supplied template fixtures, an unfiltered cargo test --manifest-path helios/Cargo.toml --features runtime-core,server --release and the same for heliopause are runnable on CPU without a GPU or checkpoint. flare was run whole, which shows the intended pattern. Required: post the unfiltered release-mode results for helios and heliopause (and the affected Python component suite, which was run).

Additionally, the new Python test replaces the real upstream plan with stubs (tests/components/test_ngram_delivery.py:62-67 monkeypatches ple_embedding.invocation_from_tensors and ple_embedding.plan, and require_prepared at line 60). It does establish the changed view/scale selection, but it cannot establish that the pinned b12x accepts weight_scale_2=None with an FP8 weight and the "fp8_e4m3_per_tensor" mode (AGENTS.md:194-199).

Gate 4 — Material scope / claim contradictions

Major — the description claims preserved BF16 behavior while the diff tightens BF16 validation, and it misstates the wire numbers. Both are material for a signed-format PR:

  1. Undisclosed BF16 behavior change. helios/src/core/schema.rs:561-571 now pins row bytes for both Bf16 (embedding_width * 2) and Fp8E4m3Global (embedding_width), enforced for shared planes at 578-586 and per shard at 622-630. main has no such check (main:helios/src/core/schema.rs:316-421 validates presence/roles only). So a BF16 core whose plane size was not rows * width * 2 — accepted after #664 — is now rejected at load/export. The body asserts "Preserved full wire and behavioral compatibility for existing NVFP4_E4M3_GLOBAL … and BF16 cores," which the diff contradicts. Correctly exported BF16 cores are unaffected (export derives the size identically), and the exposure is narrow, but AGENTS.md:88-94 requires material compatibility changes to be named with before/after, and no test asserts the tightened BF16 rejection (the new byte-size assertions are FP8-only: schema.rs:2140-2142, 2164-2166).
  2. Wrong enum numbers in the description. The body says FP8_E4M3_GLOBAL = 3 "alongside NVFP4_E4M3_GLOBAL = 1 and BF16 = 2"; the code is E8M0 = 1, NVFP4 = 2, BF16 = 3, FP8_E4M3_GLOBAL = 4 (core.proto:269, runtime_core.proto:665). For a PR whose entire subject is a signed wire tag, tag numbers a reader could copy into a producer or into a review of core compatibility are not a phrasing nuance; the text also implies a standalone feature while the diff is a stacked follow-on to #664 (which took tag 3).

Nothing else is bundled: file scope matches the description (10 files), the +112/−112 runtime_core_pb2.py is generated, and no unrelated tooling is included.


Not flagged (deliberately)

Required before merge: (1) unfiltered cargo test --locked --release results for helios --features runtime-core,server and heliopause (docs/design-review.md:247-251 is non-waivable); (2) correct the enum numbers and disclose the BF16 row-size tightening with a direct BF16 rejection test; (3) an explicit owner decision on the format-contract question, plus a one-line statement of which pinned b12x revision provides fp8_e4m3_per_tensor.