Skip to content

helios/scheduler: preserve interior anchor for open-reasoning prompts - #697

Merged
lukealonso merged 1 commit into
NVIDIA:mainfrom
FujitsuPolycom:fix/helios-preserve-thinking-message-anchor
Dec 3, 2026
Merged

lukealonso merged 1 commit into
NVIDIA:mainfrom
FujitsuPolycom:fix/helios-preserve-thinking-message-anchor

Conversation

@FujitsuPolycom

Copy link
Copy Markdown
Contributor

Why

Commit 4cc6f2fd (#660) budgets every interior conversation anchor (raw_anchor < prompt_tokens) against scheduler_checkpoint_extra_work_fraction (default 0.05), falling back to prompt_tokens whenever splitting prefill at raw_anchor exceeds the request's extra-work allowance.

When a chat template opens a reasoning block after the last complete-message boundary (output.content.start == OutputStart::Reasoning, such as <think>\n on reasoning-enabled Qwen3.8, Nemotron, or DeepSeek models), OpenAI-compatible clients strip reasoning text from subsequent assistant history. Turn k+1 therefore diverges from Turn k inside [raw_anchor, prompt_tokens). Because PrefixCheckpointCache::lookup matches exact published checkpoints across both CONTINUATION_STATE and PAGED_KEY_VALUE cores, falling back to prompt_tokens leaves Turn k with no checkpoint that is a prefix of Turn k+1, collapsing multi-turn prefix reuse and forcing full re-prefill on subsequent turns.

Requests that do not open a reasoning block (OutputStart::Content, OutputStart::RecipientHeader, OutputStart::RecipientFrame, OutputStart::ToolBody, and raw completions) do not have this stripped-suffix divergence: Turn k's prompt-end and terminal checkpoints remain exact prefixes of Turn k+1. Interior-anchor budgeting should therefore remain active for all non-reasoning-open requests (including multi-turn continuations with admission_reused_tokens > 0, preserving #660's non-thinking multi-turn and mixed-workload gains), while retaining raw_anchor specifically when output.content.start == OutputStart::Reasoning under a nonzero extra-work fraction.

What

Net non-test production diff: +29 LOC (+37/-8 across 4 Rust files; zero unsafe, zero CLI, Protobuf, or model-core ABI changes, zero model-name branches). Existing signed cores load and serve unchanged.

  • helios/src/server/runtime.rs (+4/-0 prod), helios/src/server/request.rs (+4/-0 prod), helios/src/scheduler.rs (+5/-0 prod):
    • Added pub preserve_message_anchor: bool to Prompt, RequestSpec, and LiveRequest.
    • Set preserve_message_anchor in prepare_validated_inference to output.as_ref().is_some_and(|o| o.content.start == crate::output::tagged::OutputStart::Reasoning) and propagated it through Incoming::spec() across initial admission and preemption readmission.
  • helios/src/scheduler/checkpoints.rs (+24/-8 prod):
    • Added one shared predicate RequestScheduler::budget_interior_anchor(&self, request: &LiveRequest) -> bool returning self.policy.checkpoint_extra_work_fraction == 0.0 || !request.preserve_message_anchor, called by request_anchor_endpoint, checkpoint_selection_uncached, and promote_request_anchor so all anchor-selection paths stay consistent.
    • When !self.budget_interior_anchor(request) (fraction > 0.0 and preserve_message_anchor == true): request_anchor_endpoint returns Some(raw_anchor) immediately, checkpoint_selection_uncached retains (raw_anchor, 0) without debiting split_ns and clears accounting.budgeted_anchor = None, and promote_request_anchor skips latching budgeted_anchor.
    • When self.budget_interior_anchor(request) is true (fraction == 0.0, or preserve_message_anchor == false regardless of admission_reused_tokens): the existing interior-anchor budgeting logic runs unchanged.
  • Documentation and unit tests:
    • Synchronized present-state documentation in docs/scheduling-runtime-design.md, helios/README.md, docs/core-design.md, and docs/cli-design.md.
    • Added unit tests in helios/src/scheduler/checkpoints.rs and helios/src/server/runtime/phase_tests.rs covering preserved interior anchors at 0.05 (with agreement between request_anchor_endpoint and checkpoint_selection_uncached and stale latches), strict zero-split fallback at fraction == 0.0, non-preserved continuations with admission_reused_tokens > 0 remaining budgeted identically to #660, OutputStart::Reasoning (true) vs OutputStart::Content, OutputStart::RecipientHeader (ATEM), OutputStart::RecipientFrame (ATEM add_generation_prompt: false and TMLv0), and Protocol::Completions (false), plus readmission preservation across worker.park().

