PR #571: helios: force a wide round after persistent width-one selection

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/fe0dba30-5b0e-4c45-aad8-01ed5b82ff4f

Opened by a workflow run, Nov 28, 2026 1:26 PM EST.

screen malicious

Screen Result: All Clear

Evidence: No prompt injection, hidden instruction, encoded payload, or exfiltration attempt was found anywhere in PR #571 ("helios: force a wide round after persistent width-one selection", head aab9295, base main, 3 files, +78/−3). The change is ordinary scheduler logic, and its content matches the description.

Non-malicious observations (engineering/documentation, not security findings): (1) the description claims the selection is logged as Forced wide: with several fields, but the diff adds no logging — Forced wide/Plan diag do not appear in helios/src, so the cited evidence log must come from an out-of-diff diagnostic image (…-argdiag-20261128); (2) the fallback can fire repeatedly, and the author discloses up to 30 forced rounds in a three-second window at 64.9–66.6 ms versus ~5.3 ms normal, a throughput risk disclosed under Limits; (3) the author states no A/B control run exists and that the change should land after #540, consistent with the charter's preference for root-cause fixes over retries.

Open questions / not covered: the referenced prototype image and 1017 service logs were not reachable, so the quoted log lines are unverified (they contain no instruction-like content); the remainder of policy.rs (~1,550 lines) and policy_tests.rs were not read line by line, though a diff cannot hide code there and the reported change set is authoritative.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: malventano (CONTRIBUTOR; 1 prior merged PR, #316; Discord: malventano) Motivation: The helios scheduler's speculative decoder sometimes stays at verification width one for a long time, which throws away most of the throughput speculative decoding can give. This PR adds a fail-safe: after two width-one plans in a row, the next plan is forced to the widest available speculative shape, regardless of its measured price. Scale: +78 / −3 lines in 3 files Proposal:

Full report · Notes

Value Proposition

Verdict: Not worth it — do not merge in this form.

The change is small and clean, and the author is unusually honest about what it does not show. But judged against the charter it fails on evidence, root cause, and place, and it introduces a scheduler rule that contradicts a documented invariant. The author's own note ("Do not merge before #540 is resolved… re-evaluate its need after #540") is the right disposition; I would go further and close it as premature rather than keep it parked as a merge candidate.

What it does

Three files, +78/−3, no core-format, prepared-graph, or speculative-semantics changes:

Why it does not meet the charter

1. "Bring real evidence" (#210, #397). This is a performance-motivated policy override with no served-workload benchmark against main. The author states there is no control run and no A/B, and that the logged sequence "does not show that the fallback caused the later ordinary width-eight selection." What was measured argues against the change: forced rounds took 64.9–66.6 ms versus ~5.3 ms for a normal width-8 round and fired 30 times in three seconds. Performance PRs need a measured speedup over main; bug fixes need a root cause. This is neither.

2. "Solve the right problem in the right place." The PR concedes it "is not a recovery fix and does not repair the scheduler state" — it overrides the value metric when the metric keeps choosing width one. That is the "swallow/skip/retry an unexplained error" pattern #397 forbids. Width-one is also not established as a defect: #152 shows balanced legitimately prefers width-one at batch 4 (throughput 8% higher without it, cadence unmeasured; maintainers asked for the cadence measurement, triage:design-review), and #503 shows width-one rising 0 → 36% → 66% at batch 8 with the cause unknown. The charter vision is "keeping generation snappy," so a shorter round is not automatically the worse round.

3. The mandated simulator/formal layer is skipped. docs/design-review.md:195-208 requires graph-selection, pricing, timing and refresh-budget changes to be evaluated in scripts/scheduling_sim/ with the 64-seed catalog, and says not to diverge Helios from the simulator's qualified policy without updating and validating the rule. :234-240 calls skipping that "a blocking design failure, regardless of whether CPU unit tests pass." The PR runs one cargo test filter plus a suite count, and no simulator, TLA+/conformance or policy_tests-wide run. Disclosure of the unrun checks is credit, but disclosure is not a substitute.

4. It reverses a documented invariant. prune_padding (policy.rs:169-202) exists so redundant padding cannot win, and docs/scheduling-runtime-design.md:252-257 states "Timing estimates cannot make redundant padding preferable." The forced picker ignores ordinary_count and scans the whole candidate vector including the dominated tail, then maximises packed_token_capacity for the widest (D, W) — i.e. it deliberately chooses the most padded, most expensive shape available for that cohort. The PR lists this as a "Limit," but it is not a limitation; it is the selection rule pointed backwards, and is the likeliest mechanism behind the measured ~12× duration inflation.

5. It can execute an unmeasured graph at unbounded cost. cost::packed_round_shapes yields nanos = 0 for unmeasured shapes (cost.rs:226-232; zero is the unmeasured sentinel, cost.rs:7). The forced path never checks that its choice is measured or fresh. commit then relabels an unmeasured plan from Ordinary to TimingOrigin::Discovery (scheduler.rs:2321-2324) with no funding check — so "costs at most one normal wide round" does not hold: it can cost an arbitrary discovery round outside the funded-refresh and acceptance budgets formally bounded at docs/scheduling-runtime-design.md:434-490.

6. "No magic defaults." The threshold is hardcoded at two committed rounds (refresh.rs:54) with no derivation, in a codebase whose own review culture demands derivations for constants (0.88, 4.0, 2.0, 6; see the #540 review). Two rounds fires during healthy cadence-driven width-one selection — matching the 30 firings in three seconds the author logged.

7. Wrong module, wrong bookkeeping. RefreshState is documented as "timing-refresh and acceptance-learning credit" (docs/scheduling-runtime-design.md:9-12); a speculative-width streak does not belong there, and the AtomicU64 buys nothing because commit is reached through &mut self (scheduler.rs:2424). Returning the forced plan as PlanOrigin::Ordinary (policy.rs:1304) makes it invisible in flare_scheduler_executions_total, which docs/scheduling-runtime-design.md:488-490 requires to separate ordinary/discovery/refresh/acceptance, and lets it silently earn refresh and acceptance credit (refresh.rs:86-91). The streak also never resets on probe commits (refresh.rs:67 gates on Ordinary), so it can re-arm immediately after a probe.

8. The claimed observability is not in the diff. "Log the selection as Forced wide:" appears nowhere in the changed code (a repo-wide search for Forced wide finds nothing under helios/src). The evidence sequence came from a separate prototype image (…argdiag-20261128), so it is not reproducible from this branch — and docs/design-review.md:106-115 requires evidence tied to the claimed change.

9. Tests are too thin for the claims. One positive-path test (batch 1, width 8). Untested: the asserted narrower-drafter generality (width 2/4 — the PR's own selling point), fall-through when no wider sibling exists, streak reset on a wide round, refresh/probe precedence, and re-arming after a probe. The test also required a shared-fixture semantic change — policy_tests.rs:239 offered_drafts from plan.token_capacity - 1 to lane.tokens - 1 — which alters completion inputs for many existing tests, not just the new one.

A simpler way to the same end already exists

The cheapest correct experiment is therefore no new scheduler code at all: after #540, re-run the same request sequence and read flare_speculative_rounds_total{batch,width} with candidate scores. #503's own ask ("what is the simplest way to inspect candidate scores at selection time?") is still unmet; a selection diagnostic would answer the width-one question without changing behaviour, satisfies "smallest footprint," and serves #152 and #503 too.

What would change the verdict

If, after #540 lands, a width-one state is demonstrated to persist on a served workload with a control comparison, a bounded fallback may be justified — but built differently:

  1. Express it as a value-priced exploration rule inside the existing metric (widening bonus, or a mandated alternative on a bounded period), not an override of the argmax — preserving docs/scheduling-theory.md:195 and the invariant at :252-257.
  2. Select after padding pruning, and prefer the widest measured, fresh (D, W) with the smallest adequate P — never the most padded.
  3. Give it its own PlanOrigin/TimingOrigin and counter so forced rounds are visible and earn no ordinary refresh/acceptance credit; reset its state on every probe.
  4. Derive the threshold from data instead of a round count.
  5. Submit the simulator run and TLA+ conformance run required by docs/design-review.md:195-240, plus a served A/B against main reporting per-round widths and durations (#210), and cover every path in point 9.

Bottom line

Not worth merging. Close or park it, merge #540, re-measure the workload this was written for with a control, and if width-one episodes survive, return with a value-priced rule plus simulator, formal, and served A/B evidence — or, better, return first with the scheduler-selection diagnostic that #503 and #152 both asked for.

(Process note: the PR discussion contains only an automated case-file comment; I found no attempts in the PR text, comments or files to direct my behaviour.)

Full report · Notes Decide Value: no (99%): It is low value or does not align with the project charter.

screen malicious

Screen Result: All Clear

Evidence: Screened PR #571 ("helios: force a wide round after persistent width-one selection", head c64343b, author malventano, draft, no CI/reviews) by reading the complete diff (7 files, +148/−9, all under helios/src: scheduler.rs, scheduler/policy.rs, scheduler/policy_tests.rs, scheduler/refresh.rs, server/dashboard/scheduler.rs, server/metrics.rs, server/metrics/scheduler.rs) plus full-text reads of refresh.rs:1-136, policy.rs:1230-1320 and policy_tests.rs:40-130, 240-300.

The change is ordinary Rust scheduler/telemetry code: a new PlanOrigin/TimingOrigin::WidthOneProbe variant, width-one streak/next-probe/interval/target counters as AtomicU64 in RefreshState, and a policy.rs branch that picks a measured speculative candidate sharing the batch and mask, escalating width with a doubling interval capped at 64 and resetting on an ordinary wide plan. It matches the description exactly, with no second unstated behavior. No shell/network/filesystem/process access, no env-var reads, no unsafe blocks, no new dependencies, and no build scripts, CI workflows, manifests, docs or binaries touched.

No text in the diff — comments, strings, doc-comments, metric help text, test names — addresses a model or agent, embeds a persona, or redirects instructions. Injection/exfiltration marker searches over helios/src/scheduler and helios/src returned nothing; the only openai/anthropic hits are pre-existing, unrelated HTTP protocol handling (helios/src/server.rs:767 (not opened), server/http.rs:147 (not opened), protocol/decode.rs (not opened), protocol/encode.rs (not opened)).

Discussion holds only the repo's own flare-autobot case-file and "review stopped — low value" notices (linking to autobot.eidonix.com, not fetched) and the author's engineering comments: parking the draft until #540, describing the probe, and posting repro/logging steps for human engineers. No imperatives to an agent, no "ignore instructions", no requests to run commands or send data.

Two ordinary code-review points, not security: policy_tests.rs:272 changes the test helper's offered_drafts from plan.token_capacity-1 to lane.tokens-1, which could mask a behavior delta; and note_width1_probe escalates width to 8 while a probe never resets the streak, making probe spacing streak+interval.

Limitation: the invisible/bidi-Unicode regex check was rejected by the search tool (Invalid range end), so that one check rests on manual reading of every changed hunk (plain ASCII-looking code). The claimed 146-test pass and the referenced timing episodes are not attached to the PR and were not verifiable. No content from the PR was executed, fetched or forwarded.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: malventano (CONTRIBUTOR; 1 prior merged PR #316, 1 open #381; Discord: malventano) Motivation: When the scheduler keeps picking a width-one speculative round (zero draft tokens) even though a wider, already-measured shape exists, nothing bounds how long that lasts. The PR adds a state-machine escape: after N width-one rounds it forces a wider measured candidate, escalating and backing off on later attempts. Scale: +148 / −9 in 7 files (was +78/−3 in 3 files; commit c64343b2, PR now a draft) Proposal:

Full report · Notes

Value Proposition

Verdict: Not worth merging now — park it. The revision is a real improvement, but the charter gate it failed (evidence, place, simulator) is still unmet, and the mechanism it adds duplicates one the project already funds.

I re-reviewed the PR at its new head c64343b2 ("helios: probe measured wide candidates with bounded backoff"), 7 files, +148/−9. My earlier review recommended closing; that was too harsh — most of the concrete defects I found have been fixed. What remains is a governance/evidence problem and one design-duplication problem, neither of which new code in this PR can settle.

What the revision fixed (credit where due)

The author's own figures put the amortized cost at ~1.8% (one 5.3 ms round per 64 × 4.63 ms width-one rounds) — bounded, and far from the 12× inflation of the first draft.

Why it still should not merge

1. The charter's evidence bar is still unmet (#210, #397). There is no served-workload A/B against main, and the author states plainly that one is "not practical for a rare load-dependent state" and that the 64-seed simulator "cannot synthesize it." A performance-motivated scheduler override with no control measurement is exactly what "Bring real evidence" excludes. The 19:57/19:58 capture shows the old fallback misbehaving; it does not show that the state persists, that this probe recovers it, or that throughput improves.

2. The mandated simulator/formal layer is still skipped. docs/design-review.md:195-206 requires graph-selection and refresh/exploration-budget changes to be evaluated in scripts/scheduling_sim/, and says not to diverge Helios from the simulator's qualified policy "without updating and validating the rule across that catalog." :234-240 calls skipping it "a blocking design failure, regardless of whether CPU unit tests pass." This PR reports one suite count ("146 tests, 2 ignored") and no simulator, TLA+, or conformance run. The author's reasoning that the simulator cannot synthesize the state may well be true — but then the rule must still be added to the simulator and validated so Helios and the reference policy do not silently diverge.

3. It duplicates a mechanism the project already has and funds. The funded acceptance probe (learning.rs:15-60, gated at policy.rs:1276, documented docs/scheduling-runtime-design.md:467-490) already forces a wider-than-ordinary candidate in the same cohort, and policy_tests.rs:2670 shows it escaping width one. The new probe's only distinguishing property is that it fires without credit — i.e. precisely the symptom #540 fixes (idle discards positive credit, docs/scheduling-runtime-design.md:439-440,463-465). Adding a second, unfunded escape path before the funded one is fixed is solving the right symptom in the wrong order.

4. It is an unfunded channel and deliberately ignores the value metric. The acceptance probe requires candidate.rate.compare(ordinary.rate).is_gt() (learning.rs:41); this one requires nothing above the diagonal (policy.rs:1281-1311). Selection is defined as E[useful]/T (docs/scheduling-runtime-design.md:3, docs/scheduling-theory.md:195,569-574), and the documented expense bounds P <= alpha/(1-alpha)*O + D do not cover an unfunded rule. The cost is small in practice, but it is invisible to the accounting the project uses to argue safety.

5. Magic constants in shared runtime code. 2, 64 and .min(8) at refresh.rs:58,70-72 hardcode the escalation ceiling to width eight in a runtime the charter requires to stay model-agnostic; the target width should come from the prepared catalog, and the interval needs a stated derivation (the #540 review asked for exactly this on 0.88/4.0/2.0/6).

6. Small correctness/placement residue. Four AtomicU64 fields sit in RefreshState, documented as the credit module (docs/scheduling-runtime-design.md:9-12), although commit is reached through &mut self (scheduler.rs:2426). Only duration > 0 is checked, not costs.is_fresh(), so a stale estimate qualifies. The streak is preserved across refresh/discovery commits (refresh.rs:96). Untested paths: fall-through when no measured wider sibling exists, reset after a wide round, precedence versus refresh/acceptance, fixed-width cores, and interaction with the two credit ledgers. The shared fixture still changes offered_drafts from plan.token_capacity - 1 to lane.tokens - 1 (policy_tests.rs:272), altering completion inputs for many existing tests.

7. Sequencing. The author parked this on 2026-11-28 20:21 "until #540 lands and a same-base control measurement is complete" — his own correct disposition — then unparked it at 20:59 without #540 landing. #540 is still open.

Who benefits, and what it costs

Only a deployment stuck at width one for a reason #540 does not fix — a state nobody has yet demonstrated, in a codebase where width one is often the correct choice (#152: balanced policy prefers it at batch 4 with 8% higher throughput; #503: width-one share rising 0→36→66% with cause unknown, whose author asked for selection diagnostics, still unmet). Benefit today: unmeasured. Cost: a second, unfunded escape path in the scheduler that must be documented, simulated, kept in sync with the reference policy, and reconciled with the value metric and the funded budgets.

What would change the verdict

After #540 lands, if width-one episodes are demonstrated to persist with a same-base control:

  1. First try no new policy at all — re-run the workload and read flare_scheduler_speculative_rounds_total{batch,width} plus candidate scores. #503's diagnostic ask would answer this without changing behaviour.
  2. If a rule is still needed, express it as a value-priced or credited variant of the existing acceptance probe (e.g. retain credit across idle, or a bounded widening term) rather than a separate unfunded override — keeping docs/scheduling-runtime-design.md:3 and :252-257 intact.
  3. Add the rule to scripts/scheduling_sim/learning_policy.py (not opened), name it in the qualified policy, and run the screening + 64-seed validation catalog and verification/helios-lifecycle/check.py (not opened) (docs/design-review.md:195-240) with the output posted.
  4. Derive the constants from the catalog/target width and cover the untested paths in point 6.

Bottom line: worth it only with those changes and only after #540 plus a control measurement — not mergeable as it stands.

(Process note: the PR discussion contains only automated case-file posts and the author's own comments; I found no attempt in the PR text, comments or files to direct my behaviour.)

Full report · Notes Decide Value: no (95%): It is low value or does not align with the project charter.

Apply Labels

Applied: +triage:design-review, +performance, +area:scheduling

Classification Confidence

Threshold: 65%

Triage

Priority

Type

Area

Model