From 70b82dddea655ec3ae8088afa193ba1d94a0cbfe Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 21:15:27 -0800 Subject: [PATCH] templates: one versioning rule for every product repo Danny ruled on 2026-11-24 that Homer's versioning approach is the rule for every Zero State repository, and that every version gets its own CHANGELOG section, release candidates included. templates/versioning.md states the rule: one SemVer product version per repo, Keep a Changelog with Unreleased first and a section per version, newest first; a release pull request; only a human tags; release notes from the CHANGELOG; and a CI check in each repo's own tooling. Existing repos adopt it at their next release without rewriting history. CHANGELOG.md.template is the starting file. The templates README, the pack CI's required files, DECISIONS.md, and pointers in STATUS.md and HANDOFF.md link to it. Homer is the worked example; its scripts stay in Homer. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0163byfY7LtZb3RYw4bGHHCj --- .github/workflows/ci.yml | 2 ++ DECISIONS.md | 23 ++++++++++++++ HANDOFF.md | 2 ++ STATUS.md | 1 + templates/CHANGELOG.md.template | 12 +++++++ templates/README.md | 10 +++++- templates/versioning.md | 55 +++++++++++++++++++++++++++++++++ 7 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 templates/CHANGELOG.md.template create mode 100644 templates/versioning.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4854ade..77e0e25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,8 @@ jobs: templates/spec-Workflows-section.md.template templates/sdlc/README.md templates/README.md + templates/versioning.md + templates/CHANGELOG.md.template scripts/check-agents-md.sh scripts/check-rule-files.py ) diff --git a/DECISIONS.md b/DECISIONS.md index 20330b9..29b7d6b 100644 --- a/DECISIONS.md +++ b/DECISIONS.md @@ -1,5 +1,28 @@ # Decisions +## 2026-11-24 — One versioning rule for every product repo + +**Decision:** Every Zero State product repository has one SemVer product +version and a Keep a Changelog `CHANGELOG.md` with a section for every +version, release candidates included. A release is a pull request, only a +human tags, and release notes come from the CHANGELOG. Danny ruled this on +2026-11-24. The rule is [`templates/versioning.md`](templates/versioning.md). + +**Why:** Homer's audit of `main` found no versions, tags or releases, so +nothing could say which code was running. Danny accepted Homer's versioning +spec (Homer #74, #75), then ruled that a release candidate gets its own +CHANGELOG section and that this is the rule for every repository. + +**Implications:** + +- Each repository adopts it at its next release, with a CI check in its own + tooling. Tags and history are not rewritten. +- Homer is the worked example: `specs/versioning/spec.md`, ADR 012, and + `scripts/check-versions.mjs`. Do not copy its scripts into this pack. +- Repository-specific versioning, such as build metadata or a version + endpoint, goes in that repository's spec. +- An exception needs its own dated entry here. + ## 2026-11-21 — Homer exception: Pocock `/to-tickets` and `/implement-spec` **Decision:** In `Zero-State-LLC/Homer` only, Matt Pocock's `/to-tickets` diff --git a/HANDOFF.md b/HANDOFF.md index 2222379..d4b4365 100644 --- a/HANDOFF.md +++ b/HANDOFF.md @@ -1,5 +1,7 @@ # Handoff +**2026-11-24 — versioning rule (pointer only; not the baton).** Every product repo follows [`templates/versioning.md`](templates/versioning.md) from its next release: one SemVer version, a CHANGELOG section for every version (release candidates included), human-only tags. Dated lock in `DECISIONS.md`. Live team baton below is unchanged. + **2026-09-04 — templates canon (pointer only; not the baton).** Product-repo collab files live in [`templates/`](templates/) (`intent.md` stage-0, slim `AGENTS.md`, Workflows). Dated lock in `DECISIONS.md`. Live team baton below is unchanged. Updated: 2026-10-30 (later) by Claude (Claude Code session for the owner). **SS: D-114 corner pursuit shipped; D-115 and D-116 wait on Danny's code-owner review.** diff --git a/STATUS.md b/STATUS.md index 39874b0..6bcf429 100644 --- a/STATUS.md +++ b/STATUS.md @@ -16,6 +16,7 @@ Prior: 2026-08-26 — SUAS `#81` (`5f49b49`): every CASE_COMMANDS verb + settlem ## In flight (org) +- **Versioning rule** — [`templates/versioning.md`](templates/versioning.md), decided by Danny 2026-11-24. Homer has adopted it; every other product repo adopts it at its next release, with its own CI check. - **Shared agent context** — this repo. Installed on Daniel's machine for Grok, Claude, and Cursor (`install.sh`: user-level rule `alwaysApply` + skill). Prabu installed 2026-08-21 into `~/.claude`/`~/.grok`. Issue #1 confirmed. Canonical product-repo pack: [`templates/`](templates/) (`intent.md` stage-0). CI on PR #2: pack check only; Noema Worker/pages pin workflows removed; CodeQL dropped (no JS/Python source; Code Security not enabled). - **GitHub Code Security** — enabled on every Zero-State-LLC repository. New-repo org defaults still off (CLI lacks `admin:org`). - **Partner in-game Admin** — GitHub org admin granted. Locked Admin mailbox `prabu.openclaw@gmail.com` live (`Noema#448`). Inhabit is a separate agent via CONNECT. RFC-0120. diff --git a/templates/CHANGELOG.md.template b/templates/CHANGELOG.md.template new file mode 100644 index 0000000..15a8c17 --- /dev/null +++ b/templates/CHANGELOG.md.template @@ -0,0 +1,12 @@ +# Changelog + +All notable changes to {{PRODUCT}} are recorded here. Format: +[Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions: +[SemVer](https://semver.org/). Rules: the Zero State versioning rule +(`Zero-State-LLC/agent-context`, `templates/versioning.md`). + +## Unreleased + +### Added + +- {{FIRST_CHANGE}} diff --git a/templates/README.md b/templates/README.md index 4a99ed1..649c547 100644 --- a/templates/README.md +++ b/templates/README.md @@ -16,6 +16,8 @@ runbooks. Do not dump another repo's Worker deploy or pin workflows here. | [`CLAUDE.md.template`](CLAUDE.md.template) | Thin adapter. Claude reads this and follows `AGENTS.md`. | | [`AGENT-GOTCHAS.md.template`](AGENT-GOTCHAS.md.template) | Long environment notes. Not the contract. | | [`spec-Workflows-section.md.template`](spec-Workflows-section.md.template) | `## Workflows` lock for `spec.md`. | +| [`versioning.md`](versioning.md) | The versioning rule every product repo follows: one SemVer version, a CHANGELOG section per version, human-only tags. | +| [`CHANGELOG.md.template`](CHANGELOG.md.template) | A starting `CHANGELOG.md` in Keep a Changelog form. | Codex and Cursor already read `AGENTS.md`. If a harness still wants its own file, copy the same one-liner as `CLAUDE.md` (for example `CODEX.md`). @@ -49,7 +51,10 @@ Then in the product repo: Add one owner specialist only if that skill already exists. Name Actions this repo already runs or will add; do not invent bots. 6. Read [`sdlc/README.md`](sdlc/README.md) before specifying or implementing. -7. Optional size check: +7. Adopt the [versioning rule](versioning.md): copy + [`CHANGELOG.md.template`](CHANGELOG.md.template) to `CHANGELOG.md` if + there is none, and add the CI check the rule names. +8. Optional size check: ```bash cp ~/agent-context/scripts/check-agents-md.sh "$DEST/scripts/" @@ -71,3 +76,6 @@ The check fails if `AGENTS.md` is missing, larger than 12 KB, or has no spend, and legal. - If CI or tests look wrong, open a labeled defect. Do not patch tests to green. - No agent fleets. ECC catalog-only: name existing skills, do not invent them. +- One SemVer product version per repo, and a CHANGELOG section for every + version, release candidates included ([`versioning.md`](versioning.md)). + Only a human tags. diff --git a/templates/versioning.md b/templates/versioning.md new file mode 100644 index 0000000..76fe58b --- /dev/null +++ b/templates/versioning.md @@ -0,0 +1,55 @@ +# Zero State versioning rule + +Every Zero State product repository follows this rule. Danny decided it on +2026-11-24 (see `DECISIONS.md`). Homer was the first to adopt it, with its +versioning spec and ADR 012 (`Zero-State-LLC/Homer`, `specs/versioning/`). +Read those for a worked example. Do not copy Homer's scripts here. + +## The rule + +1. **One product version per repository.** It is a SemVer 2.0.0 version in + the repository's own manifest (`package.json`, `pyproject.toml`, + `Cargo.toml`, the app's marketing version, and so on). Every package or + module inside the repository has the same version. A contract or schema + keeps its own version, separate from the product version. +2. **SemVer bumps.** From `1.0.0`, a breaking change is a major bump, an + addition a minor one, and fixes alone a patch. In `0.x`, a breaking change + or an addition is a minor bump, and fixes alone a patch. +3. **A `CHANGELOG.md` in [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/) + form.** + - `## Unreleased` comes first. + - Each version has a section of its own, `## [X.Y.Z] - YYYY-MM-DD`, + newest first. Every version above `0.0.0` gets one, a release candidate + included (`## [1.2.0-rc.1] - YYYY-MM-DD`). + - A section lists what changed since the version before it. + - A section holds only these subsections: `### Added`, `### Changed`, + `### Deprecated`, `### Removed`, `### Fixed` and `### Security`. No entry + sits outside one. + - A change a user or another repository would notice gets a line under + Unreleased in the pull request that makes it. +4. **A release is a pull request.** The release pull request, `release: + vX.Y.Z`, sets the version and turns Unreleased into that version's + section, then opens a new, empty Unreleased. +5. **Only a human tags.** After the release pull request merges, Danny, or + the human owner the repository names, tags the merge commit with an + annotated `vX.Y.Z` tag and pushes it. Agents never push a tag. A release + candidate, `vX.Y.Z-rc.N`, is prepared and tagged the same way. +6. **Release notes come from the CHANGELOG.** A GitHub Release's notes are + that version's CHANGELOG section, not a rewrite of it. +7. **CI checks it.** Each repository's CI fails when its versions disagree, + when the CHANGELOG breaks rule 3, or when the version above `0.0.0` has no + section. Use the repository's own tooling for the check. + +## Adopting it in an existing repository + +- Add `CHANGELOG.md` from [`CHANGELOG.md.template`](CHANGELOG.md.template) + if the repository has none, and the CI check. +- Do not rewrite tags or history. Versions before adoption keep whatever + record they have; the first section under the rule is the next version. +- A repository already on another scheme moves to this one at its next + release. Record the move under that release's `### Changed`. +- A repository-specific need, such as build metadata (`1.2.0+a1b2c3d`) or a + deployed service reporting its version, goes in that repository's spec. It + does not change this rule. +- An exception to this rule needs its own dated entry in `DECISIONS.md`, + like any other team rule.