Agent controller install.sh finds no release: first page is all prereleases, stable release is unsigned, --version rejects prereleases
メンテナーはふだん 1 日以内に返信
@GauravPatil2515 がすでに取り組んでいます。
2026年11月13日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 40/100
調査の方向性
Start in console/packages/agent-controller/install.sh: the release lookup that requests /releases?per_page=100 without paging, the prerelease skip, and the --version check that rejects anything containing characters outside digits and dots. The fix needs the script to find the newest signed stable release across pages and to accept signed prerelease versions like x.y.z-rc.N. Publishing a signed stable release needs maintainer access, so confirm that with the maintainers before starting.
索引モデルが issue の本文から書いたものです。
説明
What happens
The documented one-line install of the headless agent controller fails on every machine:
curl -fsSL https://raw.githubusercontent.com/sandbox-quantum/switch/main/console/packages/agent-controller/install.sh | sh -s -- --server <server> --code <code> --name <name>
switch-agent-controller install: sandbox-quantum/switch has no switch-agent-controller release yet.
Why
Three things in console/packages/agent-controller/install.sh combine:
- Only the first page of releases is read. The newest release is looked up with
GET /repos/sandbox-quantum/switch/releases?per_page=100, with no paging. Dev builds ofmainare published as controller prereleases several times an hour, so the newest 100 releases are all prereleases (95 of them controller dev builds and release candidates at the time of writing), and the script skips prereleases. The stable releases are further back and never seen. - The only stable controller release is unsigned.
switch-agent-controller-v0.31.0shipsswitch-agent-controller-0.31.0.tgzbut no.sig, so even when it is found, or named with--version 0.31.0, the installer refuses it: only signed releases are installed. - Signed prereleases cannot be requested. Release candidates are signed (
switch-agent-controller-v0.32.0-rc.5ships its.tgz.sig), but--versionaccepts onlyx.y.z(*[!0-9.]*is refused), so--version 0.32.0-rc.5is rejected before any download.
So there is currently no way to install the controller with the script.
Expected
The script installs the newest signed stable release, and --version can name any signed release, including a prerelease.
Suggested fix
- Find the newest stable controller release without depending on the first page: page through
/releasesuntil a match is found, or list matching tags (/git/matching-refs/tags/switch-agent-controller-v) and fetch releases by tag. - Let
--versionaccept a prerelease version (x.y.z-rc.N,x.y.z-dev.N.gSHA), still requiring a valid signature. - Publish a signed stable controller release (or add a
.sigto the next one), so the default path has something to install.
Workaround
Switch Console sets up a managed machine on the computer it runs on, so agents can run there without the headless controller, at the cost of stopping when Console quits.
- 主要言語
- Python
- スター
- 4.5k
- フォーク
- 348
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 287
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sandbox-quantum/switch のほかの issue
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskオープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
sandbox-quantum/switch#2163 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
sandbox-quantum/switch#2162 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
sandbox-quantum/switch#2159 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
sandbox-quantum/switch#2157 ·
メンテナーはふだん 1 日以内に返信
-
Get-Switch-Console link points at a path that only resolves via a redirect対応中かも @Darshan3690 が 3 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
sandbox-quantum/switch#1998 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
sandbox-quantum/switch の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mohanraj00/entelos#200 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
sweep
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
bketelsen/truenas-mcp#77 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
openedx/xblock-lti-consumer#765 ·
メンテナーはふだん 1 日以内に返信
-
bug pydanty:is-working
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
pydantic/pydantic-ai#13939 ·
メンテナーはふだん 1 日以内に返信