Repository navigation
fix(release): nightly driver runs Heart's rehearsal-ancestry check - #722
Merged
Merged
Conversation
Step 4c built the readiness snapshot without heart.checks.rehearsal_ancestry, so any library main that moved during the ~1h validation window read as "ancestry unproven" and the release-ci gate returned STALE, blocking the nightly on 2026-11-23/24/25 despite M2.4 (PyAutoHands#337). Run the check after the ingest and before aggregate, non-fatal like ci_status, and pin the order with a test. Closes #721 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
The scheduled-nightly release driver built its Heart readiness snapshot (step 4c) without running
heart.checks.rehearsal_ancestry. Whenever a librarymainmoved during the ~1h validation window, Heart's release-ci gate could not prove the rehearsed commits were ancestors ofmainand returned STALE ("source moved since rehearsal (…; ancestry unproven)"). That blocked the nightly on 2026-11-23, 11-24 and 11-25 (45155720996, 45390127904, 45599731441), and the window anchor has been stuck at 2026-11-22. Under M2.4 (PyAutoHands#337) a forward-movedmainshould keep the rehearsal fresh.This runs the check after the validation ingest and before
state.aggregate(), as Heart's owntick.shalready does. A failure is logged and the run continues, likeci_status; the moved repos then stay unproven (STALE), so the gate is never looser than today.Closes #721
API Changes
None. Driver-internal change in
agents/conductors/release/nightly.shplus one test.See full details below.
Test Plan
bash -n agents/conductors/release/nightly.shtest_nightly_proves_rehearsal_ancestry_before_aggregatepasses on this branch and fails againstmain'snightly.shpytest -n auto)HEART_STATE_DIR=<fixture> python3 -m heart.checks.rehearsal_ancestrywith the 2026-11-25 pattern (rehearsed SHAs from before the mid-window merges, currentmainHEADs) wroterehearsal_ancestry.json: PyAutoFit ancestor, ahead by 3; PyAutoLens ancestor, ahead by 8ahead_byinstead of "ancestry unproven"Heart dev gate (scoped to PyAutoBrain): GREEN. Non-blocking reasons shown: PyAutoLens local checkout 2 commits behind origin; workspace manifest drift (1 mismatch); test run status unknown; release validation incomplete for current source; release push credential check 72h old.
Full API Changes (for automation & release notes)
Removed
Added
heart.checks.rehearsal_ancestry)Migration
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code