Explore scratchpad · NVIDIA/hyperflare-inference #729

Raw Markdown for agents: https://autobot.eidonix.com/p/918fdeda-740b-4b53-9b91-a745a0241c7d.md

#1 [high] Change: scope and size of PR #729

PR #729 (open, ready for review, opened 2026-12-04, head 150f705, base main, base sha cc0a49d). 14 files, +2219/−370. No labels, no reviews, no comments as of reading (pr_comments returned "No comments").

Files (from pr_files): docs/scheduling-runtime-design.md (+23/−18); helios/src/model/admission.rs (+15/−2); helios/src/model/packed_round_tests.rs (+1/−1); helios/src/model/packing.rs (+3/−1); helios/src/model/tests.rs (+95/−1); helios/src/offload/transfer/codec.rs (+487/−250); helios/src/scheduler.rs (+78/−0); helios/src/scheduler/cost.rs (+309/−38); helios/src/scheduler/policy.rs (+276/−10); helios/src/scheduler/policy_tests.rs (+68/−0); helios/src/scheduler/service.rs (+13/−8); helios/src/scheduler/tests.rs (+78/−0); helios/src/server/runtime.rs (+270/−26); helios/src/server/runtime/phase_tests.rs (+503/−15).

Three logically independent changes bundled: (1) grammar-transition KV preservation, (2) KV offload codec restore batching + lock order, (3) Mixed graph NNLS cost stratification. Each is a separate subsystem and could be reviewed/merged separately.

#2 [high] Change: undeclared work in PR #729 (files not in the description)

PR description says changes are in helios/src/model/{admission,packing}.rs, helios/src/scheduler.rs, helios/src/scheduler/policy.rs, helios/src/server/runtime.rs, helios/src/offload/transfer/codec.rs, helios/src/scheduler/{cost,policy,service}.rs, and docs/scheduling-runtime-design.md. It does NOT mention two files that are in the actual diff and carry substantial logic:

  1. helios/src/scheduler/checkpoints.rs — pr_diff shows large non-test changes: a new prefill_catalog_costs_for(prompt_logprobs) (replacing prefill_catalog_costs), a refactor of interval_prefill_ns into interval_prefill_ns_for(window_ends, prefill_spans, ...) that changes terminal-chunk pricing to be per-window (through >= limit instead of through >= end, new max_terminal_cap bound), a new read-only estimate_prefill_delta_ns(...) used by admission, budget_interior_anchor, snapshot_discovery single-in-flight terminal-capture discovery, and switching snapshot cost lookups from self.costs.fresh_duration(GraphKind::Snapshot, 1) to self.costs.measured_duration(...) (retaining expired snapshot costs). None of this appears in the PR description.
  2. helios/src/server/request.rs (+3/−0) — adds preserve_message_anchor derived from output.content.start == OutputStart::Reasoning, and Prompt.preserve_message_anchor (helios/src/server/runtime.rs:52). The description mentions preserve_message_anchor nowhere; the docs hunk (docs/scheduling-runtime-design.md) does describe the behavior change to anchor budgeting under a reasoning-opening prompt.

Also in helios/src/server/runtime.rs, beyond the described grammar work, there are several clearly separable changes: (a) a whole new RowRestoreLatency/RowRestoreSource per-tier row-only host-restore latency estimator; (b) flare_selene::worth_fetching(&hit, prefill_rate) replaced by a scheduler-priced estimated_prefill_saved_seconds + flare_selene::worth_restore(transfer_seconds, prefill_saved_seconds) and a rewritten RestoreWait::defer; (c) begin_pool_lookup rewritten to return bool and re-issue stale pool lookups (pool_lookup_reissued, refresh_admission_plan_in_place); (d) moving offload::open (store open) to BEFORE RankExecutor::new with a comment that GPU codec cuModuleLoadData can deadlock in the CUDA driver while a persistent worker kernel is resident, plus a new free close_store helper; (e) observe_prefill_rate rewritten to use the step's own ExecutionTiming instead of wall-clock from submit (prefill_started VecDeque deleted); (f) new pub fn attach_async_transfers on ModelRuntime; (g) Admission::validate_continuation with initial_prompt_tokens; (h) RequestAdmission/stop-sequence construction errors now cancel+fail instead of ?-propagating.

(Citations: pr_diff of helios/src/scheduler/checkpoints.rs, helios/src/server/request.rs, helios/src/server/runtime.rs; main already contains helios/src/server/request.rs:427-429 and helios/src/scheduler/checkpoints.rs:564 — wait, those were read at PR head, not main; search_code with ref=main for preserve_message_anchor returned no matches, confirming these are new in this PR.)

#3 [high] Process: pr_diff base is stale — raw diff over-reports, 14 files is authoritative

IMPORTANT methodology finding for anyone re-deriving this diff: the local main ref used by pr_diff/search_code(ref=main) is STALE — it predates at least #655, #660, #674 (merged 2026-12-03), #697 (merged 2026-12-03) and #709. Evidence: search_code(ref=main) finds no worth_restore, no RowRestoreLatency, no estimate_prefill_delta_ns, no budget_interior_anchor, no preserve_message_anchor, no attach_async_transfers; and helios/src/scheduler/checkpoints.rs:1067 on main still uses self.costs.fresh_duration(GraphKind::Snapshot, 1) (changed by #655). The orientation-packet git errors ("Could not read c513e46a…") match: #674 reports main was c513e46a when it rebased.

Consequence: pr_diff output over-reports. It includes hunks from already-merged PRs for every file #729 touches. The authoritative file list is pr_files / read_item(729) = 14 files, and it does NOT include helios/src/scheduler/checkpoints.rs or helios/src/server/request.rs — so the large checkpoints.rs / request.rs hunks in pr_diff are already-merged work (#655 snapshot cost retention + discovery; #674 estimate_prefill_delta_ns/prefill_catalog_costs_for; #660/#697 budget_interior_anchor + preserve_message_anchor), NOT this PR.

Hunks I can attribute to merged PRs rather than #729 (they appear inside files #729 does change, so a reader re-diffing against stale main will see them as #729's):

#4 [high] Related work: #626 (same author, merged 4 days earlier) created the cancel-path #729 reverses

#626 "Allow speculative reasoning for grammar-constrained requests" (lukealonso, COLLABORATOR, merged 2026-11-30, +1405/−39, 9 files) is the direct predecessor that #729 modifies. #626's own "What Changed" says: on reasoning close or forbidden token, the worker "cancels the live slot via RequestScheduler::cancel (draining any queued second frame without emitting output or publishing a terminal snapshot), and parks the truncated prefix via park_grammar_transition… On readmission, Helios restores the longest cached prefix checkpoint (GraphKind::Restore) and runs GraphKind::Prefill over the remaining reasoning suffix to rebuild exact KV and recurrent state".

