Scope
Port the remaining Bun native network corpus cluster currently hidden behind TODO rewrites:
js/bun/net/named-pipe-listen-error.test.tsjs/bun/net/socket-retention.test.tsjs/bun/net/socket.test.tsjs/bun/net/tcp-server.test.tsjs/bun/net/unix-socket-unlink.test.ts
Initial evidence
The platform-specific named-pipe file reaches its upstream-declared todo on macOS. Removing the other four suppressions exposes integration gaps:
socket-retention.test.ts:Bun.connectdoes not create the server-side peer/open lifecycle in the corpus runtime;tcp-server.test.ts: connected socket metadata and duplex delivery are incomplete;unix-socket-unlink.test.ts: listeners do not create/remove Unix socket paths;socket.test.ts: validation, connection errors, duplex lifecycle, reload, timeout, TLS upgrade, and subprocess coverage remain to activate.
The full native Home runtime already passes a direct loopback address probe. This issue tracks logically porting the corpus runtime network model and fixing any native gaps that exact direct probes uncover.
Acceptance
- Port general Bun-compatible listener/socket behavior, not fixture-specific pass-throughs.
- Preserve structured native errors and source stacks.
- Remove all five native TODO rewrites.
- Exact corpus runs pass with upstream-declared platform skips/todos only.
- Debug build and full
home_testgate pass. - Land on
mainwith conventional commits and reference the result from #66.