Repository navigation
Description
Bug
The proxy-port drift guard — .github/scripts/check-proxy-port-fallbacks.sh, run as the
basic: proxy port fallbacks job in .github/workflows/nix-ci.yml:50 on every PR — fails on
current main, and its proxy list no longer matches the fleet it guards: it still demands the
two proxies Drew retired on 2026-10-30, and it does not cover three live proxies whose port
copies can now drift silently. This is the inverse of #866 (guard missing proxies then in the
other direction), in the same script.
Evidence (all on main 106b0571, verified this run)
1. The guard exits 1 on main — it demands let definitions that were deliberately removed
$ bash .github/scripts/check-proxy-port-fallbacks.sh
::error::agyProxyPort definition not found in home/common/default.nix.
::error::antigravityLsProxyPort definition not found in home/common/default.nix.
EXIT:1
- The script's table (
.github/scripts/check-proxy-port-fallbacks.sh:36-44) still lists
AGY_PROXY_PORT|agyProxyPort|bin/agy-proxy.mjs|yesand
ANTIGRAVITY_LS_PROXY_PORT|antigravityLsProxyPort|bin/antigravity-ls-proxy.mjs|yes. - Commit
bce524fc("feat(antigravity-direct): nix service for the CLI-wire Gemini door;
retire agy/ls proxy units") removed both lets and both units on purpose.
home/common/default.nix:660-670documents the retirement: the twobin/scripts
"remain in the repo as history, uninvoked", the matching opencode providers sit in
disabled_providers(confirmed:.opencode/opencode.jsonc:19,26and the
antigravity-agyprovider at :2379 still carries{env:AGY_PROXY_PORT:-18743}),
and undoing it means restoring the lets from git history. Nobody updated the guard. - The failure is currently invisible in CI only because Actions runs are stuck queued
(ci: Actions check runs stuck in queued across PRs — no runner pickup since ~05:00Z 2026-10-28 #1599). The moment runners recover, thebasicjob goes red on every PR and on main,
for a reason unrelated to any PR's change — the nix ci red on main: proxy-port guard misses muse/commandcode proxies — opencode.jsonc hardcodes 18747/18748 #866 failure shape again.
2. Three live proxies are not guarded at all
Each has the same single-source let + copies pattern the guard exists to protect
(home/common/default.nix:10-25 let block), agrees today, and can drift tomorrow with
no CI signal:
| proxy | let (default.nix) | bin/ fallback | opencode.jsonc baseURL |
|---|---|---|---|
| claude-code-proxy | claudeCodeProxyPort = 18749 (:23) |
parseProxyPort('CLAUDE_CODE_PROXY_PORT', 18749) (bin/claude-code-proxy.mjs:42) |
{env:CLAUDE_CODE_PROXY_PORT:-18749} (:176) |
| opencode-route-proxy | opencodeRouteProxyPort = 18750 (:22) |
parseProxyPort("OPENCODE_ROUTE_PROXY_PORT", 18750) (bin/opencode-route-proxy.mjs:49) |
none in this repo (script-only row, like Clef) |
| antigravity-direct | antigravityDirectProxyPort = 18751 (:24) |
`Number(process.env.ANTIGRAVITY_DIRECT_PORT |
- Session-variable copies also exist for all three (
home/common/default.nix:779,848,1557,1565). - antigravity-direct additionally cannot be added as a row as-is: its fallback form
(Number(process.env.<VAR> || <number>), unquoted) matches neither of the two forms the
guard accepts (parseProxyPort('<VAR>', <port>)orprocess.env.<VAR> || '<port>').
The guard needs a third accepted form, or the proxy should move toparseProxyPort
(related: antigravity-direct: ANTIGRAVITY_DIRECT_PORT / _TIMEOUT_MS are bare Number() — bypasses the house strict port helper, so bad ports crash with a stack or bind the wrong port, and bad timeouts start healthy then 502 every request #2823 covers the runtime parsing hazards of that bareNumber(); this issue
is only about guard coverage).
Why it matters
The guard is the only thing standing between the fleet and the #434/#435 failure mode —
a non-shell launch silently dialing the wrong or an empty port. Right now it is both
broken (red on main, masked by #1599) and blind (the newest proxy, claude-code, which
serves the default model, plus the router and the single Antigravity door, are exactly
the rows it doesn't check). A port edit in any one copy of those three passes CI today.
Acceptance criteria
-
bash .github/scripts/check-proxy-port-fallbacks.shexits 0 on main. - The guard's table matches the live fleet: the retired agy/antigravity-ls rows are
removed (or explicitly marked retired with the check adjusted), with a comment
pointing at the retirement note inhome/common/default.nix. - claude-code-proxy (18749, with jsonc check), opencode-route-proxy (18750,
script-only), and antigravity-direct (18751, with jsonc check) are covered; the
antigravity-direct fallback form is either recognized by the guard or the proxy
is migrated toparseProxyPortso the standard row applies. - Deliberately breaking one copy (e.g. the jsonc fallback for claude-code) makes
the guard fail naming that proxy — verified before merge. - No port numbers change; no proxy behavior changes beyond (optionally) the
antigravity-direct port-parse form.
Related: #866 (same script, opposite drift), #434/#435 (the failure mode the guard
exists for), #894 (claude-code-proxy wiring — the port copies exist; this issue is the
guard's coverage of them), #2823 (antigravity-direct bare Number() parsing),
#1599 (queued runners currently masking the red gate).
Activity
dezren39 commentedon Oct 31, 2026
🤖 Agent note · filed
dezren39 commentedon Oct 31, 2026
agent-note:v1 — state: fixed directly at Drew's order (2026-10-31), verified on merged main.
a924c9c1: retired agy/antigravity-ls rows removed (comment points at the retirement note in home/common/default.nix); claude-code (18749, jsonc), opencode-route (18750, script-only), and antigravity-direct (18751, jsonc) rows added; guard accepts the double-quoted parseProxyPort and unquoted Number(process.env…||N) spellings; literal-port check extended to 18750/18751.