Pre-test report — PR #178 "Keep the default Windows Ctrl-C termination while loading"
Recommendation: DO NOT refer to hardware testing in the current state. Two independent reasons, either of which is sufficient:
- The code under test cannot land. The entire +8/−6 diff edits
flare/src/main.rs, which does not exist onmain(removed by fa158284 on 2026-11-09, when the CLI split out toflare-cli/). The PR cannot merge, and even a verbatim port intoserve()would be a silent no-op on Windows (see §2). Testing a patch that must be rewritten first is pure waste. - Our fleet cannot execute the code path at all. The change is
#[cfg(windows)]console-signal handling. cn5 is amd64 Linux (4× RTX PRO 6000) and cn7 is arm64 Linux (GB10); neither compiles that code and neither can deliverCTRL_C_EVENTthrough Windows' console-control-handler machinery.docs/windows.md:3-4scopes Windows serving to Windows 11 x64/ARM64. Expected validation value on cn5/cn7 is zero.
There is no A/B throughput, regression or performance test in scope: the diff touches no kernel, no scheduler, no serving loop and no Unix code, so there is nothing for a GPU benchmark to measure.
1. What the PR claims, verified against main
The diagnosis is correct, and I confirmed it independently rather than trusting the summaries:
| Claim | Verification |
|---|---|
| Handler installed before download/load on main | flare-cli/src/main.rs:187-192 — SetConsoleCtrlHandler(Some(stop_console), 1) sits immediately after the Windows multi-host rejection (:178-186) and before load_core (:266) and NativeModel::load_agreeing (:319) |
| Handler suppresses default termination | stop_console (flare-cli/src/main.rs:736-745) returns 1 for `CTRL_C_EVENT |
Nothing reads STOP before serving on Windows |
Readers on main: main.rs:662,680 (serve), :714,728 (serve_local), distribution.rs:192 (not opened) (mod distribution gated #[cfg(unix)], main.rs:19-20), launch.rs:176 (not opened) (#[cfg(unix)], :30-31), parallax.rs:217 (separate subcommand that returns at main.rs:110-113 before registration). No Windows-path reader before :714 |
| Unix unaffected | The whole hunk is #[cfg(windows)]; Unix sigaction at :653-657 and :705-709 untouched |
So the defect is real and main still reproduces it: Ctrl-C during a tens-of-GB download or weight load on Windows is swallowed and the process must be force-killed. Issue #113 was closed by its Linux reporter as fixed, so no Windows user has reported this — the defect is inferred from code reading. That is legitimate but it is also the only evidence offered.
2. Blocking: the file is gone, and a naive port still fixes nothing
pr_files / list_files(pattern="flare/src/main.rs", ref="main") → no match; the only */src/main.rs files on main are flare-cli/src/main.rs and selene-manager/src/main.rs (not opened). The branch base 902c88e predates fa158284 entirely.
Critically, porting the hunk as-written into main's serve() produces a compiling no-op:
- Windows rejects
--rank,--rendezvous,--hosts,--roce-ring,--roce-chain(flare-cli/src/main.rs:178-186);membershipisNone(:261-274); soclusterisNone(:321-325). serve()therefore returns at:602-604(if cluster.is_none() { return serve_local(...) }) and never reaches theServer::startblock at:630-648that the PR targets.- The Windows server start is
loaded.start()atflare-cli/src/main.rs:702, insideserve_local(:692-734).
Note also that stop_console is still referenced after such a port, so cargo check passes for both the correct and the incorrect placement — only a Windows runtime run distinguishes them. That is the strongest single argument for testing after the port and not before.
The fix (for the author, not for a tester): delete 187-192; insert the registration in serve_local between phase.finish("tokenizer ready") (:700) and loaded.start() (:702). One site covers all Windows serving, since Windows can only ever enter serve_local. The drain argument survives the move for free: LoadedSession::start already wraps the owner in a DrainGuard that mem::forgets it unless drain is confirmed (helios/src/server/session.rs:48-80, :110-133).
3. Corrections to the review summaries (they matter for the test decision)
- "Should fix — the new registration point creates a new swallow window inside
Server::start" (Correctness lens) is not a regression. Pre-PR, the handler was registered before download, so download + load +Server::startwere all swallowed. After the port, onlyServer::startremains swallowed — strictly better.Server::startblocks onready_rx.recv()(helios/src/server.rs:417) while the worker builds executors (runtime.rs:584) and runs tuning graphs with a 120 s deadline each (transport.rs:474-481,:598-604), so the residual window is real (and a second Ctrl-C cannot escalate), but it is a pre-existing limitation, not something this PR introduces. It does not block testing, and a tester should expect the press during "Start server" to look swallowed. - "Should fix — reuse
heliopause::CliSignals" (Conventions lens) is overstated. That helper callsExitProcess(130)(heliopause/src/processes_windows.rs:16-27), i.e. it bypasses CUDA teardown, andflare-clidoes not depend onflare-heliopause(flare-cli/Cargo.toml:22-49). Adopting it would add a cross-crate dependency and change drain behavior for a 6-line relocation — the churn AGENTS.md (not opened) forbids. Maintainer call, not a defect. - "Post CI output for the Windows leg" (Architecture/Prose lenses) is not currently satisfiable on
main. Per open PR #177, thenative (windows-2022)job is red on every main commit (STATUS_DLL_NOT_FOUNDon the I/O-ring DLL, plus 8 CLI test failures). The workable compile evidence is a cross-build from Linux withcargo-xwin(docs/windows.md:29-36). - Nit only: "nothing observes
STOPbefore serving" is true forflare run(theparallaxreader is a different subcommand that never installs the handler); doc/nit issues (staledocs/windows.md:141-142, comment wording, missingDiscord:line, missingSigned-off-by, stale design digest, #113 attribution) are all correct but must not gate a hardware test.
Overall code quality: after the port and the two-line doc fix, the change is minimal, single-purpose, Unix-neutral, adds no flag/abstraction/dependency, and is the right shape per the charter. Nothing about its architecture argues against testing — it just has to exist on main first. Maintainer status is CHANGES_REQUESTED (yatesdr, 2026-11-18, four asks), with no author reply and no CI on head 85fb08c.
4. Test referral decision and plan
Now: not referred. Send back to the author for the port, doc qualifier, and DCO/design trailers. Spending Windows hardware time on the current head would validate nothing at all, and we have no Windows hardware anyway.
Conditional plan, to run only after the port lands on main and docs/windows.md:141-142 is qualified. Total: ~1.5–2 h of a Windows host plus ~20 min of CPU on cn5. Do not run the full suite; do not run GPU benchmarks.
Step 0 — compile evidence (CPU only, can run on cn5 today once ported; ~15–30 min, no GPU):
cargo xwin build --locked --release --manifest-path flare-cli/Cargo.toml --target x86_64-pc-windows-msvc(exact invocation atdocs/windows.md:29-36). This is the only cheap check that the#[cfg(windows)]block compiles — the CI Windows leg is red per #177, so do not block on it. ConfirmWin32_System_Consoleis already enabled (flare-cli/Cargo.toml:48-49) so no manifest change is expected.- Also run
flare-cli/tests/cli.rs:56-75(windows_rejects_multi_host_options_before_loading) via the cross-build test path if feasible; the port deletes the block this test's ordering depends on.
Step 1 — behavioral check on a real Windows 11 x64 host with one SM120/SM121 GPU and a prepared core (this is the only test that can settle the PR; ~45–60 min including a download):
Build per docs/windows.md:41-58, then flare run <core> --gpus 0 and a Ctrl-C at each of the three observable boundaries:
| # | When | Expected after the fix |
|---|---|---|
| 1 | During model download / verification ("Acquire core" progress) | Process exits within ~1 s, non-zero/STATUS_CONTROL_C_EXIT; no "handled" swallowing. Re-run resumes from the partial file (hub resume, flare/src/hub.rs:576-606 (not opened)) — spot-check that it does not restart from zero and that the completed core still digest-verifies |
| 2 | During "Load tokenizer" / weight loading (LoadedSession::new, :697-700) |
Process exits within ~1 s. Same check as above: no orphaned lock, next flare run succeeds |
| 3 | After http://… prints (serving loop, :714) |
Drains: "Shut down server" phase, exit code 0, no native replay did not drain. Then re-run and complete one chat request to prove no CUDA-context corruption |
| 4 | Ctrl-C during "Start server" (tuning graphs) — recorded, not pass/fail | Press appears swallowed; process exits only after Server::start returns. Pre-existing limitation; log the observed latency so the maintainer can decide whether to document it or add stop polling |
Step 2 — minimal Unix regression guard (cn5, ~10 min, optional but cheap): one Linux flare run + Ctrl-C on cn5 to confirm serving still drains and exits 0. Expected value is near zero because the diff is #[cfg(windows)]-only, so skip it if cn5 is contended. No A/B throughput test and no cn7 run are warranted — nothing in this change touches performance or non-Windows serving.
Definition of done for the tester: steps 1–3 pass, step 4 recorded. If step 0 fails, stop and return to the author — do not spend Windows time.
Effort/value: value is high per affected user (Windows is a documented first-class target with released x64/ARM64 binaries, and a long download/load is every user's first path), cost is a single Windows session. But that value is only realizable after the port; testing head 85fb08c is guaranteed waste.