Observed
While validating #270, managed session allocation (NOSTRDEV_MANAGED_SESSION=1) reported:
Skipping slot 0: port 3001 has stale socket with no process owner
even when ports were actively bound by a live process.
Why this matters
This can block deterministic slot selection and cause pnpm dev:logs to exit in environments where process-owner inspection is incomplete/unreliable.
Repro
- Start listeners on
3001 + 4173 (for example via Node net.createServer).
- Run
LOG_TAIL=0 BITCOIN_NETWORK=mainnet pnpm dev:logs without explicit PORT/DEV_SERVER_PORT.
- Observe stale-socket message and early exit instead of deterministic remap or next-slot claim.
Suggested follow-up
Harden owner-detection fallback logic when lsof/ownership resolution is inconclusive, so active listeners are not treated as stale sockets.