Skip to content

[Build] Align workspace SemVer, CHANGELOG, and Homebrew release baseline - #570

Merged
samzong merged 4 commits into
mainfrom
build/align-semver-release-baseline
Nov 25, 2026
Merged

samzong merged 4 commits into
mainfrom
build/align-semver-release-baseline

Conversation

@samzong

@samzong samzong commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Align workspace package versions at 0.0.16, enforce strict SemVer and workspace parity in prepare-release, align CHANGELOG.md and scripts/generate-release-notes.mjs, normalize clawwork-ai/ClawWork slugs, and update scripts/update-homebrew-tap.sh in-place.

Type of change

  • [Feat] new feature
  • [Fix] bug fix
  • [UI] UI or UX change
  • [Docs] documentation-only change
  • [Refactor] internal cleanup
  • [Build] CI, packaging, or tooling change
  • [Chore] maintenance

Why is this needed?

At 2239a01, .github/workflows/release.yml checked only packages/desktop/package.json (0.0.16), root package.json had no version field, and five workspace packages stayed at 0.1.0. CHANGELOG.md omitted releases v0.0.1 through v0.0.16, release workflows hardcoded lowercase clawwork-ai/clawwork, and scripts/update-homebrew-tap.sh overwrote Casks/clawwork.rb with a heredoc.

What changed?

  • Added scripts/verify-release-version.mjs and pnpm check:version to enforce strict SemVer (vX.Y.Z or vX.Y.Z-(alpha|beta|rc).N, no leading zeros), tagged commit SHA parity, and lockstep 0.0.16 versions across root package.json and all six workspace packages.
  • Updated .github/workflows/release.yml (prepare-release and publish-release-notes) and .github/workflows/pr-check.yml to enforce workspace version parity, prefer CHANGELOG.md entries for stable releases, stop empty release bodies, and pass --prerelease on prerelease tags.
  • Backfilled CHANGELOG.md from v0.0.1 through v0.0.16 under Keep a Changelog with an [Unreleased] section and updated scripts/generate-release-notes.mjs to anchor git describe to valid v[0-9]* SemVer tags and support Keep a Changelog output and extraction.
  • Normalized clawwork-ai/clawwork to clawwork-ai/ClawWork across .github/workflows/release.yml, .github/workflows/update-homebrew.yml, scripts/update-homebrew-tap.sh, packages/desktop/electron-builder.yml, packages/desktop/package.json, and .claude/skills/release-publish/SKILL.md.
  • Updated scripts/update-homebrew-tap.sh and .github/workflows/update-homebrew.yml to update version, sha256, and canonical repository URLs in-place without discarding livecheck, zap, or maintainer stanzas, and to skip prerelease tags across both release and workflow_dispatch.
  • Added unit and fault-injection tests in packages/desktop/test/release-scripts.test.ts and updated release documentation in DEVELOPMENT.md and .claude/skills/release-publish/SKILL.md.

Architecture impact

  • Owning layer: repository build, CI workflows, and release tooling (scripts/, .github/workflows/, workspace manifests).
  • Cross-layer impact: none. packages/pwa/vite.config.ts now reads 0.0.16 from packages/pwa/package.json.
  • Invariants touched from docs/architecture-invariants.md: none.
  • Why those invariants remain protected: no application runtime, IPC, session key, or persistence paths changed.

Linked issues

Closes #569

Validation

  • pnpm lint
  • pnpm test
  • pnpm build (pnpm --filter @clawwork/desktop build)
  • pnpm check:ui-contract (verified in remote PR Check / quality)
  • Manual smoke test
  • Not run

Commands and acceptance evidence at 455737d691894d3c8e75d26208a82db31f845a01:

pnpm --config.verifyDepsBeforeRun=false check:version -> Workspace manifests aligned at version 0.0.16 (7 files)
pnpm --config.verifyDepsBeforeRun=false --filter @clawwork/desktop exec vitest run test/release-scripts.test.ts -> 14 passed (14)
pnpm --config.verifyDepsBeforeRun=false lint && format:check && typecheck && typecheck:tests && typecheck:e2e -> passed
pnpm --config.verifyDepsBeforeRun=false test -> passed (shared, core, desktop 400 across 56 files, pwa)
pnpm --config.verifyDepsBeforeRun=false --filter @clawwork/desktop build -> passed
node scripts/check-architecture.mjs -> Architecture guardrails passed (4 rules, 0 violations)
macOS TMPDIR cleanup fault injection on scripts/update-homebrew-tap.sh -> BROKEN_TRAP_LEFTOVERS=1 vs FIXED_ON_FAIL_LEFTOVERS=0
Remote CI (PR Check, E2E Tests, Website/build, CI Bot) -> 12 passed, 0 failed, 1 skipped (Website/deploy)
version_audit.py -> step1_gate: match, prerelease_support: match (3 expected pre-existing/scope findings: historical `dev` tag, pre-PR `v0.0.16` root manifest, kept `update-homebrew.yml`)

