GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing · Issue #5610 · developing-today/code

Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610

New issue
Copy link
New issue
Copy link
Closed
#7679
Closed
Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing#5610
#7679
Copy link
Assignees
dezren39
Labels
effort/mMedium: expected under 1 day of workkind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 4, 2026
Issue body actions

What happened

Commit e8b4cdc ("rewire OpenClaw to the server facade and retire the route proxy (opencode#1153)", landed 2026-11-04 10:57 CST) deleted bin/opencode-route-proxy.mjs + bin/opencode-route-proxy-start.sh and removed the opencode-route-proxy.service definition from home/common/default.nix. The unit was stopped at 10:54 CST and the files were removed from the live deploy dir (~/code/bin).

But the deployed OpenCode config still routes through that proxy: ~/.local/share/opencode/opencode.jsonc (and the repo's .opencode/opencode.jsonc) still carry 52 opencode-route references, and every dispatched session runs model opencode-route/workhorse against 127.0.0.1:18750. The opencode#1146 server-façade cutover that was supposed to make the standalone proxy unnecessary has NOT landed in the deployed config.

Impact

  • Every opencode-route/* session failed from 10:54 CST onward (surfaced as provider.auth 401s).
  • The Phase 3 (audit) of #3231 — field-by-field receipt-validation audit for pkgs/id artifacts + contract statement #3232 receipt-validation audit session burned all 3 of its monitor resume attempts against the dead route and was marked failed-final, even though all four of its gates had closed and the audit itself is still owed (issue closed via PR id(artifact): finish the receipt contract — frontier policy is Forbidden, builders refuse what receipt refuses #5576; the audit deliverable is outstanding).
  • Any other workhorse-tier work dispatched in that window hit the same wall.

Stopgap applied (2026-11-04 ~12:03 CST, laptop only, no repo change)

  • Restored bin/opencode-route-proxy.mjs, bin/opencode-route-proxy-start.sh, and the test file into ~/code/bin from e8b4cdc75^ (md5-verified byte-identical; untracked files in that checkout).
  • Installed a hand-placed user unit ~/.config/systemd/user/opencode-route-proxy.service replicating the retired nix unit (port 18750, Restart=always), enabled and started it.
  • Verified: unit active, listening on 18750, /health ok, /v1/models serves the tier list, and a live scout completion returned HTTP 200 end-to-end. (Workhorse/specialist currently return honest quota 429/502s — the Go Flash carriers are in a trough until popesdrew's 5h reset at 18:47Z; drewrypope weekly is walled until Nov 9. That part is quota, not plumbing.)
  • The Phase 3 (audit) of #3231 — field-by-field receipt-validation audit for pkgs/id artifacts + contract statement #3232 session has been resumed with full context.

What's owed

  1. A retirement gate: never retire a provider door (files, unit, or port) while the deployed config still references it. The retirement check must grep the deployed opencode.jsonc (and the session dispatch state) for the provider id before removing anything.
  2. A durable home for the proxy until the cutover actually lands: either restore the files + unit in the repo/home config until opencode#1154's cutover changes the deployed config, or formally adopt the hand-placed user unit as the interim mechanism and record it. The stopgap above is deliberately out-of-band and should not silently become permanent.
  3. Remove the stopgap when the façade cutover lands in the deployed config (opencode-route references gone from the deployed jsonc), and close this issue with that evidence.

Related: opencode#1146 (façade program), opencode#1153 (the retirement), opencode#1154 (cutover), code#5295 (known-exhausted gate), code#3232 (the audit that was blocked).

Acceptance criteria

  • A retirement gate exists: removing a route/proxy component fails or blocks while deployed config or live session routing still references it (checked against the opencode-route reference counts in ~/.local/share/opencode/opencode.jsonc and the repo .opencode/opencode.jsonc).
  • For the opencode-route retirement specifically, the end state is one of: deployed config migrated to the server façade (the opencode#1146 cutover), or the proxy remains deployed as a repo-managed unit — the hand-placed stopgap unit is not the final state.
  • The outstanding Phase 3 (audit) of #3231 — field-by-field receipt-validation audit for pkgs/id artifacts + contract statement #3232 receipt-validation audit deliverable (its monitor attempts were burned against the dead route) is re-run or explicitly re-filed.

Activity

Next
  1. developing-today commented on Nov 4, 2026

    @developing-today
    developing-todayBot
    on Nov 4, 2026 – with developing.today
    Contributor
    More actions

    CODE-1388

  2. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    Correction/deepening from the repair work (2026-11-04 ~12:10 CST): the proxy retirement above was real, but the #3232 session's provider.auth 401s were NOT caused by the dead proxy — its turns never reached :18750 (no proxy journal entries). Verified root cause for those 401s: the session was created 2026-11-01 and its pinned provider resolution targets the retired base 'openai' provider. There is no credential row under integration_id 'openai' (the OAuth rows live under openai.main / openai.alternate, both active and healthy), so the server called api.openai.com with no Authorization header — the error body byte-matches api.openai.com's no-auth response. Fresh sessions on the current config resolve openai.main and succeed (verified end-to-end). The audit has been re-dispatched as a fresh session (ses_e5e583ee02affe3rm1LyXRfS70) and is running. The retirement-gate ask in this issue stands — the proxy was still serving live routes (scout/workhorse via the proxy path verified after restoration) when it was removed — but session-pinned stale provider references are a second, related hazard worth covering in the same gate: sessions created before a provider rename keep resolving to the retired id.

  3. dezren39
    added
    kind/infrastructureInfrastructure / host-portability work
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    status/needs-triageNot yet triaged; needs a first look
    source/humanFiled directly by a human
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 4, 2026
  4. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    Intake review

    • Related issues/PRs: opencode#1153 (the retirement commit e8b4cdc), opencode#1146 (the server-façade cutover that has not landed in deployed config), PR id(artifact): finish the receipt contract — frontier policy is Forbidden, builders refuse what receipt refuses #5576 (closed the Phase 3 (audit) of #3231 — field-by-field receipt-validation audit for pkgs/id artifacts + contract statement #3232 issue while its audit deliverable stayed outstanding). No duplicate: a search returns only this issue.
    • Notes: Enriched by the fleet monitor (Duty 2, protocol §5): acceptance criteria appended, labels normalized (kind/infrastructure, priority/high, effort/m, source/human). The stopgap (restored proxy files + hand-placed user unit on the laptop, ~12:03 CST) is an operational bridge, not the fix — the owed work is the retirement gate plus a repo-managed end state.
    • Risks / suggested approach: Gate shape: a deploy-time check that counts live routing references (52 opencode-route references in the deployed config at filing) and blocks removal of a component that still has references. Also disposition the burned Phase 3 (audit) of #3231 — field-by-field receipt-validation audit for pkgs/id artifacts + contract statement #3232 audit deliverable explicitly so it does not stay silently owed.
  5. github-actions
    assigned
    dezren39
    on Nov 4, 2026
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Switch gate resolved for the route-proxy retirement — live evidence 2026-11-04 ~18:40 CST

    The switch-blocking question on this issue — does anything still route through :18750? — is answered no, on live reads (not records):

    • Deployed config ~/.local/share/opencode/opencode.jsonc: 18750 occurs 0 times. No baseURL points at the route proxy. The 52 opencode-route hits are model-id strings ("model": "opencode-route/workhorse", small_model: opencode-route/speed, agent model fields, demotion targets) — tier names now served natively by the server façade's in-server route provider (the config's own comment at the provider block: "by the server; no baseURL/apiKey (the provider owns auth)"). Same shape in the repo copy at origin/main (0× 18750, 52× model-id refs) — deployed and repo agree.
    • Other proxy baseURLs still present in the deployed config are exactly the doors that remain standing by design: :18747 muse-proxy (backend retained), :18748 commandcode-proxy, :18749 claude-code-proxy. :18744 (codex-proxy) and :18750 are absent.
    • The OpenClaw consumer was rewired to the façade by PR Rewire OpenClaw to the server facade, retire the route proxy (opencode#1153) #5588 (merged), and its hand-placed credential stand-in was retired earlier today with the full 5-step battery (opencode#1146 comment 6646057126).

    So the deployed config has migrated to the server façade — the first of this issue's two acceptable end states — and a switch that deploys the repo state (no route-proxy unit/files in nix) removes nothing that anything references. The retirement gate question for THIS switch is resolved.

    What remains open on this issue (not switch-blocking): (1) the general retirement-gate mechanism (the port-fallback guard exists; a config-reference gate for future door retirements is still owed); (2) removal of the vestigial stopgap artifacts — the hand-placed user unit ~/.config/systemd/user/opencode-route-proxy.service (observed flapping in auto-restart earlier today; it serves a port nothing references) and the untracked restored ~/code/bin/opencode-route-proxy* files — cleanup being executed/verified in this switch round's census; (3) the #3232 audit re-run/re-file.

  7. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Live-state reconciliation — the route proxy is DOWN; the route ids are served by the server façade (2026-11-04 ~19:37 CST)

    WS-E's flag (deployment epic #5765 / M1 #5768) prompted this live check. Findings, all read live on the laptop just now:

    The hand-placed stopgap unit is broken and looping. ~/.config/systemd/user/opencode-route-proxy.service (the 12:03 CST stopgap fragment): ActiveState was activating/auto-restart, NRestarts 1478 and climbing (1484 by the time I stopped it), ExecMainStatus 127 — its ExecStart target /home/user/code/bin/opencode-route-proxy-start.sh no longer exists (~/code/bin/opencode-route-proxy* is gone entirely; the untracked stopgap copies vanished when the ~/code checkout moved to current main, where the program is retired).

    Nothing serves :18750, and nothing needs to. No listener on 18750, no route-proxy process. There is no second instance and no live twin beside the stale unit — the contradiction resolves as: a vestigial hand unit flapping against a deleted script, while the work moved in-server. The deployed config references the port zero times (gate record, comment 6646298767).

    Serving verification — the opencode-route/* ids are live on the façade. Against the standing server on 127.0.0.1:13420: authenticated GET /v1/models → 200 (28 leaf/provider models; route ids are not listed there — they are internal tier ids), unauthenticated → 401, and POST /v1/chat/completions with "model":"opencode-route/scout" → HTTP 200, a real completion object echoing the route model with usage (54 prompt / 20 completion tokens). The in-server route provider serves the tiers; the standalone proxy carries no traffic because there is no proxy and no config path to one.

    Action taken (this issue's resolution scope): systemctl --user stop opencode-route-proxy.service — now inactive/dead, restart counter frozen. The fragment file was left in place and the unit is still enabled: it will re-flap at the next user-manager start until the fragment is removed. That removal is the deployment track's (epic #5765, M1 #5768) — flagging it here rather than taking it, since the switch round that was to deploy the repo's proxy-free state is gated on code#5736.

    Net for this issue: the switch-blocking question stays resolved — now stronger: the proxy is not merely unreferenced, it is down, and the fleet's route traffic demonstrably flows through the server façade. Remaining on #5610: the general retirement-gate mechanism, the stopgap-fragment removal (via #5768 / the gated switch re-run), and the #3232 audit re-file.

  8. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  9. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-w
    • Session / ID: task 10086
    • Found via: queue claim
    • Task: Issue Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610 — execution lane assigned to opencode; handing off to the opencode claimant, which launches the bound session.
    • Expectation: claimant launches the bound opencode session for task 10086; this lane does not work the task directly.
    • Links: Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610
  10. 105 remaining items

  11. developing-today
    removed
    status:in-review
    on Nov 8, 2026
  12. dezren39
    added a commit that references this issue on Nov 8, 2026

    fix(scripts): retirement gate applies tombstone filtering only to the…

    f86f7e5
  13. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked (CI pending)

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 13040
    • Found via: queue claim; execution lane assigned direct, worked by this lane (resume of lanes code-k/code-h/code-g work per §10 — verified fresh, did not restart)
    • Task: small_fix for issue Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610 (provider retirement gate, PR feat(scripts): provider retirement gate — block retiring a provider while config still references it (#5610) #7679). On resume: PR feat(scripts): provider retirement gate — block retiring a provider while config still references it (#5610) #7679 head c09832d carried two undispositioned CodeRabbit Minor findings from 15:32Z. Dispositioned both: (1) 4506743525 FIXED in f86f7e5 — tombstone filtering now applies only to the top-level disabled_providers list (object-depth tracking), nested same-key arrays no longer blank references; new contract test, suite 19/19 on the laptop, live spot checks unchanged (google-vertex exit 0, opencode-route exit 1). (2) 4506743529 replied with reason (discussion_r4506875007) — residual "/"-shaped strings in unrelated fields fail safe: the gate blocks and prints every matched line for operator judgment; full JSONC field-context parsing is out of scope for this PR. All Codex findings on PR feat(scripts): provider retirement gate — block retiring a provider while config still references it (#5610) #7679 were already dispositioned in earlier rounds.
    • Expectation: PR feat(scripts): provider retirement gate — block retiring a provider while config still references it (#5610) #7679 merges once CI is green on head f86f7e5; parked 1200s for CI. Issue Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610 stays open for the Migration M1: route-proxy from hand unit to services-layer deploy target #5768 activation slice and the owed Phase 3 (audit) of #3231 — field-by-field receipt-validation audit for pkgs/id artifacts + contract statement #3232 audit.
    • Links: PR feat(scripts): provider retirement gate — block retiring a provider while config still references it (#5610) #7679 · task 13040 · issue Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610
  14. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  15. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane code-a
    • Session / ID: task 13040
    • Found via: queue claim (resume, direct lane)
    • Task: issue Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610 provider retirement gate, PR feat(scripts): provider retirement gate — block retiring a provider while config still references it (#5610) #7679 head f86f7e5 verified OPEN. Fresh check this shift: all Codex findings dispositioned (rounds 1-3 fixed/answered by earlier lanes; no Codex review yet on the current head), CodeRabbit findings on the previous head fixed in f86f7e5. The 4 basic CI checks are still QUEUED after a ~5-minute poll (runs created 2026-11-08T16:12:50Z).
    • Expectation: parked 1200s on CI pending; on resume read PR feat(scripts): provider retirement gate — block retiring a provider while config still references it (#5610) #7679 checks fresh, merge under the standing criteria when green, then complete task 13040. Issue Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610 stays open for its owed items 2-3.
    • Links: PR feat(scripts): provider retirement gate — block retiring a provider while config still references it (#5610) #7679 · issue Route proxy retired (opencode#1153) while deployed config + live sessions still route through opencode-route/:18750 — retirement gate missing #5610
  16. dezren39
    added a commit that references this issue on Nov 8, 2026

    Merge pull request #7679 from developing-today/queue/13040-5610-retir…

    c3b2e46
  17. dezren39
    closed this as completedin #7679on Nov 8, 2026
  18. developing-today
    added
    status:done
    on Nov 8, 2026
  19. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    Done — PR #7679 merged (2026-11-08, task 13040)

    PR #7679 merged as c3b2e46931901efe4651c350b9d6b513e07edb07 at 2026-11-08T17:29:03Z. This lands item 1 of the fix-packet spec on #5610: the provider retirement gate (scripts/check-provider-retirement-gate.sh) that blocks retiring a provider while active references remain in repo or deployed configs.

    Final verification at head f86f7e5f1872462960d47677ee4b41580573cbf4 (lane code-h, this shift): contract suite scripts/tests/test_check_provider_retirement_gate.py 19/19 OK on the laptop; live gate re-run — opencode-route exits 1 (retirement correctly blocked today), no-such-provider-xyz exits 0. All review threads on PR #7679 (Codex and CodeRabbit rounds) were dispositioned with fix commits (93dea15d42, 7cfc748108, c09832df94, 52c8b24c81, f86f7e5f18) or a reasoned reply, and are now marked resolved.

    Issue #5610 stays OPEN: the interim-state resolution proceeds under #5768 and the #3232 receipt-validation audit remains owed, exactly as the PR body recorded. The queue task completes as fixed_merged for the retirement-gate slice. Queue/status/work labels are being cleaned with this note.

  20. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

effort/mMedium: expected under 1 day of workkind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.