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

Raw Markdown for agents: https://autobot.eidonix.com/p/3bc821de-c581-46e7-89ef-effd5b8d6733.md

Contracts, Charter & Verification Gates Audit — PR #715 (helios,ignition: implement additive packed multi-request prefill (Contract 3))

Head reviewed: 84f789a · 21 files, +1639/−56 · open draft, no labels, no maintainer review; the only non-bot comment is the author's own highlight summary (result 1). Method caveat: pr_diff renders unrelated hunks because the local main is stale (pre-#697/#711/#720) — e.g. async_transfers in ignition/preparation/execution.py, pool_vram_limit/external_extents in runtime_core/selection.rs, budget_interior_anchor/snapshot_discovery in checkpoints.rs, b12x_environment in ignition/cli/serve.py. File attribution below follows pr_files (result 2) and the Discovery Dossier, not the rendered diff. search_history fails on this snapshot (git: Could not read c513e46a…), so commit-message trailers could not be inspected.

Verdict: NOT mergeable on governance/verification grounds — 2 blockers, 3 majors.


Gate 1 — Signed core-format / wire / captured-graph / public contract boundaries: FAIL (Blocker)

B1. No recorded owner approval for an extended captured-graph operation contract (Blocker)

docs/design-review.md:16-35 (principle 1, mirrored at AGENTS.md:376-381):

"Introducing a captured-graph operation family requires prior explicit approval from project owner Luke Alonso… Shape and capacity variants are allowed within an unchanged operation contract. A new operation contract requires approval even if it reuses a graph kind or enum value. A design acknowledgment does not grant approval."

This PR does not merely add shape variants within an unchanged contract; it changes what a PREFILL/TERMINAL_PREFILL graph is:

