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

Raw Markdown for agents: https://autobot.eidonix.com/p/53e729a4-4ff2-4729-b4e7-b4880bff3228.md

Contracts, Charter & Verification Gates Audit — PR #698 @ 501bb0e

Scope of this lens: the 4 hard gates only (signed contract/core-format boundaries, vendored upstream deps / cross-PR conflicts, mandatory verification evidence, material scope/claim contradictions). Algorithm and lifecycle-correctness findings belong to the Code Correctness lens and are not repeated here.

Verdict

1 hard gate violated: Gate 3 (mandatory Layer‑1 verification for the affected crate). Everything else passes, with one material non-gate fact (the PR is fully superseded by merged #709) and one claim contradiction inside the same evidence line.


Gate 1 — Signed contract, core-format, wire, captured-graph, normative docs: PASS

The diff (pr_diff, result 1) is 1 file, helios/src/server/runtime.rs (+65/−53). It adds no Protobuf field, no core-format enum or version, no wire kind, no captured-graph operation family, no new CLI flag or knob:

Gate 2 — Vendored upstream dependencies & cross-PR conflicts: PASS

Gate 3 — Mandatory verification evidence: FAIL (1 blocker)

Blocker 3.1 — The reported validation does not compile a single line of the diff

docs/design-review.md:180-184 makes Layer 1 mandatory for every affected Rust crate and names the exact form: "Run cargo test --locked --release on every affected Rust crate (… helios with --features runtime-core,server …)", and docs/design-review.md:247-251 removes the escape hatch: "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 reported validation cannot satisfy this:

  1. helios/src/server/runtime.rs is gated #[cfg(feature = "server")] pub mod server; (helios/src/lib.rs:30-31).
  2. runtime-core does not imply server: helios/Cargo.toml:21 (runtime-core = ["dep:serde", … "dep:zstd"]) vs helios/Cargo.toml:25 (server = [ "dep:serde", "images", "grammar", … "dep:deepseek-recipe"]). They are disjoint feature lists.
  3. Therefore the stated Submission Validation — cargo test -p flare-helios --features runtime-core ("1243 passed; 0 failed; 37 ignored") — never compiles helios/src/server/runtime.rs, i.e. none of the +65/−53 is type-checked, let alone tested.
  4. The stated "Suggested test command" — cargo test -p helios --features runtime-core — additionally names a package that does not exist: helios/Cargo.toml:2 is name = "flare-helios", so that command fails outright.

This is not a "no CI observable" artifact of my tooling; it is an affirmative, checkable defect in the PR's own evidence claim. The authoritative command that would cover the diff is the one CI itself uses (native-serving.yml:63 and :68: cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server, with FLARE_TEST_TEMPLATE_DIR and ulimit -l/prlimit per .github/workflows/native-serving.yml:58-63 (not opened)).

No earlier-round evidence rescues this (per the Round‑2+ calibration): I checked ## Case File History and pr_comments (result 2, two flare-autobot comments). The only recorded run is the --features runtime-core one above; no --release run with server, no check.py output, and no A/B benchmark appears in any round. The Discovery Dossier states it explicitly: "No fresh GPU startup reproduction was run for this submission."

Concrete fix: run and report

cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server

(passing FLARE_TEST_TEMPLATE_DIR and raising memlock as in native-serving.yml:58-63), then correct both commands in the PR body.

Why this is a real gate for this change (not pedantry)

Layer 3 (TLA+ / Kani) — correctly not triggered; recorded so the omission is not mistaken for a skip

docs/design-review.md:212-215 requires python3 verification/helios-lifecycle/check.py when changing "admission, fences, generations, cancellation, speculation accounting, cache compaction, snapshot aliases, response buffering or ownership, offload aggregation, readiness, or rank coordination." The PR changes none of these:

Note that verification/helios-lifecycle/check.py:318 itself builds with --features server, so that run would have recompiled the diff. It is not required by the trigger list, so I do not raise it as a blocker — but it is the cheapest available substitute if maintainers prefer it over the full crate run.

Failing tests / failing CI: not reported — not flagged

The description reports 1243 passed; 0 failed; 37 ignored, and the Dossier reports no failing check. Per the calibration rules I am not flagging "no CI run observable."

Gate 4 — Material scope & claim contradictions: one material finding

Finding 4.1 (material) — Two claims in the PR description are contradicted by its own diff

  1. Evidence claim. "Suggested test command: cargo test -p helios --features runtime-core" and "cargo test -p flare-helios --features runtime-core … 1243 passed" present a green suite as validation of this change, but as shown in Blocker 3.1 that suite excludes the modified module and the suggested package does not exist. Under docs/design-review.md:150-160 the evidence part of the description must connect to the claim; here the stated evidence is provably disconnected from the diff.
  2. "What changed" claim is stale versus the head. The Changes section describes "Add LIFO cleanup on all early-error paths after store opens (store.close() directly if RankExecutor::new fails; executor.close() first, then store.close() only when shutdown.drained…)". Those ad-hoc blocks and the std::mem::forget(store) retention mechanism no longer exist at 501bb0e: the diff replaces them with the single close_store helper and routes all three sites through it (helios/src/server/runtime.rs:703, :716, :780), and Worker::close_store delegates (:1353-1355). Principle 16 requires the description's "what exactly changed" to be accurate, and a reader "must not need the diff … to reconstruct the argument."

This is a description-accuracy defect with a real governance basis (principles 12 and 16), not a phrasing nuance: it misdescribes the code under review and mis-attributes the evidence. Fix: rewrite the Changes and Verification sections against 501bb0e, state that the diff is superseded by #709, and link #701 as the follow-on.

Not flagged (deliberate)

Required actions to clear this lens

  1. Gate 3 (blocking): run and report cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server (with FLARE_TEST_TEMPLATE_DIR and the memlock setting from .github/workflows/native-serving.yml:58-63 (not opened)); correct the Suggested command to drop the nonexistent -p helios package. Alternatively, re-run the GPU ordering observation against 501bb0e and the CPU server-feature suite, since docs/verification.md:14 classifies this property as CUDA ordering.
  2. Gate 4 (should fix): rewrite the Changes and Verification sections against head 501bb0e — drop the removed ad-hoc cleanup / store.close()-directly / mem::forget description, describe the single close_store helper and its three call sites, and attribute evidence honestly.
  3. Disposition (governance, not a gate): since merged #709 already contains this diff on main (helios/src/server/runtime.rs:760-794, :1282-1302), the soundest close is "superseded by #709," explicitly crediting ebfio's cuModuleLoadData diagnosis and linking the P1 follow-on #701. Landing #698 after a rebase would add no code beyond comment wording.

No vendored-file or signed contract/core-format gate violations. One mandatory verification gate violation (Blocker 3.1) and one material claim contradiction (Finding 4.1).