docs(adr): let the agent push release tags on explicit approval
Why: the maintainer decided the agent pushes release tags itself. A pushed tag is an immutable release (an irreversible publish), so each push still needs the maintainer's explicit yes in the conversation; the approval, not who types the command, is the control. Implementation Notes: - ADR-0033 Decision: after --apply the agent shows the exact tags and the printed push line, and on an explicit yes runs exactly that `git push origin <tag>...` (never --tags, never other refs). The maintainer-only and free Propose-tier variants are recorded as rejected options. - ADR-0033: --apply requires origin/main's first-parent history, and a tag on a later landing of its version is an error. - AGENTS.md, README.md and gates.md state the same rule; exit 2 still means stop and report, never hand-fix, move or delete a tag. Refs: #223 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
03bacd6e5a
commit
0a52c8597d
4 files changed
+34
-19
No files matched your search
+4
-2
@@ -1353,9 +1353,11 @@ checks for it, for two reasons:
|
||||
whose remote sha is all zeros and that has no commits outside `--remotes=origin`. That is exactly
|
||||
a new tag on an already-pushed `main` commit, so no hook runs.
|
||||
|
||||
Tagging is a maintainer step after merge instead. After `git fetch origin --tags`, run
|
||||
Tagging is a step after merge instead. After `git fetch origin --tags`, run
|
||||
`scripts/tag-plugin-releases.sh` (a dry run; it exits 1 while tags are missing), then `--apply`,
|
||||
then push the tags it names.
|
||||
then push the tags it names. An agent may run the push itself, but only the exact printed line and
|
||||
only after the maintainer explicitly approves those tags in the conversation, because a pushed tag
|
||||
is an immutable release.
|
||||
|
||||
See also: `docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md`,
|
||||
`scripts/tag-plugin-releases.sh`.
|
||||
|
||||
Reference in new issue
Block a user