Correctness and contracts scratchpad · NVIDIA/hyperflare-inference #645

Raw Markdown for agents: https://autobot.eidonix.com/p/6a90b4b4-e9eb-4bf8-8a3e-e3ea30248ce7.md

#1 [high] Research summary

Correctness, Contracts & System-Level Consequences review — PR #645

I inspected the full diff of all 20 changed files plus the direct callers/contracts (scheduler.rs, policy.rs, cost.rs, checkpoints.rs, service.rs, utility.rs, model.rs, model/packing.rs, execution/{transport,threaded,parallel}.rs, threaded/protocol.rs + tests, server/runtime.rs, engram.rs, rounds.rs) and the docs/test deltas. Findings below are only what I verified by opening the files or diff; each has a citation, severity, verbatim quote, impact and fix.


F1 — Major: the checkpoint O(1) stride fast path is silently lost as soon as any partial-fill sample exists, contradicting the PR's stated invariant

helios/src/scheduler/checkpoints.rs:218-232:

        // With every cost known and constant across fill/context, the capacity cheapest per
        // token is chosen whole at each position whose chunk ends by the next window end, span
        // start or interval end: a smaller one fits unchanged, and a larger one only does worse
        // when cut short.
        let stride = catalog
            .iter()
            .try_fold(None, |best, entry| {
                let nanos = entry.non_terminal?.constant_ns()?;

helios/src/scheduler/cost.rs:99-101:

    pub fn constant_ns(&self) -> Option<u64> {
        self.constant_nanos
    }

constant_nanos is only populated when the NNLS fit yields theta1 == 0 && theta2 == 0 and u_max >= 0.75 (see the new fit(): let constant_nanos = (best_theta[1] == 0.0 && best_theta[2] == 0.0 && u_max >= 0.75).then_some(...)). Therefore a single partial-fill observation (u <= 0.5, i.e. any short tail — the exact workload #485 is about) puts theta == … nonzero or u_max < 0.75, constant_nanos becomes None, try_fold returns None, and stride is disabled for that graph permanently (until a 30 s TTL reset rewrites the strata).

Impact: every checkpoint-interval pricing falls back to the per-position walk at checkpoints.rs:270-339, which loops over the whole catalog for every chunk of every interval, and run_lengths/anchor_split_is_zero_cost call interval_prefill_ns two-to-three times per selection. This is the O(1) budget introduced by #459 and re-used by #550 — and the PR description claims "Constant predictors retain … the O(1) stride path", which is only true in the constant case. The regression is exactly in the regime #485 describes (tail-heavy, non-uniform fills), so the fix pays planning cost precisely where it was meant to save GPU launches. The existing budget tests (STRIDE_RUNS, ENTRY_LOOKUPS at checkpoints.rs:1305-1312, 2375-2378, 3485-3488) only assert the all-constant case, so nothing catches this.

Fix: don't gate the stride on a global constant. Keep a per-capacity stride when the predictor is fill-invariant in the leading term (i.e. use theta.predict(work, start) still, but hoist the cheapest capacity by evaluating predict at the two boundary fills of the interval and taking it when predict is monotone/convex in u), or at minimum record a fast path keyed on theta[1] == theta[2] for the pricing capacity that wins, and add a budget test asserting STRIDE_RUNS > 0 in a mixed fill/context regime.


F2 — Major: the "conservative upward bound" over-corrects without limit; the checked-in test encodes a 5.4× over-estimate of a full chunk

helios/src/scheduler/cost.rs:108-115:

        let u = work.clamp(1, cap) as f64 / cap as f64;
        let h = u * (start_position as f64 / PREFILL_CTX_SCALE);
        let mut pred = self.theta[0] + self.theta[1] * u + self.theta[2] * h;
        // Conservative constant-throughput upward bound when only a narrow partial-fill
        // regime has been observed, preventing short tails from poisoning full-chunk cost.
        if self.u_max < 0.75 && (self.u_max - self.u_min) < 0.15 && u > self.u_max && self.u_max > 0.0 {
            pred = pred.max(self.t_at_umax * (u / self.u_max));
        }

and the PR's own test (helios/src/scheduler/cost.rs test prefill_cost_model_prevents_tail_poisoning_and_tracks_fill_and_context):

        // Post-TTL reset with ONLY a single 128-token tail at 1.51 s: conservative upward
        // extrapolation must prevent 3584 full-chunk from looking cheaper than 4096 at 1.76 s.
        costs.advance_to(1_000_000_000 + ttl + 1, ttl);
        costs.observe(&step_for(3584, 128, 0), timing(1_510_000_000));
        assert_eq!(costs.prefill_duration(GraphKind::Prefill, 3584, 128, 0), Some(1_510_000_000));
        let guarded_full_3584 = costs.prefill_duration(GraphKind::Prefill, 3584, 3584, 0).unwrap();
        assert!(
            guarded_full_3584 >= 1_510_000_000 * 28 - 10_000_000,
            "single tail must not undercut full chunk: guarded={guarded_full_3584}"
        );

1.51 s × 28 = 42.3 s, while the same test earlier establishes the true full-chunk cost as 7.81 s. The bound is a pure tokens-linear extrapolation from a tail that is dominated by fixed overhead, so it is 5.4× too high — and it is not capped, not softened, and stays in force until nine full-fill samples displace the stratum medians (PrefillBucket is 9-deep).

Impact: after a TTL reset (30 s; estimate_ttl_ns) in any tail-heavy workload, the large prefill graph's duration is inflated ~5×. duration_ns is the denominator of ValueRate::new (utility.rs:124-134), so large-chunk prefill becomes unattractive and the scheduler prefers many short chunks — the exact round-robin thrashing change 1 is trying to remove, now caused by change 2. It also inflates expected_finish_ns (scheduler.rs:2431-2434) and therefore window_remaining() (policy.rs:423-438), stretching the queue window for the whole pipeline, and it flows into resize_prefill/materialize so the reported estimated_duration_ns of a real step is 5× off.

Fix: cap the extrapolation (e.g. bound by the last positive measured median of any stratum scaled by u/u_max, or by a max_slowdown multiple like #485's prototype's nearest-band slowdown), and require a minimum observation count before the bound replaces the fitted value. At minimum, assert an upper bound in the test rather than only a lower bound.


F3 — Major: prefill_duration is now used to gate submission-window expiry, and it can be ~3× smaller than the blended cost, so the new pipelining can be shut off by its own cost model

helios/src/scheduler/policy.rs:416-438:

    pub fn submission_window_available(&self, duration_ns: u64) -> bool {
        self.submissions.len() < 2
            && !self.submissions.values().any(|s| s.requires_feedback)
            && (self.submissions.is_empty() || duration_ns > 0)
            && self.window_remaining().is_some()
    }

    pub(super) fn window_remaining(&self) -> Option<u64> {
        let Some((_, first)) = self.submissions.first_key_value() else {
            return Some(0);
        };
        if self.now_ns >= first.expected_finish_ns {
            return None;
        }

window_remaining() returns None — a hard refusal, not a soft signal — the moment a still-in-flight frame's predicted finish has passed. The PR simultaneously changes what that prediction is for prefill, as its own phase test documents (helios/src/server/runtime/phase_tests.rs:1311-1318):

        if kind == GraphKind::Prefill {
            // The 13-token tail (200 ns) inside capacity 64 (seeded 1000 ns at full fill)
            // fits its own fill-ratio regime instead of averaging into the full-chunk cost.
            let est = worker.scheduler.estimated_duration_ns(&step).unwrap();
            assert!((195..=210).contains(&est), "partial prefill estimate={est}");
        } else {
            assert_eq!(worker.scheduler.estimated_duration_ns(&step), Some(600));
        }

That is a 600 → ~200 ns (≈3×) reduction in the planned duration of a short prefill tail on a real worker path, and it repeats for every short chunk because ActionCosts::get now routes all single-lane prefill steps through the predictor (cost.rs:679-691).

Impact: with the two-frame prefill pipeline enabled (scheduler.rs:1132-1143), frame N+1 must be submitted before frame N completes; but a 3× under-estimate makes expected_finish_ns expire early, window_remaining() returns None, and both submission_window_available (policy.rs:416) and commit (scheduler.rs:2348-2350, "in-flight execution requires completion feedback") refuse the next submission until a completion arrives. The result is a forced drain exactly on the short-tail chunks this PR wants to pipeline — the pipeline bubble reappears, just sourced from the cost model. Under contention this turns into head-of-line blocking: the loop must wait for feedback before it can plan anything at all.

Fix: separate the two uses of duration_ns. Either (a) make window expiry soft (return the remaining window as Some(0) and let the executor's frame accounting be the only gate), or (b) keep expected_finish_ns refreshed from the last observed completion rather than the plan-time prediction, or (c) floor the pipelining gate's duration at a fraction of the retained pre-existing median so a tail estimate cannot expire the window. Add an integration test that pipelines two short-tail chunks and asserts both are submitted without a feedback drain.


F4 — Major: a new always-on scheduling coefficient with no flag, no config key and no table entry

helios/src/scheduler/policy.rs (diff, PolicyConfig):

    pub checkpoint_extra_work_fraction: f64,
+   pub coalescing_horizon_tokens: f64,
 }
...
            adaptive_verification_alpha: 1.0,
+           coalescing_horizon_tokens: 64.0,

validated at policy.rs:225-230 together with the other prices. The PR's changed-file list contains no flare-cli/src/cli.rs (not opened) and no helios/src/server/config.rs (not opened), so unlike every sibling coefficient (--scheduler-terminal-value, --scheduler-terminal-age-price, --scheduler-checkpoint-extra-work-fraction, --mtp-adaptive-verification-alpha) this one is unreachable from flare run and from the server config. The docs/scheduling-runtime-design.md diff adds three prose paragraphs (lines +195-207, +400-423, +567-577) but does not add the field to the defaults table it maintains.

Impact: a new global utility bonus (LaneValue::prefill_finish, utility.rs:88-95) changes admission ordering for every prefill-capable core by default, with no opt-out and no operator-visible knob. This is the "be explicit, no magic defaults" charter point, and it also means an operator who suspects a scheduling regression cannot bisect it without rebuilding.

Fix: add --scheduler-coalescing-horizon to flare-cli and scheduler_coalescing_horizon_tokens to the server config parser alongside the existing keys, and add the row to the PolicyConfig table in docs/scheduling-runtime-design.md plus helios/README.md (not opened).


F5 — Minor: the completion-attributed "first output" flag and the service-rate normalizer use two different cursors

helios/src/scheduler/policy.rs:749-752 (diff):

                        value.prefill(
                            work,
-                           r.consumed_tokens + work as u64 == r.prompt_tokens as u64,
+                           r.scheduled_consumed + work as u64 == r.prompt_tokens as u64,
                        ),

and policy.rs:1225-1228:

            GraphKind::Prefill | GraphKind::TerminalPrefill | GraphKind::ScoredPrefill => value.prefill(
                tokens,
                r.scheduled_consumed + tokens as u64 == r.prompt_tokens as u64,
            ),

but the rate normalizer still uses the committed cursor (helios/src/scheduler/service.rs:168-181):

            let start = request.consumed_tokens as usize;
...
                let first_output = start + work == request.prompt_tokens;
...
                if let Some(ns) = self
                    .costs
                    .prefill_duration(kind, capacity, work, request.consumed_tokens)

Impact: with a second prefill frame in flight, scheduled_consumed > consumed_tokens, so the +1 first-output token — and now the whole prefill_finish bonus — is credited to a different chunk on the value side than on the normalization side. token_rate feeds ServicePrice::initial/rebase (utility.rs:29-35, policy.rs:670-681), so the marginal price that is supposed to normalize the value it is compared against is computed from a different token count. The distortion is small (one token plus the horizon term's presence/absence) but it is a silent inconsistency introduced by the cursor change.

Fix: thread the same cursor through both paths — service_rates should use Self::prefill_cursor(request) and request.scheduled_consumed for prefill_duration, or the policy side should stay on consumed_tokens.


F6 — Minor: an undeclared behaviour change in the mixed-decode branch

helios/src/scheduler/policy.rs (diff, next_progress's mixed loop):

-            } else if r.generated_tokens > 0 {
+            } else if r.consumed_tokens >= r.prompt_tokens as u64 && r.generated_tokens > 0 {
                 let tokens = self.speculative_tokens(r, width);
-                consider(
-                    ns,
-                    value.decode(
-                        r.acceptance.expected_tokens(tokens),
-                        ns as f64 / 1e6,
-                    ),
-                );
+                let expected = if self.speculative_widths.is_empty() { 1.0 } else { … forecast_tokens(&curve, tokens) };
+                consider(ns, value.decode(expected, ns as f64 / 1e6));

Impact: a lane that already holds generated tokens but has not finished consuming its prompt (windowed/conditioned prefill resumption, or a resumed request whose prompt extends past the reused prefix) no longer gets a Mixed decode continuation candidate at all. The description lists only the !prefill guard and the powered_curve/forecast_tokens switch, not this eligibility narrowing. Behaviour is probably correct, but it is a scheduling-decision change that a reviewer/operator bisecting a mixed-graph regression cannot attribute.

Fix: state it in the description ("Mixed decode continuations now require prompt completion") and add a test that a partially-prefilled lane with generated tokens gets no Mixed decode candidate.


F7 — Minor: the meaning of the reported retained_ns metric shifts for every prefill key

helios/src/scheduler/cost.rs:693-724:

            if let Some(model) = estimate.prefill.as_mut() {
                let (work, start_position) = step
                    .lanes
                    .first()
                    .map_or((step.token_capacity, 0), |lane| (lane.tokens, lane.start_position));
                estimate.nanos = model.observe(sample, work, start_position, fresh);

PrefillCostModel::observe ends with predictor.predict(self.capacity, 0) — the fitted full-fill, zero-context value, not the sample and not the median of samples. That number is what observation()/selected_cost() export (scheduler.rs:1145-1150) into SubmittedTiming.retained_ns (scheduler.rs:2388-2391).

Impact: any consumer of "retained cost" (dashboard/metrics/timing logs, and #540's staleness accounting which is keyed on the same entries) now sees, for prefill graphs, a synthetic extrapolation that in the F2 regime is 5× the measured value, and that for a multi-lane prefill step is derived from only step.lanes.first(). The field's meaning changed without a name or doc change. The docs paragraph was rewritten (+400-423) but docs/scheduling-runtime-design.md still describes the entry as a measured cost available after expiry.

Fix: either export the last raw sample/median for prefill keys (keep replays populated alongside the model) or rename/annotate retained_ns for prefill (predicted_full_fill_ns) and state in the docs that prefill entries hold a fitted prediction.


F8 — Minor: a claimed headline measurement has no checked-in workload

PR description: "8 × 8,192-token multi-chunk burst: aggregate output throughput increases from 737.2 to 831.2 tok/s (+12.8%), max TTFT drops from 1492.0 ms to 1056.0 ms (−29.2%), 32/32 full B=8 rounds."

scripts/scheduling_sim/workloads.py (diff) adds only 4,096-token bursts:

+        "burst_four": [Request(f"b{i}", 4096, 256) for i in range(4)],
+        "burst_eight": [Request(f"b{i}", 4096, 256) for i in range(8)],
+        "burst_four_low": [Request(f"b{i}", 4096, 256, acceptance=(0.0,) * 7) for i in range(4)],
+        "burst_eight_low": [Request(f"b{i}", 4096, 256, acceptance=(0.0,) * 7) for i in range(8)],

Impact: one of the two quantitative headline results cannot be reproduced from the tree; only the 4,096 numbers are pinned by tests/test_scheduling_utility.py (max_ttft <= 528.0, all(batch == 8 …)). Given the charter's evidence requirement for performance PRs (#210) and that all live numbers are single-arm, the 8,192 result is the least verifiable claim in the description alongside the unmeasured SM121 A/B.

Fix: add burst_eight_long (8 × 8,192) and assert its numbers, or drop the 8,192 row from the description.


F9 — Minor: two in-flight prefill frames widen the blast radius of a per-lane failure, and nothing drains the second frame on the first error

Verified facts: transport.rs:1018-1021 and 1028-1040 now let a Prefill frame occupy the second slot, scheduler.rs:2342-2350 admits two submissions for a non-feedback prefill plan, and per-lane failure is only discovered at completion (scheduler.rs:2746-2747 if record.status == 3 { request.error_code = …; } inside complete_inner). Completions are strictly ordered (scheduler.rs:2516-2518, "completion fence must match the oldest submitted step"), so the second frame's outcome is examined only after the first frame's completion has been processed.

Impact: a prefill chunk that fails (status 3) no longer prevents the next chunk of the same request from being enqueued and executed on a KV range that the failed chunk never produced; the second frame's GPU work is wasted and its records must still pass the counter validation at scheduler.rs:2618-2651 (which compares against lane.start_position + lane.tokens computed for the planned cursor). This is a new failure-ordering property that decode pipelining did not have (a decode round does not invalidate the next round's inputs).

Fix: make eligible()'s prefill pipelining branch also require request.error_code.is_none() and no earlier in-flight frame for the same handle (i.e. only pipeline chunk N+1 behind a previously successful chunk N-1), or explicitly document and test the drained-on-error behaviour with a two-frame prefill error fixture.


Verified as sound (no finding)

Not verified / caveats

I did not re-run any test suite, and I did not open flare-cli/src/cli.rs (not opened), helios/src/server/config.rs (not opened), or the full docs/scheduling-runtime-design.md defaults table — F4's "no knob" claim rests on the PR's changed-file list plus the PolicyConfig diff, not on reading those parsers. F9's counter-validation consequence is inferred from scheduler.rs:2618-2651; I did not construct the two-frame error scenario. The loss-of-stride claim (F1) and the over-estimate magnitude (F2) are both reproducible from the in-tree test inputs.

#2 [high] F1 Major — checkpoint O(1) stride fast path lost whenever any partial-fill prefill sample exists

SEVERITY: Major.

CITATIONS

    let stride = catalog
        .iter()
        .try_fold(None, |best, entry| {
            let nanos = entry.non_terminal?.constant_ns()?;
            Some(if cheaper(entry.capacity, nanos, best) { Some((entry.capacity, nanos)) } else { best })
        })
        .flatten();

IMPACT: a single u <= 0.5 tail observation (the exact #485 regime) makes constant_nanos None -> stride disabled for that graph until a 30 s TTL reset. Every checkpoint interval pricing degrades to the O(n_catalog) walk, called 2-3x per selection via run_lengths + anchor_split_is_zero_cost + request_anchor_endpoint (checkpoints.rs:380-388, 444-461). PR text claims "Constant predictors retain ... the O(1) stride path" — only true in the constant case. Regresses #459/#550 budget exactly where it was meant to save launches. No test catches it.

FIX: don't gate the stride on a global constant; per-capacity fast path when the predictor is fill/context-invariant, or hoist the cheapest capacity by evaluating predict() at interval boundary fills when monotone/convex in u. Add a budget test asserting STRIDE_RUNS > 0 in a mixed fill/context regime.

#3 [high] F2 Major — narrow-regime upward bound extrapolates linearly and over-estimates a full chunk 5.4x (test encodes it)

SEVERITY: Major.

CITATIONS

    pub fn predict(&self, work: usize, start_position: u64) -> u64 {
        if let Some(nanos) = self.constant_nanos { return nanos; }
        let cap = self.capacity.max(1);
        let u = work.clamp(1, cap) as f64 / cap as f64;
        let h = u * (start_position as f64 / PREFILL_CTX_SCALE);
        let mut pred = self.theta[0] + self.theta[1] * u + self.theta[2] * h;
        // Conservative constant-throughput upward bound when only a narrow partial-fill
        // regime has been observed, preventing short tails from poisoning full-chunk cost.
        if self.u_max < 0.75 && (self.u_max - self.u_min) < 0.15 && u > self.u_max && self.u_max > 0.0 {
            pred = pred.max(self.t_at_umax * (u / self.u_max));
        }
        // Post-TTL reset with ONLY a single 128-token tail at 1.51 s: conservative upward
        // extrapolation must prevent 3584 full-chunk from looking cheaper than 4096 at 1.76 s.
        costs.advance_to(1_000_000_000 + ttl + 1, ttl);
        costs.observe(&step_for(3584, 128, 0), timing(1_510_000_000));
        assert_eq!(costs.prefill_duration(GraphKind::Prefill, 3584, 128, 0), Some(1_510_000_000));
        let guarded_full_3584 = costs.prefill_duration(GraphKind::Prefill, 3584, 3584, 0).unwrap();
        assert!(
            guarded_full_3584 >= 1_510_000_000 * 28 - 10_000_000,
            "single tail must not undercut full chunk: guarded={guarded_full_3584}"
        );

1.51 s * 28 = 42.3 s, but the same test earlier establishes the true full-chunk cost as 7.81 s (costs.observe(&step_for(3584, 3584, 0), timing(7_810_000_000))). So the assertion requires a 5.4x over-estimate. Bound is tokens-linear from a fixed-overhead-dominated tail, uncapped, and in force until 9 full-fill samples displace the stratum median (PrefillBucket is 9-deep, cost.rs:139-171).

IMPACT: after any 30 s TTL expiry in a tail-heavy workload, the large prefill graph's duration is inflated ~5x. That duration is the denominator of ValueRate::new (helios/src/scheduler/utility.rs:124-134), so large-chunk prefill becomes unattractive and the scheduler prefers many short chunks — reversing change 1's coalescing goal. Also inflates expected_finish_ns (scheduler.rs:2431-2434) -> window_remaining (policy.rs:423-438) -> queue window, and flows into resize_prefill / materialize so the reported plan duration of a real step is ~5x off.

FIX: cap the extrapolation (max_slowdown multiple, or bound by the best measured median of any stratum scaled by u/u_max); require a minimum sample count before the bound overrides the fit. Test should assert an upper bound too, not only a lower one.

#4 [high] F3 Major — prefill duration re-pricing + hard window_remaining() gate can force a drain on the very chunks meant to pipeline

SEVERITY: Major.

CITATIONS

    pub fn submission_window_available(&self, duration_ns: u64) -> bool {
        self.submissions.len() < 2
            && !self.submissions.values().any(|s| s.requires_feedback)
            && (self.submissions.is_empty() || duration_ns > 0)
            && self.window_remaining().is_some()
    }

    pub(super) fn window_remaining(&self) -> Option<u64> {
        let Some((_, first)) = self.submissions.first_key_value() else { return Some(0); };
        if self.now_ns >= first.expected_finish_ns { return None; }

expected_finish_ns is plan-time predicted: scheduler.rs:2431-2434 self.now_ns.saturating_add(self.window_remaining().unwrap_or(0)).saturating_add(plan.estimated_duration_ns).

        if kind == GraphKind::Prefill {
            // The 13-token tail (200 ns) inside capacity 64 (seeded 1000 ns at full fill)
            // fits its own fill-ratio regime instead of averaging into the full-chunk cost.
            let est = worker.scheduler.estimated_duration_ns(&step).unwrap();
            assert!((195..=210).contains(&est), "partial prefill estimate={est}");
        } else {
            assert_eq!(worker.scheduler.estimated_duration_ns(&step), Some(600));
        }

IMPACT: two-frame prefill pipelining (scheduler.rs:1132-1143 gate) requires frame N+1 to be submitted before frame N completes. A 3x under-estimated tail expires expected_finish_ns early -> window_remaining() returns None -> submission_window_available false and commit errors -> forced drain exactly on short-tail chunks. Pipeline bubble reappears, sourced from the cost model. Under contention this becomes head-of-line blocking for the whole plan loop.

FIX: decouple the two uses of duration_ns: make window expiry soft (Some(0) + executor frame accounting as the only gate), or refresh expected_finish_ns from last observed completion, or floor the pipelining gate's duration at a fraction of the retained pre-existing median. Add an integration test that pipelines two short-tail chunks and asserts both submit without a feedback drain.

#5 [high] F4 Major — coalescing_horizon_tokens is an always-on coefficient with no CLI flag, no server key, no defaults-table row

SEVERITY: Major (charter: "no magic defaults", explicit/unpinnable knob).

CITATIONS

    pub checkpoint_extra_work_fraction: f64,
+   pub coalescing_horizon_tokens: f64,
 }
...
            adaptive_verification_alpha: 1.0,
+           coalescing_horizon_tokens: 64.0,

IMPACT: a new global utility bonus changes admission ordering for every prefill-capable core by default, with no opt-out and no operator-visible knob; an operator suspecting a scheduling regression cannot bisect it without rebuilding. Also a doc/contract inconsistency: the only place the number appears is prose.

FIX: add --scheduler-coalescing-horizon in flare-cli and scheduler_coalescing_horizon_tokens in server config alongside the existing keys; add the row to the PolicyConfig defaults table and helios/README.md.

CAVEAT: "no knob" inference rests on the PR's changed-file list plus the PolicyConfig diff; I did not open flare-cli/src/cli.rs or helios/src/server/config.rs.

#6 [medium] F5/F6/F7 Minors — cursor split between value and service rate; undeclared Mixed-branch narrowing; meaning of prefill retained_ns shifted

F5 SEVERITY: Minor — first-output/second-cursor split.

F6 SEVERITY: Minor — undeclared behaviour change in Mixed branch, policy.rs (diff ~791-806):

-            } else if r.generated_tokens > 0 {
+            } else if r.consumed_tokens >= r.prompt_tokens as u64 && r.generated_tokens > 0 {

A lane holding generated tokens but not finished consuming its prompt (windowed/conditioned prefill resumption, resumed request with prompt past the reused prefix) no longer gets a Mixed decode continuation candidate at all. Description mentions only the !prefill guard and powered_curve/forecast_tokens. FIX: state it and add a test.

F7 SEVERITY: Minor — prefill retained_ns meaning shifted.

#7 [medium] F8/F9 Minors — 8x8192 burst claim has no checked-in workload; two-frame prefill widens per-lane failure blast radius

F8 SEVERITY: Minor — unreproducible headline number.

+        "burst_four": [Request(f"b{i}", 4096, 256) for i in range(4)],
+        "burst_eight": [Request(f"b{i}", 4096, 256) for i in range(8)],
+        "burst_four_low": [Request(f"b{i}", 4096, 256, acceptance=(0.0,) * 7) for i in range(4)],
+        "burst_eight_low": [Request(f"b{i}", 4096, 256, acceptance=(0.0,) * 7) for i in range(8)],

F9 SEVERITY: Minor — failure ordering under two in-flight prefill frames.

#8 [medium] Areas verified sound (no finding) in PR #645

NOT VERIFIED: no test suite re-run; did not open flare-cli/src/cli.rs, helios/src/server/config.rs, or the full docs defaults table (F4 inference); F9 scenario not constructed.