From 078acd79675cbf78eb495935636f93f1afbc57ed Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 3 Sep 2026 17:18:22 -0400 Subject: [PATCH] pre_build: open the Heart freeze window before dispatching the release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dispatching `release.yml` opens a validation window: from there until the run's evidence is ingested, the library `main` branches must not move, because a merge landing inside it invalidates the evidence and restales the rehearsal (~75 minutes, measured 2026-08-29). This is the call site that says so — `pyauto-heart freeze --set "release validation" --until 3h --set-by pre-build`, one step before the dispatch. PyAutoHeart owns the flag (PyAutoHeart#196); Build only opens the window it is itself opening. It clears three ways — `pyauto-heart validate --ingest` (the evidence landing is the end of the window), `/review_release` when it triages the run, or expiry — so nothing here has to remember to take it off. Skill prose only: no change to `bin/autohands pre_build`, and where `pyauto-heart` is not on PATH the step is skipped and said so. It is a signal, not a precondition. The scheduled nightly release run is deliberately NOT wired: it runs unattended in CI, where this dev-box state file does not exist. Documented as such in PyAutoHeart's REFERENCE.md rather than edited blind. Refs PyAutoLabs/PyAutoHeart#196. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_013HsZA1ufn3msgPiDFxEXa6 --- skills/pre_build/pre_build.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/skills/pre_build/pre_build.md b/skills/pre_build/pre_build.md index 9c42ee61..1557cc8e 100644 --- a/skills/pre_build/pre_build.md +++ b/skills/pre_build/pre_build.md @@ -44,6 +44,32 @@ user**. Then ask the user for the minor version number (default: 1). +### 1b. Open the freeze window + +Dispatching the release workflow opens a validation window: from here until the +run's evidence is ingested, the library `main` branches must not move, because a +merge landing inside the window invalidates the evidence and restales the +rehearsal (~75 minutes, measured 2026-08-29). Say so, once, where the rest of +the organism can see it: + +```bash +pyauto-heart freeze --set "release validation" --until 3h --set-by pre-build +``` + +PyAutoHeart owns the flag (`PyAutoHeart/REFERENCE.md` → "The release freeze +window"); this is the call site that opens it. `--until` is mandatory and is a +backstop, not a promise — pick a duration comfortably longer than the run you +are dispatching, since an over-long window is cleared by the ingest anyway +while a short one silently thaws mid-validation. It clears itself three ways: +`pyauto-heart validate --ingest` (the evidence landing *is* the end of the +window), `/review_release` when it triages the run, or expiry. + +While it is set, `/prm` refuses to merge a **library** repo's PR (`--thaw` +overrides, logged) and `pyauto-brain vitals` and `batch collect` carry the +line. Workspace and organ repos are not gated — this skill's own workspace +pushes below are unaffected. Where `pyauto-heart` is not on PATH, skip this +step and say so; it is a signal, not a precondition. + ### 2. Run `autohands pre_build` Invoke the bash entry point directly: