Explore scratchpad · NVIDIA/hyperflare-inference #632

Raw Markdown for agents: https://autobot.eidonix.com/p/5b3f1f24-9f0d-465b-ba6a-39648cab857d.md

#1 [high] Change: what #632 actually does (file:line)

PR #632 (open, head 64c7198, base main), 4 files +216/-33, author original-el8 (COLLABORATOR), CI failed, no comments/reviews.

Core change helios/src/scheduler/rounds.rs:15-18: new fn calibration_factor_max(depth: usize) -> f64 { let steps = i32::try_from(depth.saturating_add(1)).unwrap_or(30).min(30); CALIBRATION_FACTOR_MAX.powi(steps) } — i.e. 2.0^(depth+1), exponent capped at 30. CALIBRATION_FACTOR_MAX = 2.0 kept (rounds.rs:13).

Threaded depth: usize through:

Unchanged: [0,1] clamp and the running-min monotone bound in RequestScheduler::speculative_curve rounds.rs:412-424; once-per-round population update in observe_packed_forecasts rounds.rs:640-650.

Docs: docs/scheduling-runtime-design.md:111-145 rewritten to describe [0, 2^(depth+1)] and the Rényi-2 compounding rationale; helios/README.md:447-453 changed [0, 2] → [0, 2^(depth + 1)] cap-at-30.

Tests added in helios/src/scheduler/policy_tests.rs:6433-6447 (ceiling scaling: depth0→2.0, depth3→16.0, depth4→15.0) and :6541-6592 (single-lane B=1 W=6 packed 3→6 escape, and low depth-2 survival stays at 3), with helpers at :6449-6538.

#2 [high] Change: undeclared side effects of scaling the ceiling

  1. Seed saturation at deep depths (rounds.rs:96-107). First observation of a request at depth d sets anchor = predicted.max(0.05), realized = clamp(anchor * global.factor(depth), 0, 1). With the ceiling now 2^(d+1), a global factor at depth 4 can be up to 32, so a brand-new request seeds realized = 1.0 (e.g. population prior 0.5^5=0.03125 → anchor 0.05 → 0.0520=1.0). The seeded prior weight is REQUEST_CALIBRATION_PRIOR_WEIGHT*decay = 2, then +1 → 3, so one weak observation only moves it to ~0.93. Net effect: new/deep requests can be optimistically priced at deep depth for a while. The description only says "threaded depth through RequestCalibration::observe"; it does not say the ceiling also inflates the seeding anchor. Asymmetry: the [0,1] clamp bounds this, but the ceiling change makes saturation reachable at much shallower depth than before (previously max anchor2).

  2. SurplusHistory inputs change (rounds.rs:586-624). cal_factors (now depth-scaled) feed both host_pred and actual_cal — the paired (forecast, realized) curves that SurplusHistory/packed allocation surplus (#515/#522) is built from. The description says nothing about the cross-lane surplus estimator being affected. #515 Theorem-3 invariant 3 (invariance to pure level shifts) would cancel a uniform factor, but per-depth differing ceilings do not cancel exactly, so the empirical order-statistic surplus J can shift even when realized/forecast data is unchanged.

  3. Optimistic/UCB path: speculative_information/calibration_information (rounds.rs:288-290, 520-531) is unchanged, so the Hoeffding exploration bonus is unchanged while the calibrated mean can now be much larger at depth — the balance between exploration and the (now larger) calibrated estimate shifts, and the bonus can be swamped at deep depths. Not mentioned in the description.

#3 [high] Related work: #515/#521/#522 lineage of DepthCalibration and the 2.0 ceiling

#515 "Calibrate GPU confidence forecasts and model packed allocation surplus" (voipmonitor, merged 2026-11-25 14:23, +565/-39) introduced DepthCalibration and SurplusHistory in rounds.rs, with the flat clamp(realized/predicted, 0.0, 2.0) (972). Its Theorem 2 explicitly states f_d = clamp(r̄_d/p̄_d, 0.0, 2.0). Built on @original-el8's #495.

#522 "Scope GPU confidence calibration per request and refine packed surplus history" (voipmonitor, merged 2026-11-25 18:31, +583/-76) folded in original-el8's #521 and created the hierarchical RequestCalibration + once-per-round DepthCalibration (pop weight 64) + dual 256-entry SurplusHistory. Its Autobot review raised: RequestCalibration::factor prices from an unaged realized/predicted ratio; duplicated 128.0 half-life and 20.0f64.ln() Hoeffding sites vs speculation.rs:72/:78.

#521 (original-el8, closed 2026-11-25 18:43, superseded by #522, "Superseded by #522 (merged)") was the same author's first attempt at per-request calibration. Autobot's review on #521 says "Auto-Review halted due to finding: Another open pull request already covers this change, or more of it."

Significance for #632: the ceiling constant it changes (CALIBRATION_FACTOR_MAX = 2.0) was introduced 5 days earlier by #515 and only re-documented by #522; #632 is the first change to the value/semantics of the ceiling rather than the estimator structure. No prior PR introduced calibration_factor_max(depth) — verified by searching rounds.rs at head: only one definition, rounds.rs:15-18.

#4 [high] Claims: the Rényi-2 collision premise is not documented anywhere in the repo

Verified from the repo:

#5 [high] Project fit: charter evidence rule vs combined-stack verification; priority contributor; model-agnostic

Charter (read via read_charter):

#8 [high] People: original-el8 as priority contributor; #632 has drawn no engagement

Who works here (orientation packet + verified): helios/src scheduler commits last 180 days: Luke Alonso (229), Martin Vit (52), yatesdr (47). The calibration subsystem specifically was authored by voipmonitor (#495→#515, #522) and original-el8 (#495, #521 co-merged into #522).

Author: original-el8, COLLABORATOR, a named priority contributor in the charter ("@voipmonitor, @original-el8, @lukealonso carry extra weight—we never close their PRs out of hand"). Last 180 days: 24 merged, 27 closed, 7 open. Areas: docs (14), helios/src (13), helios (5), ignition/preparation (5), ignition/recipes (4). Their signature mode is large hardware-validation PRs (#410 "DeepSeek V4.1 on One GB300: 1M Context, 78K Prefill, 2K+ C32 Decode", #408 "Parallax: 2x Decode & 79K tok/s Prefill"), not small scheduler tweaks — #632 is a ~15-line code change wrapped in a very large evidence narrative, which is atypical in size for them but typical in framing.

Engagement so far on #632: zero comments, zero reviews, no Autobot review, no labels. (pr_comments → "No comments.") Contrast: #515 and #522 each got an Autobot review within ~90 min of opening, with "Changes Requested" and a Discord-line blocker. #632 has the Discord: el8 line present, so that specific blocker is pre-empted.

History of this author's scheduler-prior work being routed away from them: #521 (their per-request calibration PR) was superseded by voipmonitor's #522 within 2 hours and closed by the author himself; Autobot halted #521's review with "Another open pull request already covers this change, or more of it." Their #306 is still open and was halted with "already fixed another way". So #632 is their third attempt to land a change in this same calibration/pricing area, and the first that is not duplicating someone else's PR.

#9 [high] Change: at depth >= 4 the ceiling is effectively removed because of the [0,1] clamp

Verified from the code, this is the most consequential thing a reader cannot get from the description: at a deep depth the population calibration update itself is no longer a ratio of two observations once the request-level seed saturates — but more importantly, the global DepthCalibration is also depth-capped, and its own EWMA seed is 0.5^d (rounds.rs:311, Forecasts::new → DepthCalibration::new(0.5^d)), so realized/predicted for the global prior at depth d can also now reach 2^(d+1) rather than 2.

Concretely at depth 4 (draft_tokens 5..7 cores): old cap 2.0 → the calibrated curve's depth-4 value was bounded above by min(prior_downstream) with mean*2.0; new cap 32.0 → the depth-4 calibrated value is bounded above by 1.0 (the [0,1] clamp), i.e. the ceiling is effectively removed at depth ≥ 0... no: at depth 0 the cap is 2.0 (unchanged), depth 1 → 4.0, depth 2 → 8.0, depth 3 → 16.0, depth 4 → 32.0, depth 5 → 64.0, depth 6 → 128.0, then capped at 2^30 ≈ 1.07e9 for depth ≥ 29.

Practical reach: with mean at the 0.5^d prior (0.0625 at d=4), a factor of 16 already saturates the [0,1] clamp (0.0625*16 = 1.0). So at d ≥ 4 the calibration is effectively unclamped — the realized/predicted ratio can drive the calibrated curve anywhere in [0,1] from one population of observations. That is a genuinely different estimator behaviour, not just a "wider bound", and it is what makes the PR's own measured [0.955, 0.904, 0.854, 0.791, 0.715, 0.614, 0.279] per-depth survival reachable (factor at d=6 would need to be ~large).

Monotonicity is still enforced (rounds.rs:412-424 running bound = bound.min(value.clamp(0.0,1.0))), so a saturated shallow depth still pins deeper depths. This is the safety property the description claims and it does hold.

#10 [high] Reach: GPU-confidence cores only, no knobs, but surplus estimator inputs shift too

Reach, verified:

#11 [high] Claims and evidence: verified mechanics vs combined-stack-only serving numbers

Each claim in #632 and what backs it:

VERIFIED IN REPO (code/mechanical):

UNVERIFIABLE FROM THIS REPO:

#12 [high] Process: ready-for-review, single commit, CI failed and not disclosed, no engagement

Process state of #632 (orientation packet + verified):

Open-question for reviewers: whether the red CI is the pre-existing failed_default_clear_keeps_the_selected_entry / FLARE_TEST_TEMPLATE_DIR class of failure that #521/#522 and #633 all report (six unrelated frontend template fixture tests fail when FLARE_TEST_TEMPLATE_DIR is unset — see #633's evidence section), or something caused by this diff. The PR does not say.

#14 [high] Research summary

I have gathered and cross-referenced the case file for PR #632. Thirteen scratchpad entries cover every angle: the change and its undeclared side effects, the stated problem and its baseline, the #495→#515→#521→#522 lineage of the code it edits, recent rounds.rs activity, the author's standing and PR history, zero engagement, charter fit, claim-by-claim evidence, reach, and process state.

Key things a reader could not learn from the description: (1) at depth ≥ 4 the new ceiling (32 and up) exceeds what the existing [0,1] clamp allows, so calibration is effectively unclamped at deep depths — a different estimator, not just a wider bound; (2) the same depth-scaled factors feed host_pred/actual_cal in observe_packed_forecasts (rounds.rs:586-624), so the #515/#522 cross-lane surplus estimator's inputs change too; (3) RequestCalibration::observe's first-observation seed anchor * global.factor(depth) (rounds.rs:99) now saturates to 1.0 at deep depths, biasing new requests optimistic; (4) CI on the head commit is failed and the description does not say so; (5) all serving evidence is self-declared combined-stack, and the same benchmark block appears verbatim in the author's unrelated sibling PR #633, while the headline 87.74→118.23 tok/s comparison also differs in draft_tokens, so it is not a clean A/B; (6) the PR's core Rényi-2 collision premise is not documented anywhere in this repository — no in-tree producer of proposal_confidence computes sum_i q_{j,i}^2, so the justification rests on an out-of-tree exporter.

The mechanical change is small and verified correct as described (+15/−10 in rounds.rs, every call site of the six functions updated, [0,1] clamp and monotone non-increasing survival intact, two new tests that do discriminate old from new). No config, ABI, Protobuf or core-format change; reach is limited to GPU-confidence cores, with no operator knob. The author is a charter-named priority contributor, this is their third attempt in this calibration area after #521 (superseded by #522 within two hours) and #306 (still open, halted as "already fixed another way"), and #632 has so far drawn no comments, no reviews and no labels.

#6 [medium] Why: the flat-ceiling trap, its baseline, and open issues with the same symptom (#503, #530)

PR #632's "Problem" section states the pathology: flat 2.0 ceiling truncates cumulative ratios at d>=2, trapping ordinary packed selection at packed_token_capacity = 3 (2 drafts/step) on high-acceptance workloads. Baseline reproduction: 4x DGX Spark GB10/SM121, DeepSeek-V4.1-Flash TP4, draft_tokens=5 (W=6), single-stream code gen at temperature=1.0, 50,311 completion tokens → 36,726 offered drafts / 18,345 rounds = 2.002 drafts/round, observed acceptance [0.917,0.824,0.001,0.0,0.0], 2.74 mean tokens/step, 87.74 tok/s.

Prior demand for this capability (found while searching):

#7 [medium] Recent activity: rounds.rs commits since 2026-11-20 and the open sibling #306

Recent commits to helios/src/scheduler/rounds.rs on main (search_history, newest first):

So #632 builds on #522 by 5 days and rebases onto #620/#555 (both merged 2026-11-27..29) without conflict — it only adds a helper and threads a parameter. Nothing in the interim commits touches DepthCalibration/RequestCalibration.

Note the commit authors are GitHub display names (Martin Vit committed the #515/#522 merges; #515's author is voipmonitor, #522 is voipmonitor with co-authorship from original-el8) — squash-merge authorship does not match PR authorship, worth not mis-attributing.

Open PRs in the same file right now: #306 (original-el8, "Start acceptance estimates from the acceptance of earlier requests", open since 2026-11-15, has CHANGES_REQUESTED from yatesdr 2026-11-18 and an Autobot "Review Stopped: already fixed another way" 2026-11-26). #306 touches Forecasts.population and speculation.rs population constants (see its review point 1: "One population, not two"). It does not modify the calibration ceiling, so #632 and #306 are not in conflict, but both are original-el8 scheduler-prior PRs open at the same time and both touch rounds.rs.

#13 [medium] Community: no engagement at all yet, versus the review traffic #515/#522 drew

Community angle: essentially none yet.

#15 [medium] Related work: everything else touching the same four files

From related_items and items_touching on rounds.rs / the four changed files.

Same 4 files (docs/scheduling-runtime-design.md, helios/README.md, policy_tests.rs, rounds.rs):

No competing or overlapping open PR proposes the same ceiling change. Nothing is superseded or undone by #632; the only literal reversal is of the flat 2.0 that #515 introduced.

#16 [low] Change: exact documentation wording before/after, and the test-helper duplication

Docs, before → after:

Tests: policy_tests.rs:6433-6447 (gpu_confidence_calibration_ceiling_scales_per_step_across_depth) drives rounds::Forecasts directly with 256 observe_calibration calls — cheap, no engine. policy_tests.rs:6449-6538 adds two local helpers (single_lane_packed_calibration_engine, observe_single_lane_packed_round) that hand-build a B=1/W=6 graph family with five packed capacities 2..6 and per-shape estimated_duration_ns (29.5/31.2/35.0/37.0/38.8 ms), then drive real commit/complete_packed_round_with_survival cycles. This re-implements shape plumbing that #522's Autobot review already flagged as duplicated across four tests (~70-90 lines each) — the same pattern recurs here.