Unverified items:

  • Live GitHub Actions workflow execution of .github/workflows/release.yml and .github/workflows/update-homebrew.yml (tag push / release publication) and live push to clawwork-ai/homebrew-clawwork await a future authorized release.
  • Local knip check in worktrees scans the gitignored .local/ directory; remote PR Check / quality runs knip cleanly without .local/ and passed.

Screenshots or recordings

Not applicable. No renderer or UI files changed.

Release note

  • No user-facing change. Release note is NONE.
  • User-facing change. Release note is included below.
NONE

Checklist

  • All commits are signed off (git commit -s)
  • The PR title uses at least one approved prefix: [Feat], [Fix], [UI], [Docs], [Refactor], [Build], or [Chore]
  • The summary explains both what changed and why
  • Validation reflects the commands actually run for this PR
  • Architecture impact is described and references any touched invariants
  • Cross-layer changes are explicitly justified
  • The release note block is accurate

Signed-off-by: samzong <samzong.lu@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Hi @samzong,
Thanks for your pull request!
If the PR is ready, use the /auto-cc command to assign Reviewer to Review.
We will review it shortly.

Details

Instructions for interacting with me using comments are available here.
If you have questions or suggestions related to my behavior, please file an issue against the gh-ci-bot repository.

Execution log

Open the execution log

@github-actions github-actions Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines. labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: samzong

Details Needs approval from an approver in each of these areas:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions github-actions Bot added approved Approved for merge needs-kind Indicates an issue or PR lacks a `kind/foo` label and requires one. labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pr is currently missing a label matching the regular expression ^kind/, so the needs-kind label has been applied. It will be removed automatically once a matching label is added.

Execution log

Open the execution log

Signed-off-by: samzong <samzong.lu@gmail.com>
…anup

Signed-off-by: samzong <samzong.lu@gmail.com>
Signed-off-by: samzong <samzong.lu@gmail.com>
@samzong
samzong marked this pull request as ready for review November 25, 2026 09:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T09:43:32.255936Z 455737d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 455737d691

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1 to +5
import { afterEach, describe, expect, it } from 'vitest';
import { execFileSync } from 'node:child_process';
import { chmodSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import path from 'node:path';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Split the change to meet the repository's PR budget

This commit adds 1,418 lines across 18 files, exceeding the explicit 500-insertion limit in docs/agent-rules/git-conventions.md. Even excluding the entire changelog backfill leaves 1,188 insertions, and release scripts and their tests do not fall under the documented generated-code, bulk-i18n, or migration exceptions. Split the release tooling and historical documentation work into independently reviewable changes within the budget. docs/agent-rules/git-conventions.mdL12-L13

Useful? React with 👍 / 👎.

describe('verify-release-version.mjs', () => {
it('verifies workspace manifest alignment in the repository', () => {
const out = runNode([verifyScript, '--check-workspace', '--root', repoRoot]);
expect(out).toContain('Workspace manifests aligned at version 0.0.16');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Derive the expected version instead of pinning the live workspace

When the next release updates all seven manifests to 0.0.17 or a prerelease version, the verifier correctly succeeds but this assertion fails because it requires the live repository to remain at 0.0.16. Consequently, following the newly documented release preparation procedure makes pnpm check fail on every subsequent version bump. Read the expected version from the root manifest or run this fixed-version assertion against a temporary workspace fixture instead.

Useful? React with 👍 / 👎.

@samzong
samzong merged commit 254bfa3 into main Nov 25, 2026
15 checks passed
@samzong
samzong deleted the build/align-semver-release-baseline branch November 25, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Approved for merge do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-kind Indicates an issue or PR lacks a `kind/foo` label and requires one. size/XXL Denotes a PR that changes 1000+ lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Align workspace manifest versions, CHANGELOG.md, and Homebrew tap parity in release workflows

1 participant