Result

Single-boot-per-arm (Arm A -> Arm B) serving A/B measurements on one NVIDIA GB10 (SM121, 121 GiB unified memory, aarch64) comparing NVIDIA/hyperflare-inference main (07e666e6) against 298d3e68 across three signed local-inference-lab gb10-tp1 cores with identical runtime flags (--gpus 0 --host 127.0.0.1 --port 8051 --scheduler-policy balanced --kv-cache-limit memory --memory-limit=-12G --prefix-cache-memory 0, default scheduler_checkpoint_extra_work_fraction = 0.05, OS page caches dropped before every boot). Rebasing 298d3e68 onto cc0a49d2 (bfae28a6) kept all +29 net production lines and all documentation byte-identical, adding only preserve_message_anchor: false to four additional RequestSpec test literals introduced on main at cc0a49d2. All 6 boots passed GET /v1/models (HTTP 200), 37 * 41 -> 1517 with finite logprobs (0 non-finite), flare_requests_failed_total == 0, and 0 server log errors.

Multi-Turn Prefix Reuse (C=6 x 4 turns, n=2, OpenAI content-only history)

Model (gb10-tp1) Arm Turn 2+ Cache Hit % [T0, T1] Turn 2+ Zero-Hit Misses Output tok/s med [T0, T1] All ∥ Turn 1 ∥ Turn 2+ TTFT p50 (ms) Prefill Tokens (2-trial tot) msg_ckpts ∥ ckpt_caps (anchor/msg/end) prefill Launches ∥ work_budget Skips
Qwen3.8-27B-FLARE (nvidia/Qwen3.8-27B-NVFP4) 07e666e6 (base) 56.61% [51.28, 61.94] 9 / 36 42.70 [37.81, 47.60] 3,140.5 ∥ 6,659.6 ∥ 2,465.7 112,517 24 ∥ 48 / 11 / 60 103 ∥ 30
298d3e68 (fix) 83.78% [83.82, 83.75] (+27.17 pp) 0 / 36 52.34 [48.45, 56.23] (+22.6%) 2,078.4 ∥ 8,199.9 ∥ 1,772.9 (-28.1%) 66,148 (-41.2%) 48 ∥ 48 / 0 / 96 96 ∥ 35
NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB-FLARE 07e666e6 (base) 74.07% [74.96, 73.19] 0 / 36 42.25 [40.47, 44.02] 5,475.9 ∥ 8,976.9 ∥ 4,231.3 86,256 35 ∥ 48 / 21 / 61 90 ∥ 44
298d3e68 (fix) 83.81% [83.82, 83.80] (+9.74 pp) 0 / 36 43.19 [41.38, 44.99] (+2.2%) 4,966.9 ∥ 9,250.8 ∥ 4,571.5 (+8.0%) 68,925 (-20.1%) 60 ∥ 48 / 12 / 96 229 ∥ 25
Qwen3.8-Flash-Next-FLARE 07e666e6 (base) 52.16% [48.38, 55.93] 14 / 36 42.09 [38.37, 45.81] 3,828.3 ∥ 5,828.0 ∥ 2,218.2 121,336 18 ∥ 48 / 2 / 64 87 ∥ 42
298d3e68 (fix) 83.94% [83.97, 83.90] (+31.78 pp) 0 / 36 51.17 [50.89, 51.46] (+21.6%) 1,910.9 ∥ 7,540.4 ∥ 1,744.7 (-21.3%) 66,652 (-45.1%) 48 ∥ 48 / 0 / 96 96 ∥ 46

Warm-Catalog Concurrent Cold-Prefill Burst on Qwen3.8-27B-FLARE (4 decoders ~1K->160 + 2 staggered 12K/16K cold prefills, n=2)

Arm Decode ITL p99 med [T0, T1] (ms) Peak Burst Gap med ∥ max (ms) Per-Trial Peak Gaps (ms) >500ms ∥ >1s Stalls Heavy 12K ∥ 16K TTFT med (ms) Makespan med (s) prefill Launches ∥ msg_ckpts
07e666e6 (base) 469.2 [469.7, 468.8] 984.4 ∥ 1,234.7 [1,234.7, 734.2] 6 ∥ 1 21,835 ∥ 21,952 23.84 103 ∥ 5
298d3e68 (fix) 374.0 [425.3, 322.6] (-20.3%) 1,009.5 ∥ 1,521.3 [1,521.3, 497.6] 6 ∥ 5 20,410 ∥ 22,295 24.35 108 ∥ 12

