PR #178: Keep the default Windows Ctrl-C termination while loading

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/91f7725d-9311-41aa-ba12-53f06f51235c

Opened by a workflow run, Nov 26, 2026 1:05 AM EST.

screen malicious

Screen Result: All Clear

Evidence: Screened every text and code channel in NVIDIA/hyperflare-inference PR #178 ("Keep the default Windows Ctrl-C termination while loading", head 85fb08c, base 902c88e): the PR description, the full discussion (one comment from original-el8 dated 2026-11-13 and one CHANGES_REQUESTED review from yatesdr dated 2026-11-18), the single branch commit, the complete diff, the changed file's code at the PR head, and linked issue #113.

No prompt injection, no hidden or encoded payload, no "ignore previous instructions"-style text, and no instruction addressed to an AI agent or reviewer appears anywhere. The description's "Written with AI assistance; reviewed before opening" is a normal disclosure, not a directive.

The change matches its description exactly and is inert with respect to agentic risk: an unchanged 8-line #[cfg(windows)] unsafe { SetConsoleCtrlHandler(Some(stop_console), 1) } block is moved out of main() and re-added inside serve() immediately before Server::start (flare/src/main.rs:574-581, diff at +571..+581 of the PR). No new dependencies, build scripts, CI configs, subcommands, shell/eval, network calls, credential handling, or files outside flare/src/main.rs are introduced. stop_console (flare/src/main.rs:643-652) still only sets STOP for CTRL_C_EVENT/CTRL_BREAK_EVENT, and the serving loop (flare/src/main.rs:614) still waits on STOP.

Two items are noted as review-quality observations only, not injections: the original-el8 comment asserts the branch "merges cleanly into main 5fd4070d" and that the conflict "should not be treated as an outstanding rebase request", which is contradicted by main's fa158284 having moved flare/src/main.rs to flare-cli/src/main.rs (not opened) — dubious automated triage framing without any payload; and yatesdr's review is ordinary technical criticism (port to the new path, post Windows build/run evidence, update docs/windows.md:141-142 (not opened), add the required Signed-off-by).

Open questions: whether the original-el8 mergeability comment is a low-quality automation artifact or a human misstatement cannot be determined from the PR alone; the PR is stale (targets a file path removed in fa158284) and admittedly unvalidated on Windows, which are ordinary quality concerns rather than manipulation.

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

explore

Author: mark-yong (CONTRIBUTOR; merged work is concentrated in helios/src and docs, no prior flare/flare-cli changes — this is their first Windows CLI change; no Discord handle given) Motivation: On Windows, flare run installed its console Ctrl-C handler before downloading and loading the model, and that handler tells Windows "I handled it", so Ctrl-C during download or loading did nothing and the process could only be killed by force. The PR moves the handler to just before the server starts, so the default termination keeps working during download/loading and Ctrl-C after startup still drains cleanly. Scale: +8 / −6 lines in 1 file (flare/src/main.rs at the PR head) Proposal:

Full report · Notes

Value Proposition

PR #178 — Keep the default Windows Ctrl-C termination while loading: worth it with changes (currently not mergeable)

The underlying bug is real, the diagnosis is correct, and the fix is the right shape and small. But as written the PR edits a file that no longer exists on main, and it misses three process/doc requirements a maintainer has already asked for.

