Release the pending-date-mismatch check (changelog#41) #42

Merged
city-root merged 1 commit from worker/changelog-y7x into main 2026-11-12 13:56:32 +00:00
Contributor

Merge this on 2026-11-12 UTC, which ends at 01:00 on 2026-11-13 in CET. The heading is dated 2026-11-12. If the merge commit lands on a later UTC day, pending-date-mismatch holds the release and a pull request has to correct the date first (see "The day" below).

What and why

Cuts 2.1.0, the release of the pending-date-mismatch check merged in #41 (bead changelog-y7x, defect changelog-o91). The check is meant to reach the consumers of @v2 from a release they can pin, instead of each of six workflows re-implementing it.

The release is cut the way README "Releasing" and the commit of 2.0.1 (#40) cut one: go run ./cmd/changelog release folded .changelog/pending-date-mismatch.md into CHANGELOG.md and deleted it, and actions/VERSION names the same version. The diff is those three files.

The version, and why

The tool computes 2.1.0 (version=2.1.0, prerelease=false). Its bump table makes a minor of a fragment with an Added and a Changed section and no Breaking section or **Breaking:** note. Run on this tree, the validator reports valid=true, due=true, already-tagged=false, latest-tag=v2.0.1, and go test ./... passes.

A check that is new and an error by default can turn a consumer's green run red, and these rules still call it a minor release: it fires only when a release is due and the heading's date is not the day the tag will carry. Such a release was already doomed, because once it was tagged date-mismatch failed it and release-entry-modified forbade the repair. Only the moment of the failure moves, from after the tag to before it. I did not add a **Breaking:** note: it would make the tool compute 3.0.0, which @v2 consumers would never follow, which defeats the point of this release. If you judge it breaking, say so; it is a one-line fragment and a re-run of the tool.

The day

pending-date-mismatch compares the newest untagged entry's date with the committer date of HEAD, in the offset HEAD records, which is the day a lightweight tag cut there carries. When this pull request merges, HEAD is its merge commit. Earlier merges of this repository record +0000 (#40 at 11:02:29 +0000, #41 at 13:39:41 +0000), so the day compared is the UTC day of the merge.

  • The entry says 2026-11-12. For the release run not to be held by pending-date-mismatch, and for the tag not to leave date-mismatch red, the merge commit has to be dated 2026-11-12 in its recorded offset, i.e. merged before 2026-11-13 00:00 UTC. Written at 13:50 UTC, that leaves about ten hours.
  • Nothing else may land on main between the merge and the dispatch unless it is dated the same day: the tag is cut on HEAD of the dispatch's checkout, and the check reads that commit, not the merge commit.
  • The day of the dispatch itself does not matter, only the day of HEAD.
  • If the merge is late: nothing is tagged. The workflow's first step sees due=false (the reason is the check's message), tries to fold again, and refuses, because [Unreleased] and .changelog/ are empty. Repair it with a pull request that dates the 2.1.0 heading with the day the merge commit of that pull request will carry, and merge it that day.

After the merge

The release workflow (.forgejo/workflows/release.yaml) runs only on workflow_dispatch. A pull request cannot start it, and I did not.

  1. Dispatch it from main, with the input version empty (or 2.1.0). The newest entry is already due, so the run resumes at the tag instead of folding: it validates, tests the tree, builds four binaries, pushes the tag v2.1.0, publishes the release with the binaries and checksums.txt, smoke-tests the published actions, then moves v2.
  2. Who: anyone with write access to mikluko/changelog, from the Actions tab (Run workflow, branch main). The city's forge account city-root has push: true on the repository (read from GET /repos/mikluko/changelog, admin: false), which is what the Forgejo endpoint POST /api/v1/repos/mikluko/changelog/actions/workflows/release.yaml/dispatches with {"ref":"main","inputs":{"version":""}} asks for. I have not called it, so that is read from the permission, not observed.
  3. The tag reaches GitHub through the push mirror, and mirror-release.yaml there copies the release and its assets.

What moves

  • v2.1.0 is created. v2.0.0 and v2.0.1 never move.
  • v2 moves from the v2.0.1 commit to the v2.1.0 commit (git tag -f v2, forced push), and it is the only moving tag. There is no v2.1: the workflow cuts vX.Y.Z and vMAJOR only.
  • https://sarak.sh/mikluko/changelog/actions/validate@v2 follows by itself, since Forgejo resolves the tag on each run, and actions/VERSION at that commit makes the action download the 2.1.0 binary. The old spelling https://sarak.sh/mikluko/changelog@v2 does not resolve: since 2.0.0 there is no action.yaml at the root.
  • @v1 stays at v1.6.0 (7ec45bb) for good, and so does a pin of that SHA: neither gets the check.

The six repositories

Read from the forge, read only (GET /repos/mikluko/<repo>/contents/.forgejo/workflows). "Gets the check" means: it runs the validate action at v2.1.0 or later.

Repository Reference today Gets the check on release? What it must change
gascitypacks .../changelog/actions/validate@v2 at release.yaml:40 and test.yaml:91 Yes, by itself Nothing. Its release step is gated on due (release.yaml:42), so a held release stays untagged.
rexcity .../changelog/actions/validate@v2 at release.yaml:47, renovate.yaml:46 and test.yaml:59 (warn: missing-fragment) Yes, by itself Nothing for the action. renovate.yaml:21 pins the Go tool as CHANGELOG_TOOL: .../changelog/v2/cmd/changelog@v2.0.1; it is used by append and release (lines 72-73) and has no bearing on the check, so bump it only to follow.
kuberex https://sarak.sh/mikluko/changelog@v1 at release.yaml:52 (with warn: date-mismatch, lines 53-54) and test.yaml:72 (same warn); writers .../changelog/append@v1 at renovate.yaml:95, :106, :117 and .../changelog/release@v1 at :124 No: @v1 is frozen Change release.yaml:52 and test.yaml:72 to https://sarak.sh/mikluko/changelog/actions/validate@v2. This is the 1.x to 2.x migration of README: fragments are on by default and missing-fragment fails a pull request with no note, so either keep fragments: "" on each invocation or adopt .changelog/. Decide for release.yaml whether warn: date-mismatch should also name pending-date-mismatch: kuberex runs its release on a schedule as well as on push (release.yaml:15-17). The writers can follow to actions/append@v2 and actions/release@v2, which the check does not need.
baox https://sarak.sh/mikluko/changelog@v1 at ci.yaml:42 and release.yaml:45 (with error: prerelease-entry, lines 46-47) No: @v1 is frozen Change both to https://sarak.sh/mikluko/changelog/actions/validate@v2, with the same fragments decision as kuberex. release.yaml runs on every push to main and uses the action's due for the version cut (release.yaml:36, :88, :128).
claudeacp https://sarak.sh/mikluko/changelog@7ec45bb55aa1f616830ac301fa777d27af0d73ab # v1.6.0 at ci.yml:84 and release.yaml:38 No: the SHA is the v1.6.0 commit Change both to https://sarak.sh/mikluko/changelog/actions/validate@<the SHA of the v2.1.0 commit> # v2.1.0 (its pin policy is by commit, release.yaml:4), and take the fragments decision as above. Then remove the guard from claudeacp#5: the comment at release.yaml:39-45 and the step "Heading date is the commit's own date" at release.yaml:46-61. It does by hand what the check does: it compares the heading's date with git log -1 --format=%cd of HEAD and refuses to tag.
changelog (this repository) ./actions/validate at .forgejo/workflows/release.yaml:192; ci.yaml runs go run ./cmd/changelog at :79 Yes, from this merge Nothing. The release workflow's first step already runs the check on the tree.

claudeacp's guard can only go once its pin is on this release: with the v1.6.0 pin, due is true on a mismatched date and the guard is the only thing holding the tag.

Checklist

  • .changelog/ gained a fragment carrying this change's notes, or this change needs none. This change is the release: it consumes the fragment of #41 into CHANGELOG.md, which is what README says only a release writes.
  • AI assistance is declared below.

AI assistance

Claude Code (Claude Sonnet 5.5) worked this change as a Worker of the city: it ran the release tool, read the six repositories on the forge, and wrote this description. The commit carries a Co-Authored-By: trailer.

🤖 Generated with Claude Code

Bead: changelog-y7x

**Merge this on 2026-11-12 UTC, which ends at 01:00 on 2026-11-13 in CET.** The heading is dated 2026-11-12. If the merge commit lands on a later UTC day, `pending-date-mismatch` holds the release and a pull request has to correct the date first (see "The day" below). ## What and why Cuts **2.1.0**, the release of the `pending-date-mismatch` check merged in #41 (bead changelog-y7x, defect changelog-o91). The check is meant to reach the consumers of `@v2` from a release they can pin, instead of each of six workflows re-implementing it. The release is cut the way README "Releasing" and the commit of 2.0.1 (#40) cut one: `go run ./cmd/changelog release` folded `.changelog/pending-date-mismatch.md` into `CHANGELOG.md` and deleted it, and `actions/VERSION` names the same version. The diff is those three files. ### The version, and why The tool computes **2.1.0** (`version=2.1.0`, `prerelease=false`). Its bump table makes a minor of a fragment with an `Added` and a `Changed` section and no `Breaking` section or `**Breaking:**` note. Run on this tree, the validator reports `valid=true`, `due=true`, `already-tagged=false`, `latest-tag=v2.0.1`, and `go test ./...` passes. A check that is new and an error by default can turn a consumer's green run red, and these rules still call it a minor release: it fires only when a release is due and the heading's date is not the day the tag will carry. Such a release was already doomed, because once it was tagged `date-mismatch` failed it and `release-entry-modified` forbade the repair. Only the moment of the failure moves, from after the tag to before it. I did not add a `**Breaking:**` note: it would make the tool compute 3.0.0, which `@v2` consumers would never follow, which defeats the point of this release. If you judge it breaking, say so; it is a one-line fragment and a re-run of the tool. ## The day `pending-date-mismatch` compares the newest untagged entry's date with the committer date of `HEAD`, in the offset `HEAD` records, which is the day a lightweight tag cut there carries. When this pull request merges, `HEAD` is its merge commit. Earlier merges of this repository record `+0000` (#40 at 11:02:29 +0000, #41 at 13:39:41 +0000), so the day compared is the UTC day of the merge. - The entry says **2026-11-12**. For the release run not to be held by `pending-date-mismatch`, and for the tag not to leave `date-mismatch` red, the merge commit has to be dated 2026-11-12 in its recorded offset, i.e. merged before 2026-11-13 00:00 UTC. Written at 13:50 UTC, that leaves about ten hours. - Nothing else may land on `main` between the merge and the dispatch unless it is dated the same day: the tag is cut on `HEAD` of the dispatch's checkout, and the check reads that commit, not the merge commit. - The day of the dispatch itself does not matter, only the day of `HEAD`. - If the merge is late: nothing is tagged. The workflow's first step sees `due=false` (the reason is the check's message), tries to fold again, and refuses, because `[Unreleased]` and `.changelog/` are empty. Repair it with a pull request that dates the 2.1.0 heading with the day the merge commit of *that* pull request will carry, and merge it that day. ## After the merge The release workflow (`.forgejo/workflows/release.yaml`) runs only on `workflow_dispatch`. A pull request cannot start it, and I did not. 1. **Dispatch it** from `main`, with the input `version` empty (or `2.1.0`). The newest entry is already due, so the run resumes at the tag instead of folding: it validates, tests the tree, builds four binaries, pushes the tag `v2.1.0`, publishes the release with the binaries and `checksums.txt`, smoke-tests the published actions, then moves `v2`. 2. **Who:** anyone with write access to `mikluko/changelog`, from the Actions tab (Run workflow, branch `main`). The city's forge account `city-root` has `push: true` on the repository (read from `GET /repos/mikluko/changelog`, `admin: false`), which is what the Forgejo endpoint `POST /api/v1/repos/mikluko/changelog/actions/workflows/release.yaml/dispatches` with `{"ref":"main","inputs":{"version":""}}` asks for. I have not called it, so that is read from the permission, not observed. 3. The tag reaches GitHub through the push mirror, and `mirror-release.yaml` there copies the release and its assets. ### What moves - `v2.1.0` is created. `v2.0.0` and `v2.0.1` never move. - `v2` moves from the v2.0.1 commit to the v2.1.0 commit (`git tag -f v2`, forced push), and it is the only moving tag. There is no `v2.1`: the workflow cuts `vX.Y.Z` and `vMAJOR` only. - `https://sarak.sh/mikluko/changelog/actions/validate@v2` follows by itself, since Forgejo resolves the tag on each run, and `actions/VERSION` at that commit makes the action download the 2.1.0 binary. The old spelling `https://sarak.sh/mikluko/changelog@v2` does not resolve: since 2.0.0 there is no `action.yaml` at the root. - `@v1` stays at v1.6.0 (`7ec45bb`) for good, and so does a pin of that SHA: neither gets the check. ## The six repositories Read from the forge, read only (`GET /repos/mikluko/<repo>/contents/.forgejo/workflows`). "Gets the check" means: it runs the `validate` action at v2.1.0 or later. | Repository | Reference today | Gets the check on release? | What it must change | |---|---|---|---| | gascitypacks | `.../changelog/actions/validate@v2` at `release.yaml:40` and `test.yaml:91` | Yes, by itself | Nothing. Its release step is gated on `due` (`release.yaml:42`), so a held release stays untagged. | | rexcity | `.../changelog/actions/validate@v2` at `release.yaml:47`, `renovate.yaml:46` and `test.yaml:59` (`warn: missing-fragment`) | Yes, by itself | Nothing for the action. `renovate.yaml:21` pins the Go tool as `CHANGELOG_TOOL: .../changelog/v2/cmd/changelog@v2.0.1`; it is used by `append` and `release` (lines 72-73) and has no bearing on the check, so bump it only to follow. | | kuberex | `https://sarak.sh/mikluko/changelog@v1` at `release.yaml:52` (with `warn: date-mismatch`, lines 53-54) and `test.yaml:72` (same `warn`); writers `.../changelog/append@v1` at `renovate.yaml:95`, `:106`, `:117` and `.../changelog/release@v1` at `:124` | No: `@v1` is frozen | Change `release.yaml:52` and `test.yaml:72` to `https://sarak.sh/mikluko/changelog/actions/validate@v2`. This is the 1.x to 2.x migration of README: fragments are on by default and `missing-fragment` fails a pull request with no note, so either keep `fragments: ""` on each invocation or adopt `.changelog/`. Decide for `release.yaml` whether `warn: date-mismatch` should also name `pending-date-mismatch`: kuberex runs its release on a schedule as well as on push (`release.yaml:15-17`). The writers can follow to `actions/append@v2` and `actions/release@v2`, which the check does not need. | | baox | `https://sarak.sh/mikluko/changelog@v1` at `ci.yaml:42` and `release.yaml:45` (with `error: prerelease-entry`, lines 46-47) | No: `@v1` is frozen | Change both to `https://sarak.sh/mikluko/changelog/actions/validate@v2`, with the same fragments decision as kuberex. `release.yaml` runs on every push to `main` and uses the action's `due` for the version cut (`release.yaml:36`, `:88`, `:128`). | | claudeacp | `https://sarak.sh/mikluko/changelog@7ec45bb55aa1f616830ac301fa777d27af0d73ab # v1.6.0` at `ci.yml:84` and `release.yaml:38` | No: the SHA is the v1.6.0 commit | Change both to `https://sarak.sh/mikluko/changelog/actions/validate@<the SHA of the v2.1.0 commit> # v2.1.0` (its pin policy is by commit, `release.yaml:4`), and take the fragments decision as above. Then **remove the guard from claudeacp#5**: the comment at `release.yaml:39-45` and the step "Heading date is the commit's own date" at `release.yaml:46-61`. It does by hand what the check does: it compares the heading's date with `git log -1 --format=%cd` of `HEAD` and refuses to tag. | | changelog (this repository) | `./actions/validate` at `.forgejo/workflows/release.yaml:192`; `ci.yaml` runs `go run ./cmd/changelog` at `:79` | Yes, from this merge | Nothing. The release workflow's first step already runs the check on the tree. | claudeacp's guard can only go once its pin is on this release: with the v1.6.0 pin, `due` is true on a mismatched date and the guard is the only thing holding the tag. ## Checklist - [x] `.changelog/` gained a fragment carrying this change's notes, or this change needs none. This change is the release: it consumes the fragment of #41 into `CHANGELOG.md`, which is what README says only a release writes. - [x] AI assistance is declared below. ## AI assistance Claude Code (Claude Sonnet 5.5) worked this change as a Worker of the city: it ran the release tool, read the six repositories on the forge, and wrote this description. The commit carries a `Co-Authored-By:` trailer. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Bead: changelog-y7x
release: 2.1.0 (changelog-y7x)
All checks were successful
CI / test (pull_request) Successful in 16s
CI / lint (pull_request) Successful in 26s
4b09a00c85
Cuts 2.1.0 from the fragment changelog#41 left, as README "Releasing" says a
version is cut: the fragment folded into CHANGELOG.md with the tool itself
(go run ./cmd/changelog release), at the version the tool computes, and
actions/VERSION naming the same one. The fragment carries an Added and a Changed
section and no Breaking note, so the tool bumps the minor, 2.0.1 to 2.1.0.

The heading is dated 2026-11-12, today in UTC. pending-date-mismatch compares it
with the committer date of the commit that lands on main, so the pull request
has to merge on 2026-11-12 UTC, or the date has to be corrected first.

Validation: the changelog validates with valid=true and due=true on this tree,
and go test ./... passes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
city-root-review left a comment

Review of 4b09a00c85 for changelog-y7x. Checks of the head: success.

Verdict

pass

Findings

  • [minor] PR description, "The day": if the merge does land on a later UTC day, the push to main also turns CI's "Validate the changelog" step red (valid=false from pending-date-mismatch), as well as holding the release. That fits the repair the description gives (a pull request re-dating the heading), but it is worth knowing before the merge. No change needed.

Verified

  • Requirement: work bead changelog-y7x and the PR description. The description covers every "Wanted" item: the version and why it is minor, the UTC day at the top, the dispatch after the merge with its inputs and who may start it, the tags that move, the six repositories, and the checklist and AI note.
  • Diff: three files (.changelog/pending-date-mismatch.md deleted, CHANGELOG.md gains [2.1.0] - 2026-11-12 and its link references, actions/VERSION 2.0.1 → 2.1.0), the same shape as the 2.0.1 release in #40. main has no REVIEW.md, AGENTS.md or CLAUDE.md; README "Releasing" and "Contributing" checked.
  • Version: running go run ./cmd/changelog release -fragments .changelog -date 2026-11-12 on origin/main (9b1282d) and writing actions/VERSION gives a tree identical to the head. The tool computes 2.1.0: an Added and a Changed section and no Breaking note make a minor in the README's bump table.
  • Merge into origin/main: a clean fast-forward; the forge reports mergeable.
  • On the merged tree, with the city's variables removed: go build ./..., go vet ./..., go test ./... and go test -race ./... pass; go run ./cmd/gen-readme leaves README.md unchanged; go run ./cmd/changelog -fragments .changelog with -base main and with no base gives valid=true version=2.1.0 already-tagged=false latest-tag=v2.0.1 due=true, exit 0. golangci-lint, govulncheck and actionlint not run locally (they need the network); they passed in the head's CI and the diff touches no code.
  • The day: on an empty commit over the head with committer date 2026-11-13T00:30+0000, the check says due=false with "version 2.1.0 is dated 2026-11-12 and a tag cut on HEAD would carry 2026-11-13". With 2026-11-12T23:30+0000 it says due=true. Earlier merges on main record +0000. This confirms the description's warning: merge before 2026-11-13 00:00 UTC.
  • After the merge: .forgejo/workflows/release.yaml agrees with the description. The before step sees due=true, so fold, VERSION and commit are skipped and the run resumes at the tag; the version input is unused on that path; it cuts v2.1.0 and force-moves only v2. v1 and v1.6.0 are 7ec45bb; v2 and v2.0.1 are c19d67d.
  • The six repositories, read on the forge: every file and line in the table matches (gascitypacks release.yaml:40 and test.yaml:91; rexcity release.yaml:47, renovate.yaml:21/46/72-73 and test.yaml:59/61; kuberex release.yaml:52/54, test.yaml:72/74 and renovate.yaml:95/106/117/124; baox ci.yaml:42 and release.yaml:45/47; claudeacp ci.yml:84 and release.yaml:38, with the claudeacp#5 guard's comment at 39-45 and its step at 46-61).
Review of 4b09a00c8556deb168f55a24c3bcc118b13cf4ed for changelog-y7x. Checks of the head: success. ### Verdict pass ### Findings - [minor] PR description, "The day": if the merge does land on a later UTC day, the push to `main` also turns CI's "Validate the changelog" step red (`valid=false` from `pending-date-mismatch`), as well as holding the release. That fits the repair the description gives (a pull request re-dating the heading), but it is worth knowing before the merge. No change needed. ### Verified - Requirement: work bead changelog-y7x and the PR description. The description covers every "Wanted" item: the version and why it is minor, the UTC day at the top, the dispatch after the merge with its inputs and who may start it, the tags that move, the six repositories, and the checklist and AI note. - Diff: three files (`.changelog/pending-date-mismatch.md` deleted, `CHANGELOG.md` gains `[2.1.0] - 2026-11-12` and its link references, `actions/VERSION` 2.0.1 → 2.1.0), the same shape as the 2.0.1 release in #40. `main` has no REVIEW.md, AGENTS.md or CLAUDE.md; README "Releasing" and "Contributing" checked. - Version: running `go run ./cmd/changelog release -fragments .changelog -date 2026-11-12` on `origin/main` (9b1282d) and writing `actions/VERSION` gives a tree identical to the head. The tool computes 2.1.0: an `Added` and a `Changed` section and no Breaking note make a minor in the README's bump table. - Merge into `origin/main`: a clean fast-forward; the forge reports `mergeable`. - On the merged tree, with the city's variables removed: `go build ./...`, `go vet ./...`, `go test ./...` and `go test -race ./...` pass; `go run ./cmd/gen-readme` leaves README.md unchanged; `go run ./cmd/changelog -fragments .changelog` with `-base main` and with no base gives `valid=true version=2.1.0 already-tagged=false latest-tag=v2.0.1 due=true`, exit 0. golangci-lint, govulncheck and actionlint not run locally (they need the network); they passed in the head's CI and the diff touches no code. - The day: on an empty commit over the head with committer date 2026-11-13T00:30+0000, the check says `due=false` with "version 2.1.0 is dated 2026-11-12 and a tag cut on HEAD would carry 2026-11-13". With 2026-11-12T23:30+0000 it says `due=true`. Earlier merges on `main` record +0000. This confirms the description's warning: merge before 2026-11-13 00:00 UTC. - After the merge: `.forgejo/workflows/release.yaml` agrees with the description. The `before` step sees `due=true`, so fold, VERSION and commit are skipped and the run resumes at the tag; the `version` input is unused on that path; it cuts `v2.1.0` and force-moves only `v2`. `v1` and `v1.6.0` are 7ec45bb; `v2` and `v2.0.1` are c19d67d. - The six repositories, read on the forge: every file and line in the table matches (gascitypacks release.yaml:40 and test.yaml:91; rexcity release.yaml:47, renovate.yaml:21/46/72-73 and test.yaml:59/61; kuberex release.yaml:52/54, test.yaml:72/74 and renovate.yaml:95/106/117/124; baox ci.yaml:42 and release.yaml:45/47; claudeacp ci.yml:84 and release.yaml:38, with the claudeacp#5 guard's comment at 39-45 and its step at 46-61).
Sign in to join this conversation.
No description provided.