#1 [high] PR #661 identity and head state
PR #661 "helios/scheduler: explore smaller prefill chunks under active age-priced streams", author FujitsuPolycom (CONTRIBUTOR). Branch fix/helios-prefill-cadence-exploration -> main. HEAD: 3d868f84c5118b40a9ee6112f1d551ecef3d32c4 (3d868f8). Base of the report table was main 1fbcc3c9. +2778/-186 across 15 files. Latest Autobot re-review (on 3d868f8): "Recommendation: Ready To Merge", Blockers: None, Should Fix: None. Earlier reviews targeted superseded heads (29f2b5b, c588d61) and were Changes Requested. Production files changed:
- helios/src/scheduler/cost.rs (+320): new ActionCosts::interpolated_prefill_duration (cost.rs:688-776) + 3 tests
- helios/src/scheduler/policy.rs (+195/-129): prefill_candidate_ns (policy.rs:517-543), PrefillSlotPlan (:89-96), prefill_catalog_for_terminal (:371-374), preserves_first_output_wait (:479-506), lane_value_for_tokens_within interior-cut credit
- helios/src/scheduler.rs (+86/-10): resolve_prefill_kind_from widening (:901-907), prefill_must_complete_terminally_from (:964-1022), has_active_age_priced_stream (:996-1005), drain barrier prefill_step_requires_feedback (:1187-1190), terminal_prefill_window cache (:662,:847-866)
- helios/src/scheduler/service.rs (+5/-1): service_rates terminal_only now uses prefill_must_complete_terminally_from when has_active_age_priced_stream() (service.rs:297-301)
- tests: policy_tests.rs +1762; scripts/scheduling_sim/{learning.py,learning_policy.py(+97),workloads.py(+51)}; tests/test_scheduling_*.py; verification/helios-lifecycle/check.py; docs/scheduling-runtime-design.md(+52/-20), docs/scheduling-theory.md(+18/-3), helios/README.md(+9/-4) No new CLI flags, no PolicyConfig field, no unsafe, no ABI/graph-op change. Signed cores unchanged.
#2 [high] Hardware test-plan facts: activation gates, metrics, harness gaps
ACTIVATION GATES for #661 (all must hold or the PR is a no-op):
- Policy: default
balanced, decode_age_price=0.1, terminal_age_price=1.0 (policy.rs:29-45); throughput() zeroes only decode_age_price (policy.rs:50-52). - Interpolation gate:
age_price > 0.0 && plan.nat_fit.is_some_and(|nat| capacity <= nat)(policy.rs:531-541), unmeasured duration only. - Needs a RESIDENT age-priced stream: has_active_age_priced_stream = any slot decoding/resuming with decode_age_price>0, OR any terminal_cleanup slot with terminal_age_price>0 (scheduler.rs:996-1005). Pure decode-only or pure prefill-only load = no change.
- Needs a multi-capacity prefill catalog: prefill_capacities(chunk) (scheduler.rs:83-92). chunk=4096 -> 128,256,512,1024,1536,2048,2560,3072,3584,4096.
- Terminal/deferred paths need a non-empty TERMINAL_PREFILL catalog (scheduler.rs:827-845, 901-907). Without it, resolve_prefill_kind_from always returns Prefill and the deferred_prefill widening is unreachable. Verify per core with
flare inspect CORE --graphs. - Drain barrier fires on ANY non-terminal Prefill plan when gate 3 holds (scheduler.rs:1187-1190) -> narrows #645 two-frame pipelining.
MEASURABLE EVIDENCE ON HARDWARE:
- Canary for the new exploration path:
flare_scheduler_executions_total{reason="discovery"}(metrics.rs:931-939; TimingOrigin::Discovery set by is_unmeasured_candidate, policy.rs:545-548). flare_graph_launches_total{kind=...}buckets PREFILL+TERMINAL_PREFILL+SCORED_PREFILL into onekind="prefill"label (metrics.rs:406-418, 1227-1247) -> cannot distinguish Prefill vs TerminalPrefill.- Also
flare_prefill_tokens_total,flare_replay_gpu_nanoseconds_total,flare_scheduler_execution_nanoseconds_total{reason=...}. - Live per-graph trace exists only on the stderr TUI dashboard (dashboard.rs:102-135 starts scheduler_trace; requires a terminal). Not scriptable -> an instrumentation gap.
IN-REPO HARNESS: scripts/benchmark_scheduler.py (closed-loop HTTP SSE; per-token burst timestamps; emits ttft_median/p99, burst_gap_median/p99, tokens_per_second, prompt/cached token counts, raw rows + metrics text).
- Limitation A:
--prompt-tokensis ONE integer for all lanes, so no mixed short-decode + long-cold-prefill trial can be expressed. - Limitation B: gap metrics are computed but there is NO >250 ms stall count and no SLO evaluation -> must post-process the emitted
rows. - Limitation C:
--variant,--pair-order,--pair-indexare parsed (lines 187-189) but never used in main() -> dead flags; label arms yourself. - Limitation D:
--warmup-secondsruns the SAME bodies, which measures the small prefill shapes and destroys the cold-discovery effect the PR claims.
COST STATE: estimates live in ActionCosts with estimate_ttl_ns=30 s (policy.rs:39) and interpolation only applies to unmeasured shapes; discovery is one-shot and permanent once measured. => fresh process per cold trial; decode-only warmup if any. Interpolation floor = fastest measured Decode/Speculative/Resume (cost.rs:715-726), so decode warmup changes prefill estimates.
HW: cn5 (4x RTX PRO 6000 SM120, amd64, 48 CPU/125 GiB RAM/16 GiB scratch) matches the PR's measured SM120 4x RTX PRO 6000 class. PR used DeepSeek-V4.1-Flash (NOT on cn5); cn5 has GLM-5.3-Flash-NVFP4 variants. cn7 is 1x GB10 vs PR's 2x GB10 TP2 -> cannot reproduce the GB10 config.