Amendment to the case file — PR #571 ("helios: force a wide round after persistent width-one selection")
Output is amendments only, per the task. Head moved aab9295 → c64343b2; the PR is now a draft. Each item says whether it supersedes a round-1 finding in the scratchpad (#15) or is new. Scratchpad map: #16 (code facts), #17 (discussion/state), #18 (fixed vs still wrong), #20 (delta map), #21 (repro-capture comment).
Key findings (amendment level)
- Scale and surface changed: 3 files +78/−3 → 7 files +148/−9, and the PR is a draft, not ready-for-review. The change now also touches
helios/src/scheduler.rs(+2),helios/src/server/metrics.rs(+1/−1),helios/src/server/metrics/scheduler.rs(+5/−3) andhelios/src/server/dashboard/scheduler.rs(+1). (pr_files,read_item(571).) - Two round-1 findings are withdrawn: the forced round is no longer reported as ordinary service (it has its own
PlanOrigin::WidthOneProbe/TimingOrigin::WidthOneProbe, its own Prometheus series and dashboard label), and the picker no longer takes the widest-and-most-padded candidate nor scans the dominated tail. (refresh.rs:21,scheduler.rs:497-501,:2392-2397,server/metrics.rs:939,server/metrics/scheduler.rs:96-97,:175-179,server/dashboard/scheduler.rs:268,policy.rs:1283,:1294-1299.) - The core objection survives in narrower form: selection is still geometry-first —
compare/value-rate is never consulted in the forced block, so it remains a second selection rule beside the documented value-rate maximization (policy.rs:1217-1236vs:1281-1311; documented atdocs/scheduling-runtime-design.md:241-261, list of selection reasons at:488-490). - New, high importance: escalation ignores its own measurement.
note_width1_probedoubles width (2→4→8, capped) and interval (2→4→8…→64) purely because a probe was committed; nothing reads the probe's observed duration (refresh.rs:66-73; reset only on an ordinary wide plan,:90-95). The claim "escalates only when needed" is not what the code does. - New: the "measured" filter does not require freshness —
duration_key(..).is_some_and(|d| d > 0)(policy.rs:1289) accepts any existing non-zero estimate (cost.rs:256-258), althoughis_fresh/stale_keysexist for this (cost.rs:260-273). - New: budget-accounting hole.
WidthOneProbeis excluded fromis_probe()(refresh.rs:25-27), so it sets noactiveepisode (:84), is exempt from the isolated-measured-interval completion rule (:100-106), and charges neither ledger incomplete(:108-124) — whiledocs/scheduling-runtime-design.md:474says only one probe episode can be active and:455-460bounds probe expense by the ledger. - The author's round-1 evidence no longer describes this code: the 64.9–66.6 ms / 30-forced-selections-in-3-s figures are from the withdrawn picker. The current evidence is width one 4.63 ms, measured wider 5.24–7.08 ms, old fallback 13.553 ms (comment 2026-11-28 20:59) — a 2-second capture plus unit tests, with no A/B.
- Process worsened: the only review on record is the bot's earlier "Review Stopped — low value or does not align with the project charter" (18:44), which predates the revision; the author's self-imposed precondition (#540) now has no near date because #540 carries a Changes-Requested blocker; and
mainis far past the PR base.
1. Scale, state and provenance
- Draft, head
c64343b2, 2 commits, updated 2026-11-28 21:44,fix/helios-forced-wide-fallback→main(read_item(571)). - Diff surface as listed in Key finding 1 (
pr_files; diff totals +148/−9). - Rationale for the revision is the author's own 20:21 comment: "The current forced picker selects the widest and most padded candidate, so it can make rounds more expensive without recovering throughput" — i.e. the round-1 cost finding (30 forced rounds at ~65 ms) was accepted by the author and the picker replaced.
2. Round-1 findings withdrawn
- "The description says it logs
Forced wide:; the diff logs nothing." Withdrawn as a description contradiction — the revised description no longer claims a log line. Residual fact retained: the diff still contains no logging at all, so observability rests entirely on the new metric series (notracing/printlnadded in any of the 7 files;pr_diffon all files). - "The forced round is invisible: reported as ordinary service and counted under
reason=\"service\"." Withdrawn.TimingOrigin::WidthOneProbeis mapped fromPlanOrigin::WidthOneProbe(scheduler.rs:2392), added to the metrics reason match (server/metrics/scheduler.rs:175-179), the counters grow 4 → 5 (:96-97), Prometheus exportsreason="width_one_probe"(server/metrics.rs:939), and the dashboard prints "width-one probe" (server/dashboard/scheduler.rs:268). It also earns no ordinary refresh/acceptance credit (refresh.rs:116). - "The forced path prefers the larger, more padded
packed_token_capacitybefore price." Withdrawn. Nowchoices.sort_by_key(|c| (c.capacity, c.packed_token_capacity))thenfind(capacity >= target)elselast()— smallest capacity that reaches the target width, ties broken by least packing (policy.rs:1294-1299). - "It scans the whole candidate vector, including the dominated tail kept for refresh probes." Withdrawn. The scan is
candidates[..ordinary_count], the retained head only (policy.rs:1283). - "The forced candidate's lane lengths are recomputed (
host_lengths = None)." No longer applies: that line is gone; the forced block now requiresbatch == ordinary.batch && mask == ordinary.mask(policy.rs:1290-1291), so it reuses the ordinary cohort's lane geometry with a wider graph. The round-1 lane-recomputation citation (policy.rs:1298inaab9295) must not be repeated. - "The pick made the new test expect drafts 7 / capacity 8." Withdrawn. The test now asserts
(Speculative, 1, 2)— a measured width-two (policy_tests.rs:60-83).
3. Round-1 findings revised (narrower, still true)
- Geometry-first selection. Still the central objection:
choicesare filtered on kind, draft count > 0, measured non-zero duration, identical batch and mask (policy.rs:1286-1292), then ordered by capacity alone.compare— value rate first (policy.rs:1223-1224) — is never called. The target width comes from a counter state (width1_target_width(),refresh.rs:62-64), never from a measurement of the wider shape's value. The design doc's rule remains "value-rate maximization with domination pruning" (docs/scheduling-runtime-design.md:241-261), so this is an undocumented second selection rule. - Charter tension. Unchanged in substance and now sharper: the charter requires "benchmarks showing an actual speedup over
mainon a served workload (#210)" or a root-cause fix (#397); the author states outright that "An A/B is not practical for a rare, load-dependent state, and the 64-seed simulator cannot synthesize it" (comment 20:59). The remaining evidence is a ~2 s capture and unit tests. - Author's evidence is now pro-fix, not anti-fix. Do not present the 64.9–66.6 ms / 30-in-3-s numbers as this probe's behaviour; they measured the withdrawn implementation.
4. Round-1 findings retained unchanged
- Undeclared shared test-helper edit.
completion_recordschangesoffered_drafts: (plan.token_capacity - 1)→(lane.tokens - 1)(policy_tests.rs:269in the diff; helper feedsstep()/complete_timedacross the scheduler suite). Still not mentioned in the description. Rationale (inference from code, no suite run): completion validation rejectsoffered >= lane.tokens(helios/src/scheduler.rs:2539), so wide plans whose lanes are frozen below the graph ceiling now occur in existing traces. - Per-scheduler, not per-request, counter.
width1_streak/width1_next/width1_interval/width1_widthlive onRefreshState(refresh.rs:38-41); natural end-of-request width-one rounds still arm it (speculative_tokensclamps width to 1,helios/src/scheduler.rs:2295-2305). Two unrelated requests finishing can arm a probe for whatever cohort ordinary selection was about to serve. Not in the description. - Not reset by
idle()/abort()(refresh.rs:126-134), and never decayed. AtomicU64+Relaxedunder&mut selfwith no cross-thread reader (refresh.rs:57-73vs:83).- No docs, simulator or formal-model update:
docs/scheduling-runtime-design.md:434-490is untouched and its:488-490still lists four selection reasons whileserver/metrics.rs:939now exports five; nothing inscripts/scheduling_simand noRefreshStatecoverage in the TLA+ models (AGENTS.md:52-60,:231). - Premise gap:
select_planearly-returns on discovery (policy.rs:1237-1239) and the block sits after discovery, funded refresh and acceptance (:1240-1280), and entry requiressubmissions.len() < 2with no feedback submission (:1209-1211) — so a probe runs only on an otherwise empty submission window, exactly the busiest-state case the author says needs it. - People and engagement: author malventano (CONTRIBUTOR; 1 prior merged PR #316, 1 open #381); files owned by Luke Alonso / Martin Vit / yatesdr / FujitsuPolycom per 180-day history; no reviewers, no labels, no CI, no human comment.
5. New findings (this revision)
- Escalation is blind to its own outcome.
note_width1_probe(refresh.rs:66-73):next = streak + interval,interval = min(2*interval, 64),width = min(2*width, 8). No code path reads the probe'sExecutionTimingto decide whether to escalate, shrink or stop. Only an ordinary non-width-one commit resets2/2/2(:90-95). A lane that is legitimately width-one-bound — grammar-constrained MTP or host-evaluated stops (docs/mtp-design.md:434-436(not opened);helios/src/scheduler.rs:2295-2305) — therefore escalates to width-eight probes indefinitely at up to 64-plan spacing, on every cohort that lane joins. This is the most substantive new objection. - "Measured candidate" ≠ fresh candidate.
policy.rs:1289consultsduration_key(cost.rs:256-258), which returns any stored estimate;is_fresh/stale_keys(cost.rs:260-273) are not used. A stale width-two entry measured under a different load passes the filter. - Probe plans are not feedback plans and are outside both ledgers.
is_probe()excludesWidthOneProbe(refresh.rs:25-27);plan_requires_feedbackkeys onplan.origin.is_probe()(helios/src/scheduler.rs:1167-1178), so the probe may be submitted alongside other work — its cost sample becomes a queued interval (cost.rs:21-29) and the isolation rule (refresh.rs:100-106) never applies. Deliberate for cost recording, but it weakens "measured candidate" as evidence and contradictsdocs/scheduling-runtime-design.md:474and:455-460as written; no document states the exception. - Telemetry is a new contract surface that must stay in lockstep across five places (
refresh.rs:21,scheduler.rs:497-501+:2392,server/metrics/scheduler.rs:96-97+:175-179,server/metrics.rs:939,server/dashboard/scheduler.rs:268); the round-1 claim of an unchanged API/telemetry surface no longer holds, and the design doc's enumeration is now stale. - The 21:44 comment is an observability spec, not evidence. It asks reproducers to log per-decision origin/width/lane lengths/value rate, "probe readiness", "width-one flag", "stale candidate count", "probes blocked", per-candidate score and duration, plus per-reason counters and rounds by batch/width. The diff emits only one counter family (
reason="width_one_probe") and one dashboard string; the trace buffer is opt-in and capacity-bounded (server/metrics/scheduler.rs:83-150), so a contiguous multi-minute capture is not guaranteed. Treat the recipe as future work, not validation the patch satisfies. - #540 moved further away, not closer. Head now
cdf1185d, updated 23:42, and its autobot review is Changes Requested with one blocker (heliopause/src/export/binding.rs:201(not opened) writesdraft_source="MTP"unconditionally, so wide copy-verify never runs on an exported core) plus 4 should-fix. The author's "parking this until #540 lands" precondition therefore has no near date, and #540 also rewritesrefresh.rs/docs, enlarging the rebase surface onRefreshStateandpolicy_tests.rsbeyond the round-1 "one field, one method, three lines" estimate. mainmoved far past the base. Based17efddc; since thenba3afb13(#589),2bdc8472(#573),70e0f4a8(#579),167f22c8(#570),1364062c(#550),d3d0e783(#212),7cd83f32(#569),5deacda9(#568), plus9031847a/85de9eae/f5ce5534. The PR's own comparison base is stale and the rebase is materially bigger than reported in round 1.- Promised but not delivered: the 20:21 comment commits to "a value-priced rule… and served A/B evidence". The revision delivers a measured candidate and its own origin, but not a value-priced rule (still geometry-first) and not A/B evidence. That gap is the clearest thing a reviewer should hold the PR to.
6. Open questions / not found
- Whether the revised probe fires at all in the state it targets:
submissions.len() < 2, no feedback submission, no discovery winner, and the ordinary winner must be a measuredSpeculativewith 0 drafts (policy.rs:1209-1211,:1237-1239,:1281). A busy scheduler skips it; the author's own capture is described as "rare, intermittent". - Whether the shared-helper change (
lane.tokens - 1) masks a regression in other scheduler/simulator tests; no suite run and no per-test breakdown given (only "146 tests with 2 ignored" for the policy suite). - Whether
TimingOrigin::WidthOneProbepropagates everywhereTimingOriginis matched outside the edited files; only the five edited sites were verified. - No answer on who owes the design-doc entry for a fifth selection reason, or whether the hidden fifth reason is acceptable to the doc's "only one probe episode can be active" invariant.
- Not found: any competing or duplicate proposal for a forced wide round; no human review of #571 before or after the revision; no re-review has run since the 18:44 bot halt.