Repository navigation
feat: a release builds the rehearsed commits (M2.4, #337) - #339
Merged
Merged
Conversation
release.yml no longer reads `main` for what to publish. A new
resolve_commits job settles the library commits once, before any leg runs,
and every library checkout uses its output:
- rehearsal: pin each library's main HEAD at run start (or build the
commit_shas input verbatim); rehearsal.json in the
testpypi-rehearsal-version artifact now records them as commit_shas.
- live: resolve from that rehearsal record (rehearsal_run_id input, or a
recent rehearsal matching the commit_shas input). Refuses before
building when no rehearsal is named, the run has no record, or the
record and manifest disagree. main having moved is reported, not
refused: the rehearsed commits ship.
The release job verifies HEAD == rehearsed before tagging and confirms
the tag on origin peels to it ("identical"). The library Colab URL bump
is committed on the released commit and pushed as release/<version>,
never main. pre_build.sh takes and passes the rehearsal run id, refusing
before side effects without one.
Logic in autohands/rehearsed_commits.py (library set from
config/workspaces.yaml), tests in tests/test_rehearsed_commits.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
review) Review findings on 0b74050: 1. A commit_shas input could pin any fetchable commit (a PR head, a side branch) and a live release would then publish it. verify_checkout now requires `git merge-base --is-ancestor HEAD origin/main` and refuses a clone without origin/main. Every rehearsal leg (release_test_pypi, now full history) runs it too, so an off-main commit never becomes a rehearsal record. The lag message counts HEAD..main, which is exact once ancestry holds. 2. Nothing merged release/<version> back to main. bump_library_colab_urls now opens, or updates, one PR per library ("release <version>: Colab URL bump") with the bot App token (pull-requests: write). A gh failure is a warning; the release does not fail. docs/internals.md gains the caller contract the Brain side follows: input names, rehearsal.json at the testpypi-rehearsal-version artifact root, its schema, and feeding its commit_shas to `pyauto-heart validate`. Workspace checkouts are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, Brain files (#337 re-review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 13, 2026
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.
Summary
Programme M2.4. Closes #337. A release publishes exactly the commits that passed rehearsal, even if
mainmoved since.release.yml:rehearsal_run_idandcommit_shas;resolve_commitsreads the rehearsal record (rehearsal.jsonintestpypi-rehearsal-version);origin/main;The Colab bump commits on top of the release and goes to
release/<version>with a PR into main, never straight to main. The caller contract is indocs/internals.md. Its partners are Brain#614 (nightly and manual door) and Heart#340 (rehearsal ancestry), merging in the same sitting.Test plan
test_tombstonefailures are pre-existing and environmental.Heart RED override (development only)
Authorization from the live human at the programme M2 gate, 2026-11-13: "Override + merge all". This authorizes the development-only RED override for PyAutoLabs/PyAutoBrain#614, PyAutoLabs/PyAutoHeart#340 and #337 and gives the merge command (order Mind, Hands, Brain, Heart), conditional on every required check being green within the turn.
Heart verdict RED (
pyauto-heart readiness, verdict ts 2026-11-12T22:43:14Z). The current RED reasons, verbatim: "PyAutoNerves: 4 commit(s) behind origin"; "PyAutoFit: 2 commit(s) behind origin"; "PyAutoArray: 4 commit(s) behind origin"; "PyAutoGalaxy: on branch feature/galaxy-guide-rebalance (not main)"; "PyAutoGalaxy: 1 uncommitted source change(s)"; "PyAutoLens: 1 uncommitted source change(s)"; "PyAutoLens: 45 commit(s) behind origin"; "PyAutoCTI: 4 commit(s) behind origin"; "install verification FAILED (testpypi; checks F)"; "release validation FAILED (stage integrate)"None of these is in PyAutoMind, PyAutoBrain, PyAutoHeart or PyAutoHands. Branch gates passed: tests, independent review CLEAN after fix rounds, smoke not applicable. This PR does not fix Heart, and Heart stays RED for release.
Tier: glance. Merge mode: auto-merge on green if the Witness passes, with a post-merge summary. A RED override additionally needs the human's merge command, which was given in the same turn.
🤖 Generated with Claude Code