Explore scratchpad · NVIDIA/hyperflare-inference #661

Raw Markdown for agents: https://autobot.eidonix.com/p/0ad4e345-0901-46d3-beae-8666315411a2.md

#1 [high] Change: what PR #661 does (verified from diff)

PR #661 (FujitsuPolycom/Dooner), draft, base main, head 29f2b5b, opened+updated 2026-12-01. Labels area:scheduling, enhancement, performance. 10 files, +1785/-95 (desc says +312 net prod LOC / +391-79 in 4 scheduler files).

Verified diff by file:

#2 [high] Related work: #645 (merged 2026-11-30) introduced exactly the mechanisms #661 modifies

#645 "Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining", by Luke Alonso (lukealonso, COLLABORATOR), opened+merged 2026-11-30, +1886/-204, 21 files. Closes #485. This is the direct parent of #661's mechanism:

#3 [high] Related work: #538 (same author) added natural-fit discovery that #661 relaxes; it caused a 15.3 s regression fixed by #550

PR #538 "Restrict cold pure-prefill discovery to natural-fit graph capacities" by FujitsuPolycom (same author as #661), opened 2026-11-26 16:22, merged 2026-11-26 17:21, +451/-12, 3 files (policy.rs, policy_tests.rs, docs/scheduling-runtime-design.md). Introduced natural_fit_prefill_capacity — the exact restriction #661 now relaxes under active age-priced streams. So #661 is the author revisiting their own earlier, now-merged design. Autobot review on #538 recommended "Changes Requested" with 0 blockers and 3 should-fix items, notably:

#4 [high] Related work: #550 (merged) fixed a #538-caused GB10 15.3s prefix-cache regression; #661 edits the same doc paragraph

PR #550 "Restore prefix checkpoints on prefill catalogs without terminal prefill" by iein (CONTRIBUTOR), merged 2026-11-28, +71/-15, 2 files (docs/scheduling-runtime-design.md, helios/src/scheduler/checkpoints.rs). Applies the terminal-catalog pricing rule to every catalog in checkpoints.rs so unmeasured non-target capacities don't make a checkpoint cut's price "unknown". This is the direct predecessor of the doc paragraph #661 edits at docs/scheduling-runtime-design.md ("Pricing skips unmeasured capacities that consume no additional tokens over a smaller capacity, and unmeasured capacities other than the chunk's pricing capacity"). Measured evidence in #550: Inkling 2 Small NVFP4 TP4 on 4× DGX Sparks (GB10), core without terminal prefill: build f377dc85 (main after #538+#543) = 29 tokens reused / 15.3 s TTFT on an exact 31K repeat; c915b5f0 (before both) = fully reused / 0.02 s; #550 = fully reused / 0.02 s. Also Inkling 2 Mini TP1 DGX Spark (GB10) probes. => #661's expansion of unmeasured-shape eligibility via interpolation and its interaction with deferred_prefill/checkpoint pricing touches the exact area of this GB10 regression. Relevant: #661 also edits the same doc paragraph. Related open issues citing #550: #534 (checkpoint captures deadlock on unmeasured snapshot cost), #600 (TP2 EXL3 multi-turn prefix cache miss).

#5 [high] Related work: #663 (open, yatesdr) is the complementary sibling scheduler PR; stacked A/B evidence lives in its comments

#663 (open, yatesdr, COLLABORATOR) "helios/scheduler: price first-output waiting age on incumbent decode rounds" is the sibling/complementary scheduler PR. #661 mentions it; #663's own description explicitly names #661: "PR #661 enables smaller prefill chunks to protect active decoder cadence from long cold prompts; this change addresses the inverse side — keeping waiting prompts from starving behind active decode cohorts." Both edit the same --scheduler-policy balanced (decode_age_price = 0.1) path; #663 changes service.rs delivery_references -> delivery_references_and_decode_batch, utility.rs LaneValue, policy.rs lane_values, runtime.rs readmission. #661 changes service.rs service_rates, policy.rs catalogs, scheduler.rs feedback barrier. Files in common between #661 and #663: helios/src/scheduler.rs, policy.rs, policy_tests.rs, service.rs, docs/scheduling-runtime-design.md, scripts/scheduling_sim/utility.py (via #663), tests/test_scheduling_utility.py. #663 exists because flare-autobot opened duplicate draft #662 by mistake (closed 2026-12-01 19:40, "Closing duplicate draft opened under the wrong account; reopening under yatesdr"). Key cross-evidence (comment by FujitsuPolycom 2026-12-01 22:09 on #663): independent SM120 TP4 (4x RTX PRO 6000 Blackwell) paired A/B of #663 solo and stacked with #660 (22cac916) + #661 (fdb10bb5) against main a3c80e19, on a single signed DeepSeek-V4.1-Flash-1017 TP4 core. Reported that solo #663 raises >250 ms stall counts (mixed-c32 206 -> 431; heavy mix 1,235 -> 2,018) because mean active decode concurrency rises, and that stacking #661 cuts them to 91 (-78.9% vs solo #663, -55.8% vs base) and 523 (-74.1% / -57.7%), with mixed-c32 gap p99 203.1 ms (-10.6% vs base). Also: "Clean composition with #660 + #661: Zero semantic production conflicts (1 adjacent-function insertion in policy.rs and 2 test-fixture adjustments in policy_tests.rs; 424/424 scheduler:: tests pass)." => This is the only measured interaction evidence for #661 and it uses fdb10bb5, not the pushed head 29f2b5bc. Also notable: the mixed-c32 base numbers in this comment (1,055.7 tok/s, gap p99 227.3 ms) differ from #661's description (1,072.8 tok/s, gap p99 237.2 ms), i.e. different runs/baselines.

#6 [high] Related work: #660 (same author) shares #661's exact mixed-c32 baseline but reports 215 -> 434 stalls where #661 reports 215 -> 78

