PR #688: fix(helios): align proposal_confidence manifest messages with submission-row layout

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/7e2162be-93b3-4add-96b1-c504d9d5cdc3

Opened by a workflow run, Dec 2, 2026 3:49 PM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: jcartu (CONTRIBUTOR; Discord jcartu — docs/validation-wording PRs, 3 merged in 180 days) Motivation: Helios's manifest validator enforces a proposal-confidence buffer whose rows are submission rows, but its two error messages and three Helios specs called them "request slots". The PR rewrites that wording so diagnostics and docs match what the validator and runtime actually do; accepted shapes are untouched. Scale: +79 / −8 lines in 5 files Proposal:

Full report · Notes

Value Proposition

Value Proposition — PR #688 (fix(helios): align proposal_confidence manifest messages with submission-row layout)

Charter alignment. This is squarely a "bad docs" fix, one of the categories the charter explicitly merges. Issue #440 is a reproducible report, and its only reply (yatesdr, an area owner who authored the confidence work in #414/#405/#628) settles severity: the messages misname the rows, but no manifest the recipes produce is rejected. So it is a diagnostics defect, and the diff honours that by changing two Err literals only (manifest.rs:830, :871) — both predicates are byte-identical (:826-832, :861-873), so accepted shapes, wire formats and prepared cores are untouched. That satisfies "verify existing artifacts still load" at zero cost, matches "smallest footprint in shared code", and adds no per-model branch or flag. The four-part PR description the charter demands is present.

