Repository navigation
feat(dev): add a maintainer-run workflow that moves the dev stamp - #1233
Merged
Merged
Conversation
The marketplace is served from `main` and `claude plugin update` compares version strings, so while the `.dev<stamp>` suffix sits still an adopter running that command is told they are already current however far behind they are. Moving it is three steps anyone can run, which is exactly why it gets forgotten. Adds `bump dev version`, a `workflow_dispatch` workflow that runs those three steps on `main`. Manual rather than on-merge on purpose: *when* a bump is wanted — before pointing anyone at `claude plugin update`, before announcing a change adopters should take, or once merged work has piled up — is a judgement, not something a merge trigger can make. GitHub restricts `workflow_dispatch` to accounts with write access, so the button is committers-only without the workflow checking anything itself, and whoever presses it is credited as `Co-Authored-By` on the commit. Two supporting scripts, because the parts that can fail silently deserve tests rather than inline YAML: - `bump-dev-version.py` moves the stamp in `pyproject.toml` and nothing else, so the same three steps read the same by hand or in CI. It refuses a version with no `.dev` suffix rather than stamping over a release, and refuses a stamp that is not 12 digits of UTC. - `gh-signed-commit.py` commits through GitHub's `createCommitOnBranch` rather than `git commit` + `git push`. The commit comes back signed by GitHub and shows as Verified with no key material in CI. It pins `expectedHeadOid`, so a merge landing mid-run fails the call instead of being overwritten, and it decomposes renames because the mutation has no rename concept. The commit author is whoever the token authenticates as — with `GITHUB_TOKEN` that is the Actions bot, and the mutation offers no way to set it — so the maintainer's credit goes in a trailer, using GitHub's noreply address form rather than publishing one the account keeps private. `main` must permit the commit: the API enforces branch protection exactly as a push would, so a rule requiring a pull request makes the job fail rather than bypass anything. Generated-by: Claude Opus 5
5 of 21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainandclaude plugin updatecompares version strings, not commit SHAs — so while.dev<stamp>sits still, an adopter running that command is told they are already current however far behind they are. Today's stamp has been frozen across three merged PRs.bump dev version, aworkflow_dispatchworkflow that runs the documented three steps onmainand commits the result. Manual rather than on-merge on purpose: when a bump is wanted is the judgementdocs/setup/marketplace.mdalready describes, not something a merge trigger can make.Type of change
.claude/skills/<name>/) — eval fixtures updated belowtools/<system>/*.md)tools/*/withpyproject.toml) — two scripts + tests undertools/dev/docs/,README.md,CONTRIBUTING.md) —marketplace.md§ When to bumpprojects/_template/)prek, workflows, validators)Test plan
prek run --all-filespassesuv run pytest/ruff check/mypypass — 143 tests intools/dev, 24 of them new.prek run --filesclean over every touched path; the commit hook ran the full workspace pytest.zizmorclean on the new workflow.check-doc-syncsatisfied — both scripts are documented intools/dev/README.md, which it enforces.workflow_dispatchjob cannot run until it is onmain, so the first real run is after merge. What is tested is everything it calls: the stamp move, the manifest regeneration, the payload construction, and thegit statusparsing. The unexercised part is the mutation call and the runner environment.RFC-AI-0004 compliance
Linked issues
None.
Notes for reviewers
workflow_dispatchand notpush: branches: [main]. An on-merge bump would move the stamp on merges nobody is waiting for, and its own commit would re-trigger it without a guard. More importantly it would decide when a bump is wanted, whichmarketplace.mdtreats as a judgement call. GitHub restrictsworkflow_dispatchto accounts with write access, so the button is committers-only without the workflow checking anything itself.createCommitOnBranchauthors the commit as whoever the token authenticates as; withGITHUB_TOKENthat isgithub-actions[bot], and the mutation offers no way to override it. The maintainer who ran the workflow is therefore credited viaCo-Authored-By, using GitHub's noreply address form rather than publishing an address the account may keep private. Making them the actual author needs a PAT or App token with write access — a secret, and a PMC decision rather than something this file should assume.git commit+git push. A commit made withgitin CI is unsigned, and this one comes back signed by GitHub and shows as Verified, with no key material anywhere in the job. It also lets the checkout run withpersist-credentials: false.mainmust permit the commit. The API enforces branch protection exactly as a push would: a rule requiring a pull request, or a linear-history rule, makes the job fail rather than bypass anything. I could not verify the current rules — that needs admin. If the first run fails, that is the rule talking and the answer is to keep bumping by hand, not to loosen protection.expectedHeadOidis pinned to the tip the run checked out, so a merge landing while the job works fails the call instead of silently reverting it.actions/checkoutandastral-sh/setup-uv, both already used here, both SHA-pinned. The ASF allowlist check runs on this PR since it touches.github/**.🤖 Generated with Claude Code