Skip to content

fix(fleet): CONNECT-UDP default 3131 -> 3132 + authoritative laptop port registry (pm-stack/PORTS.md) - #6147

Merged
dezren39 merged 1 commit into
mainfrom
fix/pm-ports-registry-3132
Nov 5, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/pm-ports-registry-3132

Conversation

@dezren39

@dezren39 dezren39 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Phase A of the pm-stack overhaul (Drew order 2026-11-05: "fix pad and all others" — ports).

Pad verdict: no Pad fix needed — the 3131 story was stale

Pad is on 7777 in every committed source (pm-stack/pad/compose.yml, PAD_PORT 7777; aggregator default PM_AGG_PAD_URL=http://127.0.0.1:7777, pm-stack/aggregator/src/config.ts:206) and the deployed aggregator env has no PM_AGG_PAD_URL override. Live evidence at audit (~02:00 CST 2026-11-05):

  • docker ps: pm-pad up 8h (healthy), 127.0.0.1:7777->7777 + 100.99.113.103:7777->7777
  • curl 127.0.0.1:7777/api/v1/health → {"status":"ok","version":"0.18.1",...}
  • curl 127.0.0.1:4870/api/health (aggregator) → services entry {"id":"pad","state":"up","ok":true,"detail":"HTTP 200"} — the aggregator consumes Pad successfully on 7777.

The "Pad on 3131" claim traced to a single comment in the hand-installed ~/.config/fleet/connect-udp.toml on amd; that comment has been corrected in place (comment only, no behaviour change). The correction is also written up in pm-stack/PORTS.md and commented on #6109.

What this PR does

  1. New authoritative registry: pm-stack/PORTS.md — one row per port on amd (port → service → bind → source of truth → live/reserved/retired/external status), verified against a live ss sweep: pm-stack (4870/4871/4879/5173/5432/6056/7777/7801/8484), fleet (4799/4800/4801, CONNECT-UDP 3131-retired/3132, 3130 marked external = Muse runtime egress), browsers (19222–19226), provider proxies (18742–18751, 18760), OpenClaw (18789/18791), OpenCode 13420, plus observed-other listeners (3000, 3005, 3773, 4747, …).
  2. DEFAULT_CONNECT_UDP_LISTEN 3131 → 3132 (pkgs/fleet/crates/fleet-config/src/lib.rs) — aligns the code default with the deployed dark fleet-connect-udp unit, which binds 3132 from its own config.
  3. DEFAULT_PROXY + module doc 3131 → 3132 (pkgs/fleet/crates/fleet-proxy/src/bin/fleet-udp-forward.rs).

Deploy note: this is code-truth alignment only. The running dark unit already binds 3132 from ~/.config/fleet/connect-udp.toml, so merging changes no live behaviour; nothing was restarted (no broker/aggregator restarts, no system switch).

Found but NOT fixed here (recorded in PORTS.md, follow-ups)

  • Stale tailscale serve forwards for retired proxies 18743 / 18745 / 18746 (serve state is imperative tailscaled state, not committed config).
  • No in-repo home-manager/NixOS declaration exists for the fleet-connect-udp unit — it is hand-installed only; declaration gap recorded.
  • OpenClaw committed docs (home/openclaw/**) still list retired proxy ports as current.
  • Firefox BiDi 19225 live with no committed declaration; Zen BiDi 19226 reserved with no committed declaration.
  • Reviewed and deliberately left alone: the aggregator topology test's PM_AGG_PAD_URL: "http://127.0.0.1:3131" is an arbitrary explicit-override fixture (like Kaneo 6000 / Grist 9000 in the same test); it asserts nothing about defaults.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ort registry (pm-stack/PORTS.md)

Phase A of the pm-stack overhaul (Drew order 2026-11-05: fix pad and all other ports).

Pad verdict: Pad was never on 3131 and never down in committed config -- it is on 7777 (pm-stack/pad/compose.yml), the aggregator default PM_AGG_PAD_URL is http://127.0.0.1:7777 with no override in the deployed env, and the live aggregator /api/health reported pad up (HTTP 200) at audit. The 3131 story traced to a comment in the hand-installed ~/.config/fleet/connect-udp.toml on amd (corrected in place there, comment only). Full correction is written up in pm-stack/PORTS.md.

Code changes are truth alignment only: DEFAULT_CONNECT_UDP_LISTEN (fleet-config) and DEFAULT_PROXY + doc (fleet-udp-forward) move 3131 -> 3132 to match the deployed dark fleet-connect-udp unit, which binds 3132 from its own config file. No live behaviour change; nothing was restarted. 3131 is retired in the registry.

PORTS.md also records, as found-not-fixed follow-ups: stale tailscale serve forwards for retired proxies 18743/18745/18746, the missing in-repo declaration for the connect-udp unit, OpenClaw docs listing retired proxy ports as current, and the unde­clared Firefox/Zen BiDi ports 19225/19226.
@dezren39
dezren39 requested a review from a team as a code owner November 5, 2026 08:07
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 733165d7-5bb4-4b07-8fd8-fedb1ea9bf75
Commits

Reviewing files that changed from the base of the PR and between 1686930 and bf3b48b.

Files selected for processing: 3

  • pkgs/fleet/crates/fleet-config/src/lib.rs
  • pkgs/fleet/crates/fleet-proxy/src/bin/fleet-udp-forward.rs
  • pm-stack/PORTS.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T08:09:34.113295Z bf3b48b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 0824a62 into main Nov 5, 2026
1 check passed
@dezren39
dezren39 deleted the fix/pm-ports-registry-3132 branch November 5, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant