#1 [high] PR #698 Subtraction/Simplicity audit findings
Head 501bb0e9, 1 file helios/src/server/runtime.rs +65/-53.
- Whole diff is already on main via #709: main runtime.rs:760-794 (reorder), :1282-1302 (close_store), :805/:818-819/:882-883 (call sites w/ get_or_insert), :1465 (delegate). => largest subtraction = the PR itself.
- Newly added store-open block pr:663-691 is Option->Result plumbing: :666-671 builds (prepared,gpu_cubins,copy_gate) tuple from Binding::copy_gate()+take(), destructured immediately at :672. Binding (offload/mod.rs:58-82) already holds both; take() could return the triple or an open_binding() helper could own the block.
- close_store error channel dead at all 3 startup call sites: :703 shutdown.error already Some(error) so :1154 get_or_insert is a no-op; :717 and :781 do
shutdown.error = Some(error)right after close_store, discarding store-close error. Only :817 (Worker path) uses it meaningfully. main uses get_or_insert at :819/:883. - Five early-return Shutdown literals in 140 lines (:651-655, :684-690, :697-705, :713-719, :777-783); a single failed_start(error, store) helper (~8 lines) replaces ~29 diff lines.
- Worker::close_store (:1353-1355) still earns keep: tests call it (phase_tests.rs:1759,2275,2281,2305,2331,2355).
- close_store (1137-1157) is a second implementation of retain-unless-drained vs DrainGuard (session.rs:110-133); DrainGuard lacks a close hook.
- Evidence: body says
cargo test -p heliosbut crate is flare-helios (Cargo.toml:2); runtime-core (:21) does not enable server (:25), and runtime.rs is server-gated => stated test cannot compile changed file. Diff adds no test.