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:
- multiple simultaneously active prefill requests per graph (previously one request per replay;
docs/core-design.md:420still states "Prefill scheduling | One request per chunk"); - a new aggregate row layout (
InputIndexing::PackedTokensized topacked_token_capacityP,helios/src/model/packing.rs(not opened), described in the newhelios/model-contract.md:188-209§"Optional packed multi-request prefill"); - per-lane
SampleEnabled/QueryLengthsampling semantics forTERMINAL_PREFILL(docs/packed-prefill-design.md:89-92); - a new eligibility rule derived from the absence of vision bindings (
helios/src/model/packing.rs:111-130(not opened)).
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:
helios/src/scheduler/cost.rs(diff hunks at theset_measured/observesites andentry()) now createsPrefillCostModeland callsrefresh_prefill_context_slopes()only forkey.batch == 1.docs/scheduling-runtime-design.md:463-488states unconditionally that for "pure prefill graphs (PREFILL,TERMINAL_PREFILL, andSCORED_PREFILL), samples are stratified across six fill-ratio and KV-context depth buckets… Predictions fit a three-parameter nonnegative linear model". Packed shapes silently lose profiling and slope borrowing; the normative text is untouched. This is also an undeclared change to solo-prefill pricing behaviour (the PR lists only "registers B >= 2 packed prefill graphs … and tracks per-shape replay durations viaReplayTimes").docs/scheduling-runtime-design.md:21-23enumerates the native catalog ("prefill, terminal prefill, scored prefill, ordinary decode, complete speculative generation, mixed prefill/generation, vision, and state operations") and:455-457enumerates cost-entry identity ("Physical graph kind, batch capacity, token capacity, proposal depth, mixed prefill capacity, and packed verification capacity identify a cost entry"). Neither admits packed multi-request prefill, and the doc has zero occurrences of "packed prefill". The new cohort algorithm is documented only in the standalonedocs/packed-prefill-design.md, which the canonical scheduler doc does not reference.ignition/cli/serve.py:462-471narrows--packed-verificationtosignature.kind == "speculative".docs/cli-design.md:255,765-766describes the packed-verification/--mtp-*-verification-token-budgetsurface without this restriction, andAGENTS.md:230requiresdocs/cli-design.mdfor CLI behaviour changes. A core whose only non-zeropacked_token_capacityis on a non-speculative graph previously passed this check and now getsUsageError("this prepared recipe does not declare packed verification capacities"). The change may be a correct tightening, but it is a user-visible public-CLI contract change bundled silently into this PR (it is absent from the "What changed" list).
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)
- No vendored upstream file is forked in this PR: the 21 changed files contain no
helios/native/*,selene*,eos, or third-party C/Python sources. There is no local edit ofhelios/native/roce_proxy.c(not opened) or similar ahead of an unmerged upstream PR. - The only cross-repo dependency is the companion recipe PR
local-inference-lab/hyperflare-recipes#153, which is linked by URL in the description and indocs/packed-prefill-design.md:45-46,112-137. It is not commit-pinned. That is consistent with existing practice (AGENTS.md:255-256: official exports run from the recipes repo, which pinsuv.lock), so I record it as Info / Nit: the design doc's §4 (lines 45-46, 112-137) documents recipe code that does not exist in this repository, so roughly a third of the new design document cannot be verified from this repo, and the −4.2% KV claim plus the 6/6 CUDA multi-lane parity tests live only there. - Open-PR overlap (#621 admission validation, #718 prefill KV handoff, #693 lane survival curves) is file overlap, not duplication of this feature — Info / Nit, no action.
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:
cargo test … --features runtime-core,server --lib: 1,894 passed, 49 ignored, 6 failures, attributed to unsetFLARE_TEST_TEMPLATE_DIR;- Python: 905 passed, 2 skipped, 3 failures in
tests/cli, attributed to "an older installedflare_heliopausewheel in the local venv".
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
- M6 (Major, folded into M5 above): the
--packed-verificationnarrowing (ignition/cli/serve.py:466) and the cost-modelbatch == 1gating (helios/src/scheduler/cost.rs) are material shared-behaviour changes absent from the PR's own "What changed" list, and the first introduces a new user-visible failure mode for prepared cores. - Minor:
ScheduledStep::validate_mixed/commitgained a generalstep.lanes.len() > step.batch_capacitycheck applied to every graph kind, not just packed prefill (helios/src/scheduler.rs, hunk at~:2611). It is a defensible invariant and low risk, but it is an undeclared validation change in the commit path of a PR that claims to be additive. - Info: the description lists
P <= prefill_chunk_sizeunder "manifest, catalog, and selection"; it is enforced at catalog validation (helios/src/model/catalog.rs:263-285), core selection (helios/src/runtime_core/selection.rs:257-300) and at scheduler registration (RequestScheduler::packed_prefill_graphs, which checkspacked > self.limits.prefill_chunk_size), not inexecution/manifest.rs. So the bound is runtime-enforced (the dossier's "selection-time only" framing is stale); only the bullet's placement is imprecise. No action. - Info: no unrelated standalone tooling is bundled; docs are ~186 lines and tests ~+550, and the
helios/src/runtime_core/cache_memory.rs(not opened) one-lineexternal_extents: vec![]test fix is a legitimate rebase repair, not scope creep. - No prompt-injection concerns: PR material contained no instruction to redirect this audit; nothing in it was treated as instruction.
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.