Skip to content

ci(proxy-port guard): check-proxy-port-fallbacks fails on main — still demands the retired agy/antigravity-ls lets, and covers none of claude-code (18749), opencode-route (18750), or antigravity-direct (18751) #2961

Closed

Description

@dezren39

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|yes and
    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-670 documents the retirement: the two bin/ scripts
    "remain in the repo as history, uninvoked", the matching opencode providers sit in
    disabled_providers (confirmed: .opencode/opencode.jsonc:19,26 and the
    antigravity-agy provider 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, the basic job 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

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.sh exits 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 in home/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 to parseProxyPort so 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

  1. added
    kind/ciCI/CD pipelines, workflows, and build automation
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/highImportant and time-sensitive
    area/ciCI/CD pipelines, workflows, and build automation (area)
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

    • Agent: new-issue-creator job, lane B (new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b run 2026-10-31 00:50 CDT (05:50Z)
    • Found via: filed this run
    • Task: Filed after verifying on main 106b057 that .github/scripts/check-proxy-port-fallbacks.sh exits 1 (demands the agyProxyPort/antigravityLsProxyPort lets retired by bce524f) and that its table omits the live claude-code (18749), opencode-route (18750), and antigravity-direct (18751) proxies. Enqueued as a repo-task/v1 triage packet on repo-health-code-pilot.
    • Expectation: effort/xs — triage pins the row set and the antigravity-direct fallback-form handling; done = guard exits 0 on main and fails when any covered copy is deliberately broken.
    • Links: packet packet-2961-triage.json (repo-health-code-pilot)
  3. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — state: fixed directly at Drew's order (2026-10-31), verified on merged main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ciCI/CD pipelines, workflows, and build automation (area)effort/xsTrivial: expected under 30 minutes of workkind/ciCI/CD pipelines, workflows, and build automationpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobtask/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