Verdict: worth merging in substance — but split it, and do not merge commit 3 until it has one served-workload number of its own
This revises my previous report upward again. The author's e5a69669 fixed the blocker I raised and the two latent design defects behind it, and cleared every documentation gap I listed. What remains is not correctness — it is evidence discipline and one unbounded resource.
What the charter decides
- "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)." - "Solve the right problem in the right place… the smallest footprint in shared code."
- "Captured-graph op contracts: Adding a new one—even if it reuses an existing graph kind—requires owner approval before you write it."
- "Be explicit and pin everything. No magic defaults."
- Code-review standards: verify "that existing data, artifacts, and exported cores still load."
What changed since my last report — my two prior blockers are genuinely resolved
The export blocker is fixed, not papered over. heliopause/src/export/binding.rs:201-216 now derives the value instead of overwriting: None | 0 | 1 | "MTP" => "MTP", 2 | "COPY_DRAFT" => "COPY_DRAFT", anything else => Err(invalid(...)), and it rejects "COPY_DRAFT" on kind != "speculative" (:213-215). The round-trip test I said was the only test that would have caught this now exists: execution_preserves_mtp_and_copy_draft_source_and_rejects_unknown (binding.rs:1461-1511) asserts DraftSource::CopyDraft survives encode/decode and rejects 3, -1, "UNKNOWN", and mixed+copy.
So the copy-only contract is enforceable now. execution/manifest.rs:845-846 rejects Copy with confidence_width != 0; :849-850 rejects draft_source on non-speculative, non-mixed graphs; model/catalog.rs:94-96,123-131 requires copy-only graphs to have no GPU confidence and no SpeculativePrefixLimit. My earlier finding that these checks were bypassed no longer holds.
The latent cost::Key and has_mtp defects are fixed. canonical_draft_source (cost.rs:50-59) puts draft_source in Key (:63-79), packed_round_durations is split per source (:204-221), the has_mtp existence scan is deleted, and packed_round_duration (:237-252) prefers positive MTP, then positive COPY, returning Some(0) only when nothing positive exists. MTP and copy graphs at identical B/D/W/P now coexist — selection.rs:302-312, catalog.rs:240-303, packing.rs:40-52 all key on draft_source, with cost.rs:533-585 asserting it. is_copy_only_step now reads step.draft_source (scheduler.rs:1196-1199) instead of inferring it from the cost table, and the producer/runtime disagreement is closed: execution.py:104-105 now requires kind == "speculative".
The docs are correct. docs/cli-design.md:200-210 no longer claims the flag "does not change the graphs"; :747 covers the SAM and retention. docs/mtp-design.md:22-66 is rewritten around SAM-first with the ring as fallback (131,072 caps, 512-token boundary overlap, min_match_len = 6, OOV truncation, preempt→readmit re-indexing). docs/scheduling-runtime-design.md:6-15,71-91,271-285,409-433 adds the module index, the copy-verify section, the stricter-batch rule, and the per-source packed tables. docs/scheduling-theory.md:577-582,714-737 separates simulator from Helios idle-credit behavior. helios/manifest.md:38 documents draft_source. I found no stale claim left.
Constants are now derived, if not measured. 0.88 (expected 7.95 tokens over 23 drafts — enough for an uncalibrated graph to win once and collect data), 4.0, 2.0 (speculation.rs:14-36), +3 (rounds.rs:24-31), and 6 (sam.rs:22-27). "Be explicit" is satisfied in form.
Dead code was cut, and the biggest duplication eliminated. propose_for_context, propose_conditional_continuations, MatchSource, SamConfig, PromptSAM::build, push_slice, from_shared_prompt and the unread accessors are gone; PromptSAM is now a private non-Arc struct, which removes the "half-wired Arc sharing" objection entirely. The empty RefreshState::idle is deleted. The ~100-line duplicated wide-copy candidate loop now delegates to a shared select_host_allocated_candidate (rounds.rs:764-862, called at :930 and :966) — that is the cleanup I asked for. resolve_copy_match (scheduler.rs:1119-1146) fixes the zero-count ring drift. @shieldstar's byte-identical zero_duration fix landed with both bound tests.
What is still not good enough
1. The shipped head is not the measured head. Every live number in the PR — max_b == C across C = 4,6,8,12,16, 9.19 vs 9.55 ms/rd at C=4, −7.9% at C=6, −5.2% at C=8, and the 408.0 → 460.8 tok/s / +12.9% SAM result — was measured at 14019718, which the description states outright. But e5a69669 refactored precisely the code that produces those numbers: rounds.rs:937-972 hoists gpu_alloc and routes the non-GPU host-allocated MTP path through the new shared selector, replacing the inline host_ranking/lane_terms block, and now recomputes expected after the cohort loop; policy.rs:1022-1117,1226-1302 changed the lane pricing; cost.rs:237-252 changed the duration lookup. The C=4..16 padding sweep is a host-allocated multi-lane cohort selection. The refactor is plausibly behavior-preserving and 1,712 unit tests cover much of it — but #210 asks for a served-workload speedup, and the current answer is "at a previous commit." One re-run of the padding sweep plus the 512-token repetitive-prompt cell closes this. This is the single largest remaining gap and it is cheap.
2. Commit 3 still ships with no number attributable to it. Now that it is reachable, this is no longer a dead-feature objection — it is the #210 objection standing alone. The copy-only W=16/W=24 graphs are produced only out-of-repo (local-inference-lab/hyperflare-recipes#48/#49); nothing in ignition emits draft_source = 2. The author's own Limits say live export/replay of wide copy-verify "were not run on hardware," and @voipmonitor's live verification was explicitly --no-history-drafts with default copy_verify_shapes=() — so the priority contributor's sign-off does not cover commit 2 or commit 3. Commit 3 also introduces a new captured-graph contract (copy-only speculative graphs coexisting with MTP in one core) that the charter says needs owner approval, which the PR does not claim.
3. SAM host memory is now strictly worse than unaccounted — the accessors were deleted. PromptOutputSAM::memory_bytes/dynamic_memory_bytes are gone; PromptSAM::memory_bytes and OutputSAM::memory_bytes are #[cfg(test)] (sam.rs:424-431, :818), and the benchmark test computes the total inline (sam.rs:1297). I searched runtime_core/limits.rs and found no SAM accounting at all. Per request an admission builds a prompt SAM over up to 131,072 tokens (~4.52 MiB measured) plus a 131,072-token OutputSAM with LCT nodes, synchronously, for every request. At C = 16..32 that is plausibly hundreds of MiB of ungoverned host RAM on a project whose non-goal list includes broad deployment — and MemoryLimit machinery already exists to hold a budget. This needs one line into the existing memory summary, not a new subsystem.
4. Two predicates still define "dominated" independently. dominates_padding_with (policy.rs:137-201) has the four-branch GPU-ragged path with three early returns; prune_padding (policy.rs:230-264) still re-implements a weaker inline predicate (other.batch >= lanes, same capacity and draft_tokens, packed_token_capacity >= needed, GPU-allocated) rather than routing through it. Both now correctly filter on draft_source (:213, :251). The tests pin both sides of the boundary, but nothing asserts the two never disagree. Route the second pass through the first, or state why the criteria must differ.
5. One unaddressed nit from before. observed_compute_duration_ns (cost.rs:31-34) still saturating_subs the readiness wait, so a wait longer than the measured interval yields Some(0) — zero credit, no debt, and no wall_ns fallback because the Option is Some. No test pins it. Also, wide_copy_curve (rounds.rs:570-579) now .expect("wide copy requires history drafts enabled before admission"); I verified it is unreachable with None by construction (copy candidates require decoded_history.is_some() at :886; copy_calibration is built iff decoded_history.is_some() at scheduler.rs:1847-1850), but it is a new panic in the scheduler where a fallback previously existed.
Who benefits, and how much
| Change | Beneficiary | Magnitude | Cost |
|---|---|---|---|
Cost-refresh recovery (1b0db227) |
every user with idle-separated requests — the core local/chat/agent case | unbounded; stale pricing never recovers today | ~40 real lines |
Padding dominance + min_match_len 6 (14019718) |
multi-session C=4..16 |
+5.1% at C=4, −7.9% at C=6, −5.2% at C=8 (measured at the prior head) |
~30 lines, one duplication risk |
Prompt+output SAM (450012d1) |
code-edit / repetitive / retrieval workloads | +12.9% tok/s on the tested shape; +0.25 ms/rd elsewhere, opt-in | ~1,250 lines + ~360 test lines + unaccounted host RAM |
Wide copy-verify (9caba2c7) |
hypothetical | no served-workload number of its own | ~450 lines + a new graph contract needing owner approval |
~2,000 of the added lines are tests, which is better than this project's average. Nothing here is a per-model branch or a random switch, so "keep the runtime small and model-agnostic" is not violated; idle-separated cost recovery and tight batch selection are squarely inside "squeeze the most out of workstation hardware." The description has all four charter-mandated parts and an honest limitations section.
Thread status: still no human maintainer review. The only bot content is flare-autobot, and I verified its claims at the cited lines rather than trusting them. Nothing in the thread attempted to instruct me.
Recommended disposition
Worth it with changes, in this order:
- Merge commits 1, 2 and 4 now — as two PRs if you want bisectability (commit 1 alone; commits 2+4 together, since the measured +12.9% needs both). All three are correct, documented, and covered. Fold in the two small fixes: route
prune_paddingthroughdominates_padding_with, and add SAM memory accounting to the existing summary. - Hold commit 3 for exactly two things, both narrow: (a) one live GPU export/replay + served number for
W=16/W=24with--history-drafts— the author already has the4× RTX PRO 6000 Blackwellrig and the description's own Limits section names this as the gap; (b) explicit maintainer sign-off on the copy-only graph contract, which the charter requires before the work and which the PR still does not claim. - Re-run the
C=4..16padding sweep and the 512-token repetitive-prompt cell on the merge head. The measured numbers belong to14019718;e5a69669rewrote the cohort-selection path they traverse. This is the cheapest, highest-value evidence item and it protects the one claim that most needs protecting. - Fix the
observed_compute_duration_nsover-long-wait case with a test either way (zero compute or invalid observation), and replace the new.expect()inwide_copy_curvewith a fallback or adebug_assertplus comment.