#1 [high] The change: what the diff actually does (policy.rs, refresh.rs, policy_tests.rs)
PR #571 "helios: force a wide round after persistent width-one selection", author malventano, opened 2026-11-28, base main, head aab9295. 3 files, +78/-3, no labels, no reviews, no CI checks.
- helios/src/scheduler/refresh.rs
RefreshStategains private fieldwidth1_streak: AtomicU64(refresh.rs:37 in new numbering, +1 line in struct).- New
pub(super) fn force_wide_due(&self) -> bool { self.width1_streak.load(Relaxed) >= 2 }(afteracceptance_ready). commit()now uses itsstepargument (previously_step): iforigin == PlanOrigin::Ordinary, then aGraphKind::Speculative && draft_tokens == 0step doesfetch_add(1), anything else doesstore(0).- Note: refresh/probe commits (origin != Ordinary) do NOT reset or increment the streak; only Ordinary plans touch it.
- Note: counter is AtomicU64 with Relaxed ordering even though
committakes&mut selfandforce_wide_duetakes&self; commit is called under &mut, so plain u64 would suffice (not a review, but a code-shape fact).
- helios/src/scheduler/policy.rs (+29 lines, inserted after the acceptance-probe loop, before the final
self.available_plan(ordinary, ...)fallthrough, around old line 1278)
- If
self.refresh.force_wide_due(), scan the already-preparedcandidates: keepkind == GraphKind::Speculative && draft_tokens > 0 && batch == ordinary.batch && mask == ordinary.mask, thenmax_bydraft_tokens, then capacity, then packed_token_capacity, then the scheduler'scompare(a,b). - If found, set
candidate.host_lengths = None(forces lane lengths to be recomputed), thenself.available_plan(candidate, &values, age_price, log_scale, PlanOrigin::Ordinary)and return it if Some. - Position in the precedence chain: prefill/refresh + acceptance probes are evaluated first; the forced candidate is only considered when those have declined.
- helios/src/scheduler/policy_tests.rs
- New test
two_ordinary_width_one_plans_force_a_wide_round: engine(1,true), one request at 64 tokens decode phase; sets cost Decode/1/1 = 100ms, Speculative/1/1 = 1ms, Speculative/1/8 = 100ms; twostep()calls assert Speculative, draft_tokens 0, token_capacity 1 (i.e. width one); thirds.plan()asserts Speculative, draft_tokens 7, token_capacity 8.
NOT in the description (see separate note): the test helper completion_records changes offered_drafts: (plan.token_capacity - 1) -> (lane.tokens - 1).
Claims in the description vs code: "same batch and lane mask" = verified in the filter. "does not repair scheduler state" — the counter is not reset by the forced round except indirectly, because the forced plan is committed as PlanOrigin::Ordinary with draft_tokens>0 and so stores 0 (verified by code reading).
#2 [high] The change: verified control flow, counter semantics and selection ordering
Verified by reading code at pr/571 and main:
-
select_planorder (helios/src/scheduler/policy.rs:1207-1311): discovery early-return (ordinary.rate.duration_ns == 0→ PlanOrigin::Discovery, line 1237-1239), then funded refresh (1240-1275), then acceptance probe (1276-1280), then the new force-wide block (1281-1309), then ordinary (1310). So the description's "run the fallback only after funded-refresh and acceptance-probe paths have declined" is true; the description does NOT mention that an unmeasured ordinary (discovery) returns before the fallback can run. -
Forced candidate filter (1285-1290):
kind == GraphKind::Speculative && draft_tokens > 0 && batch == ordinary.batch && mask == ordinary.mask. Ordering (1291-1296): draft_tokens, then capacity, then packed_token_capacity, then the scheduler'scompare(which starts with value rate). So among candidates with equal draft/capacity it prefers the LARGER packed capacity, i.e. the more padded shape, before price is consulted; and duration/value never decides among different widths. Mixed candidates are excluded by kind. Candidates scanned are the whole vector including the dominated tail prune_padding leaves for refresh probes (policy.rs:169-202). -
Since the candidate set for kind Speculative comes from
speculative_catalog(policy.rs:1092-1099) plus packed-round shapes (rounds.rs:717-880), "any positive draft width in the prepared catalog" is accurate; nothing requires width 8. -
host_lengths = None(policy.rs:1298) forcesmaterialize(policy.rs:1405-1445) to recompute lengths viaround_lengths_optimistic. But those lengths are bounded byround_ceilings=speculative_tokens(request, width.min(drafts+1))(rounds.rs:435-441), so recomputation cannot widen a lane beyond whatspeculative_tokensallows. -
Forced plan origin is
PlanOrigin::Ordinary(policy.rs:1304), so it earns refresh credit typically and is committed as Ordinary; on commitwidth1_streakstores 0 because draft_tokens > 0 (refresh.rs:65-74). No probe accounting, no ledger charge. -
Counter semantics (refresh.rs:53-55, 65-74): increments only for
origin == Ordinary && kind == Speculative && draft_tokens == 0; every OTHER ordinary commit (Decode, Mixed, Prefill, Init, Restore, Snapshot, Resume, Vision, or Speculative with drafts) resets it. Probe/refresh commits neither increment nor reset. Neitheridle()norabort()reset it. So the streak survives idle gaps, cancellations of counted rounds, and request turnover.width1_streakisAtomicU64loaded/stored withRelaxedeven thoughcommittakes&mut self, so the atomic buys nothing. -
Counter is per-scheduler (one
RefreshStateperRequestScheduler, scheduler.rs:769), not per request. So two width-one plans from different requests both count (e.g. two requests each briefly at width one add up), and the forced plan applies to whatever cohort ordinary selection was about to serve.
#3 [high] The change: undeclared edits and documentation not updated
- The diff changes a shared test helper that the description never mentions.
completion_recordsin helios/src/scheduler/policy_tests.rs (main:206) usedoffered_drafts: (plan.token_capacity - 1); the PR changes it to(lane.tokens - 1)(policy_tests.rs:239). It is the helper behindstep()/complete_timed, used by most scheduler tests in the file.
Why it is needed: completion validation rejects offered >= lane.tokens ("speculative round completion exceeds its frozen lane ceiling", helios/src/scheduler.rs:2539). A wide plan whose lanes are frozen at a smaller ceiling (packed allocation, grammar/host-stops caps, short remaining output or context) only validates if offered_drafts follows the lane, not the graph width. So on main any test that completes such a wide plan would fail. That the helper had to change is evidence the fallback does fire inside existing test traces, not only in the new test (in the new test the third plan is never completed, so the helper change is not needed there). MARK AS INFERENCE from code, not from a run: I did not execute the suite.
-
The description's claim about tests is a filtered single test (
two_ordinary_width_one_plans_force_a_wide_round, 1 passed) plus a whole-suite comparison against clean d17efddc (1645/8 failed/43 ignored vs 1646/8/43). The eight baseline failures match the set #540's review enumerated: five template-fixture failures, one root-only cache-clear failure, the pre-existingmodel::tests::packed_combined_budget_keeps_width_one_batches_without_a_useful_packed_shape, and one template-dependent protocol test. Note the pre-existing failure is itself a width-one/packed-shape test, i.e. adjacent code, and the PR does not mention it. -
Nothing in the diff touches docs. docs/scheduling-runtime-design.md:252-261 states the ordinary selection rule (domination pruning, value-rate maximization, "Timing estimates cannot make redundant padding preferable"), :434-465 specifies funded timing refresh, :467-490 funded acceptance learning. docs/scheduling-theory.md:430-432 and :704-729 say the
retained-refreshsimulator policy in scripts/scheduling_sim models this native rule. None of them describe a forced wide round, and the simulator has no such policy. -
The PR adds no new configuration: no CLI flag, no env var, no field to disable the fallback, and the trigger threshold 2 is a literal in refresh.rs:53-55. It is on for every scheduler whose catalog has speculative graphs, i.e. every adaptive-verification MTP serving setup, unless the fix is reverted.
#4 [high] Why: width-one persistence, its causes, and the reports behind it
The PR's stated problem: "a width-one episode can still persist" and "the current policy has no upper bound on how long ordinary width-one selection lasts."
Where the state comes from (from the docs and code, not from this PR's evidence):
- docs/scheduling-runtime-design.md:434-465 — the funded timing refresh ledger earns
0.002/0.998of measured execution, capped at 5 ms, so the first refresh needs 2,495 ms of credited ordinary execution; "Repeated shorter busy periods separated by idle can leave unused graph estimates stale indefinitely." - docs/scheduling-runtime-design.md:467-490 — acceptance learning earns
0.01/0.99capped at 5 ms; "Fixed-width execution does not probe acceptance." - docs/mtp-design.md:434-436 — grammar-constrained MTP requests use width one by design, and host-evaluated custom stops also use width one. So width one is mandated, not a fault, whenever a lane is grammar-constrained or has host stops (helios/src/scheduler.rs:2295-2305
speculative_tokensclamps proposal to 1). - #306 (open, original-el8) "Start acceptance estimates from the acceptance of earlier requests": "each request runs width-one rounds until funded acceptance probes raise its estimates" — measured 17, 483, 197 and 70 width-one rounds before the first ordinary drafting round, with 37-59 tok/s against 54-62 tok/s with the population. That is independent evidence that long width-one stretches are a real, measured user-visible cost, and that a probe-gated regime is the mechanism.
- #414 (merged, yatesdr) is the merged sibling of that idea and measured 52% of single-user rounds at width 2 on GLM-5.3-Flash, moving to 0%.
- #530 (open, devinkuhn) reports structured output on DeepSeek-V4.1-Flash-1017 gb202 TP4 decoding 176 -> 55 tok/s with json_schema because "MTP drops to width one"; docs/mtp-design.md:434 is the stated cause. Production impact: median 54.8 s vs 21.5 s, 85 of 450 requests hitting a 120 s client timeout. This PR's own evidence image is
flare-toolstream:...-argdiag-20261128on "the 1017 service", i.e. the same package family as #530, but the PR does not link #530 and its fallback would not help constrained lanes except for the bonus token (see the reach entry).
History: the width-one-stuck problem has been worked avoidance-style, not fallback-style, for weeks: #188 (2026-11-03), #414/#306 (acceptance priors, 2026-11-15/20), #515/#521/#522 (GPU confidence calibration and surplus history, 2026-11-25), #510 (packed duration zeroing, 2026-11-24), #540 (refresh credit, 2026-11-26). No earlier item proposes a forced wide round.
#5 [high] Related work: #540, the acceptance-prior line, calibration merges, and #530/#547
- #540 (open, FujitsuPolycom) — the root-cause change this PR defers to. Same files (policy_tests.rs, refresh.rs). Merged state: open, reviewed 2026-11-28 07:34 by autobot with "Recommendation: Merge After Should-Fix", 0 blockers, 4 should-fix. Its refresh.rs at 982a9ce3 replaces
RefreshState::idlewith credit retention, and splitscompleteintoobserved_compute_duration_ns(timing) andobserved_duration_ns(acceptance). #571's refresh.rs is built on main's older version (keepsidle(), still at refresh.rs:102-105). So the two patches touch adjacent code in the same struct; the PR's own "Merge order" section says rebase onto the result. Concretely the rebase is small: #571 adds a field and a method and three lines incommit. - #306 / #414 (acceptance priors) — the same problem (long width-one stretches) attacked at the estimate instead of the selection. #571 does not cite them. #306 is still open; #414 merged. Together with #571 these are alternative answers to "how do we stop width one dominating"; only one is committed so far (#414).
- #515 / #521 / #522 (GPU confidence calibration, surplus history) — merged calibration work whose explicit goal was cutting the plain-W=1 round share (#522 measured 31.61% -> 4.06% across a 15-cell matrix on DeepSeek-V4.1-Flash TP1, and 47.7% -> 2.0% post-32K at HARD C16). #571's framing ("a width-one state that survives those fixes") matches this line but the PR does not cite #522, whose W=1 numbers are the closest published measurement of how much width one is left after prevention.
- #510 (merged, lukealonso) — "Prevent unmeasured packed speculative shapes from zeroing measured round durations". Relevant because a zeroed duration is exactly the kind of stale/degenerate estimate that makes a wide shape look useless and drives width one; #571 does not mention it.
- #547 (open, shieldstar) — candidate-pricing cost. Relevant because #571's new block adds one linear scan of
candidatesplus amax_byand a freshround_lengths_optimistic(which recomputes lane values) on every planning pass while the streak is >= 2 — extra planning work on the model-worker thread, in the same area #547 measures. - #530 (open issue) — the structured-output report whose mechanism is "MTP drops to width one". Not linked by the PR.
- #312 (open, original-el8) — documents the same pathology from a different angle: on Inkling 2 "a request's estimates start at a weight of two and a rejection zeroes every deeper offered prefix… the request returns only through an acceptance probe, and one request funds a probe about every 6 s", with three of twelve requests spending 12-26 s at 48-51 tok/s. That 6 s probe cadence is the specific gap #571 tries to bound.
- #483, #381, #229, #334, #426, #538, #555, #569, #568 touch the same files but not this topic; no overlap in intent found.
- Not found: any PR or issue proposing the same "force a wide round after N width-one plans" mechanism, and nothing superseded or undone by it.
#8 [high] Project fit: charter's evidence and root-cause rules, docs/simulator obligations, magic constant
Charter (read_charter) lines that bear on this change, as facts:
- "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210). Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)." #571 self-describes as "not a recovery fix", "a bounded fail-safe", and states "No A/B against a build without the fallback exists" and "The fallback can be slower than the width-one plan it replaces". By the charter's own words this change has neither a benchmarked speedup nor a root-cause fix; the author says so explicitly. Its evidence also shows forced plans at 64.9–66.6 ms against about 5.3 ms for normal width-eight plans on the measured service, i.e. the measured effect of the mechanism is a cost, not a win. - "Solve the right problem in the right place… Good ideas in the wrong place will be declined." The fallback lives in the scheduler's selection function and overrides the documented value-rate rule without consulting it (see the change entry), which is the layer the docs describe as the single place selection is decided (docs/scheduling-runtime-design.md:241-282).
- "Keep the runtime small and model-agnostic." The change is model-agnostic: it keys on
GraphKind::Speculativeand draft count, not on a recipe. Consistent with the charter. - "Be explicit and pin everything. No magic defaults." The trigger is the literal 2 in
force_wide_due(refresh.rs:53-55), with no configuration, no constant with a stated derivation, and no doc. Compare docs/design-review.md's repeated demands elsewhere for derivations of constants (#540, #522 reviews). - "PR descriptions: Expect four parts: why / what / claimed result / evidence." The description has all four and separates claimed from unverified explicitly. It also states unrun checks. This is above the bar the charter sets for descriptions.
- Docs obligation: AGENTS.md:52-60 says designed behavior belongs in the design docs and unrun checks in docs/TODO.txt, not in design documents. #571 changes designed selection behavior and updates neither docs/scheduling-runtime-design.md nor docs/scheduling-theory.md nor docs/TODO.txt (verified: the diff has no docs file).
- Verification convention: AGENTS.md:231 says changes to graph selection / scheduling policy / timing estimates must be checked against docs/scheduling-runtime-design.md, docs/scheduling-utility.md, docs/scheduling-theory.md and the simulator in scripts/scheduling_sim/. The PR touches none of them and the simulator has no forced-wide policy (scripts/scheduling_sim/learning_policy.py:528-700 has ttl/jitter/ema/retained-refresh/targeted families only).
- Formal lifecycle: verification/helios-lifecycle does not model
RefreshStateat all (no match for RefreshState/credit_ns), so the new counter is outside the existing TLA+ coverage; #540 claims 590,327 verified Rust transitions for its own refresh changes, which #571's counter does not inherit.
#9 [high] Claims and evidence: verified, unverified, and claims contradicted by the diff
Claims made and what backs each (claimed vs verified kept apart):
A. "After two committed ordinary width-one plans, the next plan forces the widest available speculative candidate." VERIFIED in code (refresh.rs:53-74, policy.rs:1281-1296) with two caveats: (i) a discovery plan returns earlier (policy.rs:1237-1239) so the clause applies only to measured ordinary winners; (ii) "widest by draft count, then token capacity, then packed capacity" means among equal-draft shapes it prefers the LARGER packed capacity, which the description does not state and which the ordinary rule's compare would only use as a late tiebreak (policy.rs:1217-1235).
B. "This covers narrower drafters such as width 2 or 4 as well as width 8." VERIFIED: the filter is draft_tokens > 0, nothing pins width 8. In the new test the widest candidate is (drafts 7, tokens 8) because tests::duration_graphs builds drafts 0..=7 for each batch.
C. "The same log contains 30 forced-wide selections from 18:00:09 through 18:00:12. The forced plans were slower than normal width-eight plans in that window, 64.9 to 66.6 ms versus about 5.3 ms." This is the only live evidence, from a prototype image flare-toolstream:v0.3.2-49-gd17efddc-argdiag-20261128 on "the 1017 service". Facts about it: it is a downstream build name, not a repository commit; "argdiag" suggests an instrumented diagnostic build; 30 forced selections in 3 seconds means the fallback re-fired at roughly 10/s, i.e. the streak was being re-earned immediately after each forced round — the description itself concedes "the fallback can fire again"; a 12x slower forced round executed 30 times in 3 s is a large negative in that window; the log excerpt shows only 4 lines and the "Plan diag:" lines the excerpt quotes come from that instrumented build, not from this PR (verified: the PR adds no logging — grep for "Forced" at pr/571 finds nothing, and helios/src/scheduler has no tracing/println outside tests).
D. "Log the selection as Forced wide: with the ordinary width, selected width, batch, packed capacity, and mask." NOT IN THE DIFF. The PR adds no log statement; the format shown comes from the prototype build. Verified by searching pr/571 for "Forced" (no matches).
E. "Recompute the forced candidate's lane lengths instead of reusing the ordinary candidate's packed lengths." VERIFIED: candidate.host_lengths = None (policy.rs:1298) makes materialize (policy.rs:1411-1414) call round_lengths_optimistic, which recomputes from round_ceilings or prefix_lengths_with_values (rounds.rs:447-490).
F. Test claim: two_ordinary_width_one_plans_force_a_wide_round, "1 passed". Not verified by me (no build). The test's setup sets Speculative/1/1 to 1 ms and Speculative/1/8 to 100 ms, i.e. the ordinary rule prefers width one on price by 100x; the forced round wins by geometry.
G. "Forced-wide-only test comparison: clean d17efddc 1645 passed, 8 failed, 43 ignored; forced-wide 1646 passed, 8 failed, 43 ignored. The eight failures are the clean baseline set: five template-fixture failures, one root-only cache-clear failure, one pre-existing packed-layout test, and one template-dependent protocol test." Plausible and consistent with #540's independently reported pre-existing model::tests::packed_combined_budget_keeps_width_one_batches_without_a_useful_packed_shape failure; not reproducible from here. Note the counts are the --lib suite; the description does not give the exact command for the full-suite run (it gives one for the single test).
H. "Do not change the core format, prepared graphs, or speculative decoding semantics." VERIFIED: no execution/, model/ or ignition/ file in the diff. But the test helper change (offered_drafts from plan width to lane tokens) shows the fallback can produce wide plans whose lanes are narrower than the graph, which is a semantics-adjacent consequence the description does not discuss.
I. "A funded refresh or acceptance probe still wins first." VERIFIED (policy.rs:1240-1280 precede 1281).
J. Implied but unstated: the forced plan is PlanOrigin::Ordinary, so it earns refresh and acceptance credit, appears in telemetry as ordinary service (TimingOrigin::Ordinary, scheduler.rs:2391) and contributes to flare_scheduler_executions_total{reason="service"} — operators cannot see it in metrics (helios/src/server/metrics/scheduler.rs:174-181).
#10 [high] Reach: everyone in adaptive speculative serving, inert in fixed-width, pathological for constrained lanes
Who/what is affected:
- Every adaptive-verification speculative serving setup (any core whose catalog has speculative widths and no
speculative_fixed_width). Not gated by a flag, env var or config; the only way to avoid it is to set a fixed width (--mtp-fixed-verification-width-stylespeculative_fixed_width, helios/src/scheduler.rs:978-991) — in fixed-width mode the catalog keeps only the fixed width, so no wider candidate exists and the fallback silently does nothing. This is an undeclared interaction: the PR does not say the fallback is inert for fixed-width serving. - Also inert when the ordinary winner is a
Decodegraph (no speculation in the catalog), aMixedgraph, a prefill, or a prerequisite (Init/Restore/Snapshot/Resume/Vision): all of those reset the streak (refresh.rs:65-74) rather than triggering. So the trigger is narrower than "the scheduler can sit at width one": a steady stream of ordinary Decode plans never accumulates a streak. - Grammar-constrained MTP requests and host-stop requests are pinned to width one by
speculative_tokens(helios/src/scheduler.rs:2295-2305) regardless of graph width. For those the forced wide plan cannot widen the proposal; per lane the plan becomes "1 bundled token within a wider graph", i.e. the forced round is almost certainly pure cost. In a batch that mixes a constrained lane with unconstrained lanes, the unconstrained lanes do get the wider verification. #530's structured-output report is exactly this workload, and the description does not discuss it. - Multi-rank / TP serving:
RefreshStateis per-scheduler, and in multi-rank serving each rank plans and commits; every rank tracks its own streak, so the forced plan is decided locally. Not discussed. - Operators: no new metric, no log line in this diff, no config. The forced round is accounted as ordinary service, so cost dashboards attribute the 12x-slower round to ordinary decode. In the author's own measurement, 30 forced rounds ran in 3 s.
- Compatibility: no core-format, manifest, protobuf or ABI change; prepared graphs unchanged, so existing exported cores load and behave differently only through plan selection. Existing data/tests: one shared test helper changes semantics (policy_tests.rs:239), so the test suite's notion of offered drafts for packed rounds changes with it — a cross-cutting change to test expectations that the description does not mention.
- Docs: nothing updated, so docs/scheduling-runtime-design.md:241-282 and :434-490 still describe the pre-change selection rule and the two funded escape paths; docs/scheduling-theory.md's
retained-refreshsimulator policy no longer corresponds to the deployed selection rule. - Cost of a pathological trigger: with two lanes alternating between width one and the forced round, every third plan is a wide round; the author measured 64.9-66.6 ms against 5.3 ms, so the pathological steady state is far worse than plain width one. The description states this under Limits ("a pathological trigger can reduce throughput rather than restore it") — accurate and unsized.
#12 [high] Research summary
Case file prepared for PR #571 (helios: force a wide round after persistent width-one selection), all angles covered with 11 scratchpad entries.
What I verified in the code (as against what the description says): the fallback sits after discovery, funded refresh and acceptance probes in select_plan (policy.rs:1237-1310); it selects among GraphKind::Speculative candidates with draft_tokens > 0, same batch and mask, ordering by draft count, then token capacity, then packed capacity — so among equal-draft shapes it prefers the more padded one before price is consulted, which the description does not state. The counter (refresh.rs:53-74) increments only on ordinary Speculative plans with draft_tokens == 0, resets on every other ordinary commit, is untouched by probes, idle() and abort(), and is per-scheduler, not per-request. The forced plan is PlanOrigin::Ordinary, so it earns refresh credit and is reported as ordinary service.
What a reader could not learn from the description: (1) the PR adds no Forced wide: log line and no metrics despite saying it does — the log excerpt comes from the instrumented prototype image, and grep for "Forced" at pr/571 finds nothing; (2) the diff changes the shared test helper completion_records (offered_drafts from plan width to lane tokens), which is evidence that the fallback fires in existing test traces; (3) nothing in docs or the scheduling simulator was updated, though AGENTS.md:231 requires it for policy changes; (4) the trigger literal 2 has no derivation or configuration; (5) the fallback is inert in fixed-width serving and cannot widen grammar-constrained or host-stop lanes (scheduler.rs:2295-2305), which is exactly the workload of open issue #530; (6) the author's own live numbers show forced rounds 12x slower (64.9-66.6 ms vs ~5.3 ms) and 30 firings in 3 s, i.e. immediate re-firing.
Fit and context: the charter's "bring real evidence / fix the root cause" rules and the author's own admission of no A/B cut against it; #540 (same files, still open with a merge-after-should-fix recommendation) is the stated precondition and is not resolved; the problem itself is well evidenced elsewhere (#306's 17-483 width-one rounds before drafting, #530's 176→55 tok/s, #522's W=1 share measurements). No reviewers, no labels, no CI, no comments; author is a CONTRIBUTOR with one prior merged helios PR.
#14 [high] The change: second-order effects a reviewer would not get from the description
Edge cases and second-order effects verified in code that a decision-maker will want, beyond entries 1-3:
-
The streak can be accumulated by different requests.
width1_streaklives on the scheduler (scheduler.rs:769), so two unrelated requests each briefly selecting width one (e.g. short remaining output, context near the limit, or a grammar/host-stop lane) both count.speculative_tokens(scheduler.rs:2291-2306) clamps width bymax_sequence_tokens - scheduled_consumedand bymax_new_tokens - generated - pending, so near the end of a request the widest usable width is 1 and the plan is stillGraphKind::Speculative, draft_tokens == 0. Those natural "tail" width-one plans therefore feed the same counter as a pathological steady state, and the counter is not per-request — so tail rounds from finishing requests can arm a forced wide round for a completely different cohort. The description does not mention this. -
The counter is never decayed and survives idle (
idle()only touches credit, refresh.rs:102-105) and cancellation (abort()likewise, refresh.rs:107-110). Only an ordinary non-width-one commit clears it. -
Ordering vs
compare: the schedule's documented rule (docs/scheduling-runtime-design.md:241-261) is value-rate maximization with domination pruning and the statement "Timing estimates cannot make redundant padding preferable". The forced block picks geometry first and reachescompareonly as a fourth tiebreak (policy.rs:1291-1296), so a heavily padded shape can be chosen even when an unpadded sibling of the same draft count is priced better. It also scans the whole candidate vector, including the dominated tail thatprune_paddingkeeps only for refresh probes (policy.rs:169-202), so shapes ordinary selection deliberately discarded compete here. -
Planning cost: while the streak is >= 2 the block runs on every planning pass, and a forced plan that
available_planrejects (returns None, e.g. feedback barrier or checkpoint anchor waiting, policy.rs:1349-1354) falls through to ordinary with the scan already paid.host_lengths = Nonealso forces a freshround_lengths_optimistic, which recomputes lane values per lane (rounds.rs:447-490) — planning runs on the model-worker thread, which is the cost #547 (open) is about. -
Precedence detail the description omits: a discovery winner returns before the fallback (policy.rs:1237-1239), so a scheduler whose ordinary winner is still unmeasured keeps running the discovery path and the fail-safe never fires. Conversely
PlanOrigin::Mixedcandidates are excluded bykind == GraphKind::Speculative, so a width-one mixed speculative round neither increments the streak (kind is Mixed, refresh.rs:68) nor is replaced by the fallback. -
Telemetry blind spot: the forced round is
PlanOrigin::Ordinary→TimingOrigin::Ordinary(scheduler.rs:2391) →flare_scheduler_executions_total{reason="service"}andexecution_nanoseconds_total(helios/src/server/metrics/scheduler.rs:174-181, metrics.rs:935-936). With no log line in this diff, an operator cannot distinguish a forced round from an ordinary one in either logs or metrics. -
Threading:
width1_streakis anAtomicU64withRelaxedorder althoughcommittakes&mut selfandforce_wide_duetakes&selfon the sameRefreshState; no cross-thread reader exists in the diff, so the atomic is unnecessary and (more importantly) signals shared-state intent the change does not have.
#6 [medium] Recent activity: main moved ahead, and the last three weeks of width-one work
Base main at d17efddc (Martin Vit, perf(helios) io_uring Engram disk lanes #561). Since then main gained 7cd83f32 (#569, Luke Alonso, retiring boundary captures) and 5deacda9 (#568, Luke Alonso, Endpoint checkpoint eviction) touching scheduler files, so the head aab9295 is behind main; the PR's stated base for its comparison is d17efddc.
Recent work in the same area, all in the last week, mostly by Luke Alonso / Martin Vit / yatesdr / FujitsuPolycom:
- #555 (c9693765, Martin Vit, 2026-11-27) added intermediate batch capacities 6, 12, 24. This matters to #571: more batch capacities mean more speculative candidates with
batch == ordinary.batch, and the fallback's ordering (draft_tokens, then capacity, then packed) now has more shapes to choose between. - #522 (e30d55db, 2026-11-25) and #515 (1e78f080, 2026-11-25) reworked packaging of speculative pricing (per-request calibration, dual surplus rings). #571's fallback bypasses all of that pricing: it never consults
rateuntil the last tiebreak, so the new selection path is the only place in policy.rs that picks a speculative shape by geometry rather than by value rate. - #510 (fd6c0f3b, 2026-11-24) fixed zeroed packed durations.
- #188 (44ec239b) removed repeated planning work, and #547 (open) continues that thread; see the related-work note.
- The scheduler's ordinary-selection rule is documented as value-rate maximization with domination pruning (docs/scheduling-runtime-design.md:241-261). The forced block sits after that and overrides it, so it is a second selection rule in the same function.
- No commit on main since d17efddc adds or removes a width-one counter, a forced plan, or a rewrite of
RefreshState::commit(the only recent commit to refresh.rs is #540's, still unmerged). So #571 builds on current work rather than conflicting with it, except for the #540 adjacency. - Also relevant: helios/src/scheduler/refresh.rs's last main-side changes before #540 were d7938c98 (2026-10-20, "Retain measured graph costs and fund scheduler timing refresh") and 596d64cd (2026-10-21, "Keep adaptive speculation recoverable with funded prefix learning", Luke Alonso) — the original funded-refresh/acceptance-probe design #571's precedence chain extends.
#7 [medium] People: author's record, file owners, and no reviewers yet
- Author: malventano, GitHub association CONTRIBUTOR (not one of the charter's "priority contributors" @voipmonitor, @original-el8, @lukealonso). Last 180 days: 1 merged (#316 "Accept 16-bit PNG input by stripping samples to 8 bits", 2026-11-17, touching helios/, helios/src/, tests/frontend), 1 open (#381 qwen38_dense vision tower, 2026-11-19), and this (#571). So: a small but real merged record in the helios runtime, not a scheduler specialist.
- Discord handle given as
malventano(charter/AGENTS.md:144-150 requires the line; present). - Who normally works in these files: commits in helios/src over 180 days are Luke Alonso (212), Martin Vit (51), yatesdr (47). On scheduler policy specifically: Luke Alonso designed the funded refresh/acceptance probes (#596d64cd/d7938c98 in Oct, #510, #538, #569, #568), Martin Vit built the calibration/surplus line (#515, #522, #555), yatesdr the acceptance priors (#414) and prefill pricing (#357, #389), FujitsuPolycom the refresh-credit fix (#540) and prefill discovery (#538). None of them has commented on #571.
- Engagement so far: zero comments, zero reviews, no labels, no CI checks on aab9295, opened and last updated the same day (2026-11-28). No reactions recorded.
- The PR names #540's author's work as the root cause fix and asks to wait for it ("Do not merge before #540 is resolved"), i.e. the author is ceding priority to the maintainer-adjacent fix rather than claiming to replace it.
- Note the project's review conventions the author will meet: AGENTS.md:72-140 (four-part description — present here), docs/design-review.md:263-314 (a
Design-Signed-Off-By: <identity>; design-review=<4 hex>trailer on the final commit). Not verifiable from the API view I have; the commit message in search_history shows only the subject line, so the trailer state is unconfirmed.
#11 [medium] Process: ready-for-review but unreviewed, no CI, self-imposed merge blocker on #540
- State: open, "ready for review", no labels, no reviewers, no review comments, no reactions, 0 comments (pr_comments returned "No comments"). Opened 2026-11-28, last updated 2026-11-28 — same day, so effectively hours old.
- CI: "no checks" on head aab9295. The description's test evidence is therefore self-reported and the only automation is the author's own local run.
- The description's own merge-order instruction: "Do not merge before #540 is resolved. Rebase this change onto the resulting
mainand re-evaluate its need after #540 is measured on the same workload." #540 is still open with 0 blockers and a "merge after should-fix" recommendation as of 2026-11-28 07:34. So the author has stated a precondition the PR does not meet yet. - The description also states what it does NOT establish: "It does not show that the fallback caused the later ordinary width-eight selection… there is no control run with the fallback disabled", and lists "No A/B against a build without the fallback exists."
- Base drift: branch point d17efddc; main has since merged #569 and #568 into the same files, so the PR needs the rebase its own Merge order section describes.
- Repository process items a reviewer will likely raise, for the record: no docs update (AGENTS.md:231 for scheduling-policy changes), no simulator change (scripts/scheduling_sim), no formal-model coverage of the new counter (verification/helios-lifecycle does not model RefreshState), and the unavoidable requirement of a per-commit
Design-Signed-Off-Bytrailer (docs/design-review.md:263-314) whose presence I could not confirm from the subject-only commit listing. - Precedent for how this project has treated similar fail-safe-shaped changes: #306 (open, alternative mechanism for the same problem) received CHANGES_REQUESTED for one population instead of two, an unmeasured direction, and single-run evidence; #522 (a calibration change with live A/B tables and a cut in W=1 rounds from 31.6% to 4.1%) still got "Changes Requested" for a missing Discord line and disclosure of one regression. The bar in this area is live A/B plus disclosed regressions.
#13 [medium] Community: no comments, reviews, labels or bot intake at all
pr_comments for #571 returns "No comments": zero comments, zero reviews, zero inline review comments, no reactions, no labels, no CI checks on head aab9295 (verified via the orientation packet and pr_comments). Last updated the day it opened (2026-11-28).
So interest drawn to date is nil: no maintainer has engaged, including the two people whose work the description depends on (#540's FujitsuPolycom, and Luke Alonso who owns refresh.rs/policy.rs). The description names a Discord handle (malventano) and is written in the project's four-part house style (why / what / result / evidence) with explicit Unrun checks and Limits sections, which is the shape reviewers in this area ask for (#540 and #522 were both reviewed against that bar).
Contrast for later readers, since it bounds expectations: sibling items on the same problem have drawn heavy engagement — #540 has 10 discussion entries including three autobot reviews and a live-GPU verification from voipmonitor across a 9-PR and 12-PR stack; #522 had an A/B table across four hardware cells and still got Changes Requested; #306 has three comments and a CHANGES_REQUESTED review. #571 currently has none of that, which is a fact about its age (hours) and not about merit.
Also worth recording: no bot review has run. Every other scheduler PR in the recent record (#306, #522, #540) received a flare-autobot intake comment and review; #571 has not, so the case file's intake/review links do not exist for it.