Case file — PR #688: fix(helios): align proposal_confidence manifest messages with submission-row layout
https://github.com/NVIDIA/hyperflare-inference/pull/688 · author jcartu · base main, head 7503941 · 5 files, +79 / −8 · open, ready for review, opened 2026-12-02, no CI checks, no reviews, no comments.
Key findings
- The code change is two error-string literals and nothing else. Both validation predicates are unchanged byte-for-byte (
helios/src/execution/manifest.rs:826-832buffer arm,:861-873graph arm), so the set of accepted shapes, wire formats and ABI are untouched. Verified against the diff and the head file. The rest of the diff is three Helios docs and one new test. - The "aligned all three specifications" claim is incomplete for the top-level
docs/tree. Three non-Helios design docs still print the old contract:docs/runtime-core-design.md:715,docs/core-design.md:1228,docs/scheduling-runtime-design.md:82all say FP32[2, request_slots, draft_capacity]. None are in the PR's file list. Precedent: PR #542 (closed) was blocked in review for leaving ~11 such cross-file doc sites stale. - The new messages are accurate for the runtime, not just for producers.
request_capacity() = max_active.next_power_of_two()(manifest.rs:583-585), and runtime readback indexes by submission row and truncates tobatch_capacity(transport.rs:1331-1348,server/runtime.rs:1813-1816,scheduler.rs:2507-2524). So the fix corrects a real misstatement rather than adopting a producer-only convention. - Adjacent buffer is genuinely slot-indexed and is left saying "per request slot".
completion_speculative_survivalis documented as "indexed by completion frame, physical request slot, and draft-prefix depth" (helios/manifest.md:347-355,transport.rs:377) and its own error atmanifest.rs:823still says "per request slot". PR #688 does not touch it — correct behaviour, but a reader diffing the two messages will see inconsistent vocabulary; no note in the description explains the asymmetry. - The claims that cannot be checked are the test totals. No CI run exists on head
7503941and no logs are attached; the "1879 helios / 254 flare / 245 flare-cli passed" figures and the specific run recipe (FLARE_TEST_TEMPLATE_DIR, 64 MiB locked memory) rest on the author's word alone. The structural claims all verify in source. - Small citation rot in the motivating issue. Issue #440 points at
manifest.rs:544-549/:579-584and atignition/components/packed_speculation.py:82-85(not opened); the Rust lines have moved (now:826-832,:861-873) and that Python file no longer exists (moved out with thehyperflare_recipessplit, commitda037284, 2026-11-22). The live producer isignition/direct/packing.py:46-56, still submission-row.
The change
Scope from pr_files / pr_diff:
| File | Δ | What |
|---|---|---|
helios/src/execution/manifest.rs |
+2/−2 | two Err(...) literals at :830 and :871 |
helios/src/execution/tests.rs |
+64/−0 | new test proposal_confidence_validation_describes_submission_row_layout |
helios/manifest.md |
+5/−2 | :160-171 now states [2, request_capacity, draft_capacity], request_capacity = max_active.next_power_of_two(), submission row, draft depth 1..=T−1 |
helios/model-contract.md |
+5/−3 | :227-233, same contract plus "submitted rows retain their lane order. There is no unframed confidence layout." |
helios/README.md |
+3/−1 | :301-304, same contract one sentence |
Before → after, verbatim at head:
manifest.rs:830— before: "proposal confidence requires two float32 frames indexed by request slot and draft prefix"; after: "proposal confidence requires [2, request_capacity, draft_capacity] float32 frames indexed by submission row (sized to max_active.next_power_of_two()) and draft depth 1..=T-1".manifest.rs:871— before: "confidence output requires [2, request_slots, draft_capacity] float32 frames"; after: "confidence output requires a speculative graph whose confidence_width equals draft_tokens and [2, request_capacity, draft_capacity] float32 submission-row frames covering confidence_width within draft depth 1..=T-1".
Unchanged predicates (verified, manifest.rs:827-829): Float32, rank 3, shape[0] == 2, shape[1] == self.request_capacity(), (1..completion_token_capacity).contains(shape[2]). And manifest.rs:861-870: kind == Speculative, confidence_width == draft_tokens, dtype/shape as above, shape[2] >= confidence_width, shape[2] <= T-1.
The new test (tests.rs:1334-1396) sets max_active = 3, asserts request_capacity() == 4, accepts [2,4,5] with confidence_width = 5, then rejects [2,3,5], [1,4,5], [2,4,16], Int32, asserting the substrings submission row, request_capacity, draft depth 1..=T-1 and the absence of request slot; then rejects three graph configurations (width_exceeds: width 6 / draft 6 / W 7; width_mismatch: width 4 vs draft 5; non_speculative: GraphKind::Decode, width 1) asserting speculative graph whose confidence_width equals draft_tokens, request_capacity, submission-row, draft depth 1..=T-1 and the absence of request_slots.
Not stated in the description (all minor, none behavioural):
- The two new literals use different spellings of the same idea — "submission row" in the buffer message vs "submission-row" (hyphenated, as the test asserts at
tests.rs:1392) in the graph message. - The test's negative assertions are asymmetric: the buffer loop checks
!error.contains("request slot")(tests.rs:1370) and the graph loop checks!error.contains("request_slots")(tests.rs:1394); neither arm asserts absence of the other spelling, so a regression reintroducing exactly the other form in one arm would pass. helios/manifest.md:166phrasing "indexed by completion frame, submission row …, and draft depth1..=T−1" mixes an index axis with a range in one list. Nothing the description claims is missing from the diff; nothing in the diff is undeclared except the spelling/assertion nuances above.
The why
- Issue #440 "Proposal-confidence checks name request slots but accept only one row count" — shieldstar, opened 2026-11-21 15:07, updated same day 16:08, label
area:scheduling, still open (this PR'sFixes #440will close it). It reports the two messages naming request slots while the direct and packed Python producers fill confidence rows in submission order, and that the validator accepts exactly one row count (max_active.next_power_of_two()) with no written rule anywhere. - The only comment on #440 is yatesdr, 2026-11-21 16:08, and it settles severity: the messages misname the rows but "the recipes that allocate the buffer allocate exactly that shape, so no manifest they produce is rejected." So this is a diagnostics/docs defect, not a functional bug — consistent with the PR restricting itself to strings.
- Demand is narrow and recent: one issue, filed ~11 days before the PR, no other item in the repository (open or closed in the last 30 days) mentions the submission-row/request-slot wording (searched). No duplicate or "+1" interest.
- The issue body carries an embedded "CLAIMS (internal only; cut before posting …)" block with record ids — an artifact of the reporting pipeline, not an instruction; not acted on.
Related work
- #440 (open, issue, shieldstar) — the fixed issue; see above. Its source pointers are now stale:
manifest.rs:544-549/:579-584→ present:826-832/:861-873;ignition/components/packed_speculation.py:82-85(not opened) → file no longer exists at head (search_history: last changed byda037284, 2026-11-22, "Stage hyperflare_recipes separation"; the packed/speculation recipes now live inlocal-inference-lab/hyperflare-recipes). - #621 (open, PR, jcartu, 2026-11-29) "Validate scheduler admission against the core parameter declarations" — same author, same two files (
helios/src/execution/manifest.rs+5/−1,helios/model-contract.md+4/−3) among 25 files. Itsmodel-contract.mdhunk is at:128-134, far from #688's:227-233, so textual conflict is unlikely; the two are independent, not stacked. #621 already has flare-autobot review history (Ready To Merge at55bab97), whereas #688 has none. - #542 (closed, FujitsuPolycom) — the closest precedent on process: it touched the same
helios/manifest.md+README.md+docs/batch-capacity wording and drew a reviewer blocker ("the batch-capacity specification is false in eleven places"), after which the author had to correctdocs/as well. Directly relevant to judging whether #688's three remainingdocs/sites are acceptable. - #555 (merged, Martin Vit) intermediate batch capacities 6/12/24 — last substantive edit to
manifest.rs/manifest.mdbefore the current round; #628 (merged, yatesdr,5d53040e, 2026-12-01) and #645 (merged, Luke Alonso, prefill scheduling overhaul) also touchedmanifest.rs. - The confidence/forecast line #688 documents but does not change, all merged earlier: #414 (yatesdr, seed host acceptance estimate), #515 / #522 (Martin Vit, GPU confidence calibration, per-request scope), #540 (PCCessna, timing refresh and acceptance credit across idle), #644 / #656 (Luke Alonso, per-step calibration, conditional acceptance). #688 builds on this body of work by describing existing behaviour.
- No competing, superseding or reversing PR exists for this topic.
Recent activity
- On the files #688 touches,
mainmoved after the branch point (c513e46):ef38cb93"helios/scheduler: explore smaller prefill chunks under active age-priced streams (#661)" (PCCessna, 2026-12-02) changed one of the same files. The diff renders cleanly, but no rebase status is observable. - The last commit to touch
helios/src/execution/manifest.rsbefore #688 was #628 (5d53040e, 2026-12-01, yatesdr); before that #555/#645. Last week'shelios/srcandhelios/traffic is dominated by scheduler/cost-model work (#681, #661, #665, #660, #663) plus #670 (reasoning tags/parsers) and #667 (Orbit/peer exports) — none of it overlaps proposal_confidence semantics, so #688 neither builds on nor conflicts with the current hot areas. - Who:
helios/srccommits in the last 180 days — Luke Alonso 237, Martin Vit 52, yatesdr 49 (and 261/56/53 forhelios/).
People
- jcartu (CONTRIBUTOR; Discord
jcartu). Last 180 days: 3 merged, 3 closed, 5 open. Merged areas: docs (3),helios/src(3),heliopause/src(1),helios(1),helios/proto(1). Their PRs follow a recognisable pattern — documentation, validation wording and tightening, long four-part descriptions with a local test-evidence table: #687 (flare-cli manpage wording), #686 (docs, DeepSeek tool_choice), #642 (ignition preparation), #621 (scheduler admission), #505 (merged, bind core-declared FP32 parameters), #418 (merged, strict function-tool schemas), #416 (merged, prefix-cache recency), #461 (open, docs tool selection), #520 (closed, snapshot slots). #688 is squarely in that pattern. - Area owners: Luke Alonso, Martin Vit, yatesdr (see counts above).
- Triage history of the motivating issue: filed by shieldstar, answered the same day by yatesdr, who is one of the three regular owners and has authored speculation/confidence work (#414, #405, #628). No maintainer has engaged with #688 itself yet.
- Normal reviewers here: the
flare-autobotreview bot plus humans/operators (voipmonitor posted a live-run report on #542). Neither has appeared on #688.
Community
Nothing found. pr_comments returns no comments; there are no reviews, no reactions and no CI checks on 7503941. Contrast #621 (two flare-autobot reviews within hours) and #542 (10 comments, two Autobot reviews, a live-run report) — #688 has drawn no attention yet, and it is under a day old. The issue it fixes drew exactly one reply.
Project fit
Per read_charter:
- Lines up — "What gets merged: … a reproducible bug, a measured performance/memory issue, or bad docs": #688 is a docs/diagnostics fix with a reproducible report (#440) and a maintainer acknowledgement that it is wording. The description has the four expected parts (why / what changed / expected result / evidence and limitations) matching the Code Review Standards' "expect four parts". "Keep the runtime small and model-agnostic" is unaffected: no model branches, flags or new API. The compatibility rule ("verify that existing data, artifacts, and exported cores still load") imposes no burden because no accepted shape, wire format, ABI number or protobuf field changes. It also matches "look for the smallest footprint in shared code".
- Does not line up — the repository's review habit (charter: "check interactions across every supported … layout", and #542's blocker) is to require all cross-file specs corrected at once;
docs/runtime-core-design.md:715,docs/core-design.md:1228,docs/scheduling-runtime-design.md:82remain stale, so the PR's "aligned all three specifications" is true ofhelios/*only.
Claims and evidence
Verified in the source at the PR head:
- Only the two
Errstrings changed; predicates identical (manifest.rs:826-832,:861-873). request_capacity() = max_active.next_power_of_two()(manifest.rs:583-585), so the new wording names the code's real contract.- Submission-row indexing is the runtime contract, not just the producers':
transport.rs:1331-1348allocatesrequest_capacity()rows and zips.take(graph.batch_capacity)against frame bytes in order;server/runtime.rs:1813-1816slices&confidence[..measured_step.batch_capacity];scheduler.rs:2507-2524requiresconfidence.len() >= step.batch_capacityand each row== T-1. - The live Python producers agree:
ignition/direct/packing.py:46-56pads tolayout.capacityand writes destination rowrow(enumerate order overstep.lanes) forSUBMISSION_ROW, usingrequest.slotonly forREQUEST_ROW;ignition/direct/scheduler.py:222-223,760-761,811,847-848validate and consumeconfidence[row][:draft_tokens]by submission row;ignition/direct/executor.py:193-196(not opened) andignition/bench/runner.py:100-103(not opened) return/read the whole frame. - The new test exists as described and its predicted rejections match the predicates:
[2,3,5]failsshape[1] != 4;[1,4,5]failsshape[0] != 2;[2,4,16]fails1..T(T = 16);Int32fails dtype;width_exceeds(width 6,shape[2] = 5) failsshape[2] < confidence_width;width_mismatchfailsconfidence_width == draft_tokens;non_speculativefails the kind check. - The two pre-existing tests the description says it verified do exist (
tests.rs:1310-1332eight_token_completions_accept_shorter_proposal_confidence;helios/src/model/packed_round_tests.rs:200-215confidence_output_requires_two_frames_and_covers_declared_prefixes) and neither asserts message text, so the new literals cannot break them. - No performance or behavioural claim is made, which is appropriate.
Not verified (unbacked):
- "helios 1879 passed (1817 unit + 62 integration), 0 failed, 84 ignored; flare 254; flare-cli 245" — no CI check on the head commit and no logs in the PR.
- The run environment claim (
cargo test --locked --releasewithFLARE_TEST_TEMPLATE_DIRand a 64 MiB locked-memory limit) — self-reported. - The stated limitation (CUDA/checkpoint/exported-core tests ignored, no GPU run) is honest and consistent with the code being untouched.
Reach
- Externally visible surface: two diagnostic literals (
manifest.rs:830,:871) and three Helios docs. No wire, ABI, configuration, default, dependency, deployment or Python change (pr_filesis three.mdand two.rs). - Consumers of the message text: none. Searching for "proposal confidence requires", "confidence output requires" and
request_slotsfinds only the two literals plus the test's negative assertions — nothing parses the old wording, so no downstream test or tool breaks. Tests that do construct or reject the buffer (execution/threaded.rs:1533(not opened),model/packed_round_tests.rs:207-211) match onunwrap/is_err, not on text. - Buffer allocators: unaffected.
ignition/preparation/execution.py:97-100 (not opened),215-216andignition/direct/scheduler.pycarry onlyconfidence_width; the accepted shape is unchanged. - Wire path:
execution/parallel/wire.rs:404-424(not opened) writes proposal-confidence rows usingmanifest.request_capacity()(exercised byparallel/tests.rs:471-522(not opened)) — unchanged. - Documentation reach is wider than the diff: the three stale
docs/sites above, plusdocs/mtp-design.md:371-377, which describes proposal-confidence forecasts without giving a shape;docs/runtime-core-design.md:697-699is the paragraphhelios/manifest.md:160-171mirrors and still omits the row extent. Noterequest_slotsis a legitimate, different quantity elsewhere (SchedulerLimits.request_slots= captured transport capacity,helios/manifest.md:211-213,docs/runtime-core-design.md:737-739), so this is a real inconsistency, not a mechanical rename of a single term. - Cores/recipes: nothing to re-export or re-verify; existing prepared cores remain valid.
Process
- Open, marked ready for review; single commit
7503941("fix(helios): align proposal_confidence manifest messages with submission-row layout", Joshua Cartu, 2026-12-02), which is also the newest commit at the PR head. Commit-subject style matches the repo'sfix(helios): …convention. - Size 5 files, +79/−8, no labels.
- CI: no checks on the head commit. The repo does have workflows (
.github/workflows/native-serving.yml(not opened),python-cpu.yml(not opened),helios-lifecycle.yml(not opened),release.yml(not opened)), so this means none ran or completed for this head, not that none exist. - Reviews/comments: none;
flare-autobothas not posted on it. - Age: opened and last updated 2026-12-02 — under a day old; base has drifted by at least
ef38cb93(#661) on the same files, with no observable rebase/conflict status.
Open questions / not found
- Whether the three stale
docs/sites (docs/core-design.md:1228,docs/runtime-core-design.md:715,docs/scheduling-runtime-design.md:82) will be treated as in-scope review blockers for #688, as they were in #542's review, or as follow-up — no maintainer has said either way. - Whether the deliberate asymmetry with
completion_speculative_survival's slot-indexed contract (and its untouched "per request slot" message atmanifest.rs:823) is intended to stay; nothing in #440 or #688 discusses that buffer. - No CI result exists to corroborate the reported test totals; not findable from the repository.
- Not opened:
ignition/preparation/execution.py(not opened) in full (only grepped forconfidence_width), anddocs/mtp-design.mdbeyond the proposal-confidence paragraph.