Skip to content

feat(dev): add a maintainer-run workflow that moves the dev stamp - #1233

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:feat/manual-dev-version-bump-workflow
Sep 15, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:feat/manual-dev-version-bump-workflow

Conversation

@potiuk

@potiuk potiuk commented Sep 15, 2026

Copy link
Copy Markdown
Member

Summary

  • The dev stamp only helps adopters if it moves, and moving it is a step everyone forgets. The marketplace is served from main and claude plugin update compares 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.
  • Adds bump dev version, a workflow_dispatch workflow that runs the documented three steps on main and commits the result. Manual rather than on-merge on purpose: when a bump is wanted is the judgement docs/setup/marketplace.md already describes, not something a merge trigger can make.
  • Adds two tested helper scripts instead of inline YAML, because both failure modes here are silent ones: a bump that does not actually change the string, and a commit that quietly overwrites a concurrent merge.

Type of change

  • Skill change (.claude/skills/<name>/) — eval fixtures updated below
  • Tool / bridge contract (tools/<system>/*.md)
  • Python package (tools/*/ with pyproject.toml) — two scripts + tests under tools/dev/
  • Groovy reference impl
  • Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
  • Documentation (docs/, README.md, CONTRIBUTING.md) — marketplace.md § When to bump
  • Project template (projects/_template/)
  • CI / dev loop (prek, workflows, validators)
  • Other:

Test plan

  • prek run --all-files passes
  • For Python packages touched: uv run pytest / ruff check / mypy pass — 143 tests in tools/dev, 24 of them new.
  • For Groovy bridges touched: command-line invocation tested end-to-end
  • For skill changes: eval suite passes for the affected skill
  • For skill behaviour changes: a new or updated eval fixture is included in this PR
  • Other:
    • prek run --files clean over every touched path; the commit hook ran the full workspace pytest.
    • zizmor clean on the new workflow.
    • check-doc-sync satisfied — both scripts are documented in tools/dev/README.md, which it enforces.

⚠️ The workflow itself has not been executed. A workflow_dispatch job cannot run until it is on main, 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 the git status parsing. The unexercised part is the mutation call and the runner environment.

RFC-AI-0004 compliance

  • HITL — the bump is a button a human presses; there is no automatic trigger.
  • Sandbox — no new host access. The job talks to GitHub's API and nothing else.
  • Vendor neutrality — placeholders used in all skill / tool prose
  • Conversational + correctable — agentic-override path documented if behaviour is adopter-tunable
  • Write-access discipline — the one write is the commit the maintainer asked for, pinned to the tip they ran against.
  • Privacy LLM — private content does not reach a non-approved LLM

Linked issues

None.

Notes for reviewers

  • Why workflow_dispatch and not push: 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, which marketplace.md treats as a judgement call. GitHub restricts workflow_dispatch to accounts with write access, so the button is committers-only without the workflow checking anything itself.
  • Attribution is a trailer, not authorship — and that is a real limitation. createCommitOnBranch authors the commit as whoever the token authenticates as; with GITHUB_TOKEN that is github-actions[bot], and the mutation offers no way to override it. The maintainer who ran the workflow is therefore credited via Co-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.
  • Why the API instead of git commit + git push. A commit made with git in 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 with persist-credentials: false.
  • main must 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.
  • expectedHeadOid is pinned to the tip the run checked out, so a merge landing while the job works fails the call instead of silently reverting it.
  • Only allowlisted actions — actions/checkout and astral-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

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
@potiuk
potiuk merged commit e3fad3a into apache:main Sep 15, 2026
10 checks passed
@potiuk potiuk added the substrate:framework-dev Tool substrate: build / validate / eval the framework itself label Sep 25, 2026
@potiuk potiuk added family:ci .github workflows, prek, validators family:docs Docs, MISSION.md, READMEs family:setup setup-* skills family:tools tools/* labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

family:ci .github workflows, prek, validators family:docs Docs, MISSION.md, READMEs family:setup setup-* skills family:tools tools/* substrate:framework-dev Tool substrate: build / validate / eval the framework itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant