release-cycle
Run the whole Senzing Bootcamp plugin release cycle, from open issues to a published release, as one resumable run: find (the four finding skills other than /dry-run in draft mode, duplicates merged),
Files2
View on GitHubSKILL.md.claude/skills/release-cycle/SKILL.md
GitHubRelease Cycle
A maintainer tool for developing the Senzing Bootcamp Claude Plugin (SBCP). Never invoked
during a bootcamp. It runs the development cycle listed in
docs/development.md, from finding issues to publishing, as
one run with two build passes and five checkpoints, so the maintainer
no longer carries one skill's output into the next by hand (#573).
⛔ (INV-300) Each skill's own file governs it, and this one restates none of their rules. This file says which skill runs when, with which arguments, and where the run stops. What a skill does once it runs, and every gate inside it, is in that skill's file.
The mechanical half is cycle.py beside this file, whose docstring states it: the
run state, the next step, each step's exact invocation, the stage-1 merge, the checkpoint
verdicts, the filing order, and the run's ledger entry. Run it from the repository root as
python3 .claude/skills/release-cycle/cycle.py. It reads and changes the drafts manifest only
through drafts.py, whose docstring is the one statement of
--draft <run-dir>, --file <run-dir> and the manifest (INV-368).
The stages
| Stage | Runs | Checkpoint |
|---|---|---|
| 0 Kickoff | the costly choices, asked in one batch | one batch of answers |
| 1 Find | /feedback-to-issues, /retrofit-from-public, /delegate-to-mcp-server and /production-readiness-audit, each with --draft <run-dir>, against one baseline SHA; duplicates merged |
A: approve the drafts as one list, then each skill runs with --file <run-dir> |
| 2 Refine | refine-github-issue (user level) in batch mode, on every open issue |
B: the pooled questions, then the edits and labels as one list |
| 3 Build | /unattended-issue-loop (user level), then /implement-github-issue (user level) for each leftover |
only for the leftovers |
| 4 Exercise | /dry-run all <module> --simulated <persona> --draft <exercise-dir>, or /dry-run 1,2 --draft <exercise-dir> (phases 1 and 2) when the kickoff declined the simulated walk, where <exercise-dir> is the run directory's exercise subdirectory, against a fresh baseline SHA; then stages 2 and 3 again for what it filed |
C: approve the drafts as one list |
| 5 Settle | the held after-filing steps; /review-invariants; then the user-level update-blueprint only if the BLUEPRINT.md header SHA is behind main |
D: the invariant verdicts |
| 6 Ship | /release, the maintainer's manual test, /propagate-to-public |
E: the version bump, the manual test, and the public repo's commit and push |
cycle.py's STEPS splits these stages into the steps it records, and cycle.py args <run-dir> <step> prints what each one runs.
How each skill runs
- Invoked as a skill:
/dry-run, the four finding skills other than/dry-run,/release,/propagate-to-public,/review-invariantsand the user-levelupdate-blueprint. - Followed from its file.
refine-github-issue,unattended-issue-loopandimplement-github-issue(user level, all three) setdisable-model-invocation: true, so a skill cannot invoke them. This skill reads and follows each one's~/.claude/skills/<name>/SKILL.mdin the main session, with the argumentscycle.py argsprints, asunattended-issue-loopalready does forimplement-github-issue. The maintainer's/release-cycleinvocation is the explicit invocation each of them requires, which is why this skill is slash-only too, and every gate inside each of them still applies. - In a subagent: the four finding skills other than
/dry-run, and/dry-runitself. Each is given arguments that answer every question it would otherwise ask, from the kickoff answers, and returns when its--draftrun ends:/feedback-to-issuesgets the feedback file as its path argument. A subagent never asks the maintainer anything. - In the main session: the kickoff, every checkpoint, and every skill that asks a question:
refine-github-issue, the leftovers'implement-github-issue,/review-invariants,/releaseand/propagate-to-public./unattended-issue-loop(user level) starts its own worker agents, as it always does.
Starting, and resuming
- The argument. A run name resumes that run. With no argument, run
cycle.py kickoff .claude/release-cycle/runsand ask whether to resume the unfinished run it lists or start one; never start or resume costly work from silence (INV-333). - The kickoff (stage 0), asked in one message: whether to run the simulated walk, and
if so which persona and which start module (
kickoffprints the last run's; recommend a later one); whetherunattended-issue-loopmerges or runs with--no-merge; the refine threshold, showing the standing 0.7 the maintainer chose on 2026-10-13 for them to confirm or change, which is the threshold "given in this session" refine requires; and, only whenkickoffprints anASKline because more than one feedback file exists, which one/feedback-to-issuestriages. With one feedback file or none, nothing is asked about it. Then record the answers, and the baseline SHA, which is HEAD:cycle.py init .claude/release-cycle/runs/<YYYY-MM-DD> --simulated yes|no [--persona P --module M] --merge yes|no --threshold P [--feedback PATH].initrefuses a missing answer. - Then repeat until the run finishes or stops:
cycle.py next <run-dir>names the first unfinished step and prints what it runs; run that; record it withcycle.py mark <run-dir> <step> done(or the commandnextnames for it). On a resumed run,nextsays which step it resumes at; say so to the maintainer.
⛔ (INV-375) A finished step is never run again, and a record that carries an issue number is never filed again. cycle.py mark refuses a step already done, clean or skipped, and refuses
one whose earlier steps are unfinished. drafts.py skips a record already filed. When a
skill's --file was started and not finished, cycle.py file-next prints a tracker search for
each approved record still without a number: run it, and drafts.py record-filed any match
before filing again, since a stop between gh issue create and record-filed leaves an issue
with no number written back. A merge is kept in state.json, so merge-drafts never merges a
draft twice, and a pull request unattended-issue-loop merged has closed its issue, so the loop
never sees it again.
Stage 1: Find, and checkpoint A
- Run the four
SUBAGENTlinescycle.py nextprints, in parallel, thencycle.py mark <run-dir> find-draft done. With no drafts at all,markrecords the stepcleanand skips stage 1's checkpoint, filing and build pass. cycle.py merge-drafts <run-dir>merges the drafts that cite the same sites into one record that lists every source skill, and prints the numbered list, each item with the skills that found it, and anOVERLAPline for each pair whose sites overlap but differ.- Checkpoint A. Ask for one yes for the whole list shown in one message (INV-314,
2026-10-13 note), under the conditions in
.claude/skills/feedback-to-issues/drafts.py→ "The batch yes". Each draft is at the path the list prints, and theOVERLAPpairs are shown side by side for the maintainer to settle. AnUPSTREAMdraft is not on the list: show it apart, and say this cycle never sends it. cycle.py verdicts <run-dir> --strike <numbers|none>sets each item's status withdrafts.py set. It refuses when a draft changed after the list was shown, or a draft was added that the list did not show: show the list again.- Filing.
cycle.py file-next <run-dir>names the next skill and prints its/<skill> --file <run-dir>; run it in the main session, since the skill asks for its yes; thencycle.py filed <run-dir> <skill>. Repeat untilfile-nextsays every skill has filed. ⛔ (INV-375) Hold each skill's after-filing step until stage 5./feedback-to-issuesStep 9 and/delegate-to-mcp-serverStep 9 write tracked files ("Stopping, and the ledger entry" says which), and stage 3 needs a clean tree.drafts.py afterprints the same lines then as now.file-nextprints aHOLDline for each such skill and records the hold, so file that skill's records and stop before its after-filing step. A merged draft rides on its record:file-nextwrites the record's issue number onto it, so its own skill skips it and its after-filing step names that issue.
If main moved since the baseline, --file refuses (#572). Before anything is filed,
cycle.py redraft <run-dir> --sha <HEAD> sets the old drafts aside and stage 1 drafts again at
the new HEAD; once something is filed, finish filing at the baseline instead.
Stages 2 and 3: Refine and Build
- Stage 2, checkpoint B. Follow
refine-github-issue's batch mode with the argumentscycle.py args <run-dir> refineprints. Its questions and its approval are checkpoint B. - Stage 3.
git status --porcelainmust be empty first: if it is not,cycle.py mark <run-dir> build-loop stopped --note "<the files>", name the files, and stop; the run resumes there once the tree is clean. Then followunattended-issue-loopwith the argumentscycle.py argsprints. If its preflight fails, report the allow rule it names, mark the step stopped, and stop. Then followimplement-github-issuefor each issue its handoff leaves open; the run stops wherever that skill waits for the maintainer.
Stage 4: Exercise, and checkpoint C
Run the SUBAGENT line cycle.py next prints, then cycle.py mark <run-dir> exercise-draft done --sha <HEAD>; the fresh baseline's drafts go to <exercise-dir>, a manifest of its own.
With a simulated walk the line is /dry-run all <module> --simulated <persona> --draft <exercise-dir>; when the kickoff declined the walk it is /dry-run 1,2 --draft <exercise-dir>,
/dry-run's phases 1 and 2 with no walk.
Report the walk as /dry-run reports it (INV-369), including the module a stalled walk reached.
Then merge-drafts, checkpoint C, verdicts and the filing as in stage 1, each with --stage exercise, and stages 2 and 3 again for the issues stage 4 filed (exercise-refine,
exercise-build-loop, exercise-build-leftovers). With no drafts, mark records the stage
clean and skips its build pass.
Stages 5 and 6: Settle and Ship
- The held after-filing steps. Before checkpoint D,
cycle.py nextprints, for each skill whose after-filing step was held at its--file,drafts.py after <drafts> --skill <skill>and that skill's after-filing step: run both, thencycle.py after-filed <run-dir> <skill>, which refuses a step already run, so a resumed run never runs one twice. A stop before stage 5 lists each held step, with its lines, in the run's ledger entry. - Checkpoint D. Invoke
/review-invariants; its verdicts are the maintainer's. Thencycle.py args <run-dir> blueprintsays whether the user-levelupdate-blueprintruns, from BLUEPRINT.md's header SHA. - Checkpoint E. Invoke
/releasewith no argument, so it asks for the bump. Ask the maintainer for the manual test, and mark its outcome. Invoke/propagate-to-public, which stops at the public working tree.
Guardrails
- It never signs off an invariant: the verdicts are the maintainer's, at checkpoint D (INV-365).
- It never chooses the version bump:
/releaseasks (INV-333). - It never commits or pushes the public repo:
/propagate-to-publicstops at its working tree, and the maintainer commits and pushes it. - It never sends
submit_feedback. An upstream draft is recorded as not sent. - It never applies
unattended-okoutside refine's approved batch (INV-318, 2026-10-13 note). - It never merges unless the kickoff answer says to: a "no" runs
unattended-issue-loopwith--no-merge. - Each record it creates is created by the skill that owns it, under that skill's gate (INV-314).
- It never answers a gate on the maintainer's behalf. A skill waiting for the maintainer is where the run waits, and it never edits permission settings.
Stopping, and the ledger entry
⛔ (INV-375) This skill writes nothing under specs/ before stage 5 (the held after-filing steps and
checkpoint D), and its own entry only at a stop. This is the one statement of where a run
writes; every other site cites it (INV-300).
- The kickoff and stages 1, 2 and 4 write only the gitignored run directory, which holds every outcome and
draft, and
/dry-run's disposable scratch project, the one write outside it that INV-368 allows. A simulated walk's sandbox is that scratch project, removed when the walk ends, and its reports go to the run directory. - Stage 3, and its second pass after stage 4, starts on a clean tree, for
unattended-issue-loop's preflight. Each issue's commits, its own ledger entry among them, are on its issue branch, written by the skill that builds it under that skill's file. - Stage 5 runs the held after-filing steps (
/feedback-to-issuesStep 9 archives underfeedback/;/delegate-to-mcp-serverStep 9 appends tospecs/mcp-coverage.jsonl), then checkpoint D's/review-invariants, which editsspecs/INVARIANTS.mdand the ledger, andupdate-blueprintif it runs. Stage 6's skills write what their own files say. - At a stop, this skill writes its one entry, as below.
When the run stops (the maintainer ends it, or a step is marked stopped) or finishes, write its
one entry: cycle.py ledger <run-dir> --write specs/IMPLEMENTED.md. It records each step's outcome and every unresolved draft, marked not
filed (INV-317's 2026-10-13 note), replaces the run's entry if one is there, and is left
uncommitted for the maintainer (INV-310). On a resumed run, next first prints ledger --withdraw:
run it, since the entry is regenerated from state.json at the next stop. It refuses an entry
that was edited or committed, which then stays.