#1 [high] Research summary
Lens: Correctness, Contracts & System-Level Consequences — PR #688 @ 879dc01
Bottom line: the code change is two error-string literals; no predicate, no wire/ABI/config, no metric, no hot-path code changes. I verified that directly and found no correctness, concurrency, or platform-parity defect. The doc alignment is complete and accurate. What remains are four Minor items: one genuine diagnostic-vocabulary clash the PR creates between two adjacent messages, one nonsensical range the new strings print for a legal configuration (T=1), a nit, and the still-unbacked test evidence.
Verified sound (no finding)
- Behaviour genuinely unchanged.
pr_filesshowshelios/src/execution/manifest.rs+2/−2. Old and new literals sit at the same line numbers onmainand at head (main:manifest.rs:830= "proposal confidence requires two float32 frames indexed by request slot and draft prefix",manifest.rs:871= "…[2, request_slots, draft_capacity] float32 frames"; head: same lines, new text). Identical line numbering proves the predicates around them (manifest.rs:826-829,:861-870) are untouched, so no accepted shape, ABI number, or core-compatibility rule moved. The PR's "No accepted shapes, wire formats, or core compatibility rules changed" is accurate. - No downstream string coupling. Repo-wide search for the two literals returns only
manifest.rs:830/:871— no test, CLI, or doc parses these messages, so lengthening them cannot break a caller. - Layout claim itself is correct in source. Submission-row indexing is real:
transport.rs:1331-1347fills rows in lane order via.take(graph.batch_capacity),server/runtime.rs:1813-1816slices&confidence[..measured_step.batch_capacity],scheduler.rs:2519indexesconfidence[row]bystep.lanes.iter().enumerate().request_capacity()=max_active.next_power_of_two()(manifest.rs:583-585). - Docs: all six specs plus both messages now agree. Seven prose sites use
[2, request_capacity, draft_capacity]+Execution.max_active.next_power_of_two()(docs/core-design.md:1227-1231,docs/runtime-core-design.md:697-701and:717-721,docs/scheduling-runtime-design.md:81-86(not opened),helios/README.md:301-304,helios/manifest.md:164-169,helios/model-contract.md:227-233);grep request_slots, draft_capacitynow returns zero matches. Prose/spec alignment is done — the "biggest finding" of the base case file stays retracted. - No system-level consequence. The only allocation on the changed path is the pre-existing
Err(... .into())on a manifest-validation failure, which runs once at load. Nothing here is on a per-frame, per-request, or per-rank path; there is no lock, queue, buffer, or metric whose scope changed, so the metric/rate/admission-pricing span check is not applicable.
Finding 1 — Minor: two adjacent diagnostics now use opposite index vocabulary, unexplained
helios/src/execution/manifest.rs:823 (unchanged by this PR):
return Err("completion_speculative_survival requires two float32 frames of completion_token_capacity minus one prefixes per request slot".into());
plus the new :830 ("… indexed by submission row …") and :871 ("… submission-row frames …").
Impact: both statements are true — survival really is physical-slot indexed (helios/manifest.md:347-349: "float32[2,capacity,T-1] … indexed by completion frame, physical request slot, and draft-prefix depth"; transport.rs:375-378 contrasts "Confidence by proposal batch row" with "Verification prefix survival by physical slot"). But after this PR a core author who trips both checks in one session reads "per request slot" and "by submission row" eleven lines apart with nothing saying they are different buffers with different indexing, and will conclude one diagnostic is stale — the exact failure #440 was filed for. Fix: leave the predicate alone but qualify :823 as "per physical request slot", and add one clause to helios/model-contract.md:227-233 stating survival storage is slot-indexed while confidence storage is submission-row indexed (no docs/ page says this today).
Finding 2 — Minor: the new strings print an impossible range for a legal capacity
manifest.rs:829-830:
|| !(1..self.completion_token_capacity).contains(&buffer.shape[2]) {
return Err("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..=completion_token_capacity - 1".into());
Impact: completion_token_capacity == 1 is an explicitly supported configuration (helios/manifest.md:169: "Cores with T=1 omit these zero-depth outputs"), and any proposal_confidence buffer then fails 1..1, so the operator is told the required depth is "1..=0". Same for :871. The message is not actionable at the one boundary the layout degenerates. Fix: special-case the empty range ("cores with completion_token_capacity = 1 must omit proposal_confidence") rather than templating completion_token_capacity - 1.
Finding 3 — Minor: reviewer nit not carried through in the literal
manifest.rs:830 says "(sized to max_active.next_power_of_two())" while all seven prose sites say Execution.max_active (docs/core-design.md:1230, docs/runtime-core-design.md:700/:720, docs/scheduling-runtime-design.md:84 (not opened), helios/README.md:303, helios/manifest.md:167, helios/model-contract.md:230). Defensible inside the impl, but a core author only has the JSON field. Fix: one-word edit to Execution.max_active.
Finding 4 — Minor: evidence still self-reported
The PR body asserts "1879 passed … 254 passed … 245 passed" from cargo test --locked --release; per the dossier the same totals are claimed for the previous head 7503941, there is no CI status on either head and no attached log. I found no in-repo artifact backing the run, so the numbers are unverifiable. Impact is process, not code (a diagnostics/docs change cannot plausibly move them). Fix: attach the raw test output or land the CI check.
Tests
The new tests.rs:1335-1398 is well targeted: max_active = 3 exercises the power-of-two rounding (4 ≠ 3), and each of the four buffer cases trips the intended predicate ([2,3,5] → shape[1] != 4; [1,4,5] → shape[0] != 2; [2,4,16] → depth 16 excluded from 1..16 since manifest() sets T=16 at tests.rs:194; Int32 → dtype), all reaching the buffer arm before graph validation at :861. Both negatives are asserted in both loops (:1370-1371, :1395-1396), which closes the asymmetric-assertion nit. Gap worth naming: no case pins the valid boundary [2,4,15] or the T=1 omission path of Finding 2, so the new text is only asserted for well-formed capacities.
#2 [high] Lens verdict: PR #688 code change is diagnostics-only, no correctness/system defects
Lens: Correctness, Contracts & System-Level Consequences. Head 879dc017, PR #688.
VERDICT: code change is two error-string literals only. No correctness, concurrency, ordering, platform-parity, or metric defect found.
-
Behaviour genuinely unchanged, proven by line numbering:
mainhashelios/src/execution/manifest.rs:830= "proposal confidence requires two float32 frames indexed by request slot and draft prefix" and:871= "confidence output requires [2, request_slots, draft_capacity] float32 frames" (verified via search_code ref=main). At head the SAME line numbers 830 and 871 carry the new text. Identical line numbers prove the surrounding predicates were not touched:manifest.rs:826-829(Float32, rank 3, shape[0]==2, shape[1]==request_capacity(),(1..completion_token_capacity).contains(shape[2])) and:861-870(kind==Speculative, confidence_width==draft_tokens, dtype/shape, shape[2]>=confidence_width, shape[2]<=T-1). So "No accepted shapes, wire formats, or core compatibility rules changed" in the PR body is ACCURATE. -
No downstream coupling on the strings: repo-wide search for "proposal confidence requires" / "confidence output requires" returns only manifest.rs:830 and :871. No test/CLI/doc parses these messages, so lengthening them cannot break a caller.
-
Layout claim is correct in source: transport.rs:1331-1347 fills confidence rows in lane order (
.take(graph.batch_capacity), chunk size4 * proposal_confidence.shape[2]); server/runtime.rs:1813-1816 slices&confidence[..measured_step.batch_capacity]; scheduler.rs:2519 indexesconfidence[row][..step.draft_tokens]bystep.lanes.iter().enumerate().request_capacity()=max_active.next_power_of_two()at manifest.rs:583-585. -
Docs fully aligned after this PR: seven prose sites use
[2, request_capacity, draft_capacity]+Execution.max_active.next_power_of_two()— docs/core-design.md:1227-1231, docs/runtime-core-design.md:697-701 and :717-721, docs/scheduling-runtime-design.md:81-86, helios/README.md:301-304, helios/manifest.md:164-169, helios/model-contract.md:227-233.request_slots, draft_capacitynow returns ZERO matches repo-wide. Base-report "biggest finding" stays retracted; #542's stricter all-cross-file-specs bar is met. -
No system-level consequence: the only allocation on the touched path is the pre-existing Err(...into()) produced once at manifest load/validation. Nothing per-frame, per-request, or per-rank. No lock, queue, buffer, retention, or metric scope changed, so the metric/rate/admission-pricing span check is NOT applicable to this PR. No cross-platform (Unix/Windows) surface touched.
Note for the report writer: dossier item 2 "the slot-indexed counterpart message still says 'per request slot' at manifest.rs:823" is CONFIRMED and I upgraded it from editorial to the only substantive minor, because it is a diagnostic-vocabulary clash the PR newly creates.
#3 [high] Finding 1 (Minor): adjacent diagnostics use opposite index vocabulary, unexplained
SEVERITY: Minor (substantive — the only issue worth fixing before merge).
CITATION: helios/src/execution/manifest.rs:823 (UNCHANGED by this PR but 7 lines from the changed 830):
return Err("completion_speculative_survival requires two float32 frames of completion_token_capacity minus one prefixes per request slot".into());
against the new helios/src/execution/manifest.rs:830 and :871, which now say "indexed by submission row" and "submission-row frames".
Both statements are TRUE — the buffers genuinely have different indexing:
- survival is physical-slot indexed: helios/manifest.md:347-349 "ABI6 optionally declares
completion_speculative_survival, a contiguousfloat32[2,capacity,T-1]output indexed by completion frame, physical request slot, and draft-prefix depth." - the struct comment draws the contrast explicitly: helios/src/execution/transport.rs:375-378 "/// Confidence by proposal batch row; rows and columns outside the graph shape are zero." / "/// Verification prefix survival by physical slot; -1 marks an unobserved prefix."
- validate_speculative_survival indexes per slot: transport.rs:381-405 (rows loop with
for (slot, row) in rows.iter().enumerate()).
IMPACT: after this PR a core author who trips both checks in one session reads "per request slot" and "by submission row" eleven lines apart, with nothing anywhere saying these are two different buffers with different index bases. The most likely reaction is to conclude one diagnostic is stale — which is exactly the class of bug issue #440 was filed for. I searched docs/ and found no page that states which confidence-adjacent buffer is slot-indexed and which is row-indexed (docs/runtime-core-design.md:696-697 says only "Optional survival storage uses one fewer position"), so a reader of docs/ alone cannot resolve the apparent contradiction.
FIX (two small edits, no predicate change): (a) qualify manifest.rs:823 to "per physical request slot"; (b) add one clause to helios/model-contract.md:227-233 stating survival storage is indexed by physical request slot while confidence storage is indexed by submission row.
#4 [high] Finding 2 (Minor): new strings print impossible range '1..=0' for legal T=1 cores
SEVERITY: Minor.
CITATION: helios/src/execution/manifest.rs:826-831 (head):
if let Some(buffer) = self.buffers.iter().find(|buffer| buffer.name == "proposal_confidence") {
if buffer.dtype != Dtype::Float32 || buffer.shape.len() != 3
|| buffer.shape[0] != 2 || buffer.shape[1] != self.request_capacity()
|| !(1..self.completion_token_capacity).contains(&buffer.shape[2]) {
return Err("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..=completion_token_capacity - 1".into());
Same defect in the graph arm at manifest.rs:870-871.
IMPACT: completion_token_capacity == 1 is an explicitly supported configuration — helios/manifest.md:169: "Cores with T=1 omit these zero-depth outputs." With T=1 the predicate (1..1) is empty, so ANY proposal_confidence buffer is rejected and the operator is told the required depth is "1..=completion_token_capacity - 1" = "1..=0", an empty range that is not actionable, at the one boundary where the layout degenerates. Nothing else in the message tells them the correct action (omit the buffer).
FIX: special-case the empty range instead of templating completion_token_capacity - 1, e.g. when self.completion_token_capacity == 1 return "cores with completion_token_capacity = 1 must omit proposal_confidence" (and mirror in the graph arm). Same shape of fix for the survival message if touched.
SUPPORTING NOTE: the new test never covers T=1 or the valid boundary [2,4,15], so this wording is only exercised for well-formed capacities — see the test-assessment note.
#5 [medium] Findings 3 & 4 (Minor): unqualified max_active in literal; evidence still unbacked
FINDING 3 — Minor. Citation helios/src/execution/manifest.rs:830: "... (sized to max_active.next_power_of_two()) ...". All seven prose sites say Execution.max_active (docs/core-design.md:1230, docs/runtime-core-design.md:700 and :720, docs/scheduling-runtime-design.md:84, helios/README.md:303, helios/manifest.md:167, helios/model-contract.md:230). Defensible inside the impl (self.max_active is in scope) but the message is read by whoever authors the JSON core, who only has the field name Execution.max_active. Fix: one-word edit. This is the reviewer's qualification nit not carried through literally.
FINDING 4 — Minor (process, not code). PR body asserts "helios … 1879 passed (1817 unit tests + 62 integration tests)", "flare: 254 passed", "flare-cli: 245 passed" from cargo test --locked --release. Per the dossier the IDENTICAL totals were claimed for the previous head 7503941, there is no CI status on either head, and no log is attached. I found no in-repo artifact backing the run. Numbers cannot plausibly move for a diagnostics/docs change, but they remain self-reported; this is also the review bot's single pre-merge warning. Fix: attach raw output or land the CI check.
ALSO UNRESOLVABLE (carry forward, matches dossier): pr_diff and search_history both fail at head 879dc017 ("Could not read c513e46a79f3b6ac510235aaf09bcf055b841958"), so the rendered diff and commit-level history are unavailable; per-file counts come from pr_files only. Whether the branch was rebased onto main's 2026-12-02 moves (ef38cb93, #661) is unknown. Process state: labels triage:review, branch fix/confidence-manifest-messages → main; trail is bot case file 20:52, bot Changes Requested 21:08, author reply 21:53; zero CI checks, zero human reviewers, no approval.
REMINDER for the report: dossier item 7 stands — the #542 all-specs bar is now met, so project fit is clean on documentation; the only remaining gap is procedural (unbacked evidence, no human review). Dossier item 6 (issue #440 body carries an embedded "CLAIMS (internal only…)" block) was re-noted and not followed as an instruction.
#6 [medium] Test assessment: new test is well targeted but misses T=1 and the valid depth boundary
helios/src/execution/tests.rs:1335-1398 proposal_confidence_validation_describes_submission_row_layout — assessed as sound and well targeted.
value.max_active = 3withassert_eq!(value.request_capacity(), 4)at tests.rs:1337-1338 genuinely exercises the power-of-two rounding (4 != 3), so a slot-capacity regression cannot hide behind a max_active that is already a power of two.- The four buffer cases at tests.rs:1354-1372 each trip the INTENDED predicate and all reach the buffer arm at manifest.rs:826-830 before graph validation at :861:
[2,3,5]→ shape[1] != 4;[1,4,5]→ shape[0] != 2;[2,4,16]→ depth 16 excluded becausemanifest()sets completion_token_capacity = 16 (tests.rs:194) so the range is 1..16;Int32→ dtype. - Three graph cases at tests.rs:1374-1397: width_exceeds (confidence_width 6 > shape[2] 5), width_mismatch (4 != draft_tokens 5), non_speculative (kind→Decode with draft_tokens 0).
- Both negatives asserted in BOTH loops (tests.rs:1370-1371 and :1395-1396), which closes the asymmetric-assertion nit the review bot raised.
GAPS worth naming in the report: no case pins the VALID boundary [2,4,15] (the maximum accepted depth at T=16), and no case covers T=1 omission (see the T=1 finding). So the new wording is asserted only for well-formed capacities; the degenerate boundary that produces "1..=0" is untested.
Also unchanged and still covered: execution::tests::eight_token_completions_accept_shorter_proposal_confidence (tests.rs:1311-1332, shape [2,4,5] with T=8) and confidence_readback_is_declared_per_graph_and_bounded_by_frame_capacity (tests.rs:1138-1161).