fix(serve): report the decision server's bound port

Draft
SH
1d ago
+13-2

The decision server accepted --port 0 but printed URLs containing :0, rather than the port assigned by the OS.

Both advertised URLs now use the bound port from listener.local_addr(). This fixes the decision server only; the LLM server still needs an SDK change to report its assigned port.

With a real decision model, the reported non-zero port accepted connections, and both /health and /v1/decisions returned 200.

CI and formatting pass. The local full suite had 565 passes and two Windows symlink-privilege failures. Strict Clippy reports four pre-existing lints in untouched files.


Summary by cubic

Fixes the decision server advertising :0 when started with --port 0. The server now reads the port the OS actually assigned from listener.local_addr() and advertises it in both the /v1/decisions and /health endpoints.

  • The change is scoped to the decision server; the LLM serve path still reports :0 because it's owned by the pinned SDK.
  • The requested host text and all other serve behavior are unchanged.