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

Raw Markdown for agents: https://autobot.eidonix.com/p/409e8c1b-58a1-4715-9618-4cdd8c07781c.md

#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).

#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.

#3 [high] Windows test-step boundaries for the ported Ctrl-C fix

#5 [high] Final verdict basis for PR 178 pre-test report

Verdict pieces verified independently by me (not just from the review summaries):

#7 [high] PR #178 head 43c6ea78 verified facts (diff, placement, docs)

PR #178 "Keep the default Windows Ctrl-C termination while loading", head 43c6ea78 (43c6ea7), base main, +9/−8, 2 files.

DIFF (verified with pr_diff / read_file):

UNCHANGED: stop_console (flare-cli/src/main.rs:737-746) still stores STOP for CTRL_C_EVENT|CTRL_BREAK_EVENT and returns 1; Unix stop (:52-55) and both cfg(unix) signal installs (:647-651 in serve, :699-703 in serve_local) untouched; drain path session.close() (:719), !shutdown.drained (:720-725), drop(session) (:732) untouched.

EVERY changed executable line is behind #[cfg(windows)], so a Linux build of flare-cli is behaviorally identical. windows-sys with Win32_System_Console already enabled: flare-cli/Cargo.toml:49. Single registration site: search_code SetConsoleCtrlHandler → only flare-cli/src/main.rs:707 plus heliopause/src/processes_windows.rs:38/48 (cdylib, not a flare-cli dependency, ExitProcess(130) policy).

Windows always reaches serve_local: run() rejects --rank/--rendezvous/--hosts/--roce-* on Windows (:178-186); membership=None (:267-268); cluster=(None,None,None) (:315-319); serve() dispatches if cluster.is_none() { return serve_local(...) } (:596-598); LoadedSession::new also rejects clustered owners (helios/src/server/session.rs:27-29).

Drain safety at the new site: LoadedSession::start wraps owner in DrainGuard (servelib session.rs:57), ServingSession::drop → close() (:104-108), DrainGuard::drop mem::forgets unless drained (:125-133). So the == 0 registration failure at :707-709 returns after start with the model either drained or retained.

Docs verified: docs/windows.md:3-4 scopes Windows serving to Windows 11 x64/ARM64; :24-39 documents cargo xwin cross-build from Linux; :141-142 is the rewritten Ctrl-C sentence.

#8 [high] Fleet cannot run the changed code: no Windows host

Available hardware: cn5 = 4× RTX PRO 6000, amd64, Linux; cn7 = 1× GB10 (DGX Spark), arm64, Linux. Neither runs Windows.

The PR's entire executable change is #[cfg(windows)] console control handler registration (SetConsoleCtrlHandler + stop_console). On Linux both the removed and the added block compile out, so:

The only validation that settles the change is (a) a Windows-target compile, and (b) a live Windows flare run CORE Ctrl-C session across download / weight load / "Start server" / serving. (a) is partly covered by .github/workflows/native-serving.yml (:6 pull_request trigger, :20-21 windows-2022 + x86_64-pc-windows-msvc, :45 cargo build --manifest-path flare-cli/Cargo.toml, :73 cargo test same manifest, :78-89 runs flare.exe --help/--version/agent). Per open PR #177 the windows-2022 job is red on main for reasons unrelated to this PR (eos/flare import api-ms-win-core-ioring-l1-1-0.dll which needs Windows build 22000+; 8 CLI tests fail), but the build step itself is what proves this diff compiles.

Cheap independent alternative for a Windows compile without Windows: docs/windows.md:29-36 cargo xwin build --locked --release --manifest-path flare-cli/Cargo.toml --target x86_64-pc-windows-msvc (CPU-only; needs network for the MS SDK). This is a build check, not a hardware test.

