Amendments to the 2026-11-26 report on PR #540 (helios: cost-refresh recovery, prompt+output SAM copy-drafts, calibrated wide copy-verify)
This is a delta to the earlier case file, prompted by a new event (bot-only activity on the PR). It does not restate the prior report. Line numbers are at the current head, commits 14019718 (padding dominance + min_match_len 6), 9caba2c7 (wide copy-verify), 450012d1 (SAM), 1b0db227 (= the review's a85be397, cost-refresh recovery), on base f377dc85.
Key findings
- The export defect is now independently confirmed as the blocker. My earlier finding that a recipe cannot get
draft_source=2onto the wire is exactly the Autobot review's single blocker, now cited to the sole route:capture.rs:3158→heliopause/src/export/binding.rs:196-202, wheregraph.insert("draft_source".into(), "MTP".into())runs for every speculative graph (verified at head, line 201). The wire value already exists (helios/proto/runtime_core.proto:854,enum DraftSource { NO_DRAFT = 0; MTP = 1; COPY_DRAFT = 2; }), so this is a one-line hardcode rather than a schema gap — and it bypasses the copy-only contract checks (helios/src/execution/manifest.rs:844-846(not opened),helios/src/model/catalog.rs:123-131(not opened)). - The same-day #538 conflict risk is gone. #540 was rebased onto
f377dc85, which already contains merged #538 (ba35da3f) and merged #543 (f377dc85). The natural-fitpolicy.rshunks and thedocs/cli-design.md--joint-tuning/docs/preparation-development.md(not opened) hunks visible in the event diff are base-side, not this PR's delta. - New caveat: the whole-list pruning pass ignores candidate masks. The new pass (
policy.rs:221-254) prunes on batch width, capacity and drafts alone, while the pairwise rule requiressmaller.mask == larger.mask(policy.rs:133-140); a narrower shape from a different cohort can therefore prune the shape a candidate's own cohort needs, and no test covers differing masks. - New caveat: proposal source has no single authority in the cost model.
cost::Key(cost.rs:50-58) has nodraft_sourceandprepared()rejects duplicate shapes (cost.rs:159-161), whilerefresh_packed_durations'has_mtp(cost.rs:190-208) is an existence scan that counts unmeasured MTP entries — so one unmeasured MTP shape suppresses measured copy shapes from the packed-duration table that feeds service rates (service.rs:109,156), continuation pricing (policy.rs:775) and next-progress (policy.rs:619). - Process reading: an Autobot "Changes Requested" is advisory here. #538 (same author, same files) was reviewed Changes Requested at 17:34 but had already merged at 17:21; there is still no human review on #540 and no upstream issue asking for any of the four outcomes.
1. Corrections to the earlier report
- Commit ids are stale. Current chain:
14019718→9caba2c7→450012d1→1b0db227/a85be397, sitting directly onf377dc85. All ids in the prior report are superseded. - Base moved.
f377dc85Luke Alonso "Remove joint kernel tuning and grouped AOT forward compilation (#543)" andba35da3fPCCessna "Restrict cold pure-prefill discovery to natural-fit graph capacities (#538)" are now ancestors. Consequences: (a)natural_fit_prefill_capacityalready exists onmain(policy.rs:357, 523, 784, 968), so the conflict argument is moot; (b) thedocs/cli-design.mdanddocs/preparation-development.md(not opened) hunks in the event diff belong to #543; (c)pr_filesstill lists neither file. - Scale unchanged: 25 files, +~3,965/−119 (
sam.rs+1,606;scheduler/tests.rs+583,policy_tests.rs+504,model/tests.rs(not opened) +324,rounds.rs+194,scheduler.rs+180,cost.rs+120,policy.rs+119,selection.rs+109,speculation.rs+103,docs/scheduling-runtime-design.md+31,python.rs(not opened) +14,execution.py+10). - "No CI" should read "no check results are visible on the PR." The only content appended since the earlier report is two bot comments (case-file notice 17:04, review 17:56).
- Evidence was produced pre-rebase. The 615/1,625 Rust test counts and the DeepSeek-V4.1-Flash TP4 numbers were taken on the old tree and are not re-established at the current head.
- Sharper stale-docs point:
pr_filescontains nodocs/cli-design.md, sodocs/cli-design.md:200-202("--history-drafts… does not change the graphs") and:741are untouched at the head even thoughselection.rs:277-298now retains/prunes graph families andselection.rs:375-396drops kernels and rewritesspeculative_widths.
2. Escalation: the export coercion, confirmed as the sole blocker
- The sole export route is
capture.rs:3158→binding::execution; therebinding.rs:200-201setsverify_tokensand then unconditionally stampsdraft_source = "MTP"forkind == "speculative"orkind == "mixed" && speculation_enabled. - The only producer of
2isignition/preparation/execution.py:32, 102-108, 315-319(viaGraphSignature.draft_source); the consumer of the manifest dict isheliopause/src/python.rs:225-237(not opened). That is a different dict from the one that becomes the core's wire metadata, so the declared value is lost exactly where it matters. - Because the coercion happens on export, the copy-only contract (no
confidence_width, nospeculative_prefix_limits, four copy input buffers;manifest.rs:839-851(not opened),catalog.rs:123-131(not opened)) never runs for exported copy graphs. python.rs:225-233(not opened) also defaults an absentdraft_sourceto MTP for speculative graphs, so a producer that omits the field is indistinguishable from an MTP graph; the hardcode hides this today.- Fix shape (as the review states, and as the code supports): map
2 => "COPY_DRAFT", treat unknown values as invalid, and add onebinding::executionround-trip test. - Second-order, worth recording: the same review calls commit
a85be397(funded-refresh recovery) "correct, self-contained and could merge on its own today" — independent support for splitting the four outcomes, and the one uncontested part of the bundle.
3. New verified findings at the current head
- Cost source-of-truth (Key finding 4). Source is stored per entry (
cost.rs:169) and every consumer infers it (is_copy_only_step,cost.rs:223-232);packed_round_durationis atcost.rs:210-213andspeculative_durationatrounds.rs:559-568. Wide copy rounds are still built directly frompacked_round_shapes()(rounds.rs:752-770), so they still compete; what is lost is normalization and pricing evidence. - Cohort mismatch in pruning (Key finding 3). Tests:
policy_tests.rs:31, 52(equal_counts_from_different_cohorts…, pre-existing and exercisingdominates_padding_with, not the new pass),128,189; the two added tests (policy_tests.rs:5599-5720region) use a single four-request cohort. - Validator mismatch between producer and consumer.
ignition/preparation/execution.py:102-108acceptsdraft_source = 2on amixedgraph withspeculation_enabled, butselection.rs:278-283(copy_wide) requiresgraph.kind == "speculative", so such a graph is accepted by Ignition and silently never retained. - Submission-path asymmetry.
RequestScheduler::history_proposal(scheduler.rs:1094-1097) is retained but no longer used by serving (server/runtime.rs:2143-2150callsrequest_history_proposal), and it lacks the vocabulary truncation its replacement has (scheduler.rs:1128-1140, mirrored at:1179-1188;decoded_history::lookup_with_match_len,decoded_history.rs:162-186(not opened)). Its tests still pin ring behaviour production no longer reads (scheduler/tests.rs:1956-1991,phase_tests.rs:583 (not opened), 1835). The review's "~87 lines of duplication, already drifted" is accurate. - Test-only SAM surface.
propose_for_context(sam.rs:1070-1110),propose_conditional_continuations(sam.rs:1118-1189, whose doc names a "2-deep pipelined execution" that exists nowhere),push_slice(sam.rs:1023),from_shared_prompt(sam.rs:935; callers only atsam.rs:1523-1524, 1572), andMatchSource/MatchProposal::source(built atsam.rs:1217-1219, 1263-1265, read only by tests). - Empty method with ten test call sites.
RefreshState::idle()is an empty body (refresh.rs:95-99(not opened)); one production caller (scheduler.rs:1281) and ~10 test call sites (policy_tests.rs:2610, 2638, 2689, 2699, 2730, 2751, 3685, 6102, 6108, 6153). - Unreachable prior-only branch.
wide_copy_curve'selse(rounds.rs:541-548) cannot be reached: the copy candidate path returns early whendecoded_historyis none (rounds.rs:759-764), andCopyCalibration::newis created under the same condition (scheduler.rs:1853-1856). - Admission cost, confirmed synchronous.
sam::PromptOutputSAM::new(&spec.prompt)runs insideadmitwheneverdecoded_history.is_some()(scheduler.rs:1849-1852), on the admitting thread — up to ~13.05 ms CPU and 4.52 MiB per 131k-token request by the PR's own microbenchmark. The review asks for this to be disclosed rather than filing it as a defect. - Refresh ranking detail.
compare_refresh(policy.rs:1330-1338) buildsValueRate::new(0, expected, age_price); sinceValueRate::compareordersduration_ns == 0above everything (utility.rs:134-139), all probes compare equal on the first key and are ordered only by expected value. Intended and consistent with the doc text added, but the old duration tiebreak is gone for probes. - Five underived constants:
WIDE_COPY_PRIOR_RATE = 0.88(speculation.rs:15),COPY_STEP_PRIOR_WEIGHT = 4.0andCOPY_DEPTH_SHRINK_WEIGHT = 2.0(speculation.rs:20-21, private),base_mtp_drafts.saturating_add(3)(rounds.rs:766),DEFAULT_MIN_MATCH_LEN = 6(sam.rs:22). Only the 6 is argued in the description; none is reachable from outside, since onlyPromptOutputSAM::newis used (scheduler.rs:1852). - Docs gaps re-verified line-by-line at head:
docs/scheduling-runtime-design.md:6-12module index omitssam.rs;:249-258still describes only capacity-wise domination;:396-399still says the packed lookup takes the minimum across all matching shapes (now false for the copy/MTP split,cost.rs:190-208);helios/manifest.md:29-53has nodraft_source;docs/mtp-design.md:22-40still describes the 65,536-token shared ring and "only qwen3.8-flash declares copy inputs";docs/cli-design.md:200-202and:741unchanged.
4. Process
- The only new event is bot activity: a case file opened 2026-11-26 17:04 (reviews auto-run 90 minutes after pushes) and an Autobot review at 17:56 recommending Changes Requested with exactly one blocker. The review additionally asks for per-commit live numbers, disclosure of the admission-time SAM build, one load-and-serve of an already-exported W=8 core, and one preempt→readmit SAM test.
- Autobot CRs are advisory in this repository right now. #538 — same author, same day, same files — received Changes Requested at 17:34 but had already merged at 17:21 (head
5a55f0bf). The #540 CR does not mean maintainers have blocked the PR. - Still zero human reviews, zero human comments, no labels, no visible check results, and no repository issue asking for any of the four outcomes (#534 is a different bug in the same subsystem and is not fixed here).
Open questions
- Whether the copy-only graph contract had the owner approval the project charter requires for a new op contract; nothing in the description cites any.
- Whether the mask-agnostic pruning pass can misprune a real cohort in practice — no test or benchmark exercises differing masks.
- Whether
has_mtp's inclusion of unmeasured entries is intended; it is the mechanism by which measured copy shapes lose their packed-duration evidence. - Whether the export hardcode is deliberately deferred to the external
local-inference-lab/hyperflare-recipescompanion PR; the description's Limitations concede only that W=16/W=24 copy-only GPU export/replay was not benchmarked.
Verdict
Unchanged in direction: the export defect (binding.rs:201) is now independently confirmed as the blocker, the #538 conflict risk is gone, and two new caveats were added (mask-agnostic pruning; cost::Key/has_mtp mis-attribution). Recommendation: have the author fix binding.rs:201 with the round-trip test and split out the funded-refresh commit, which the review agrees can merge alone.