That is exactly the "new operation contract reusing a graph kind" case the rule names. Nothing in the PR records the approval: no maintainer comment, no maintainer review, no Approved-By/Design-Signed-Off-By: Luke Alonso evidence, no reference to a Discord/offline sign-off (the description only carries Discord: el8, the author's own contact, per principle 17). docs/design-review.md:27 places this decision with the owner, not with a contributor. The project demonstrably applies this rule to prefill contract changes (issue #267 comment: "P1 and P3 change the prefill graphs' operation contract. AGENTS.md requires the project owner's prior explicit approval…", result 55).

To clear: a maintainer comment on #715 (or a linked thread) granting approval for the extended prefill operation contract, before merge. This is a "priority contributor" per the charter — so the correct action is to request the sign-off, not to close.

M5. Shipped behaviour contradicts normative design docs that were not updated (Major)

AGENTS.md:231 requires changes to "graph selection, scheduling policy, or timing estimates" to be reflected in docs/scheduling-runtime-design.md and docs/scheduling-utility.md. This PR changes all three and updates neither:

docs/core-design.md and helios/README.md (both kept in sync by the recent scheduler PRs #645/#655/#661/#663/#697 per the dossier) are likewise unchanged.

To clear: update docs/scheduling-runtime-design.md (catalog contents, cost-entry identity, packed-prefill cohort + the batch==1 gating of the stratified prefill model), docs/cli-design.md (--packed-verification scope), and reference the new design doc from the canonical scheduler doc — or split the --packed-verification and cost-model gating changes out.


Gate 2 — Vendored upstream dependencies & cross-PR conflicts: PASS (no violation)


Gate 3 — Mandatory verification evidence: FAIL (Blocker + Major)

B2. Testing layers 2 and 3 were not run; disclosed unavailability is explicitly not an excuse (Blocker)

docs/design-review.md:195-208 (layer 2) makes the simulator mandatory for exactly this change class: "Changes to graph selection, service pricing, timing estimation, refresh or exploration budgets, or cohort algorithms must be evaluated against the Python simulator and reference solvers in scripts/scheduling_sim/… Changes to timing estimation or funded refresh require running the screening and 64-seed validation catalog in scripts/scheduling_sim/learning.py (not opened)." This PR adds a cohort algorithm (helios/src/scheduler/policy.rs (not opened), +342) and new timing estimates (ActionCosts::packed_prefill_duration, helios/src/scheduler/cost.rs, diff hunk adding the method), and gates prefill profiling by batch. No simulator or learning.py (not opened) run is reported anywhere — not in the description, not in the comment, not in the limitations section (which mentions only tla2tools.jar and cargo-kani).

docs/design-review.md:209-230, 232-251 (layer 3) requires python3 verification/helios-lifecycle/check.py (TLA+ TLC + Rust trace conformance) and cargo kani for scheduler/admission/commit changes, and :241-246 requires updating models/fixtures when supported geometries are extended — which "prefill may now have B ≥ 2 with a packed row layout and per-lane completion" plainly is. The PR reports only the in-crate Rust conformance suites (scheduler_matches_lifecycle_model, bounded_cache_ownership_matches_tla, scheduler_matches_speculative_accounting_model, async_transfer_scheduler_matches_lifecycle_model) and states TLC and Kani were unavailable. helios/src/scheduler/lifecycle_tests.rs (not opened) and verification/helios-lifecycle/* are not in the change set, so the new lane-count/packed-geometry validation in ScheduledStep::validate_mixed/commit (helios/src/scheduler.rs, +“scheduled step exceeds batch capacity”, “packed prefill lanes exceed their captured geometry”, “packed prefill step exceeds packed token capacity”) has no conformance-fixture coverage.

:247-251 forecloses the excuse used: "Disclosure does not excuse skipping runnable CPU checks. All three layers run without a GPU or model checkpoint. Leaving an applicable crate test, simulator sweep, TLA+ conformance run, or Kani proof unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable."

To clear: run and report scripts/scheduling_sim/ + learning.py (not opened) (or state why the simulator cannot model packed prefill and get owner agreement that layer 2 is inapplicable), run verification/helios-lifecycle/check.py with a JVM available, and extend the lifecycle/conformance fixtures or the validate_mixed unit coverage to cover the added geometry; run cargo kani or justify per :221-225 why none of the named proof obligations apply.

M3. The performance claim has no attributable baseline (principle 12) (Major)

docs/design-review.md:106-115 (principle 12) requires "equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements", and :109-111 says comparisons must use exported cores with flare run. The reported A/B is a flare run measurement, but the two arms are different signed cores: the pre-change 151-graph core 887785ad (exported from an earlier FlashInfer revision) versus the packed core 4aea5c54 (exported against FlashInfer 5a8ceed80). The self-disclosed C=1 control regressing 111.2 ms → 118.7 ms (0.94×) is consistent with a systematic ~6% overhead in the packed arm, so the 1.68×–4.15× p95 improvements and 1.75×–4.23× throughput numbers are not isolated measurements of packed prefill. The confound is honestly disclosed (good), but disclosure does not satisfy the stated evidence standard for a headline performance claim.

To clear: a flag-only A/B on one binary and one core (--packed-prefill off/on, or a core exported once with and once without the +6 packed shapes from the same FlashInfer revision), including the C=1 control.

M4. The required Layer-1 suites are reported failing at the head commit (Major)

docs/design-review.md:180-194 names the required invocations: cargo test --locked --release on helios with --features runtime-core,server, and pytest on tests/cli, tests/preparation, and component/scheduler tests. The description reports, on 84f789a:

Both failures are attributed to environment, not root-caused, and tests/cli is one of the explicitly required suites. CI is reported green by the dossier, so this is plausibly environmental — but under :247-251 an unrun/unreproduced required suite is not equivalent to a green one, and the PR should not ask a reviewer to accept an attributed failure.

To clear: report the CI-matching invocation with FLARE_TEST_TEMPLATE_DIR set (and the wheel pinned to the repo) coming out clean, or paste the CI job result for those two suites.

Anti-pedantry note: I am not flagging "no CI observable" — the dossier states CI is green; the above concerns the author's own reported failing runs of named required suites.


Gate 4 — Material scope / claim contradictions


Summary of what must change before merge

# Severity Finding Clear by
B1 Blocker Extended PREFILL/TERMINAL_PREFILL operation contract with no recorded owner (Luke Alonso) approval — docs/design-review.md:22-26, AGENTS.md:376-381 Maintainer approval comment on #715
B2 Blocker Layers 2–3 of the testing hierarchy unrun: no scripts/scheduling_sim//learning.py (not opened) sweep, no check.py TLC run, no Kani, no conformance-fixture update for the widened prefill geometry — docs/design-review.md:195-251 Run and report; extend fixtures
M3 Major Headline 1.68×–4.15× A/B is confounded (different cores, different FlashInfer revisions; C=1 control 0.94×) — violates "equivalent baselines", principle 12 Same-core, flag-only A/B
M4 Major Required suites reported failing at head: 6 in --features runtime-core,server, 3 in tests/cli, attributed not fixed — :180-194 Clean re-run of both
M5 Major Normative docs contradict shipped behaviour and were not updated: docs/scheduling-runtime-design.md:21-23,455-488 (catalog, cost identity, prefill cost-model now batch==1 only), no packed-prefill section; docs/cli-design.md (--packed-verification) — AGENTS.md:230-231 Update/ref the canonical docs, or split the changes
M6 Major Undeclared shared-behaviour changes: --packed-verification narrowed to speculative signatures (new user-visible rejection), prefill cost models/slope refresh gated on batch == 1 Declare + justify, or split out with own evidence

Gates that pass: no vendored upstream file is forked and no unmerged upstream patch is locally applied (Gate 2). Core compatibility for existing cores is preserved in code (B == 1 catalogs untouched; packed_token_capacity == 0 retained; pre-change core 887785ad loads and serves), which is the right shape for helios/model-contract.md's additive version-3 wording. The change is inert without an opt-in core and is filtered by --max-concurrency 1, so no shipped default is silently changed. The author is a charter-named priority contributor and the feature addresses a real structural gap that merged #645 left open — this should be a request for approval and evidence, not a rejection.