Correctness, Contracts & System-Level Consequences review — PR #681
helios/scheduler: use active cohort mean in coalescing horizon (FujitsuPolycom, head e15b836, draft, 5 files, +236/−18, no CI on head, no reviews).
Verified against the head tree. The arithmetic is correct as written and the stated defect (a rem = 1 decoder collapsing the horizon to 1) is real on main. The problems are (a) the new quantity prices a horizon the cohort cannot actually deliver, (b) the evidence offered for it cannot distinguish old from new behaviour, and (c) the PR's only #681-only served rows regress.
Key findings
- Blocker — the reported simulator evidence is inert for this rule, so the applicable simulator gate is unrun. Every one of the 84 swept workloads uses
output=128decoders (scripts/scheduling_sim/workloads.py:26-31), the only state where old and new formulas differ is a near-EOS decoder beside a long prefill, anddocs/design-review.md:247-251says an unrun applicable simulator sweep "blocks commit and PR acceptance". 84/84 parity is true by construction. - Major — the mean horizon is not a realisable horizon. It is no longer bounded by the shortest remaining decoder budget, so a
[1, 100]cohort credits32.5tokens of coalescing surplus against a batch that disbands after one step — a ~32× credit increase overmainin a reachable state (helios/src/scheduler/policy.rs:666-672, asserted as correct atpolicy_tests.rs:6902-6913). This is the mechanism behind the PR's own solo regression (541.8 → 521.8 tok/s, SLO 88.1 → 79.1%). - Major — the change is strictly monotone: no reachable state gets less prefill credit than on
main, for bothhorizonandmean_out. There is therefore no state where it self-corrects the over-pricing; combined with #2 it explains why mixed/cold-heavy mixes degrade while batched-interactive mixes improve. - Major — half the diff is an undocumented Rust→simulator parity repair, misdescribed as a new formula.
mean_outalready was a per-decoder mean inscripts/scheduling_sim/utility.py:215-219before this PR (that hunk is untouched by the diff); only the horizon hunk changed (utility.py:234-235). The PR body presents both as one new rule. - Major — claim accuracy: the "Stack" rows are not attributable to #681 (they include #660/#661/#665), the tested trees are not the head, and 2 of 3 #681-only "Solo" rows regress.
docs/design-review.md:106-115requires "raw measurements and disclose unrun checks and material limitations". - Minor — no operator control and no off switch, while the PR makes the hidden term up to 64× larger.
coalescing_horizon_tokensis a hard-coded default (policy.rs:42), absent fromhelios/src/server/config.rs:305-330, and--scheduler-policy throughputdoes not disable it (policy.rs:50-52). The config table rowdocs/scheduling-runtime-design.md:713was left at "64" and the prose now calls an unbounded mean a "bounded per-stream decode horizon". - Minor — the new tests encode the inflation as the expectation and add no test that credit stays bounded when a cohort member is about to retire; they compare against the implementation's own formula.
Sound (verified, no issue): no hot-path allocation, no lock/contention change, no wire/proto/captured-graph/ABI change, no per-model branch, no API-field swallowing, deterministic ordering, numeric guards preserved, and the guard simplification at :567 is correct. Details below.
1. Correctness, Safety & Platform Parity
1.1 Verified code shape (baseline for the findings)
helios/src/scheduler/policy.rs:530-569 now collects the cohort explicitly:
let mut decoder_slots = [0usize; REQUEST_LANES];
let mut decoder_rems = [0usize; REQUEST_LANES];
...
if r.consumed_tokens >= r.prompt_tokens as u64 {
if r.generated_tokens > 0
&& r.generated_tokens < r.max_new_tokens
&& r.scheduled_consumed < self.limits.max_sequence_tokens as u64
{
let rem = ((r.max_new_tokens - r.generated_tokens) as usize)
.min(self.limits.max_sequence_tokens.saturating_sub(r.scheduled_consumed as usize));
if rem > 0 {
decoder_slots[decoder_count] = slot;
decoder_rems[decoder_count] = rem;
decoder_count += 1;
}
}
}
and the horizon at policy.rs:666-672:
for &(slot, initial_prefill, post_prefill) in &prefillers[..prefiller_count] {
let ph = self.policy.coalescing_horizon_tokens.min(post_prefill as f64);
let horizon = decoder_rems[..decoder_count]
.iter()
.map(|&rem| (rem as f64).min(ph))
.sum::<f64>()
/ decoder_count as f64;
against main's .min(post_prefill as f64).min(peer_budget as f64), where peer_budget was min_i rem_i.
1.2 Finding A (Major) — the cohort mean is not a realisable horizon; credit inflates ~32× in a reachable state
file:line: helios/src/scheduler/policy.rs:666-672 and :677; test asserting it at helios/src/scheduler/policy_tests.rs:6902-6913.
Verbatim (test, the PR's own worked example):
// Mixed cohort: one near-EOS decoder (rem = 1) and one long decoder (rem = 100).
// Cohort-mean horizon is (min(1, 64) + min(100, 64)) / 2 = 32.5.
let (mut mixed, p_slot) = setup(&[1, 100], 128);
let mixed_bonus = coalescing_bonus(&mut mixed, p_slot);
...
let expected_mixed = (surplus * 32.5) / 512.0;
Problem: the credited surplus is per_token = (best_surplus_per_horizon * horizon) / initial_prefill (policy.rs:677), i.e. linear in horizon. On main this state yielded horizon = min(64, 127, min(1,100)) = 1.0; now it yields 32.5. The surplus being priced is a K → K+m batch-efficiency gain, but the cohort that supplies batch efficiency is not present for 32.5 tokens: the rem = 1 decoder retires after its next token, after which the batch is back to its prior occupancy. The mean averages over a population that disbands, so it systematically over-prices exactly the mixed cohorts the PR targets, and any n-member cohort where most remaining budgets are below ph is over-priced proportionally to the sparse survivors.
Impact: the modification is strictly non-decreasing versus main (see 1.3), and cold heavy prefills that clear their prompt in one chunk (per_token is amortised over initial_prefill, policy.rs:677) get this inflated credit immediately. The PR's own disclosure is the symptom: on solo cold-heavy-mix, keeping coalescing active near EOS "pulls 150K–250K cold prefills ahead of decoders without chunk shrinking, raising agentic_multiturn TTFT p99 3,323 -> 5,144 ms", with output 541.8 → 521.8 tok/s (−3.7%) and SLO 88.1 → 79.1%.
Concrete fix: price the horizon that is actually realisable. Either
- use the expected under-batched steps of the cohort instead of clamped budgets:
horizon = Σ_{t=0..ph-1} count(rem_i > t) / decoder_count(a survival-weighted mean, which still decays smoothly near EOS and still avoids therem = 1cliff), or - keep the cohort mean but additionally clamp it by the largest single
remand by a fraction of the median, e.g.horizon.min(max_i rem_i.min(ph)). Add a test that pins the property "adding one nearly-retired decoder must not materially raise the bonus", which the current[1, 100]test asserts the opposite of.
1.3 Finding A′ (Major) — strict monotonicity means the rule can only over-price, never self-correct
file:line: policy.rs:668-672 and :627/:636.
For every reachable state, mean_i min(rem_i, ph) ≥ min_i min(rem_i, ph) (a mean is ≥ the minimum), and the new mean_out is
Σ_i max(min(expected_at(w), rem_i), 1.0) / n ≥ max(min(expected_at(w), min_i rem_i), 1.0), the main value. There is no state in which the change lowers queued-prefill credit relative to main. Consequences: (i) the --max-concurrency, long-context and cold-prefill configurations cannot be traded off by the rule itself; (ii) the PR's only escape valve is #661's chunk shrinking/draining, i.e. this default-on change is net-positive only in a configuration that does not exist on main yet (#661 is open, head 3d868f84); (iii) it reverses direction against the only related user report, #676, which asks for prefill to be capped, not priced higher.
Concrete fix: nothing in the arithmetic — but do not land default-on. Gate the cohort mean behind the configuration key that already exists conceptually (coalescing_horizon_tokens), or land it together with the chunk-shrinking behaviour it depends on, and state in the body which of the two regimes each measured row belongs to.
1.4 Finding B (Major) — mean_out is a Rust↔simulator parity repair, undisclosed, and the KV clamp is still Rust-only
file:line: scripts/scheduling_sim/utility.py:215-219 (pre-existing, not in the diff), helios/src/scheduler/policy.rs:627, :636.
Verbatim, simulator (unchanged by this PR):
mean_out = sum(
min(v.output_budget, expected_output(v.acceptance, graph.width))
for v in decoders
) / k
pr_diff scripts/scheduling_sim/utility.py shows exactly one hunk (the horizon at current :234-235):
ph = min(self.config.coalescing_horizon_tokens, float(view.output_budget - 1))
horizon = sum(min(float(v.output_budget), ph) for v in decoders) / k
So the Rust mean_out change at :627/:636 moves Rust toward the simulator's already-qualified rule, while the horizon change is the genuinely new rule. The body presents both as one new formula. docs/design-review.md:195-206 makes this a contract: "Do not diverge Helios from the simulator's qualified policy without updating and validating the rule across that catalog."
Secondary, still-open divergence (Minor): Rust clamps rem by KV headroom (policy.rs:548-549, max_sequence_tokens - scheduled_consumed); the simulator's view has no such clamp (scripts/scheduling_sim/simulator.py:26-27: View(r.name, self.remaining_prefill, r.max_new_tokens - self.generated, ...)). With a cohort mean, a KV-exhausted decoder now leaves the Rust cohort (and its 1/n weight in both numerator and denominator) while the simulator keeps it in the mean with a fixed budget — so the two implementations disagree most in exactly the states this PR now makes sensitive.
Impact: reviewers cannot tell which half is validated against the qualified simulator policy and which half is unvalidated; the parity gap gets wider in the state the change targets.
Concrete fix: split the body's "What" into "mean_out: align Rust with the simulator's existing per-decoder rule" and "horizon: new cohort-mean rule (unvalidated against the reference solvers)"; mirror the KV headroom clamp into the simulator's output_budget, or drop it from Rust, and add a parity test with a KV-exhausted decoder.
1.5 Verified correct — safety, panic, numeric and concurrency properties
- No new allocation or unbounded buffering.
decoder_remsis a fixed stack array[usize; REQUEST_LANES](policy.rs:531);REQUEST_LANES = 64andlimits.max_active <= limits.request_slots <= REQUEST_LANESbounddecoder_count, sodecoder_rems[decoder_count]at:552cannot overflow. The only heap allocation in the function is the pre-existingmean_curveVec(:571), unchanged in size (max_drafts). - No lock, queue or contention change.
select_plan → lane_values → coalescing_prefill_log_bonusruns on the plan hot path; the change addsO(decoder_count)float work per call and one extraO(decoder_count)pass per prefiller (:668-672,:627,:636). No blocking, no I/O, no shared mutable state. - Failure blast radius unchanged. No new error path;
decoder_count == 0 || prefiller_count == 0returns early (:567),max_drafts == 0and emptyspeculative_widthsare handled, and a bad/zero cost duration is filtered byn > 0before use. - Numeric safety preserved.
rem > 0(:550) plushorizon > 0.0(:673) plusper_token.is_finite()(:678) keepln()at:679total; the only divisor isdecoder_count >= 1, andph >= 0because the horizon config andpost_prefillare both Kahan-safe here. No NaN/inf path introduced. - Guard simplification at
:567is correct: the removedpeer_budget == usize::MAXarm was unreachable oncerem > 0filtered, so dropping it is behaviour-preserving. - Determinism preserved: iteration is slot-index order (
:535,:668), no hashing or float reordering that depends on address — plan selection stays reproducible across runs. - Platform parity: no OS-specific code, no file I/O, no
unsafe; pure arithmetic, so Windows/Linux behaviour is identical. - No API-contract surface touched: nothing reads a request field differently; the existing filter
!r.prompt_logprobs(:556) is unchanged, so no standard OpenAI/Anthropic field is newly ignored.
2. Unintended system-level consequences (concurrent load)
2.1 Head-of-line effect is amplified, not bounded (Major, same code as 1.2/1.3). Credit is added to each prefiller's per-token price (bonus_log[slot] → LaneValue::prefill_token, policy.rs:797-798), and the mechanism the PR itself documents is that this lets 150K–250K cold prefills jump ahead of decoders. Because the horizon term now scales up to coalescing_horizon_tokens (64) instead of collapsing to the shortest decoder's remaining budget, the steady-state backlog configuration (cold-heavy-mix: 32 clients split between multi-turn agents and 150K–250K cold prefills) gets strictly more prefill priority than on main — and main already regressed there (SLO 88.1%), i.e. the change moves the wrong way in exactly the saturation regime where an admission price matters most. Under partial failure/drain, #661's 7 client-side 45 s drain cutoffs are the same class of symptom. Fix: gate on chunk shrinking (#661) or bound the credit per prefiller to the surplus realisable within the horizon (1.2).
2.2 Interaction with the #663 first-output credit (Minor, worth a note). #663 (merged 8489d504) adds initial_prefill-denominated first-output waiting-age credit; this PR also amortises over initial_prefill (policy.rs:677). Both weights now move together when the horizon grows, and nothing re-tunes the ratio; docs/scheduling-utility.md:307-308 describes #663's credit as "matching coalescing's fixed-denominator amortization", which this PR keeps but re-scales by up to 64×. No test compares coalescing-on vs coalescing-off with #663's price active (policy_tests.rs:6855-6863 compares only the pre-#663 pairing, and tests/test_scheduling_utility.py:403,405 now assert absolute ceilings). Fix: add a served-path or simulator case with decode_age_price = 0.1 and a near-EOS decoder, and report the combined ratio.
2.3 No observability (Minor). Nothing surfaces the term: no coalesc* field in the scheduler metrics/dashboard (search over helios/src/server/metrics* and the dashboard results), so an operator seeing the agentic_multiturn TTFT p99 shift has no counter to attribute it to. Given the PR's own disclosed trade-off, one counter (prefillers receiving a non-zero coalescing bonus) or a debug field is cheap and would make this diagnostic.
2.4 Metric/rate/admission-pricing span check. This PR changes a pricing weight, not the time span or scope sampled by any rate, latency or admission metric: no inbound_rate, estimated_seconds or worth_fetching sample window is narrowed, widened, or moved from rank-0 to all shards. Nothing to flag on span shrinkage; the gap is the absence of a metric at all (2.3).
3. Architecture, contracts & charter compliance
3.1 Right layer, sound contract-wise. The change is model-agnostic scheduler arithmetic in Helios (policy.rs only), with no per-model branch, no new dependency, no Protobuf/captured-graph/ABI change and no exported-core or multi-host implication — consistent with the charter's "Keep the runtime small and model-agnostic" and with "Captured-graph op contracts: adding a new one requires owner approval" (nothing added). No AGENTS.md/design-doc sign-off is triggered by the surface area.
3.2 Finding E (Minor) — default-on magnitude change with no way to pin or disable. file:line: policy.rs:26, :42, :50-52; helios/src/server/config.rs:305-330; docs/scheduling-runtime-design.md:713.
Verbatim, the config parser's full scheduler-key set:
let mut scheduling_policy = match object.get("scheduler_policy") {
None => crate::scheduler::PolicyConfig::default(),
Some(Value::String(value)) if value == "balanced" => crate::scheduler::PolicyConfig::default(),
Some(Value::String(value)) if value == "throughput" => crate::scheduler::PolicyConfig::throughput(),
Some(_) => return Err("scheduler_policy must be balanced or throughput".into()),
};
for (name, coefficient) in [
("scheduler_terminal_value", &mut scheduling_policy.terminal_value),
("scheduler_terminal_age_price", &mut scheduling_policy.terminal_age_price),
] {
coalescing_horizon_tokens is not in that list, and PolicyConfig::throughput() is Self { delivery_fairness: 0.0, decode_age_price: 0.0, ..Self::default() } (policy.rs:50-52) — the horizon and hence the coalescing term survive --scheduler-policy throughput. Also flare-cli/src/cli.rs:699-706 (not opened) exposes only the two terminal flags. So every prefill-capable core on every deployment gets the new pricing with no override short of a rebuild, against the charter's "Be explicit and pin everything. No magic defaults". Because the PR raises the effective magnitude of a value operators cannot see or set, this is more than a pre-existing wart.
Fix: accept scheduler_coalescing_horizon_tokens in helios/src/server/config.rs alongside the two terminal coefficients (same finite/non-negative validation), add the CLI flag, and zero it in PolicyConfig::throughput() so a throughput operator can revert.
3.3 Finding F (Minor) — the design spec now describes an unbounded mean as "bounded per-stream", and the config table was not updated. file:line: docs/scheduling-runtime-design.md:220-229, :713.
Verbatim (new prose):
decode-batch throughput surplus over a bounded per-stream decode horizon
(`coalescing_horizon_tokens`, default `64.0`, averaged across active decoders
after clamping each decoder's remaining output budget to the prefiller's
post-prefill output budget and the configured horizon, with speculative
per-round expected output similarly clamped per decoder and averaged across the
cohort),
"Bounded per-stream decode horizon" no longer holds: the mean can exceed every individual stream's remaining budget (1.2), which is the substantive behavioural change and the one an implementer of a second backend would need to reproduce. Separately :713 still reads | coalescing_horizon_tokens | 64 | Output-token horizon for decode-batch coalescing bonus on queued prefills | — accurate for the value, but the PR's disclosed cost (cold prefills jumping ahead of decoders, +1.8 s agentic_multiturn p99) is documented nowhere. Fix: reword to "horizon is the cohort mean of per-decoder remaining output clamped to min(coalescing_horizon_tokens, post_prefill), so it can exceed any single decoder's remaining budget", and add one sentence on the cold-prefill trade-off.
3.4 Charter "Bring real evidence" (#210). Satisfied in form (four-part body, served A/B on SM120 TP4 and GB10 TP4, DeepSeek-V4.1-Flash), but the only configuration where it is positive requires three unmerged PRs — see 4.1.
4. Tests & claim accuracy
4.1 Finding C (Blocker) — the simulator sweep reported cannot exercise this rule; the applicable sweep is unrun
file:line: scripts/scheduling_sim/workloads.py:25-31, :43-46; scripts/scheduling_sim/utility.py:205-206; docs/design-review.md:195-208, :247-251.
Verbatim (workloads.py):
def prefill(name, tokens=32_768, **kwargs):
return Request(name, tokens, 128, **kwargs)
def decode(name, accepted=7, output=128, **kwargs):
probabilities = tuple(float(i < accepted) for i in range(7))
return Request(name, 0, output, acceptance=probabilities, **kwargs)
Every decode() in the 21-workload dict uses the output=128 default and every prefill* mix uses 128 output tokens, so in each of the 84 runs (--decode-values × workloads) all decoders have budget 128 ≥ ph, making mean_i min(rem_i, ph) == min_i min(rem_i, ph) == ph. The old and new rules therefore produce identical prices, and "84/84 matched 1fbcc3c9" is expected by construction, not evidence. utility.py:204-205 (decoders = [v for v in views if not v.remaining_prefill]) confirms the term is only active with a live cohort.
Gate text (verified verbatim):
2. **Scheduling simulator and mathematical references.** Changes to graph
selection, service pricing, timing estimation, refresh or exploration
budgets, or cohort algorithms must be evaluated against the Python simulator
and reference solvers in `scripts/scheduling_sim/`
...
- **Disclosure does not excuse skipping runnable CPU checks.** All three layers
run without a GPU or model checkpoint. Leaving an applicable crate test,
simulator sweep, TLA+ conformance run, or Kani proof unrun blocks commit and
PR acceptance; noting it as a limitation does not make the omission
acceptable.
This is a cohort algorithm by the gate's own wording ("cohort algorithms"), and no reference-solver evaluation of the new rule is reported; the 3/3 reachable .min() mutations killed figure is a Python mutation result, and verification/helios-lifecycle/check.py's 26 Rust mutation targets do not include policy.rs, so the reported check.py pass is N/A for this diff rather than evidence for it.
Concrete fix: add a workload (and a learning_scenarios.py variant) pairing output=1 and output=128 decoders with a long prefill, run the 64-seed catalog as #661 did (15,872 runs, retained-refresh accepted 35/35), and report the delta between the two rules with the reference solver's verdict on which one is closer to optimum.
4.2 Finding D (Major) — claim accuracy against main and against the diff
- Attribution. The "Stack" rows combine
#660 + #661 + #665 + #681, and the quoted prefix-cache hit-rate gain (48.6% -> 52.5%) is #665's mechanism; #681 touches onlypolicy.rs,scripts/scheduling_sim/utility.py,policy_tests.rs,tests/test_scheduling_utility.pyand one doc.docs/design-review.md:106-115requires the report to "keep raw measurements and disclose unrun checks and material limitations", and rule 12's equivalent elsewhere in the same section asks for equivalent baselines; presenting stack rows adjacent to Solo rows invites attributing the stack's+1.4%/-7.9%TTFT to this PR. - The #681-only rows regress. Solo
mixed-c32: SLO 93.0 → 91.1%, stalls 11.29 → 11.49%. Solocold-heavy-mix: output 541.8 → 521.8 (−3.7%), SLO 88.1 → 79.1%, TTFT p50 1,763 → 1,834. Two of three solo rows are regressions, and the third is +1.8% output on a single repeat. On #661 long-context-mixedis mixed: stalls 16.4 → 9.8% (good) but SLO 89.3 → 82.1% (bad) — the body's own table shows a 7.2-point SLO loss that the prose does not mention.- Trees. Served A/B ran on
df9a8ebd,dbbf65df,38130855; the archive checks on40596880cc64; the head ise15b836. There are no GitHub Actions checks on the head, so nothing in the PR verifies that the reviewed commit is the measured commit. - Repeats. The
(2)rows give medians;(1)rows are single samples with no variance, no CIs anywhere.
Fix: re-run the Solo arm on e15b836 (or state that e15b836 is tree-identical to a measured tree), mark the Stack rows as stack-only with component attribution, and state the SLO regression explicitly in the Result section rather than only the agentic_multiturn p99 trade-off.
4.3 Finding G (Minor) — the new tests are tautological to the implementation and pin the wrong property
file:line: helios/src/scheduler/policy_tests.rs:6888-6933; tests/test_scheduling_utility.py:506-526.
The Rust and Python tests both recompute the implementation's own formula (expected_mixed = (surplus * 32.5) / 512.0; expected_mixed = 64.0 * 3.0 * (1.0 - (2.0/20.0)/(3.0/24.0)) * 32.5 / 512.0) and assert equality within 1e-9. That is a good refactor guard, and the helper coalescing_bonus() at :6866-6875 isolating the term by forcing coalescing_horizon_tokens = 0.0 is a clean technique — but the tests would pass identically if the mean were replaced by the old min, because the assertion target is the new formula, not an invariant. Missing coverage: (i) no n ≥ 3 cohort; (ii) no cohort where the majority are near EOS; (iii) no KV-exhausted decoder (scheduled_consumed == max_sequence_tokens) in the cohort, which is where Rust and the simulator diverge (1.4); (iv) no test that the bonus is monotone non-decreasing versus the main rule (1.3) — which, if added, would document the blast radius. Fix: add (i)–(iv), at minimum a [1, 1, 100] case asserting an explicit bound rather than a re-derivation.
Open questions / could not verify
- Whether head
e15b836reproduces the served numbers measured ondf9a8ebd/dbbf65df/38130855, and what changed between those trees and the head. No CI on the head. - Whether the author considers the
mean_outchange a divergence repair or a new rule; nolearning.py64-seed result is reported, and the body does not say it was deliberately skipped. - Whether the cold-prefill head-of-line effect (2.1) is bounded in practice by something outside this function — I found nothing in
coalescing_prefill_log_bonusthat caps the credit per prefiller, but I did not audit the downstream admission path end-to-end. - Whether #663's first-output credit needs re-tuning now that the horizon can be up to 64× larger (
docs/scheduling-utility.md:287-320was not updated and no combined measurement is reported). - No issue, comment, review, reaction or maintainer request motivates this change; #676 is the only related user-visible report and it names #661, not #681.
Recommendation
Do not merge as-is. The blocking item is 4.1 (the applicable simulator/reference-solver evaluation is effectively unrun and the reported sweep is inert for this rule); Major items 1.2/1.3 (unrealisable, strictly monotone credit) and 2.1 (cold-prefill head-of-line amplification) need either a bounded horizon formulation or an explicit gate on #661's chunk shrinking before this becomes default behaviour on main; 1.4 and 4.2 are disclosure fixes that a body edit can resolve.
Files inspected
helios/src/scheduler/policy.rs (:20-60, :525-690), helios/src/scheduler/policy_tests.rs (:6860-6940), scripts/scheduling_sim/utility.py (:180-245), scripts/scheduling_sim/simulator.py (:1-60), scripts/scheduling_sim/workloads.py (:20-60), tests/test_scheduling_utility.py (:498-532), docs/scheduling-runtime-design.md (:215-235, :703-720), docs/design-review.md (:90-135, :190-255), helios/src/server/config.rs (:295-330), and the pull request diff for scripts/scheduling_sim/utility.py.