Repository navigation
ci(release): open a PR pinning the flagship's published hashes on main - #5447
Conversation
The flagship release recomputed the real binary hashes but only shipped them inside the npm tarball, so the committed binaries.lock.json stayed stale and the installer build and the final core-release check failed after every flagship release until someone pinned the hashes by hand (#3932, #5341). release_agent_gaia.yml now ends with a pin-lock job that commits the verified lock to release/flagship-lock-v<version> and opens a PR against main. Re-runs never open a second PR, do nothing when main already matches, and refuse a placeholder lock or one for a different flagship version. A token that cannot push or open PRs fails the job naming the missing permission. The installer and release-check errors now name that PR as the fix, and the release docs describe it instead of the manual step. Closes #3949
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 |
|
Verdict: Approve with suggestions After every flagship agent release, someone had to hand-commit the published hashes to main before the installer build and the final core release would pass. This PR has the release open that PR itself. The re-run guards look right: it never opens a second PR, does nothing once main already matches, and refuses a placeholder lock or one built for another version. I found nothing blocking. One optional fix: the bot PR asks nobody to review it, so it can sit unnoticed while the next core release waits on it. The Lemonade bump workflow requests reviewers on its bot PR; doing the same here would close that gap. Real-world evidenceN/A: CI/release tooling only. No evidence bundle was produced, and the new job only runs inside a real 🔍 Technical detailsIssues 🟢 The lock PR requests no reviewer or label ( 🟢 Merge-queue assumption is unverified. The PR body and the generated PR text say "the merge queue runs them". That only holds if the queue accepts a PR whose required checks never ran on its Checked and fine
Strengths
|
A PR opened with the GITHUB_TOKEN notifies nobody and starts no CI, so it could sit unnoticed while the next core release waits on it. It now carries the release label and requests the same reviewers as the Lemonade bump PR.
|
Both suggestions are handled.
|
Every flagship agent release left
binaries.lock.jsonon 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 (#3932, #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 #3949
Test plan
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.test_agent_npm_publish_workflow,test_flagship_rc_assets,test_installer_artifacts,test_eval_tag_gate,test_gen_binaries_lock) passactionlintonrelease_agent_gaia.yml,python util/lint.py --all(workflow trigger and ancestor-skip checks pass)agent-pkg-gaia-v0.3.1openschore(release): pin flagship agent 0.3.1's published hashes