Recommendation: Changes Requested
This PR accurately aligns the two proposal_confidence validation error messages in ExecutionManifest::validate and the three helios/ documentation files with the actual submission-row runtime layout ([2, request_capacity, draft_capacity], where request_capacity = max_active.next_power_of_two()), without changing any validation predicate, accepted shape, wire format, or prepared core compatibility. However, because this is a documentation and diagnostics alignment fix, two concrete clarity/completeness gaps should be closed before merging: three top-level docs/ specifications still state the stale [2, request_slots, draft_capacity] layout, and both rewritten error strings plus two updated helios/ docs introduce bare T (1..=T-1) without defining it in context.
Merge Risk
Level: Low
- Executable changes are strictly two
Err(...)string literals on already-failing branches ofExecutionManifest::validate(helios/src/execution/manifest.rs:830,:871); both validation predicates (:827-829,:861-870) are byte-for-byte unchanged, so accepted shapes, ABI/wire layouts, and existing prepared cores are untouched. - Zero runtime/hot-path impact:
validate()runs only at core load time, no downstream code parses the old error strings, and there are no concurrency, contention, allocation, or failure-propagation changes. - The added unit test (
helios/src/execution/tests.rs:1334-1396) constructs an isolated in-memoryExecutionManifestviamanifest(), exercises the realvalidate()path directly, and touches no global state.
Walkthrough
helios/src/execution/manifest.rs:830,:871: Reworded theproposal_confidencebuffer-layout error and graphconfidence_widtherror to describe[2, request_capacity, draft_capacity]float32 submission-row frames sized tomax_active.next_power_of_two()and draft depth1..=T-1instead of"indexed by request slot"/[2, request_slots, draft_capacity]. Predicates unchanged.helios/manifest.md:164-169: Specifiedproposal_confidenceas contiguousfloat32[2, request_capacity, draft_capacity]indexed by completion frame, submission row (request_capacity = max_active.next_power_of_two()), and draft depth1..=T−1.helios/model-contract.md:227-233andhelios/README.md:301-304: Replaced[2, request_slots, draft_capacity]with[2, request_capacity, draft_capacity],max_active.next_power_of_two(), and draft depth1..=T−1.helios/src/execution/tests.rs:1334-1396: Addedproposal_confidence_validation_describes_submission_row_layoutcoveringmax_active = 3(request_capacity() == 4), valid[2, 4, 5]layout, four rejected buffer variants ([2, 3, 5],[1, 4, 5],[2, 4, 16],Int32), and three rejected graph confidence variants (width_exceeds,width_mismatch,non_speculative), asserting on the updated error text.
Pre-merge Checks
- [PASS] Security / malicious screen: Diff is limited to two error literals, three markdown specs, and one pure manifest unit test; no injection, unsafe code, or hidden instructions.
- [PASS] Charter & value fit: Directly addresses a reproducible docs/diagnostics defect (#440, confirmed wording-only by area owner
yatesdr) with minimal footprint and full existing-core compatibility; four-part PR description andDiscord:line are present. - [PASS] Related / duplicate / conflict check: Fixes #440 with no competing PR; recent
mainedits tomanifest.rs(#628, #645) and open PR #621 touch disjoint sections. - [WARN] Tests & verification evidence: All structural claims, predicates, and test assertions verify against head
7503941, and the author transparently states GPU/core-export limitations, but no CI check or raw test log is present on7503941to independently corroborate the reported 1879/254/245 pass counts.
Blockers
None.
Should Fix
- Top-level
docs/specifications still state the stale[2, request_slots, draft_capacity]layout (docs/core-design.md:1227-1228,docs/runtime-core-design.md:714-715and:697-699,docs/scheduling-runtime-design.md:81-83).- All three top-level design docs (two of which
helios/README.mddirectly links to) still documentproposal_confidenceusing[2, request_slots, draft_capacity], anddocs/runtime-core-design.md:697-699(the paragraph mirrored byhelios/manifest.md:164-169) omits the row extent and submission-row layout. Leaving them stale leaves the repository's specifications contradicting the terminology alignment this PR establishes for #440. - Fix: Update
docs/core-design.md:1227-1228,docs/runtime-core-design.md:697-699and:714-715, anddocs/scheduling-runtime-design.md:81-83to specify[2, request_capacity, draft_capacity]submission-row storage withrequest_capacity = max_active.next_power_of_two().
- All three top-level design docs (two of which
- Undefined symbol
Tintroduced in both diagnostics and two updated Helios docs (helios/src/execution/manifest.rs:830,:871;helios/model-contract.md:231;helios/README.md:303).- Both new error messages print
draft depth 1..=T-1without definingT(contrast the adjacent diagnostic athelios/src/execution/manifest.rs:823, which spells outcompletion_token_capacity minus one). Likewise,Tis never defined ascompletion_token_capacityanywhere inhelios/model-contract.mdorhelios/README.md(whereTis used elsewhere for token position at:506and temporal dimension at:749). This violates.agents/skills/repo-prose/SKILL.md:20-25(not opened) /docs/design-review.md:147-150("explain concepts before identifiers"). - Fix: Replace bare
T-1/T−1withcompletion_token_capacity - 1(or explicitly defineT = completion_token_capacityinline) inhelios/src/execution/manifest.rs:830,:871,helios/model-contract.md:231, andhelios/README.md:303, and update the substring assertions inhelios/src/execution/tests.rs:1369,:1393accordingly.
- Both new error messages print
Subtract / Simplify
None.
Nits
helios/src/execution/tests.rs:1370vs:1394: The buffer-error loop asserts!error.contains("request slot")while the graph-error loop asserts!error.contains("request_slots"). Checking both spellings in both loops avoids missing a cross-reintroduction.helios/model-contract.md:230,helios/README.md:303: Qualifyingmax_activeasExecution.max_activedistinguishes the manifest capture capacity (helios/proto/runtime_core.proto:829) from runtime admissionmax_active(helios/proto/runtime_core.proto:252,helios/src/model/catalog.rs:43-45,helios/src/server/config.rs:142-147), which may be smaller while the confidence buffer stays sized to the manifest capacity.
Dropped on verification
- Upstream claim that
manifest.rs:830,871break a module-wideexpected/gotformat!convention (Subtraction lens): False. Inspectinghelios/src/execution/manifest.rs:602-996shows that only two checks inmax_top_logprobs()(:634-640,:646-651) print expected/got dtype and shape; the surrounding layout errors invalidate()(:612,:689,:814,:823,:838,:856,:982) are static literals or name-only strings. Moreover, the proposedformat!rewrite dropped the"submission row"contract (the core fix for #440) and had a mismatched argument count. - Upstream claim that
proposal_confidence_validation_describes_submission_row_layoutduplicateseight_token_completions_accept_shorter_proposal_confidenceverbatim and should be deleted/merged (Subtraction lens): Inaccurate.eight_token_completions_accept_shorter_proposal_confidence(tests.rs:1311-1332) tests ABI 5 withmax_active = 4andcompletion_token_capacity = 8, whereas the new test (tests.rs:1334-1396) specifically tests non-power-of-twomax_active = 3 -> request_capacity() == 4andcompletion_token_capacity = 16across both validation arms. Keeping them separate is cleaner. - Upstream claim of a
"submission row"vs"submission-row"spelling inconsistency (Discovery/Subtraction lenses): False positive."indexed by submission row"(manifest.rs:830, noun phrase) vs"submission-row frames"(manifest.rs:871, prenominal compound modifier) is standard English grammar, not an inconsistency. - Upstream claim that repeating the shape sentence across
manifest.rs,manifest.md,model-contract.md, andREADME.mdintroduces new 5x duplication (Subtraction lens): Low-signal. All threehelios/docs already summarized theproposal_confidenceshape pre-PR, and runtime error strings must remain self-contained for operators reading logs. - Upstream concern about leaving
completion_speculative_survivalsaying"per request slot"(manifest.rs:823) andrequest_slotsathelios/README.md:386/helios/manifest.md:183(Discovery/Correctness lenses): Low-signal / correct as-is.completion_speculative_survivalis genuinely physical-slot indexed, andhelios/manifest.md:211-213already explainsSchedulerLimits.request_slots.