diff --git a/AGENTS.md b/AGENTS.md index 1358d9ed..743ce437 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -208,7 +208,7 @@ never to dense data UI, tables, forms, dialogs, buttons, or shadcn-styled surfac **Pre-deploy dash gate**: before any production build, release version bump, or deploy, run the `dash-sanitize` skill (`/home/jason/.agents/skills/dash-sanitize/SKILL.md`) and show its verification output (re-scan classification + filtered tsc) before proceeding. A dirty user-facing dash scan pauses the release; a clean re-scan on an already-swept tree takes seconds and should still be run rather than assumed. -**Version bumps and release tags: `main` deploys only**: whenever a `/git` or `/git-master` workflow lands work on `main` (or a deploy is being cut), bump the version with `bun pm version patch --message "v%s - "` and push it together with the work. `` is a short comma-separated summary of what the release ships (derived from the commits just created), e.g. `v0.2.4 - add voicelines, update git rules` (never a bare version number). The command itself creates the `vX.Y.Z` version commit **and** a local git tag. `push.followTags` is set in this repo, so a plain `git push` automatically carries the annotated release tag with the commits, but never use a bare `git push --tags`, which sends only tags and not the branch. **Order that makes deploys readable**: cut the release (version bump + tag) FIRST via `bun pm version`, THEN run `/changelog --save` with no arguments (it auto-resolves the two most recent tags), commit the changelog, and push last. Bumping last leaves a `docs: add vX.Y.Z changelog entry` commit as the pushed tip, so the Coolify deploy list shows that instead of the release descriptor; bumping first makes the descriptive version commit the tip and the changelog still ships, one commit behind the tag. **Feature branches must never bump versions or push release tags**: parallel branches bumping the same semver line desync `package.json` from the tags that actually deploy, and at merge time the version history no longer matches what shipped. Release tags exist solely to mark `main` deploys. The deployed site's version overlay reads `package.json`'s `version` (Coolify builds have no git metadata, so the displayed version is `+`), and an unbumped semver means every deploy shows the same `0.2.0`-style number even though the commit-hash suffix changes. Skipping the bump on a `main` deploy (or pushing the deploy commit without its tag) makes releases indistinguishable and breaks version history. +**Version bumps and release tags: `main` deploys only**: whenever a `/git` or `/git-master` workflow lands work on `main` (or a deploy is being cut), bump the version with `bun pm version patch --message "v%s - "` and push it together with the work. `` is a short comma-separated summary of what the release ships (derived from the commits just created), e.g. `v0.2.4 - add voicelines, update git rules` (never a bare version number). The command itself creates the `vX.Y.Z` version commit **and** a local git tag. `push.followTags` is set in this repo, so a plain `git push` automatically carries the annotated release tag with the commits, but never use a bare `git push --tags`, which sends only tags and not the branch. **Order that makes deploys readable**: commit the work, then commit the changelog entry for the range, then cut the release (version bump + tag) LAST via `bun pm version`, and push last. The version-bump commit is the pushed tip, so the Coolify deploy list shows the release descriptor rather than `docs: add vX.Y.Z changelog entry`. Because the changelog commit comes before the bump, the new tag does not exist yet, so generate the entry with explicit tags (`/changelog --save`) or write it by hand (see `CHANGELOG.md`); `/changelog --save` with no arguments resolves the two most recent tags and can only run after the bump, which would place the changelog commit on top. **Feature branches must never bump versions or push release tags**: parallel branches bumping the same semver line desync `package.json` from the tags that actually deploy, and at merge time the version history no longer matches what shipped. Release tags exist solely to mark `main` deploys. The deployed site's version overlay reads `package.json`'s `version` (Coolify builds have no git metadata, so the displayed version is `+`), and an unbumped semver means every deploy shows the same `0.2.0`-style number even though the commit-hash suffix changes. Skipping the bump on a `main` deploy (or pushing the deploy commit without its tag) makes releases indistinguishable and breaks version history. ## Gotchas