Recommendation: Ready To Merge
All Round 1 review items are resolved at 879dc01: the two proposal_confidence validation error messages in helios/src/execution/manifest.rs and all six specification files across helios/ and docs/ now accurately describe the [2, request_capacity, draft_capacity] submission-row layout without undefined T shorthand, while leaving every validation predicate, wire format, and prepared-core compatibility rule untouched. The added unit test exercises the real ExecutionManifest::validate path in isolation across non-power-of-two max_active, buffer-layout failures, and graph-confidence failures. No blockers or regressions remain; only minor optional polish items are noted below.
Merge Risk
Level: Low
- Executable changes are limited strictly to two static
Err(...)string literals on already-failing branches ofExecutionManifest::validate(helios/src/execution/manifest.rs:830,:871). Comparingmainagainst head confirms both validation predicates (:826-832,:861-873) are byte-for-byte unchanged, so accepted shapes, ABI/wire layouts, and existing prepared cores are completely unaffected. - Zero hot-path, concurrency, contention, allocation, or failure-propagation impact:
validate()runs only at core load time, and a repo-wide search confirms nothing parses the old"proposal confidence requires"or"confidence output requires"strings. - The added test (
helios/src/execution/tests.rs:1335-1398) constructs an isolated localExecutionManifestviamanifest(), calls the realvalidate()implementation directly without mocks or global state, and requires no GPU.
Walkthrough
helios/src/execution/manifest.rs:830,:871: Reworded theproposal_confidencebuffer-validation and graphconfidence_widtherror literals to describe[2, request_capacity, draft_capacity]float32 submission-row frames (max_active.next_power_of_two()) and draft depth1..=completion_token_capacity - 1instead of"indexed by request slot"/[2, request_slots, draft_capacity]. Predicates are unchanged, and the wording matches runtime readback (helios/src/execution/transport.rs:375-376,:1331-1348) and scheduler consumption (helios/src/server/runtime.rs:1813-1818).docs/core-design.md:1227-1231,docs/runtime-core-design.md:697-701,:717-721,docs/scheduling-runtime-design.md:81-86: Updated all three top-level design specifications from[2, request_slots, draft_capacity]to[2, request_capacity, draft_capacity]indexed by completion frame, submission row (request_capacity = Execution.max_active.next_power_of_two()), and draft depth1..=completion_token_capacity - 1. Repo-wide search confirms zero remaining stale[2, request_slots, draft_capacity]references.helios/manifest.md:164-169,helios/model-contract.md:227-233,helios/README.md:301-304: Aligned all three Helios docs on the same[2, request_capacity, draft_capacity]submission-row contract andExecution.max_active.next_power_of_two()sizing (helios/manifest.md:168uses its locally definedTfrom:160-161, while the other two use1..=completion_token_capacity - 1).helios/src/execution/tests.rs:1335-1398: 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 the updated wording and verifying neither"request slot"nor"request_slots"appears in either error loop.
Pre-merge Checks
- [PASS] Security / malicious screen: Diff touches only two static error literals, six markdown docs, and one pure manifest unit test; no unsafe code, injection, or hidden instructions.
- [PASS] Charter & value fit: Directly resolves reproducible diagnostics/docs issue #440 (confirmed wording-only by area owner
yatesdr) with minimal footprint, full prepared-core compatibility, and a complete four-part PR description. - [PASS] Related / duplicate / conflict check: Fixes #440 with no competing PR; touched lines are localized and disjoint from concurrent scheduler/runtime PRs.
- [WARN] Tests & verification evidence: All predicates, doc updates, and test assertions verify against
879dc01and the author transparently states GPU/core-export limitations, but no CI status check or rawcargo testlog is attached on879dc01to independently corroborate the reported 1879 / 254 / 245 pass counts.
Blockers
None.
Should Fix
None.
Subtract / Simplify
docs/runtime-core-design.md:717-721(optional): Repeats the full[2, request_capacity, draft_capacity],Execution.max_active.next_power_of_two(), and1..=completion_token_capacity - 1specification already stated 16 lines above atdocs/runtime-core-design.md:697-701. Replacing:717-721with a concise back-reference (e.g.,"A confidence output declaresconfidence_widthand uses theproposal_confidencestorage described above.") removes four duplicate lines within the same section.
Nits
docs/core-design.md:1228-1229: Reads"FP32 [2, request_capacity, draft_capacity] completion frames indexed by completion frame, submission row...". Dropping the doubled word ("...frames indexed by completion frame..."or"...storage indexed by completion frame...") reads more cleanly.helios/src/execution/manifest.rs:830: Writes(sized to max_active.next_power_of_two())without theExecution.prefix used across all six updated doc files (Execution.max_active.next_power_of_two()).
Dropped on verification
- Claim that
manifest.rs:830and:871render the impossible range"1..=0"forT = 1(Correctness lens Finding 2 & associatedT = 1test gap): Verified false againsthelios/src/execution/manifest.rs:830and:871. Both are static&strliterals ("draft depth 1..=completion_token_capacity - 1"), notformat!templates, so they never interpolate or render"1..=0". Adding a newT == 1validation branch would also exceed the PR's non-behavioral wording scope. - Claim that untouched
completion_speculative_survivalerror atmanifest.rs:823("per request slot") should be reworded and documented (Correctness lens Finding 1): Verified untouched by this PR and factually accurate (completion_speculative_survivalis genuinely physical-slot-indexed perhelios/manifest.md:347-349andhelios/src/execution/transport.rs:377-405). Out of scope for #440 and not raised in Round 1. - Proposal to extract a
const CONFIDENCE_LAYOUT+format!to unify"submission row"vs"submission-row"acrossmanifest.rs:830and:871(Subtraction lens Finding 1): Verified that"indexed by submission row"(:830) and"submission-row frames"(:871) are standard English grammar (noun phrase vs. compound modifier), not semantic drift, and introducing aformat!-interpolated error-fragmentconstadds indirection and heap formatting not used elsewhere inmanifest.rs. - Proposal to deduplicate fixture setup and assertion blocks between
tests.rs:1311-1332andtests.rs:1335-1398(Subtraction lens Finding 3): Dropped as low-signal stylistic churn;helios/src/execution/tests.rsbuildsBufferDescriptorfixtures inline by convention, keeping each test self-contained without touching unrelated test:1311. - Request for an additional valid-boundary test case
[2, 4, 15](Correctness lens test gap): Dropped as low-signal on Round 2+; the new test already verifies valid[2, 4, 5]and upper-bound rejection[2, 4, 16]against the unchanged predicate!(1..self.completion_token_capacity).contains(&buffer.shape[2]).