carlos / platform Public

Hub startup logs a false forward-row refusal per row before tunnels are enabled open

Found by Astra's whole-branch review of #471 (docs/superpowers/reviews/CODEX-FINDINGS-tunnel-websockets-branch-R1.md, P3). The problem was already there before #471.

What happens: edge.New runs its first Reload before tunnels are enabled (edge.go:539). Reload then treats the box as not the hub and logs a "forward row on a box that is not the hub" refusal for each ready forward row (edge.go:837-885). enableTunnelsFromEnv then enables tunnels and reloads before the listeners open (edge.go:4481, :4366), so serving is never affected. But every hub restart logs one false refusal per forward row.

Fix: configure tunnels before the first Reload, or hold this diagnostic until startup configuration is complete. Keep the refusal itself.

The #471 test fixture (fleetforward_test.go) had the same ordering. That was fixed on the branch in aa744f82 by writing hub rows after EnableTunnels.