#1 [high] Change: what PR #660 does to checkpoints.rs
PR #660 (open, draft) "helios/scheduler: budget interior conversation-anchor splits against checkpoint_extra_work_fraction", branch fix/budgeted-interior-anchor-split -> main, head 22cac916834f, opened 2026-12-01 19:02, labels area:scheduling, bug, performance. 11 files, +740/-127.
Core change in helios/src/scheduler/checkpoints.rs (prod hunks ~+60/-51; the rest of the file's +626/-78 is inline mod tests additions):
- Renamed
anchor_split_is_zero_cost() -> booltoanchor_split_ns() -> Option<(u64,u64)>(returns whole interval cost + split overhead), checkpoints.rs diff hunk @@ -427,28 +427,18. Old version returned false on any unknown timing; new one returns Some((whole, split)) or None. request_anchor_endpoint()(hunk @@ -456): removed theself.policy.checkpoint_extra_work_fraction != 0.0 ||short-circuit that unconditionally returned raw_anchor for nonzero fraction; now always evaluates the budget.checkpoint_selection_uncached/plan_checkpoints (hunk @@ -510): keep_raw = match anchor_split_ns(...) { Some((whole, split_ns)) => split_ns <= allowance(whole, fraction), None => fraction > 0.0 }. So at fraction 0 behavior stays "exact zero split only"; at nonzero fraction interior anchor must fit the allowance.- Main pricing block (hunk @@ -570):
zero_budget_anchorfield on CheckpointAccounting renamedbudgeted_anchor(struct at checkpoints.rs:~28 in diff,- zero_budget_anchor: Option<(usize, usize, usize)>,/+ budgeted_anchor:); the interior-anchor decision now runs for ALL fractions (old code gated onfraction == 0.0); budget_base = accounting.initial_prefill_ns.unwrap_or(whole); available = allowance(budget_base, fraction); keep raw_anchor if split_ns == 0 || extra_spent_ns + split_ns <= available, else prompt_tokens. Unknown timings: None + fraction>0.0 -> keep raw_anchor with split_ns 0; None + fraction==0.0 -> prompt_tokens. - Charging: retained interior anchor now pushes Cut{endpoint: anchor, role: Anchor, split_ns: anchor_split_ns, copy_ns: 0} and adds anchor_split_ns to
accounting.reserved_ns(previously split_ns: 0, uncharged). Anchor snapshot copy stays uncharged. - New early-return guard in plan_checkpoints: if any cut role != Anchor, OR any Anchor cut with endpoint > start and (anchor_guard.is_some() || extra_spent_ns > 0 || cut.split_ns > 0) -> return without re-pricing. This is the mechanism that "preserves unreached charged Anchor cuts across multi-chunk steps" and across revoke_unused_anchor_guards().
- Optional-cut candidate filter changed from
end < anchortoend < raw_anchor, so earlier Message cuts survive when the anchor falls back to prompt_tokens (checkpoints.rs hunk @@ -626,13 +636,13). promote_request_anchorlatch condition lost itsfraction == 0.0guard, so budgeted_anchor is latched under all fractions (hunk @@ -854). Docs updated in docs/cli-design.md, docs/core-design.md, docs/scheduling-runtime-design.md to describe the new rule (interior anchor charged against the same allowance, anchor snapshot copy uncharged, unknown-cost rules). verification/helios-lifecycle/check.py +2/-2 (mutation target string updated to match renamed/reworded code). Public surface: no flags, no ABI, no wire change;CheckpointAccountingfield rename is internal (pub struct field though — need to check visibility).
#2 [high] Claims: PR #660 description appears in two materially different versions
The PR body reachable through read_item(660) and the body given in the orientation packet are materially DIFFERENT, including different A/B bases and different result tables. Both are dated 2026-12-01 and the item is marked "updated 19:03" (one minute after open at 19:02), so one is a stale snapshot of a body edit.
Version A (orientation packet, calls itself the newer one):
- "Zero-re-export
flare runA/B (balanced, default 0.05, DeepSeek-V4.1-Flash TP4 core, 132,999 KV pages, 0 errors) on exact candidate 22cac916834f vs 5d53040e". - mixed-c32: Out 1,072.8 -> 1,327.0 tok/s (+23.7%); Batch 9.13 -> 17.91 (+96.2%); SLO 9.1% -> 80.3% (8.8x); TTFT p50 4,577 -> 1,920 ms (-58.0%).
- 4x6-turn (22.0K): TTFT p50 297.4 -> 178.8 ms (-39.9%); Wall 2.92 -> 2.52 s; E2E 394.8 -> 459.0 (+16.3%); Prefills 48.0 -> 30.5.
- Burst-8: Makespan 2.72 -> 2.19 s; Agg dec 563.9 -> 701.4; Burst TTFT p50 993.5 -> 556.7 ms.
- Controls: C=1 short TTFT 57.9 -> 44.9 ms; 32K TTFT 540.7 -> 543.8 ms; C=16 dec 1,128.5 -> 1,215.3.
- Pre-#656 (571a4471) 4x DGX Spark GB10 C=12x4: TTFT p50 3,281.7 -> 1,923.8 (-41.4%), Out 91.0 -> 98.0, Prefills 96 -> 60.
- Trade-offs section admits: mixed-c32 per-user p50 93.9 -> 71.0 tok/s; >250 ms gaps 215 -> 434; -stripping clients on single-chunk 4.5K-13.7K prompts skip Turn-1->2 reuse.
- Says "helios/src/scheduler/checkpoints.rs (+60/-51, +9 net prod LOC)" and "Docs & tests (+680/-76; 11 files, +740/-127)".
- Limits: "4x RTX PRO 6000 A/B ran on 22cac916834f vs 5d53040e; 4x DGX Spark GB10 ran on pre-#656 571a4471."
Version B (read_item 660, the local copy):
- "Zero-re-export flare run A/B (balanced, default 0.05, DeepSeek-V4.1-Flash cores, 0 errors) atop 571a4471".
- 4x6-turn (22.7K): TTFT p50 287.9 -> 110.2 ms (-61.7%); Wall 2.83 -> 2.33 s; E2E 376.5 -> 460.0; Prefills 48 -> 25.
- 13.7K->24.6K + 4 dec: Turn-1 TTFT 606.2 -> 398.9 ms; Prefills 18 -> 11.5.
- 4x DGX Spark GB10 C=12x4: same numbers as A's pre-#656 line.
- Trade-off: -stripping clients on single-chunk 4.5K-13.7K prompts skip Turn-1->2 reuse; fraction 0.15 retains them.
- Limits: "Hardware A/B ran atop 571a4471 pre-#656 (0 checkpoints.rs edits in 571a4471..5d53040e), not re-run on 22cac916834f".
- Evidence section identical in both: 0 new release warnings; helios server 1,274, runtime-core,server 1,785, flare 238, flare-cli 239, heliopause check; pytest 832, ruff 0.12.8, check.py 10/10 TLC, 8/8 Observed / 594,065 edges, 12/12 aux; gated templates & kani unrun.
Why it matters for a reader: in version B the headline A/B was run on a base four merged PRs old and explicitly "not re-run on 22cac916834f"; version A claims an exact-candidate A/B. The mixed-c32 and Burst-8 tables exist only in version A; the 13.7K->24.6K table only in version B. Either way the numbers to check differ. NOTE: both bodies say "kani unrun" and "gated templates unrun", so charter line 42 (supported matrix) coverage is partial by the author's own admission.
#3 [high] Related work: #582 is the direct predecessor (same author, same function)
PR #582 "helios: avoid splitting prefill on zero-budget checkpoint anchors" (FujitsuPolycom, opened 2026-11-28, merged 2026-11-29 20:58, +2264/-20, 7 files, labels area:scheduling, performance, triage:review). This is the PR that INTRODUCED anchor_split_is_zero_cost and zero_budget_anchor and the fraction == 0.0 gating that #660 now removes/generalizes. #660 is effectively "finish the job for nonzero fractions".
#582's own statement of scope (relevant to #660's "why"): "Before: Helios always kept the last eligible message boundary as the anchor regardless of ... zero-fraction prefill split cost". So the discontinuity exists because #582 only fixed the zero-fraction arm; nonzero fractions kept the old unconditional behaviour. That is exactly the bug #660 reports.
Review history on #582 (two rounds, extensive):
- voipmonitor CHANGES_REQUESTED 2026-11-28 22:13 on commit a3c64835: 2 blockers (duplicate RetentionRole::Anchor captures from upward EWMA drift at checkpoints.rs:364-388,466-505, and from Mixed prefill chunk realignment), 3 majors (is_request_anchor_endpoint hardcodes start=0; clear_reservations wipes anchor_fallback_from; O(N) wasted prefill pricing + spurious checkpoint_skip_work_budget at fraction 0.0), minors (snapshots==0 ordering, stale docs, brittle check.py mutation string).
- voipmonitor APPROVED 2026-11-29 17:14 on 69bf2cf2.
- lukealonso round-2 review (blockers: stale zero_budget_anchor after real preemption/readmission of a grown prompt at 1024->1124 with raw_anchor=200 and resident prefix 512 => spurious interior split; rebase onto #613/0c25e88f; should-fix: per-decode-step heap allocation + 3x interval_prefill_ns in promote_request_anchor; fragile parent_tokens reconstruction; minors).
- Author fixed in cc144c7c; latch became the 3-tuple (raw_anchor, prompt_tokens, chosen) that #660 renames from zero_budget_anchor to budgeted_anchor.
So: #660 reuses the exact latch and same-snapshot pricing machinery #582 was reviewed into, and its new multi-chunk/guard hunks (the
endpoint > start && (anchor_guard.is_some() || extra_spent_ns > 0 || cut.split_ns > 0)early-return) exist to keep those #582 invariants (single Anchor publication, no stale-endpoint split) true once split_ns is nonzero and charged. Reviewers of record in this subsystem: voipmonitor and lukealonso (repo owner). #660 currently has NO reviews and NO comments.
#4 [high] Change: code-level details, dual decision paths, metric effects
Verified in PR head source (helios/src/scheduler/checkpoints.rs):
- CheckpointAccounting is
pub structwith private fields;budgeted_anchor: Option<(usize,usize,usize)>(line 28) is private, so the renamezero_budget_anchor->budgeted_anchorbreaks no external API. PrefillCatalogCost/anchor_split_ns are private (fn, line 430). Consistent with description's "0 new flags/ABI". fn allowance(work: u64, fraction: f64) -> u64= floor(work*fraction) (line 92-94).- Single source of truth for the anchor decision lives twice:
request_anchor_endpoint(line 444-517, used for promotion/Selene restore, prices fromprice_startto prompt_tokens) andcheckpoint_selection_uncached(line 524-753, used for planning, prices fromprefill_cursor). The two duplicate the fraction/allowance rule but with DIFFERENT bases: request_anchor_endpoint comparessplit_ns <= allowance(whole, fraction)(line 509); the planner compares againstallowance(initial_prefill_ns.unwrap_or(whole), fraction)plus accumulatedextra_spent_ns(lines 589-592). So the promotion path ignores already-spent extra work and uses the priced interval rather than the latched initial prefill estimate. Potential inconsistency worth flagging to reviewers (not judging correctness). - Charging: retained interior anchor pushes Cut{role: Anchor, split_ns: anchor_split_ns, copy_ns: 0} and adds it to accounting.reserved_ns (lines 619-627). On commit,
commit_checkpoint_plansmoves cut.split_ns out of reserved_ns into extra_spent_ns and into stats.checkpoint_extra_work_ns, and (line 907)checkpoint_extra_work_ns += cut.split_nsregardless of role — so this change makes the anchor split now count in the existingcheckpoint_extra_work_nsmetric (previously anchor splits were invisible there). Existing for Message/Endpoint cuts (line 903-907). - Overwrite risk: the early-return guard clears cuts/reserved_ns (lines 547-548) and re-pushes the Anchor cut with a freshly computed anchor_split_ns every time selection re-runs from scratch. In the latched branch (raw_anchor <= start) the split is hardcoded 0 (lines 609, 613), so a re-selection after the anchor has been passed and its split spent does not re-charge — but the guard conditions (anchor_guard set, extra_spent_ns>0, or split_ns>0) are what prevent reaching that branch in practice. The new tests
anchor_only_multi_chunk_prefill_preserves_split_cost_and_budgetanddefault_fraction_anchor_guard_revocation_preserves_charged_anchor_splittarget exactly this. - Note the asymmetry:
extra_spent_ns > 0short-circuits the guard for ANY spending (including an unrelated Message copy), not just split spending. promote_request_anchor(line 857-886) now latches budgeted_anchor for all fractions, gated onconsumed_tokens >= prompt_tokens, preserving #582's O(1) fix; thefraction == 0.0condition beforeraw_anchor < prompt_tokenswas deleted by this PR (hunk @@ -854).- The optional-cut candidate filter changed to
end < raw_anchor(line 645) while the Endpoint candidate is only pushed whenprompt_tokens != anchor(line 648) — so when the anchor falls back to prompt_tokens, earlier Messages are still offered but the Endpoint is not, preventing a duplicate capture at the same endpoint. revoke_unused_anchor_guards(line 138-163) only takesanchor_guard; it does not touch cuts/split_ns, which is why the guard condition at line 540 mentions anchor_guard.
#5 [high] Change: existing tests re-tuned to non-default fractions (undeclared in body)
The production diff is small but the test churn is large and, notably, several EXISTING tests had to be changed in ways the PR description does not mention ("Updated ... unit tests" is all it says). Changes to existing tests (not new ones), from pr_diff:
- helios/src/scheduler/tests.rs
prefill_to_publication_boundary(helper used by many boundary tests): now registersprefill_graphs(&[64,128,256,512]), rewrites every Prefill graph duration to100_000 + token_capacityns, and setscheckpoint_extra_work_fraction: 1.0. Without fraction 1.0 the shared boundary helper no longer produces interior anchors, i.e. the default-fraction behaviour change is visible in the test fixtures. - helios/src/scheduler/boundary_tests.rs
scheduler_with_concurrency(widely used fixture): Prefill durations rewritten to100_000 + capacity, andcheckpoint_extra_work_fraction: 1.0. Two call sites additionally addprefill_graphs(&[64,128,256,512]). - helios/src/scheduler/checkpoint_lifecycle_tests.rs
checkpoint_reservations_match_lifecycle_model(the exhaustive TLA+edge(...)conformance test that drives CheckpointReservation.tla): sets fraction 1.0. - helios/src/scheduler/policy_tests.rs:
terminal_prefill_runs_at_checkpoint_boundary_cutsets 0.2;short_prefill_tail_caps_service_price_on_decode_transitionsets 1.0. - helios/src/scheduler/vision_window_tests.rs
partial_image_prefix_reuse_preserves_canonical_indices_and_only_counts_initial_reusesets 0.1. - helios/src/server/runtime/phase_tests.rs:
exact_system_and_prompt_checkpoints_publish_only_after_snapshot_completionwas rewritten to useprompt_len = limits.prefill_chunk_size + 3and boundary = chunk size instead of prompt 13 / boundary 10 (so the interior anchor lands on an aligned boundary and survives the budget);exercise_text_preemptionsets fraction 1.0. 7. checkpoints.rs existing assertions rewritten where the old expectations encoded the unconditional interior anchor: e.g.cuts == [256,512,640,768,896,1024]/reserved 115 became[256,512,768,896,1024]/reserved 134; the "Part B: nonzero fraction still keeps the unaligned interior boundary (200) as Anchor" case now asserts fallback to 1024 at 0.05 and retention at 0.15;[94,96]became[96]plus a new aligned-64 subcase. Interpretation (factual): the tests had baked in the behaviour this PR calls a bug, so they were re-tuned to non-default fractions (0.1/0.2/0.279/0.28/0.5/1.0) or aligned boundaries. That is a legitimate signal but also means the PR changes the meaning of widely shared test fixtures, and coverage of the default 0.05 path now comes mainly from the four new tests in checkpoints.rs (default_fraction_budgets..., default_fraction_anchor_guard_revocation..., default_fraction_c16_short_prompts..., anchor_only_multi_chunk..., zero_split_interior_anchor_retained_when_extra_spent_exceeds_available).
#6 [high] Related work: file map and overlapping/parallel PRs on checkpoints.rs
- Items touching helios/src/scheduler/checkpoints.rs (items_touching, open first then recent): #660 (open, this PR), #654 (open, logprobz — "Add opt-in first-output age pricing and returning-agent benchmark"), #655 (open, yatesdr — snapshot cost retention + cold discovery), #645 (merged, lukealonso — prefill scheduling/cost overhaul + two-frame pipelining), #582 (merged, FujitsuPolycom — zero-budget anchor split), #613 (merged, lukealonso), #550 (merged, iein), #568 (merged, lukealonso — Endpoint eviction), #426 (merged, original-el8), #479 (merged, voipmonitor), #459 (merged, yatesdr — price checkpoint candidates without walking every prefill chunk), #415, #357, #354, #285 (all merged, yatesdr/dbotwinick).
- #655 (yatesdr, open, updated 2026-12-01) ALSO edits helios/src/scheduler/checkpoints.rs (+217/-18 there; 7 files, +348/-63) and touches the same snapshot-cost gates:
checkpoint_selection_uncached,checkpoint_copy_allowed,allocate_terminal_capturenow useActionCosts::measured_durationinstead offresh_duration. In #660's head,checkpoint_selection_uncachedstill callsself.costs.fresh_duration(GraphKind::Snapshot, 1)(checkpoints.rs:634) andanchor_split_nsresults feed the same budget. So #655 and #660 are parallel edits to the same function and one will need a rebase. #655 is at "Ready To Merge" per its autobot review. Neither mentions the other. - #654 (logprobz, open): also touches checkpoints.rs (5 files shared per orientation packet) and is the "opt-in first-output age pricing" alternative that #663 explicitly says it avoids duplicating ("without introducing any new configuration knob (unlike opt-in pricing in PR #654)"). Stacked/competing family.
- #645 (merged 2026-11-30, lukealonso): overhauled prefill scheduling and cost modelling — the cost model #660's split pricing depends on (
interval_prefill_ns, catalog). #660's description says the A/B ran atop the pre-#656 base571a4471; #656 merged 2026-12-01. - Issue #292 (iein, closed 2026-11-18) "Requests that branch from a shared prefix re-prefill it at the default --scheduler-checkpoint-extra-work-fraction (0.05)": live 4x DGX Spark GB10, GLM-5.3 Flash, reported 11
work_budget+ 14unknown_costcheckpoint skips at 0.05, branch reuse lost; at 0.25 reuse of ~4,010 tokens returned and TTFT fell 1.46 s -> 0.22-0.32 s. Closed as "a deployment setting". This is the same knob and the same complaint family (#660 is the reverse direction: at 0.05 the anchor split itself now gets declined and its cost is not charged, freeing the allowance for earlier message cuts — see new test Case 2 where aligned Message(2048) survives when the 6,397 anchor falls back). Worth noting as evidence that default-fraction checkpoint behaviour has been a recurring user-visible complaint since mid-November. - Issue #335 (yatesdr, closed): recommends
--scheduler-checkpoint-extra-work-fraction 0as a workaround for a production degradation (DeepSeek V4.1 TP4) — i.e. operators are already told to change this knob. - Issue #534 (open, semireg) "Checkpoint captures deadlock on an unmeasured snapshot cost" — the counterpart problem (#655), not #660; but both concern whether captures happen at all.
#7 [high] Reach: default-behaviour change on a documented operator knob; metrics move; README stale
Reach: the knob --scheduler-checkpoint-extra-work-fraction / [server] scheduler_checkpoint_extra_work_fraction is a first-class, documented, user-facing control and is validated/thresholded in 4 crates:
- Default 0.05: helios/src/scheduler/policy.rs:40 (PolicyConfig::checkpoint_extra_work_fraction: 0.05) and assertion helios/src/server/config.rs:732. Validation: policy.rs:210-211 and flare/src/configuration.rs:81-83 require finite and in [0,1]; helios/src/server/config.rs:321-324.
- CLI flag mapping: flare-cli/src/cli.rs:700, :1350-1354, :1415; config pass-through flare/src/settings.rs:31,68-71,209; flare/src/controller.rs:2880-2881.
- Because #660 changes behaviour of the DEFAULT value (0.05) and every other fraction, it is a behaviour change for every deployment that does not set the flag — not just an opt-in refinement. No flag, config key, or default is added or changed (good for charter "no new knobs"), but the effective default behavior changes: interior conversation anchors that cost a padded prefill launch now fall back to the prompt end at 0.05.
- Observable metrics that shift:
checkpoint_extra_work_nanoseconds_total(helios/src/server/metrics.rs:852, sourced from RequestScheduler::stats().checkpoint_extra_work_ns, helios/src/scheduler.rs:142) now includes anchor split_ns for the first time (checkpoints.rs:903-907 adds cut.split_ns for every committed cut).flare_message_checkpoints_total/ prompt checkpoint counters andflare_checkpoint_skips_total{reason="work_budget"|"unknown_cost"}will also move (new anchor cut competes in the shared allowance, so optional Message cuts can be skipped). Operators' dashboards/log-based tests may see this; description does not mention metric movement. - Docs touched: docs/cli-design.md:696-710, docs/core-design.md:~1434-1460, docs/scheduling-runtime-design.md:614-638.
- Docs NOT touched: helios/README.md:372-380 still says "Checkpoint selection prioritizes the last eligible message boundary, using the prompt end when no message boundary is eligible" — with no mention that the interior anchor must fit the extra-work allowance. Per the charter's "Supported matrix & compatibility" and docs-quality expectations, this is an undocumented discrepancy (the same README paragraph does mention the allowance, but not that it now gates the anchor itself). #655 by yatesdr, in contrast, updated helios/README.md when it changed the same docs.
- Compatibility: existing signed/exported cores serve unchanged (no export change) — consistent with description; no Protobuf/ABI/flag edits in the diff (verified: diff only touches checkpoints.rs + tests + 3 docs + check.py).
- Rebase risk: #655 (open, Ready-To-Merge per its autobot review) rewrites the same
checkpoint_selection_uncachedsnapshot-cost gate andcheckpoint_copy_allowed/allocate_terminal_capturein the same file; whichever merges second needs a rebase. #654/#663 also touch checkpoints.rs-adjacent scheduler code.
#9 [high] Why: the padded interior-anchor tail has been a target since #69 (Oct), #426, #582
The complaint #660 fixes (an interior anchor split costs a padded prefill launch) is one the project has been chasing since at least late October:
- #69 "Absorb a short final message segment into the prefill chunk" (original-el8, opened 2026-10-24, closed 2026-11-26 for inactivity, +97/-33): measured on 4x GB10 Sparks at 8K prompts, a 3-message prompt with a short final message took 1,908 ms TTFT vs 1,725 ms for one message of equal length; the fix merged the short tail into the preceding chunk, dropping the intermediate checkpoint. Its autobot review said the
(capacity/16).clamp(64,512)token threshold "re-decides, in tokens, whatcheckpoint_extra_work_fractionalready prices in nanoseconds ... fold the threshold into the existing allowance instead of adding magic constants" — which is exactly what #660 now does (prices the split in ns against the allowance). So #660 is the surviving, general form of #69's idea. #69's related lists include #426 and #479 (TerminalPrefill). - #426 (merged, original-el8, "Rebase prefill service prices, fix checkpoint interval pricing, and guard deferred TerminalPrefill state") topics include "when a request completes a slow padded prefill tail (for example a 2-token prompt tail after an anchor...)" — earlier interval-pricing work on the same tail cost.
- #582 (merged 2026-11-29) fixed only the
fraction == 0.0arm of the same discontinuity and explicitly left nonzero fractions keeping the boundary unconditionally. - #663 (open, yatesdr) independently names the same residual cost: "204 uncached tokens cut at 202 into a main chunk, a boundary Snapshot, and a 2-token tail ... the prompt suffers a double stall". #663 says it is complementary to #660 (it fixes the waiting-age asymmetry, not the split itself).
- Issue #292 (closed) is the opposite-direction user report on the same knob (checkpoint skipped for lack of budget at 0.05, branch reuse lost) — see entry 6. The theoretical justification for bounding total checkpoint work by a fraction of productive work is documented in docs/core-design.md (extra captures use a request-local work allowance) and docs/scheduling-runtime-design.md:614-638; the change makes the anchor obey that existing rule instead of being exempt from it. That framing — the anchor was the one cut outside the budget — is the cleanest statement of "why".
#12 [high] Claims vs evidence: what the diff proves and what is only asserted
Claim-by-claim, separating what I verified from what is only asserted in the body: VERIFIED from the diff/source:
- File count and size: 11 files, +740/-127 (pr_files matches the body's claim). checkpoints.rs +626/-78, of which ~+60/-51 is production code and the rest is inline
mod tests— consistent with "+9 net prod LOC" only if you count the guard hunk as net; the honest figure is ~+9 net lines of logic but ~40 changed lines. Docs +41/-36 across 3 files; check.py +2/-2. - "0 new flags / ABI / unsafe": confirmed — no flag, config key, Protobuf, or
unsafein the diff; the renamed fieldbudgeted_anchoris private (checkpoints.rs:28). - "Budgeted retention" / "charging split_ns to Cut.split_ns and reserved_ns, copy_ns: 0": confirmed at checkpoints.rs:588-627.
- "Filters earlier Message cuts (end < raw_anchor)": confirmed (line 645). "Preserves unreached charged Anchor cuts across multi-chunk steps and revoke_unused_anchor_guards()": confirmed via the new guard at lines 533-546 and the two new tests.
- "Latches budgeted_anchor in promote_request_anchor": confirmed (lines 867-877).
- Docs updated as described in all three files: confirmed (docs/cli-design.md:696-710, docs/core-design.md:1434-1460, docs/scheduling-runtime-design.md:614-638).
- "Signed cores serve unchanged": consistent with no export/wire change, but not independently testable from here. NOT VERIFIED (author-reported only, no CI on the head commit, no review):
- All benchmark tables. Whichever body is current, one of the two A/Bs ran on a base four merges old (
571a4471) and the body itself says "not re-run" on the candidate. The two circulating bodies report different bases, different workloads, and different deltas (entry 2); the mixed-c32 / Burst-8 numbers exist only in one, the 13.7K->24.6K table only in the other. Neither reports run-to-run variance or repeats, so the deltas (e.g. "+23.7% Out", "-58% TTFT") cannot be assessed for noise, andmixed-c32's trade-offs (per-user p50 93.9 -> 71.0 tok/s, >250 ms gaps 215 -> 434) mean at least one workload regressed per-user. - Rust test counts (1,274 / 1,785 / 238 / 239), pytest 832, ruff, check.py 10/10 TLC, 8/8 observed/594,065 edges, 12/12 aux: author-reported. The check.py mutation target was updated in the diff, so at least that file is consistent with the new code.
- The premise itself ("Prefill(128) = 18 ms vs Prefill(512) = 29 ms ... splitting a 453-token prompt at 450 adds an 18 ms tail"): this is the design input for the new unit test
default_fraction_budgets_interior_anchor_splits_and_preserves_prefix_and_terminal_capture, which hard-codes 18/29/39/52/83/135/225 ms as MEASURED inputs (checkpoints.rs:4200-4218). So the test reproduces the arithmetical consequence of the premise, not the premise's measurement. - Unknown-timing arms: lines 599-600 implement "None + nonzero fraction -> keep raw_anchor" and "None -> prompt end". I did not find a new test in the diff that directly exercises the
None if fraction > 0.0arm (the older tests cover the zero-fraction unknown-cost fallback). - Pre-
#656GB10 numbers ("TTFT p50 3,281.7 -> 1,923.8 ms") appear in BOTH bodies unchanged, so that one result is stable across the edit, but it too is on the old base. Gaps against the repo's own standards (docs/design-review.md:247-251: disclosure does not excuse skipping runnable CPU checks):kaniand the gated template tests are declared unrun, and the scheduling simulator is not mentioned at all (though scripts/scheduling_sim has no checkpoint model, so it is arguably N/A — the argument yatesdr made explicitly in #655 and the author does not make here).
#14 [high] Open leads resolved: dual decision sites, metric movement, stale README, dismissed leads
Lead 1 (divergent duplicate decisions) resolved as a REVIEWER NOTE, not a claim of a bug. Two independent places decide the interior-vs-prompt-end anchor:
checkpoint_selection_uncached/plan_checkpoints(checkpoints.rs:524-753, 775-841) — the planning path that emits cuts; budget base =accounting.initial_prefill_ns.unwrap_or(whole), and it also subtracts already-spent work: keep raw_anchor iffsplit_ns == 0 || extra_spent_ns + split_ns <= allowance(budget_base, fraction)(lines 588-597).request_anchor_endpoint(checkpoints.rs:444-517) — the promotion/Selene-restore path; keeps raw_anchor iffsplit_ns <= allowance(whole, fraction)wherewholeis the interval it just priced fromprice_start, and it ignoresextra_spent_nsand the latched initial prefill (lines 500-516). Becauserequest_anchor_endpointreturns early on thebudgeted_anchorlatch (line 452-457) once planning has latched, the two usually agree; they can disagree when the latch is absent — e.g. a full-prompt GPU cache hit that goes Restore -> Decode and is latched bypromote_request_anchoronly afterconsumed_tokens >= prompt_tokens(line 867-870), or a request whose extra work has already been spent. This is the same class of divergence that produced two blockers in #582's review (duplicateRetentionRole::Anchorcaptures from a second, differently-priced decision site), so it is worth a reviewer's attention; I am not asserting a defect. Lead 2 (checkpoint_extra_work_nanoseconds_total):commit_checkpoint_plansaddscut.split_nsto this counter for EVERY committed cut (checkpoints.rs:903-907). Before this PR the Anchor cut's split_ns was hard-coded 0, so anchor splits were invisible; after it they are counted. Metric exposed ascheckpoint_extra_work_nanoseconds_total(helios/src/server/metrics.rs:852). Not mentioned in either body. Lead 3 (docs): helios/README.md:372-380 still describes anchor selection without the allowance gate — stale relative to the three design docs this PR edited. Leads judged not relevant: #534 and #600 are fork-specific (AzallazA/hyperflare-inference,PrefillTailMerge); mark-yong and WynnD rebutted both, and flare-autobot concluded no upstream change was needed. #655 is adjacent but a different failure (unmeasured/stale Snapshot cost), already at Ready-To-Merge. #663/#662 only cite #660 as complementary; #654 is the opt-in-knob alternative that #663 says it avoids. #292 (closed) is the opposite complaint on the same knob and was closed as "a deployment setting" — relevant context for how the project treats this knob, not a competing fix.
#15 [high] Research summary
Case file for PR #660 is complete: 14 scratchpad entries cover all nine angles.
What it is: a ~+60/−51 production change in helios/src/scheduler/checkpoints.rs (the +626/−78 file total is mostly new inline tests) that makes an interior conversation anchor obey the existing checkpoint_extra_work_fraction allowance instead of being pushed unconditionally at every nonzero fraction with split_ns: 0. It replaces anchor_split_is_zero_cost with anchor_split_ns -> Option<(u64,u64)>, renames zero_budget_anchor to budgeted_anchor, charges the anchor's predicted split to reserved_ns/extra_spent_ns, and adds a guard so an already-charged unreached Anchor cut survives multi-chunk steps and guard revocation. Docs in three design files updated; check.py mutation string updated. No flags, ABI or unsafe.
Most important things a reader cannot get from the description: (1) The body exists in two materially different versions — different A/B bases (571a4471 "not re-run on 22cac916834f" vs "exact candidate vs 5d53040e"), different workload tables, different trade-off disclosures (mixed-c32 per-user p50 93.9→71.0 tok/s and >250 ms gaps 215→434 appear in only one). (2) Six existing test files/fixtures were re-tuned to non-default fractions (0.1/0.2/0.279/0.28/0.5/1.0), including the widely shared scheduler_with_concurrency and prefill_to_publication_boundary helpers and the TLA+-conformance lifecycle test — i.e. the tests had encoded the behaviour this PR calls a bug. (3) Because treating a retained anchor split as zero cost was what funded the anchor, optional Endpoint/late-Message captures lose that headroom in return; the diff's own rewritten assertion ([256,512,640,768,896,1024]/115 → [256,512,768,896,1024]/134) shows early Messages gaining at the expense of a late one, and checkpoint_extra_work_nanoseconds_total now counts anchor splits for the first time. (4) helios/README.md:372-380 was not updated and still describes anchor selection without the allowance gate. (5) There are two independent decision sites (request_anchor_endpoint vs checkpoint_selection_uncached) using different budget bases — the same class of divergence that produced both blockers in #582's review.
History and fit: #660 is the third attempt at the same padded-tail cost, after #69 (closed, original-el8 — whose review literally asked for folding a token threshold into checkpoint_extra_work_fraction) and #582 (merged, same author — which fixed only the fraction == 0.0 arm and left nonzero fractions unconditional). It builds on #582's latch and #645/#459/#568; it supersedes one #582 behaviour and rewrites the docs sentences that stated it. It runs parallel to #655 (same function, already Ready-To-Merge) and #654/#663, so a rebase conflict is certain. Charter and docs/design-review.md line up on layer, footprint and "real evidence"; the gaps are that no CI ran on the head, kani and gated templates are declared unrun, the simulator is not addressed at all, and the design-sign-off trailer is unverifiable from here. Engagement so far is zero: draft, untriaged, no reviews or comments; only yatesdr's #663 cites it as complementary. Leads #534 and #600 were checked and are fork-specific (rebutted upstream), so not relevant.
#16 [high] Trade-off: charging the anchor split spends the headroom that used to fund optional extras
Interpretation a reader needs (connection between two entries, not stated in the PR body): before this change, an interior Anchor captured at a nonzero fraction was charged split_ns: 0 (checkpoints.rs old hunk: split_ns: 0, no reserved_ns addition). Because the optional-cut budget check is extra_spent_ns + reserved_ns + charge <= available (checkpoints.rs:707-716), an uncharged anchor left the whole allowance available for Message/Endpoint extras. Once the anchor's split is charged to reserved_ns (checkpoints.rs:619-627), those extras compete for what remains. The PR's own before/after assertion shows the effect: cuts == [256,512,640,768,896,1024], reserved_ns == 115 became [256,512,768,896,1024], reserved_ns == 134, with the comment "Anchor 896 adds 110 ns ... leaving 90 ns ... 640 (split 90 + copy 1) exceeds the remaining budget" (checkpoints.rs:~1806-1830 in the diff). So the change deliberately trades a late, expensive extra (and, in the new test Case 2, the terminal Endpoint when the anchor falls back) for the prompt-end/earlier-Message captures. The asymmetry to note: the anchor's own snapshot copy stays uncharged (copy_ns: 0, documented in all three docs), so an anchor is "split-priced but copy-free".
Also: the optional Endpoint is only offered when prompt_tokens != anchor (checkpoints.rs:648), so an anchor that falls back to the prompt end keeps the terminal capture — the new test default_fraction_budgets... asserts exactly this for the 453-token case ("terminal capture must remain funded under default 0.05") but Case 3 shows the same budget being consumed to the exact nanosecond (22_500_000 of 22_500_000).
#8 [medium] Project fit: docs/design-review.md mandatory verification vs what #660 ran
docs/design-review.md (repo's mandatory process doc) matters for judging the evidence package:
- Line 234-240: "Never touch covered code without running and updating its simulator and formal checks. Modifying the Helios scheduler ... without running — and updating when behavior, transitions, or supported bounds change — the applicable TLA+ models, Rust conformance fixtures, Kani harnesses, and scheduling simulator is a blocking design failure."
- Line 247-251: "Disclosure does not excuse skipping runnable CPU checks. All three layers run without a GPU or model checkpoint. Leaving an applicable crate test, simulator sweep, TLA+ conformance run, or Kani proof unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable."
- Line 195-206 (simulator): changes to graph selection / service pricing / timing estimation must be evaluated against scripts/scheduling_sim. But
scripts/scheduling_simcontains NO checkpoint/anchor modelling (search for checkpoint|anchor in scripts/scheduling_sim returns nothing), so the simulator is plausibly N/A here — same argument yatesdr used for #655. #660's body says nothing about the simulator at all (not even N/A). - Line 209-228 + 221-225: run verification/helios-lifecycle/check.py whenever changing "admission, fences, generations, cancellation, speculation accounting, cache compaction, snapshot aliases, ..."; Kani only for completion-vector validation / prepared completion / state-view extent / sequential validators. #660 changed a snapshot-reservation-affecting path (charged Anchor cuts) and did run check.py (10/10 TLC, 8/8 observed, 12/12 aux) and updated the mutation string — so that layer is satisfied on paper; Kani is plausibly N/A per the doc's list.
- Line 294-311: commits must carry
Design-Signed-Off-By: ...; design-review=<4 hex>computed from the staged docs/design-review.md; the hook in tests/test_design_review_hook.py enforces a 4-hex digest. I could not read commit trailers for 22cac916 (search_history returns subjects only; author = FujitsuPolycom). #582's thread shows this trailer is reviewed in practice (lukealonso flagged a "Design-Signed-Off-By digest on main is now 2e5b" during #582). Also relevant: charter "Bring real evidence" (perf PRs need benchmarks showing actual speedup on a served workload) and "PR descriptions: expect four parts" (why/what/result/evidence). #660 has all four parts; the two-body-versions problem (entry 2) undercuts which one is current.
#10 [medium] People: author history (Dooner/FujitsuPolycom) and reviewers of this code
Author: FujitsuPolycom (GitHub association CONTRIBUTOR; Discord handle "Dooner" per the PR body). In the last 180 days: 15 merged, 11 closed, 3 open PRs. Merged work spans docs (10), helios/src (10), heliopause/src (4), ignition/preparation (4). Relevant to this PR:
- #582 (merged 2026-11-29) — the direct predecessor, introduced
zero_budget_anchor/anchor_split_is_zero_cost; went through 3 review rounds with lukealonso and voipmonitor and was merged after all blockers were fixed. - #586, #587 (merged) heliopause export speed; #588, #584, #585 (closed) larger "accelerate X" drafts, #585 explicitly self-closed to "split into smaller single-concern PRs" after voipmonitor found 3 blockers including an unsafe TOCTOU and 307 GiB write amplification. Pattern: the author ships a large draft, takes heavy review, and splits/reopens smaller.
- Open now: #660 (this), #661 "explore smaller prefill chunks under active age-priced streams" (opened 15 min after #660, +1,274/-87, same 571a4471-based A/B), #649 "1-hop closed-ring RoCE prefill proxy opcodes".
- Both #660 and #661 are Drafts opened minutes apart, both A/B'd "atop 571a4471" (the pre-#656 base) and admit the A/B was "not re-run" on the candidate commit. Same method, same limitation. Who works in this area: Luke Alonso (235 commits in helios/src in 180 days), Martin Vit (52), yatesdr (48). Checkpoint-file commit history: 617ef929 (lukealonso, "Allocate checkpoint slots globally within request work budgets"), 97cfeb00 (dbotwinick), 10bc91ad/7f1ac303/436d6a9b/6b586398 (yatesdr), e091689b (Martin Vit), da578c5c (Jason Cook), 1364062c (Iein Valdez), 0c25e88f (lukealonso), c3489b23 (PCCessna = #582), e85019b9 (lukealonso = #645), then #660. Reviewers of record for this exact code: voipmonitor and lukealonso wrote all four substantive reviews on #582 (2 blockers each round, both rounds found real duplicate-Anchor-capture bugs). #660 has no reviews yet, so the same reviewer pool is the likely one. Adjacent scheduler authors with open work: yatesdr (#655 snapshot costs, #663 first-output age), logprobz (#654), original-el8 (#69 closed) — i.e. three other people are editing the same scheduler files right now.
#11 [medium] Community & process: no comments, no reviews, no CI, draft, untriaged
Community and process, as of 2026-12-01:
- Discussion on #660: "No comments." Zero reviews, zero inline comments, zero reactions. The only engagement so far is indirect: yatesdr's #663 (opened 19:40, 38 min after #660) cites #660 as a complementary change and says it "addresses when interior conversation-anchor splits should be budgeted against checkpoint_extra_work_fraction" — i.e. a peer has read and accepted the framing. Nothing else.
- State: DRAFT, base main, head 22cac91, opened and last updated 2026-12-01 19:02/19:03 (i.e. a minute after opening; the body appears to have been edited once — see entry 2 for the two versions). Age: same day.
- CI on the head commit: "no checks" (orientation packet). So none of the claimed suites are visible as CI results; every test/benchmark number is author-reported in the body.
- Labels: area:scheduling, bug, performance. Notably NOT triage:review (which #582 and #655 carry), so no reviewer has triaged it.
- Compare with the neighbours: #582 had a flare-autobot case file + review, a CHANGES_REQUESTED round from voipmonitor and two rounds from lukealonso before merge; #655 has two autobot reviews (last "Ready To Merge"). #660 has not been picked up by the autobot reviewer at all.
- Process signal: as a draft with no CI and two different bodies in circulation, a reader should treat the result table as provisional. Also, the repo's design-review gate (docs/design-review.md:294-311, enforced by tests/test_design_review_hook.py) requires a
Design-Signed-Off-By: <identity>; design-review=<4 hex>trailer on the final commit; I could not read commit trailers from here, and #582's history shows lukealonso does check that trailer and the DCO sign-offs.
#13 [medium] Recent activity: checkpoints.rs rewritten every few days; adjacent merges between A/B base and head
- Last commits on main in helios/src/docs: a3c80e19 (#657 endpoints _ai-gateway._tcp, 12-01), 5d53040e (#628 offload Copy Engine gating, 12-01), e8a3a7c7 (#656 conditional speculative acceptance + acceptance-probe charging, 12-01), cd1daa3e (#638), a4720050 (#625), e85019b9 (#645 "Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining", 11-30), bf7562ae (#646), f2ca2c41 (#647).
- checkpoints.rs commit history (newest first): #645 (e85019b9, 11-30), #582 (c3489b23, 11-29), #613 (0c25e88f, 11-29), #550 (1364062c), #568 (5deacda9), #426 (da578c5c), #479 (e091689b), #459 (6b586398), #415 (436d6a9b), #357/7f1ac303, #354/10bc91ad, #285 (97cfeb00), 617ef929 ("Allocate checkpoint slots globally within request work budgets"). This file has been rewritten roughly every 1-3 days through late November, so #660 is competing with a moving target: #655 (open, "Ready To Merge") edits the same function now, and #654/#663 edit scheduler-adjacent code.
- The change builds on, rather than reverses: #582's latch + same-snapshot pricing (reuses both, renames the latch), #645's cost model (
interval_prefill_ns, catalog), #568's role-based eviction (Anchor guard rows), #459's cached selection walk. What it does change relative to #582: an interior Anchor at a nonzero fraction is no longer chargedsplit_ns: 0; it is now priced and must fit the allowance. That is a deliberate supersession of one #582 behaviour, and #582's docs sentences saying nonzero-fraction anchoring is "best effort and independent of duration estimates" have been rewritten accordingly. - Recently-merged work it does not account for on its A/B base: #656 (11-30/12-01, speculative acceptance + acceptance-probe charging) and #628 (offload Copy Engine gating) both landed between the A/B base
571a4471and the PR head5d53040e. Any of those could move the measured numbers; the body only argues "0 checkpoints.rs edits in 571a4471..5d53040e". - verification/helios-lifecycle was last changed by #645 and #582; #660 only updates one mutation string (check.py:671-676), consistent with the file's recent history.
#17 [medium] Scope limits: what this case file did and did not verify
Limits of this case file, so the report does not overclaim:
- I read the PR head (22cac91) source and diff, the PR/issue history in the local copy, and the repo docs. I ran no builds, tests, or benchmarks.
- I could not read commit trailers (DCO
Signed-off-by,Design-Signed-Off-By: ...; design-review=<hex>), so compliance with docs/design-review.md:294-311 is unknown for 22cac916. - CI on the head commit is absent ("no checks"), so every suite count and every benchmark delta in this file is author-reported; I labelled them as such in entry 12.
- The two circulating PR bodies (entry 2) mean I cannot say which result table is current; both are recorded verbatim there.
- I did not exhaustively read the 4,657-line checkpoints.rs; I verified the hunks this PR touches plus their immediate callers (
plan_checkpoints,commit_checkpoint_plans,promote_request_anchor,revoke_unused_anchor_guards,allocate_terminal_captureneighbor). - I did not judge merge-worthiness, per the brief; entry 14's "reviewer note" about the two anchor-decision sites is flagged as a question, not a defect claim.