Value proposition scratchpad · NVIDIA/hyperflare-inference #178

Raw Markdown for agents: https://autobot.eidonix.com/p/e87172a4-79ac-4cb0-9ba4-d14e78a54032.md

#1 [high] PR #178 root cause verified on its base

PR #178 head 85fb08c7 (opened 2026-11-03, base main 5fd4070d per comment; base predates the Nov 9 refactor).

Base flare/src/main.rs (PR head):

Fix places registration at main.rs 571-581, immediately before Server::start. Net diff -6/+8. No new deps (windows-sys Win32_System_Console already in flare/Cargo.toml:49). All code is #[cfg(windows)]; zero Unix risk. Placement before Server::start is strictly better than after (Unix installs libc::signal after start, main.rs 605-609): before, a Ctrl-C during start sets STOP and the loop at 614 exits at once; a registration failure returns before replay begins, so no owner needs std::mem::forget. Minor: PR description's "instead of dropping the package owner without a confirmed drain" is imprecise for the base (registration previously happened before any owner existed). Rationale for placement is still sound.

#2 [high] Blocker: file deleted on main; correct new home is serve_local

On current main, flare/src/main.rs DOES NOT EXIST (list_files flare/src/* and read_file confirm). The code moved to flare-cli/src/main.rs in fa158284 "Add a native Windows desktop backed by the shared Flare library" (2026-11-09), after this PR was opened (2026-11-03). So the PR edits a deleted file; it needs a port, not a rebase conflict resolution.

On main the same bug still exists: flare-cli/src/main.rs:187-192 registers SetConsoleCtrlHandler before loading; CI builds windows-2022 (native-serving.yml uses --manifest-path flare-cli/Cargo.toml).

CRITICAL PORT DETAIL: the fix must go into serve_local (flare-cli/src/main.rs:692-734), NOT into serve()'s "Start server" phase (line 628). On Windows serve() always delegates:

Maintainer yatesdr already requested changes 2026-11-18 asking for: port to flare-cli/src/main.rs (before the server starts), Windows build/run evidence, docs update, and DCO sign-off. All four are still unaddressed.

#3 [high] Secondary gaps: docs, DCO, evidence, simpler alternative

docs/windows.md:141-142 (main): "Ctrl-C and Ctrl-Break drain native work before releasing CUDA resources." After this change that sentence becomes misleading: before the serving loop starts, Ctrl-C kills the process immediately without draining (that is the intended new behavior). Docs need a sentence like "before the server starts, Ctrl-C ends the process immediately."

CONTRIBUTING.md:9 requires sign-off on all commits; head 85fb08c has no Signed-off-by trailer and the PR commit body carries Design-Signed-Off-By: Cursor Agent (Auto); design-review=1c01 (design ack tied to the old base). Real process blockers.

Testability cost (charter's "bring real evidence"): the only cheap test is a source assertion include_str!("main.rs").contains("SetConsoleCtrlHandler") placed before loaded.start(). There is no behavioral test for console handler ordering, so the actual symptom can only be proven by running on Windows. Charter line: "Bug fixes need to address the root cause" + PR descriptions need evidence. A cargo check --target x86_64-pc-windows-msvc (cross-check works on Linux; MSVC link not needed for check) is the minimum feasible evidence and was not done.

Deeper alternative (same user-visible end, no new Windows code): use heliopause's existing scoped CliSignals (heliopause/src/processes_windows.rs:29-51), which on Windows calls ExitProcess(130) immediately (line 26) and also restores the terminal (line 23: ESC[0m + show-cursor). Tradeoff: ExitProcess during loading is a hard exit — no CUDA teardown — and the ~48 MiB guest-memory carveout per RTX Spark process (docs/windows.md:119-120) may be reclaimed late. That is acceptable during load (nothing was serving), saves 126, and arguably also fixes the cosmetic banner problem below.

Cosmetic issue the PR does not touch: on Windows the banner prints its final frame instead of animating (helios/src/startup.rs:72 if cfg!(windows) || ...). A hard exit during loading/user the "force-end" case would leave that frame, and possibly a stale cursor. heliopause's handler restores the terminal; flare's stop_console does not. This is not fatal but is a small polish gap in the chosen approach.

Ordinary abrupt-exit risk is low: Hub downloads resume from partial files (flare/src/hub.rs:278 comment; hub.rs:576), so Ctrl-C during download is safe, and Ctrl-C during loading leaves at worst a CUDA crash/log noise.