Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
docs(release): document frozen release branches and the v1.6.0 incident
EtienneLescot80cb2b9ed1bc
diff --git a/.harness/docs/git-workflow.md b/.harness/docs/git-workflow.mdindex a43546d99..cd0895fdc 100644--- a/.harness/docs/git-workflow.md+++ b/.harness/docs/git-workflow.md@@ -41,7 +41,7 @@ All five must be green before merge. Native helper code is NOT covered by CI —## Release flow-Two `workflow_dispatch` workflows cut a release. Both run on `main` directly (trunk-based, no `next` branch). Both require the `OPENSCREEN_RELEASE_TOKEN` secret — see `docs/secrets.md`.+Two `workflow_dispatch` workflows cut a release. Trunk-based on `main`, but **release branches freeze the RC codebase between cut and promote** (see § Release branches below). Both require the `OPENSCREEN_RELEASE_TOKEN` secret — see `docs/secrets.md`.### Step 1: cut a release candidate@@ -55,8 +55,8 @@ The workflow:1. Computes the next SemVer from `package.json` + `bump`, builds `vX.Y.Z-rc.N`.2. Migrates every issue/PR in the rolling `Next Release` milestone into a fresh `vX.Y.Z` milestone. Each migrated item gets a hidden marker comment so re-running is idempotent.-3. Commits `package.json` → `X.Y.Z-rc.N` to `main`.-4. Pushes the tag `vX.Y.Z-rc.N`. This triggers `build.yml`, which publishes a **GitHub pre-release** (badged as such, does not become "Latest"). macOS notarization is skipped on RC tags.+3. Commits `package.json` → `X.Y.Z-rc.N` on a fresh branch `release/vX.Y.Z-rc.N`. **The branch is NOT merged into `main`** — it stays frozen so the RC build only contains what was on `main` at the moment of cut.+4. Pushes the tag `vX.Y.Z-rc.N` at the release branch tip. This triggers `build.yml`, which publishes a **GitHub pre-release** (badged as such, does not become "Latest"). macOS notarization is skipped on RC tags.5. Posts in `#rc-testing` on Discord with the download link.Tier 3 (homebrew/winget/nix/aur) does **not** run on pre-releases — they're already gated on `!prerelease`.@@ -65,7 +65,9 @@ Tier 3 (homebrew/winget/nix/aur) does **not** run on pre-releases — they're alPin the pre-release link in `#rc-testing`. Get the maintainer team + a few early adopters to install and smoke-test.-If the RC has a regression, fix forward on `main` and re-cut as `vX.Y.Z-rc.(N+1)`. The previous RC is auto-superseded by GitHub.+**Between RC cut and promote**, the only thing that may happen on `release/vX.Y.Z-rc.N` is **cherry-picks of bugfixes** that address problems discovered in the RC. Features, refactors, and CI/docs changes are **not** applied to the release branch — they live on `main` and ship in the next release cycle.++If the RC has a regression, fix forward on `main`, then **cherry-pick the fix commit onto the release branch** with `git cherry-pick <sha>`, then re-cut as `vX.Y.Z-rc.(N+1)` (the rerun of `prerelease.yml` re-tags the release branch tip; no rebase required because the branch is frozen). The previous RC is auto-superseded by GitHub.### Step 3: promote to stable@@ -78,21 +80,49 @@ The workflow:1. Validates the tag matches `^vX.Y.Z-(rc|beta|alpha)\.N$`.2. Closes the `vX.Y.Z` milestone (snapshotting it for the release notes).-3. Strips `-rc.N` from `package.json`.-4. Pushes the tag `vX.Y.Z`. This triggers `build.yml` (full notarization) and the `release: published` event — which now fires Tier 3 (homebrew/winget/nix/aur) thanks to `OPENSCREEN_RELEASE_TOKEN`.-5. Posts in `#announcements` on Discord with the release notes + a "Closed issues in this release" list pulled from the milestone.+3. Checks out `release/vX.Y.Z-rc.N` (the frozen branch), strips `-rc.N` from `package.json`, and commits the bump there. The stable tag points at this tip — the released code is the exact RC + cherry-picks.+4. Pushes the tag `vX.Y.Z` and triggers `build.yml` (full notarization). The `release: published` event fires Tier 3 (homebrew/winget/nix/aur) thanks to `OPENSCREEN_RELEASE_TOKEN`.+5. Opens a **release-sync PR** (e.g. `release/v1.6.0-sync → main`) that brings `main` into line with the released snapshot. Rebase-merged via PAT (EtienneLescot is a ruleset bypass actor).+6. Posts in `#announcements` on Discord with the release notes + a "Closed issues in this release" list pulled from the milestone.++The release branch itself **stays around** indefinitely — it is the frozen history of the release, useful for backports and forensics. Deletion happens only when a future major cuts over and supersedes it.++### Release branches (the contract)++Every released version has a corresponding **frozen branch**:++```+release/vX.Y.Z-rc.N exists from RC cut until promote finishes+release/vX.Y.Z-sync ephemeral, created by promote to merge into main+release/vX.Y.Z stable snapshot post-promote (kept for backports)+```++Key rules:++1. **`prerelease.yml` creates the branch.** Nothing else pushes to it except the cherry-pick workflow during the RC window.+2. **`promote.yml` is the only writer** that turns `-rc.N` into the stable version on the branch.+3. **`main` is never frozen.** Develop as usual. The release branch is the freeze.+4. **Cherry-picks during the RC window** are committed manually by a maintainer (`git checkout release/vX.Y.Z-rc.N && git cherry-pick <sha>`), or rerun `prerelease.yml` to re-tag the branch tip with the same RC version (then bump rc_number).++This exists because of the v1.6.0 incident (2026-07-05): the original `promote.yml` checked out `main`, so the stable tag captured the post-RC tip of `main` rather than the RC snapshot. Twenty-three commits (Tiptap, NotesWindow, an in-recorder lint button, AI handoff) ended up in v1.6.0 without ever being in v1.6.0-rc.1. The re-release of v1.6.0 on 2026-07-05 used `release/v1.6.0` and cherry-picked only the truly safe commits.### Manual fallback (emergency)-If the dispatch UI is unavailable, the same flow works from a shell:+If the dispatch UI is unavailable, the workflow still works from a shell:```bash# Cut RC (skips milestone migration and Discord announce)-git tag v1.5.0-rc.1 <sha-of-main>+git checkout -b release/v1.5.0-rc.1 main+sed -i -E 's|("version"[[:space:]]*:[[:space:]]*")[^"]*(")|\11.5.0-rc.1\2|' package.json+git add package.json && git commit -m "chore(release): bump to 1.5.0-rc.1 [skip ci]"+git push origin release/v1.5.0-rc.1git push origin v1.5.0-rc.1# Promote (skips milestone close and Discord announce)-git tag v1.5.0 <sha-of-main>+git checkout release/v1.5.0-rc.1+sed -i -E 's|("version"[[:space:]]*:[[:space:]]*")[^"]*(")|\11.5.0\2|' package.json+git commit -am "chore(release): bump to 1.5.0 [skip ci]"+git push origin release/v1.5.0git push origin v1.5.0```diff --git a/.harness/memory/MEMORY.md b/.harness/memory/MEMORY.mdindex 8a18e482f..0f5205bc0 100644--- a/.harness/memory/MEMORY.md+++ b/.harness/memory/MEMORY.md@@ -21,3 +21,6 @@ There's no Prettier/ESLint — Biome 2.4 does both. Config in `biome.json`: tabs## `npm run build` is slow (2026-06-22)`npm run build` runs tsc + vite build + electron-builder packaging. For renderer-only iteration use `npm run build-vite` (tsc + vite only, no packaging). Only run the full `build` when verifying a release artifact.++## Release tag must point at the release branch, not main (2026-07-05)+On 2026-07-05 the original `promote.yml` did `git checkout main && git tag vX.Y.Z`, which captured the post-RC tip of `main` (23 commits after the RC cut) as the "stable" v1.6.0. The fix landed the same day: both `prerelease.yml` and `promote.yml` now use a frozen `release/vX.Y.Z-rc.N` branch and tag its tip — see `.github/workflows/prerelease.yml` § Push RC tag and `.github/workflows/promote.yml` § Push stable tag. When reviewing release-related changes, **always verify the tag is being applied to the release branch tip, not to main.** The build.yml `release_tag` input is the SHA, not a branch name; if you set it to a tag the GitHub Release check will look for the source ref — pass the release branch name when smoke-testing without a tag.diff --git a/AGENTS.md b/AGENTS.mdindex aea4974cc..f1ef015b2 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -61,6 +61,8 @@ Two `workflow_dispatch` workflows cut a release with a pre-release candidate (RCBoth workflows require the `OPENSCREEN_RELEASE_TOKEN` secret (a fine-grained PAT with `contents: write` + `issues: write`). This is the standard fix for `release: published` not triggering downstream workflows when the release is created by `GITHUB_TOKEN`. See `docs/secrets.md`.+**Release branches freeze the build between cut and promote.** Every RC cut creates `release/vX.Y.Z-rc.N`. The branch is *not* merged into `main` until the stable tag is published; only cherry-picks of bugfixes land on the release branch during the RC window. The stable tag points at the branch tip (RC + cherry-picks), then `promote.yml` opens a `release/vX.Y.Z-sync → main` PR to bring main into line. This contract exists because of the v1.6.0 incident (2026-07-05) where the original promote workflow tagged `main` instead of the RC snapshot, causing 23 unreleased commits to ship in `v1.6.0`. Full rules in `.harness/docs/git-workflow.md` § Release branches.+## Security- Never commit secrets. `.env.example` exists; real `.env` is gitignored.