Take changelog notes as fragments in .changelog/, on changelog v2 #83

Merged
city-root merged 2 commits from worker/rexcity-sffhf into main 2026-11-12 12:51:40 +00:00
Contributor

Pull requests now note their change as a fragment in .changelog/ and no longer edit CHANGELOG.md, so parallel pull requests stop colliding on the same lines.

What changed

  • test, release and renovate workflows use https://sarak.sh/mikluko/changelog/actions/validate@v2; renovate's pinned tool moves from v1.6.0 to v2/cmd/changelog@v2.0.1 (the release carrying the linked-worktree fix). Job names are unchanged, so main's protection still matches.
  • missing-fragment is a warning in the changelog job: REVIEW.md says CI/test/docs-only changes carry no note, and v2 would otherwise fail them.
  • README: what v2 checks beyond v1 (fragment-form, fragments-release, missing-fragment), the fragment shape, and how a version is cut: on a branch off main, go run sarak.sh/mikluko/changelog/v2/cmd/changelog@v2 release folds the fragments into CHANGELOG.md, deletes them, and dates the entry today (UTC); the release pull request holds only that edit; merging it triggers release.yaml, which reads the newest entry as before.
  • REVIEW.md says fragments where it said [Unreleased].
  • CHANGELOG.md is already valid under v2; no edit needed.

Behaviour to know

  • The hourly renovate release folds any fragment waiting on main into the release it cuts (as it did with [Unreleased] notes before); its version is still computed from the kuberex bump alone.
  • Merge a release pull request on the day its heading is dated, or date-mismatch fails once the tag exists.

Verified locally (tool built from changelog origin/main): CHANGELOG.md valid; release over two fragments; renovate's append + release -version with no .changelog/; -base main fails missing-fragment by default and passes with it as a warning; workflows parse with yq. The workflows themselves only run on the forge.

Bead: rexcity-sffhf

Pull requests now note their change as a fragment in `.changelog/` and no longer edit `CHANGELOG.md`, so parallel pull requests stop colliding on the same lines. **What changed** - `test`, `release` and `renovate` workflows use `https://sarak.sh/mikluko/changelog/actions/validate@v2`; renovate's pinned tool moves from `v1.6.0` to `v2/cmd/changelog@v2.0.1` (the release carrying the linked-worktree fix). Job names are unchanged, so main's protection still matches. - `missing-fragment` is a warning in the `changelog` job: REVIEW.md says CI/test/docs-only changes carry no note, and v2 would otherwise fail them. - README: what v2 checks beyond v1 (`fragment-form`, `fragments-release`, `missing-fragment`), the fragment shape, and how a version is cut: on a branch off `main`, `go run sarak.sh/mikluko/changelog/v2/cmd/changelog@v2 release` folds the fragments into `CHANGELOG.md`, deletes them, and dates the entry today (UTC); the release pull request holds only that edit; merging it triggers `release.yaml`, which reads the newest entry as before. - REVIEW.md says fragments where it said `[Unreleased]`. - `CHANGELOG.md` is already valid under v2; no edit needed. **Behaviour to know** - The hourly renovate release folds any fragment waiting on `main` into the release it cuts (as it did with `[Unreleased]` notes before); its version is still computed from the kuberex bump alone. - Merge a release pull request on the day its heading is dated, or `date-mismatch` fails once the tag exists. **Verified locally** (tool built from changelog origin/main): `CHANGELOG.md` valid; `release` over two fragments; renovate's `append` + `release -version` with no `.changelog/`; `-base main` fails `missing-fragment` by default and passes with it as a warning; workflows parse with yq. The workflows themselves only run on the forge. Bead: rexcity-sffhf
ci: note changes as fragments in .changelog/, checked by changelog v2 (rexcity-sffhf)
All checks were successful
image / image (pull_request) Successful in 6s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m44s
8f7ab6bf5d
Pull requests that run in parallel each added a line under [Unreleased] in CHANGELOG.md and collided there. Version 2 of the changelog tool lets each change carry its note in a file of its own in .changelog/, which only a release folds into CHANGELOG.md.

The test, release and renovate workflows move from the v1 action to actions/validate@v2, and renovate's pinned tool from v1.6.0 to v2.0.1 (which carries the linked-worktree fix). The job names are unchanged, so main's protection still matches. missing-fragment is set to warn: REVIEW.md says a change to CI, tests or docs alone carries no note, and v2's default would fail it.

README says how a version is cut (changelog release on a branch, a pull request that holds only CHANGELOG.md and the deleted fragments, the merge triggers release.yaml as before) and what v2 checks beyond v1; REVIEW.md says fragments where it said [Unreleased].

Validation: built the tool from origin/main; CHANGELOG.md is valid under v2 unchanged (no edit needed); simulated release with two fragments, and renovate's append plus release -version with no .changelog/ directory, in a scratch clone; the check with -base main fails missing-fragment by default and passes with it as a warning; yq parses the workflows.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
city-root-review requested changes 2026-11-12 12:28:00 +00:00
Dismissed
city-root-review left a comment

Review of 8f7ab6bf5d for rexcity-sffhf. Checks of the head: success.

Verdict

fail

Findings

  • [blocking] .gitignore:1: the repository ignores every dot path (.*) and re-includes only .gitignore, .dockerignore, .forgejo and .beads/, so .changelog/ is ignored. A fragment written as README.md:71-79 says is never staged by git add -A, git add . or git commit -a, and git add .changelog/x.md refuses it without -f; it never reaches the pull request. CI does not catch the loss, because missing-fragment is only a warning in test.yaml. In the merged tree git check-ignore -v .changelog/t.md prints .gitignore:1:.*. The Done-when ("a pull request of this repository can note its change in a file of its own") does not hold in practice. Fix: add !.changelog/ to .gitignore next to !.forgejo. The PR description's "release over two fragments" check would not have shown this, since release reads files on disk whether git tracks them or not.

Verified

  • Read the work bead, the PR description, and REVIEW.md and README.md of origin/main; read the whole diff (6 files, +40/-11).
  • Merged the head into origin/main (fd06139): clean.
  • changelog tool: v2 and v2.0.1 both point at c19d67d (origin/main, "Release the linked-worktree fix"). The module is sarak.sh/mikluko/changelog/v2, so .../v2/cmd/changelog@v2.0.1 resolves. actions/validate/action.yaml exists at v2, has a warn input, has outputs version, due and notes, and defaults base to github.base_ref. Built the CLI from the v2.0.1 source.
  • Ran the merged tree through the CLI. Default (push/plan): valid=true, version=0.33.0, due=false. -base main -warn missing-fragment (the PR job): valid, one warning. -base main with default severities: fails missing-fragment. So job names and behaviour match the description, and CHANGELOG.md needs no edit.
  • Release from fragments, in a scratch worktree with two fragments: release folded them and main's [Unreleased] note into ## [0.34.0] - 2026-11-12, deleted the fragments, and afterwards the check gave valid=true, due=true. The README's bump rule matches the tool's README (**Breaking:** → major, minor below 1.0.0).
  • Renovate path, with a force-added tracked fragment on the branch: append -section=Changed then release -version=0.33.1 edited CHANGELOG.md and deleted the fragment. git commit -am staged both, and the result is valid with due=true. The README's description of renovate is accurate.
  • The workflows parse with yq. go vet ./... and go test ./... pass on the merge (the PR changes no Go code).
  • REVIEW.md: the changes follow the work bead. No check is loosened beyond the missing-fragment warning, which the bead's REVIEW.md rule (CI, test and docs changes carry no note) calls for. No changelog note is needed for this CI/docs-only change.
Review of 8f7ab6bf5d97cf2f6dde0055cc44379438e3ccc2 for rexcity-sffhf. Checks of the head: success. ### Verdict fail ### Findings - [blocking] .gitignore:1: the repository ignores every dot path (`.*`) and re-includes only `.gitignore`, `.dockerignore`, `.forgejo` and `.beads/`, so `.changelog/` is ignored. A fragment written as README.md:71-79 says is never staged by `git add -A`, `git add .` or `git commit -a`, and `git add .changelog/x.md` refuses it without `-f`; it never reaches the pull request. CI does not catch the loss, because `missing-fragment` is only a warning in `test.yaml`. In the merged tree `git check-ignore -v .changelog/t.md` prints `.gitignore:1:.*`. The Done-when ("a pull request of this repository can note its change in a file of its own") does not hold in practice. Fix: add `!.changelog/` to `.gitignore` next to `!.forgejo`. The PR description's "release over two fragments" check would not have shown this, since `release` reads files on disk whether git tracks them or not. ### Verified - Read the work bead, the PR description, and REVIEW.md and README.md of origin/main; read the whole diff (6 files, +40/-11). - Merged the head into origin/main (fd06139): clean. - changelog tool: v2 and v2.0.1 both point at c19d67d (origin/main, "Release the linked-worktree fix"). The module is `sarak.sh/mikluko/changelog/v2`, so `.../v2/cmd/changelog@v2.0.1` resolves. `actions/validate/action.yaml` exists at v2, has a `warn` input, has outputs `version`, `due` and `notes`, and defaults `base` to `github.base_ref`. Built the CLI from the v2.0.1 source. - Ran the merged tree through the CLI. Default (push/plan): valid=true, version=0.33.0, due=false. `-base main -warn missing-fragment` (the PR job): valid, one warning. `-base main` with default severities: fails `missing-fragment`. So job names and behaviour match the description, and CHANGELOG.md needs no edit. - Release from fragments, in a scratch worktree with two fragments: `release` folded them and main's `[Unreleased]` note into `## [0.34.0] - 2026-11-12`, deleted the fragments, and afterwards the check gave valid=true, due=true. The README's bump rule matches the tool's README (`**Breaking:**` → major, minor below 1.0.0). - Renovate path, with a force-added tracked fragment on the branch: `append -section=Changed` then `release -version=0.33.1` edited CHANGELOG.md and deleted the fragment. `git commit -am` staged both, and the result is valid with due=true. The README's description of renovate is accurate. - The workflows parse with yq. `go vet ./...` and `go test ./...` pass on the merge (the PR changes no Go code). - REVIEW.md: the changes follow the work bead. No check is loosened beyond the `missing-fragment` warning, which the bead's REVIEW.md rule (CI, test and docs changes carry no note) calls for. No changelog note is needed for this CI/docs-only change.
mikluko force-pushed worker/rexcity-sffhf from 8f7ab6bf5d
All checks were successful
image / image (pull_request) Successful in 6s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m44s
to 24fd0cf618
All checks were successful
image / image (pull_request) Successful in 5s
test / changelog (pull_request) Successful in 4s
test / go (pull_request) Successful in 1m45s
2026-11-12 12:35:26 +00:00
Compare
city-root-review left a comment

Review of 24fd0cf618 for rexcity-sffhf. Checks of the head: success.

Verdict

pass

Findings

  • [minor] .forgejo/workflows/renovate.yaml:53-73: the hourly cut computes its version from the kuberex bump alone, so a waiting ### Added fragment (or a **Breaking:** note) goes out in a patch release: in the merged tree, append then release -version=0.33.1 over a ### Added fragment gave a valid ## [0.33.1] that holds ### Added. This is how [Unreleased] notes were cut before this change, and the PR description says so, so it does not block this pull request. A follow-up could take the larger of the kuberex bump and the bump the notes call for (release with no -version computes the latter).

Verified

  • Round 1's finding is fixed: .gitignore:5 adds !.changelog/. In the merged tree git check-ignore -v .changelog/t.md prints nothing (exit 1). git add -A stages a new fragment, and with it the check passes missing-fragment at default severity.
  • Read the work bead with its round-1 note, the PR description, review 207, and REVIEW.md, AGENTS.md and README.md of origin/main (CLAUDE.md: none). Read the whole diff: 7 files, +41/-11. Compared with round 1 it adds the .gitignore line and the comment in image.yaml. That comment changes no step, and a release pull request touches none of the image's paths.
  • The merge into origin/main (fd06139) is a fast-forward and clean. mergeable is mergeable.
  • changelog tool: built the CLI from v2.0.1 (c19d67d, which is also v2 and origin/main). actions/validate at v2 has the warn input and the outputs due, version and notes that release.yaml and renovate.yaml read.
  • Ran the merged tree through the CLI. Push mode: valid, 0.33.0, due=false. -base main -warn missing-fragment (the PR job): valid, with one warning. -base main at default severities: fails missing-fragment, as the README and the test.yaml comment say. A file in .changelog/ that is not a fragment fails fragment-form.
  • Release: on a branch with a committed ### Added fragment, changelog release folded it and main's [Unreleased] note into ## [0.34.0] - 2026-11-12, deleted the fragment and opened a new empty [Unreleased]. The diff held only M CHANGELOG.md and D .changelog/new-thing.md. Checked against its base the way test.yaml checks it, the result is valid. In push mode it is valid with due=true, which is what release.yaml's plan needs, and release.yaml triggers on a push that changes CHANGELOG.md. The README's bump rule and its date rule (date-mismatch) match the tool's README.
  • Renovate path: append then release -version then git commit -am staged the fragment's deletion along with CHANGELOG.md, and the result is valid with due=true.
  • Every workflow parses with yq. The job names are unchanged. go vet ./... and go test ./... pass on the merged tree. I did not run -race, because the pull request changes no Go code.
  • No pack formula, prompt or skill in the repository mentions a CHANGELOG entry, so README.md and REVIEW.md are the only texts that needed the new way, and both say it. REVIEW.md loosens no check beyond what the work bead asks for: a missing fragment on a CI-, test- or docs-only change is not a finding. No changelog note is needed for this CI/docs-only change.
Review of 24fd0cf618d2acc4498a4b3faff5994a4636f1d7 for rexcity-sffhf. Checks of the head: success. ### Verdict pass ### Findings - [minor] .forgejo/workflows/renovate.yaml:53-73: the hourly cut computes its version from the kuberex bump alone, so a waiting `### Added` fragment (or a `**Breaking:**` note) goes out in a patch release: in the merged tree, `append` then `release -version=0.33.1` over a `### Added` fragment gave a valid `## [0.33.1]` that holds `### Added`. This is how `[Unreleased]` notes were cut before this change, and the PR description says so, so it does not block this pull request. A follow-up could take the larger of the kuberex bump and the bump the notes call for (`release` with no `-version` computes the latter). ### Verified - Round 1's finding is fixed: `.gitignore:5` adds `!.changelog/`. In the merged tree `git check-ignore -v .changelog/t.md` prints nothing (exit 1). `git add -A` stages a new fragment, and with it the check passes `missing-fragment` at default severity. - Read the work bead with its round-1 note, the PR description, review 207, and REVIEW.md, AGENTS.md and README.md of origin/main (CLAUDE.md: none). Read the whole diff: 7 files, +41/-11. Compared with round 1 it adds the `.gitignore` line and the comment in `image.yaml`. That comment changes no step, and a release pull request touches none of the image's paths. - The merge into origin/main (fd06139) is a fast-forward and clean. `mergeable` is `mergeable`. - changelog tool: built the CLI from v2.0.1 (c19d67d, which is also `v2` and origin/main). `actions/validate` at v2 has the `warn` input and the outputs `due`, `version` and `notes` that release.yaml and renovate.yaml read. - Ran the merged tree through the CLI. Push mode: valid, 0.33.0, due=false. `-base main -warn missing-fragment` (the PR job): valid, with one warning. `-base main` at default severities: fails `missing-fragment`, as the README and the test.yaml comment say. A file in `.changelog/` that is not a fragment fails `fragment-form`. - Release: on a branch with a committed `### Added` fragment, `changelog release` folded it and main's `[Unreleased]` note into `## [0.34.0] - 2026-11-12`, deleted the fragment and opened a new empty `[Unreleased]`. The diff held only `M CHANGELOG.md` and `D .changelog/new-thing.md`. Checked against its base the way test.yaml checks it, the result is valid. In push mode it is valid with due=true, which is what release.yaml's `plan` needs, and release.yaml triggers on a push that changes `CHANGELOG.md`. The README's bump rule and its date rule (`date-mismatch`) match the tool's README. - Renovate path: `append` then `release -version` then `git commit -am` staged the fragment's deletion along with CHANGELOG.md, and the result is valid with due=true. - Every workflow parses with yq. The job names are unchanged. `go vet ./...` and `go test ./...` pass on the merged tree. I did not run `-race`, because the pull request changes no Go code. - No pack formula, prompt or skill in the repository mentions a CHANGELOG entry, so README.md and REVIEW.md are the only texts that needed the new way, and both say it. REVIEW.md loosens no check beyond what the work bead asks for: a missing fragment on a CI-, test- or docs-only change is not a finding. No changelog note is needed for this CI/docs-only change.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/rexcity!83
No description provided.