#1 [high] Change: what PR #582 actually does (files and sizes)
PR #582 "helios: avoid splitting prefill on zero-budget checkpoint anchors", perf/helios-zero-budget-anchor-split -> main, head a3c648351c9c364099c57479eba858a7fd33998a, base 167f22c8. +931/-16, 7 files.
What the code does (verified from the diff):
- helios/src/scheduler/checkpoints.rs
- New field
CheckpointAccounting::anchor_fallback_from: Option<usize>(line ~28) recording "the raw interior anchor we decided to abandon in favour of the prompt end". clear_reservations()now also setsanchor_fallback_from = None(i.e. it is NOT preserved across clear_reservations; reviewer Major #4 says it should be).- New
RequestScheduler::anchor_split_is_zero_cost(request, catalog, terminal_window, start, end, anchor, known_whole) -> bool: pricesbefore(start..anchor) + after(anchor..end) - whole(start..end) == 0viainterval_prefill_ns; returns false when any price is unknown. - New
pub(super) fn is_request_anchor_endpoint(&self, request, endpoint: u64) -> bool: true if endpoint == raw anchor; else false when snapshots==0, fraction != 0.0, raw_anchor >= prompt_tokens, or endpoint != prompt_tokens; then true ifanchor_fallback_from == Some(raw_anchor); else returns!anchor_split_is_zero_cost(..., start=0, end=prompt_tokens, anchor=raw_anchor, known_whole=None)— i.e. the prompt end counts as the anchor when the interior split is costly. Hardcodes start 0 and omits limits.snapshots check ordering matters (reviewer Major #3). checkpoint_selection_uncached: renamesanchor->raw_anchor; after computing baseline_interval it now returns early(accounting,false,false)whenself.limits.snapshots == 0— no cuts at all at zero snapshot capacity.- Zero-fraction branch: if
raw_anchor < prompt_tokens && fraction == 0.0, choose anchor = raw_anchor only ifanchor_split_is_zero_cost; else latchanchor_fallback_from = Some(raw_anchor)and useprompt_tokens. When already past the anchor (raw_anchor <= start), it keeps prompt_tokens ifanchor_fallback_from == Some(raw_anchor), or re-prices frombaseline_start(usinginitial_prefill_nsas known_whole when baseline_end == prompt_tokens) and falls back again if costly. This is the "multi-chunk" fix. Nonzero fraction path unchanged (anchor_fallback_from = None; raw_anchor). - The anchor Cut is pushed only if
anchor > start(existing behaviour). - In the step-pricing loop, the anchor variable now comes from the chosen Anchor cut endpoint, else from
anchor_fallback_from-aware raw anchor (so previous behaviour preserved when no Anchor cut). promote_request_anchor: previously only looked uphistory.key_at(request.checkpoint_anchor()); now falls back to looking up the prompt end key whenis_request_anchor_endpoint(request, prompt_tokens)is true, so an Endpoint checkpoint at the prompt end can be promoted to Anchor under zero budget.
- New field
- helios/src/scheduler.rs (~line 1791): inbound restore role classification changed from
request.checkpoint_anchor() as u64 == inbound.consumed_tokenstoself.is_request_anchor_endpoint(request, inbound.consumed_tokens), so a restore at the prompt end can be tagged RetentionRole::Anchor. - helios/src/scheduler/checkpoint_lifecycle_tests.rs: +136, new test
zero_budget_multi_chunk_fallback_reservations_match_lifecycle_modelwalking the TLA+-style Observation edges for cancellation in 0..5. - helios/src/scheduler/checkpoints.rs tests: +~530 of tests (complete_test_step helper; zero_snapshot_capacity_produces_no_cuts_and_never_splits_prefill; zero_fraction_falls_back_to_prompt_end_when_interior_anchor_splits_prefill; balanced_c16_short_prompts_skip_interior_anchor_tails_and_reach_full_batch; zero_fraction_multi_chunk_fallback_captures_prompt_end_restores_and_promotes_on_reuse; zero_fraction_aligned_interior_anchor_and_mixed_prefill_preserve_exact_contracts).
- verification/helios-lifecycle/check.py +19: new Rust source mutation "dropped multi-chunk zero-budget fallback" replacing the new
else ifwithelse if false, asserted to break a test. Reviewer Minor #6 says this is a brittle 13-line string literal match (check.py:325-343). - docs: cli-design.md (~700), core-design.md (~1435), scheduling-runtime-design.md (~551) rewritten to describe zero-capacity-disables-cuts and the zero-fraction interior-anchor rule. These doc edits are NOT mentioned in the PR description (orientation packet flags docs undescribed).
#2 [high] Community: one review, CHANGES_REQUESTED, 2 blockers + 3 majors + minors
PR #582 discussion: exactly one comment, a review by voipmonitor on 2026-11-28 22:13, state CHANGES_REQUESTED ("Review & Live 4× SM120 Test Report (commit a3c64835)"). PR state is "open, ready for review" per packet but a change request stands. No CI checks on head commit (packet: "CI on the head commit: no checks").
Their verification: cargo test ... --lib scheduler:: 390 passed 0 failed; python3 verification/helios-lifecycle/check.py (8 TLA+ models + mutation checks) PASSED. Live 4x SM120, DeepSeek-V4.1-Flash TP4, --scheduler-checkpoint-extra-work-fraction 0, same origin/main base: short 2-turn chat 242 tok had prefill_steps 2 -> 1 (anchor_captures=1); multi-chunk 2-turn 12,212-12,232 tok, 5 runs, prefill_steps 3 -> 2 in all runs, but flare_checkpoint_skips_total{reason="work_budget"} still incremented 1..3 per request at fraction 0.0; 64K cold NIAH 71,429 tok at 59,453 tok/s, needle_ok true.
Findings:
- [Blocker] duplicate RetentionRole::Anchor capture on upward GPU EWMA timing drift (checkpoints.rs:364-388, 466-505):
checkpoint_selection_uncachedlatchesaccounting.initial_prefill_nsand passes it asknown_wholeintoanchor_split_is_zero_cost, comparing livebefore+afteragainst the stale latched whole. Reproducer prompt 1024, boundaries [512], catalog [512] = 512_000ns, fraction 0; chunk1 zero-cost keeps 512, GPU jitter to 515_000ns -> EWMA 512_300; chunk2raw_anchor > startfalse -> else-if re-prices 512_300+512_300-1_024_000 = 600 != 0 -> flips to 1024 and captures a second Anchor. Also notes the PR's own unit test misses it because complete_test_step passes dur_ns=1_000 vs 512_000 driving EWMA down so saturating_sub clamps to 0 — which symmetrically makes downward drift classify costly splits as zero-cost. - [Blocker] duplicate Anchor capture when Mixed prefill shifts chunk alignment (checkpoints.rs:466-505). Reproducer catalog [128,512] = 150k/400k, mixed [(2,1,256)], prompt 1024, raw_anchor 768, fraction 0: at start 0 the 0..768..1024 split is costly -> fallback 1024; chunk1 runs Mixed(256); at start 256 the 256..768..1024 split is zero-cost so selects and publishes 768 as Anchor (anchor_fallback_from = None); at start 768 the else-if re-prices from baseline_start 0, sees costly, publishes a second Anchor at 1024. Suggested fix for both: price whole/before/after from the same catalog snapshot (no stale known_whole) and latch an explicit (raw_anchor, chosen_anchor) decision on CheckpointAccounting that survives clear_reservations(), instead of reconstructing the fallback backwards from baseline_start.
- [Major]
is_request_anchor_endpointhardcodes start=0 and tests raw_anchor beforelimits.snapshots == 0(checkpoints.rs:390-420, scheduler.rs:1794). Partial prefix hit baseline_start=88, raw_anchor=600, prompt 1024, catalog [128,512]: selection prices from 88 and picks 600 zero-cost, while is_request_anchor_endpoint prices from 0 and also returns true for 1024, so promote_request_anchor / inbound restore can promote both. Fix: check limits.snapshots==0 first, price from baseline_start when baseline_start < raw_anchor. - [Major]
clear_reservations()wipesanchor_fallback_from(checkpoints.rs:48-52, scheduler.rs:1726);admit_planned_with_checkpoint_accountingpreserves CheckpointAccounting across preemption/readmission and calls clear_reservations(), so the latched zero-budget decision is lost — should be preserved like baseline_interval and initial_prefill_ns. - [Major] O(N) wasted prefill pricing and spurious
checkpoint_skip_work_budgetstats at fraction 0.0 (checkpoints.rs:538-650): when anchor falls back to prompt_tokens, raw_anchor and all earlier message boundaries entercandidatesand run 2*N interval_prefill_ns walks every step although available == 0 can never fund optional cuts; return early after pushing the Anchor cut. This is backed by their live observation that flare_checkpoint_skips_total{reason="work_budget"} still increments at fraction 0.0. - [Minor] move
if self.limits.snapshots == 0beforeprefill_catalog_costsand short-circuitallocate_terminal_capture; update stale follow-on sentences in docs/core-design.md:1448-1449 and docs/scheduling-runtime-design.md:567-569; add regression tests for upward EWMA drift, Mixed-prefill alignment shift, partial prefix hit < raw_anchor, preemption/readmission; replace the brittle 13-line string literal mutation in verification/helios-lifecycle/check.py:325-343.
Related items list on the PR: mentions #1, #2 (closed issues) and #5.
#3 [high] Change: code-level placement, defaults and existing coverage
Verified facts from the code at the PR head (helios/src/scheduler/checkpoints.rs unless noted):
LiveRequest::checkpoint_anchor()(L109-116) picks the last eligible message boundary, elseprompt_tokens. Unchanged by this PR — the PR does not change the raw anchor definition, only whether an interior anchor produces a cut.- PR #582's zero-capacity early return is at L460-462, after
prefill_catalog_costs(L445) and theinitial_prefill_nslatch (L451-459); reviewer Minor #6 says move it before the catalog walk. Pre-existingboundary_tests.rs:193snapshot_capacity_does_not_disable_prompt_fallback_anchoralready assertscheckpoint_anchor_captures == u64::from(snapshots > 0)for snapshots in [0,1,2,4,8,12] — i.e. the user-visible "zero capacity ⇒ no anchor capture" outcome was already tested; what was missing was that the scheduler still planned cuts/splits at zero capacity. - The optional-candidate loop (L529-639) is where reviewer Major #5's wasted work happens:
candidatesincludes every eligible message boundary < anchor plus the prompt end, and each runsinterval_prefill_nswalks;available = allowance(prefill, fraction)(L528) is 0 at fraction 0, so every candidate fails the budget check at L597-605 and setsbudget = true→ this is the source of theflare_checkpoint_skips_total{reason="work_budget"}increments the reviewer saw live at fraction 0.0. - New
is_request_anchor_endpointis at L390-420 and is called from exactly two places: scheduler.rs (inbound restore role classification, ~L1794 in the diff /RetentionRole::Anchorfor inbound) andpromote_request_anchor(L753+). - PR adds
anchor_fallback_fromtoCheckpointAccounting(L28) butclear_reservations()(L48-52) clears it — Reviewer Major #4. - Policy default
checkpoint_extra_work_fraction: 0.05(helios/src/scheduler/policy.rs:39); CLI/config override--scheduler-checkpoint-extra-work-fraction/[server] scheduler_checkpoint_extra_work_fraction(helios/src/server/config.rs:333-338; config.rs:728 asserts the 0.05 default). So the PR's zero-fraction branch is NOT the default configuration; users must set the fraction to 0 explicitly. - Existing test
zero_fraction_never_reserves_or_charges_extra_copy_work(checkpoints.rs:1690-1714) already existed before this PR and covers "fraction 0 ⇒ 1 cut, no extra copy charge". - Existing test
completed_conditioned_windows_preserve_anchor_eligibility_and_baseline_cuts(checkpoints.rs:1667) uses interior boundary 400 withcheckpoint_anchor() == 400; it only asserts initial_prefill_ns, so no obvious conflict. - PR's own new test helper
complete_test_stepfeedsdur_nsstraight intogpu_ns[0], which is why the reviewer's EWMA-drift scenario was not exercised (their Blocker #1 note).
#4 [high] Related work: #459/#550/#568/#426/#354 lineage of checkpoint_selection_uncached
Related work / history around the touched code (all on helios/src/scheduler/checkpoints.rs):
- #459 (merged 2026-11-22, yatesdr) "Price checkpoint candidates without walking every prefill chunk" — the loop PR #582 modifies (
checkpoint_selection_uncachedcandidate pricing, sharedbetweeninterval,prefill_catalog_costs) is exactly the code #459 introduced. #459's motivation: on a production GLM-5.3-Flash TP4 server the runtime thread ran at 96-100% CPU pricing checkpoint candidates, GPUs idled, decode fell to a few tok/s. This makes #582's Major #5 (wasted per-step candidate pricing at fraction 0) a continuation of a known production pain, not a nit. - #550 (merged 2026-11-28, iein) "Restore prefix checkpoints on prefill catalogs without terminal prefill" — immediately preceding change to
interval_prefill_nspricing (unmeasured-capacity rule); merged the same day, 4 files back-to-back with #582 and #568 in checkpoints.rs. #582'sanchor_split_is_zero_costusesinterval_prefill_ns, so it inherits that rule. - #568 (merged 2026-11-28, lukealonso) "Bound optional Endpoint checkpoint eviction by age-discounted marginal gain" — #582's description says "Optional endpoint eviction and nonzero-budget anchor selection remain unchanged"; #568 changed
checkpoint_selection_uncached(protected_token_budget on optional Endpoint quotes) and #550 had to rebase over #568's appended tests. #582 adds ~530 lines of tests at the end of the same test module — same append collision risk. - #426 (merged, original-el8) "Rebase prefill service prices, fix checkpoint interval pricing, and guard deferred TerminalPrefill state" — earlier change to the same pricing path.
- #354, #357 (merged, yatesdr) — checkpoint work estimation without storage quotes / prefill graph sizing from quoted checkpoint work: the budget/allowance model PR #582 branches on.
- #285 (merged, dbotwinick) — retain measured prefill costs after expiry; referenced by #534 for the snapshot-cost freshness gate.
- #479 (merged, voipmonitor) added optional TerminalPrefill, whose graph kind is what
terminal_prefill_window()/terminal catalog pricing involves. - Commit 617ef929 (2025-11-11, Luke Alonso) "Allocate checkpoint slots globally within request work budgets" — origin of the extra-work-fraction allowance model. Recent commits touching checkpoints.rs (search_history at PR head): a3c64835 (#582), 1364062c (#550), 5deacda9 (#568), da578c5c (#426), e091689b (#479), 6b586398 (#459), 436d6a9b (#415), 7f1ac303, 10bc91ad, 97cfeb00 (#285), 617ef929.
#5 [high] Change: side effects the description does not state (role tagging, promotion, unpriced O(prompt) walk)
PR #582 adds a new runtime behaviour that its own description does not flag as user-facing beyond "no cuts at zero capacity":
- Restore role labelling change (helios/src/scheduler.rs, diff at ~L1791): incoming restore
inbound.consumed_tokensis now classifiedRetentionRole::Anchorvia the newis_request_anchor_endpoint, not only when it equalsrequest.checkpoint_anchor(). Effect: an inbound restore that lands at the prompt end can be tagged Anchor instead of Message/Endpoint, which raises its retention rank (RetentionRanksorts role) and therefore changes which checkpoints get evicted — interacting directly with #568's age-discounted protected-victim budget (merged the same day). The description only says "prefix Restore" is handled and "optional endpoint eviction … unchanged"; the role-tagging path is where eviction ranking actually changes. promote_request_anchor(checkpoints.rs:753-776) now falls back to promoting the prompt-end checkpoint to Anchor whenis_request_anchor_endpoint(request, prompt_tokens); called for every lane on every commit (scheduler.rs:2411). This can upgrade an existing Endpoint checkpoint to Anchor, and re-offers the publication (reoffer_publication) — a second path with eviction-ranking and Selene-publication consequences.is_request_anchor_endpointis O(prompt) work per call: it callsprefill_catalog_costs+ up to threeinterval_prefill_nswalks over the whole prompt (0..prompt_tokens, 0..raw_anchor, raw_anchor..prompt_tokens). It is called once per lane per commit frompromote_request_anchor(scheduler.rs:2411) and per inbound restore. Unlikecheckpoint_selection, it is NOT insidecheckpoint_planning_scope(only policy.rs:1208 and 1453 open a scope), so the result is not memoised across lanes/commits on the same tick. This is the same class of per-commit CPU cost that #459 was written to remove (runtime thread at 96-100% CPU, GPUs idle). Reviewer Major #5 flags the analogous cost inside checkpoint_selection at fraction 0 but not this one. Also note: at zero fraction with a costly interior anchor,checkpoint_selection_uncachednow returns a single Anchor cut at the prompt end every step; withanchor > startfalse after prefill finishes the Anchor cut stops being pushed, soplan_checkpoints's anchor recomputation (checkpoints.rs:671-685) is what keeps the prompt-end fallback alive for the snapshot capture. Docs: PR rewrites the two paragraphs at docs/core-design.md:1436-1445 and docs/scheduling-runtime-design.md:553-574. Reviewer Minor #6 says the FOLLOW-ON sentences at core-design.md:1447-1453 ("Unknown prefill costs … exclude extras without excluding the anchor"; and the DEFAULT 0.05 sentence) and scheduling-runtime-design.md:566-572 still describe the old anchor-always-best-effort rule and were left stale. Verified against main: those sentences are unchanged by the PR (main core-design.md:1444-1453, main scheduling-runtime-design.md:560-571).
#6 [high] Project fit: charter evidence bar vs CPU-only evidence; fraction 0 is a known operator workaround
Project-fit and charter facts relevant to PR #582 (charter text from read_charter):
- "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)." PR #582's own evidence is CPU unit tests + TLA+ conformance; it explicitly says "Live signed-core serving and isolated GPU latency measurements remain unverified for this candidate." The only served-workload evidence in the thread is the reviewer's (voipmonitor): 4x SM120 DeepSeek-V4.1-Flash TP4, fraction 0 — prefill_steps 2->1 on a 242-token 2-turn chat, 3->2 on 12.2K-token multi-chunk prompts across 5 runs, 64K NIAH 71,429 tok at 59,453 tok/s. - "What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." #582 has no linked issue; the orientation packet shows search_items finds no issue about zero-budget anchor splits. Its reproducer is the reviewer's, in review.
- "Solve the right problem in the right place… smallest footprint in shared code." The change is in shared Helios scheduling, no per-model branching — consistent with "Keep the runtime small and model-agnostic".
- "Respect contributors. Priority contributors (@voipmonitor, @original-el8, @lukealonso) carry extra weight." The change-request comes from voipmonitor, a priority contributor and the author of TerminalPrefill (#479); the author FujitsuPolycom is listed as CONTRIBUTOR, not priority.
- PR description format: charter wants why / what changed / claimed result / evidence. #582 has all four sections, including an explicit limitations line — matches the standard.
- Alternatively: the behaviour only matters when an operator sets
--scheduler-checkpoint-extra-work-fraction 0(default is 0.05, policy.rs:39). Real-world precedent for running at 0 exists: yatesdr in #335 measured--scheduler-checkpoint-extra-work-fraction=0as the workaround that avoided the 617ef929 checkpoint-pricing collapse (TTFT 161-188 s -> 27.9 s) and stated "Anchor checkpoints are still taken." That workaround sentence is exactly the behaviour #582 is changing: at fraction 0 the anchor still forced a prefill split.
#7 [high] People: author's #538 caused the #550 pricing regression in the same function #582 builds on
Author history (FujitsuPolycom, GitHub association CONTRIBUTOR, Discord handle "Dooner" on #538/#540/#582):
- #538 "Restrict cold pure-prefill discovery to natural-fit graph capacities" (merged 2026-11-26, +451/-12, helios/src/scheduler/policy.rs + docs/scheduling-runtime-design.md + policy_tests.rs) — same author, same subsystem (prefill scheduling and checkpoint cuts). Motivation: unmeasured prefill graphs caused chunk stepping 14336->...->256; live 4x RTX PRO 6000 SM120 TP4 DeepSeek-V4.1-Flash cold A/B (124K 16->9 launches, -205.7 ms pure prefill GPU). Its data note is directly relevant to #582: "Every chat request takes 1 message-boundary snapshot after the template prefix, so the natural-fit launch count is 1 + ceil(user_tokens / 16384)" — i.e. this author had already measured boundary-driven extra prefill launches.
- #550 (merged 2026-11-28, iein, NOT the author) exists to fix a regression #538 introduced: with natural-fit-only discovery, smaller prefill capacities stay unmeasured, and
interval_prefill_nspriced them as unknown, so every prompt-endpoint cut was skipped asunknown_cost; on Inkling 2 Small TP4 the exact repeat of a 31K prompt went from fully reused (0.02 s) to 29 tokens reused (15.3 s). iein's closing comment on #538 names this explicitly. => #582'sanchor_split_is_zero_costdepends oninterval_prefill_nsreturning usable prices; the author's own previous PR shipped a pricing regression into this same function two days earlier, and #550 (a different author) had to repair it. - Other merged work by the author: #539 (engram/heliopause export blob reuse), #508 and #499 (recipe-declared row-sharded prefill planning, PCIe DMA / RoCE row-shard collectives), #498 (Heliopause PCIe D2H tails), #386 (Qwen3.8 27B image input). So the author's merged footprint is export/ignition/collective performance plus Helios prefill policy, not checkpoint lifecycle semantics.
- Open PRs by the author at time of writing: #588, #587, #586, #585, #584, #581, #580, #540 — a dense burst in the same 2026-11-26..11-28 window, mostly performance work. #540 (open, helios scheduler refresh/cost) is the only other scheduler-area PR and is by the same author.
- Frequent committers in these areas (last 180 days): helios/src — Luke Alonso 216, Martin Vit 51, yatesdr 47; docs — Luke Alonso 375; verification/helios-lifecycle — Luke Alonso 9. None of them have engaged on #582; the only engagement is voipmonitor's change request.
- lukealonso (COLLABORATOR, priority contributor) authored #568, the eviction change in the same file merged 4 hours before #582's review, and closes competing PRs himself (e.g. #567 closed "in favor of #568"). No engagement on #582 yet.
#8 [high] Reach and process: only fraction-0 / zero-capacity deployments, metrics, docs, no CI, needs rebase
Reach / process facts:
- Configuration surface: behaviour only differs when
--scheduler-checkpoint-extra-work-fraction 0(or[server] scheduler_checkpoint_extra_work_fraction = 0) is set; default is 0.05 (helios/src/scheduler/policy.rs:39). At the default 0.05 the PR is a no-op by construction (checkpoint_extra_work_fraction == 0.0guards the new branch, checkpoints.rs:468;!= 0.0guards inis_request_anchor_endpoint, :396). The zero-snapshot-capacity early return (:460) does change default behaviour, but only for deployments configured with 0 snapshot capacity. - Metrics affected:
checkpoint_skip_work_budget(commit_checkpoint_plans, checkpoints.rs:783) — reviewer's Major #5 and the liveflare_checkpoint_skips_total{reason="work_budget"}observation;flare_checkpoint_anchor_captures_total/checkpoint_endpoint_captures(asserted in the PR's new tests);checkpoint_extra_work_ns. Alsocheckpoint_anchor_guardsgauge indirectly (anchor guard is only reserved for a cut below the anchor, checkpoints.rs:694-696). - Documents edited (undescribed in the PR body): docs/cli-design.md (the CLI flag description at ~L700), docs/core-design.md (checkpoint retention paragraph ~L1436), docs/scheduling-runtime-design.md (checkpoint retention paragraph ~L553). These are user-facing/operator-facing descriptions of the flag.
- Verification harness: verification/helios-lifecycle/check.py gains one Rust source mutation ("dropped multi-chunk zero-budget fallback") appended under CHECKS[7]'s module (the checkpoint_lifecycle test module). The PR does NOT change CheckpointReservation.tla: the new Rust lifecycle test merely asserts existing model edges for the new path (labels [13,..], [5,..], [4,..], [14,..], [15,..], [16,..]). So
anchor_fallback_from— new scheduler state — is not modelled, only the resulting reservation transitions are checked. - Related verification users: check.py is also touched by #554 (open DRAFT, ateska), #568 (merged), #556 (merged), #207 (merged) — merge-conflict surface for both check.py and checkpoint_lifecycle_tests.rs (only #568 overlaps the latter).
- Process: PR opened 2026-11-28 20:45, review 22:13, marked ready for review in the packet but a CHANGES_REQUESTED review stands; no CI checks on head a3c6483 ("no checks"); single commit a3c64835; branch perf/helios-zero-budget-anchor-split based on 167f22c8 (main has since advanced past it: ba3afb13, 9375d679, 19c098c8, 2bdc8472, 70e0f4a8, 1364062c, 5deacda9, 7cd83f32 are listed as newer commits), so it is likely to need a rebase before merge.
- The PR text is written to the charter's 4-part format and includes a limitations line; it also names the candidate commit and base commit, which the charter's evidence guidance asks for.
- Claimed test counts in the description: pytest 312 passed;
scheduler::checkpoints::tests27 passed / 1,690 filtered (that filter count includes the whole lib, so "27 passed" is a narrow filter);scheduler::checkpoint_lifecycle_tests::4 passed / 1,713 filtered; check.py --mutations full. It also discloses two pre-existing base failures (model::tests::packed_combined_budget_keeps_width_one_batches_without_a_useful_packed_shape,server::runtime::phase_tests::worker_observes_prefill_decode_and_prerequisite_timings) — the same packed-batch failure was disclosed as pre-existing in #540 and #567, so that disclosure is consistent with other PRs. - Reviewer's independent counts differ:
scheduler::390 passed 0 failed, which is a wider filter than the description's, and it covers the same new tests.
#9 [high] Why: no linked issue; motivation is the fraction-0 workaround from #335 plus #69's measured split cost
The why, as far as the record shows:
- PR #582 links no issue.
search_itemsfor zero-budget/anchor/prefill-split terms returns only #582 itself; there is no open or recent issue reporting "a conversation checkpoint forces an extra padded prefill launch at extra-work-fraction 0". So the motivation rests entirely on the PR body plus the reviewer's live measurement, not on an external bug report. - Real-world grounding that DOES exist for the configuration: yatesdr in #335 (closed issue, 2026-11-18) reported that on f9aec99c a 32x12.7K burst had 161-188 s median TTFT and that
--scheduler-checkpoint-extra-work-fraction=0brought it to 27.9 s, adding "Anchor checkpoints are still taken." That workaround is exactly the code path #582 changes: at fraction 0 the anchor still forced a checkpoint cut. Same operator class (4x RTX PRO 6000, DeepSeek-V4.1-Flash TP4) as the reviewer's SM120 test rig. - The cost of an extra prefill launch is documented elsewhere in the repo: #69 (closed) measured a short final-message split costing ~180 ms of fixed short-batch work on four GB10 Sparks (3-message prompt 1,908 ms vs 1,725 ms single-message TTFT) and reported that "vLLM has no equivalent cost: chunks purely by token budget and never splits on message boundaries". #69 was closed for inactivity 2026-11-26 after being triaged as a design decision about dropping the checkpoint between the final two messages — the same design tension #582 resolves differently (keep the prompt-end checkpoint, drop the interior split).
- #538 by the same author (merged 2026-11-26) reports that "Every chat request takes 1 message-boundary snapshot after the template prefix, so the natural-fit launch count is 1 + ceil(user_tokens / 16384)" — i.e. the author had already established that chat prompts get an interior boundary-driven split as the norm, which is the precondition for #582's problem.
- Timing: the desired behaviour is 4 days old at most (the #335 measurement is 2026-11-18). It is not a long-standing request; the code path itself (conversation anchor kept regardless of capacity/cost) dates from 617ef929 (2026-11-11) per checkpoints.rs history.
- Related lead not in the local copy: #471 (open, joninco, "Add GLM 5.3 TP8 recipe and PCIe speculative decode optimizations") mentions "the template's nine-token system line ends at a message boundary, the first long prompt planned from measured costs…" — indicates another author observing message-boundary/anchor planning effects on short system-line boundaries. Worth a look by a reviewer, but I could not read its full text here.
#11 [high] Claims vs evidence: verified, claimed-only, and contradicted (eviction is not unchanged)
CLAIMED by #582 (author), with what backs each:
- "Helios emits no checkpoint cuts when snapshot capacity is zero." Verified by reading the code: early return at checkpoints.rs:460-462 before the Anchor cut is pushed; also asserted by the new test
zero_snapshot_capacity_produces_no_cuts_and_never_splits_prefill. Pre-existing test boundary_tests.rs:193 (snapshot_capacity_does_not_disable_prompt_fallback_anchor) already asserted the capture count is 0 at 0 snapshots, so this claim is narrower than it reads: what is new is that no cut/split is planned at all. - "At zero extra-work fraction, Helios keeps an interior anchor only when prepared-graph pricing predicts zero additional prefill work; otherwise it preserves a prompt-end replacement Anchor." Verified: the branch at checkpoints.rs:467-511 with
anchor_split_is_zero_cost. Covered by 3 new unit tests and 1 new lifecycle test. NOT covered for: upward EWMA drift (reviewer Blocker #1), Mixed-prefill alignment shift (Blocker #2), partial prefix hit below the raw anchor (Major #3), preemption/readmission (Major #4). All four are code paths the PR's own tests do not exercise; the reviewer supplied reproducers for each. - "Zero-budget serving avoids extra padded prefill launches" — no served measurement from the author (explicit limitation: "Live signed-core serving and isolated GPU latency measurements remain unverified for this candidate"). The only served evidence is the reviewer's: 242-token 2-turn chat prefill_steps 2->1; 12.2K-token multi-chunk 3->2 across 5 runs; 64K NIAH 71,429 tok at 59,453 tok/s. Nobody has published a TTFT or throughput delta in milliseconds/percent for this PR; the launch-count reduction is the whole of the served evidence.
- "preserving prefix reuse across single- and multi-chunk prompts" — verified at the unit level (the new tests assert the 1024-token prompt-end checkpoint is published as Anchor and then hit as
prefixon a repeat, with Restore + Speculative and a promote from Endpoint to Anchor). No served cache-hit measurement. - "Zero-cost aligned interior anchors remain eligible without adding a duplicate prompt-end anchor" — tested for a linear-cost aligned case (Part A of
zero_fraction_aligned_interior_anchor_and_mixed_prefill_preserve_exact_contracts, 512 in 1024). The reviewer's two blockers are exactly duplicate-Anchor scenarios under non-linear costs, i.e. the claim holds only for the priced-from-one-snapshot, no-drift case; with a staleknown_wholeor a Mixed-realigned chunk it fails. - "Optional endpoint eviction and nonzero-budget anchor selection remain unchanged" — the nonzero-fraction branch at checkpoints.rs:508-511 does reduce to the old
raw_anchor, andanchor_fallback_from = None. BUT eviction is not strictly unchanged: the inbound-restore role classification (scheduler.rs diff) andpromote_request_anchor's prompt-end fallback both can raise a checkpoint's role to Anchor, which changesRetentionRankordering. The PR body does not mention either path. - Test evidence claims: the author's filters are narrow (27 tests via
scheduler::checkpoints::tests, 4 viascheduler::checkpoint_lifecycle_tests::). The reviewer's broaderscheduler::run is 390 passed, 0 failed, which is consistent. Both agree the two disclosed base failures are pre-existing (model::tests::packed_combined_budget_keeps_width_one_batches_without_a_useful_packed_shape,server::runtime::phase_tests::worker_observes_prefill_decode_and_prerequisite_timings); the packed-batch failure is also disclosed as pre-existing in #540 and #567, so it is a known base failure, not a hidden one. - Formal/mutation evidence:
check.py --mutationsdetected the new "dropped multi-chunk zero-budget fallback" mutation. Verified by reading check.py:91-109: the mutation is a 13-line exact-string replacement against the} else if ... {text with} else if false {, and the harness requires the string to appear exactly once (original.count(needle) != 1raises). So it is strictly coupled to the current formatting of that block and will break on any reformat — reviewer Minor #6's point, confirmed. The PR adds no TLA+ model state foranchor_fallback_from. - Not claimed but true and unmeasured: the new per-commit
is_request_anchor_endpointpricing walk (see entry 5). No test asserts its cost and no measurement covers it; #459 exists specifically because this kind of per-commit pricing cost collapsed a production server.
#12 [high] Recent activity: main moved 5-7 commits in the same file the same day; PR rewrites a stated design invariant
Recent activity in the touched areas (last ~7 days, from the orientation packet and search_history at the PR head) and how #582 sits against it:
- helios/src last 8 commits are mostly other people's fixes on 2026-11-28 (the same day as #582): ba3afb13 (#589 CUDA 12 batched copies / ARM64 / Selene budgeting), 9375d679 (#502 gb206 platform), 19c098c8 (#506 DGX Spark CX7 preflight), 2bdc8472 (#573 closing tags), a54a8b8a (multimodal retention), 70e0f4a8 (#579 InitialState hash/TP/VLM/PatchMerge), 1364062c (#550 prefix checkpoints), 7cd83f32 (#569 retirement stamp). So #582 is based on 167f22c8, five to seven main commits behind, in the hottest file in the repo right now.
- The two immediately preceding changes to the exact function #582 modifies are #550 (interval_prefill_ns pricing rule) and #568 (optional Endpoint quote budget), both merged 2026-11-28. #582's new
anchor_split_is_zero_costcallsinterval_prefill_ns, so it is built on #550's rule; itsanchor_fallback_fromlogic sits right after #568'sprefill_catalog_costs/protected_budgetcode. It builds on both and reverses neither — but it does not update either doc paragraph that describes them beyond the two paragraphs it rewrites. - Reversal check: nothing in #582 reverses #538 (natural-fit discovery) or #550 (unmeasured pricing) — it only changes which candidate becomes the anchor. It does partially reverse an older documented rule: docs/cli-design.md, core-design.md and scheduling-runtime-design.md previously said anchor retention is "best effort and independent of duration estimates" / "the scheduler always considers the last eligible message endpoint as a best-effort conversation anchor, even when timing estimates are unavailable or the fraction is zero". #582 rewrites exactly those sentences. So the PR changes a stated design invariant, which is why the doc edits matter for review even though they are small.
- Nothing found that conflicts semantically with #540 (same author's other open scheduler PR, refresh/cost credit): #540 touches cost.rs/refresh.rs/policy_tests.rs and excludes readiness wait from refresh charging; the two touch different files except policy_tests.rs-adjacent test modules.
#14 [high] Research summary
I gathered the case file for PR #582 ("helios: avoid splitting prefill on zero-budget checkpoint anchors") across all eight angles, with 13 scratchpad entries carrying file:line, PR/issue numbers and links.
What I established beyond the description: the diff is ~72% tests, and its production effect reaches further than the PR body says — the inbound-restore role classification (scheduler.rs) and promote_request_anchor's new prompt-end fallback both raise a checkpoint's RetentionRole to Anchor, which changes retention/eviction ordering, so the "optional endpoint eviction … unchanged" claim does not hold; there is also a new, unmemoised O(prompt) pricing walk per lane per commit via is_request_anchor_endpoint, the same class of per-commit CPU cost #459 was written to remove. Three doc files are edited (undescribed), and they are where the PR rewrites a stated design invariant ("anchor retention is best effort and independent of duration estimates"); the follow-on sentences the reviewer calls stale are confirmed unchanged from main.
Why/related work: no linked issue exists for this problem; the motivating configuration is the --scheduler-checkpoint-extra-work-fraction 0 workaround yatesdr documented in #335, and the cost of an extra split launch is measured in closed #69. The function changed has three PRs land on it in one day (#568, #550, #582) and the author's own #538 created the #550 pricing regression that #582's pricing now depends on.
Community/process: a single CHANGES_REQUESTED review from priority contributor voipmonitor with two duplicate-Anchor blockers (upward EWMA drift, Mixed-prefill realignment) plus three majors (partial-prefix-hit mispricing, clear_reservations wiping the latched decision, wasted per-step pricing causing spurious work_budget skips); no maintainer engagement; no CI on the head; branch 5–7 commits behind a very hot file. The only served evidence in the thread is the reviewer's (prefill_steps 2→1 and 3→2 on 4× SM120); the author's evidence is CPU + TLA+ only, and the author explicitly does not claim live GPU results.
#15 [high] Related work: open issue #534 names the exact anchor<=start branch this PR rewrites
Open issue #534 ("Checkpoint captures deadlock on an unmeasured snapshot cost: host prefix cache never receives anything", semireg, open since 2026-11-26) touches the exact branch PR #582 rewrites. In mark-yong's 2026-11-28 reply, pure main has two transient, self-healing unknown_cost cases, the first of which is "a resumed prompt hitting anchor <= start at checkpoints.rs:416". That is precisely the else if arm #582 adds at checkpoints.rs:489-507 (raw_anchor <= start after prefill has advanced past the interior boundary) — the arm the reviewer's Blocker #1 and Blocker #2 both attack, and the one guarded by the new 13-line string mutation in check.py.
Connections to record:
- #534's own proposal (a terminal capture probing an unmeasured Snapshot cost at most once per TTL, only when
checkpoint_extra_work_fraction > 0) is by construction disabled at fraction 0, and #582's whole surface is fraction 0 — so #582 neither helps nor hurts #534's scenario, but it rewrites the same anchor/start comparison #534's comment names as a residual bug site. - #534 also notes "A
checkpoint_extra_work_fractionof 0 still disables all optional copies" and cites the pre-existing testzero_fraction_never_reserves_or_charges_extra_copy_work(checkpoints.rs:1690-1714), i.e. the zero-fraction contract #582 extends was already documented there. - mark-yong says #534 belongs on the SM120 TP3 fork and "can probably be closed here"; nobody has replied since. So #534 is not a competing fix to #582, but it is the only open issue that names the
anchor <= startcode path.
#17 [high] Amendment (2026-11-29): PR #582 rewritten to 69bf2cf2 — all 6 review findings addressed, author now has A/B served evidence, but formal evidence uses the pre-#595 harness
PR #582 is now head 69bf2cf24f7092ae9fa287ae2fc84be06b67bf00 (69bf2cf), 2026-11-29 15:20, +1854/-19 across the same 7 files (was +931/-16). Labels now present: area:scheduling, performance, triage:review (was unlabelled). Description rewritten to enumerate the three doc files and the latching/promotion/restore changes.
A. Reviewer findings are addressed in code (voipmonitor's 2026-11-28 CHANGES_REQUESTED review was on a3c64835):
- Stale-known_whole blocker:
anchor_split_is_zero_costnow prices whole/before/after from the SAME catalog slice, noknown_wholeparameter — checkpoints.rs:363-385. - Latch instead of backward reconstruction:
CheckpointAccounting::zero_budget_anchor: Option<(usize,usize)>at checkpoints.rs:28, set at :526 and :534, reused at :529-535 (selection) and :711-717 (plan_checkpoints anchor recovery).clear_reservations()(checkpoints.rs:48-51) now clears onlycuts/reserved_ns, so the latch survives preemption/readmission (scheduler.rs:1726). is_request_anchor_endpointrewritten: snapshots==0 checked first (checkpoints.rs:388-390), latched decision consulted first (:398-402), otherwise prices frombaseline_start(:403-439), not hardcoded 0.- Zero-fraction cost: early return immediately after pushing the Anchor cut (checkpoints.rs:549-551), so optional candidates are never priced at fraction 0;
allocate_terminal_captureshort-circuits on snapshots==0 (:957-959); the snapshots==0 return now sits beforeprefill_catalog_costs(:482-484). - check.py mutation is now a single-line substitution (
zero_budget_anchor = Some((raw_anchor, chosen))->None), check.py:325-330, replacing the brittle 13-line literal. - Stale doc follow-ons fixed: core-design.md:1452-1455 ("...without excluding the selected anchor; when the fraction is zero, unknown prefill costs fall back..."), scheduling-runtime-design.md:570-573, cli-design.md:703-708 (zero capacity disables cuts). New regression tests: checkpoints.rs:2909 (upward+downward EWMA drift and Mixed(256) realignment, asserts checkpoint_anchor_captures == 1 and no 1024 publish), :3104 (partial prefix hit 88/600/1024 across selection, promote and inbound restore, plus preemption/readmission subcases (e1) 3277-3346 and (e2) 3348-3447), :3451 (STRIDE_RUNS<=4 and skip counters 0 at fraction 0), lifecycle :414. So blockers #1/#2 and majors #3/#4/#5 all appear closed at head; only a fresh human/Autobot review is outstanding.
B. New served evidence from the author (this is the substantive change to the earlier "CPU-only evidence" finding):
2026-11-29 15:20 comment + PR body: exact-SHA A/B, release binaries from git archive (sha256 72c61a47... base ba3afb13 vs bfd1a5a7... head 69bf2cf2), 4x RTX PRO 6000 Blackwell SM120, TP4, signed DeepSeek-V4.1-Flash (gb202-tp4-202611281642), --scheduler-checkpoint-extra-work-fraction 0:
- short_2turn:
flare_graph_launches_total{kind="prefill"}8 -> 4 (-50%); TTFT p50 -18.9% to -19.4% (82.2->66.2 ms, 79.7->64.6, 80.7->65.4, 80.2->64.7) across balanced/throughput/--prefix-cache-memory 0. - long_12k_2turn 6 -> 4; long_20k_2turn 5 -> 4.
- mixed_load (4 decodes + 2 staggered ~30K cold prefills): 16 -> 10 (-37.5%), prefill TTFT p50 -15.1% to -23.8%, wall -4.4% to -5.7%;
flare_message_checkpoints_total== 0; exit=0. - Stated limits: temperature=0 clamps to core defaults so no greedy string equality; SM103/SM121 not re-benchmarked; base is ba3afb13, not current main. This closes the charter "real evidence / benchmarks over main on a served workload" gap for the fraction-0 mode only; the default 0.05 path is still unchanged and unmeasured (policy default policy.rs:39).
C. NEW BLOCKING-ISH PROCESS FINDING — the formal evidence was produced on the harness that merged PR #595 replaced:
- PR head is rebased on ba3afb13 (2026-11-28); lukealonso's #595 (commit 1a5d4d8c, merged 2026-11-29 04:07) touched exactly this harness: check.py +94/-12, checkpoint_lifecycle_tests.rs +56/-13, CheckpointReservation.tla +71/-36.
- At PR head, verification/helios-lifecycle/check.py:62-80 still generates
ObservedInit == state = Initial,UNCHANGED state,Corresponds == AllowedEdge(observed), and builds Observed.cfg by splitting<module>.cfgon SPECIFICATION keeping onlyINVARIANT Corresponds— i.e. the invariant blindspot #595 fixed. Main is now check.py:60-90 withObservedState/ObservedSafe and full cfg invariants. - At PR head,
Observation::project(checkpoint_lifecycle_tests.rs:30-31) still projects only anchor_guard/armed/copying; main (1a5d4d8c) addsrequest.terminal_snapshotandcache.pending_retirement(). - The PR changes no
.tlafile and never mentionszero_budget_anchorin verification/ (search: only the check.py mutation string); it also does not carry #595's retain_snapshot/cache_memory fix (PR-head cache_memory.rs:442fn retain_snapshot(&mut self)vs main :446 with rank/budget args). Consequence: the author's stated "394 passed / 12 TLA+ + 21 Rust mutations / 59 CheckpointReservation.tla transitions covering multi-chunk fallback, upward EWMA drift and Mixed alignment shift" is validated by the weaker Observed.tla that never checks CheckpointReservation.cfg's TypeOK / OutstandingUseRetainsRow / PublicationWaitsForCopy / OneGuardAndCapturePerRequest (CheckpointReservation.cfg:5-12) on the before/after states. The claim that those transitions "match the lifecycle model" is therefore weaker than it reads, and the evidence must be re-run after a rebase onto main. Merge-tree "conflict-free against 44f59df5" is textual only: main is now f7256584, with #595 plus ~7 further commits, so a rebase will change both the projection width contents and the observed-edge checks used by these very tests.
D. What changed in my earlier assessment (supersede, don't repeat):
- "No author served measurement / no TTFT delta anywhere" -> false now (numbers in B).
- "PR description omits the doc files and the restore/promotion/eviction-ranking side effects" -> description now declares docs, latching across clear_reservations/Mixed/EWMA, prompt-end promotion and single-anchor resolution; the restore role-tagging line (scheduler.rs:1794) and the eviction-ranking consequence are still not spelled out as such.
- "check.py mutation brittle (13-line literal)" -> fixed to one line.
- "ancillary O(N) pricing waste at fraction 0" -> fixed (:549-551).
- "promote_request_anchor runs for every lane on every commit" -> still true (scheduler.rs:2411) and now gated by a new early return (checkpoints.rs:793-797);
request_anchor_endpointis still O(prompt) and now also does up to 3 cache lookups (ready_by_prefix, twocheckpoint(...).parent()calls, checkpoints.rs:415-428) per lane per commit, still outsidecheckpoint_planning_scope(only policy.rs:1208 and :1453 open one). This remains an unmeasured per-commit CPU cost of the same class #459 removed; it is not covered by any of the new tests or theSTRIDE_RUNS<=4assertion (that test only exercisescheckpoint_selection).
E. Review state: voipmonitor's CHANGES_REQUESTED still formally stands (no re-review after 15:20); Autobot's 2026-11-29 00:39 "Changes Requested" (2 blockers, 4 should-fix, 3 nits) was on the old head a3c64835, and its auto re-review (90 min after push, ~16:50) had not posted at last read. Still no maintainer (lukealonso/yatesdr/iein/original-el8) statement; #568's and #550's authors are the adjacent owners. Still no linked issue.
#19 [high] Research summary
The event was a full rewrite of PR #582 (head a3c64835 → 69bf2cf2, +1854/−19, description and labels rewritten, author A/B evidence added), so the report needed substantive amendments rather than a status note. I verified the new head against the code and recorded the amendments in scratchpad entries #17 and #18.
Amendments: (a) all six of voipmonitor's findings are addressed in code — same-catalog pricing (checkpoints.rs:363-385), a latched zero_budget_anchor that survives clear_reservations() (:28, :48-51, :526/:529/:711), is_request_anchor_endpoint checking snapshots == 0 first and pricing from baseline_start (:388-439), an early return after the Anchor cut at fraction 0 (:549-551) plus terminal-capture short-circuit (:957-959), a one-line check.py mutation (:325-330), and fixed stale doc sentences — with new regression tests for EWMA drift, Mixed realignment, partial prefix hits and preemption/readmission (checkpoints.rs:2909, :3104, :3451, checkpoint_lifecycle_tests.rs:414). (b) The author now supplies exact-SHA served evidence: 8→4 prefill launches and −18.9…−19.4% TTFT p50 on short 2-turn, 16→10 launches and −15.1…−23.8% prefill TTFT p50 on concurrent mixed load, on 4× RTX PRO 6000 SM120 TP4 at fraction 0, which satisfies the charter's evidence bar for that mode only (default 0.05 unchanged). (c) A new finding: the re-run formal evidence is generated by the pre-#595 harness — at this head check.py:62-80 still emits UNCHANGED state and drops CheckpointReservation.cfg's invariants, and Observation::project still omits terminal_snapshot/pending_retirement — so "the transitions match the lifecycle model" and "conflict-free with main" are weaker claims than they read; the evidence must be re-run after rebasing onto f7256584. (d) Residual nits: readmission exactly onto the raw anchor discards the latch, request_anchor_endpoint still does per-lane-per-commit O(prompt) work with up to three cache probes outside the planning scope, and no TLA+ state models the latch.
Superseded from the previous report: "no served measurement", "docs undescribed", "brittle mutation", "O(N) pricing waste at fraction 0", and "blockers open". Still standing: reach limited to fraction-0/zero-capacity deployments, the undeclared restore role-tagging and Anchor-promotion eviction effects, no linked issue, no maintainer engagement, and a formal harness that lags main.
#20 [high] File map at PR #582 head 69bf2cf2 (consolidated, cite-ready)
PR #582 head 69bf2cf2 (base ba3afb13), +1854/−19, 7 files. All line numbers below are at the head; base report is entry #16, amendments are #17 (main) and #18 (residual gaps).
helios/src/scheduler/checkpoints.rs (+1395/−4) — production logic:
- :28
zero_budget_anchor: Option<(usize, usize)>onCheckpointAccounting; :34-41for_epoch; :48-51clear_reservations(clears cuts/reserved_ns only, latch survives). - :86-88
allowance(work, fraction). - :107-125
LiveRequest::checkpoint_anchor()+checkpoint_endpoint_eligible(raw anchor definition unchanged by this PR). - :128-131
checkpoint_planning_scope(the only memo scope: opened at policy.rs:1208 and :1453). - :339-361
checkpoint_selection/_cached; :363-385anchor_split_is_zero_cost(whole/before/after from one catalog slice). - :387-458
request_anchor_endpoint; :460-463is_request_anchor_endpoint. - :465-551
checkpoint_selection_uncached: :482-484 snapshots==0 early return (before catalog pricing); :487-505 baseline interval +initial_prefill_nslatch; :506-540 the zero-fraction branch (latch set :526/:534, reused :529-535); :541-548 Anchor cut; :549-551 early return when fraction == 0.0. - :561-650 optional-candidate pricing loop (the #459 stride-cached walk; now unreachable at fraction 0).
- :694-773
plan_checkpoints(anchor recovery from cut, else latch, :703-720). - :788-811
promote_request_anchor(new early returns :793-797; prompt-end promotion). - :813-889
commit_checkpoint_plans; :891-910checkpoint_copy_allowed; :912-950credit_checkpoint_decode. - :952-1001
allocate_terminal_capture(snapshots==0 short-circuit :957-959). - Tests: :2364 zero snapshots; :2417 zero-fraction fallback (short 67/63, long 124,610/124,606, aligned 114,688); :2502 balanced C16 16-prompt batch; :2614 multi-chunk fallback + Restore/Speculative + prompt-end promotion; :2778 aligned anchor / nonzero 0.05 contrast; :2909 EWMA up+down and Mixed(256) realignment; :3104 partial prefix hit + inbound restore + preemption (e1 :3277, e2 :3348); :3451 no optional pricing / no work_budget skips (STRIDE_RUNS<=4); helper
complete_test_step:1977-2058;measure:1031,linear_costs:1047.
helios/src/scheduler.rs (+11/−3): :1792-1808 inbound restore role now via is_request_anchor_endpoint (:1794) instead of checkpoint_anchor() equality; :1726 readmission path calls clear_reservations(); :2411 promote_request_anchor per lane per commit; :2891 allocate_terminal_capture call site.
helios/src/scheduler/checkpoint_lifecycle_tests.rs (+417): :16-80 Observation::project (15-tuple, no terminal/pending-retirement projection at head — added by #595 on main); :127 existing model test; :277 zero_budget_multi_chunk_fallback_reservations_match_lifecycle_model; :414 zero_budget_interior_anchor_drift_and_mixed_shift_match_lifecycle_model.
verification/helios-lifecycle/check.py (+6): :18-31 CHECKS table (CheckpointReservation width 15, test prefix scheduler::checkpoint_lifecycle_tests::); :52-81 check_observations — at head still ObservedInit == state = Initial / UNCHANGED state / cfg split keeping only INVARIANT Corresponds (main post-#595 is :60-90 with ObservedState/ObservedSafe); :325-330 the one-line zero-budget mutation. No .tla file touched by the PR.
Docs: docs/cli-design.md:700-713 (fraction-0 rule + zero-capacity disables cuts); docs/core-design.md:1436-1459; docs/scheduling-runtime-design.md:553-575. Also confirm from main: core-design.md:1452-1455 and scheduling-runtime-design.md:570-573 carry the new unknown-cost fallback sentence (the stale follow-ons flagged by the reviewer are now fixed), and cli-design.md:703-708 still states the 0.05 default.
Config/policy: helios/src/scheduler/policy.rs:39 default checkpoint_extra_work_fraction: 0.05, validated :208-210; limits.snapshots is the zero-capacity switch.
Verification/PR references: #595 (1a5d4d8c, merged 2026-11-29 04:07) is the harness change this head lacks; main tip at last read f7256584; textual merge-tree claim was against 44f59df5.
#10 [medium] Community: one review, no maintainer engagement, no CI; same-day append collisions in checkpoints.rs
Community/reaction and process detail to keep:
- Engagement: exactly one review (voipmonitor, 2026-11-28 22:13, CHANGES_REQUESTED). No other comments, no reactions, no maintainer (lukealonso / yatesdr / iein / original-el8) engagement. The PR was opened and reviewed within ~90 minutes of each other; it has not yet had a follow-up push (single commit a3c64835 is the head).
- The review is unusually substantive and includes served-workload measurements that the author did not provide (4x SM120 DeepSeek-V4.1-Flash TP4, prefill_steps 2->1 / 3->2, 64K NIAH throughput). It confirms the benefit direction while finding two correctness blockers; its verdict wording is "the motivation is solid, TLA+ conformance checks pass, and live 4× SM120 serving confirms the intended reduction in prefill splits".
- Its blocker reproductions are concrete enough to be turned into tests verbatim (prompt 1024 / boundaries [512] / catalog [512] at 512_000 ns with 515_000 ns jitter; catalog [128,512] with mixed [(2,1,256)] at 1024/768).
- Process: single commit, branch 2 days behind main; no CI checks reported on the head commit ("CI on the head commit: no checks"), which several other Helios PRs also report (e.g. #550 "No CI checks have run on this PR"). The project documents the evidence hierarchy in docs/design-review.md and the lifecycle check in verification/helios-lifecycle/README.md; the PR ran both the CPU suites and check.py --mutations, so the CPU/formal layers are covered while the "live serving" layer was left to the reviewer.
- Repo-side consideration for whoever merges: checkpoint_lifecycle_tests.rs was last touched only by #568; check.py is also touched by open #554 (DRAFT, ateska) — low but non-zero conflict surface. checkpoints.rs had three PRs appended-tests-on-top collisions in one day (#568, #550, #582), and #550's author explicitly rebased to resolve exactly that.
#13 [medium] Details: test-heavy diff, duplicate helper, fork link, WSL2-only, unlabelled, stale doc sentences confirmed
Small details worth keeping for the report:
- PR head commit message = "helios: avoid splitting prefill on zero-budget checkpoint anchors" (a3c64835, FujitsuPolycom, 2026-11-28). Base 167f22c8.
- The description's candidate commit link points at a personal fork: https://github.com/FujitsuPolycom/flare-local-inference/commit/a3c648351c9c364099c57479eba858a7fd33998a . The same commit id is the PR head in NVIDIA/hyperflare-inference, so the fork reference is redundant rather than misleading. The base it names,
main167f22c8, is 5-7 commits behind current main. - The description says verification was done "in WSL2" — no Linux-native or aarch64 run, unlike #550 which ran aarch64. The reviewer used 4x RTX PRO 6000 SM120 PCIe.
- New test helper
complete_test_step(checkpoints.rs, added in this PR) duplicatesboundary_tests.rs's existingrun_step-style helper (boundary_tests.rs:100-145) — two completion helpers now exist in the same module tree. Not a defect, but it is the reason the EWMA-drift scenario was not exercised: the helper injectsdur_nsstraight intogpu_ns[0]and the tests pass1_000where a real 512-token prefill is512_000, which drives the EWMA down and letssaturating_subclamp the split cost to 0. - The PR adds ~530 lines of tests to checkpoints.rs and ~136 to checkpoint_lifecycle_tests.rs, i.e. roughly 72% of the +931 is tests. The production change is ~50 lines of non-test code in checkpoints.rs plus ~11 in scheduler.rs.
- Reviewer lettering: findings 1-2 are Blockers, 3-5 Major, 6 Minor (with sub-items). They also ask for the
docs/core-design.md:1448-1449anddocs/scheduling-runtime-design.md:567-569follow-on sentences to be updated — confirmed still stale in the PR head trees (they are unchanged from main). - The PR title says "zero-budget checkpoint anchors" but the change also covers "zero snapshot capacity" (which is a separate, capacity-based switch); docs and description call both out, title does not.
- No labels on the PR (packet), whereas #69 carried
area:scheduling,performance,triage:design-review. The absence oftriage:design-reviewis notable because #582 changes a checkpoint-selection policy that #69's triage comment called a design decision; the only reviewer is a priority contributor on the same subsystem.
#18 [medium] Amendment: residual edge cases at 69bf2cf2 not covered by the new tests
Residual, post-rewrite (head 69bf2cf2), all low-to-medium severity — worth a nit list, not a blocker:
-
Readmission exactly onto the raw anchor.
checkpoint_selection_uncached(checkpoints.rs:528-535) reuses the latch only whenraw_anchor > startis false ANDrequest.prefix_tokens != raw_anchor as u64. If a request is preempted and readmitted with a prefix that ends exactly at the interior message boundary, it takes the finalelseand re-latchesSome((raw_anchor, raw_anchor)), discarding a previously chosen prompt-end fallback. Arguably correct (the anchor is already materialised at that endpoint, so no split is needed), but it is untested: the new preemption tests readmit at 320 vs raw_anchor 200 (checkpoints.rs:3277-3346) and at 832 vs 768 (:3348-3447), never prefix == raw_anchor. Note only; no reproduction attempted. -
request_anchor_endpoint(checkpoints.rs:403-439) has a nested fallback: whenbaseline_intervalstart equalsprompt_tokensit substitutesadmission_reused_tokens - inbound_reused_tokens, then doesready_by_prefixand twocache.checkpoint(...).parent()probes before pricing. Each of those is per-lane-per-commit work at scheduler.rs:2411 and is outsidecheckpoint_planning_scope(opened only at policy.rs:1208 and :1453). No test asserts call counts for this path, and no served measurement isolates its cost. -
No formal state for the latch.
zero_budget_anchoroccurs in verification/ only as the check.py mutation string (check.py:325-330);CheckpointReservation.tlastill models only rows/guards/captures, and the projections are the 15-tuple at checkpoint_lifecycle_tests.rs:16-80. The new tests assert outcomes (capture counts, published keys), not model correspondence of the latch itself. -
Mutations at head vs main. Head check.py has one checkpoints.rs mutation (multi-chunk fallback) at :325-330; main additionally has a
cache_memory.rsretain_snapshotmutation at :342-345 and the peer-exit mutations at :311-330 from #595. Combined with (3) and the Observed.tla difference, "all 21 Rust guard mutations passed" describes the smaller pre-#595 set. -
Where the rewrite is airtight: the zero-snapshot path is now before any catalog walk and both
is_request_anchor_endpointandallocate_terminal_captureshort-circuit it (checkpoints.rs:482-484, :388-390, :957-959), asserted at :2364-2414 including ENTRY_LOOKUPS == 0 and prefill_launches == 1; and the fraction-0 early return at :549-551 is asserted by the STRIDE_RUNS<=4 / skip-counter test at :3451-3501.