Trade-offs and Scope

  • Retaining the interior message anchor on open-reasoning turns adds one short tail prefill on Turn 1 (raising Turn 1 TTFT p50 from 5.83–8.98 s to 7.54–9.25 s), which is repaid across Turns 2–4 with -20.1% to -45.1% fewer total prefill tokens, 0 / 108 Turn 2+ zero-hit misses across all three models (+9.74 pp to +31.78 pp Turn 2+ cache hit), and +2.2% to +22.6% higher multi-turn output throughput. On NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB-FLARE (max_active = 4), retaining all interior anchors under C = 6 queueing increased Turn 2–4 prefill launches (90 -> 229) and Turn 2+ median TTFT (+8.0%) while still reducing all-turn median TTFT (-9.3%) and total prefill tokens (-20.1%).
  • On Qwen3.8-27B-FLARE warm-catalog prefill_burst, 298d3e68 reduced median decode ITL p99 by -20.3% (469.2 -> 374.0 ms) and restored complete message-checkpoint capture (5 -> 12), with 0 >500 ms stalls in Trial 1 (497.6 ms peak vs 734.2 ms base) and one Trial 0 chunk spike (1,521.3 ms peak, 5 >1 s decoder gaps vs 1,234.7 ms / 1 on base).
  • All non-reasoning-open requests (OutputStart::Content, OutputStart::RecipientHeader, OutputStart::RecipientFrame, OutputStart::ToolBody, and raw completions), including multi-turn continuations with admission_reused_tokens > 0, remain budgeted identically to #660.
  • Operators setting --scheduler-checkpoint-extra-work-fraction 0.0 retain strict zero-split fallback even for open-reasoning requests.

Evidence

All software checks ran on clean git archive bfae28a601b5a1ba66e2cea114e8472a8a5247db (tree d744981f37736a5a497f3f524ffb42852f6c8c1e; git merge-tree --write-tree cc0a49d2 bfae28a6 produced d744981f37736a5a497f3f524ffb42852f6c8c1e with 0 conflicts):

  • Release compile checks (rustc 1.94.1, x86_64): RUSTFLAGS="-D warnings" cargo check --locked --release passed with 0 warnings across all six crates (eos --tests, selene --features test-support --tests, selene-manager --features test-support --tests, helios --features runtime-core,server --tests, flare --tests, and flare-cli --tests).
  • Release Rust test suites (cargo test --locked --release, FLARE_TEST_TEMPLATE_DIR populated via tests/frontend/prepare_templates.py):
    • eos: 12 passed, 0 failed.
    • selene --features test-support: 553 passed (552 lib + 1 integration), 0 failed.
    • selene-manager --features test-support -- --test-threads=1: 426 passed (187 lib + 239 integration, including 11 in pool_store), 0 failed (1 scale test ignored).
    • helios --features runtime-core,server: 1,900 passed (1,838 lib + 62 integration, including all 3 new/expanded unit tests and the 4 updated RequestSpec test literals from cc0a49d2), 0 failed (47 lib + 37 integration checkpoint-gated ignored).
    • flare: 254 passed (246 lib + 8 integration), 0 failed (4 ignored).
    • flare-cli -- --test-threads=1: 245 passed (219 lib + 26 integration), 0 failed (3 ignored).
  • Fault-mutation checks (scratch copies restored and verified byte-identical by SHA-256):
    • Mutation A: forcing budget_interior_anchor to true in helios/src/scheduler/checkpoints.rs failed preserved_message_anchor_retains_interior_boundary_and_respects_zero_fraction with exit code 101.
    • Mutation B: widening == OutputStart::Reasoning back to != OutputStart::Content in helios/src/server/request.rs failed prepare_inference_sets_preserve_message_anchor_and_preserves_across_readmission on OutputStart::RecipientHeader with exit code 101.
  • Python boundary & hook tests (pytest): tests/preparation/test_core_boundary.py and tests/test_design_review_hook.py — 22 passed, 0 failed.
  • TLA+ lifecycle verification & mutations (python3 verification/helios-lifecycle/check.py --mutations): All 8 TLA+ models (Lifecycle, RankProtocol, DispatchRing, OffloadTransfer, CacheOwnership, Speculation, ResponseLifecycle, CheckpointReservation), observed Rust trace conformance, and all source/model mutation guards passed.
  • Live 3-model GB10 A/B (flare aarch64 release binaries built from clean git archive, prior to the test-only rebase onto cc0a49d2):
    • Arm A (07e666e6): binary SHA-256 eccdaa0fcdae7cc0acbd60643a7420492b9a7b3509b1ca6600ab4ec0db0c7273.
    • Arm B (298d3e68): binary SHA-256 8892aa6f0f2e1abe04f858ecbf49ff79a3e46d6eaa695517020f3c536778355b.

