From 4486dc5e8901427d55a96c1f70950f4445c017f9 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 3 Sep 2026 16:13:45 -0400 Subject: [PATCH] review_release: clear the pending-release chain on a successful live run (#392) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the one step in the organism that establishes a release actually published — pre_build dispatches and /build coordinates, neither knows the outcome — so it is where the merged-but-unreleased chain is cleared: drop the `pending-release` label from the library's merged PRs, then delete the matching `pending-release:` / `release-gate:` lines from PyAutoMind's rows and records. Only for a live run whose release jobs succeeded. A release that was dispatched is not a release that published, and nothing else may clear these keys. Schema and division of labour: PyAutoMind/REFERENCE.md "The pending-release chain". Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_013HsZA1ufn3msgPiDFxEXa6 --- skills/review_release/review_release.md | 37 ++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/skills/review_release/review_release.md b/skills/review_release/review_release.md index 212d4d46..94158fee 100644 --- a/skills/review_release/review_release.md +++ b/skills/review_release/review_release.md @@ -95,7 +95,8 @@ only job conclusions and details present in the selected run's logs. Claude, depending on the requested mode). Manual releases remain `human-required`. - **Live run**: report whether that release completed or failed. Never offer to - dispatch another release from review of a live run. + dispatch another release from review of a live run. **On a live run that + completed successfully, clear the pending-release chain** — see step 6. - **Unknown mode**: investigate the job graph. Do not release. - **STALE**: list the exact evidence Heart requires refreshing and route to the corresponding validation command. Do not release. @@ -111,3 +112,37 @@ workspace. If the user chooses investigation, show the full traceback, relevant source, recent file history, and correlated PR diff until the failure has a defensible locus. Heart remains the final readiness authority after any fix or refresh. + +### 6. Clear the pending-release chain (successful live run only) + +This is the one step in the organism that establishes a release **actually +published** — `pre_build` dispatches, `/build` coordinates, and neither knows +the outcome. So this is where the merged-but-unreleased chain is cleared. Run +it only for a **live** run whose `release` / `release_workspaces` jobs +succeeded; never for a rehearsal, an unknown mode, or a failed live run. + +For each library the run published: + +1. **GitHub — the source of truth.** Drop the `pending-release` label from + every merged PR of that library carrying it: + + ```bash + gh pr list --repo PyAutoLabs/ --state merged --label pending-release \ + --json number --jq '.[].number' + gh pr edit --repo PyAutoLabs/ --remove-label pending-release + ``` + +2. **Mind — the link.** Delete the matching `- pending-release: @` + lines from `PyAutoMind/active.md` rows and from `complete/` records, and any + `- release-gate: ` line on a workspace task the release unblocks (tell + the user which tasks those are — they are now free to merge). The schema and + the division of labour are `PyAutoMind/REFERENCE.md` → "The pending-release + chain". + +3. **Confirm.** `python3 PyAutoMind/scripts/lifecycle.py check` must report no + `pending-release` warning for that library, and the regenerated + `dashboard.md` must no longer list it under **Pending release** + (`pyauto-brain intake --apply dashboard`, then push Mind). + +A release that was dispatched is not a release that published: nothing else may +clear these keys.