Value proposition scratchpad · NVIDIA/hyperflare-inference #571

Raw Markdown for agents: https://autobot.eidonix.com/p/8acd4b9d-ce5b-41cf-bb6f-c16616a71925.md

#1 [high] PR 571 core diff summary

PR 571 (helios: force a wide round after persistent width-one selection), 3 files, +78 -3, no docs.

#2 [high] PR 571 concrete code defects

  1. Forced picker searches ALL candidates (incl. prune_padding's dominated tail) and maximizes draft_tokens, then capacity, then packed_token_capacity (policy.rs:1281-1296). prune_padding (policy.rs:169-202) exists so redundant padding loses; docs/scheduling-runtime-design.md:252-257 "Timing estimates cannot make redundant padding preferable". So for the widest (D,W) it deliberately picks the LARGEST packed P — the most padded, most expensive shape. Author lists this as a "Limit" but it reverses a documented invariant.
  2. No duration/measured check: packed_round_shapes yields nanos=0 for unmeasured shapes (cost.rs:226-232; 0 ns is the "unmeasured" sentinel per cost.rs:7). Forced path can execute an unmeasured wide graph; commit then relabels it PlanOrigin::Discovery (scheduler.rs:2321-2324), so it is an unbounded-cost discovery round, contradicting "costs at most one normal wide round".
  3. Bypasses the value metric entirely — contradicts docs/scheduling-theory.md:195 (argmax E[useful]/T) and the project's "one metric for graph selection" section (:78-195).
  4. Trigger = 2 committed ordinary width-one plans (refresh.rs:53-55, 65-74). No derivation for "2"; fires in healthy cadence-driven width-one selection (#152 shows balanced policy legitimately prefers W1 at B4), 30 firings in 3 s in the author's own trace.
  5. State placement: width1_streak as AtomicU64 inside RefreshState (refresh.rs:34-39) — no concurrency (scheduler takes &mut self at scheduler.rs:2424), and RefreshState is documented as "timing-refresh and acceptance-learning credit" (docs/scheduling-runtime-design.md:9-12). Wrong module; needless atomic.
  6. Forced plan returned as PlanOrigin::Ordinary (policy.rs:1304) → prometheus flare_scheduler_executions_total cannot distinguish forced rounds, and the round silently earns refresh/acceptance credit (refresh.rs:86-91). docs/scheduling-runtime-design.md:488-490 requires origins to be exposed separately; no new origin/metric.
  7. Claimed "Log the selection as Forced wide:" is NOT in the diff — search_code for "Forced wide", "Plan diag" returns nothing in helios/src. The evidence trace lines came from a separate prototype image (...argdiag-20261128), so the numbers are not reproducible from this branch.
  8. Streak is only updated on PlanOrigin::Ordinary (refresh.rs:67); probe commits leave it >=2, so a forced round can immediately re-arm after an intervening probe.
  9. Test coverage: one test (policy_tests.rs:52-82); nothing for no-wide-sibling fallthrough, streak reset, narrower drafter (W2/W4 claim untested), or funded-refresh precedence. Test needed a shared-fixture semantic change: policy_tests.rs:239 offered_drafts (plan.token_capacity-1) -> (lane.tokens-1), which alters inputs of many existing tests (validation requires offered < lane.tokens, scheduler.rs:2539). Positive: only 3 files, +78/-3, no core format/prepared graph changes; generic across widths; leaves prefill/refresh/probe/discovery untouched; degrades to ordinary when no wider sibling exists.

#3 [high] Charter and process requirements PR 571 misses

Charter (read_charter):

#5 [high] PR 571 update review (c64343b2) — what the revision fixed and what remains

Head c64343b2 ("probe measured wide candidates with bounded backoff"), 7 files, +148/-9: scheduler.rs (+2), scheduler/policy.rs (+31), scheduler/policy_tests.rs (+67/-1), scheduler/refresh.rs (+41/-4), server/dashboard/scheduler.rs (+1), server/metrics.rs (+1/-1), server/metrics/scheduler.rs (+5/-3).

FIXED vs earlier review:

STILL OPEN:

  1. No served A/B vs main (#210), no control run; author states A/B "not practical" and the 64-seed simulator "cannot synthesize" the state. docs/design-review.md:195-206 requires graph-selection changes be validated in scripts/scheduling_sim/ and says "Do not diverge Helios from the simulator's qualified policy without updating and validating the rule across that catalog"; :234-240 calls skipping it a blocking design failure. No simulator run, no TLA+/conformance run reported; only "146 tests with 2 ignored" suite count.
  2. Duplicates the funded acceptance probe (learning.rs:15-60, gated policy.rs:1276, documented docs/scheduling-runtime-design.md:467-490). The new probe's distinguishing feature is that it fires without credit — i.e. exactly the credit-starvation symptom #540 fixes (idle discards positive credit; docs/scheduling-runtime-design.md:439-440,463-465).
  3. Unfunded exploration channel: no ledger is charged, so the documented aggregate bounds P <= alpha/(1-alpha)*O + D (runtime-design.md:455-460, 484-485; theory.md:569-574) do not cover it. Amortized cost is bounded (~one wide round per 64 width-one plans, ~1.8% at the captured 5.3ms vs 4.63ms), so risk is small — but the rule is invisible to the budget model the project uses to argue safety.
  4. Still overrides the value metric: unlike the acceptance probe (learning.rs:41 requires candidate.rate.compare(ordinary.rate).is_gt()), the probe does not require the wider candidate to score above the ordinary winner (policy.rs:1281-1311). Deliberate, but it is the one place selection ignores E[useful]/T (runtime-design.md:3, theory.md:195).
  5. Magic constants: 2, 64, and .min(8) hardcode the escalation ceiling/target to width 8 at refresh.rs:70-72 in a model-agnostic runtime; no derivation stated (charter "No magic defaults"; #540 review asked for derivations of 0.88/4.0/2.0/6).
  6. Placement: four AtomicU64 (streak/next/interval/width) live in RefreshState, documented as the credit module (runtime-design.md:9-12); commit is reached with &mut self (scheduler.rs:2426) and note_width1_probe takes &self just to store through atomics.
  7. Stale (not fresh) measurements are accepted — only duration>0 is checked, not costs.is_fresh(); also the streak survives refresh/discovery probes (_ => {}, refresh.rs:96).
  8. Tests: no coverage of fall-through when no measured wider sibling exists, reset after a wide round (only implicitly), precedence vs refresh/acceptance, fixed-width mode, or interaction with the ordinary credit ledgers. The shared fixture still changes offered_drafts from plan.token_capacity-1 to lane.tokens-1 (policy_tests.rs:272), altering completion inputs for many existing tests.
  9. Author's own earlier disposition (comment 2026-11-28 20:21) was to park until #540 lands with a same-base control measurement; the 20:59 revision unparked without #540 landing.

Verdict: not worth merging now — park. Path back: after #540, demonstrate the residual stuck state with a control; then express the escape as a credited, value-priced rule (or reuse the acceptance probe with retained credit), record it in the simulator as the qualified policy and run the 64-seed catalog + TLA+ conformance, and cover point 8. Process: PR discussion holds only automated case-file posts and the author's own comments; no attempt to direct the reviewer.