Skip to content

fix(release): nightly driver runs Heart's rehearsal-ancestry check - #722

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/nightly-rehearsal-ancestry
Nov 25, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/nightly-rehearsal-ancestry

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

The scheduled-nightly release driver built its Heart readiness snapshot (step 4c) without running heart.checks.rehearsal_ancestry. Whenever a library main moved during the ~1h validation window, Heart's release-ci gate could not prove the rehearsed commits were ancestors of main and 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-moved main should keep the rehearsal fresh.

This runs the check after the validation ingest and before state.aggregate(), as Heart's own tick.sh already does. A failure is logged and the run continues, like ci_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.sh plus one test.
See full details below.

Test Plan

  • bash -n agents/conductors/release/nightly.sh
  • New test_nightly_proves_rehearsal_ancestry_before_aggregate passes on this branch and fails against main's nightly.sh
  • Full Brain suite: 2506 passed, 1 skipped (pytest -n auto)
  • HEART_STATE_DIR=<fixture> python3 -m heart.checks.rehearsal_ancestry with the 2026-11-25 pattern (rehearsed SHAs from before the mid-window merges, current main HEADs) wrote rehearsal_ancestry.json: PyAutoFit ancestor, ahead by 3; PyAutoLens ancestor, ahead by 8
  • After merge: the next scheduled nightly with mid-window merges reports ahead_by instead 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

  • None

Added

  • None (nightly step 4c now invokes PyAutoHeart's existing heart.checks.rehearsal_ancestry)

Migration

  • None

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

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>
@Jammy2211
Jammy2211 merged commit 8b7a3ce into main Nov 25, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/nightly-rehearsal-ancestry branch November 25, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(release): nightly driver never runs Heart's rehearsal-ancestry check

1 participant