That is exactly the code path #729's Why calls the defect ("previously routed every transition through park_with_tokens(..., publish_terminal: false) -> RequestScheduler::cancel(handle) … every transition discarded all accumulated reasoning KV and recurrent state"). So #729 is a corrective follow-up / partial reversal of #626's transition mechanism, same author, 4 days later. #626's own review already flagged the cost: Autobot "Changes Requested" noted "Every boundary transition re-prefills R reasoning tokens since the prompt-end checkpoint (runtime.rs:2407-2449)" and "Unmeasured transition & bystander cost"; #626's PR body disclosed "Leaving speculative reasoning incurs one slot transition (cancel + Restore … + chunked Prefill over the reasoning tokens since that checkpoint)… can match or exceed the speculative decode savings."

#626 also relates to open issue #530 ("Structured output … decodes ~2-3x slower than unconstrained … MTP drops to width one") and to #210, #615, #619, #620. #729 does not cite #530 or #626 in its body — the body's Why cites no issue/PR numbers at all.

Test names #729 reuses/extends from #626's suite (same phase_tests.rs file): speculative_grammar_reasoning_runs_pipelined_and_transitions_on_close_with_overshoot, ..._rolls_back_forbidden_token_including_premature_eos, ..._integrates_with_thinking_budget_and_logprobs, ..._preserves_mode_on_preemption_and_stays_constrained_without_reasoning, content_header_envelope_enters_speculative_reasoning_after_header_and_returns_to_constrained, prepare_inference_enables_speculative_grammar_reasoning_only_for_eligible_envelopes — all still present in the tree (#729 phase_tests.rs:7571, 7728, 7868, 8006, 8287).

#5 [high] Related work: #729 reverses the lock order #628 deliberately established

#628 "helios: gate offload Copy Engine batches during peer-copy graphs" (yatesdr, COLLABORATOR, merged 2026-12-01, fixes issue #627, +1197/−141, 20 files) introduced CopyEngineGate and its stated invariant. #628's "Summary of changes" bullet "Offload transfer paths (helios/src/offload/transfer.rs, helios/src/offload/transfer/codec.rs)" says verbatim: "Acquire OffloadBatchGuard per BATCH_BYTES batch in uncompressed RankWorker::run, CPU-codec copy_spans_batch, and all five GPU-codec capture/restore entry points. Preserve strict lock ordering (gpu.codec before CopyEngineGate) to prevent lock inversion against try_lock".

PR #729 does the opposite: its codec diff introduces with_gpu_codec_locked / try_with_gpu_codec_locked whose doc comments state "Acquires CopyEngineGate::enter_offload_batch before locking the GPU codec mutex so background capture threads waiting on active peer-copy graphs never hold the codec mutex and all GPU codec callers share one lock order," and routes "all five GPU codec lock sites (three in capture_window, two in restore_window/restore_single_unit)" through them. So #729 reverses a lock-ordering invariant deliberately established and reviewed in #628 ("preserve strict lock ordering (gpu.codec before CopyEngineGate)"), within the same codec.rs region.

Why #729's rationale differs: #628's order held the codec mutex while blocking on the gate, which #729 identifies as the actual bug (a background capture holding gpu.codec while waiting for a peer graph starves foreground restores' try_lock() into CPU decoding). #628's Autobot review had already flagged this exact risk in the first round — "Worker-thread blocking… RankExecutor::submit blocks the model worker on an unbounded Condvar::wait" and "Hot-path regression for all prefix-cache users" — but the final round said "lock ordering… confirmed sound." So #729 is a correctness fix to a consequence #628's review considered acceptable; a reviewer needs to know #628's recorded invariant is being superseded, not violated by accident.

Also relevant: #628 author yatesdr is the reviewer/subject-matter owner of CopyEngineGate; #729 author lukealonso. #629? n/a. #628 changed helios/src/server/runtime.rs (+29/−24) too and recorded prefill_started after executor.submit() — #729 deletes prefill_started entirely and rewrites observe_prefill_rate to use the step's ExecutionTiming instead of wall clock (which appears to also supersede that #628 change; likely #674 reconciled it).

Issue #627 (the deadlock #628 fixed) is the origin of the gate; not reopened by #729.

#6 [high] Community/process: #729 has no comments, no reviews, no labels; CI pending

PR #729 has zero discussion: pr_comments → "No comments"; read_item(729) → "Discussion (0):". No reviews, no labels, no reactions. Opened and last updated 2026-12-04 17:35 (same minute) — i.e. pushed once, never revised. read_item does not list a linked-issue relationship for #729 (no "It refers to" / "Referred to by" section), so the PR cites no issue numbers.

CI on head 150f705 is pending per the orientation packet (not green, not failed).

Compare with peers in the same area, which each drew an Autobot review: #626 (2 discussion entries: case-file + Autobot "Changes Requested"), #628 (6 entries incl. three rounds with a human reply from yatesdr), #674 (large review), #697 (2 entries, Autobot "Changes Requested"). So #729 is the only one of this cluster with no review yet — and the automated reviewer has not run on it. #674's and #697's flows show reviews auto-run ~90 min after push.

Note also: #729 carries NO labels, whereas comparable scheduler PRs carry area:scheduling/performance/bug (e.g. #626, #628, #697 have area:scheduling, enhancement, performance, triage:review). Absence of triage:review means it is not yet triaged.

#7 [high] Related work: #619 introduced the cancel(publish=false)+drain pattern #729 calls a defect

#619 "Unlock multi-token speculation and two-frame pipelining for host stops" (lukealonso, merged 2026-11-29, +282/−107, 16 files). Author's own 2026-11-29 comment responding to Autobot review: "Restored main's step-level single-frame feedback barrier and original flare_constrained_max_inflight contract for grammar-constrained requests… Host-stop requests now run with full speculative width and two-frame executor pipelining without a scheduler feedback barrier, retiring cleanly through scheduler.cancel (publish = false, slot retiring until any queued second frame drains) when a stop matches mid-burst."

This is the direct origin of the scheduler.cancel(publish=false) + drain pattern that #729's Why calls the defect ("cancel calls retire(handle, false) without publishing a terminal checkpoint"). #619 relied on cancel(publish=false) deliberately so that "speculative device progress beyond the host-selected stop [stays] private without publishing a terminal prefix-cache snapshot" — a correctness requirement for stops (never publish a snapshot whose KV extends past the user-visible stop). #729 now reuses the same site but adds a terminal-checkpoint path for grammar transitions, which is legitimate because there the exact endpoint (exact_len) is known. Notable: #729 must therefore keep the overshoot case (skipped > 0 / consumed_tokens > exact_len) on the old cancel path — which its body does state.

#619 also cited open issue #530 and closed #210; and #626 was "Referred to by" #619's relations. #619's Autobot review had already raised the pipelining/feedback trade-off: "Removing grammar_constrained || host_stops from step-level feedback barriers… can simultaneously double constrained-request ITL and drop total tokens/sec" — #729's Why point 1 makes the symmetric argument for the opposite direction ("setting grammar_constrained = false during reasoning also enabled two-frame pipelining for zero speculative width gain").

Chain: #619 (cancel-based retirement for stops) → #626 (reuses cancel for grammar reasoning transitions) → #729 (replaces cancel with checkpoint park for grammar transitions). Same author throughout: lukealonso.

#8 [high] Related work: #645 introduced PrefillCostModel but explicitly not for Mixed; #729 extends it

#645 "Overhaul Helios prefill scheduling, cost modeling, and two-frame pipelining" (lukealonso, merged 2026-11-30, +1886/−204, 21 files, closes #485) is the PR that introduced the exact machinery #729 extends to GraphKind::Mixed. #645's description: "Replaced single-median prefill estimates with PrefillCostModel: 6 strata crossing u <= 0.5 / u > 0.5 with start_position < 4096 / 4096..32768 / >= 32768 (each keeping a 9-sample rolling median via shared Ring9<T>) and exact 3-parameter relative-error-weighted NNLS fitting theta_0 + theta_1 * u + theta_2 * (start_position / 4096)", plus "Narrow-fill upward extrapolation (u_max - u_min < 0.15, u > u_max) applies a bounded 4× constant-throughput floor t_at_umax * min(u / u_max, 4.0)" and smaller-capacity peer context-slope borrowing.

So #729's third bucket ("stratify Mixed graph costs") is a direct extension / follow-through of #645, whose own description explicitly listed a residual gap: #645's "[Mixed-graph fixes]" only wired powered_curve/forecast_tokens into Mixed rate paths and routed discovery through effective_prefill_catalog — it explicitly left GraphKind::Mixed on the flat 9-sample median, which is precisely the defect #729 fixes. #729's doc hunk is an in-place edit of the paragraph #645 wrote in docs/scheduling-runtime-design.md (the "six fill-ratio and KV-context depth buckets" sentence becomes "six positive-fill and KV-context depth buckets … plus a zero-fill bucket for decode-only MIXED executions").

#645's Autobot review was "Changes Requested" with 2 blockers, and noted charter #210 non-compliance ("fails Charter #210… no served-workload A/B baseline over main"). It did however carry live SM120 A/B numbers (Qwen3.8-27B TP1: B=8 burst 398.6 → 497.6 tok/s, +24.8%).

#485 (closed by #645) is the origin issue: "Scheduler ActionCosts aliases short- and long-context prefill timings, causing chunk-size drift at 64k–128k". #729's Mixed stratification is the same class of defect (aliasing distinct work regimes into one median) applied to a graph kind #645 didn't cover — but #729 does not cite #485 or #645.

Relevant open follow-ons to #645 in the same code: #661 (merged, "explore smaller prefill chunks under active age-priced streams"), #663 (merged, "price first-output waiting age on incumbent decode rounds"), #681 (merged, "use active cohort mean in coalescing horizon"), #644 (merged, per-step speculative calibration). These all touch scheduler/cost.rs/policy.rs — the same files #729 changes.

#10 [high] Process: more pr_diff over-reporting — #659's null-row guard and codec test rewrites

Two large-looking hunks in pr_diff for helios/src/offload/transfer/codec.rs are not #729's but #659's (helios/src/offload/transfer/codec.rs is in pr_files; the changes below are #659's):

Genuinely #729's in codec.rs (per its own description, and consistent with the diff): partition_restore_pages / PageRunKind / PageRun / restore_single_unit / with_gpu_codec_locked / try_with_gpu_codec_locked / removal of all_pages_cpu_path and the leading GPU run loop / the transform_ns skip on pure-Literal batches (if items.iter().any(|(_, route, _)| *route != DecodeRoute::Literal)).

Also note #659's own merge risk section warned: "Silent-corruption blast radius if row zero is written: Aliasing row 0's leading granules onto one writable physical page turns any stray write to StateSlotId(0) into multi-granule corruption" — i.e. the device_spans null-row guard is a safety invariant. #729's restore_single_unit refactor moves the row path through the same device_spans(geometry, layout, true, u64::from(slot.0)) call, which still rejects slot 0; the guard survives the refactor (the diff of device_spans shown is #659's addition, and #729's restore_single_unit calls it).

#11 [high] Related work: open PRs overlapping #729 in cost.rs and admission.rs (merge-order risk)

#715 (open, original-el8, priority contributor) "helios,ignition: implement additive packed multi-request prefill (Contract 3)", opened 2026-12-04 00:36, updated 15:26, +1638/−56, 20 files. Its Autobot Round-2 review explicitly describes changing the same cost-model functions #729 changes: "gate PrefillCostModel and context-slope refresh on batch == 1" (helios/src/scheduler/cost.rs:581-583,606-607,644-659,969). #729 adds refresh_prefill_context_slopes handling for GraphKind::Mixed and changes entry creation to key.kind.is_prefill() || key.kind == GraphKind::Mixed at exactly those sites. → Direct textual conflict in helios/src/scheduler/cost.rs; merge order must be coordinated. #715 also touches policy.rs (+342), checkpoints.rs, scheduler.rs, server/runtime.rs, model/packing.rs, model/tests.rs, policy_tests.rs — all files #729 changes. #715's body references #621, #645, #655, #661, #663, #693, #697, #718, #571.

#710 (open, original-el8) "Coalesce mapped host VMAs for THP, harden speculative cost/forecast tracking, and update GB300 AOT compile pool" — also touches helios/src/scheduler/cost.rs. #301 (open, shadownetX) "feat(scheduler): persist learned graph costs across serving restarts" — touches cost.rs; a persisted-cost format would interact with #729's new zero_fill bucket and mixed_context_slopes (neither is in any on-disk schema today, per the diff). #621 (open) "Validate scheduler admission against the core parameter declarations" — touches model/admission.rs, which #729 changes (validate_continuation, from_continuation, grammar_enabled). #718 (open) "prefill-only KV handoff, announce barrier, and bounded pool-only capture" — touches the same 7 files per the orientation packet.

Other cost.rs predecessors (merged, establishing context): #645 (PrefillCostModel), #655 (retain measured snapshot cost), #661 (smaller prefill chunks under age-priced streams), #608, #555 (intermediate batch capacities), #510 (packed speculative shapes), #459 (price checkpoint candidates without walking every prefill chunk).

codec.rs predecessors (merged): #659 (null-row sentinel, same author, 1 day prior), #628 (CopyEngineGate), #525 ("parallelize GPU rANS setup and overlap single-buffer page capture batches" — the PR that created the single leading GPU batch loop in restore_window that #729 says "stops on the first non-GPU page"), #504 (pure-CUDA+CPU lossless KV compression, introduced the codec).

#14 [high] Project fit: model-agnostic and no ABI change align; no served benchmark (#210) and no linked issue diverge

Charter (read_charter) lines relevant to #729:

Where it lines up:

Where it does not line up:

