console-addr-from-install
A tunnel hub now hands fleet boxes' console calls to the console through a socket root's install creates, so the flagship hub needs no hand-set CARLOS_REPLICA_CONSOLE_ADDR (it answered 503 replica-console-missing without one).
What changes
internal/caps: thecarlos-runtime-directory prefix is the platform's (ReservedRuntimeDir), refused at ship, adopt, converge and render; guard testTestRuntimeDirectoryRenderSites.- Root's adopt pass (
internal/host/consolefleet.go): keeps a drop-inRuntimeDirectory=carlos-consoleonconsole.serviceunder a reload-pending marker, and writes/var/lib/carlos-console-fleet/status.jsonsaying whether the console holds/run/carlos-consolealone, with its uid. Refused: a root console, a preserved or foreign-owned directory, an app's claim on the name. A failed record write removes the old record. - Console (
cmd/console): binds/run/carlos-console/fleet.sockwhen that directory is its own, serving only the box doors; TCP unchanged. - Edge: env > socket > route scan. The socket is used only with root's exclusive record, the directory owned by the recorded uid, and the listener's uid proved with
SO_PEERCREDbefore a byte is written. The route scan, kept one release (Paul), takes only loopback TCP console routes. carlos system statusshows, under a box with a console, the last box call's result, source and age, and why the socket is not ready.
Design and review (on the branch): spec docs/superpowers/specs/2026-11-24-hub-console-address-from-install-design.md (rev 3; Paul's decisions §12, §14, §15), plan docs/superpowers/plans/2026-11-24-hub-console-socket.md. Design review 2 rounds; plan review 2; task reviews T1, T4, T5 ready after fixes; T3 four rounds with Paul's cuts after rounds 2, 3 and 4. Census READY twice (#280). Whole-branch review (Fable) READY AFTER FIXES, fixes applied. UX pass and Luna copy in docs/superpowers/notes/copy/hub-console-socket.md.
After release: roll the boxes, then restart the console (its next deploy) so systemd creates /run/carlos-console. When carlos system status shows no "socket not ready" line under carlos-flagship-ie, remove the interim CARLOS_REPLICA_CONSOLE_ADDR line from its host.env and restart carlos-edge; the console line should then read ok · socket. Delete the route scan the release after.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed 3f8f8f703 census: re-proposed over main's new overlays (same units and dispositions)
- paul@keymail.dev pushed 3ca41a3ab Merge remote-tracking branch 'origin/main' into console-addr-from-install
- paul@keymail.dev pushed 9412b8bad docs: census check of the fix diff (READY)
- paul@keymail.dev pushed 3ce628e18 docs: census brief for the fix diff; branch review findings
- paul@keymail.dev pushed e95d9a7d1 census: re-proposed after the branch review fixes
- paul@keymail.dev pushed a60431feb host, edge, caps, console: whole-branch review fixes (record write fails closed, marker after record, claimant fields); code-health
- paul@keymail.dev pushed fa67595ef docs: census review verdict (READY)
- paul@keymail.dev pushed 62f90c813 docs: census review brief
- paul@keymail.dev pushed d477bee84 host: status store fields named apart from the record-write census; census re-proposed
- paul@keymail.dev pushed 6758f4edc census: console-addr-from-install overlay and card
- paul@keymail.dev pushed 8d6e625c6 edge: Paul's cut after round 4, the route scan takes only loopback TCP console routes
- paul@keymail.dev pushed 9ed22670c docs: task 3 review round 4 findings; stopped for Paul (no fifth round)
- paul@keymail.dev pushed c41934e7e docs: task 3 review brief, round 4
- paul@keymail.dev pushed 5c78a1e4b edge: gofmt
- paul@keymail.dev pushed 028ed4dc5 edge, host: round 4 (route scan never reaches the fleet socket, no root console, Linux-only success tests); copy pass 2
- paul@keymail.dev pushed ca83ab1b9 docs: task 3 review round 3 findings; stopped, a fourth round needs Paul
- paul@keymail.dev pushed a1e039f7a docs: task 3 review brief, round 3 (narrow, peer check)
- paul@keymail.dev pushed d370ead4a edge, host: cut 3, prove the console socket's listener with SO_PEERCRED; task 3 R2 P2s
- paul@keymail.dev pushed 4eff1d82f docs: task 3 review round 2 findings; stopping rule 2 (socket identity), stopped for Paul
- paul@keymail.dev pushed c62204f50 docs: task 3 review brief, round 2; task review R1 findings
- paul@keymail.dev pushed 65e1bf213 host, edge, caps, console: task review R1 fixes (console uid ownership, pending reload, list names, 1xx, OPTIONS *)
- paul@keymail.dev pushed b5f188152 status, console, cli: carry the console fleet block to carlos system status; UX pass and copy
- paul@keymail.dev pushed f047fa886 docs: per-task review briefs (tasks 1, 3, 4, 5), round 1
- paul@keymail.dev pushed e043ac06d edge, console: forward box calls to the console's fleet socket; console listens on it; plan review closed (R2)
- paul@keymail.dev pushed 75c29e165 docs: plan review brief, round 2
- paul@keymail.dev pushed db6dee85c caps, host: reserve the carlos- runtime-dir prefix; root's console fleet step; plan rev 2
- paul@keymail.dev pushed 90fcfec0f docs: plan review brief names its commit
- paul@keymail.dev pushed 38f8af18a docs: implementation plan for the hub console socket
- paul@keymail.dev pushed 17a503e24 docs: hub console spec rev 3 — Paul's decisions (cut 3, shape, route scan), round 2 P2s, dispositions
- paul@keymail.dev pushed f9c46ab58 docs: hub console spec — round 2 findings; review stopped under rule 2, cut options for Paul