Limitations

  • Chat templates that inject a self-closed empty reasoning suffix when enable_thinking=false (such as <think>\n\n</think>\n\n, which resolves to OutputStart::Content because the template closes the reasoning block before generation starts) are not distinguished by OutputStart and remain budgeted with preserve_message_anchor = false.
  • scripts/scheduling_sim/ and cargo kani do not model checkpoint anchor selection and are not applicable.
  • Live hardware A/B measurements in this PR cover single-GPU gb10-tp1 (SM121) reasoning-enabled cores measured on 07e666e6 vs 298d3e68 (before rebasing onto cc0a49d2, which left all +29 production lines and all documentation byte-identical and only initialized preserve_message_anchor: false on four additional RequestSpec test literals on main); SM120 TP4 DeepSeek-V4.1-Flash non-thinking workloads were not re-benchmarked here because preserve_message_anchor evaluates to false on OutputStart::Content requests and leaves their #660 code path unchanged (verified by the non_preserved_continuation_with_reused_prefix_still_budgets_interior_anchor unit test).

Discord: Dooner

Why

Commit 4cc6f2f budgets every interior conversation anchor
(`raw_anchor < prompt_tokens`) against `scheduler_checkpoint_extra_work_fraction`
(default 0.05), falling back to `prompt_tokens` whenever splitting prefill at
`raw_anchor` exceeds the request's extra-work allowance.

When a chat template opens a reasoning block after the last complete-message
boundary (`output.content.start == OutputStart::Reasoning`, such as `<think>\n`
on reasoning-enabled Qwen, Nemotron, or DeepSeek models), OpenAI-compatible
clients strip reasoning text from subsequent assistant history. Turn k+1
therefore diverges from Turn k inside `[raw_anchor, prompt_tokens)`. Because
`PrefixCheckpointCache::lookup` matches exact published checkpoints across all
core types, falling back to `prompt_tokens` leaves Turn k with no checkpoint
that is a prefix of Turn k+1 and forces full re-prefill on subsequent turns.

Requests that do not open a reasoning block (`OutputStart::Content`,
`OutputStart::RecipientHeader`, `OutputStart::RecipientFrame`,
`OutputStart::ToolBody`, and raw completions) do not suffer this stripped-suffix
divergence: Turn k's prompt-end and terminal checkpoints remain exact prefixes
of Turn k+1. Interior-anchor budgeting should therefore remain active for all
non-reasoning-open requests (including multi-turn continuations with
`admission_reused_tokens > 0`), while retaining `raw_anchor` specifically when
`output.content.start == OutputStart::Reasoning` under a nonzero extra-work
fraction.

What

- Added `pub preserve_message_anchor: bool` to `Prompt`
  (`helios/src/server/runtime.rs`), `RequestSpec`, and `LiveRequest`
  (`helios/src/scheduler.rs`), populated in `prepare_validated_inference`
  (`helios/src/server/request.rs`) as
  `output.as_ref().is_some_and(|o| o.content.start == OutputStart::Reasoning)`
  and propagated across admission and preemption readmission via
  `Incoming::spec`.
- Added one shared predicate `RequestScheduler::budget_interior_anchor` in
  `helios/src/scheduler/checkpoints.rs` returning
  `self.policy.checkpoint_extra_work_fraction == 0.0 || !request.preserve_message_anchor`,
  consumed by `request_anchor_endpoint`, `checkpoint_selection_uncached`, and
  `promote_request_anchor`.
  - When `!budget_interior_anchor(request)` (`fraction > 0.0` and
    `preserve_message_anchor == true`), `request_anchor_endpoint` returns
    `Some(raw_anchor)` immediately, `checkpoint_selection_uncached` retains
    `(raw_anchor, 0)` without debiting `split_ns` and clears
    `accounting.budgeted_anchor = None`, and `promote_request_anchor` skips
    latching `budgeted_anchor`.
  - When `budget_interior_anchor(request)` is true (`fraction == 0.0`, or
    `preserve_message_anchor == false`), the existing interior-anchor budgeting
    logic runs unchanged, including when `admission_reused_tokens > 0`.
