Task · SKT-0161

Replace reserve-and-close test ports in cmd/synthkit HA and Fleet fixtures with child-bound listeners

Description

Found by loop52 lanes lha (SKT-0158) and l128 (SKT-0128): about ten cmd/synthkit tests (incl. fleet_unregister_test.go:149, ha_backend_test.go) reserve 127.0.0.1:0, close it and let a child bind it; under parallel gate load another process takes the port (‘bind: address already in use’, foreign 403 probes). ha_loss_test.go was fixed in loop52 by having the helper bind :0 itself and publish its address via WrapHTTPListener; apply the same pattern to the siblings.

Acceptance Criteria

Definition of Done

Implementation Notes

loop52 BATCH4: landed 7b8da5b. 8/9 sites converted (child binds :0, publishes via WrapHTTPListener); base+foreign listener fails 11 tests at all 9 sites, candidate green; plain/race x2 on gaterun; CodeRabbit 0; gate gaterun 20261022T042623Z-synthkit-1c1cfbed exit 0. AC1 left unchecked deliberately: declarative_sources_test.go needs a main.go change, tracked in SKT-0164; AC2 met for the converted sites.

View the source file on GitHub