From b1b82261cc5027c77d3d45c1fb216914e0909963 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 7 Oct 2026 09:50:46 +0100 Subject: [PATCH] review_release step 6: clear the pending-release chain with one verb Step 6 now runs `lifecycle.py clear-released --version ` (dry run, then `--apply --remove-labels`), which clears only the PRs the release tag contains. The old recipe dropped the label from every merged labelled PR, including ones merged after the dispatch, and left the Mind half to hand edits that four releases (2026.9.27.1 .. 2026.10.4.1) skipped. Co-Authored-By: Claude Opus 5.5 --- skills/review_release/review_release.md | 56 +++++++++++++++---------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/skills/review_release/review_release.md b/skills/review_release/review_release.md index b5bb95e9..e89fd6d9 100644 --- a/skills/review_release/review_release.md +++ b/skills/review_release/review_release.md @@ -142,28 +142,40 @@ 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). +One verb does the whole sweep, from the PyAutoMind checkout (or a Mind +worktree — the shared canonical checkout may hold another session's edits): + +```bash +python3 scripts/lifecycle.py clear-released --version # dry run: the plan +python3 scripts/lifecycle.py clear-released --version --apply --remove-labels +``` + +`` is the run's published version (the bare tag, e.g. `2026.10.4.1`; +`latest` resolves the newest GitHub release). It clears **only what the tag +contains** — a PR whose merge commit is an ancestor of tag `` in its +library — never "every merged labelled PR", because PRs merged after the +dispatch are still unreleased: + +1. **Mind — the link.** Deletes those `- pending-release: @` + lines from `active.md` rows and `complete/` records, drops a record's + `- release-gate: ` once none of that library's links remain, and + regenerates the dashboard (`--apply`). +2. **GitHub — the label.** Drops the `pending-release` label from every + released published-set PR, including labelled PRs the ledger never linked + (`--remove-labels`; PyAutoHands' release workflow normally already did this + half after the publish, so expect mostly no-ops). +3. **Workspace gates.** A `- release-gate: ` on a live `active.md` + workspace row is the human's to lift: tell the user which tasks the release + unblocks (they are now free to merge) and delete those lines. +4. **Confirm and push.** `python3 scripts/lifecycle.py check` (add `--network` + to have it ask GitHub) must report no `pending-release` line the release + contains, and the regenerated `dashboard.md` must no longer list those PRs + under **Pending release**. Commit and push Mind. + +Only the published set carries the chain (PyAutoNerves, PyAutoFit, PyAutoArray, +PyAutoGalaxy, PyAutoLens — `PUBLISHED_REPOS` in `scripts/lifecycle.py`). The +schema and the division of labour are `PyAutoMind/REFERENCE.md` → "The +pending-release chain". A release that was dispatched is not a release that published: nothing else may clear these keys.