The diagnosis is correct (verified on the PR's base)

On flare/src/main.rs at the PR head, the Windows console handler was installed in main() at lines 146–152, before load_package and NativeModel::load_agreeing. stop_console (lines 643–652) returns 1 for CTRL_C_EVENT | CTRL_BREAK_EVENT, i.e. "handled", which suppresses the default termination. The only STOP readers before the serving loop (main.rs:614) are distribution.rs:193 and launch.rs:176, and both modules are #[cfg(unix)] (main.rs:17–33). So on Windows a Ctrl-C during download/weight load/graph instantiation was recorded into an atomic that nothing read. #113's symptom is genuine on Windows, even though its reporter was on Linux and closed it.

Who benefits, and how much

Windows is a first-class, documented target, not an afterthought: docs/windows.md is a full guide, native-serving.yml builds and tests on windows-2022, and release.yml (not opened) ships Windows x64/ARM64 binaries. Every Windows user who starts a flare run and changes their mind during a multi-tens-of-GB download or a long weight load currently has to force-kill the process. That is a common, first-encounter path — high value per affected user, moderate breadth.

Cost

Why it is not mergeable as-is

  1. Blocker — it edits a deleted file. flare/src/main.rs does not exist on main; it moved to flare-cli/src/main.rs in fa158284 (2026-11-09), six days after the PR opened. A naive port is worse than useless: on main, Windows serve() delegates at flare-cli/src/main.rs:602–603 (if cluster.is_none() { return serve_local(...) }), and cluster is always None on Windows (membership is None at line 273 and rank/rendezvous/hosts/RoCE are rejected at 178–186). The handler must go immediately before loaded.start() in serve_local (line 702). Inserting it in serve()'s "Start server" phase would compile on Windows and never run — a silent no-op fix.
  2. No evidence. "Code review only" does not meet the charter's bring real evidence. cargo check --manifest-path flare-cli/Cargo.toml --target x86_64-pc-windows-msvc needs no GPU and no MSVC linker, so it is feasible from the author's machine and was not done. A one-line source-order assertion before loaded.start() is the only portable regression guard; there is no behavioral test for console-handler ordering, so a manual Windows run (Ctrl-C during load exits at once, Ctrl-C after "Start server" drains) is the real proof.
  3. Docs contradict the new behavior. docs/windows.md:141–142 promises "Ctrl-C and Ctrl-Break drain native work before releasing CUDA resources." After this change that is false during loading and must say so.
  4. DCO. CONTRIBUTING.md:9 requires sign-off; 85fb08c has none, and the embedded Design-Signed-Off-By: Cursor Agent (Auto); design-review=1c01 points at the old base.

All four were raised by @yatesdr in a changes-requested review on 2026-11-18 and remain unaddressed. None is a reason to decline — they are the standard "spell out exactly what's needed" list — but they must be cleared.

Is there a simpler path? Possibly, but not clearly better

The repo already has a scoped, abort-on-Ctrl-C primitive: heliopause::processes::CliSignals (heliopause/src/processes_windows.rs:29–51), which on Windows calls ExitProcess(130) and restores the terminal (lines 23, 26), and is already used by Ignition's serving path. Adopting it around the loading section would delete the stop_console handler entirely, add no new Windows code, and fix the cosmetic gap that this PR leaves open. Two tradeoffs make it a design question for a maintainer, not an obvious win: ExitProcess bypasses CUDA teardown, and the ~48 MiB guest-memory carveout per RTX Spark process (docs/windows.md:119–120) may be reclaimed late. During loading nothing is serving, so this is probably fine, but it is a real behavior change versus the minimal-diff approach. I would not block on it; I would let the maintainer choose, since the charter prefers "a way to solve it without new code at all" and Windows-specific code is exactly what the charter wants to avoid accumulating.

Worth noting in the chosen approach: the Windows banner prints its final frame instead of animating (helios/src/startup.rs:72), and a hard exit during loading leaves that frame with no terminal restore — the same class of cosmetic wart #113's reporter described. Ordinary abrupt-exit risk is otherwise low: Hub transfers resume from partial files (flare/src/hub.rs:278, hub.rs:576).

Verdict

Worth it with changes. It fixes a real, reproducible Windows bug on a supported platform for ~2 net lines, with no Unix risk and no maintenance burden — clearly aligned with the charter's "solve the right problem in the right place" and "smallest footprint."

To merge it needs: (a) port the registration to serve_local in flare-cli/src/main.rs, immediately before loaded.start() — not to serve(); (b) attach a cargo check --target x86_64-pc-windows-msvc result and a short Windows Ctrl-C transcript (both load-time and post-"Start server"); (c) update docs/windows.md:141–142; (d) add Signed-off-by and redo the design acknowledgment against the current base. Ideally also state whether heliopause::CliSignals was considered and why it was not used.

Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Subtractive

Verdict: should not be merged (as written — all 14 diff lines land in a file that no longer exists; the ported version is itself minimal) The change: +8 / −6 lines, 1 file (flare/src/main.rs) Could remove: about 15 lines, in 3 places (14 = the entire diff, obsolete; 1 = a redundant comment in the replacement) Biggest subtractions:


Full report below. The lens is subtraction, and the short answer is: the intent is already the small version (a 6-line relocation, no new flags, helpers, tests or dependencies), but none of it can merge, because flare/src/main.rs was moved to flare-cli/src/main.rs in fa158284 on 2026-11-09, six days after this PR branched. The surviving file already contains the exact registration the PR deletes at flare-cli/src/main.rs:187-192, so the correct landing is a 13-line relocation there (−6 at 187-192, +6 code plus one comment before loaded.start() at :702). Windows rejects --rank/--rendezvous/--hosts/--roce-* at :178-186, so serve's cluster path is unreachable on Windows and serve_local is the only insertion point needed. Two smaller points: the PR's second comment line ("A registration failure must return before replay starts") asserts a drain benefit that holds in neither tree — the deleted early registration ran before any owner existed, so its failure dropped nothing, while .map_err(...)? at :702 already returns past loaded — and docs/windows.md:141-142 keeps claiming a drain that will no longer apply during loading. I explicitly rejected one tempting cut: dropping the SetConsoleCtrlHandler(...) == 0 failure branch (3 of the 8 added lines) would suppress an OS error, which AGENTS.md forbids.

Full report · Notes

Correctness

Verdict: blocking issues

Blocking:

Should fix:

Nits: 1 (no terminal/cursor state restore on abrupt exit; heliopause/src/processes_windows.rs:16-27 is the precedent).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/178

Full report · Notes

Architecture

Verdict: blocking issues Blocking:

Full report · Notes

Simplicity

Verdict: blocking issues

Blocking:

Should fix:

Nits: 3 (docs/windows.md:141-142 lacks the pre-server qualifier; no Discord: line in the description per AGENTS.md:142-153; no Signed-off-by per CONTRIBUTING.md)

Link: https://github.com/NVIDIA/hyperflare-inference/pull/178

Under lens D (simplicity) there is nothing else to cut: the diff adds no flag, option, fallback, parallel path or duplicated state, and no test is possible on windows-2022 CI until #177 lands, so the disclosed "code review only" validation is the right call. The only real simplification left after rebasing is one moved statement plus one comment line.

Full report · Notes

Conventions

Verdict: blocking issues

Blocking:

Should fix:

Nits: 3

Link: https://github.com/NVIDIA/hyperflare-inference/pull/178

Full report · Notes

Prose

Verdict: blocking issues

Blocking:

Should fix:

Nits: 3 — the new comment at flare/src/main.rs:574-575 names an undefined "Loading" phase and claims "nothing observes STOP before serving" too broadly; the description's "instead of dropping the package owner without a confirmed drain" contrasts with a hazard the old registration site did not have; and the port must delete the existing registration at flare-cli/src/main.rs:187-192 rather than add a second one.

Link: https://github.com/NVIDIA/hyperflare-inference/pull/178

Full report · Notes

Pre Test Report

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:

  1. The code under test cannot land. The entire +8/−6 diff edits flare/src/main.rs, which does not exist on main (removed by fa158284 on 2026-11-09, when the CLI split out to flare-cli/). The PR cannot merge, and even a verbatim port into serve() would be a silent no-op on Windows (see §2). Testing a patch that must be rewritten first is pure waste.
  2. 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 deliver CTRL_C_EVENT through Windows' console-control-handler machinery. docs/windows.md:3-4 scopes 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:

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)

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):

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.

Full report · Notes

code review summary

Recommendation: Changes Requested

The diagnosis behind PR #178 is correct: stop_console returns 1 ("handled") for Ctrl-C/Ctrl-Break, so it suppresses the default termination, and on Windows nothing reads STOP before the serving loop (mod distribution / mod launch are #[cfg(unix)], flare-cli/src/main.rs:17-31). But the change cannot land as written: it edits a file main no longer has, and the placement it argues for cannot simply be ported.

Blockers:

Should fix:

Subtract / Simplify:

Could remove ~14 of +8 added lines (the whole +8/−6 diff lands in a deleted file); the ported equivalent adds ~7, of which ~1 is cuttable:

Nits:

3 nits — comment placement between phase and context_tokens; optional ANSI/cursor restore (\x1b[0m\x1b[?25h\r\n) before a default-terminated exit; description paths plus stating the early registration is removed, not duplicated.

Full detail, evidence and the verified non-findings: see the case file.

Full report · Notes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

screen malicious

Screen Result: All Clear

Evidence:

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

explore

Author: mark-yong (CONTRIBUTOR; merged work concentrated in helios/src and docs, no prior flare/flare-cli change — first Windows CLI change; Discord myong_acct, stated only in their comment, not in the PR body) Motivation: On Windows, flare run installed its Ctrl-C handler before download/loading, and nothing read the stop flag during that window, so Ctrl-C was swallowed and the process could only be force-killed. The PR installs the handler only once the server is up, so Ctrl-C ends loading immediately and drains normally while serving. Scale: +9 / −8 lines in 2 files (head 43c6ea78, was +8/−6 in 1 file) Proposal:

Full report · Notes

Value Proposition

PR #178 — Keep the default Windows Ctrl-C termination while loading: worth merging, after two small fixes

The rebased head 43c6ea78 fixes the bug, fixes it in the right place, and fixes it the way the maintainer and my previous review asked for. What remains is a stale PR description and one unrun compile check — no design objection.

The bug is real and the fix is correct

On main, the Windows console handler is still installed in run() at flare-cli/src/main.rs:187–192, before core download (load_core, main.rs:397–465), trust verification, and NativeModel::load_agreeing (main.rs:288–314). stop_console returns 1 ("handled") for CTRL_C_EVENT | CTRL_BREAK_EVENT (main.rs:737–746), which suppresses Windows' default termination. The only pre-serving STOP readers are distribution.rs:192 and launch.rs (not opened), and both modules are #[cfg(unix)] (main.rs:9–33). So on Windows a Ctrl-C during download, weight load, or graph instantiation was recorded into an atomic nothing read — force-kill was the only exit. That is precisely issue #113's symptom, and #113's reporter was on Linux, where later builds fixed it; the Windows instance of the symptom was never filed.

The diff is a net +7/−6 in flare-cli/src/main.rs plus a two-line doc rewrite, with no new module, no new dependency (windows-sys with Win32_System_Console is already at flare-cli/Cargo.toml:49), no new branch in shared code, and no effect on the supported model/GPU matrix.

What this revision got right

So the two hard blockers from the 2026-11-18 review and from my 2026-11-26 report — deleted file, wrong placement — are gone.

Two things still to fix before merge

  1. The PR description contradicts the code (must fix). It still says "Register the handler immediately before Server::start", "A Ctrl-C during Server::start sets STOP, so the serving loop exits at once", and "Registering before the start also means a registration failure returns before replay begins, instead of dropping the package owner without a confirmed drain." All three describe the abandoned placement. The author's 2026-11-28 comment says the description was updated to 43c6ea78; the body on GitHub is unchanged from 2026-11-03. AGENTS.md ("Required PR descriptions") makes the four-part description mandatory and forbids publishing text the reviewer must reconcile against the diff, and the agency skill on prose requires a description to describe the code as it is. Also replace "package" with "core" throughout, per the repo's current vocabulary.
  2. No Windows compilation evidence (should fix). 43c6ea78 has zero check runs and zero workflow runs (fork PR, workflows not approved), and the Linux cargo test --manifest-path flare-cli/Cargo.toml run (221 passed) never compiles #[cfg(windows)] code. This misses the charter's "bring real evidence". The fix is cheap and needs no GPU: cargo xwin build --locked --release --manifest-path flare-cli/Cargo.toml --target x86_64-pc-windows-msvc, the exact command docs/windows.md:24–39 documents, or simply approving .github/workflows/native-serving.yml (not opened), which already builds flare-cli on windows-2022 for every pull_request (:6, :20–21, :45). The live Ctrl-C session (Ctrl-C during loading exits at once; Ctrl-C after "Start server" drains) can stay the explicitly unrun check — there is no portable regression test for console-handler ordering.

Who benefits, and what it costs

Windows is a documented, first-class target (docs/windows.md is a full guide, CI builds and tests on windows-2022, releases ship Windows x64/ARM64). Every Windows user who starts flare run and changes their mind during a multi-tens-of-GB download or a long weight load benefits, on the first-encounter path. Breadth is moderate, value per affected user is high.

Cost is negligible: an existing API call moved a few dozen lines, no new abstraction, near-zero maintenance, no runtime cost, and no Unix exposure (the entire change is #[cfg(windows)]).

There is a useful side effect the PR never mentions: deleting the early registration also stops swallowing Ctrl-C in flare download and flare models download on Windows, whose paths (flare-cli/src/hub.rs:12–28) never read STOP. Interrupted Hub transfers resume from their .part files (flare/src/hub.rs:3875–3918, 4585–4598), so an abrupt exit there costs little.

Is there a simpler path? No — I checked, and the obvious one is worse

The repo has a scoped abort-on-Ctrl-C primitive, heliopause::processes::CliSignals (heliopause/src/processes_windows.rs:16–51), used by Ignition's serving path. It is the wrong tool here: heliopause is a pyo3 cdylib (heliopause/Cargo.toml:9–11, 22, 48), so depending on it would drag pyo3 and OpenSSL into the CLI, and its Windows handler calls ExitProcess(130), which bypasses CUDA teardown and would break the very drain guarantee docs/windows.md:141–142 promises. A pure relocation of the existing handler is the smallest correct change, which is what the charter asks for.

Verdict

Worth merging. It fixes a real, reproducible Windows bug on a supported platform for roughly one net line, at zero Unix risk and zero maintenance burden — squarely "solve the right problem in the right place" with "the smallest footprint". Not worth merging until the description is rewritten to match the code (the current one describes a Server::start placement this diff does not implement) and a Windows cargo xwin build or the existing native-serving.yml Windows job result is posted. Neither is a design change; both are the standard "spell out exactly what's needed" items, and neither is a reason to decline this contributor's work.

Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Simplicity

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 2 — flare-cli/src/main.rs:706 comment states placement rationale rather than the invariant and is imprecise about STOP readers (parallax.rs:217), one-line rewrite given; PR description still lacks the required Discord: line (AGENTS.md:142-153).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/178

Both blockers from the previous review are resolved by the rebase: the diff now edits flare-cli/src/main.rs (exists on main) and lands in serve_local, the only Windows serving path. Executable surface is +4/−6 plus one comment: the obsolete early registration at flare-cli/src/main.rs:187-192 is deleted and the same handler installed after loaded.start(). Under this lens the change is at minimal shape — no flag, option, fallback, helper, parallel path or duplicated state; stop_console keeps exactly one call site.

Eight candidate deletions were checked and dropped: extracting a helper for the Unix/Windows pair is a net add; reusing heliopause's CliSignals would add a dependency and change behaviour to ExitProcess(130) with no drain; the == 0 error check must stay; no dead code or unused import; no test can honestly prove console handling; docs/windows.md:141-142 is a same-length in-place rewrite; removing the early registration does not regress flare parallax; net size is minimal. What remains is prose, not code.

Whether Ctrl-C during download/loading/startup now terminates and whether the post-start registration still drains needs the live Windows session yatesdr requested; code reading shows only the ordering and the drain guard (helios/src/server/session.rs:104-133).

Full report · Notes

Architecture

Verdict: blocking issues

Blocking:

Should fix: None.

Nits: 2 — comment wording at flare-cli/src/main.rs:706 describes a state loading has already left; handler registered a few statements after the listener becomes live (:696-707).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/178

Full report · Notes

Subtractive

Verdict: minimal already The change: +9 / −8 (17 lines) — flare-cli/src/main.rs +7/−6, docs/windows.md +2/−2 Could remove: about 3 lines, in 1 place (PR-description prose only; 0 code lines) Biggest subtractions:

Full report · Notes

Conventions

Verdict: clean (three nits, no blocking or should-fix issues)

Blocking:

Should fix:

Nits:

Link: https://github.com/NVIDIA/hyperflare-inference/pull/178

Full report · Notes

Prose

Verdict: blocking issues

Blocking:

Should fix:

Nits: 2 (flare-cli/src/main.rs:706 comment scope/placement; docs/windows.md:141-142 wording at the Server::start boundary).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/178

Full report · Notes

Correctness

Verdict: clean

Blocking:

Should fix:

Nits: 3 — (1) flare-cli/src/main.rs:738-746 stop_console keeps returning "handled" after STOP is set, so a second Ctrl-C cannot force exit during the session.close() drain (Unix stop at 53-55 has the same limitation, so not a regression); (2) the PR description still says the handler is registered "immediately before Server::start" and that "a Ctrl-C during Server::start sets STOP", but the head registers after loaded.start() (flare-cli/src/main.rs:696-710), so the startup-tuning window now gets the default console termination — the description should be corrected; (3) no terminal/ANSI restore on the new abrupt-exit path (cosmetic; precedent at heliopause/src/processes_windows.rs:16-27 (not opened)).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/178

Detail: the rebased head 43c6ea78 fixes the two blockers from the earlier review (wrong file, unreachable site). It deletes the early registration from run() and installs it in serve_local at flare-cli/src/main.rs:704-710, right after loaded.start() (696) beside the Unix signal block (699-703). Windows always reaches this site: multi-host flags are rejected at 178-186, the Windows load branch sets membership = None (255-266), a clustered core trips 315-319, and LoadedSession::new rejects clustered owners (helios/src/server/session.rs:27-29). Registration failure at 707-709 returns while ServingSession is still owned, so Drop → close() plus DrainGuard (session.rs:96-133) still drains or retains the model. The dashboard keeps ENABLE_PROCESSED_INPUT (helios/src/server/dashboard.rs:1049-1083), so Ctrl-C stays a control event; no new dependency (flare-cli/Cargo.toml:49). docs/windows.md:141-142 now matches the code. Interrupted download/load is resumable and digest-verified, so the behavioural change is safe.

Gap: no Windows compile or live run for the head — .github/workflows/native-serving.yml:6 (not opened),20-21,45 builds flare-cli on windows-2022 for every pull request, so the compile result is obtainable from CI; only a live flare run Ctrl-C session must remain an explicitly unrun check (AGENTS.md:103-112).

Full report · Notes

code review summary

Recommendation: Changes Requested

No code defect survives review: the diff is a verified pure relocation of one SetConsoleCtrlHandler call, and every code lens says merge at this size. The PR cannot land as written only because its own description still argues the superseded "before Server::start" design, so three of its four mechanism sentences are false against the code under review.

Code is correct: the removed block becomes flare-cli/src/main.rs:704-710, after loaded.start() and beside the Unix block, and Windows can reach no other serving site, so pre-serving Ctrl-C now takes Windows' default termination. Every surviving finding is prose, verification, or optional comment work; the code diff should merge unshrunk and unexpanded once the description is rewritten.

Full report · Notes

Pre Test Report

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.

Full report · Notes

Final review

Recommendation: Changes Requested

The code and documentation diff on 43c6ea78 (flare-cli/src/main.rs +7/−6, docs/windows.md +2/−2) is correct, minimal, and ready to merge as-is, with zero code or safety defects. Two non-code items remain before merge: the GitHub PR description was never actually updated to match 43c6ea78 (it still describes the abandoned pre-Server::start placement and omits Discord: myong_acct and the Linux test run), and no Windows compilation check of the #[cfg(windows)] change has been run yet.


Blockers

None.


Should Fix

  1. Sync the PR description with commit 43c6ea78 (flare-cli/src/main.rs:696, 704-710, helios/src/server/session.rs:57, 96-108, 125-133, AGENTS.md:72-150). Although the author's 2026-11-28 comment states that the PR description was updated and Discord: myong_acct was added, the GitHub PR body on #178 is unchanged from 2026-11-03 and directly contradicts the head code:

    • It says "Register the handler immediately before Server::start", "A Ctrl-C during Server::start sets STOP, so the serving loop exits at once and native replay drains", and "a registration failure returns before replay begins, instead of dropping the package owner without a confirmed drain." At 43c6ea78, SetConsoleCtrlHandler(Some(stop_console), 1) is installed after loaded.start() returns (flare-cli/src/main.rs:696, 704-710), beside the #[cfg(unix)] signal handlers (:699-703). During loaded.start() (which calls Server::start and runs startup tuning graphs under a 120 s deadline without reading STOP, helios/src/execution/transport.rs:739-777), Windows intentionally keeps default termination; if registration fails after start, ServingSession::drop() calls close() and DrainGuard::drop() retains the NativeModel unless drain is confirmed (helios/src/server/session.rs:57, 96-108, 125-133).
    • Its validation paragraph still says "Validation: code review only", omitting the author's Linux cargo test --locked --release --manifest-path flare-cli/Cargo.toml result (221 passed, 0 failed, 3 ignored).
    • It omits the required Discord: myong_acct line (AGENTS.md:144-150).
    • Fix: Edit the PR body to describe the post-loaded.start() placement in serve_local() (updating "package" to "core"), record the Linux test result and remaining Windows validation limits accurately, and append Discord: myong_acct.
  2. Compile-check the #[cfg(windows)] change (.github/workflows/native-serving.yml:20-21 (not opened), 45, 73, docs/windows.md:32-33). The entire Rust diff is inside #[cfg(windows)], so the author's Linux cargo test run never compiled the moved block, and maintainer yatesdr's 2026-11-18 CHANGES_REQUESTED review explicitly requested Windows build/check output.

    • Fix: Either run/link the existing windows-2022 (x86_64-pc-windows-msvc) job in .github/workflows/native-serving.yml:20-21 (not opened), 45, 73 (once maintainer-approved for this fork PR) or cross-compile from Linux with cargo xwin build --locked --release --manifest-path flare-cli/Cargo.toml --target x86_64-pc-windows-msvc (docs/windows.md:32-33). Keep the live Windows GPU flare run CORE Ctrl-C session explicitly listed as unrun if no Windows GPU host is available.

Subtract / Simplify

None.


Nits

None.


Verified passes


Dropped on verification

Full report Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with. decide malicious: all_clear (100%): No malicious content found

explore

Author: mark-yong (CONTRIBUTOR; merged work concentrated in helios/src and docs — this is their first flare/flare-cli change; Discord myong_acct, per their other items, never added to this PR body) Motivation: On Windows, flare run installed its Ctrl-C handler before downloading and loading the model; the handler reports Ctrl-C as "handled", so Ctrl-C was swallowed and the process could only be killed by force. The PR moves the handler to after the server has actually started, so Ctrl-C during loading ends the process immediately and Ctrl-C once serving drains native work first. Scale: +9 / −8 lines in 2 files (flare-cli/src/main.rs +7/−6, docs/windows.md +2/−2) Proposal:

Full report · Notes

Classify intake

Selected: triage:review, priority:P2, bug

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

No label changes

Value Proposition

Value Proposition — PR #178 "Keep the default Windows Ctrl-C termination while loading"

1. Charter alignment: yes, narrowly. This is a console-lifecycle bug fix on a platform path the repo already documents (docs/windows.md), not an expansion of hardware breadth, model aliases, backends, or per-model branches — so it does not trip the "broad hardware support" non-goal. It falls under the charter's accepted "reproducible bug" category, and it stays in the CLI shell rather than leaking per-model logic into Helios, consistent with "keep the runtime small and model-agnostic." Footprint is minimal: 2 files, +9/−8, no new dependency, and the logic is confined to #[cfg(windows)] at flare-cli/src/main.rs:704-710.

2. Novelty & status: genuinely additive. Not obsolete — main still registers the console handler early (flare-cli/src/main.rs:178-187), so the defect the PR removes still exists on the tip (0a8c20f4). Not superseded — no other open PR covers it: #177 is the perpetually-red windows-2022 CI job, #175 is adjacent, and #113 is closed, was a Linux-only report, and was resolved by its reporter. Weak point: no Windows user report of the swallowed-Ctrl-C symptom exists anywhere in the dossier; the motivation is inference from stop_console semantics plus a closed Linux issue.

3. Value vs maintenance cost: cost is low, evidence is thin. Cost is genuinely small: two files, cfg-gated, no new API, and the reviewer's docs sentence is already in place verbatim at docs/windows.md:141-142. The benefit is bounded to Windows flare run users but concrete — a process that cannot be interrupted during download/loading. The bot review on the ported head recorded 0 blockers and 2 should-fix items, both non-code, calling the diff "correct and ready to merge." Where it falls short of the charter's "bring real evidence" bar: one Linux-hosted cargo xwin check (exit 0), no link (lld-link 101 on pre-existing CRT/__cpu_model mismatches), no flare.exe, no live session, no CI result on the PR, no test. Compounding this, the visible body still contradicts the head — claiming a Ctrl-C during Server::start sets STOP and drains, when no handler is installed before loaded.start() — and the claimed Discord: trailer is absent for the second time, against AGENTS.md:144-151. That is merge hygiene and reviewer load, not a code defect.

Verdict: Worth it with changes. Land it once the description matches the head (correct placement, removal of the early run() registration, refreshed validation, Discord: trailer) and at least one live Windows confirmation — a CI check or a recorded flare run CORE Ctrl-C session — backs the documented behavior.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Correctness and contracts

Correctness/contracts/system-consequences review of PR #178 at head 20d2c655 (rebased; diff = flare-cli/src/main.rs +7/−6, docs/windows.md +2/−2). Verdict: no Blocker, no Major under this lens. The removal is complete and the change is inert system-wide; three Minor findings.

Findings:

Verified sound: :707 is the only SetConsoleCtrlHandler site; the return Err at :708 provably drains (helios/src/server/session.rs:104-108, :125-133); abrupt exit during download is crash-safe (helios/src/core/cache.rs:7,21); serve() unreachable on Windows; Unix path untouched; docs contracts (docs/cli-design.md:1569, AGENTS.md:278-280) stay true; metric-span check N/A.

Correction: Discovery Dossier §D is stale — the live PR body is now accurate and carries Discord: myong_acct.

Open: no live Windows Ctrl-C run, no CI result; second-Ctrl-C policy unstated.

Full report · Notes

Subtraction and simplicity

Verdict: the diff is already lean and nothing should be removed. PR #178 is a verbatim move of one six-line #[cfg(windows)] registration block into serve_local() (flare-cli/src/main.rs:704-710) plus a two-line docs sentence (docs/windows.md:141-142). No flag, knob, wrapper, fallback layer, dead code, or dependency is added; Win32_System_Console is already in flare-cli/Cargo.toml:49, and exactly one registration site remains (:707).

Findings (0 must-fix):

  1. Optional dedup: the platform-install idiom is now at three sites — main.rs:647-651 and :699-710 duplicate the Unix libc::signal pair verbatim. flare-cli/src/orbit/controller.rs:66-75 already shows the catch_interrupts() pattern (doc comment + SAFETY:). One fn catch_termination() -> io::Result<()> near stop (:51-55)/stop_console (:737-746) turns 12 lines into two call()?; sites and adds the SAFETY: line the new unsafe at :705 lacks, unlike :287/:551/:599. Counterweight: AGENTS.md:188-193 rejects unsolicited refactoring, and parallax.rs:197-202 keeps the inline idiom — so not a blocker; the minimal alternative is just adding the missing SAFETY: comment.
  2. Low, prose: docs/windows.md:141-142 packs two behaviors plus a trailing temporal clause into one conjunction, so "drain … once serving has started" can read as scoping the loading behavior. Split into two present-state sentences.
  3. Low, convention: AGENTS.md:57-58 requires unrun checks in docs/TODO.txt; the loading-termination behavior asserted at docs/windows.md:141-142 was never run on Windows, and docs/TODO.txt has no Ctrl-C/console/windows-live entry (search: no matches). Add one line naming the unrun Windows live flare run CORE Ctrl-C check and its removal criterion.

Deliberately not flagged as removable: the invariant comment at main.rs:706, and the Err(last_os_error()) return at :707-709, which routes through ServingSession::drop → close() (helios/src/server/session.rs:104-108). No existing helper was missed: heliopause/src/processes_windows.rs:38,48 is a different ExitProcess(130) contract, and STOP reads/sets are all live (:656/:674/:715/:729/:54/:741).

Open: whether the maintainers want the extraction or the inline idiom; whether a TODO line is acceptable for a hardware-gated check.

Full report · Notes

Re-review

Recommendation: Ready To Merge

PR #178 (20d2c65) is a clean, minimal (+9/−8 across 2 files) root-cause fix that moves Windows SetConsoleCtrlHandler(Some(stop_console), 1) out of run() and into serve_local() immediately after loaded.start(), matching the Unix signal-handler placement and restoring default Ctrl-C/Ctrl-Break termination during download, loading, and server startup. Both non-code items from the previous review are now resolved: the live PR description matches 20d2c65 (including Discord: myong_acct and explicit limitations), and the author verified MSVC Rust compilation via cargo xwin check --locked --release --manifest-path flare-cli/Cargo.toml --target x86_64-pc-windows-msvc (exit 0). Note that live Windows flare run Ctrl-C execution has not been run locally (Windows CI is also broken on main per #177), so the merging maintainer may optionally smoke-test on a Windows GPU host if desired, though the code and docs diff is sound and ready to land.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

None.

Nits

Dropped on verification

Full report Decision to Test: yes (82%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes

Pre Test Report

Pre-test plan — PR #178 "Keep the default Windows Ctrl-C termination while loading" (head 20d2c655)

Bottom line

Don't spend GPU time yet — no test on cn5 or cn7 can validate a single changed line. Do spend ~20 CPU-minutes on cn5 for one de-risking step, and hold the real test as a §3 checklist for the first Windows 11 GPU host that joins the fleet.

This supersedes my 2026-11-28 report (written against 43c6ea78). Both non-code items from that report are now closed: the PR body describes the shipped design, carries Discord: myong_acct, and reports cargo xwin check --target x86_64-pc-windows-msvc exit 0 plus Linux cargo test 227 passed / 0 failed / 3 ignored.

Why our hardware cannot do it. The entire executable change is #[cfg(windows)]: the SetConsoleCtrlHandler(Some(stop_console), 1) registration moves out of run() and into serve_local() at flare-cli/src/main.rs:704-710, after loaded.start() (:696) and beside the #[cfg(unix)] libc::signal block (:699-703). cn5 (amd64 Linux, 4× RTX PRO 6000 Blackwell) and cn7 (arm64 Linux, GB10) compile that block out and cannot deliver a Windows CTRL_C_EVENT. Expected direct validation value on both: zero. There is also no A/B or throughput test in scope — no kernel, scheduler, transport, serving-loop, or Unix line changes, and stop_console (:737-746) is untouched.

One real gap remains and only Windows hardware closes it: runtime behavior. cargo xwin check proves the block compiles; it cannot prove the process now actually dies on Ctrl-C during load, nor that the post-start registration still drains. That is Step 2 of §3.


1. What to run on cn5 (amd64 Linux) — and what not to bother with

Run: Stage a candidate core (CPU + network only, 0 GPU, ~15–20 min). Our fleet cannot exercise the diff, but cn5's GPUs are SM120 (RTX PRO 6000 Blackwell → gb202 revision), the same architecture family a Windows SM120 host serves (docs/windows.md:3-6). The only failure mode that would later burn the Windows session is picking a core that does not load or serve. Verify the artifact on cn5 first:

# 1. Is anything already cached? All fleet inventories report 0 GiB, so assume nothing is.
flare models list --offline

# 2. Pick the SMALLEST SM120/gb202, single-GPU (tp1), tp1-retry-capable core.
#    Check the scratch budget: the cn5 job has only 16 GiB of scratch and
#    $HOME/model caches may not live there.
df -h "$FLARE_CACHE_DIR" 2>/dev/null || flare models list --json --offline | head -50

# 3. Acquire, then prove it serves without ever touching the problem path.
flare download <ORG>/<CORE> --gpus 0
flare run <ORG>/<CORE> --gpus 0 --no-mtp --max-concurrency 1

Pass = the http://<addr> line prints (flare-cli/src/main.rs:698) and one POST /v1/chat/completions returns. Record the repository, revision, and byte size in the handoff note so the Windows engineer reproduces exactly that artifact. If acquisition is too large for 16 GiB of scratch, stop and note it — that is a fleet constraint, not a PR defect.

Do not run on cn5: a Linux flare run Ctrl-C regression check. The diff is #[cfg(windows)]-only, so a Linux pass proves nothing the existing CI native-serving.yml:45,73 and the author's 227 passed run do not already prove.

Do not run on cn7 at all. arm64 Linux GB10 compiles the block out, and native-serving.yml has no Linux-arm64 leg — so a cn7 result is neither a regression signal nor an evidence artifact. Your 2026-11-28 report already recorded this; nothing about head 20d2c655 changes it.


2. Two non-hardware items the tester must not be asked to absorb

Both are cheap and belong to the author/maintainer, not a GPU session:

  1. Windows link evidence. cargo xwin build still fails at lld-link (exit 101) on pre-existing libflare_selene (MD_DynamicRelease) vs libesaxx_rs (MT_StaticRelease) CRT mismatch, or undefined __cpu_model under +crt-static (author's Validation section). Leave the windows-2022 job (.github/workflows/native-serving.yml:6 (not opened),19-21,45,73) as the route once maintainer-approved, and keep the link explicitly listed as unrun. Per #177 that job is red on main for unrelated reasons (I/O-ring DLL needs build 22000+, 8 CLI test failures), so do not gate the Windows session on it.
  2. Post-merge bookkeeping. docs/TODO.txt should carry the one unrun check (live Windows Ctrl-C across loading and "Start server") with its removal criterion. Optional nit only: flare-cli/src/main.rs:705 unsafe lacks a // SAFETY: line, though its sibling at :700 does too, so this is not a fleet-blocking inconsistency.

3. The test plan to run once a Windows 11 GPU host exists

One session, ~60–75 min including the download. One core, one GPU, no full suite, no benchmarks.

Host requirement: Windows 11 x64 or ARM64 with an SM120/SM121 GPU (docs/windows.md:3-6) — an RTX PRO 6000-class card, or a GB10-class integrated part on ARM64. flare on Windows talks to the driver through nvcuda.dll; no WSL, Python, or CUDA toolkit (docs/windows.md:15-16).

Step 0 — build (stop here if it fails; do not spend the session).

powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/setup_windows.ps1
& ./scripts/dev_windows.ps1 -Action Build
# binary: $env:LOCALAPPDATA\FlareDev\target\release\flare.exe   (docs/windows.md:80)
# optional, GPU-free sanity:  & ./scripts/dev_windows.ps1 -Action Test

A red selene suite is expected on Windows and must be reported separately (docs/windows.md:96-100) — it does not touch this change.

Step 1 — prepare the interruption surface before pressing anything. Use an interactive console (physical or RDP); a service or detached session receives no console control event at all, which would look exactly like the bug. Redirect stderr to a file so startup::is_terminal() is false (helios/src/startup.rs:159) and you get a greppable plain-text transcript of the phase labels instead of a cursor-driven animation. The dashboard starts unconditionally at flare-cli/src/main.rs:712; ignore it.

& flare run <ORG>/<CORE> --gpus 0 2>&1 | Tee-Object -FilePath .\run.log

Step 2 — three pass/fail Ctrl-C presses plus two recorded observations. Press Ctrl-C once per attempt and wait for the process to exit before re-running.

# When to press Expected result after the fix If it fails
2.1 During core download / verification, before Load tokenizer Exits within ~1 s. Exit code 0xC000013A (STATUS_CONTROL_C_EXIT; PowerShell $LASTEXITCODE = -1073741510). Pass = it died at all — that press was swallowed before this PR. Re-run and confirm it resumes from the .part file instead of restarting from zero (flare/src/hub.rs:407, 4177-4220, 5675-5731). Bug not fixed, or download restarts from zero
2.2 During Load tokenizer (tokenizer + weight load, flare-cli/src/main.rs:691-694) Same: exits within ~1 s, 0xC000013A. Re-run succeeds and the core still verifies (flare inspect <CORE> or the next flare run; interrupted downloads resume, nothing durable was written). Swallowed again
2.3 After the http://<addr> line prints (:698, loop at :715) Drains, not kills. Shut down server phase prints (:718), exit code 0, no native replay did not drain (:720-724) and no native server stopped unexpectedly (:729-731). Then re-run and complete one chat request to prove the CUDA context was not corrupted. Drain error, nonzero exit, or hang ≥ 60 s
2.4 (record only, not pass/fail) During Start server (:695-698, tuning graphs under per-graph 120 s deadlines) Still shown as "handled" until Server::start returns — the handler is deliberately installed after it. Log the observed latency to exit once. Pre-existing limitation, not a regression; this change strictly shrinks that window (load and download are no longer swallowed). —
2.5 (record only, not pass/fail) A second Ctrl-C during the session.close() drain in 2.3 Ignored, because stop_console (:737-746) keeps returning 1. Identical to Unix's stop (:52-55). Note it so the maintainer can decide whether to document or escalate. —

Step 3 — Unix-neutral spot check on cn5 (optional, ~10 min, 1 GPU). Only if cn5 is free: one flare run + Ctrl-C on Linux, expecting exit 0 and no native replay did not drain. Expected value is near zero (the diff is #[cfg(windows)]-only), so skip it under contention.

Definition of done: 2.1–2.3 pass, 2.4–2.5 recorded, run.log attached to PR #178, and the core repository/revision recorded. If Step 0 fails, stop and return to the author — do not spend Windows GPU time.

Effort/value: one Windows host for ~1–1.5 h settles the only outstanding evidence for a real, user-facing Windows defect (Ctrl-C swallowed through a tens-of-GB download leaves force-kill as the only exit) on a documented first-class platform. Value per affected user is high; cost is a single session. On cn5/cn7 the value is exactly zero, which is why this is a conditional checklist rather than a referral.


4. Corrections worth carrying forward

Full report · Notes

Discord Test Request

Discord post (ready to paste), built from the pre-test plan for PR #178 head 20d2c655:


Recommendation: Test

Low–medium confidence — the code review is clean, but nothing in the fleet can validate the changed lines. There is a real gap that only Windows hardware can close.

Hardware Required

Justification

Estimated Time to Complete

~1.5 h total: ~15–20 min CPU-only pre-stage on cn5, plus ~60–75 min for the full Windows session (one host, one core, one GPU — three timed Ctrl-C presses during download, load, and after "Start server", no test suite, no benchmarks).


Notes on how I built it: I read PR #178 (head 20d2c655, +9/−8 across docs/windows.md and flare-cli/src/main.rs), its full discussion, the diff, and the surrounding source. The diff is a pure relocation of SetConsoleCtrlHandler(Some(stop_console), 1) from run() (flare-cli/src/main.rs:184-192 on main) into serve_local() after loaded.start() (:704-710), beside the #[cfg(unix)] signal block (:699-703), with stop_console (:737-746) untouched and the docs sentence rewritten at docs/windows.md:141-142. The latest Autobot review (2026-11-30) is Ready To Merge, blockers 0 / should-fix 0, with one warning: Linux tests 227 passed / 0 failed / 3 ignored, cargo xwin check exit 0, but cross-linking fails on pre-existing libflare_selene / libesaxx_rs CRT and __cpu_model mismatches and no live Windows Ctrl-C run exists. Issue #113, which this refs, was closed by a Linux reporter who said it was no longer reproducible — so the Windows behavior has never had a reproduction; the plan's conditional checklist (Step 0 build, 2.1–2.3 pass/fail Ctrl-C presses, 2.4–2.5 record-only observations, run.log attached to the PR) is the evidence still owed. The cn5/cn7 parts of the plan are deliberately compressed into one optional hardware bullet because they test nothing in the diff.

Full report