Pre test report report · NVIDIA/hyperflare-inference #178

Raw Markdown for agents: https://autobot.eidonix.com/p/4d31d985-3e55-4322-94b5-83960dbf71b7.md

Pre-test report — PR #178 "Keep the default Windows Ctrl-C termination while loading" (head 43c6ea78)

Recommendation: DO NOT refer to hardware testing. This supersedes my 2026-11-26 report, which was written against the pre-rebase head 85fb08c that edited the deleted flare/src/main.rs (not opened). That blocker is gone; the reason not to test is now purely a fleet limitation.

  1. Our fleet cannot execute any changed line. The entire executable change is #[cfg(windows)]: the SetConsoleCtrlHandler(Some(stop_console), 1) registration is removed from run() and re-added in serve_local (flare-cli/src/main.rs:704-710). cn5 (amd64 Linux, 4× RTX PRO 6000) and cn7 (arm64 Linux, GB10) compile it out and cannot deliver a Windows CTRL_C_EVENT. Expected validation value on both hosts: zero — the fix cannot be observed and no regression can appear, because no Linux-visible line changes.
  2. Nothing for a GPU benchmark to measure. No kernel, scheduler, transport, serving-loop or Unix change; the second file is two lines of prose. No A/B throughput test is in scope.
  3. Code is not the blocker; prose and evidence are. Architecture, Simplicity, Conventions and Correctness all report no blocking code defect at this head. What is missing is a correct PR description and a Windows compile.

1. What actually changed (verified independently)

Item Verified at head 43c6ea78
Removed block #[cfg(windows)] unsafe { if SetConsoleCtrlHandler(Some(stop_console),1)==0 {…} } deleted from run(), previously immediately after the Windows multi-host rejection (flare-cli/src/main.rs:178-186) and before load_core (:397) and NativeModel::load_agreeing (:313)
Added block Same expression in serve_local at :704-710, after let session = loaded.start() (:696) and the #[cfg(unix)] libc::signal block (:699-703), before progress.finish_animation() (:711), start_dashboard() (:712) and the serving loop (:715)
Docs docs/windows.md:141-142 rewritten in place (2→2 lines): "Ctrl-C and Ctrl-Break end loading immediately and drain native work before releasing CUDA resources once serving has started."
Unchanged stop_console still returns 1 and stores STOP for Ctrl-C/Ctrl-Break (:737-746); Unix stop (:52-55) and both Unix installs (:647-651, :699-703) untouched; drain path session.close() (:719), !shutdown.drained (:720-725), drop(session) (:732) untouched
Dependency None added; windows-sys with Win32_System_Console already enabled (flare-cli/Cargo.toml:49)
Single site search_code SetConsoleCtrlHandler → flare-cli/src/main.rs:707 only (plus heliopause/src/processes_windows.rs:38 (not opened),48, a cdylib that is not a flare-cli dependency)

The fix is reachable on Windows and is sound. Windows rejects every multi-host flag (:178-186), membership is None (:267-268), cluster is (None,None,None) (:315-319), and serve() dispatches if cluster.is_none() { return serve_local(...) } (:596-598); LoadedSession::new also rejects clustered owners (helios/src/server/session.rs:27-29). A registration failure at :707-709 returns with the session still owned, so ServingSession::drop → close() (session.rs:104-108) and DrainGuard (:125-133) either drain or retain the model. The diagnosis of the bug is correct: stop_console answering 1 suppresses the default termination, and on Windows nothing read STOP before the serving loop.

2. Corrections to the review summaries (these change what a tester would look for)

3. What must be fixed before merge (not hardware-testable)

4. Conditional test plan — run only if a Windows 11 x64 host with an SM120/SM121 GPU joins the fleet

One session, ~1-1.5 h. No full suite, no A/B throughput, no cn5/cn7 run.

Effort/value: value per affected Windows user is high (Windows is a documented first-class target with released x64/ARM64 binaries, and a multi-tens-of-GB download is every user's first path), and the change itself is a minimal, Unix-neutral relocation. But that value is realizable only on Windows hardware we do not have; on cn5/cn7 it is exactly zero. Refer the PR back for the description rewrite and a Windows compile, not to a test engineer.