#660 (open, FujitsuPolycom, same author as #661) "helios/scheduler: budget interior conversation-anchor splits against checkpoint_extra_work_fraction", opened 2026-12-01 19:02, head cf744df (predecessor 22cac916), +887/-151, 12 files (checkpoints.rs +751/-87, docs/cli-design.md, docs/core-design.md, docs/scheduling-runtime-design.md +8/-9, helios/README.md, policy_tests.rs, tests.rs, phase_tests.rs, check.py). Same investigation series with #661: both target --scheduler-policy balanced prefill/decode contention on DeepSeek-V4.1-Flash TP4 on 4x RTX PRO 6000. #660's mixed-c32 base numbers are IDENTICAL to #661's head-row baseline (1,072.8 tok/s output; #660 base 5d53040e), so both PRs share the same base commit and the same mixed-c32 harness. #660 delta: SLO pass 9.1% -> 80.3%, output 1,072.8 -> 1,327.0 tok/s, TTFT p50 4,577 -> 1,920 ms, mean decode batch 9.13 -> 17.91. #660 explicitly discloses trade-offs: per-user p50 drops 93.9 -> 71.0 tok/s and >250 ms gaps rise 215 -> 434. => Direct implication for #661: #661's mixed-c32 baseline row (215 >250 ms stalls at base, 1,072.8 tok/s) is the same measurement #660 reports, but #661 claims 215 -> 78 stalls without #660 while #660 claims 215 -> 434 stalls for its own change. The two PRs move the same metric in opposite directions and are both open; #661's description does not mention #660 at all. Only FujitsuPolycom's comment on #663 shows them measured together. Autobot review of #660: 0 blockers, 2 should-fix; Merge Risk Medium; flagged "Rebase conflict with #655 ... #655 edits the same checkpoint_selection_uncached function" and "conflicts directly with open Ready-To-Merge #655 in checkpoints.rs and docs/". Files in common with #661: helios/src/scheduler/policy_tests.rs, verification/helios-lifecycle/check.py, docs/scheduling-runtime-design.md, helios/README.md (4 per orientation packet).

#8 [high] Change: undeclared reach — the feedback barrier also fires under --scheduler-policy throughput when a terminal-cleanup stream exists

Verified in code: PolicyConfig::default() sets decode_age_price: 0.1 (helios/src/scheduler/policy.rs:35) and terminal_age_price: 1.0 (:37); the throughput() preset is Self { delivery_fairness: 0.0, decode_age_price: 0.0, ..Self::default() } (:50-52) — it does NOT zero terminal_age_price. has_active_age_priced_stream() (helios/src/scheduler.rs:989-998) returns true if any slot satisfies terminal_cleanup(r) && policy.terminal_age_price > 0.0 OR policy.decode_age_price > 0.0 && phase in {Decode, Resume}. prefill_step_requires_feedback() now early-returns true when that holds (scheduler.rs:1180-1183). Consequence: under --scheduler-policy throughput (decode_age_price = 0.0), a non-terminal Prefill step still loses two-frame pipelining whenever a terminal-cleanup stream (e.g. Snapshot/Endpoint capture of a finishing request) is resident, because terminal_age_price is still 1.0. The PR description's "solo prefill and throughput (0.0) keep two-frame pipelining" is only true when no terminal-cleanup stream is active. The PR's own new test asserts this explicitly: has_active_age_priced_stream_covers_resume_and_terminal_cleanup_branches in helios/src/scheduler/policy_tests.rs does t.configure_policy(PolicyConfig::throughput()), then assert_eq!(t.policy.decode_age_price, 0.0); assert!(t.policy.terminal_age_price > 0.0); and asserts has_active_age_priced_stream() is true and plan_requires_feedback(&plan) is true for a nonterminal Prefill; zeroing terminal_age_price restores pipelining. The docs ARE accurate here — docs/scheduling-runtime-design.md says pipelining holds "only when no active age-priced decoding, resume, or terminal-cleanup stream exists". So this is a description-vs-code (not docs-vs-code) mismatch. Also means the "SM120 throughput launches identical (28/24/19)" claim does not cover the terminal-cleanup case. Also: prefill_step_requires_feedback is one of the two places where feedback is decided; the other gates in plan_requires_feedback (stale cost, probe, grammar) are unchanged.

#9 [high] Project fit: docs/scheduling-theory.md:74-76, 93-97, 119-120 say prefill has no cadence and needs no smaller chunks — #661 leaves that file untouched

docs/scheduling-theory.md states the theory #661 departs from, and #661 does NOT update this file (its doc diff touches only docs/scheduling-runtime-design.md and helios/README.md):

#12 [high] Claims: A/B numbers are author-reported on fdb10bb5, not head; throughput-keeps-pipelining claim contradicted by code; no in-repo benchmark reproduces the workloads

Claims vs backing in #661's own description (nothing here is verifiable from the repo; all of it is author-reported): Backed by code in the diff (verified):

#13 [high] Reach: activates by default on --scheduler-policy balanced, no flag, reverses #645's pipelining, widens the deferred_prefill rule

Reach / configuration & compatibility (verified):

#15 [high] Why: cold long prompts stall decoders on balanced because of cast-catalog mismatch + nat-fit discovery + two-frame pipelining; lineage via #485/#538/#550