- Synchronized present-state documentation (`docs/scheduling-runtime-design.md`,
  `helios/README.md`, `docs/core-design.md`, `docs/cli-design.md`) and added
  unit tests in `helios/src/scheduler/checkpoints.rs` and
  `helios/src/server/runtime/phase_tests.rs` covering preserved interior anchors
  at 0.05, strict zero-fraction fallback, non-preserved continuations with
  reused prefixes, `OutputStart::Reasoning` vs `OutputStart::Content`,
  `OutputStart::RecipientHeader`, `OutputStart::RecipientFrame` (ATEM and
  TMLv0), and raw completions preparation, plus readmission propagation. No CLI,
  Protobuf, model-core ABI, or `unsafe` changes; existing signed cores load and
  serve unchanged.

Result

Restores Turn k -> k+1 exact message-anchor prefix reuse for open-reasoning
conversations under the default `scheduler_checkpoint_extra_work_fraction =
0.05` while keeping interior-anchor split budgeting active for
`OutputStart::Content`, `OutputStart::RecipientHeader`,
`OutputStart::RecipientFrame`, `OutputStart::ToolBody`, and raw completions,
and preserving strict zero-split opt-out at `fraction == 0.0`.

Evidence

Verified on clean `git archive` via release `cargo check` and `cargo test`
across `eos`, `selene`, `selene-manager`, `helios`
(`--features runtime-core,server`), `flare`, and `flare-cli`, TLA+ lifecycle
models and mutation verification (`verification/helios-lifecycle/check.py
--mutations`), core-boundary and design-review hook pytest suites, and scratch
fault-mutation checks reverting `budget_interior_anchor` and widening the
`OutputStart::Reasoning` predicate. Live 3-model GB10 `flare run` A/B results
comparing `07e666e6` against `298d3e68` (prior to rebasing onto `cc0a49d2`,
which kept all production code and documentation byte-identical and only
initialized `preserve_message_anchor: false` on four additional test
`RequestSpec` literals on `main`) are reported in the PR description.

Limitations: chat templates that inject a self-closed empty reasoning suffix
when `enable_thinking=false` (such as `<think>\n\n</think>\n\n`, which
resolves to `OutputStart::Content`) remain budgeted with
`preserve_message_anchor = false`; `scripts/scheduling_sim` and `cargo kani` do
not model checkpoint anchor selection.

Discord: Dooner

Design-Signed-Off-By: Antigravity (Gemini 4 Neon); design-review=2e5b
Signed-off-by: FujitsuPolycom <87842395+FujitsuPolycom@users.noreply.github.com>
@flare-autobot

Copy link
Copy Markdown
Collaborator

A case file has been opened for 697.
Case File Intake Report

Future reviews will auto-run 90 minutes after code updates are pushed.

  • Re-review sooner: Call @flare-autobot after push.
  • Opt-out: Include #autobot:ignore in the PR or any comment.

@flare-autobot flare-autobot added area:scheduling Request scheduling, fairness, batching, and speculative-width selection. bug Something isn't working performance Performance, latency, throughput, or memory-efficiency investigation or improvement. triage:review Proposed change needs code review; this does not imply merge readiness. labels Dec 2, 2026
@flare-autobot

Copy link
Copy Markdown
Collaborator

Autobot Review

Full Review · Value Proposition · Case File

Recommendation: Changes Requested

The scheduler change (+29 net production LOC across 4 Rust files, zero unsafe, no model-name branches or ABI/wire changes) cleanly fixes the <think>-stripping multi-turn prefix-reuse regression disclosed by #660, with strong gb10-tp1 A/B gains (+9.74 to +31.78 pp Turn 2+ cache hit, 0 / 108 zero-hit misses). No merge blockers, but three issues should be addressed first: a docs contradiction in docs/cli-design.md:709-713, no end-to-end two-turn divergent-suffix reuse test, and an undisclosed extra prompt-end Endpoint snapshot per preserved turn.

  • Blockers: 0 · Should fix: 3 · Subtract/Simplify: 3 · Nits: 2
Walkthrough
  • helios/src/server/request.rs:427-429,452: Computes preserve_message_anchor = output.as_ref().is_some_and(|o| o.content.start == crate::output::tagged::OutputStart::Reasoning) in prepare_validated_inference and stores it on Prompt.
  • helios/src/server/runtime.rs:50-53,288 & helios/src/scheduler.rs:158-160,231,1852: Threads pub preserve_message_anchor: bool through Prompt → Incoming::spec() → RequestSpec → LiveRequest at admit(), preserving it across initial admission and preemption/grammar readmission.
  • helios/src/scheduler/checkpoints.rs:469-483,620-624,908-912: Adds RequestScheduler::budget_interior_anchor(&self, request: &LiveRequest) -> bool (fraction == 0.0 || !request.preserve_message_anchor) shared by request_anchor_endpoint (early Some(raw_anchor)), checkpoint_selection_uncached (retains (raw_anchor, 0) and clears budgeted_anchor), and promote_request_anchor (suppresses latching).
  • docs/cli-design.md:696-708, docs/core-design.md:1436-1454, docs/scheduling-runtime-design.md:664-674, helios/README.md:370-386: Updates present-state checkpoint anchor docs for open-reasoning preservation under nonzero extra-work fractions.
  • helios/src/scheduler/checkpoints.rs:4789-4926 & helios/src/server/runtime/phase_tests.rs:8352-8589 (+ mechanical preserve_message_anchor: false updates across 8 test files): Adds isolated unit tests for preserved vs. budgeted anchor selection, stale-latch clearing, fraction == 0.0 fallback, admission_reused_tokens == 512 non-preserved budgeting, frontend OutputStart classification, and worker.park() readmission.
Merge Risk: Medium · up to bfae28a
  • Default-path behavior change on reasoning-enabled chat (0.05): Every open-reasoning request (OutputStart::Reasoning) under nonzero scheduler_checkpoint_extra_work_fraction now retains its interior raw_anchor unconditionally (restoring pre-#660 split behavior for reasoning prompts while leaving OutputStart::Content, RecipientHeader, RecipientFrame, ToolBody, raw completions, and fraction == 0.0 on #660's exact budgeted path). This trades an extra Turn-1 tail prefill (and disclosed queueing launch amplification on NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB-FLARE at max_active = 4) for recovering Turn 2+ prefix reuse.
  • Clean concurrency, lifecycle, and readmission invariants: RequestScheduler mutates single-threaded (&mut self), configure_policy rejects policy changes after admission (helios/src/scheduler/policy.rs:225-228), Incoming::spec() preserves preserve_message_anchor across park()/park_grammar_transition() readmission (helios/src/server/runtime.rs:288,2422-2519), and verification/helios-lifecycle/check.py:672-677's budgeted_anchor mutation needle remains unique.
  • Rebase overlap with open #655: Open Ready To Merge PR #655 edits the adjacent snapshot-cost gate in checkpoint_selection_uncached (helios/src/scheduler/checkpoints.rs:681, fresh_duration → measured_duration) and the same four documentation files; changes are semantically orthogonal but require rebase coordination.
Pre-merge checks: ✅ 1 passed · ⚠️ 3 warnings
  • ✅ Security / malicious screen: Pure scheduler predicate, boolean metadata propagation, unit tests, and docs; zero unsafe, no new I/O, parsing, FFI, or untrusted-input surface.
  • ⚠️ Charter & value fit: Model-agnostic (OutputStart::Reasoning is shared parser state, zero model-name branches) and fixes a real measured regression in the right layer, but docs/cli-design.md:709-713 contradicts the updated paragraph immediately above it.
  • ⚠️ Related / duplicate / conflict check: Directly addresses #660's disclosed <think>-stripping trade-off with no competing PR, but overlaps open Ready To Merge #655 in helios/src/scheduler/checkpoints.rs and all four doc files — coordinate merge/rebase order.
  • ⚠️ Tests & verification evidence: New tests are isolated and exercise real production types (RequestScheduler, prepare_inference, Worker), and scripts/scheduling_sim/kani are accurately N/A; however, no test exercises end-to-end Turn k → divergent Turn k+1 prefix reuse, ## Evidence omits the benchmark harness/command line (unlike #660), and GitHub Actions CI + Design-Signed-Off-By: commit trailers should be confirmed on head bfae28a.

Have your agent review the Full Review for complete verified findings, file:line citations, and suggested changes.

To opt out, include #autobot:ignore in your post or comment.

@lukealonso
lukealonso merged commit 8ba515a into NVIDIA:main Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:scheduling Request scheduling, fairness, batching, and speculative-width selection. bug Something isn't working performance Performance, latency, throughput, or memory-efficiency investigation or improvement. triage:review Proposed change needs code review; this does not imply merge readiness.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants