Repository navigation
fix(hub/gaia): commit the real binaries.lock.json hashes from v0.2.0's release - #3932
Conversation
…s release release_agent_gaia.yml regenerates this lock with real sha256/size values at publish time and ships that regenerated copy inside the npm tarball, but has no mechanism to commit it back to main (no workflow in this repo pushes to main directly) -- so the checked-out source tree kept the committed PENDING-replace-with-real-sha256 placeholders indefinitely. That blocked the TUI installer builds in release_components.yml: they read this committed file directly, not the published npm package's internal copy, so fetch_sidecar.py correctly refused to bundle an unverifiable sidecar on every platform even after v0.2.0 published successfully. Values below are exactly what tonight's agent-pkg-gaia-v0.2.0 run generated, verified via its own atomicity gate (a live GET + re-hash against each component's public URL, both lanes) before the job reported success.
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 |
Approve with suggestionsThis replaces the ten placeholder hashes in the flagship agent's binary lock with the real ones from the v0.2.0 release, which unblocks the desktop-installer builds that were failing on every platform. I independently re-downloaded three of the ten binaries from the hub and re-hashed them — the committed values are correct, so the substance of the fix is sound. Two things worth handling, neither of which blocks the bytes in this PR:
Real-world evidenceAn evidence bundle was produced for this change and it's thorough. It built the real $ node /tmp/gaia-before/dist/cli.js fetch --component tui --cache-dir /tmp/gaia-before-cache
[gaia] PlatformError: binaries.lock.json has a placeholder sha256 for tui/'linux-x64'
(PENDING-replace-with-real-sha256), so no verifiable binary is published for it in this
build. Fetch is blocked so an unverifiable binary can never be trusted. …
EXIT=1
$ node dist/cli.js fetch --component sidecar --sidecar-dir /tmp/gaia-sidecar
[gaia:fetch] installed verified sidecar -> /tmp/gaia-sidecar/gaia-agent
{ "ok": true, "binaries": [ { "component": "sidecar", "platform": "linux-x64",
"sha256": "6c68a22c25954ea3c8d2a0a541bc04eba2401281d2a2b6448007983acd050a00",
"cached": false } ] }
EXIT=0All ten lock entries were fetched and hash-verified there, the fetched TUI ran ( I re-verified three entries myself, straight from the hub rather than from the bundle: gaia-linux-arm64 31d9e1fee15e4a21e677ca7abb707fcf08257d5e7f50f1baa71bc7159335c170 17105058
gaia-darwin-arm64 dc334e89cebefaa2cc5117942ccbc4dc391034c3013ebf02d2bebf87f5e99a5a 17499282
gaia-agent-darwin-arm64 fbe526e7eb044a2ce633fbd487a1ae75001683eff190d8359eabf9ccc7196069 88311472All three match the committed hashes and sizes exactly. Rendered TUI pixels and any real LLM turn were marked pending the strix-halo lane, which is fine — this change has no UI surface. The evidence supports the approve verdict. 🔍 Technical details🟡 Docs claim the committed lock always holds placeholdersFour files state the source-tree invariant this PR reverses. Same claim needs the same correction in 🟡 A version bump leaves the lock internally inconsistent
The release lane itself is still safe: the atomicity gate in Worth a follow-up issue rather than expanding this PR: either have 🟢 Stale comment in the release workflow
Strengths
|
amd#5447) Every flagship agent release left `binaries.lock.json` on main stale, because the release only shipped the real hashes inside the npm tarball. The installer build and the final core-release check read the committed copy, so both broke until someone pinned the hashes by hand (amd#3932, amd#5341). Now the release opens that PR itself once it publishes, so cutting agent 0.3.1 ahead of v0.25.1 needs a merge, not a hand edit. Re-running a release is safe: it never opens a second PR, does nothing when main already matches, and refuses a placeholder lock or one for a different flagship version. A token that can't push or open PRs fails the job and names the missing permission. The installer and release-check errors now point at that PR, and the release docs describe it. Closes amd#3949 ## Test plan - [x] `python -m pytest tests/unit/test_open_flagship_lock_pr.py tests/unit/test_fetch_sidecar.py tests/unit/test_check_flagship_release.py` (56 passed). The new tests cover a re-run with the PR already open, hashes already on main, placeholder and wrong-version locks, main on another flagship version, and tokens without push or PR permission. - [x] Release-workflow suites (`test_agent_npm_publish_workflow`, `test_flagship_rc_assets`, `test_installer_artifacts`, `test_eval_tag_gate`, `test_gen_binaries_lock`) pass - [x] `actionlint` on `release_agent_gaia.yml`, `python util/lint.py --all` (workflow trigger and ancestor-skip checks pass) - [ ] First real run: `agent-pkg-gaia-v0.3.1` opens `chore(release): pin flagship agent 0.3.1's published hashes`
…o date (amd#6941) The flagship agent's docs still said 0.1.1, and told maintainers that `PENDING` placeholder hashes are the normal state of `binaries.lock.json` between releases. Since amd#3932 the committed lock always carries real hashes, because a placeholder there breaks the desktop-installer build on every platform, so following the old text would bring that breakage back. The version labels now say 0.3.5, and the hash policy says a placeholder only comes from a hand-edited lock. Closes amd#3953 <details> <summary>🔍 Technical details</summary> - Already fixed on main before this PR: the CHANGELOG entries and the tool count (105 everywhere). - The SPEC §2.1 schema example now matches the committed lock (sidecar 0.3.5, TUI 0.25.0). - The guide's limitations still hold on 0.3.5, so only the heading changed: `skill_sets` is still commented out in `gaia-agent.yaml`, and a one-shot `/query` still refuses a gated tool. - The SPEC version line is not stamped by `stamp_version.py`, so it will drift again at the next release. I can add an optional stamp rule in a follow-up if you want one. </details> ## Test plan - [ ] `python util/check_doc_links.py --internal-only` and `python util/check_doc_versions.py` pass - [ ] `grep -rn "Between releases" hub/agents/gaia/npm` returns nothing - [ ] The versions in the SPEC §2.1 example match `hub/agents/gaia/npm/binaries.lock.json`
The TUI desktop installer builds in `release_components.yml` failed on every platform, even after `agent-pkg-gaia-v0.2.0` published successfully tonight — `fetch_sidecar.py` correctly refused to bundle a sidecar it couldn't verify, because the committed `binaries.lock.json` still had `PENDING-replace-with-real-sha256` placeholders.
Root cause: `release_agent_gaia.yml` regenerates this lock with real hashes at publish time and ships that copy inside the npm tarball, but nothing in this repo pushes commits to `main` — so the source tree's committed lock never gets the real values. This PR commits them by hand, using the exact values tonight's release generated and verified (its own atomicity gate re-fetches and re-hashes every entry against its public URL before the job reports success).
Test plan