Novelty & status. Not obsolete: main has not touched proposal_confidence semantics (#628 was the last edit to manifest.rs; current hot areas are scheduler/cost work). Not superseded: the dossier finds no competing or reversing PR. Genuinely additive and accurate — submission-row indexing is the runtime contract (transport.rs:1331-1348, server/runtime.rs:1813-1816, scheduler.rs:2507-2524), not a producer-only convention, so the new wording corrects a real misstatement.

Value vs cost. Benefit is small but real: anyone hitting a shape mismatch gets a message naming [2, request_capacity, draft_capacity] and max_active.next_power_of_two() instead of an undefined request_slots. Maintenance cost is near zero; nothing parses the old strings, so no consumer breaks. Evidence is uneven: the structural claims verify in source, but the "1879/254/245 passed" totals rest on the author's word — no CI check exists on head 7503941.

Gaps to close. "Aligned all three specifications" is true only of helios/*. docs/runtime-core-design.md:715, docs/core-design.md:1228 and docs/scheduling-runtime-design.md:82 still print [2, request_slots, draft_capacity], and #542 was blocked in review for exactly this kind of partial cross-file doc fix. Minor: inconsistent "submission row"/"submission-row" spelling; asymmetric negative assertions (tests.rs:1370 vs :1394) that would miss a regression reintroducing the opposite spelling; and no note on why the slot-indexed neighbour completion_speculative_survival (manifest.rs:823) is deliberately left unchanged.

Verdict: Worth it with changes — extend the correction to the three stale docs/ sites (per the #542 precedent), harmonise the two message spellings and their test assertions, and add one sentence explaining the intentional slot-indexed asymmetry.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Classify intake

Selected: triage:review

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review

Subtraction and simplicity

Verdict: the code change is already lean — there is nothing to subtract from behaviour. What should be replaced is the added prose and the added test scaffolding, as detailed below.


(No summary was written: this is the report's Key findings section.)

Full report · Notes

Correctness and contracts

PR #688 is a wording fix — two error literals in helios/src/execution/manifest.rs:830 and :871 plus three helios/* docs and one new test. The predicates at :826-829 and :861-870 are unchanged, so no accepted shape, wire format, ABI, allocation, lock, or hot path moves; the new text does describe the runtime's real contract (request_capacity() = max_active.next_power_of_two() at manifest.rs:583-585, submission-order readback at transport.rs:1331-1347, server/runtime.rs:1813-1818). The change is correct and safe, and I found no correctness, platform-parity or system-level issue.

Findings, in order:

Sound: no concurrency, memory, failure-propagation, metric-span or platform consequence; leaving completion_speculative_survival's "per request slot" (manifest.rs:823) alone is correct because it is genuinely slot-indexed.

Open question: whether the stale docs/ sites are in-scope blockers here as they were in #542 — no maintainer has commented on the PR.

Full report · Notes

Final review

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

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

  1. 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-715 and :697-699, docs/scheduling-runtime-design.md:81-83).
    • All three top-level design docs (two of which helios/README.md directly links to) still document proposal_confidence using [2, request_slots, draft_capacity], and docs/runtime-core-design.md:697-699 (the paragraph mirrored by helios/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-699 and :714-715, and docs/scheduling-runtime-design.md:81-83 to specify [2, request_capacity, draft_capacity] submission-row storage with request_capacity = max_active.next_power_of_two().
  2. Undefined symbol T introduced 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-1 without defining T (contrast the adjacent diagnostic at helios/src/execution/manifest.rs:823, which spells out completion_token_capacity minus one). Likewise, T is never defined as completion_token_capacity anywhere in helios/model-contract.md or helios/README.md (where T is used elsewhere for token position at :506 and 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−1 with completion_token_capacity - 1 (or explicitly define T = completion_token_capacity inline) in helios/src/execution/manifest.rs:830, :871, helios/model-contract.md:231, and helios/README.md:303, and update the substring assertions in helios/src/execution/tests.rs:1369, :1393 accordingly.

Subtract / Simplify

None.

Nits

Dropped on verification

Full report Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes decide malicious: all_clear (100%): No malicious content found

explore

Author: jcartu (CONTRIBUTOR; Discord jcartu — docs/validation-wording PRs, 3 merged in 180 days) Motivation: The two proposal_confidence validation error messages told core authors the confidence buffer is indexed by request slot and shaped [2, request_slots, draft_capacity], but the runtime and the Python producers actually index it by submission row with request_capacity = max_active.next_power_of_two() rows. This PR changes only those two strings plus the written specs, so nothing a core produces is rejected — it fixes a false diagnostic (issue #440), not the check itself. Scale: +100 / −15 lines in 8 files (was +79 / −8 in 5 files at 7503941) Proposal:

Full report · Notes

Classify intake

Selected: triage:review

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

No label changes

Subtraction and simplicity

Subtraction/Simplicity/Conventions lens on PR #688 at head 879dc017. The subtraction axis proper is clean: no new flag, config knob, env var, wrapper, fallback branch, dependency or dead code, and the two manifest.rs validation predicates are byte-for-byte the pre-PR ones — only the two Err literals differ. Findings are duplication and convention drift, not excess machinery.

  1. (medium-high) The same layout clause is hand-typed twice and has drifted: manifest.rs:830 says "submission row", :871 says "submission-row". The drift is load-bearing — the new test must assert two spellings (tests.rs:1367 vs :1393). Hoist one const CONFIDENCE_LAYOUT and format! it into both arms (house style at :762/770/782); minimal alternative is to unify the spelling so both loops assert one string.
  2. (medium) docs/runtime-core-design.md:717-721 restates in full the contract already stated at :697-701, 16 lines above; on main:714-715 it was a single deferring line. Collapse to a reference, deleting 4 lines. Cross-file repetition is required by the #542 precedent and is explicitly not a finding.
  3. (small-medium) The new test re-types the speculative fixture of eight_token_completions_accept_shorter_proposal_confidence (tests.rs:1339-1351 vs :1319-1326) and types the same five asserts twice (:1366-1371, :1390-1396); one helper plus one assert closure saves ~18 lines. Its seven cases are genuinely new coverage — do not trim.
  4. (small) docs/core-design.md:1228-1229 reads "completion frames indexed by completion frame"; delete two words.
  5. (small) manifest.rs:830 is the only site with bare max_active; all seven prose sites say Execution.max_active. Folds into 1.

Do not change: the slot-indexed sibling message at manifest.rs:823 is contract-correct (helios/manifest.md:347-349, transport.rs:375-378 (not opened)); 1..=T−1 at manifest.md:168 is locally defined; no repo helper is duplicated (inline BufferDescriptor literals are convention); the !contains("request slot") asserts are justified because the message is the behavior under test.

Open: pr_diff/search_history fail at this head, so rebase state and the full rendered diff are unverifiable; no CI on either head, so compilation of the new test is unconfirmed; whether the author prefers a const over inlined literals is unasked.

Full report · Notes

Correctness and contracts

PR #688 is a diagnostics-and-docs change and is correct: only two Err(...) literals changed, and they sit at the same line numbers as on main (helios/src/execution/manifest.rs:830, :871), proving the predicates, ABI (still 6, manifest.rs:11) and accepted shapes are untouched. No lock, buffer, metric, or platform surface is affected, so the system-level and metric-span checks do not apply. Docs are fully aligned: seven sites use [2, request_capacity, draft_capacity] with Execution.max_active.next_power_of_two(), and a repo search for request_slots, draft_capacity returns zero, so the earlier docs finding stays retracted.

Findings (all Minor):

Tests: the new test (tests.rs:1334-1398) is well targeted — max_active = 3 exercises the power-of-two rounding, each of four buffer cases hits a distinct predicate, and both negatives are asserted in both loops. Gaps: no valid boundary [2,4,15] and no T = 1 case, so the "1..=0" path is untested.

Open: pr_diff/search_history fail at 879dc017, so rebase state on main's 2026-12-02 moves is unknown; no human reviewer.

Full report · Notes

Re-review

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

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. docs/runtime-core-design.md:717-721 (optional): Repeats the full [2, request_capacity, draft_capacity], Execution.max_active.next_power_of_two(), and 1..=completion_token_capacity - 1 specification already stated 16 lines above at docs/runtime-core-design.md:697-701. Replacing :717-721 with a concise back-reference (e.g., "A confidence output declares confidence_widthand uses theproposal_confidence storage described above.") removes four duplicate lines within the same section.

Nits

  1. 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.
  2. helios/src/execution/manifest.rs:830: Writes (sized to max_active.next_power_of_two()) without the Execution. prefix used across all six updated doc files (Execution.max_active.next_power_of_two()).

Dropped on verification

Full report Decision to Test: no (59%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes