Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .agents/generated-rules.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"copier-template": "c297313eea2b16f7b713e0faf4a3672de05d6ea27a4ff374e659d3960d9784bc",
"documentation-toc": "c9a57aa3bd766ede36c80761786aa113bea025e92c3fc28a189c0b1bfc86f356",
"github-actions": "00e9df140a396df37cda1ecc47400e441e0715c44817a4f714360316de9259bd",
"markdown-documentation": "b83a62259c4f741f4e4ddb88faa403c4123dde19f9c2fd4078527ec26eafe8c2",
"documentation-toc": "52734c4c63f46babf96aeae1260407add66dbec2d997f90a25ef01b7e1479127",
"github-actions": "5b7aa1678f3d3798125fb1203a68a39d2122ff2e4f655df17d4e8db621a5a684",
"markdown-documentation": "027f47636d9d510e6cbd5505f9339c1aeee6f41dd823c0b478d409dde1ae4538",
"shell-scripts": "bdeed1f2724292989168f25949c8d83245f1436c24a3b82dab10429f60790d64"
}
12 changes: 6 additions & 6 deletions .agents/rules/changelog-alignment.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Changelog alignment

When you **modify this repository** in a way that is **not purely trivial** (anything a maintainer or consumer would care about: behavior, public API of scripts, templates, CI, pins, baselines, docs that describe shipped behavior, or release/version flow):
`CHANGELOG.md` is **generated by Release Please** from conventional PR titles (see `docs/versioning.md`). Do not edit it by hand and do not add an `Unreleased` section or a table of contents to it.

1. **Update `CHANGELOG.md` in the same change** under **`## [Unreleased]`**, using the same categories as the rest of the file (`Added`, `Changed`, `Fixed`, etc.). Summarize what changed and why in plain language; link paths or script names when helpful.
2. **Keep it accurate**: If you touch **`STANDARDS_VERSION`**, template pins, **`template/`**, **`copier.yml`**, **`scripts/`** consumed by adopters, or **`.github/workflows`**, the changelog entry should reflect that so releases and migration notes stay truthful.
3. **Do not ship substantive edits without a matching `[Unreleased]` line** unless the user explicitly asked to skip the changelog (rare).
When you modify this repository in a way that is **not purely trivial** (behavior, public API of scripts, templates, CI, pins, baselines, docs that describe shipped behavior, or release flow):

**Exempt (no changelog line required):** typo-only fixes in comments, formatting-only edits with no semantic change, or purely mechanical refactors explicitly scoped as “no changelog” by the user.
1. **Write the PR title as the changelog entry**: `type(scope): summary` in plain language. `feat:` and `fix:` open a release; `ci:`, `docs:`, `chore:` and similar do not, and `!` marks a breaking change.
2. **Describe migration impact in the PR description** when a template, `copier.yml`, a reusable workflow input or a pin changes, and in `docs/migration-guide.md` when adopters must act.
3. **Never bump `STANDARDS_VERSION`, marked pins, tags or releases by hand**; the Release Please PR owns them.

If you are **aligning another repo** to these standards, that consumer’s **`CHANGELOG.md`** (or their agreed release notes) should be updated there—not only the standards repo—when your work there is user-visible.
If you are **aligning another repo** to these standards, update that consumer's own release notes when your work there is user-visible.
2 changes: 1 addition & 1 deletion .agents/rules/documentation-toc.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Documentation: aligned table of contents

When you add or edit **project documentation** in Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md`, etc.):
When you add or edit **project documentation** in Markdown (`README.md`, `docs/**/*.md`, etc.; not the generated `CHANGELOG.md`):

1. **Include a TOC** near the top: after the H1 title and any one-line blurb, add `## Table of Contents` before the first real content section.
2. **Keep it aligned**: Every `##` section in the file appears as a TOC bullet **in the same order**, with an anchor link. Skip only headings that are not meant to be navigated (never link `## Table of Contents` itself).
Expand Down
2 changes: 1 addition & 1 deletion .agents/rules/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Callable workflows (this repository)

- Files under **`.github/workflows/`** that define **`on: workflow_call`** are **reusable entry points**. This repo uses the **`reusable-` filename prefix** as an org convention for discoverability (see `docs/reusable-workflows.md`). Renaming a published reusable file is a **breaking change** for every consumer `uses:` path.
- **`release-tag.yml`** runs on pushes to `main`. On a version bump, its shared workflow creates the tag and publishes the GitHub Release. The calling job grants `contents: write` for publication. Its `release-please` job stays suspended until the repository is enrolled for Release Please. See **`docs/versioning.md`**.
- **`release-tag.yml`** runs on pushes to `main`. On a version bump, its shared workflow creates the tag and publishes the GitHub Release. The calling job grants `contents: write` for publication. Its `release-please` job opens and maintains the release PR from conventional PR titles. See **`docs/versioning.md`**.
- **`reusable-pre-commit.yml`** should remain a thin, predictable pipeline: checkout → setup Python (with pip cache) → optional pre-install → install → `pre-commit run --all-files` (or overridden command). Avoid surprising side effects in defaults; document new **`inputs`** in `docs/reusable-workflows.md` and **`CHANGELOG.md`** when behavior or contract changes.

## Template caller workflows (`template/.github/workflows/`)
Expand Down
4 changes: 2 additions & 2 deletions .agents/rules/markdown-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

## Table of contents

For substantial Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md` when it uses multiple `##` sections), follow the same TOC discipline as **`.agents/rules/documentation-toc.md`**:
For substantial Markdown (`README.md`, `docs/**/*.md`), follow the same TOC discipline as **`.agents/rules/documentation-toc.md`**:

1. Add **`## Table of Contents`** after the title (and short intro if present).
2. List every navigable **`##`** section in order with GitHub-style anchor links; update the TOC in the **same change** as heading edits.
3. Skip linking the TOC section itself. For trivial one-section files, a TOC is optional.

## Changelog and releases

- **`CHANGELOG.md`** entries should match the **semver** story in **`docs/versioning.md`** and tag/release practice described in **`README.md`**.
- **`CHANGELOG.md`** is generated by Release Please and carries no table of contents; do not edit it by hand. Release entries should match the **semver** story in **`docs/versioning.md`** and tag/release practice described in **`README.md`**.

## Tone and scope

Expand Down
2 changes: 1 addition & 1 deletion .claude/rules/documentation-toc.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ paths:

# Documentation: aligned table of contents

When you add or edit **project documentation** in Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md`, etc.):
When you add or edit **project documentation** in Markdown (`README.md`, `docs/**/*.md`, etc.; not the generated `CHANGELOG.md`):

1. **Include a TOC** near the top: after the H1 title and any one-line blurb, add `## Table of Contents` before the first real content section.
2. **Keep it aligned**: Every `##` section in the file appears as a TOC bullet **in the same order**, with an anchor link. Skip only headings that are not meant to be navigated (never link `## Table of Contents` itself).
Expand Down
2 changes: 1 addition & 1 deletion .claude/rules/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ paths:
## Callable workflows (this repository)

- Files under **`.github/workflows/`** that define **`on: workflow_call`** are **reusable entry points**. This repo uses the **`reusable-` filename prefix** as an org convention for discoverability (see `docs/reusable-workflows.md`). Renaming a published reusable file is a **breaking change** for every consumer `uses:` path.
- **`release-tag.yml`** runs on pushes to `main`. On a version bump, its shared workflow creates the tag and publishes the GitHub Release. The calling job grants `contents: write` for publication. Its `release-please` job stays suspended until the repository is enrolled for Release Please. See **`docs/versioning.md`**.
- **`release-tag.yml`** runs on pushes to `main`. On a version bump, its shared workflow creates the tag and publishes the GitHub Release. The calling job grants `contents: write` for publication. Its `release-please` job opens and maintains the release PR from conventional PR titles. See **`docs/versioning.md`**.
- **`reusable-pre-commit.yml`** should remain a thin, predictable pipeline: checkout → setup Python (with pip cache) → optional pre-install → install → `pre-commit run --all-files` (or overridden command). Avoid surprising side effects in defaults; document new **`inputs`** in `docs/reusable-workflows.md` and **`CHANGELOG.md`** when behavior or contract changes.

## Template caller workflows (`template/.github/workflows/`)
Expand Down
4 changes: 2 additions & 2 deletions .claude/rules/markdown-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ paths:

## Table of contents

For substantial Markdown (`README.md`, `docs/**/*.md`, `CHANGELOG.md` when it uses multiple `##` sections), follow the same TOC discipline as **`.agents/rules/documentation-toc.md`**:
For substantial Markdown (`README.md`, `docs/**/*.md`), follow the same TOC discipline as **`.agents/rules/documentation-toc.md`**:

1. Add **`## Table of Contents`** after the title (and short intro if present).
2. List every navigable **`##`** section in order with GitHub-style anchor links; update the TOC in the **same change** as heading edits.
3. Skip linking the TOC section itself. For trivial one-section files, a TOC is optional.

## Changelog and releases

- **`CHANGELOG.md`** entries should match the **semver** story in **`docs/versioning.md`** and tag/release practice described in **`README.md`**.
- **`CHANGELOG.md`** is generated by Release Please and carries no table of contents; do not edit it by hand. Release entries should match the **semver** story in **`docs/versioning.md`** and tag/release practice described in **`README.md`**.

## Tone and scope

Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:

release-please:
needs: release-tag
# Pushes skip this job until the App and main ruleset are configured.
if: github.event_name == 'workflow_dispatch'
uses: BehindTheMusicTree/github-workflows/.github/workflows/release-please.yml@8b10f1dfcb88a245e4e4256e61164b49e595faea # v6.5.0
with:
app-id: ${{ vars.RELEASE_PR_APP_ID }}
Expand Down
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "5.2.1"
}
35 changes: 1 addition & 34 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,7 @@

All notable changes to this standards repository will be documented in this file.

The format is inspired by Keep a Changelog and follows semantic-style versioning for standards releases.

## Table of Contents

- [Unreleased](#unreleased)
- [5.2.1 - 2026-11-25](#521---2026-11-25)
- [5.2.0 - 2026-10-31](#520---2026-10-31)
- [5.1.0 - 2026-09-24](#510---2026-09-24)
- [5.0.0 - 2026-09-24](#500---2026-09-24)
- [4.3.2 - 2026-04-13](#432---2026-04-13)
- [4.3.1 - 2026-04-12](#431---2026-04-12)
- [4.3.0 - 2026-04-12](#430---2026-04-12)
- [4.2.0 - 2026-04-12](#420---2026-04-12)
- [4.1.1 - 2026-04-12](#411---2026-04-12)
- [4.1.0 - 2026-04-11](#410---2026-04-11)
- [4.0.0 - 2026-04-11](#400---2026-04-11)
- [3.1.0 - 2026-04-11](#310---2026-04-11)
- [3.0.1 - 2026-04-13](#301---2026-04-13)
- [3.0.0 - 2026-04-12](#300---2026-04-12)
- [2.3.0 - 2026-04-11](#230---2026-04-11)
- [2.2.0 - 2026-04-10](#220---2026-04-10)
- [2.1.0 - 2026-04-09](#210---2026-04-09)
- [2.0.0 - 2026-04-09](#200---2026-04-09)
- [1.0.0 - 2026-04-09](#100---2026-04-09)

## [Unreleased]

### Changed

- Prepare the move to Release Please: mark the seven standards pins with `x-release-please-version`, add the `pr-title` check and a suspended `release-please` job, and check that marked pins match `STANDARDS_VERSION`.

### Removed

- The manual bump path (`scripts/standards_release_bump.sh`, `scripts/finalize_standards_changelog.py`, `scripts/publish_github_release.py` and `.bumpversion.toml`) and the `.bumpversion.toml` mirror in the release policy. CI already owns tagging and publication.
Release Please generates versioned entries from conventional PR titles; earlier entries were written by hand.

## [5.2.1] - 2026-11-25

Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ See [docs/reusable-workflows.md](docs/reusable-workflows.md) for caller examples

## Releases

Versions are **SemVer** (`v1.2.3` tags, `STANDARDS_VERSION` without `v`). Maintainers prepare version and **`CHANGELOG.md`** changes through a PR to `main`; CI creates **`vX.Y.Z`** and publishes a **GitHub Release** with the same notes. Consumers pin callable workflows to that tag (or a commit SHA), not to `main` long term.

After a version change merges into `main`, [`.github/workflows/release-tag.yml`](.github/workflows/release-tag.yml) creates the SemVer tag and publishes the GitHub Release from the matching **`CHANGELOG.md`** section. Publication is owned by CI; Release Please will prepare version and changelog PRs from conventional PR titles once activated (see **[docs/versioning.md](docs/versioning.md)**).
Versions are **SemVer** (`v1.2.3` tags, `STANDARDS_VERSION` without `v`). [Release Please](https://github.com/googleapis/release-please) opens a release PR from conventional PR titles; merging it updates `STANDARDS_VERSION`, the marked pins and **`CHANGELOG.md`**, then CI creates **`vX.Y.Z`** and publishes the **GitHub Release**. Consumers pin callable workflows to that tag (or a commit SHA), not to `main` long term. See **[docs/versioning.md](docs/versioning.md)**.

## Status

Expand Down
10 changes: 4 additions & 6 deletions docs/versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ Each GitHub Release (and matching `CHANGELOG.md` section) should make adoption s

## Releasing (maintainers)

`STANDARDS_VERSION` is the canonical version. Release Please will prepare releases from conventional PR titles once it is activated; until then, prepare a release by hand on a clean task branch created from current `main`:
`STANDARDS_VERSION` is the canonical version. Release Please (`release-please-config.json`, `.release-please-manifest.json`, job `release-please` in `.github/workflows/release-tag.yml`) maintains a release PR from conventional PR titles; never bump, tag or publish by hand.

1. Set `STANDARDS_VERSION` and every pin marked `x-release-please-version` to the same new version. `scripts/tests/test_release_version_sync.py` fails if a marked pin differs or a current-version pin lacks its marker.
2. Move release notes into the unique matching `## [X.Y.Z] - YYYY-MM-DD` changelog section, retaining an empty `Unreleased` section and updating the TOC.
3. Commit, open a pull request against `main`, and let CI create the tag and release after merge. Do not tag or publish locally.

After merge, CI validates the version, the nonempty changelog section and main ancestry, then creates an annotated tag on that exact commit. The same workflow publishes the GitHub release from those notes. Rerun the failed workflow to recover; an existing release is retained.
1. Merge PRs titled `feat:`/`fix:` (and `!` for breaking changes); `ci:`, `docs:`, `chore:` and similar titles do not open a release.
2. Release Please updates `STANDARDS_VERSION`, every pin marked `x-release-please-version` and `CHANGELOG.md` in its release PR. `scripts/tests/test_release_version_sync.py` fails if a marked pin differs or a current-version pin lacks its marker.
3. Merge the release PR; CI creates the tag and publishes the GitHub Release from the generated notes. Rerun a failed workflow to recover; an existing release is retained.

**Version markers:** the Release Please Generic updater replaces the first SemVer of each marked line. Mark only the line holding the standards pin: `<!-- x-release-please-version -->` at the end of a prose line, ` # x-release-please-version` on a pin or `copier copy --vcs-ref` line in a copyable YAML or shell example, and `{# x-release-please-version #}` directly after the template pin so the rendered workflow carries no comment or trailing space.

Expand Down
16 changes: 16 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"release-type": "simple",
"include-component-in-tag": false,
"version-file": "STANDARDS_VERSION",
"extra-files": [
"README.md",
"docs/migration-guide.md",
"docs/reusable-workflows.md",
"template/.github/workflows/{% if reusable_lint %}lint.yml{% endif %}.jinja"
]
}
}
}
Loading