#1 [high] PR #178 facts: dead file, real defect on main, serve_local insertion point
PR #178 head 85fb08c, base 902c88e, +8/-6 in flare/src/main.rs only (pr_files result 1).
- flare/src/main.rs does NOT exist on main (list_files pattern flare/src/main.rs ref main -> "No files match"). Only flare*/src/main.rs on main = flare-cli/src/main.rs. Moved by fa158284 (2026-11-09).
- The block the PR deletes still exists verbatim at flare-cli/src/main.rs:187-192, i.e. before load/load_agreeing, so the defect reproduces on main.
- stop_console at flare-cli/src/main.rs:736-745 (returns 1 for CTRL_C/CTRL_BREAK => default termination suppressed).
- STOP readers on main: main.rs:662/680 (serve), 714/728 (serve_local), distribution.rs:192 (mod is #[cfg(unix)], main.rs:19-20), launch.rs:176 (#[cfg(unix)] mod, main.rs:30-31), parallax.rs:217 (separate parallax command, also gated? parallax mod is not cfg-gated: main.rs:34). Note: parallax reads STOP and is compiled on Windows.
- Windows cannot reach serve()'s Server::start: Windows rejects --rank/--rendezvous/--hosts/--roce-* at :178-186; membership None at :261-274 -> cluster None at :321-325 -> serve() returns serve_local at :602-604. serve_local:692-734, start at :702 loaded.start().
- LoadedSession::start (helios/src/server/session.rs:48-80) wraps owner in DrainGuard (:110-133) so undrained owner is leaked (mem::forget), i.e. drain-on-failure already handled there.
- docs/windows.md:141-142 (main): "Ctrl-C and Ctrl-Break drain native work before releasing CUDA resources." Windows supported targets: Windows 11 x64/ARM64 (docs/windows.md:3-4).
- Windows CI lane exists: .github/workflows/native-serving.yml:20-21 windows-2022, :45 cargo build flare-cli, :73 cargo test; but per PR #177 that job is red on main (eos test bin STATUS_DLL_NOT_FOUND, ioring DLL; 8 CLI test failures). docs/windows.md:24-39 documents cross-build from Linux with cargo-xwin 0.23.1.
- Server::start blocks on ready_rx.recv() (helios/src/server.rs:417); worker builds RankExecutor/GraphExecutor (runtime.rs:584, transport.rs:474-481) and each tuning graph has a 120s deadline (transport.rs:598-604).
- Reviewer yatesdr CHANGES_REQUESTED 2026-11-18: port to flare-cli, cargo check windows target + real Ctrl-C run, docs, Signed-off-by + fresh design digest. No author reply. Only other comment: original-el8 mergeability note.
#2 [high] Decision: no hardware test now; fleet has no Windows host
Decision: DO NOT refer PR #178 to hardware testing in its current form.
- Code can't merge/land (edits deleted file) and a naive port into serve() would be a no-op on Windows (must go in serve_local before loaded.start() at flare-cli/src/main.rs:702). Testing now = testing code that must be rewritten.
- Available hardware cn5 (RTX PRO 6000, amd64 Linux) and cn7 (GB10, arm64 Linux) cannot execute #[cfg(windows)] code or receive CTRL_C_EVENT; docs/windows.md:3-4 scopes Windows to Windows 11 x64/ARM64. The behavioral claim needs a Windows console + GPU, so zero expected validation value on our fleet.
- Correction to Correctness review summary: the Server::start swallow window is NOT new. Pre-PR the handler was registered before download, so download+load+Server::start were all swallowed; after the port only Server::start remains swallowed => strictly better, no regression. Residual gap: second Ctrl-C cannot escalate during startup tuning (up to 120s/graph, transport.rs:598-604) and during a stuck drain. Maintainer decision, not a blocker.
- Correction to Prose nit: "nothing observes STOP before serving" is scoped to the run path; parallax.rs:217 (mod not cfg-gated) reads STOP, but parallax is its own subcommand, so claim holds for
flare run. - Conditional plan (only after port + doc fix): (1) Windows target compile check via cargo-xwin on cn5 CPU-only (~10-20 min, no GPU) since the windows-2022 CI leg is red per #177; (2) one Windows 11 x64 SM120 host run: Ctrl-C during download exits immediately (~1s) and next run resumes; Ctrl-C during weight load exits immediately; Ctrl-C after "Start server" drains and exits 0; (3) optional single Linux serving smoke on cn5 to prove no Unix regression — near-zero value since diff is cfg(windows)-only.
#3 [high] Windows test-step boundaries for the ported Ctrl-C fix
- serve_local (flare-cli/src/main.rs:697-704): phase "Load tokenizer" (:697) -> LoadedSession::new (:698) -> phase.finish("tokenizer ready") (:700) -> phase "Start server" (:701) -> loaded.start() (:702) [Server::start blocks on ready_rx.recv(), helios/src/server.rs:417, worker builds executors and runs tuning graphs each with 120s deadline, helios/src/execution/transport.rs:474-481,598-604] -> phase.finish prints "http://" (:704) -> unix sigaction (:705-709) -> dashboard (:711) -> serving loop reading STOP (:714).
- So after the port, distinct observable boundaries for a Windows tester: (a) download/verify + weight load (Load tokenizer phase): Ctrl-C must exit immediately now; (b) "Start server" phase incl. tuning graphs: STOP is set but nothing polls it until :714, so the press looks swallowed and exit happens only after start returns — residual, not a regression (pre-PR this whole window plus download/load was swallowed); (c) after the http:// URL prints: Ctrl-C must drain and exit 0.
- Only SetConsoleCtrlHandler sites on main: flare-cli/src/main.rs:189 and heliopause/src/processes_windows.rs:38 (Scoped CliSignals, ExitProcess(130)). No GenerateConsoleCtrlEvent anywhere -> no existing console-event test precedent; flare-cli/tests/cli.rs:56-75 only asserts multi-host rejection ordering.
- scripts/dev_windows.ps1:110-114 "Smoke" action = --version/--help/download --help/models list --json; useful to confirm the ported binary still launches at all on Windows (relevant because of the ioring DLL issue in #177).
- docs/windows.md:29-36 cross-build from Linux with cargo-xwin 0.23.1 -> a windows-msvc compile check can run on cn5 CPUs without a Windows host or GPU (link step needs lld-link; may be heavy, ~10-30 min).
#5 [high] Final verdict basis for PR 178 pre-test report
Verdict pieces verified independently by me (not just from the review summaries):
- Dead file: flare/src/main.rs absent on main (list_files "flare/src/main.rs" ref main = no match); only flare*/src/main.rs = flare-cli/src/main.rs. Diff = +8/-6 in that dead path (pr_files, pr_diff).
- Live defect on main: handler at flare-cli/src/main.rs:187-192 runs before load_core (:266 on the windows branch, :220 unix) and before NativeModel::load_agreeing (:319).
- Windows can only reach serve_local: rejects at :178-186, membership None :261-274, cluster None :321-325, early return :602-604, start at :702.
- docs/windows.md:141-142 stale; Windows target = Windows 11 x64/ARM64 (docs/windows.md:3-4).
- Windows CI leg currently red per #177 (open, unmerged): eos test binary STATUS_DLL_NOT_FOUND + 8 CLI test failures on windows-2022 => reviewer's "post CI output" ask is not satisfiable on main today; cargo-xwin cross-build from Linux (docs/windows.md:29-36) is the workable compile evidence.
- Reviewers' "reuse heliopause CliSignals" suggestion is a behavior change: it ExitProcess(130) (heliopause/src/processes_windows.rs:16-27) and flare-cli has no heliopause dependency (flare-cli/Cargo.toml:22-49) => would add a cross-crate dep and bypass CUDA teardown. Downgrade.
- Reviewers' "new swallow window in Server::start" is not a regression: pre-PR the window extended through download+load too. Residual: no 2nd-Ctrl-C escalation (transport.rs:598-604, 120s per tuning graph). FINAL: recommend NOT referring to hardware test now (Linux-only fleet cannot execute cfg(windows) code; code must be rewritten first). Provide conditional post-port plan.
#4 [medium] Supporting details: deps, existing windows test, parallax, silent no-op risk
Extra verified facts for the report:
- Existing Windows test precedent that a port must not break: flare-cli/tests/cli.rs:56-75 windows_rejects_multi_host_options_before_loading (expects "multi-host serving is not supported on Windows" before loading). Moving the handler registration must keep this ordering test passing (it comes before :187-192 today; if the registration is deleted, ordering is trivially preserved).
- Windows feature flags already include Win32_System_Console in BOTH crates: flare/Cargo.toml:58-59 and flare-cli/Cargo.toml:48-49 (windows-sys 0.61). So the ported block needs no manifest change.
- flare-cli depends on
flare(path) at Cargo.toml:23 but NOT on flare-heliopause (no heliopause dependency in flare-cli/Cargo.toml) => the Conventions "should fix" (reuse heliopause::CliSignals) would require a NEW cross-crate dependency; flare/src/windows.rs is the plausible in-crate home. This weakens that finding: adding a dependency for a 6-line move is exactly the churn AGENTS.md forbids. Treat as maintainer call, not a blocker. flare parallax(main.rs:110-113, mod not cfg-gated) reads STOP at parallax.rs:217 but returns before the handler registration at :187-192, so it never installs stop_console on Windows — the move causes no parallax regression.- Warning-level invisibility: after a naive port into serve(), stop_console stays referenced, so no dead_code warning; a compile check passes for both the right and the wrong placement => only a Windows runtime run distinguishes them.