Repository navigation
Conversation
|
A case file has been opened for 688. Future reviews will auto-run 90 minutes after code updates are pushed.
|
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Changes RequestedThis PR accurately aligns the two
Walkthrough
Merge Risk: Low · up to
|
…ion-row layout ExecutionManifest::validate in helios/src/execution/manifest.rs checks proposal_confidence and graph confidence_width against shape [2, request_capacity(), draft_capacity], where request_capacity() is Execution.max_active.next_power_of_two() and draft_capacity is in 1..=completion_token_capacity - 1. Both transport decoding (helios/src/execution/transport.rs) and runtime completion (helios/src/server/runtime.rs) index proposal_confidence by submission row (0..batch_capacity, padded to request_capacity()), not by physical request slot. The two manifest validation error strings contradicted this layout by stating "indexed by request slot" and naming the row extent "request_slots", and the Helios and top-level design documents also referred to the row extent as "request_slots" or omitted the submission-row layout. Updated the two validation error strings in helios/src/execution/manifest.rs, aligned the Helios and top-level design documentation, and added unit coverage in helios/src/execution/tests.rs: - Before: the buffer check returned "proposal confidence requires two float32 frames indexed by request slot and draft prefix"; the graph confidence check returned "confidence output requires [2, request_slots, draft_capacity] float32 frames"; helios/manifest.md and docs/runtime-core-design.md omitted the submission-row shape; and helios/model-contract.md, helios/README.md, docs/core-design.md, docs/runtime-core-design.md, and docs/scheduling-runtime-design.md wrote "[2, request_slots, draft_capacity]". - After: the buffer check states "[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"; the graph confidence check states "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..=completion_token_capacity - 1"; and helios/manifest.md, helios/model-contract.md, helios/README.md, docs/core-design.md, docs/runtime-core-design.md, and docs/scheduling-runtime-design.md all document "[2, request_capacity, draft_capacity]" indexed by completion frame, submission row (sized to Execution.max_active.next_power_of_two()), and draft depth 1..=completion_token_capacity - 1 (with helios/manifest.md using the locally defined token capacity T). - Added proposal_confidence_validation_describes_submission_row_layout in helios/src/execution/tests.rs exercising max_active = 3 (request_capacity = 4) across accepted and rejected buffer shapes, dtypes, and graph confidence configurations, verifying the updated layout wording and asserting that neither "request slot" nor "request_slots" appears in either error. Accepted manifest shapes, buffer layouts, wire formats, and core compatibility are unchanged. Manifest validation diagnostics and repository specifications now accurately describe the [2, request_capacity, draft_capacity] submission-row layout enforced for proposal_confidence while preserving full compatibility with existing prepared cores. Ran cargo test --locked --release on Linux with prepared chat templates and a 512 MiB locked-memory limit across all affected crates: - helios (--features runtime-core,server): 1879 passed (1817 unit tests including proposal_confidence_validation_describes_submission_row_layout, eight_token_completions_accept_shorter_proposal_confidence, and confidence_output_requires_two_frames_and_covers_declared_prefixes, plus 62 integration tests), 0 failed, 84 GPU/snapshot/core-gated tests ignored. - flare: 254 passed, 0 failed, 4 ignored. - flare-cli: 245 passed, 0 failed, 3 ignored. GPU, model-checkpoint snapshot, and exported-core tests were not run because validation predicates and runtime execution paths are unchanged. Signed-off-by: Joshua Cartu <jcartu@users.noreply.github.com> Design-Signed-Off-By: Antigravity (Gemini 4 Neon); design-review=2e5b
7503941 to
879dc01
Compare
|
@flare-autobot Addressed every review item in
Re-verified with
|
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Ready To MergeAll Round 1 review items are resolved at
Walkthrough
Merge Risk: Low · up to
|
Fixes #440
Why
ExecutionManifest::validate(helios/src/execution/manifest.rs) validatesproposal_confidenceand graphconfidence_widthagainst shape[2, request_capacity(), draft_capacity], whererequest_capacity()isExecution.max_active.next_power_of_two()anddraft_capacityis in draft depth1..=completion_token_capacity - 1. Transport readback (helios/src/execution/transport.rs), runtime completion (helios/src/server/runtime.rs), and direct-execution producers indexproposal_confidenceby submission row (0..batch_capacity, padded torequest_capacity()), not by physical request slot. The two validation error messages inmanifest.rsmisstated this contract as"indexed by request slot"and[2, request_slots, draft_capacity], and the Helios and top-level design docs also named the row extentrequest_slotsor omitted the submission-row layout.What changed
helios/src/execution/manifest.rs:"proposal confidence requires two float32 frames indexed by request slot and draft prefix", and graph confidence validation returned"confidence output requires [2, request_slots, draft_capacity] float32 frames"."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", and graph confidence validation returns"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..=completion_token_capacity - 1".helios/manifest.md,helios/model-contract.md,helios/README.md,docs/core-design.md,docs/runtime-core-design.md, anddocs/scheduling-runtime-design.md: aligned all six specifications on[2, request_capacity, draft_capacity]contiguous FP32/float32storage indexed by completion frame, submission row (sized torequest_capacity = Execution.max_active.next_power_of_two()), and draft depth1..=completion_token_capacity - 1(withhelios/manifest.mdusing its locally defined token capacityT).helios/src/execution/tests.rs: addedproposal_confidence_validation_describes_submission_row_layoutcoveringmax_active = 3(request_capacity() == 4), valid[2, 4, 5]manifests, rejected buffer shapes/dtypes ([2, 3, 5],[1, 4, 5],[2, 4, 16],Int32), and rejected graph confidence configurations (confidence_widthexceeding buffer extent, mismatchingdraft_tokens, and non-speculative graphs), asserting both updated error messages and checking that neither"request slot"nor"request_slots"appears in either error.No accepted shapes, wire formats, or core compatibility rules changed.
Expected result
Manifest diagnostics and repository specifications accurately describe the
[2, request_capacity, draft_capacity]submission-row layout enforced forproposal_confidencewhile preserving full compatibility with existing prepared cores.Evidence and limitations
Ran
cargo test --locked --releaseon Linux with prepared chat templates (FLARE_TEST_TEMPLATE_DIR) and a 512 MiB locked-memory limit acrosshelios,flare, andflare-cli:helios(--features runtime-core,server): 1879 passed (1817 unit tests + 62 integration tests), 0 failed, 84 ignored. Specifically verifiedexecution::tests::proposal_confidence_validation_describes_submission_row_layout,execution::tests::eight_token_completions_accept_shorter_proposal_confidence, andmodel::tests::confidence_output_requires_two_frames_and_covers_declared_prefixes.flare: 254 passed, 0 failed, 4 ignored.flare-cli: 245 passed, 0 failed, 3 ignored.ignored); no GPU execution was run because validation predicates and runtime execution paths did not change.Discord: jcartu