The "why" of #661 (problem + lineage of the want): Problem as stated: under --scheduler-policy balanced (decode_age_price = 0.1), Helios interleaves smaller prefill chunks with decode steps because it has no mixed prefill-decode graphs on DeepSeek-V4.1-Flash TP4. Three coupled mechanisms make cold long prompts stall active decoders for seconds:

  1. TERMINAL_PREFILL catalogs start at 256 while PREFILL starts at 128, so a 128-token shape is non-terminal-only and cannot be used for a tail.
  2. Unmeasured smaller Prefill shapes are skipped by cold discovery (#538's natural-fit restriction), so once the largest graph is measured the scheduler keeps choosing it.
  3. Tails up to max_terminal (16384) run as ONE TerminalPrefill, and consecutive non-terminal Prefill steps fill both transport frames (#645), so decoders wait for both. Wanted-since / how widely: the underlying complaint predates #661 by at least a week of merges:

#17 [high] Project fit: served A/B over main satisfies charter #210; docs/design-review.md Layer-2 simulator + learning.py gate is explicitly unrun; theory doc contradicts

Charter / roadmap mapping (facts, from read_charter + docs/design-review.md):

#18 [high] Research summary

I built the case file for PR #661 in 17 scratchpad entries covering every required angle (change, why, related work, recent activity, people, community, project fit, claims and evidence, reach, process).

Headline findings a reader could not get from the description:

  1. The measured build is not the shipped build. #661's SM120/GB10 A/B ran on fdb10bb5; head is 29f2b5bc and the PR's own Limits section says the A/B predates the resize_prefill deferred_prefill guard and doc/test hardening.
  2. "throughput (0.0) keeps two-frame pipelining" is false in one case. PolicyConfig::throughput() zeroes decode_age_price but leaves terminal_age_price = 1.0 (policy.rs:50-52), and has_active_age_priced_stream() (scheduler.rs:989-998) checks it, so non-terminal Prefill still drains whenever a terminal-cleanup stream is resident. #661's own test has_active_age_priced_stream_covers_resume_and_terminal_cleanup_branches (policy_tests.rs:7745) asserts this.
  3. #661 reverses work merged one day earlier. #645 (lukealonso, merged 2026-11-30) introduced GraphKind::Prefill two-frame pipelining, prefill_step_requires_feedback, effective_prefill_catalog and PrefillCostModel — every mechanism #661 now narrows or replaces.
  4. Sibling PRs and a head-to-head contradiction. #660 (same author) shares #661's exact mixed-c32 baseline (1,072.8 tok/s, 215 stalls) but reports >250 ms stalls going 215 → 434, where #661 reports 215 → 78. Neither description mentions the other. #663 (yatesdr) is the inverse-side sibling; the only stacked A/B for #661 lives in a comment there.
  5. A documented mandatory gate is explicitly unrun. #661 changes graph selection and timing estimation, which docs/design-review.md:195-208 says requires the scripts/scheduling_sim/learning.py (not opened) 64-seed catalog; the PR discloses learning_policy.py (not opened) unrun, and the simulator has no concept of an unmeasured cost, so the interpolation has no simulator equivalent.
  6. docs/scheduling-theory.md still states the opposite (:74-76 no per-chunk prefill cadence; :93-97, :119-120 no prefill-size preference, "two long prefills do not need smaller chunks merely to alternate"). #661 updates scheduling-runtime-design.md and helios/README.md but not that file.
  7. Undeclared kind change: resolve_prefill_kind_from now resolves every capacity outside terminal_prefill_catalog to TerminalPrefill whenever deferred_prefill is set, not just tails (scheduler.rs:896-902). It tightens #613's invariant but is only obliquely mentioned.
  8. Zero engagement: no comments, no reviews, no CI, no reactions, no triage: label, draft, one commit stacked on 5d53040e and behind a3c80e19.

I also recorded the problem lineage (#485 → #538 → #550, including iein's measured 0.02 s → 15.3 s GB10 prefix-cache regression caused by #538's natural-fit restriction, and #550's fix), the full related-work graph (#426, #352, #479, #510, #613, #655, #69, #534, #600, #542, #571, #334, closed #654), the people map (FujitsuPolycom's scheduler series; lukealonso's ownership of the changed code; yatesdr, logprobz, iein, voipmonitor, original-el8), and a charter/design-review mapping showing where the PR aligns (no flags, no model branches, no ABI change, served A/B over main on target hardware) and where it does not (implicit default-on change under balanced, Layer-2 gate unrun, theory-doc contradiction).

#19 [high] Recent activity: what changed in these areas just before #661, by whom and why

Recent activity on the files #661 changes (helios/src, scripts/scheduling_sim, docs, tests, verification), from the orientation packet plus search_history ref=main for helios/src/scheduler/policy.rs and cost.rs:

Base commit of #661 is 5d53040e (2026-12-01, yatesdr, "helios: gate offload Copy Engine batches during peer-copy graphs", #628). Main has since advanced to 5c0d9c67 (#666, Jason Cook, RoCE dual-rail spread) and a3c80e19 (#657, Luke Alonso, mDNS _ai-gateway._tcp advertise). #663's baseline is a3c80e19, and #660 rebased onto 5d53040e with "0 conflicts vs a3c80e19" — so #661 is 2+ commits behind main and its own authors' sibling PRs are already rebased past it.

Scheduler commits immediately preceding, newest first (all within ~10 days, from search_history on policy.rs/cost.rs):

People density in these files (180 days): helios/src — Luke Alonso 235 commits, Martin Vit 52, yatesdr 48; docs — Luke Alonso 390. So #661 is authored by a non-dominant contributor on code that the dominant maintainer rewrote the day before.

Same-day cluster (2026-12-01) of scheduler PRs, all open, all touching overlapping files: #660 (FujitsuPolycom, checkpoints/anchor splits), #661 (FujitsuPolycom, prefill chunking), #655 (yatesdr, snapshot cost retention, Autobot: Ready To Merge), #663 (yatesdr, first-output age; #662 is its closed bot-duplicate). That is 4 open scheduler PRs by 3 people in one day on the same policy.

#22 [high] Amendments (run 2827/event of 2026-12-02): new head c588d610, rebase, service.rs, theory doc, Autobot review

AMENDMENTS TO REPORT #21 (PR #661), event: new head c588d610 pushed 2026-12-01, PR updated 2026-12-02 00:58.

A1. Head/scale/base changed. Head is now c588d610 ("explore smaller prefill chunks under active age-priced streams"), rebased directly onto main 1fbcc3c9 (#667, merged 2026-12-01). Scale is +1,949/−106 in 11 files (was +1,785/−95 in 10 files); production diff is +397/−78 in 4 files (scheduler.rs, cost.rs, policy.rs, service.rs). The "one commit behind main 5d53040e / 1 commit atop 5d53040e" process finding is stale: the PR now sits on current main, so no rebase is outstanding (search_history pr/661: c588d610 → 1fbcc3c9). Citation impact: the line numbers in report #21's proposal section drifted. At c588d610: interpolation pricing is policy.rs:1113-1140 (continuation ladder) and policy.rs:1465-1492 (add_candidate); cost::interpolated_prefill_duration is cost.rs:695-786 unchanged; the widened deferred_prefill mapping is scheduler.rs:901-906; the feedback drain is scheduler.rs:1187-1190; resize_prefill is policy.rs:1889-1935 with the age-priced cap at :1912-1916; prefill_must_complete_terminally_from is scheduler.rs:964-994; has_active_age_priced_stream :996-1005.

A2. Fifth production file: service.rs (+29/−17) was NOT in report #21's file list. New token_rate == 0.0 fallback in RequestScheduler::service_rates (service.rs:298-328): when only terminal prefill is legal (terminal_only), an active age-priced stream exists, and !prefill_must_complete_terminally_from(...), it rescans non-terminal Prefill capacities so the request gets a positive token service rate. This is not just selection — it feeds ServicePrice rebasing through lane_values (policy.rs:739-746, :775-786), so #661 also changes entropy-dual prefill pricing for default balanced users, a reach item report #21 did not list. Its cost is an extra catalog scan per service_rates call on that path.

A3. docs/scheduling-theory.md is no longer untouched — one of report #21's high findings narrows rather than stands. The PR now appends a paragraph at docs/scheduling-theory.md:558-565 explaining that the simulator's initial_discovery = "native" bootstraps all non-padded unmeasured prefill shapes while native Helios restricts solo (age_price == 0) discovery to natural fit and interpolates under age pricing. Roughly accurate against scripts/scheduling_sim/learning_policy.py:183-197 (padded filter) and scripts/scheduling_sim/model.py:24-36 (single prefill family). BUT the contradictory statements remain unamended at docs/scheduling-theory.md:74-76 ("Prefill has no externally visible per-chunk cadence"), :93-97 ("No duration ceiling, prefill size preference...") and :119-120 ("Two long prefills do not need smaller chunks merely to alternate"). So the doc contradiction persists, now with one PR-authored paragraph that admits the divergence instead of reconciling it.

A4. Simulator gate: partially run, still unmet. PR Evidence now claims learning.py smoke + screen. Those are TRAINING_SEEDS = range(16) with SMOKE/SCREEN_SCENARIOS (scripts/scheduling_sim/learning.py:488-497, learning_scenarios.py:153-154). The gate text asks for "the screening and 64-seed validation catalog" (docs/design-review.md:202-204); the 64 held-out seeds are HELDOUT_SEEDS = range(10_000, 10_064) (scripts/scheduling_sim/learning_analysis.py:12) used only by --preset validate (learning.py:488). Report #21's "declared unrun, no simulator equivalent" should read: screening runs, 64-seed validation still unrun, and no simulator model of TERMINAL_PREFILL splitting/two-frame pipelining exists (model.py Graph has only prefill_capacity/decode_capacity/width), so the simulator still cannot validate the two mechanisms #661 changes.

A5. #663 has MERGED (8489d504, 2026-12-01), and #662 was closed. Report #21's related-work framing ("stacked A/B lives in a comment on #663", "inverse-side sibling, open") is stale: #661's own body now carries post-#663 numbers (mixed-c32 control 286.0 ms / 431 gaps → 203.1 ms / 91), i.e. #661 now presents itself as halving a regression that is already in main. Remaining open siblings: #655 (Ready To Merge, touches cost.rs/checkpoints.rs/scheduler.rs) and #660 (Ready To Merge after 23:49 review, touches checkpoints.rs + policy_tests.rs + docs). #661 is now the only scheduler PR in the queue still at Changes Requested.

A6. The #660 contradiction persists and sharpens: both PRs share the same mixed-c32 control row (1,072.8 tok/s out, >250 ms = 215) and diverge — #660 reports 215 → 434 with 9.1% → 80.3% SLO (read_item #660), #661 reports 215 → 78 with out 1,072.8 → 1,050.8. Neither is head-to-head; both are against 5d53040e-era bases.

A7. Community/process finding is now stale in part: the PR is no longer comment-free or unlabeled. Labels are area:scheduling, enhancement, performance, triage:design-review. @flare-autobot posted an intake note (2026-12-01 22:45) and an Autobot Review with recommendation Changes Requested (2026-12-01 23:08): 1 blocker, 2 should-fix, 4 subtract/simplify, 2 nits. Crucially that review targets 29f2b5b, not head c588d610 (the head was pushed afterward; re-review is due ~90 min after push). There is still zero human review and still no CI run attached.

A8. Autobot's review independently corroborates two of my report's claims: (a) the throughput-keeps-pipelining claim contradicts policy.rs:50-52 (throughput leaves terminal_age_price = 1.0) — the new revision even adds a test that documents the exception, policy_tests.rs:8252-8334, asserting the drain fires for a terminal-cleanup stream under PolicyConfig::throughput() (:8291-8314) while the PR body still says "(throughput pipelines)"; (b) the 64-seed simulator timing gate is unrun. New, review-reported and consistent with my reading of the test: a false-pass blindspot in continuation_candidate_excludes_oversized_padded_unmeasured_prefill (policy_tests.rs:7728-7810) — its assertion compares only the Init continuation score (phase_plan(GraphKind::Init, ...) at :7798-7800) while the oversized-sibling guard it is named after lives in the prefill branches (policy.rs:1113-1140, :1465-1492), so it can pass regardless.

A9. Mutation guard now encodes the undeclared widening. verification/helios-lifecycle/check.py:527-532 changed the expected source from return if request.deferred_prefill && needs_terminal { to return if request.deferred_prefill {. The lifecycle mutation check therefore now enforces the widened rule (every capacity outside the terminal catalog maps to TerminalPrefill under deferred state) rather than the pre-#661 rule, which is exactly the reach item report #21 flagged as undeclared in the description.

A10. New test/doc inventory at head: policy_tests.rs +1,103 (resize_prefill cap :7813, age-priced stream branches :8252, terminal-catalog nat_fit exclusion :8337, Discovery-origin no-leak :8426-8542), cost.rs +400 (3 interpolation tests :1280/:1355/:1474), scripts/scheduling_sim/workloads.py +51 (gb10_catalog/prefill_storm_gb10), tests/test_scheduling_utility.py +24 (simulator-concurrency stall test asserting max_output_gap < 800 ms), helios/README.md, docs/scheduling-runtime-design.md (:319-324, :332-337, :351-353, :486-505, :639-644, :662-673), docs/scheduling-theory.md:558-565, check.py.

A11. A/B provenance still limits the headline: the body says SM120 A/B ran on fdb10bb5/82f68ea8 "before resize_prefill/Discovery guards and 1fbcc3c9 rebase", and GB10 numbers predate #656. So the -29.0%/-78.9% post-#663 row and the 268→78 row describe code that is not the head; the only thing tying c588d610 to results is the archive tree 74625efe claim.

#24 [high] Research summary

Amendments to report #21 for PR #661, after the code update to head c588d610 (rebased onto main 1fbcc3c9) and the arrival of an Autobot review.

What moved. Head/base/scale: +1,949/−106 in 11 files, production +397/−78 in 4 files, no rebase outstanding — my "one commit behind main" process finding is obsolete, and my line citations drifted (policy.rs:1113-1140, :1465-1492, :1889-1935/:1912-1916; scheduler.rs:901-906, :964-1005, :1187-1190). A fifth production file I missed, service.rs (+29/−17): its token_rate == 0.0 fallback (service.rs:298-328) feeds ServicePrice::rebase through lane_values (policy.rs:739-746, :775-786), so #661 also reprices prefill service under default balanced — a reach item absent from my report.

Findings that narrow. docs/scheduling-theory.md is no longer untouched: a new paragraph (:558-565) concedes that native Helios diverges from the simulator's initial_discovery = "native", but the contradicting statements (:74-76, :93-97, :119-120) remain, so the contradiction stands with an admission instead of a reconciliation. The simulator gate is now partly run — learning.py smoke+screen are TRAINING_SEEDS = range(16), while the mandated 64-seed validation (HELDOUT_SEEDS = range(10_000,10_064)) is still unrun and the simulator still models no TERMINAL_PREFILL splitting or two-frame pipelining (model.py:24-36). helios/README.md:285-287 and :426-431 do match the code, so the documentation gap is theory-only.

Findings that hold or sharpen. throughput-keeps-pipelining is still false (policy.rs:50-52) and the revision now ships a test documenting the exception (policy_tests.rs:8291-8314) while the body still claims it. The undeclared deferred_prefill widening is now encoded in the mutation guard (check.py:528-535). The new test continuation_candidate_excludes_oversized_padded_unmeasured_prefill (policy_tests.rs:7728-7810) asserts only an Init score and can pass regardless of the guard it names. #663 has merged and #662 closed, so #661 now claims to fix an in-main regression; #655 and #660 are Ready To Merge while #661 is the only one at Changes Requested. The #660 stall divergence (215→434 vs 215→78) persists, both baselines 5d53040e-era, still no head-to-head. A/B numbers still precede the head (fdb10bb5/82f68ea8), and no CI run is reported for c588d610; the Autobot Changes Requested review targets the superseded 29f2b5b.

Full detail with citations is in scratchpad entries #22 and #23.

#25 [high] Amendment report skeleton: claim-by-claim supersede list for report #21

SKELETON FOR THE AMENDMENT REPORT (PR #661, head c588d610). Pairs each new claim with its citation and names the report #21 statement it replaces. Use with entries #22 and #23.

A. HEAD / SCALE / BASE

B. NEW CITED LINE NUMBERS (replaces #21's drifted numbers)

C. THE FIVE AMENDMENT CLAIMS (each already cited in #22/#23)

  1. service.rs fallback changes prefill service pricing, not just selection: service.rs:298-328; effect via lane_values policy.rs:739-746 and :775-786 (ServicePrice::rebase at :779-785).
  2. theory doc conceded but not reconciled: added docs/scheduling-theory.md:558-565; unchanged contradictions :74-76, :93-97, :119-120. Simulator facts: learning_policy.py:183-197 (padded filter), model.py:24-36 (single prefill family, no terminal).
  3. Simulator gate partly run: learning.py:488-497 with TRAINING_SEEDS=range(16) (learning_analysis.py:13) and SMOKE/SCREEN_SCENARIOS (learning_scenarios.py:153-154); HELDOUT_SEEDS=range(10_000,10_064) (learning_analysis.py:12) unused; gate text docs/design-review.md:195-208 (esp. :202-204).
  4. throughput claim false and now self-documented: policy.rs:50-52; test policy_tests.rs:8252-8334 with throughput terminal-cleanup drain asserted :8291-8314; body still says "(throughput pipelines)".
  5. deferred_prefill widening now enshrined in the mutation guard: check.py:528-535.
  6. New test blindspot: policy_tests.rs:7728-7810 compares only the Init continuation score (:7798-7800) while the guard lives in the prefill branches.
  7. README already accurate: helios/README.md:285-287 and :426-431.

D. RELATED-ITEM REFRESH

E. CONCLUSION UNCHANGED / RESTATED Recommendation stays: do not merge as-is. Three live blockers: (i) no served A/B on the mergeable head and no CI (body Limits: "SM120 A/B ran on fdb10bb5/82f68ea8 before resize_prefill/Discovery guards and 1fbcc3c9 rebase"); (ii) 64-seed simulator validation still unrun and the simulator cannot model the changed mechanisms; (iii) the throughput claim in the body is false. Add: declare the service.rs pricing change and the deferred_prefill widening in the description, and reconcile docs/scheduling-theory.md:74-76/93-97/119-120.

#27 [high] Amendments (run 2879, event 2026-12-02): head 3d868f84 — simulator rule + 64-seed gate, single-pass service_rates, wait-clock & reconciled-credit fixes, #676/#681

AMENDMENTS TO REPORT #26 (PR #661). New head 3d868f84 (tree c1d6858b) atop main 1fbcc3c9; PR updated 2026-12-02 13:49. Total +2,778/-186 in 15 files (PR header + file list); production Rust +376/-140 in the same 4 files, "+236 net non-test Rust production LOC" (PR body "What"). The rest of report #26 stands except as amended below.

A1 (supersedes #26 A1). Head is 3d868f84, not c588d610; the scale item changes to +2,778/-186 in 15 files (was +1,949/-106 in 11). New files in the diff vs #26: scripts/scheduling_sim/learning.py, learning_policy.py, workloads.py, tests/test_scheduling_learning_experiments.py, tests/test_scheduling_learning_policy.py, tests/test_scheduling_utility.py — i.e. the change is no longer "production + tests + docs", it also edits the mandatory simulator and its test suite. Line citations that moved: interpolation cost.rs:695-776 (sibling passthrough :702-712, decode floor :764-768, clamp :769-771, u128 interpolate :772-775); prefill_candidate_ns policy.rs:518-543; PrefillSlotPlan policy.rs:89-96, :508-515; prefill_catalog_for_terminal policy.rs:371-374; natural_fit_prefill_capacity_for_terminal policy.rs:409-434; add_prefill_candidate policy.rs:1422-1458; is_unmeasured_candidate policy.rs:545-548; continuation ladder policy.rs:1051-1121; resize_prefill age cap policy.rs:1838-1853; reconciled credit policy.rs:1393-1407; wait-clock carry policy.rs:500-505; service_rates single pass service.rs:297-311; prefill_step_requires_feedback scheduler.rs:1187-1190; resolve_prefill_kind_from widening scheduler.rs:901-907; terminal_prefill_window cache scheduler.rs:847-866.

A2 (supersedes #26 A2 — the service.rs finding narrows sharply). The token_rate == 0.0 rescan is GONE. service_rates now derives terminal_only once, in the same pass (service.rs:297-301: prefill_must_complete_terminally_from when has_active_age_priced_stream(), else prefill_requires_terminal_completion_from), and prices every capacity in prefill_catalog (:302-320, skipping only GraphKind::Prefill when terminal_only). So (i) Autobot's Round-2 blocker "service_rates misprices feasible non-terminal Prefill whenever any TerminalPrefill is measured" is fixed; (ii) there is no extra catalog scan. The reach item stands in reduced form: #661 still changes entropy-dual prefill service pricing under balanced because terminal_only can now be false where it used to be true (a request whose tail fits in max_terminal may be priced on a smaller non-terminal chunk instead of one TerminalPrefill). Not declared in the body.

A3 (supersedes #26 A4 — the simulator gate is now claimed run, and the simulator now models the rule, but only part of it). New simulator code: scripts/scheduling_sim/learning_policy.py:199-238 (_natural_fit_prefill_capacity, _interpolated_prefill_duration), selection at :276-333 (initial_discovery="interpolated", active_age_price, interpolated/interpolated_actions, best_scored, reason="interpolated_prefill_discovery"), metadata/score_kind :380-393, snapshot :783+; CLI choice learning.py:436; PolicyConfig validation learning_policy.py:80-81; tests tests/test_scheduling_learning_policy.py (3 new) and tests/test_scheduling_learning_experiments.py:761-778. Author reports learning.py --preset validate --reference ttl (64 held-out seeds, 15,872 runs) PASSED with 0/64 resets. Caveats a reviewer should carry: (a) the model still has one prefill family — model.py:23-39 Graph carries only prefill_capacity/decode_capacity/width, so there is no TERMINAL_PREFILL sibling, no natural-fit per kind, no checkpoint cut, no two-frame pipelining, no first_output_wait_ns carry and no reconciled cut credit: _interpolated_prefill_duration (learning_policy.py:208-238) interpolates purely on capacity and ignores work/start_position, and filters peers by prefill_capacity alone (:219-226), so "match the Helios interpolated prefill-discovery rule" (docs/scheduling-theory.md:572-573) is approximate. The 64-seed result therefore qualifies the interpolation rule only; the drain, wait-clock and reconciled-credit changes remain unvalidated by any simulator. (b) --preset validate takes policy parameters only from a --configs JSON and rejects CLI --initial-discovery (learning.py:472-485; asserted in tests/test_scheduling_learning_experiments.py:761-778), and no such config file is committed, so the reported run is not reproducible from the repo tree. (Gate text: docs/design-review.md:195-208, esp. :202-204.)

A4 (supersedes #26 A5 and scratchpad #8 — the throughput claim/code contradiction is resolved in the description). The body now says throughput (decode_age_price = 0.0) pipelines across decode and resume and "drains only when a finishing terminal_cleanup stream is resident (terminal_age_price > 0.0)" (PR body "What"), which matches policy.rs:50-52 + scheduler.rs:996-1005, :1187-1190. Residual, not a blocker: the body's Result section offers "Opt-out: --scheduler-policy throughput", which understates what still applies under throughput — the widened deferred_prefill kind resolution (scheduler.rs:901-907) and the terminal-cleanup drain are policy-independent; and full opt-out requires terminal_age_price = 0, which no preset provides.

A5 (supersedes #26 A7 — test blindspot partly closed). The blindspot in continuation_candidate_excludes_oversized_padded_unmeasured_prefill (policy_tests.rs:7739-7821, still only comparing the Init continuation score) survives, but a companion test now guards the prefill branch: add_candidate_excludes_oversized_unmeasured_terminal_prefill_above_prefill_nat_fit (policy_tests.rs:8526-8613). New tests at this head: service_rates_prefers_faster_feasible_prefill_over_slower_measured_terminal_under_active_decoders (:8291), has_active_age_priced_stream_covers_resume_and_terminal_cleanup_branches (:8421), interpolated_unmeasured_prefill_returns_discovery_even_when_refresh_or_acceptance_ready (:8615), first_output_wait_preserved_across_age_priced_non_terminal_prefill_chunks (:8734), deferred_terminal_prefill_at_checkpoint_cut_credits_reconciled_segment_wait (:8932), plus the GB10 storm test which now also asserts plan_requires_feedback on every Prefill step and no chunk > 8K (:7677-7712) and the rewritten deferred service-rate expectation (policy_tests.rs:5196-5224: 256/5 with an active decoder, 513/40 solo).

A6 (supersedes #26 A10 — the A/B numbers are now on the submitted tree). Body states the SM120 TP4 flare run A/B is on 3d868f84 / tree c1d6858b vs main 1fbcc3c9, balanced, 0 server errors, and the two additional fixes are described as "validated on 3d868f84". So "numbers predate the head" is no longer true. Still author-reported with no in-repo harness (workloads live in FujitsuPolycom/tokbench v0.4.0), and GB10 is still not re-measured on this head (body Limits). Note the headline numbers themselves are now mixed results, worth quoting as such: mixed-c32 stalls 538 -> 365 (-32.2%), median stalled time 11.39% -> 6.65% (-41.6%), but output -1.5% (1,273.0 -> 1,254.4), TTFT p50 +3.9% (1,423 -> 1,479 ms), SLO 91.1% -> 89.4%; long-context-mixed stalls 863 -> 503 (-41.7%), output +1.4%, SLO 94.8% -> 89.3%; cold-heavy-mix stalls 2,988 -> 2,732 (-8.6%), output +2.0%, TTFT p50 -10.9%, but SLO 89.0% -> 81.6% and client-side 45 s drain cutoffs 4 -> 7; cold-burst probe peak gap 277.4 -> 433.7 ms, mean max gap 229.3 -> 243.8 ms, makespan 2.813 -> 2.906 s (worse on all three). The old "215 -> 78" row and the post-#663 "286.0 ms/431 -> 203.1 ms/91" row in report #26 are superseded: the current control is 538 stalls at 1,277 tok/s on current main.

A7 (supersedes #26 A8 — the #660 contradiction no longer lines up). #661's current control is main 1fbcc3c9 (output ~1,277, >250 ms 538); #660's control row (1,072.8 tok/s, 215) came from a 5d53040e-era base. The two PRs are no longer reporting against the same baseline, so the "same control row, opposite direction" framing should be retired as unverifiable rather than sharpened; what remains is that neither has a head-to-head and #660 is still open.

A8 (new). Two related items appeared after report #26 and belong in the related-work map.

A9 (narrows #26 A3 / scratchpad #9 — docs). docs/scheduling-theory.md:93-96 now carries "(cold discovery of unmeasured pure-prefill shapes follows scheduling-runtime-design.md)" and :562-573 documents initial_discovery = "interpolated"; docs/scheduling-runtime-design.md:281-289, :359-364, :494-517, :647-652 document the wait-clock carry, the reconciled-segment credit, the age-priced exploration and the drain. Unamended contradictions remain at docs/scheduling-theory.md:74-76 ("Prefill has no externally visible per-chunk cadence") and :121-122 ("Two long prefills do not need smaller chunks merely to alternate"), i.e. the theory doc still asserts the behaviour the PR removes, while the parenthetical at :93-96 is scoped to discovery. helios/README.md:282-289 and :423-433 remain accurate.

A10 (new, code-level, low-medium severity). Hot-path and cache-surface growth introduced by this head: PrefillSlotPlan memoises (cut, terminal_only, nat_fit) per slot for the whole candidates() pass (policy.rs:89-96, :508-515), which is required for cost but means estimated_checkpoint_cut and prefill_requires_terminal_completion_for_age are snapshotted once per slot per planning pass; has_active_age_priced_stream() (O(slots)) is now called from service_rates (service.rs:297), preserves_first_output_wait (policy.rs:503) and prefill_step_requires_feedback (scheduler.rs:1188) on every planning/completion. terminal_prefill_window is cached at catalog updates (scheduler.rs:847-866) — the O(catalog) recompute is gone, good. None of this is unsafe or unbounded, but it makes the number of planner-side full-slot scans grow with the existing ones rather than stay flat; worth a benchmark note (the PR gives no planner timing).

A11 (conclusion, restated). Recommendation stays "do not merge as-is", but the blocker list shrinks from three to two: (i) the served A/B is author-reported with no in-repo harness and the two scenarios that show an SLO regression (cold-heavy-mix 89.0 -> 81.6%, drain cutoffs 4 -> 7) and the cold-burst probe (peak gap 277.4 -> 433.7 ms) need explaining before a default-on merge; (ii) the 64-seed gate is claimed passed for the interpolation rule only, the simulator still cannot model the drain / wait-clock / reconciled-credit mechanisms, and the validate config is not committed. Resolved since report #26: the false throughput claim, the service_rates mispricing (Autobot's Round-2 should-fix), the extra catalog scan, and the "numbers predate the head" objection. Still open and undeclared: the deferred_prefill kind widening (scheduler.rs:901-907, enshrined in verification/helios-lifecycle/check.py:527-535), the service_rates repricing (A2), and docs/scheduling-theory.md:74-76/:121-122.

Process facts at this head: labels are now area:scheduling, enhancement, performance, triage:validation (was triage:design-review); there are two Autobot reviews, both Changes Requested (2026-12-01 23:08 on 29f2b5b; 2026-12-02 02:49 on c588d61), and a third is auto-due ~90 min after the 13:49 push; no human review; the author states "GitHub Actions CI is triggered on 3d868f84" but no CI result is readable. Archive claims at this head: cargo check/test 3,590 passed, pytest 839/839, check.py 26/26 Rust mutations, kani not installed.

#29 [high] Research summary

Amendments to the PR #661 report (scratchpad entry #27, plus verification spot-checks in #28). The branch moved to head 3d868f84 (tree c1d6858b) atop main 1fbcc3c9, and the PR body was rewritten to answer the Round-2 Autobot review. Only the changes matter; the rest of the earlier report stands.

What changed in substance. Scale is now +2,778/−186 in 15 files (+376/−140 production Rust, "+236 net non-test"), and six of those files are new to the diff: scripts/scheduling_sim/{learning,learning_policy,workloads}.py and three test files — the PR now edits the mandatory Layer-2 simulator rather than only Rust and docs. The service.rs rescan I flagged is gone: service_rates derives terminal_only once inside the same pass (service.rs:297-311), which fixes Autobot's mispricing blocker and removes the extra catalog scan; what remains is an undeclared shift in entropy-dual prefill pricing. The false "throughput pipelines" claim is fixed in the body (decode_age_price = 0.0 pipelines; drains only with a terminal_cleanup stream, matching policy.rs:50-52 + scheduler.rs:1187-1190), though "Opt-out: --scheduler-policy throughput" still overstates because the deferred_prefill widening (scheduler.rs:901-907) and terminal-cleanup drain are policy-independent. The 64-seed gate is now claimed run and the simulator has an interpolated discovery mode (learning_policy.py:199-238, :276-333), but the model still has a single prefill family (model.py:23-39), so only the interpolation rule is validated — not the drain, wait-clock carry or reconciled cut credit — and --preset validate rejects CLI parameters in favour of a --configs file that is not committed (learning.py:472-485), so the run is not reproducible from the tree. Headline A/B numbers are now on the submitted head, and they are mixed: big stall reductions (mixed-c32 538→365, long-context-mixed 863→503) alongside SLO regressions (cold-heavy-mix 89.0%→81.6%, drain cutoffs 4→7) and a worse cold-burst probe. Docs narrowed to two contradicting sentences (scheduling-theory.md:74-76, :121-122).

New related items. #676 is an independent GB10 reproduction of the same failure with an offer to test #661 on that hardware; #681 (same author, draft, stacked on #661) carries the nearest GB10 evidence, with served rows on top of 3d868f84. The #660 "same control row, opposite direction" contrast should be retired — the baselines no longer match.

Checks and conclusion. Spot checks at the new head found no defects in the consolidated code: the interpolation memo key (work, scheduled_consumed) is reset per capacity and the interpolation function is pure in those arguments; is_unmeasured_candidate cannot classify a measured candidate as Discovery; the age-priced resize_prefill caps growth at the winning capacity while keeping the old behaviour otherwise. Recommendation stays "do not merge as-is", but the blockers drop from three to two: author-reported-only served A/B whose SLO and burst-probe rows regress, and a 64-seed gate that covers only the interpolation rule with an uncommitted validate config. Still undeclared: the deferred_prefill kind widening (now enshrined in verification/helios-lifecycle/check.py:527-535 (not opened)), the service_rates repricing, and the two theory-doc sentences. Two Autobot reviews, both Changes Requested and both on superseded heads; no human review; CI stated as triggered but no result readable.

#30 [high] Amendment skeleton: report #26 → 3d868f84 strike/keep/add map for the final report

For the report writer: pairs each claim in report #26 (the c588d610 amendment report) with its disposition at head 3d868f84. Use with #27 (full text and citations) and #28 (code spot checks).

STRIKE / REPLACE

  1. "#661 is +1,949/-106 in 11 files" → "+2,778/-186 in 15 files; production Rust +376/-140 in the same 4 files" (PR header, "Files changed (15)"; body "What": "+236 net non-test Rust production LOC").
  2. "the change touches production + tests + docs" → it also edits scripts/scheduling_sim/{learning,learning_policy,workloads}.py and three Python test files.
  3. All c588d610 line citations → the 3d868f84 set in #27 A1 (cost.rs:695-776; policy.rs:518-543, 89-96, 371-374, 409-434, 1422-1458, 545-548, 1051-1121, 1838-1853, 1393-1407, 500-505; service.rs:297-311; scheduler.rs:847-866, 901-907, 1187-1190).
  4. #26 A2 "service.rs token_rate == 0.0 fallback reprices prefill and costs an extra catalog scan" → fallback removed; single-pass terminal_only; the residual repricing claim survives, the scan cost does not.
  5. #26 A5 "the body's throughput claim is false, now self-contradicted by its own test" → fixed in the body; only the "Opt-out: throughput" overstatement and the policy-independent deferred_prefill widening remain.
  6. #26 A4 "64-seed validation still unrun; the simulator cannot model the changed mechanisms" → validation claimed run and the interpolation rule is now modelled; the simulator still cannot model the drain / wait-clock carry / reconciled credit, and the validate config is uncommitted.
  7. #26 A10 "the A/B numbers predate the head" → the body now states 3d868f84/c1d6858b vs main 1fbcc3c9; the objection becomes "author-reported, no in-repo harness, GB10 not re-measured, and several SLO/burst rows regress".
  8. #26 A8 "#660 shares the control row and moves the stall metric the other way" → retire: #661's control is now ~1,277 tok/s / 538 stalls; #660's 1,072.8 / 215 came from a 5d53040e-era base.
  9. #26 A3 "theory doc admits divergence at :558-565 but contradicts at :74-76/:93-97" → narrow to :74-76 and :121-122; :93-96 now carries the pointer to scheduling-runtime-design.md#duration-estimates and :562-573 documents interpolated.
  10. #26 A7 "one new test can pass regardless of the guard it names" → still true for the Init-score test (policy_tests.rs:7739-7821) but partly closed by add_candidate_excludes_oversized_unmeasured_terminal_prefill_above_prefill_nat_fit (:8526-8613); test list replaced by #27 A5.
  11. #26 "three live blockers" → two: served-A/B regressions without an in-repo harness; 64-seed gate scope plus uncommitted config.

KEEP UNCHANGED

ADD

#7 [medium] Related work: #654 (closed, opt-in knob) is superseded by #663; its benchmark harness is not carried forward

#654 (closed 2026-12-01 22:02, logprobz, CONTRIBUTOR) "Add opt-in first-output age pricing and returning-agent benchmark", +4940/-126, 26 files. This is the opt-in (--scheduler-first-output-age-price, default 0.0) predecessor of yatesdr's zero-knob #663/#662, and #663's description says it "derives from and consolidates the returning-prompt investigation in #654 (co-authored with @logprobz)". Closed, not merged; logprobz's 2026-12-01 21:58 review on #663 recommends using #663 as the basis and splitting #654's benchmark/analyzer into a separate PR. #654 shipped scripts/benchmark_ready_prefill.py (+557) and scripts/analyze_ready_prefill.py (+456), a returning-agent benchmark that no open PR currently carries into main. Relevant to #661 because #654's sigma/F machinery and its first_output_tests.rs are the measurement framework for the same balanced-policy stall problem. Autobot found a formula monotonicity inversion in #654 (F > A makes slower graphs earn more credit per ms) — the exact failure mode #663's age_ms * frac formulation avoids, and the reason #661's ValueRate interpolation must also be monotone (its interpolated_prefill_duration clamps non-monotonic timings, see cost.rs). Not a competitor to #661; both #661 and #654 target the same balanced stalls but from opposite sides (chunk sizing vs waiting-prompt priority).

#10 [medium] People: author's scheduler series, and lukealonso/yatesdr/logprobz/iein/original-el8 roles in these files

People (all verified from item metadata):

#11 [medium] Community: #661 has no comments, no reviews, no CI, no reactions; only the author's own comment on #663 speaks to it

Community (#661 itself): zero comments, zero reviews, no CI checks on head 29f2b5bc, opened and last updated 2026-12-01, marked draft (pr_comments returned "No comments"). No reactions. So there is no direct community engagement yet. Indirect engagement that exists for #661:

#14 [medium] Process: draft, one commit atop 5d53040e, no CI, no review, no triage label, behind main a3c80e19

Process (verified):

#16 [medium] Related work: the rest of the dependency graph (#426, #479, #510, #613, #655, #69, #534, #600)

Related work, remaining items worth recording:

#20 [medium] Process: state, CI, review, size, stack position, and sequencing risk

#661 process facts:

#23 [medium] Amendments addendum: helios/README.md and cost.rs docs at c588d610 already describe the new behaviour

ADDENDUM to entry #22 (PR #661 at c588d610).

A12. helios/README.md is now consistent with the code, unlike my report #21's implication that docs lagged wholesale:

A13. Verified cost.rs surface at head (for citation accuracy): interpolated_prefill_duration cost.rs:695-786; sibling passthrough at :702-712; larger-peer requirement via let (c_hi, _, t_hi) = hi?; :774; decode floor fallback :775-778; non-monotonic clamp if t_hi <= t_lo { return Some(t_hi.max(1)); } :779-781; u128 interpolation :782-785. Returns None for GraphKind::ScoredPrefill (:705) and for every non-prefill kind (:706), and prefill_entry returns Some(None) when nanos == 0 (cost.rs:667-669), so interpolation only ever derives from measured entries — which is what makes the "GPU-measured only" claim hold.

A14. CI status: I cannot read CI directly; the only evidence is the PR Evidence section (local cargo check --release 0 warn across helios/flare/flare-cli/heliopause, test counts, pytest 835, ruff, check.py incl. --mutations 26/26 Rust) and the Autobot review noting no CI on 29f2b5b. State this as "no CI run is reported for c588d610; verification is author-claimed local archives" rather than "no CI".

#28 [medium] Verification spot-checks (3d868f84): last_interp memo, is_unmeasured_candidate, resize_prefill cap, learning CLI

Verification spot-checks done at head 3d868f84 after entry #27 was written; no defects found in the new consolidation code.

  1. prefill_candidate_ns interp memo is sound (policy.rs:518-543). The memo key is (work, request.scheduled_consumed) and it is reset per (kind, capacity) — add_prefill_candidate declares last_interp inside the per-capacity call (policy.rs:1429) and continuation_candidate declares it inside the following.is_prefill() branch (policy.rs:1092). ActionCosts::interpolated_prefill_duration(kind, capacity, work, start_position) (cost.rs:695-700) is a pure function of exactly those four values, so a hit can only be returned when all four agree. Allocation-free; no cross-capacity contamination.

  2. is_unmeasured_candidate cannot misclassify a measured candidate as Discovery (policy.rs:545-548). The new second clause is costs.observation(candidate.cost_key()) … .is_none(). A candidate with duration_ns > 0 can only come from an entry with nanos > 0 (prefill_duration returns Some(0) when prefill_entry is Some(None), i.e. nanos == 0 — cost.rs:650-652, :667-670; non-prefill/packed durations are the entry nanos directly), so observation returns Some((nanos>0, Some(observed_at), _)) and the clause is false. The only candidates newly classified Discovery are interpolated ones, which is the intent; commit also re-derives PlanOrigin::Discovery from observed_at_ns.is_none() (scheduler.rs:2403-2407), so the tagged origin survives to TimingOrigin.

  3. resize_prefill age-priced cap confirmed at policy.rs:1838-1853: catalog = prefill_catalog_for_terminal(request.prefill_kind(), terminal_only || request.deferred_prefill), max_capacity = candidate.capacity.min(*catalog.last()?) only when age_price > 0.0 && !terminal_only, and the chosen capacity is the smallest catalog entry >= work (:1850) — so an age-priced chunk can shrink but never grow past the winning candidate, while the non-age path keeps the old grow-to-max behaviour.

  4. scripts/scheduling_sim/learning.py:436 is the only new CLI surface: --initial-discovery gained the "interpolated" choice; validation of the value lives in learning_policy.py:80-81.