Amendments to the PR #540 report — new event: push e5a69669 (2026-11-27 01:23) + three human comments
These are amendments only. They supersede specific claims in the earlier report and do not restate it. Head is now e5a696697eeb4517c7e9cf9c55df93a4462b20ff (e5a69669), 5 commits atop f377dc85; scale is now +4306 / −310 in 33 files (pr_files count; the earlier 25 files / +3965 / −119 is stale — docs/scheduling-theory.md, helios/src/execution/manifest.rs, helios/src/model/testing.rs (not opened), helios/src/runtime_core/selection.rs, tests/preparation/test_execution.py (not opened) and others joined the change set).
Key findings
- The blocker both Autobot reviews named is genuinely fixed, with a test.
heliopause/src/export/binding.rs:201-216now derives the wire value:None | 0 | 1 | "MTP" => "MTP",2 | "COPY_DRAFT" => "COPY_DRAFT", anything elseErr(super::invalid("unsupported graph draft_source")), plus a rejection ofCOPY_DRAFTon non-speculative graphs (binding.rs:213-215). Round-trip testexport::binding::tests::execution_preserves_mtp_and_copy_draft_source_and_rejects_unknown(author-citedbinding.rs:1466-1510). My export finding (#3) and the prior recommendation "fix the export before merge" are therefore withdrawn. - The cost-source caveat I raised last pass is also fixed, but only halfway in effect.
cost::Keynow carriesdraft_source: Option<ProposalSource>with canonicalization for non-speculative kinds (cost.rs:50-59,62-84), the packed tables are split per source (cost.rs:139,204-221), andhas_mtpis deleted. However the merged lookup is what production still calls:packed_round_duration(batch, width)(cost.rs:237-252) merges the two tables, and the three production callers are unchanged —speculative_duration(rounds.rs:588), the continuation horizon (policy.rs:785) — withpacked_round_duration_forused only by tests (cost.rs:574-585). So a copy-only W=16/24 round is still priced from an MTP measurement when one covers that (batch,width). This is the main new caveat. - The mask-agnostic whole-list pruning pass survives unchanged and is still untested for differing masks: the pass (
policy.rs:234-264) now also requires equaldraft_source(:251) but still never comparesmask, while the pairwise rule requiressmaller.mask == larger.mask(policy.rs:137-141). Both added pruning tests use a single cohort. - A new gate is now visible: wide copy is unreachable on copy-sourced cores.
rounds.rs:882gates the wide-copy branch onself.proposal_source == ProposalSource::Mtp, so a core loaded with--speculative-proposal-source copynever considers the copy-only wide graphs thatselection.rsretains. - Process is still thin. Three human comments exist now (shieldstar 20:54, voipmonitor 23:53, author 01:23) — so my "no engagement" note is superseded — but there are still zero approvals, zero labels, no visible CI results, and no maintainer review; Autobot's re-review at
e5a69669had not appeared at this pass (auto-runs 90 minutes after a push).
1. Corrections to the earlier report and to the previous amendment
- Export blocker: RESOLVED, do not re-assert. See Key finding 1.
binding.rs:196still routeskind == "speculative" || kind == "mixed" && speculation_enabledthrough the branch, and the stamp at:216is now the derived value. cost::Key/has_mtpsource authority: RESOLVED (cost.rs:50-84,139,204-221;Estimate.draft_sourceandhas_mtpdeleted). Coexistence proof testunmeasured_mtp_and_measured_copy_coexist_at_identical_shape_and_preserve_packed_duration(cost.rs:533-586). My previous amendment's finding 4 must not be repeated as a current defect.- Dead SAM API: RESOLVED.
SamConfig,MatchSource,MatchProposal::source,PromptSAM::build,from_shared_prompt,push_slice,walk_context,propose_for_context,propose_conditional_continuationsare gone;sam.rswent 1607 → 1307 added lines (pr_files). Consequence: the reach note's claim that the prompt SAM is anArc-shared, zero-copy structure reused across requests is obsolete —PromptSAMis now a plain owned struct with no sharing at all. The intrinsic per-request cost numbers still stand, but the "sharing" half of that analysis is withdrawn. - Empty
RefreshState::idle(): RESOLVED. Removed;refresh.rsdiff is now +12/−10 and the test that carried the no-op assertions (policy_tests.rs:2616-2647) was rewritten to assert retained credit on idle and discard on abort. - Producer validator mismatch: RESOLVED.
ignition/preparation/execution.py:102-108(not opened) now rejects copy draft source on non-speculative graphs (previously acceptedmixed+speculation_enabled, whichselection.rs:278-283would refuse); new testtest_copy_draft_source_requires_speculative_graph_without_gpu_confidence(tests/preparation/test_execution.py:373-393(not opened)). - Three
ProposalSourcewire ladders: RESOLVED. OneProposalSource::{from_wire, to_wire}(speculation.rs:54-69-ish, author-cited) used byheliopause/src/python.rs:225-231,runtime_core/serving.rs:58-63(not opened),runtime_core/selection.rs:144-148. - Documentation staleness: RESOLVED for the seven places I listed.
docs/cli-design.md:200-208and:747now say--history-draftsretains/prunes copy-only graphs and keeps widths;docs/mtp-design.md:22-34,:36-66,:68-73describe SAM-first with the ring as fallback (caps 131,072/512,min_match_len6, preempt→readmit re-index);docs/scheduling-runtime-design.md:6-15module index now listssam.rs,decoded_history.rs,checkpoints.rs(not opened),:68-88adds a "Proposal sources and calibrated wide copy-verify" section,:273-283documents the pruning group key,:409-433documentsdraft_sourcein cost identity and the per-source packed tables;docs/scheduling-theory.md:577-580,717-744reconcile simulator vs Helios idle credit;helios/manifest.md:38(not opened) documentsdraft_source: int. Sincedocs/cli-design.mdanddocs/scheduling-theory.mdare now inpr_files, the earlier "sharper stale-docs point" no longer applies. - Constant derivations: RESOLVED.
speculation.rs:14-21(0.88 with expected-token arithmetic),:23-33(4.0, 2.0),rounds.rs:22-29(WIDE_COPY_MIN_EXTRA_DRAFTS = 3),sam.rs:19-23(6). Caveat: the 0.88 justification is the author's arithmetic, not a measurement. - shieldstar's duplicate
powered_curvefinding: folded verbatim.zero_duration[slot]reuse inpolicy.rs:1052-1059(add_candidate) and:1258-1266,:1289-1293(mixed_candidates), test-onlyCURVE_EVALUATIONScounter incremented inpowered_curve(rounds.rs:565-566), testsmixed_refresh_value_reuses_each_decoding_lanes_forecastanddecode_refresh_value_reuses_each_decoding_lanes_forecast(policy_tests.rs:6290-6328). Only the zero-duration duplication is fixed; shieldstar's other spots (waiting-Init continuation pricing, the decode-only pass, thealpha == 1.0shortcut) and #547's broader caching are not addressed here. - No longer accurate: "no engagement / no human comments" — three human comments exist. "Autobot CR as advisory" still holds (#538 got Changes Requested at 17:34 after merging at 17:21).
- The rebase note is now stated by the PR description itself ("Five commits atop main (f377dc85)"), so it is context rather than a correction.
- Ownership nuance softened: with
docs/scheduling-theory.md:577-580, 717-744now explicitly reconciling the simulator's idle rule with Helios's retained credit and the aggregate bound, the earlier framing that this PR "reverses an owner-authored idle-credit contract" should be read as "documents a deliberate divergence from the simulator", not a reversal.
2. New or still-open findings at head e5a69669
A. The per-source packed-duration split is undone at its production callers (new, highest remaining code concern). packed_round_duration(batch, width) (cost.rs:237-252) prefers MTP and falls back to copy; the only two production call sites are rounds.rs:588 (speculative_duration, used by rounds.rs:585-594) and policy.rs:785 (continuation horizon). packed_round_duration_for has no production caller — grep returns only cost.rs definitions and the tests at cost.rs:574-585. Two consequences: (i) a copy-only W=16/24 round is still normalized and priced by an MTP measurement whenever an MTP shape covers that (batch,width); (ii) the (None, Some(0)) arm (cost.rs:244-249) returns Some(0) only when the entire MTP table is empty, so a copy-only core whose MTP table is populated elsewhere returns None for a width where only an unmeasured copy shape exists. docs/scheduling-runtime-design.md:425-433 documents exactly this combined order, so code and docs agree — the open question is whether the combined order is what the feature wants.
B. Mask-agnostic whole-list pruning (unchanged from the previous amendment). The new pass (policy.rs:234-264) prunes a GPU-allocated ragged speculative candidate when any other candidate has other.kind == Speculative, equal draft_source (:251), other.batch >= lanes && other.batch < candidate.batch, equal capacity and drafts, and enough packed token capacity — but never other.mask == candidate.mask, whereas the pairwise rule refuses cross-mask domination explicitly (policy.rs:137-141). A narrower shape prepared for a different cohort can therefore prune the shape the candidate's own cohort needs. No test exercises differing masks: the two added pruning tests (policy_tests.rs:65-152, :154-196) each use one cohort, and the pre-existing different-cohort tests (policy_tests.rs:31, :52) exercise dominates_padding_with, not this pass.
C. Wide copy-verify is gated off on copy-sourced cores (new). rounds.rs:882 requires self.proposal_source == ProposalSource::Mtp before building the wide-copy candidate, while load-time selection (selection.rs:182-184, 277-298) retains draft_source = 2 graphs under the same condition — so --speculative-proposal-source copy keeps graphs the scheduler will never consider. is_copy_only_step (scheduler.rs:1196-1198) is now purely structural (step.kind + step.draft_source), consistent with the fixed producer.
D. New panic path where there used to be a fallback. The unreachable wide_copy_curve else was removed by turning it into .expect("wide copy requires history drafts enabled before admission") (rounds.rs:570-579). If a copy-only step ever reaches this on a scheduler whose decoded_history is absent, it panics rather than falling back. Probably unreachable, but it converts a latent inconsistency into a crash.
E. Estimation-basis question on the 0.88 prior (new, question not defect). CopyCalibration::curve (speculation.rs:153-183) applies a running bound = bound.min(...) clamp so the curve is forced monotone non-increasing, and the optimistic path adds a sqrt(ln 20 / 2w) term to the mean before the clamp; at deep positions the clamped bound can put the "optimistic" curve at or below the pessimistic one. Not tested either way.
F. Threshold-consistency nit. speculation::WIDE_COPY_MIN_MATCH_LEN = 6 (speculation.rs:21-24) and sam::DEFAULT_MIN_MATCH_LEN = 6 (sam.rs:19-23) are separate constants with no cross-check; the doc comment says "matches" but nothing enforces it.
G. Description/head mismatch (minor). The description still calls commit 450012d1's PromptSAM "immutable Arc<PromptSAM>" and still enumerates the propose_for_context-era design in its per-commit list, while head has a non-Arc owned PromptSAM and no such API.
H. Test counts are author-reported. 1,712 (helios --features runtime-core,server) / 620 (default) / 207 (heliopause) / 71 (Python) are claimed for e5a69669; I did not reproduce them and there are still no visible check results on the PR. shieldstar states scheduler:: unit tests passed (386 passed, 5 ignored) on their own patch; voipmonitor states the CPU unit tests pass in the 9- and 12-PR stacks.
3. Evidence and process amendments
- voipmonitor's live TP4 run does not exercise this feature. The comment states the run used
--no-history-draftswith defaultcopy_verify_shapes=()acrossC=1..64and16K–128Kcontexts on 4× RTX PRO 6000 Blackwell (SM120), and explicitly notes opt-in W=16/24 live GPU serving "remains separately to be qualified". That is a no-regression result, not an endorsement of wide copy-verify. The author's own block of numbers is still at14019718, and the description now discloses this and lists per-commit A/B one5a69669, live W=16/24 GPU export/replay, live power-limit refresh transitions, non-DeepSeek models, SM121/GB10 and multi-host RoCE as not run. - #542 stacking note is now stale. voipmonitor asks #540 to "keep
has_mtp's copy-skip guard" when stacking with #542 inhelios/src/scheduler/{cost.rs,rounds.rs,tests.rs};e5a69669deletedhas_mtp(cost.rs), so the rebase note must be rewritten against the new per-source tables. The conflict surface itself is real and unchanged. - Autobot's re-review had not appeared. Requested at 01:23; reviews auto-run 90 minutes after a push. Both existing Autobot reviews (17:56, 20:27) named the same single blocker, now fixed, and both recommended splitting
a85be397/1b0db227(funded-refresh recovery) out as independently mergeable — still sound advice, now the author's and #542's problem rather than a blocker. - Still absent: any maintainer review or approval, PR labels, CI check results, and any repository issue requesting these changes (#534 is a different bug in the same cost-freshness subsystem and is not fixed here).
4. Effect on the verdict
The single blocker both Autobot reviews named — and the first item of my original report — is fixed at head with a test, and my cost::Key/has_mtp caveat is fixed in the model though not in its callers. The recommendation therefore changes from "fix the export before merge" to: the export and cost-source blockers are cleared; what remains before merge is
- make the packed-duration lookups source-aware at the two production callers (
rounds.rs:588,policy.rs:785) — or state deliberately that the merged order is intended — and reconsider the(None, Some(0))arm atcost.rs:244-249; - either constrain the whole-list pruning pass to equal masks or add a test with differing masks (
policy.rs:234-264vs:137-141); - resolve the
proposal_source == Mtpgate atrounds.rs:882if copy-sourced cores are meant to use wide copy-verify at all; - supply the live wide copy-verify W=16/24 GPU run and the per-commit A/B that the PR's own Limits paragraph concedes are missing;
- rebase the #542 stacking note onto the per-source tables now that
has_mtpis gone; - get one maintainer review — the two Autobot CRs and three human comments so far include no approval.
Open questions and what could not be found
- Whether the merged packed-duration order (
cost.rs:237-252) is intentional; the docs match the code, so review would have to ask for intent, not correctness. - Whether
rounds.rs:882's MTP-only gate is deliberate (copy-sourced cores use no wide graphs by design) or an oversight left over from whendraft_sourcedid not exist. - Whether the mask-agnostic pass can misprune a real cohort — no test or benchmark constructs differing masks over the same capacity/drafts.
- Whether
CopyCalibration::curve's clamp-and-sqrt construction produces the intended ordering at deep positions; no test asserts monotonicity across the optimistic/pessimistic pair. - No maintainer approval, no visible CI, and no independently reproduced test-count or latency figure at
e5a69669; Autobot's re-review at head had not been posted when this pass ran. - Whether the recipe-side half of the feature (
local-inference-lab/hyperflare-recipes, per the description's prerequisite note) lands with a matchingdraft_sourcecontract was not verifiable from this repository.