GeezerVison is showing github.com — Proxy service-model redesign: automatic flake services, retire proxy-supervisor ownership, restore consumer Wants · Issue #2104 · developing-today/code
Proxy service-model redesign: automatic flake services, retire proxy-supervisor ownership, restore consumer Wants #2104DescriptionProxy service-model redesign: automatic flake services, supervisor retirement
Design decision (Drew, 2026-10-28 23:05 CDT): make the fleet proxies proper automatic flake-declared user services, retire the proxy-supervisor's process-ownership role, and restore consumers' Wants against the real units.
Current state
- Seven proxies serve canonical ports: clef :18742, antigravity-agy :18743, codex :18744, antigravity-ls :18745, design-code :18746, commandcode :18748, claude-code :18749. (muse :18747 is supervised the same way and must not be stranded by a supervisor retirement.)
- They currently run as supervisor-owned transient
fps-* units (bin/proxy-supervise.mjs, run by the proxy-supervisor user timer every ~2 min; endpoint state under ~/.local/state/<proxy>/endpoint.json).
- The supervisor had a symlink-guard bug (proxy-supervise: main() never runs when invoked via a symlinked path (~/code -> ~/git/code) — supervisor timer silently no-ops since 2026-10-27 #2083) making it a silent no-op from 2026-10-27 until manual cold-starts on 2026-10-28. PR fix(proxy-supervise): entry-point guard compares realpaths so symlinked invocations run main() (#2083) #2085 (guard fix) is open.
- The flake also declares manual one-off units for the proxies in
home/common/default.nix (no Install.WantedBy), currently stopped. claude-code-proxy and muse-proxy have no declarative unit at all — supervisor config only.
- Consumers on
main still Wants the manual units: openclaw-gateway (home/openclaw/default.nix: commandcode/design-code/agy + mcpx) and openchamber.service (home/common/default.nix: clef/codex/antigravity-ls/design-code).
Redesign
- One automatic user service per proxy: flake-declared (home-manager
systemd.user.services), canonical port, ExecStart running the same checkout entry points the supervisor runs today (~/code/bin/*.mjs, commandcode-proxy-start.sh, muse-proxy-start.sh), Restart per flake patterns, Install.WantedBy = [ "default.target" ].
- Retire the supervisor's ownership in the same change: remove/disable the
proxy-supervisor timer + oneshot service and its config so it cannot respawn fps-* units. No second owner may remain; the cutover must end in exactly one ownership model.
- Consumers'
Wants stay/restored against the (now real, automatic) units with Wants+After semantics — soft pull-in, ordering when co-started, never blocks the consumer if a proxy is not live. mcpx Wants are legitimate and stay.
- The manual one-off declarations are replaced by the automatic units (same unit names), so nothing startable remains that can fight the services for a canonical port.
Supersedes / related
Acceptance criteria
- After a switch: all proxy services active on canonical ports,
proxy-supervisor timer gone/disabled, no fps-* units.
-
/v1/models spot-checks on :18745, :18746, :18748 return live lists.
-
openclaw-gateway and openchamber.service restart cleanly (Wants+After soft semantics).
- One end-to-end route smoke through the background OpenCode serve (:13420).
-
systemctl --user --failed clean for proxy units.
- Cutover safety: never leave supervisor + services fighting over ports; if the cutover cannot complete, the supervisor-owned status quo stays fully intact.
Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 Implementation PR: #2107 (branch feat/proxy-automatic-services-2104, commit 659343a) — home/common/default.nix only.
Local verification in the worktree before pushing: nix eval of the built home config renders clef-proxy's ExecStart, claude-code-proxy Install.WantedBy = ["default.target"], and the proxy-supervisor service attribute is absent (removal confirmed).
Status 2026-10-28 night CDT: PR open, mergeable, checks pending (Nix flake evaluation / run / treefmt check queued on the backlogged self-hosted runners). Per merge-on-green-only, it has NOT been merged and no switch/cutover has been attempted. The supervisor-owned status quo remains fully live: proxy-supervisor.timer active, all fps-* units serving canonical ports 18742-18749. Cutover (timer stop -> switch -> fps stop -> service start -> port/model/consumer/smoke verification) is deferred until #2107 merges on green.
Also done under this issue: superseded comments on #2092 and #2094 (both left open, unmerged) and a comment on #2083 noting PR #2085's guard fix becomes moot if the supervisor retires here. dezren39 commented on Oct 29, 2026 Intake review
Fleet monitor intake pass (protocol §5), 2026-10-28 ~23:35 CDT.
- Related: PR feat(home): make fleet proxies automatic services, retire proxy-supervisor (#2104) #2107 (OPEN) implements this redesign and states it closes this issue on merge; it supersedes PRs fix(home): drop openclaw-gateway wants on manual proxy units #2092 and fix(home): drop openchamber wants on manual proxy units #2094 (left open, unmerged). Related evidence issues: proxy-supervise: main() never runs when invoked via a symlinked path (~/code -> ~/git/code) — supervisor timer silently no-ops since 2026-10-27 #2083 (supervisor symlink-guard bug), docs(config): document DeepSeek holiday gap in peak windows (opencode#821) #2105 (DeepSeek holiday-gap doc PR, separate).
- Still live / in flight: the redesign is NOT on main yet — PR feat(home): make fleet proxies automatic services, retire proxy-supervisor (#2104) #2107 is open, so this issue stays open. It looks actively implemented rather than stale: the PR was opened the same evening the design decision was recorded (Drew, 2026-10-28 23:05 CDT, per the issue body).
- Labels normalized this pass: kind/enhancement, source/human (Drew's design decision), priority/high (fleet-wide proxy service model; seven proxies plus muse must not be stranded), effort/l (multi-unit service-model change + supervisor retirement). The body already carried an Acceptance criteria section, so no body edit was made.
- Risks: retiring the proxy-supervisor's ownership role before the flake services are proven automatic could strand a proxy (the issue names muse :18747 explicitly); consumer
Wants restoration must land with, not before, the real units.
- Suggested approach: shepherd PR feat(home): make fleet proxies automatic services, retire proxy-supervisor (#2104) #2107 through CI and a live activation check per proxy; close this issue from the PR merge, not before.
developing-today commented on Nov 3, 2026 agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7290 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03 dezren39 commented on Nov 3, 2026 dezren39 commented on Nov 3, 2026
🤖 Agent note · done (triage — closing with evidence)
- Agent: queue worker (repo-worker-code), Lane P shift (lane code-p)
- Session / ID: queue task 7290 (repo-health-code-pilot)
Triage verdict — #2104 is implemented and live; closing with evidence
Verified fresh 2026-11-03 ~23:25Z against GitHub current main and the laptop's live systemd user state.
The redesign landed. PR #2107 — feat(home): make fleet proxies automatic services, retire proxy-supervisor (#2104) — MERGED 2026-10-30T05:16Z (merge commit 72749ff), home/common/default.nix only, exactly per this issue's design: one automatic flake-declared user service per proxy on its canonical port running the checkout entry points, new declarative units for claude-code-proxy (:18749) and muse-proxy (:18747), and the proxy-supervisor service + 2-minute timer + supervisor config removed in the same change so nothing can respawn fps-* units.
Acceptance criteria, checked against the fleet's current shape:
- ✅ Proxy services active, supervisor timer gone, no
fps-* units — live on the laptop: clef-proxy, codex-proxy, commandcode-proxy, claude-code-proxy, muse-proxy and opencode-route-proxy are loaded active running user services (unit files enabled); systemctl --user list-timers shows no proxy/supervisor timer; no fps-* units exist. Current main still carries the retirement (home/common/default.nix: "Proxy supervisor retired (Proxy service-model redesign: automatic flake services, retire proxy-supervisor ownership, restore consumer Wants #2104, 2026-10-28)").
- ✅
/v1/models spot-checks — :18748 and :18744 return live model lists today. :18745/:18746 return nothing on localhost by later design, not by failure: subsequent changes replaced agy-proxy (:18743) and antigravity-ls-proxy (:18745) and left the design-code door (:18746) off with no consumers (see the comments at home/common/default.nix:588-589 and :656-670) — the fleet evolved past the original seven-proxy set after this redesign landed.
- ✅ Consumer
Wants+After soft semantics — openclaw-gateway Wants opencode-route-proxy + mcpx (+ openclaw-embedding) and orders After the proxy units; the openchamber side is recorded at home/common/default.nix:546. Note on ordering history: PRs fix(home): drop openclaw-gateway wants on manual proxy units #2092/fix(home): drop openchamber wants on manual proxy units #2094 (wants removal) did merge on 2026-10-30 (03:34Z / 05:14Z) despite this issue's "stay open" note — but PR feat(home): make fleet proxies automatic services, retire proxy-supervisor (#2104) #2107 merged after them (05:16Z) and is the final word: the units the consumers name are real automatic services.
- ✅
systemctl --user --failed clean for proxy units — no proxy unit is failed. (Two unrelated failures exist: openai-cred-watchdog, tracked by Fleet workhorse legs failing fleet-wide: provider.auth 401 'Missing scopes: api.responses.write' (15:40 wave 9/9 roots failed) #3216, and pm-git-sync.)
- ✅ Exactly one ownership model — supervisor ownership is retired in code and in live state; the declarative services are the only owner.
Residual papercut (not a blocker; routed, not filed as a duplicate): home/openclaw/default.nix still carries the pre-redesign comment claiming the proxies "are owned by the proxy-supervisor (transient fps-* units)" and keeps the retired agy-proxy.service in openclaw-gateway's After list (it shows as a not-found unit). The specific lines are recorded on #2775 (the open survey of laptop services & proxies declarative coverage) as its tracking home.
Disposition: the queue task 7290 triage is complete with outcome already_done; this issue closes on its merits — the work it tracked is implemented, merged, and verified live.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|