Repository navigation
ci(release): release candidates ship and install their own flagship agent - #4939
Merged
Merged
Conversation
…gent Release candidates ran the Agent Hub's flagship (gaia 0.2.0), built on 2026-09-16 from code 445 commits older than v0.25.0-rc2, because the hub has no pre-release channel. Testers got an agent without tool approvals that downloads a 0.5 GB embedding model on first answer. Now an RC tag freezes the flagship from its own commit, attaches it to the GitHub pre-release, and the RC core installs it from there for `gaia init`, `gaia hub install gaia` and the Windows setup. The hub is never used as a substitute: a pre-release without its agent fails the install with the reason, and an RC whose freeze fails is never approved for publish. - The freeze matrix moves to build_flagship_sidecar.yml so the RC and the flagship release build the binary the same way; it can also be dispatched on its own to check main still freezes, with no publish. - `gaia init` on an RC replaces an installed flagship whose bytes are not the candidate's, so testers upgrading from an earlier candidate or from the hub's build get the right one.
Contributor
Skill audit
✅ All audited skills cleared the tier they claim. Per-finding detail is withheld here on purpose. Read it in the Security > Code scanning tab, or download the |
This was referenced Oct 11, 2026
2 tasks done
grtninja
pushed a commit
to grtninja/gaia
that referenced
this pull request
Oct 11, 2026
The Agent Hub still serves flagship agent 0.2.0, frozen on 2026-09-16, so `gaia init` and the Windows setup would hand 0.25.0 users an agent without tool approvals that pulls a 0.5 GB embedding model on first answer. Hub paths are immutable per version, so the 0.25.0 agent can only ship under a new number: this bumps it to 0.3.0 and cuts the changelog's Unreleased section as 0.3.0. The lock's sidecar hashes become placeholders, because they described 0.2.0's bytes; the Windows setup and npm installer refuse to bundle anything until the 0.3.0 release commits real ones. **Release order for 0.25.0 (manual, after this and amd#4939 / amd#4940 merge):** 1. Optional dry run: dispatch **Build flagship sidecar** on main to confirm it still freezes (nothing is published). 2. Publish terminal-hub 0.25.0 first. The flagship release refuses to run until the terminal-hub version its lock pins is on the hub, and that normally only happens on the core final tag. Dispatch **Publish Hub Components (R2)** on main with `dry_run` unchecked. Expect its agent-ui and Windows-setup legs to fail (no v0.25.0 GitHub release yet, no 0.3.0 flagship yet); they publish nothing. 3. Tag `agent-pkg-gaia-v0.3.0` on the merge commit and approve **Release Agent (gaia)** (scorecard gate, eval subset, then hub + npm). 4. Open a PR committing the `binaries.lock.json` that run prints under "regenerated lock". 5. Run `python util/check_flagship_release.py` on that merge commit. Cut the next RC and the final there. Code the binary is frozen from must not change in between, or the gate fails and the flagship needs 0.3.1. ## Test plan - [x] `python hub/agents/gaia/python/packaging/stamp_version.py --check` - [x] `pytest tests/unit/test_fetch_sidecar.py tests/unit/test_installer_artifacts.py tests/unit/test_hub_agent_platforms.py hub/agents/gaia/python/tests/test_gen_binaries_lock.py` - [x] `npx vitest run test/lock.test.ts test/fetch.test.ts` in `hub/agents/gaia/npm` (placeholders accepted, nothing fetchable) - [ ] After step 3, `curl -A gaia-release/1 https://hub.amd-gaia.ai/agents/gaia/manifest.json` shows `latest_version: 0.3.0`
grtninja
pushed a commit
to grtninja/gaia
that referenced
this pull request
Oct 11, 2026
…md#4949) `main` has failed `test_an_rc_builds_the_windows_setup_for_its_own_prerelease_only` since amd#4934 and amd#4939 both merged. amd#4934's test expected the RC Windows setup to bundle the `pinned` flagship, and amd#4939 deliberately switched it to `artifact`, the build that RC run freezes. Each PR passed on its own. The test now expects `artifact`. ## Test plan - [x] `pytest tests/unit/test_release_tag.py`: 43 passed, where `main` has 1 failure - [x] `python util/lint.py --black --isort`
kovtcharov
pushed a commit
to kovtcharov/gaia
that referenced
this pull request
Oct 12, 2026
…md#4940) A final core release could ship with a flagship agent built from much older code, and nothing noticed: `gaia init`, `gaia hub install gaia` and the Windows setup take the flagship from the Agent Hub and `binaries.lock.json`, which only the separate `agent-pkg-gaia` release fills. v0.25.0 was prepared with the hub still serving gaia 0.2.0, frozen from sources that differ from main in 383 files (no tool approvals, among others). Now a final `v*` tag fails up front unless the flagship it pins is published as the hub's latest with the lock's hashes and was frozen from the same sources as the release commit. Release candidates are exempt because amd#4939 has them build their own. <details> <summary>🔍 Technical details</summary> - `util/check_flagship_release.py` reads the flagship version from `gaia-agent.yaml` at the release ref and checks: the lock pins that sidecar version with real hashes; `agent-pkg-gaia-v<ver>` exists and nothing differs between it and the release ref over the frozen inputs (`src/gaia` minus `apps/`, the gaia and chat agent packages minus tests, eval data and `*.md`, and `setup.py`); the hub manifest lists that version as `latest_version` with matching sha256 for the three required platforms. - Runs in `publish.yml`'s `validate` (finals only) and in `release_components.yml`'s `version` job on a tag (that job publishes the Windows setup, which bundles the pinned flagship). The latter now checks out with `fetch-depth: 0` for the tag comparison. - Against today's main it fails with the 383-file list, which is the v0.25.0 blocker. Fixing that is a flagship release, not a code change: see the release skill's new pre-tag step. </details> ## Test plan - [x] `pytest tests/unit/test_check_flagship_release.py` (lock/hub/tag cases plus the workflow wiring) - [x] `python util/check_flagship_release.py --ref origin/main` fails, listing the files changed since `agent-pkg-gaia-v0.2.0` - [x] `actionlint` on both workflows; `util/check_workflow_ancestor_skip.py` clean; `python util/lint.py --black --isort` - [ ] After the flagship is re-released and its lock committed, `python util/check_flagship_release.py` passes on the commit to be tagged
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every release candidate so far has run the Agent Hub's flagship agent (
gaia0.2.0, built 2026-09-16, 445 commits before v0.25.0-rc2), because the hub has no pre-release channel. That build predates tool approvals and pulls a 0.5 GB embedding model on first answer, so RC testing never exercised the agent we are about to ship. Now an RC tag freezes the flagship from its own commit, attaches it to the GitHub pre-release, and the RC'sgaia init,gaia hub install gaiaand Windows setup install that build. The hub is never a substitute: a pre-release without its agent makes the install fail with the reason, and an RC whose flagship freeze fails is never offered for approval.🔍 Technical details
release_agent_gaia.ymlintobuild_flagship_sidecar.yml(workflow_call+workflow_dispatch); the flagship release now calls it, so both build the binary the same way. Dispatching it alone is a no-publish check that main still freezes.publish.yml:rc-flagshipis required byapprove-publishandgithub-releaseon an RC (finals unchanged).rc-windows-setuppassessidecar: artifact, a newwindows_setup.ymlmode that stages this run'sgaia-agent-win32-x64after re-checking its freeze hash.util/flagship_rc_assets.pyverifies every build and writesgaia-agent-release.jsonplusgaia-agent.yamlnext to the binaries.gaia.hub.prereleasemaps an RC core (0.25.0rc3) to its tag and reshapes the release file into a one-version hub manifest (0.3.0+v0.25.0-rc3).installer.install()uses it forgaiawhenever no explicit version is given, so the CLI, daemon, TUI and Agent UI paths all go through it. An explicit--versionstill means the hub.gaia initon an RC compares the installed flagship's sha256 with the candidate's and reinstalls on mismatch, so a tester who already has the hub's 0.2.0 gets replaced.sidecar:input changes.Test plan
pytest tests/unit/test_hub_prerelease.py tests/unit/test_flagship_rc_assets.py(end to end: packager output → RC resolver → the real installer, plus a refused hub fallback, malformed release files, init replace/keep, workflow wiring)pytest hub/agents/gaia/python/tests/test_freeze_required_modules.py tests/unit/test_hub_install_sidecar_contract.py tests/unit/installer/ tests/unit/test_init_command.py tests/unit/test_publish_workflow_contract.pyactionlinton the four workflows;util/check_workflow_ancestor_skip.pyclean forpublish.yml;python util/lint.py --black --isortgh release view v0.25.0-rcNlistsgaia-agent-*andgaia-agent-release.json; on a clean machinepip install amd-gaia==0.25.0rcN && gaia initinstalls0.2.0+v0.25.0-rcN(or the bumped version), and the Agent UI can approve a file write