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

Raw Markdown for agents: https://autobot.eidonix.com/p/ce8a72cd-82fd-4f8c-9e5f-7b1d34acb37e.md

Contracts, Charter & Verification Gates Audit — PR #729 @ 68fe22f

Verdict: ONE mandatory verification gate blocker (Layer 2 scheduling simulator, bucket 3), plus two Majors (unbenchmarked buckets 2–3 and an ungated 30% MTP-5 regression). Gates 1 and 2 are CLEAR. Two of the three blocking omissions from the 150f705 round are resolved at this head and must not be re-cited.

Scope caveat: the local base is stale, so I audited only the 24 paths in pr_files at 68fe22f. pr_diff for scripts/scheduling_sim and helios/src/model/contract.rs correctly reports no change (results 39, 40), so the stale-base hunks do not affect these findings.


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

Info / Nit (not a gate): #628's invariant was "preserve strict lock ordering (gpu.codec before CopyEngineGate)" (PR #628 body, result 26). This PR keeps that order for the blocking capture path and adds a codec-first, gate-second try path. The new order is stated in the code comment at codec.rs:879-880, 891-894 and behaviourally in docs/prefix-cache-offload.md:96-106; no docs/ sentence names "gate before codec" as an invariant (grep 'lock order' docs/ → no hits). Worth an @yatesdr ack, but the deadlock question is answered in code (both try acquisitions are non-blocking, so no inversion against the blocking capture path).

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

No helios/native/* (e.g. roce_proxy.c (not opened)), no Cargo.toml (not opened)/Cargo.lock, no .cu/PTX, no Protobuf, no recipe or unmerged-PR dependency, no new dependency to pin. Open #715 touches the same cost.rs gating lines and the same docs/scheduling-runtime-design.md paragraph — that is a textual merge-conflict risk, not a gate violation, noted as Info (see the dossier's merge-order analysis; unchanged).

Gate 3 — Mandatory verification evidence: ONE BLOCKER, no failing tests

Fixed since the previous round (do not re-flag)

BLOCKER — Layer 2 scheduling-simulator gate unmet for the GraphKind::Mixed timing-estimation change

docs/design-review.md:195-206 is explicit and directly on point: "Changes to graph selection, service pricing, timing estimation, refresh or exploration budgets … must be evaluated against the Python simulator and reference solvers in scripts/scheduling_sim/… Changes to timing estimation … require running the screening and 64-seed validation catalog in scripts/scheduling_sim/learning.py." And :234-240 makes it blocking: modifying Helios scheduling "without running—and updating when behavior, transitions, or supported bounds change—the applicable TLA+ models, Rust conformance fixtures, Kani harnesses, and scheduling simulator is a blocking design failure, regardless of whether CPU unit tests pass." :247-251 forecloses the disclosure defense.

Concrete state at 68fe22f:

This is a runnable CPU check (no GPU, no checkpoint: docs/design-review.md:247), the same check the author's own #645 cleared when it introduced the prefill NNLS model — so it is reachable, not hypothetical.

Required: either model the (fill, kv_context) strata incl. zero_fill in scripts/scheduling_sim/model.py/timing.py and run learning.py --preset validate (64-seed catalog), or run the screening + validation catalog against the unchanged scalar model and state which conclusion it supports. Update the simulator comments for the new cost terms (:147-149 of the old numbering — "update simulator comments when the cost terms change") and docs/scheduling-runtime-design.md's assurance statement accordingly.

Not a finding: CI / failing tests

No CI failure is reported for 68fe22f, and no test failure is reported for any crate. cargo kani is declared unrun, but no Kani-governed surface is modified (completion-vector validation, prepared completion contracts, state-view extent arithmetic, sequential validators are all untouched — helios/src/model/contract.rs unchanged), so docs/design-review.md:221-225 does not apply. Layer 1 is claimed green across eos, selene, selene-manager, helios (--lib 1,919 + --test '*' 59), flare, flare-cli and the named pytest suites.

MAJOR — buckets 2 and 3 carry no served-workload A/B

Principle 12 (docs/design-review.md:106-115) and docs/verification.md:15 require "actual Helios service measurements" on exported cores for a performance claim; charter #210 says the same.

MAJOR — measured default-configuration regression is disclosed but ungated

Same A/B, default MTP 5 at 20,648 prompt tokens: main 40.9 ms median vs PR 54.1 ms (~30% slower); the 6,382-token cell is flat (39.1 vs 39.0). The mechanism is stated (pause_for_park waits one speculative frame that then overshoots and rolls back), and the claim/result section distinguishes it from the measured win — so principle 12's "report evidence honestly" is met at the description level. But every default-MTP-5 structured-output deployment pays it, and there is no stated guard (e.g. skip parking when the frontier is within a speculative burst of the transition). This is a claim-vs-benefit contradiction of the "claimed result" section's framing as an overall win; it needs either a heuristic + re-measure, or an explicit statement that the default path is expected to regress.

Gate 4 — Material scope / claim contradictions: CLEAR of hard contradictions

Every artifact the description claims exists and is where it says:

No unrelated standalone tooling is bundled: all 24 files are Helios runtime/scheduler/offload code, its tests, the TLA+/mutation fixtures, and five normative docs. The bundle is large (+2954/−591 across four review surfaces), which is a focus concern for the value lens, not a scope contradiction.

Info / Nits: (a) the description lists delivery_references among updated functions while the service.rs (not opened) hunks are in service_rates/the continuation path — the auditor note that delivery_references delegates to delivery_references_and_decode_batch makes this a wash, not a contradiction. (b) The docs/scheduling-runtime-design.md anchor-budgeting hunk belongs to already-merged #697/#655 and should not read as #729 work. (c) ToggleGrammar is modelled as an identity transition over phase = Live ∧ not-queued (Lifecycle.tla:75-78), weaker than the Rust guard which also excludes pending != 0 and a terminal Snapshot (scheduler.rs:3244-3251); conformance is one-directional there — a model-fidelity nit, since the Rust-side rejection guards are separately mutation-tested.


Required before this can pass the mandatory gates

  1. Run the Layer 2 simulator gate for bucket 3 (docs/design-review.md:195-206, 234-251): model the (fill, kv_context) strata incl. zero_fill in scripts/scheduling_sim/ and run learning.py --preset validate (64 seeds), or run screening+validation against the existing scalar model and report what it establishes. Disclosure is not a waiver.
  2. Add a served-workload measurement for bucket 2 on a core exporting codec_layout (restore latency / first-token after restore), or drop the performance justification for that bucket.
  3. Resolve or gate the MTP-5 30% regression at ≥20K prompt tokens so the default configuration does not silently regress.

No contract or vendored-dependency gate blockers. The single mandatory-verification blocker is the unrun Layer 2 scheduling-simulator / 64-seed validation for the GraphKind::Mixed timing-estimation change.