GeezerVison is showing github.com — Migration M1: route-proxy from hand unit to services-layer deploy target · Issue #5768 · developing-today/code
Migration M1: route-proxy from hand unit to services-layer deploy target #5768DescriptionMigration M1 of the deployment-architecture epic (design: PR #5764 §7). Depends on the deploy tool v1.
The route proxy (opencode-route-proxy.service, :18750) is a hand-written unit file in ~/.config/systemd/user/ and is broken today: activating/auto-restart, ExecMainStatus 127 — its ExecStart script (~/code/bin/opencode-route-proxy-start.sh) is not on disk, while a config comment already declared the proxy "retired 2026-11-04 (opencode#1153)". It is the canonical straddling-a-switch casualty.
Work:
- Define the route proxy as a services-layer target (package = the route-proxy from the opencode fork / deployed config source; health check = a real request through :18750).
- Deploy it as the new generation; remove the hand unit file once the target is green.
- Record the outcome on code#5610 — retiring or keeping the proxy becomes a target decision after this lands, not a switch edit.
Acceptance: deploy route-proxy status shows two generations; :18750 serves through the new unit; a user-session restart does not resurrect the hand unit; deploy route-proxy rollback returns the previous generation and :18750 still serves.
Do NOT retire the route proxy itself in this issue — #5610 owns that decision; this issue only moves its deployment mechanism. Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 M1 live-state facts (from the switch coordinator's reconciliation, 2026-11-04 ~19:37 CST)
For the design track — live reads on the laptop, full record on code#5610:
- The hand unit
~/.config/systemd/user/opencode-route-proxy.service is enabled, fragment dated 2026-11-04 12:03, ExecStart /home/user/code/bin/opencode-route-proxy-start.sh — a path that no longer exists (the untracked stopgap copies disappeared when ~/code moved to current main). It was in an auto-restart loop at NRestarts 1478→1484, ExecMainStatus 127, serving nothing: no listener on :18750, no process.
- The coordinator stopped it (now inactive/dead) under Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610's resolution scope. The fragment was deliberately left in place and still enabled — it will re-flap at the next user-manager start. Removing the fragment (+ the enablement) is M1's cleanup to land, or it rides the gated switch re-run (code#5736).
- The consumer side needs nothing from the proxy: deployed config has zero :18750 references, and the
opencode-route/* tier ids are served by the in-server façade on 127.0.0.1:13420 — proven live with an authenticated POST /v1/chat/completions (opencode-route/scout → HTTP 200 with usage) during this reconciliation.
developing-today commented on Nov 5, 2026
Task 10174 (lane code-s) claimed and assigned to the opencode execution lane. Handed off to the opencode claimant — the bound session drives this task to its terminal state. Parked by this lane per the handoff protocol. dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 8, 2026 🤖 Agent note · parked — CI pending on PR #7631
developing-today commented on Nov 8, 2026 🤖 Agent note · task 13490 parked — awaiting CI on PR #7631; Codex findings dispositioned
This pass (fresh reads, 2026-11-08T10:4xZ):
- PR feat(deploy): add route-proxy to the deploy services registry (#5768 M1) #7631 still open, not merged; basic checks still queued (fleet-wide slow CI this window) — parked again per the 5-minute rule rather than waiting.
- Codex gate cleared: all 6 Codex findings on PR feat(deploy): add route-proxy to the deploy services registry (#5768 M1) #7631 (all on bin/opencode-route-proxy.mjs) dispositioned with thread replies via the developing.today App (user-token replies were rejected with HTTP 422 abuse/secondary-limit). Disposition: the file is restored byte-identical from e8b4cdc^ by design in this registry PR; the findings describe pre-existing restored-code behavior, not this diff, and remain valid follow-ups against the restored proxy code, separate from the M1 registry slice.
Resume condition: PR #7631 basic checks green -> merge PR #7631 (Refs only; issue #5768 stays open — the renderer slice is still owed), then complete task 13490. dezren39 commented on Nov 8, 2026 🤖 Agent note · picked up (resume)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|