#1 [high] PR #582 core facts: scope, size, verdict
PR #582 "helios: avoid splitting prefill on zero-budget checkpoint anchors", author FujitsuPolycom, head a3c6483, base main, +931/−16 in 7 files. Files: helios/src/scheduler/checkpoints.rs (+746/−4), helios/src/scheduler/checkpoint_lifecycle_tests.rs (+136), helios/src/scheduler.rs (+11/−3), verification/helios-lifecycle/check.py (+19), docs/cli-design.md (+6/−3), docs/core-design.md (+8/−4), docs/scheduling-runtime-design.md (+5/−2). Reviewer voipmonitor: CHANGES_REQUESTED on 2026-11-28 (2 blockers, 3 majors, minors). Live 4×SM120 evidence reported by reviewer (not author): prefill_steps 2→1 short 242-tok chat; 3→2 on ~12.2k-tok; spurious checkpoint_skips{reason=work_budget} at fraction 0.0. Author's own description: "Live signed-core serving and isolated GPU latency measurements remain unverified for this candidate." No maintainer engagement, no CI checks on head, branch behind main. Lens verdicts: Architecture BLOCKING, Simplicity BLOCKING (4), Correctness should-fix (2), Conventions should-fix only, Prose should-fix only, Subtractive "make it smaller first" (~410/931 lines removable), Value: worth pursuing but not mergeable as-is. Source: PR #582 body + review; pr_files.
#2 [high] Verified code defects in PR #582 (5 substantive)
- Stale
known_whole(checkpoints.rs:364-388, 471-473, 498-500):anchor_split_is_zero_costcompares freshly priced before/after against a cachedaccounting.initial_prefill_nsEWMA value. Upward EWMA drift makesbefore+after-whole != 0=> flips anchor to prompt end => SECOND Anchor capture after the first was already published. Reproducer from reviewer: prompt 1024, boundary [512], catalog [512]=512_000ns, fraction 0.0. - Dual interval origins for one decision (checkpoints.rs:467-511): branch A prices (start=consumed_tokens .. prompt); branch B
else if(line 489) prices (baseline_start .. prompt) OR trusts latch. Once prefill passes raw_anchor, branch A is not taken; branch B re-prices a longer interval => can flip verdict => duplicate Anchor. Reviewer reproducer B: catalog [128,512], mixed (2,1,256), prompt 1024, raw_anchor 768. - Latch destroyed:
clear_reservations()(checkpoints.rs:48-52) setsanchor_fallback_from = None; called from scheduler.rs:1726 on the carried-over accounting at admission (readmission after preemption, runtime.rs park/restore paths). Only page/space reservations should be cleared; the decision field is not a reservation. is_request_anchor_endpoint(checkpoints.rs:390-420) is a THIRD pricing of the same question, from hardcoded start=0 (line 415), no memoisation. Called from scheduler.rs:1794 (inbound admit) and checkpoints.rs:763 (promote_request_anchor) which scheduler.rs:2411 runs per lane on EVERY commit. It bypasses checkpoint_selection_cached / SelectionCache. Also checks raw_anchor before snapshots==0 at 395.- O(N) waste at fraction 0: anchor falls back to prompt_tokens, so candidates (529-539) collects all message boundaries; each is priced (542-605) with available == 0 (line 528), so every one sets budget=true (line 603) => stats.checkpoint_skip_work_budget increments (782-783 -> metrics.rs:501 flare_checkpoint_skips_total{reason="work_budget"}). Reviewer observed this live at fraction 0.0. Metric becomes permanently misleading.
- Unpriced anchor cut: Cut pushed at 512-519 with split_ns 0, copy_ns 0, bypassing allowance(); architecture lens says the zero-fraction regime is a magic
== 0.0branch (467-468) instead of a natural limit of the general policy. - plan_checkpoints (671-685) re-derives the anchor a 4th way: scan cuts for Anchor role, else latch test. All verified against head a3c6483 by reading source.
#4 [high] Hardware + observability facts for conditional test plan
HARDWARE: cn5 (4× RTX PRO 6000 Blackwell Max-Q, SM120, amd64; 48 CPUs/125GiB; models incl. nvidia/GLM-5.3-Flash-NVFP4, local-inference-lab/GLM-5.3-Flash-NVFP4). cn7 = 1× GB10 arm64, models incl. nvidia/Qwen3.8-27B-NVFP4, nvidia/GLM-5.3-Flash-FP4-Local. NOTE: message_boundaries come from the native frontend rendered prompt (helios/src/server/request.rs:300, from rendered.message_boundaries; chat-template/routed). A plain-text prompt likely has empty message_boundaries => raw_anchor == prompt_tokens == new code path INERT. Any live test MUST use multi-turn chat-template requests. OBSERVABLE METRICS (verified helios/src/server/metrics.rs):
- flare_checkpoint_captures_total{role="anchor"|"message"|"endpoint"} (metrics.rs:846, counters :497-499) => exactly 1 anchor per request after fix; >1 exposes the duplicate-Anchor blockers.
- flare_checkpoint_skips_total{reason="unknown_cost"|"work_budget"|"storage"} (metrics.rs:847, :500-502) => must be 0 work_budget at fraction 0.0 after the fix (currently nonzero).
- flare_sampling_graph_launches_total{kind="prefill"|...} (metrics.rs:978-987) => prefill launch count per request (the PR's benefit).
- flare_cache_hits_total / flare_cache_reused_tokens_total (metrics.rs:1115/1120) => prefix reuse regression.
- flare_message_checkpoints, flare_prompt_checkpoints (metrics.rs:495-496); flare_snapshot_publications/evictions.
- No prefill_steps metric exists; use launches_total{kind="prefill"} per request + TTFT. DEFAULT FRACTION: [server] scheduler_checkpoint_extra_work_fraction = 0.05 (ignition/cli/config.py:39, docs/cli-design.md:1366) => change inert unless operator sets 0 or snapshots==0; test must set 0 explicitly. Design references: docs/design-review.md:106-115 (principle 12, served-workload measurement required for perf claims), :195-206, :232-240. Caution: scripts/scheduling_sim/ does not model checkpoints => the architecture lens's "run the simulator" demand is partly unactionable; the actionable evidence gap is the served-workload A/B the author admits is unverified. Security screen: all clear, no injection; only note = unverifiable external fork commit link + "Discord: Dooner" signoff.
#5 [high] Recommendation basis: no hardware test now; gating probe for later
Basis for "do not test yet": defects that must be fixed before any GPU time is spent:
- Duplicate RetentionRole::Anchor capture (stale known_whole vs freshly priced before/after) — will be removed by the restructure, so any measured anchor/eviction behaviour today is throwaway.
- Duplicate Anchor on Mixed alignment (dual interval origins).
- Latch destroyed by clear_reservations (preemption/readmission).
- Third pricing path is_request_anchor_endpoint (start=0) on the per-lane commit hot path, unmemoised — a CPU-side regression risk that a GPU test could easily mis-attribute to the model.
- O(N) boundary pricing + spurious flare_checkpoint_skips_total{reason="work_budget"} at fraction 0.0 — the metric a tester would use as evidence is itself wrong today. Also: author's own tests pass dur_ns=1000/1_000_000 against 512_000 ns-class costs via complete_test_step, so the EWMA clamps and the drift bug is invisible to their suite — meaning "tests green" carries no weight for the riskiest property. Attribution warning for future testing: on hardware, a duplicate-anchor or extra-launch observation could come from either the anchor bug or the CI-less base; require a main baseline on the same box. Resource efficiency: gate any run on a 15-min probe at the DEFAULT fraction 0.05 to prove checkpoint anchors fire at all on that model/core (needs Snapshot graph + captured prefill). If flare_checkpoint_captures_total{role="anchor"} stays 0, the anchor path is inert and the whole A/B is void. Arch not relevant: pure scheduler policy, no CUDA/kernel/arch code => cn5 only; cn7 (GB10 arm64) adds nothing. Reviewer already produced the benefit evidence on equivalent 4× SM120 hardware (prefill_steps 2→1, 3→2).
#3 [medium] Evidence rules, simulator non-coverage, doc contradictions
- docs/design-review.md:195-206: changes to graph selection/service pricing must be evaluated against
scripts/scheduling_sim/simulator + reference solvers; do not diverge Helios from the simulator's qualified policy without updating/validating across the catalog. - docs/design-review.md:232-240: "Never touch covered code without running and updating its simulator and formal checks" — modifying the Helios scheduler without running applicable TLA+ models, Rust conformance, Kani, and scheduling simulator is "a blocking design failure, regardless of whether CPU unit tests pass."
- docs/design-review.md:106-115 (principle 12): "Performance claims require equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements"; disclose unrun checks and limitations.
- VERIFIED COUNTERPOINT:
scripts/scheduling_sim/has no checkpoint/anchor modelling at all (grep for checkpoint|anchor|snapshot returns only EWMA-timing "snapshot()" methods in timing.py/learning_policy.py). So the simulator sweep demanded by the architecture lens cannot evaluate this policy change as written; the actionable part is principle 12's served-workload measurement. - Charter: performance PRs need benchmarks showing actual speedup over main on a served workload (#210).
- docs/core-design.md:1452-1453 and docs/scheduling-runtime-design.md:570-572 still say unknown prefill costs exclude extras "without excluding the anchor" — now false at fraction 0 (anchor_split_is_zero_cost returns false on unknown => interior anchor dropped). Two incompatible rules per doc.
- helios/README.md:372-379 is a 4th copy of the anchor spec and was NOT updated: still says "prioritizes the last eligible message boundary" unconditionally, no zero-capacity rule, no zero-fraction rule.
- docs/cli-design.md default for scheduler_checkpoint_extra_work_fraction is 0.05 (ignition/cli/config.py:39 same default). So the change is inert unless an operator sets 0 or snapshots==0.