name: release description: Prepares a release from finished tasks - what is in it, checks, version and notes, the deploy or publish step and how to undo it. The live step stays with the user unless the project says otherwise. argument-hint: "[version or name]" disable-model-invocation: true
Prepare release $ARGUMENTS. Stop at the first step that fails and report it.
- Read the delivery section of
<workflowDir>/PROJECT_PROFILE.md(how this project ships: a deploy, a package publish, an app-store build, or a tag),<workflowDir>/risk.md, and the DevOps playbook (../../departments/devops/playbook.md); its checklist applies throughout. - List what is in the release: the commits since the last release tag, matched to their
handoff files. Any commit with no finished handoff file, or a handoff whose review verdict
is not PASS, is a finding: stop and report it.
If
python3 ../../hooks/dw.py skill engineering deploy-checklist(run from this file's folder) prints a path, read that file and use it for steps 3 to 7. - Run the project's full checks once, on the exact commit to be released, and record the summary lines. If the project has a build, build it and record the result.
- Write the release note (the project's changelog file if it has one, else
<workflowDir>/releases/<version>.md): what changed in a user's words, anything a user or operator must do, and known issues. Take it from the handoff files' goals, not from commit messages. - Write the rollback: the exact step that returns to the previous version, and anything in this release that a rollback does not undo (a migration, a sent message).
- Version and tag by the project's convention. Tagging and pushing follow the project's git rules.
- The live step. Going live cannot be taken back in most projects, so it is the user's action unless the profile says an agent may do it: give the user the exact command or click, then wait. After they confirm, run the smoke check the profile names (or ask for one) and record its output.
- Report in at most 8 lines: version, what is in it, check summary, the rollback step, and
what the user must do. Add a line to
<workflowDir>/lessons.mdonly if something went wrong.