Also relevant: #210 is referenced by the charter and by #619/#626/#645 as the benchmark requirement; #210 is a closed issue ("Qwen3.8 Flash Next DFlash2: mixed prefill rounds, YaRN serving, and served measurements from a fork").

#15 [high] Claims vs evidence: most mechanisms verified statically; all performance claims unmeasured

Claims in #729's body vs what backs each. Verified-by-me (static reading of the diff at head 150f705) unless marked claimed.

  1. "Added Admission::grammar_enabled and updated ValueSource::GrammarEnabled packing so Init/Restore … packs grammar_enabled || grammar_mask.is_some()" — verified: helios/src/model/packing.rs diff values.push(i64::from(admission.grammar_enabled || admission.grammar_mask.is_some())). Admission::grammar_enabled + set_grammar_mask(mask, enabled) added in helios/src/model/admission.rs.
  2. "Added RequestScheduler::{set_grammar_constrained, pause_for_park, finish_for_park} and LiveRequest::{pending, deferred_prefill, paused_for_park}" — verified in helios/src/scheduler.rs: all three guards are atomic pre-check-then-mutate with typed Err strings; set_grammar_constrained rejects pending != 0, Inbound, Finishing, and Snapshot without boundary_capture; pause_for_park requires pending != 0; finish_for_park rejects pending != 0, Inbound, and a BoundaryKind::ConditionedWindow capture. paused_for_park added to eligible (policy.rs:332-340), starvation detection, reservation refill, preemption, and snapshot_discovery clearing.
  3. "Non-speculative models… keep grammar_constrained = true (no two-frame pipelining) and initialize grammar_enabled = true with grammar_mask = None" — verified: Incoming::spec(speculative) sets grammar_constrained: grammar.is_some() && (!speculative || !speculative_grammar_reasoning()); device_grammar_enabled = grammar.is_some() && (!unmasked_reasoning || !speculative).
  4. "Speculative models with per-step GrammarEnabled bindings … toggle in place when skipped == 0 && pending == 0 && extra == 0" — verified: sampling_graphs_bind_grammar_enabled() requires ValueSource::GrammarEnabled on every Prefill|TerminalPrefill|ScoredPrefill|Decode|Speculative|Mixed|Resume graph and returns false if any lacks it; can_toggle_live also additionally requires live.error_code.is_none(), a non-Inbound/Finishing phase, and not Snapshot with a published terminal.
  5. "…or skipped == 0 && pending == 1: publish a terminal checkpoint (finish_for_park -> Snapshot -> finish -> Restore), pausing while an in-flight second frame drains and verifying consumed_tokens <= exact_len" — verified: PendingGrammarPark{exact_len, emitted, remaining, speculative_reasoning, drop_reasoning, waiting_for_drain}; drain loop checks live.pending() == 0, then live.error_code.is_some() → fail+finish, else consumed_tokens <= exact_len && !deferred_prefill → finish_for_park, else falls back to the legacy GrammarTransition (cancel). Generation accounting uses park.emitted rather than live.generated_tokens while a park is pending (clear_active_slot path).
  6. "Device errors on the draining frame propagate instead of re-admitting" — verified: request.incoming.fail(ExecutionError::Device { code: error }.into()) then scheduler.finish(handle).
  7. "overshoot … retains the existing cancel(handle) rollback path" — verified: else { transitions.push(GrammarTransition{…}) } when skipped != 0 or error_code.is_some() or deferred_prefill().
  8. "Replaced the single leading GPU loop in restore_window with partition_restore_pages … and restore_single_unit, preserving maximal GPU-batched runs after leading or interleaved Literal/CPU/singleton pages" — verified: partition_restore_pages walks routes producing maximal same-class runs capped by gpu_batch_cap/cpu_batch_cap, >1 → Batch else Single; the old all_pages_cpu_path and else { break; } GPU loop are deleted. The row path is factored into restore_single_unit(row=true, …).
  9. "skipping CPU transform_ns accounting on pure-Literal batches" — verified both in decode_window (if items.iter().any(|(_, route, _)| *route != DecodeRoute::Literal)) and restore_single_unit.
  10. "Routed all five GPU codec lock sites … through with_gpu_codec_locked and try_with_gpu_codec_locked, which always acquire CopyEngineGate::enter_offload_batch before gpu.codec.lock()/try_lock()" — verified in code, and this is a reversal of #628's recorded invariant (see the related-work entry).
  11. "Enabled PrefillCostModel for GraphKind::Mixed with a zero_fill bucket …, fallback to t_at_umin when NNLS clamps theta_0 to zero, u_min > 0 gating …, and same-(batch, width) peer KV-context slope borrowing" — verified in helios/src/scheduler/cost.rs (see the change-detail entry).
  12. "Updated next_progress, continuation_candidate, mixed_candidates, resize_prefill, delivery_references, and service_rates to query GraphKind::Mixed durations at live (work, start_position)" — partly verified: policy.rs mixed_candidates (both the constant and the new non-constant predictor branch) and the following == GraphKind::Mixed path in next_progress are confirmed; service.rs service_rates/continuation_candidate were replaced shape_duration → mixed_entry/mixed_duration; delivery_references and resize_prefill were not individually located.
  13. "all new unit, scheduler, runtime-phase, and codec tests pass" / "live SM120 GPU codec capture/restore and CopyEngineGate tests pass on RTX PRO 6000 Blackwell" / "all bounded TLA+ lifecycle conformance suites pass" — author-reported only, no CI run (CI pending), no logs attached. Of the 10 named new tests, the two codec ones and the two cost/policy ones map to plausible new test bodies; the listed model::tests::grammar_enabled_unmasked_packs_enabled_with_cached_all_ones_mask_and_toggles_in_place is consistent with the diff.
  14. "Expected serving impact (not benchmarked end-to-end here): eliminates 2K-32K KV and recurrent state wipes…" — explicitly a claim without measurement. The "2K-32K" figure has no supporting measurement or citation anywhere in the PR.
  15. Limitation: "scripts/scheduling_sim/ models scalar per-graph durations without per-fill/per-context NNLS strata." — accurate and self-disclosed; it means Layer-2 simulator validation of the Mixed pricing change was not done (the repo's design-review hierarchy expects a simulator gate; cf. #715's review flagging exactly that).

#16 [high] Reach: reasoning/structured-output users, older speculative cores, TP peer-copy users; docs gap in core/mtp/offload docs

Who/what #729 affects.

Users / operators:

Configuration and defaults: #729 adds no new flags, no new policy fields, no new defaults — verified: no PolicyConfig change, no CLI/--scheduler-* addition, no new env var in the diff. Existing defaults (scheduler_checkpoint_extra_work_fraction = 0.05, estimate_ttl_ns) are untouched by this PR (the budget_interior_anchor/preserve_message_anchor default-behavior change is #697's, already merged). The only documented default interaction: docs/scheduling-runtime-design.md's cost-model spec now says Mixed uses the same strata + a zero-fill bucket.

Compatibility / dependencies / deployment: no Protobuf, no core-format, no .cu kernel, no dependency change (Cargo.toml untouched — not in the 14-file list). Existing cores load. No multi-host wire change. No on-disk format change (though note: nothing about Mixed strata or mixed_context_slopes is persisted either — cf. open #301 which wants to persist learned costs; #729's new strata would need to travel with that design).

Documentation: one file — docs/scheduling-runtime-design.md (+23/−18), two hunks: the duration-estimates section (stratification now covers MIXED + zero-fill bucket + u_min > 0 floor wording + (batch, width) peer slope) and the checkpoint-anchor section. Note the anchor hunk describes #697's already-merged behavior, not new work in #729 — so the docs diff mixes a description of merged behavior with the Mixed change. helios/README.md, docs/core-design.md, docs/cli-design.md, docs/prefix-cache-offload.md, docs/mtp-design.md were not updated, even though #729 changes grammar-transition behavior (documented in docs/core-design.md and docs/mtp-design.md by #626) and codec lock order (documented in docs/prefix-cache-offload.md by #628, which states the lock-order invariant #729 reverses). That is a documentation gap: a present-state doc now contradicts the code.

Tests: every one of the 10 named new tests is in-tree; test count in helios --lib is 1917 passed / 49 ignored per the author (the 6 excluded HF chat-template tests recur across #626/#645/#659/#697 bodies — a known environment gap, not specific to #729).

#17 [high] Why: defects were self-introduced by #525/#626/#628/#645 days earlier; no issue tracks any of them

Why — the problem, its provenance and its age.

The three defects #729 fixes were all introduced by recently-merged PRs in the same 5-day window, not by long-standing latent bugs. There is no issue tracking any of them, and no user report.

  1. Grammar-transition KV wipe. Introduced by #626 (merged 2026-11-30, same author) whose transition design was "cancel the live slot via RequestScheduler::cancel … parking the truncated prefix … then Restore + chunked Prefill over the reasoning tokens since that checkpoint". #626's own body disclosed the cost ("Transition cost and limitations: Leaving speculative reasoning incurs one slot transition (cancel + Restore … + chunked Prefill over the reasoning tokens since that checkpoint)"), and its Autobot review flagged "Every boundary transition re-prefills R reasoning tokens since the prompt-end checkpoint (runtime.rs:2407-2449)". So the defect was known and accepted 4 days before #729. The underlying user-facing problem is older and tracked in open issue #530 ("Structured output (json_schema / json_object) decodes ~2-3x slower than unconstrained on DeepSeek-V4.1-Flash-1017 gb202 TP4 (MTP drops to width one)"), which #626 and #619 both cite and #729 does not cite. The "2K-32K KV and recurrent state wipes" figure in #729's body has no measurement, citation, or issue behind it.

  2. Codec GPU batching stopping on the first non-GPU page. Introduced by #525 (merged 2026-11-25, yatesdr): "Chunked capture waves to at most 4 batches per mutex acquisition in codec.rs" and its concurrent table already showed foreground restores falling back to CPU decode (27/23 → 23/27 GPU/CPU-FB). #525's own review wrote: "'foreground restores' has no referent (it is restore's try_lock at codec.rs:639 → CPU pool at 660-687)". The lock-order half was introduced by #628 (merged 2026-12-01, yatesdr), which explicitly stated the opposite invariant. Both #525 and #628 are merged and reviewed; #729 has no linked bug.

  3. Mixed flat nine-sample median. Introduced by #645 (merged 2026-11-30, same author), which built PrefillCostModel for pure prefill only and said so. The class of defect is tracked by #485 ("Scheduler ActionCosts aliases short- and long-context prefill timings, causing chunk-size drift at 64k–128k"), closed by #645 — but only for pure prefill. #729 does not cite #485 or note that Mixed remained uncovered.

How widely wanted: the outcomes are wanted — open issue #530 has been open across at least #619, #626 and #729; #485 was a real user-visible chunk-drift bug. But no one has asked for #729 itself: there is no issue, no request, no comment, and the PR is one day old. Ownership is entirely internal/self-directed cleanup by the same author, which is consistent with the charter's "solve the right problem in the right place" but also means there is no external validation that these are the highest-value fixes.

Age: opened and last updated 2026-12-04 17:35 (same minute) — under a day old at the time of this file. One commit-series push, never revised.

#18 [high] Process: open & ready-for-review, CI pending, untriaged, no reviewer engaged, --mutations unrun

Process state (all from read_item(729) + orientation packet):

#19 [high] Research summary

Case file gathered for PR #729 (open, ready for review, head 150f705, +2219/−370, 14 files, one day old). 18 scratchpad entries cover all eight angles.

Most important things a reader could not learn from the description:

  1. pr_diff over-reports badly — the local main ref is stale (git can't read c513e46; main predates #655, #660, #674, #697, #709). The authoritative file list is the 14 in pr_files. Many hunks visible in the diff belong to already-merged PRs, not #729: RowRestoreLatency/worth_restore/observe_prefill_rate/clear_pool_lookup/offload::open reordering → #674/#709; preserve_message_anchor/budget_interior_anchor → #660/#697; snapshot_discovery/measured_duration → #655; device_spans null-row guard and the codec GPU-test rewrites (row_capacity: 3, StateSlotId(1)/(2)) → #659.

  2. #729 reverses a lock-order invariant that #628 deliberately established. #628: "Preserve strict lock ordering (gpu.codec before CopyEngineGate) to prevent lock inversion against try_lock". #729 does the opposite (with_gpu_codec_locked/try_with_gpu_codec_locked acquire the gate first) via the same five call sites. Its rationale is coherent, but #628's recorded invariant is superseded, not accidentally violated — and enter_offload_batch blocks untimed, so the order swap moves where a foreground restore can block.

  3. All three defects are self-inflicted by recently merged PRs, not long-standing: the cancel-based grammar transition is #626's (same author, 4 days earlier, which had disclosed the re-prefill cost); the codec batching is #525's; the lock order #628's; the flat Mixed median #645's (whose PrefillCostModel #729 merely extends). No issue tracks any of them, and #729 cites no issue, PR, or Fixes/Closes trailer — while open issue #530 (structured output 2–3× slower) and closed #485 are the uncredited ancestors.

  4. The "2K–32K KV wipe" and all performance claims are unmeasured; the PR says so. That is the clearest charter divergence (#210 requires served-workload A/B; #645/#659/#674/#715 shipped live numbers). Docs were updated in only one file, so docs/core-design.md (not opened), docs/mtp-design.md (not opened) and docs/prefix-cache-offload.md (not opened) now describe behavior the code no longer has.

  5. Merge-order risk is concrete: open #715 gates PrefillCostModel and context-slope refresh on batch == 1 at exactly the cost.rs sites #729 edits; #710 and #301 also touch cost.rs; #621 touches admission.rs; #718 overlaps 7 files.

Also recorded: the change's mechanics verified statically item-by-item (grammar paths, PendingGrammarPark drain/consumed_tokens <= exact_len guard, partition_restore_pages, zero_fill bucket/t_at_umin/theta_0 fallback/(batch,width) peer slopes), including one pure-prefill side effect (u_min > 0.0 floor gate); author is a charter priority contributor finishing their own merged series, with yatesdr owning the codec/gate lineage and original-el8 conflicting in cost.rs; zero comments, zero reviews, no labels, no Autobot case file, CI pending, --mutations and Kani unrun.

#20 [high] File map: what #729 actually changes in each of its 14 files (plain terms)

The 14 files #729 changes, with #729's own content (vs. hunks that are already-merged work — see the stale-base entry 3 — marked NOT #729):

  1. helios/src/server/runtime.rs (+270/−26) — THE core of bucket 1. Adds Incoming::spec(speculative) making grammar_constrained stay true for non-speculative models; device_grammar_enabled computation; sampling_graphs_bind_grammar_enabled(config) (scans config.contract.graphs for ValueSource::GrammarEnabled on Prefill/TerminalPrefill/ScoredPrefill/Decode/Speculative/Mixed/Resume); struct PendingGrammarPark{exact_len, emitted, remaining, speculative_reasoning, drop_reasoning, waiting_for_drain}; three-way branch in Worker::complete (toggle-in-place / checkpoint-park / legacy GrammarTransition cancel); a post-complete drain loop over measured_step.lanes; the park completion arm in the Finishing branch (Snapshot → park_with_tokens(..., publish_terminal=true)); generated-token accounting switched to park.emitted; Active.pending_grammar_park field. NOT #729: RowRestoreLatency/RowRestoreSource, worth_restore/estimated_prefill_saved_seconds, observe_prefill_rate rewrite, clear_pool_lookup/pool_lookup_reissued, free close_store + offload-open reordering, attach_async_transfers (#674/#709/#711).
  2. helios/src/server/runtime/phase_tests.rs (+503/−15) — 5 new named phase tests + preserve_message_anchor: false fixture updates (the latter are #697's).
  3. helios/src/scheduler.rs (+78/−0) — RequestSpec.preserve_message_anchor & LiveRequest.preserve_message_anchor NOT #729 (#697); #729 adds LiveRequest.paused_for_park + pending()/deferred_prefill() accessors, paused_for_park exclusions in starvation/reservation-refill/preemption/growable_output scans, snapshot_discovery clearing in retire/Snapshot arms, and set_grammar_constrained/pause_for_park/finish_for_park. NOT #729: freeable_prefix_scratch, partition_conditioned_windows/conditioned_window_ends, refresh_admission_plan_in_place, AdmissionPlan: Clone, evict_for_pressure_cached (attribution unresolved; most plausibly #674/#715-era).
  4. helios/src/scheduler/policy.rs (+276/−10) — bucket 3 non-test work + paused_for_park in eligible. New non-constant-predictor branches in mixed_candidates and the following == GraphKind::Mixed path of next_progress (per-prompt cohort re-scoring with pred.predict(work, start_pos) and decode at pred.predict(0,0)); resize_prefill/duration uses mixed_duration(batch, capacity, prefill, work, scheduled_consumed).
  5. helios/src/scheduler/cost.rs (+309/−38) — bucket 3 mechanics (see entry 9). NOT #729: fresh_duration→measured_duration and its test (#655).
  6. helios/src/scheduler/service.rs (+13/−8) — shape_duration(Mixed,…) → mixed_entry(...)/predict at live (work, start_position) and (0,0) for decode-only lanes; service_rates and continuation_candidate.
  7. helios/src/scheduler/tests.rs (+78/−0) — set_grammar_constrained_and_checkpoint_park_guards_reject_invalid_states_atomically.
  8. helios/src/scheduler/policy_tests.rs (+68/−0) — mixed_candidates_price_fill_and_kv_context_per_prompt_and_decode_only.
  9. helios/src/model/admission.rs (+15/−2) — Admission::grammar_enabled, set_grammar_mask(mask, enabled), from_continuation(...)/validate_continuation(...). The validate_continuation/initial_prompt_tokens half attribution unresolved (not described in #729's body).
  10. helios/src/model/packing.rs (+3/−1) — GrammarEnabled packs grammar_enabled || grammar_mask.is_some().
  11. helios/src/model/tests.rs (+95/−1) — grammar_enabled_unmasked_packs_enabled_with_cached_all_ones_mask_and_toggles_in_place + fixtures.
  12. helios/src/model/packed_round_tests.rs (+1/−1) — fixture.
  13. helios/src/offload/transfer/codec.rs (+487/−250) — bucket 2: partition_restore_pages/PageRun/PageRunKind, restore_single_unit, with_gpu_codec_locked/try_with_gpu_codec_locked, deletion of all_pages_cpu_path + the leading GPU run loop, Literal-only transform_ns skip, row path factored out. NOT #729: device_spans null-row guard, 3-row codec test rewrites, device_spans_rejects_null_state_slot_zero (#659).
  14. docs/scheduling-runtime-design.md (+23/−18) — two hunks: Mixed stratification spec (bucket 3) and the checkpoint-anchor paragraph (describes #697's already-merged behavior).

Net: bucket 1 ≈ runtime.rs + admission/packing + scheduler guards; bucket 2 ≈ codec.rs; bucket 3 ≈ cost/policy/service + doc hunk. All three are independent of one another — separable for review or merge.

#21 [high] Report skeleton: cross-references and the connection graph

Suggested Key findings order (most-unlearnable first):

  1. Stale-base diff inflation + which hunks are whose (entries 3, 10). Anyone re-deriving the diff will otherwise mis-attribute ~half of it.
  2. #729 reverses #628's explicit lock-order invariant in the same five codec sites, and the swap changes where a foreground restore can block (enter_offload_batch blocks untimed) (entries 5, 12).
  3. All three defects are self-introduced by merged PRs 1–9 days earlier (#525 → batching, #628 → lock order, #626 → grammar cancel path, #645 → flat Mixed median); no issue tracks any of them; #530 and #485 are the uncredited ancestors (entries 4, 7, 8, 17).
  4. Zero performance evidence; the PR says "not benchmarked end-to-end here" — charter #210 divergence; peers #645/#659/#674/#715 all shipped live A/B (entries 14, 15).
  5. Docs gap: only docs/scheduling-runtime-design.md updated, so docs/core-design.md/docs/mtp-design.md (#626's grammar-transition docs) and docs/prefix-cache-offload.md (#628's lock-order doc) now contradict the code (entry 16).
  6. Concrete merge-order conflicts: #715 lands on the same cost.rs sites, #710/#301 also cost.rs, #621 admission.rs, #718 7 files (entry 11).
  7. A behavior change for older speculative cores without GrammarEnabled bindings: they now pay a Snapshot+Restore per reasoning transition (entry 16).
  8. One pure-prefill side effect inside bucket 3: the u_min > 0.0 floor gate plus a zero-fill point entering fit() (entry 9).

Connection graph to state explicitly:

Angles with genuinely little to report: recent-activity commit history is unavailable (orientation packet git errors; search_history fails identically) and the packet states no default-branch commits touched these files since cc0a49d; community is empty (0 comments/reviews/reactions, no Autobot case file, no labels). Both should be written up as findings rather than omitted.

#23 [high] AMENDMENT 2026-12-05: PR #729 revised at 68fe22f — review blockers fixed, scope and evidence changed

Supersedes parts of entries #1–#18 and the report #22. New head 68fe22fd ("helios: harden grammar park preemption, non-blocking copy gate, mixed cost bounds, and lifecycle verification"), 2026-12-04 23:33; +2954/−591 over 24 files (was +2219/−370 over 14). Labels now area:scheduling, bug, performance, triage:review. PR body rewritten: four-part form, now links #530/#626/#628/#645 explicitly ("building on #530, #626, #628, and #645"). Community: flare-autobot case file (18:00) and Autobot Review (18:24, Changes Requested, 5 blockers) at 150f705; still zero human comments or reviews; head has not been re-reviewed.

RESOLVED (my earlier findings now stale):

  1. Lock-order stall (my finding 3, entries #5/#12): new CopyEngineGate::try_enter_offload_batch (helios/src/offload/copy_gate.rs:204-212) returns None without waiting or mutating offload_batches_waiting/offload_wave_remaining, via shared offload_must_wait (copy_gate.rs:168-176). try_with_gpu_codec_locked (codec.rs:895-906) now does codec.try_lock().ok()? first, then try_enter_offload_batch()? — the unbounded enter_offload_batch wait ahead of try_lock and the "burns two wave tokens" defect are both gone. Background captures keep the blocking gate→codec path with_gpu_codec_locked (codec.rs:881-889). Only non-helper site: codec.rs:125 codec.lock().unwrap().page_batch_cap() at codec construction (no gate; construction-time, no peer graphs).
  2. Review's blocker "publish/park_if_preempted ordering discards grammar mode and cut.after": fixed — Worker::publish applies pending_grammar_park before park_if_preempted (helios/src/server/runtime.rs:2561-2589) and park_if_preempted returns early when a park is pending (runtime.rs:2786-2792); !live.paused_for_park() is part of the arm. New named test preemption_coincident_with_grammar_transition_preserves_grammar_mode_and_reasoning_budget (phase_tests.rs) + mutation guard in verification/helios-lifecycle/check.py.
  3. Layer-3/TLA+ gap: Lifecycle.tla adds Paused == 3 (:11), PauseForPark/FinishForPark/ToggleGrammar (:63-80), phase domain and AllowedEdge 7/8/9 (:99, :174-176); lifecycle_tests.rs tracks 7 new coverage booleans and checks rejections + "paused request never planned"; README.md:63-65 maps model→Rust. check.py adds 3 scheduler mutations + 1 policy.rs paused_for_park-bypass mutation + 1 runtime publish-ordering mutation + 1 copy_gate try-entry mutation. Model nuance: ToggleGrammar is an identity transition and models only phase = Live ∧ not-queued, weaker than the Rust guard (which also excludes pending != 0, Finishing, terminal Snapshot).
  4. Docs gap: now five docs updated — docs/{api,core-design,mtp-design,prefix-cache-offload,scheduling-runtime-design}.md. prefix-cache-offload.md:95-107 describes gate-before-codec + non-blocking foreground fallback + run partitioning. scheduling-runtime-design.md:466-484 matches code (pos_u_*, narrow positive-fill floor, zero_fill-anchored theta_0).
  5. Grammar-state model: AdmissionGrammar::{Disabled,UnmaskedEnabled,Masked(Vec<i32>)} (helios/src/model/admission.rs:59-88), re-exported helios/src/model.rs:24; GrammarEnabled packs admission.grammar.is_enabled() (packing.rs GrammarEnabled arm); masking test uses grammar.mask().
  6. Ordering fix in ToggleInPlace: set_grammar_constrained now runs before mutating grammar_reasoning_mode/reasoning/admission (runtime.rs:2389-2399), so a rejected toggle no longer leaves admission mutated. decide_grammar_transition (runtime.rs:517-545) centralises the three-way decision; CheckpointPark{pause_for_drain} replaces waiting_for_drain; park_if_preempted is suppressed while a park is pending.
  7. Guard refinement: set_grammar_constrained permits Snapshot with boundary_capture (scheduler.rs:3244-3251); finish_for_park (scheduler.rs:3271-3299) rejects a BoundaryKind::ConditionedWindow capture and clears paused_for_park (unpause path, :3287).
  8. Codec perf: per-page DeviceSpan/&[u8] clones removed (decode_pages_cpu_batch/restore_single_unit take slices; partition_restore_pages_by avoids the route Vec).
  9. Evidence for bucket 1: live flare run A/B on SM120 RTX PRO 6000 serving signed Qwen4-35B-A3B (origin/main f705086b vs 68fe22fd), 3 trials × 2 prompt lengths, --mtp-draft-tokens 0: reasoning-close gap 41.2→12.4 ms (6,382 tok) and 58.5→12.9 ms (20,648 tok), 6/6 schema-valid JSON; counters: prefill tokens 84,638→81,832, prefill launches 62→54, snapshot backing pages 2,880→2,112.

STILL OPEN AFTER THE REVISION:

#24 [high] AMENDMENT to claims-vs-evidence: which of #729's claims are now measured at 68fe22f

Amends entry #15 (claims vs evidence at 150f705). At 68fe22fd the claims table changes as follows.

NOW MEASURED (bucket 1 only), live flare run SM120 RTX PRO 6000, signed Qwen4-35B-A3B-FLARE-gb202-tp1-202612032159-signed, origin/main f705086b vs 68fe22fd, 3 trials × 2 prompt lengths, strict JSON schema response_format, identical seeds:

STILL UNMEASURED / VERIFIED ONLY BY UNIT + FORMAL CHECKS (self-disclosed in "Unrun checks and material limitations"):

Judgment for the report: the evidence gap has shrunk from "all three buckets unmeasured" to "one of three buckets measured on a real served workload, one measured at unit/GPU-test level only, one unit-only and explicitly outside the simulator's model" — but the scope grew from 14 to 24 files while doing so.

#25 [high] Research summary

Amendment recorded as scratchpad entries #23 and #24; they supersede parts of #1–#21 and the report #22.

The PR was substantially revised (head 150f705 → 68fe22fd, +2219/−370 over 14 files → +2954/−591 over 24 files), triaged (area:scheduling, bug, performance, triage:review), given a case file and an Autobot Review (Changes Requested at 150f705), and rewritten to link #530/#626/#628/#645 and to ship a live served A/B for one of its three buckets. Five of my ten key findings are now stale and must be retracted or downgraded: the untimed-enter_offload_batch-before-try_lock stall (fixed by a non-blocking CopyEngineGate::try_enter_offload_batch, copy_gate.rs:204-212 (not opened), used after codec.try_lock in codec.rs:895-906); the publish/park_if_preempted ordering defect (fixed at runtime.rs:2561-2589, 2786-2792); the missing Layer-3 lifecycle coverage (Lifecycle.tla gains Paused plus three operations); the docs contradiction (five docs now updated, prefix-cache-offload.md:95-107 states the new lock order); and "zero performance evidence" (bucket 1 now has flare run A/B on SM120: 41.2→12.4 ms and 58.5→12.9 ms reasoning-close gaps, 6/6 schema-valid JSON).

What survives and what is new: bucket 2 stays unit/GPU-test-only and bucket 3 stays unit-only and explicitly outside scripts/scheduling_sim's model, so docs/design-review.md:234-251 is still unmet for those two; the revision discloses a live regression rather than fixing it (default MTP 5 at 20,648 tokens: 40.9 → 54.1 ms); the #715 conflict is now explicit and self-contradictory in a shared doc paragraph; #628's reversed lock invariant is still unrecorded in prose and unsigned by yatesdr; and the bundle grew to 24 files / four review surfaces while still drawing zero human review.

#26 [high] AMENDMENT to file map and scope: 24 files at 68fe22f, ten of them new

Replaces the per-file table in entry #20 (which described 150f705, 14 files, +2219/−370). New head 68fe22fd, +2954/−591, 24 files.

Ten files are new relative to the 150f705 set (the other 14 are the same paths with larger deltas):

Changed deltas on the pre-existing files: codec.rs +518/−255 (was +487/−250), cost.rs +376/−64 (was +309/−38), policy.rs +292/−57 (was +276/−10), runtime.rs +294/−71 (was +270/−26), phase_tests.rs +686/−24 (was +503/−15), admission.rs +53/−9 (was +15/−2), model/tests.rs +109/−24 (was +95/−1), scheduler.rs +82/−0, lifecycle_tests.rs now separate, docs/scheduling-runtime-design.md +26/−18 (was +23/−18). Unchanged: service.rs +13/−8, policy_tests.rs +68/−0, scheduler/tests.rs +78/−0, packing.rs +6/−6, packed_round_tests.rs +1/−1.

Void in entry #20: item 9 says Admission::grammar_enabled + set_grammar_mask(mask, enabled); at 68fe22f both fields and that setter are gone, replaced by AdmissionGrammar::{Disabled,UnmaskedEnabled,Masked(Vec<i32>)} (admission.rs:59-88) with is_enabled()/mask()/mask_mut() and Admission::set_grammar(AdmissionGrammar). packing.rs packs admission.grammar.is_enabled().

Void in entry #16: "one file — docs/scheduling-runtime-design.md" was the docs-gap finding; five docs are now updated and the codec doc states the new lock order. What survives of #16 is the behaviour-change-for-older-cores point, now with a measured cost (MTP 5 at 20,648 tokens, see #24), and the fact that docs/prefix-cache-offload.md still never states the gpu.codec-before-CopyEngineGate invariant in prose — the order exists only in the code comment at codec.rs:879-880.

Still absent from the 24-file list: helios/src/scheduler/checkpoints.rs and helios/src/server/request.rs, confirming those hunks in a raw pr_diff remain stale-base artifacts (entry #3) and are not #729's work.

#27 [high] AMENDMENT to charter mapping and to the Autobot-review baseline

Amends entry #14 (charter fit) and #18/#6 (process/community).

Charter items now satisfied at 68fe22fd that were not at 150f705:

Unchanged charter fit: model-agnostic (no model-name branches; the split is derived from config.speculative_widths.is_empty() and a scan of config.contract.graphs for ValueSource::GrammarEnabled); no new flags, no ABI or core-format change, no Protobuf, no .cu kernel; no on-disk format addition even though open #301 wants persisted learned costs (the new zero_fill strata and mixed_context_slopes exist only in memory).

Process baseline that must not be cited as current: the Autobot Review (2026-12-04 18:24, "Changes Requested", 5 blockers / 3 should-fix / 6 subtract / 3 nits) was verified against 150f705. Its blockers on lock order, publish/park ordering, and TLA+ coverage are addressed at 68fe22fd (see #23); citing them as live defects would be wrong. Its remaining valid content is the unbenchmarked buckets 2–3, the #715 textual conflict, the missing yatesdr sign-off for reversing #628's invariant, and the undisclosed legacy-core cost — all carried forward in #23/#24.

Community state at 68fe22fd: labels added (area:scheduling, bug, performance, triage:review), case file and one automated review, still zero human comments, reviews, or reactions, no assignee, no CI result reported for the new head, and no re-review (the hook auto-runs 90 minutes after a push; the push was 23:33).

#9 [medium] Change detail: Mixed NNLS stratification mechanics and its pure-prefill side effect

Third bucket of #729 (Mixed graph NNLS stratification), verified in the codec/cost diff (helios/src/scheduler/cost.rs):

Note the measured_duration rename (fresh_duration → measured_duration) and its test measured_duration_uses_smallest_measured_batch_and_retains_after_ttl are #655's work, not #729's (see entry 3).

Charter tension to note: the charter says "GPU kernel code: report concrete defects only" and "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over main on a served workload (#210)". #729's own body says "Expected serving impact (not benchmarked end-to-end here)" and under Limitations "No end-to-end exported-core flare run latency or throughput benchmark was run on this branch." Compare #645 (same author, same area) which did include live SM120 A/B tables, and #674/#628 which included them too.

#12 [medium] Change detail: CopyEngineGate.enter_offload_batch blocks untimed, so the order swap moves the block point

CopyEngineGate (introduced by #628, helios/src/offload/copy_gate.rs) verified at the stale-main ref but that file is unchanged by #729 so it is current:

#13 [medium] People: author is a priority contributor finishing their own merged series; area owners identified

Author: lukealonso, GitHub association COLLABORATOR, charter-listed priority contributor (read_charter: "Priority contributors (@voipmonitor, @original-el8, @lukealonso) carry extra weight—we never close their PRs out of hand as 'low value'"). 51 merged PRs in the last 180 days, 0 closed, 3 open (#728, #727, #723, all opened 2026-12-04, i.e. the same day as #729). Areas touched historically: helios/src (36), docs (31), ignition/preparation (20), tests/preparation (15), flare-cli/src (14).

The author's immediately preceding work is a rapid series on exactly these three subsystems, all merged within 5 days of #729:

Other people who work in these areas (from items_touching and related items):

Engagement on #729 itself: none (see the community entry). No one has reviewed it. Recent activity in the touched areas: the orientation packet could not list commits ("git: error: Could not read c513e46a79f3b6ac510235aaf09bcf055b841958"; search_history fails the same way), and states "Commits on the default branch since this pull request branched (cc0a49d), touching its changed files: none". That is consistent with #729 branching from a fresh cc0a49d main.