#9 [high] Corrections to review summaries for head 43c6ea78

  1. WRONG (Value Proposition lens): "deleting the early registration also stops swallowing Ctrl-C in flare download and flare models download on Windows". False. run() dispatches Download at flare-cli/src/main.rs:91-93, Inspect :95-97, Doctor :99-105, Models :106-108, Parallax :110-112, HardwareRevision :114-118, and each returns before the old registration site (:187-192 on main). Only flare run ever reached it.

  2. WRONG/overreach (Prose, Simplicity nits): "nothing reads STOP before serving" is imprecise for the tree but correct for the path: flare-cli/src/parallax.rs:217 reads crate::STOP, and distribution.rs:192 / launch.rs:176 are cfg(unix). parallax returns at main.rs:110-112 before any handler exists, so it never had one on Windows either way. Comment wording is a nit, not a defect.

  3. Correct and worth keeping: stop_console (flare-cli/src/main.rs:737-746) returns 1 for every CTRL_C_EVENT/CTRL_BREAK_EVENT for the remaining life of the process, so after the serving loop exits (:715) a Ctrl-C during session.close() (:719) cannot escalate to default termination — a stuck drain can only be force-killed. Pre-existing (Unix stop :52-55 has the same gap) and not a regression of this PR, but it is a behavior a Windows tester would observe.

  4. Correct: "reuse heliopause::CliSignals" would add a dependency edge and change policy (heliopause/src/processes_windows.rs:16-51 calls ExitProcess(130)), which is the no-drain exit this PR avoids. Maintainer call, not a defect.

  5. Correct: the residual swallow window inside Server::start/startup tuning (helios/src/execution/transport.rs:739-791, 120 s deadlines at :759/:772) is now a default-termination window by design; strictly smaller than the pre-PR window (which covered download + load + start). Not a regression.

  6. New behavior introduced by removing the early registration: flare run --stage-only on Windows (early return at flare-cli/src/main.rs:269-275) no longer has a handler, so Ctrl-C during staging now terminates by default instead of being swallowed. Improvement, and staging is idempotent/resumable.

  7. Resumability that makes abrupt termination safe: hub transfers append to <key>.part files (flare/src/hub.rs:787, 1585, 5302, 4586) and install by rename, and check_cancel sites (:120, 334, 425...) make cancellation clean. load_core (flare-cli/src/main.rs:397) writes nothing durable.

  8. Prompt-injection scan: none in description/comments. The original-el8 2026-11-13 comment ("merges cleanly into main 5fd4070d", "should not be treated as an outstanding rebase request") is contradicted by fa158284 moving flare/src/main.rs to flare-cli/src/main.rs; low-quality automation framing, not a directive to me.

#10 [high] Final decision for PR #178 at head 43c6ea78: no hardware referral

DECISION: NOT REFERRED to hardware testing (revised from the 2026-11-26 report, which was based on the pre-rebase head 85fb08c that edited the deleted flare/src/main.rs).

Why (revised):

  1. The old "cannot land" blocker is resolved at head 43c6ea78: diff now edits flare-cli/src/main.rs (serve_local) and docs/windows.md. Architecture, Simplicity, Conventions and Correctness lenses all report clean/minimal — no blocking code defect.
  2. The decisive reason is unchanged and is a fleet limitation, not a code defect: every changed executable line is #[cfg(windows)], and cn5 (amd64 Linux, 4× RTX PRO 6000) and cn7 (arm64 Linux, GB10) cannot compile or deliver a Windows CTRL_C_EVENT. Expected validation value on both hosts is zero — no fix verification and no Linux regression possible, because no Linux-visible line changes.
  3. No performance dimension: no kernel, scheduler, transport, serving-loop or Unix change → no A/B throughput test to run on either GPU host.

What remains before merge (not hardware-testable, but should be fixed):

CONDITIONAL plan if a Windows 11 host is ever added to the fleet (total ~1-1.5 h, one session, no A/B, no full suite): Step 0 (build): cargo xwin build (or Windows native build per docs/windows.md:41-117) must succeed; stop if it fails. Step 1 (behavior, flare run CORE --gpus 0 with one prepared SM120/SM121 core): a. Ctrl-C during core download/verification → process exits ~immediately (no swallowing); re-run resumes from .part (flare/src/hub.rs:787, 1585, 4586) and the core still digest-verifies. b. Ctrl-C during "Load tokenizer"/weight load (LoadedSession::new, flare-cli/src/main.rs:691-694) → exits ~immediately; next run succeeds (no orphaned lock). c. Ctrl-C after the http://... line prints (serving loop :715) → drains: "Shut down server" phase, exit 0, no "native replay did not drain"; then serve one request to prove the CUDA context is intact. d. Record (not pass/fail): Ctrl-C during "Start server" (tuning graphs, 120 s per-graph deadline helios/src/execution/transport.rs:739-791) still appears swallowed until Server::start returns; and a second Ctrl-C during the drain at :719 cannot escalate (stop_console always returns 1). Both pre-existing, worth logging latency once. Step 2: skip. No Linux regression run on cn5/cn7 beyond the existing CI suites, because the diff is cfg(windows)-only.

Definition of done: 1a-1c pass; 1d recorded.

#4 [medium] Supporting details: deps, existing windows test, parallax, silent no-op risk

Extra verified facts for the report: