Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: reconcile unpublished releases and log CI failure on release branch (#4580)
[._.]/ Adam Eivyec783845b746
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 0df71a3e73..5fc731bc99 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -18,7 +18,7 @@ jobs:needs: full-ciruns-on: ubuntu-latest# Skip version bump commits- if: "!contains(github.event.head_commit.message, '[skip ci]')"+ if: always() && !contains(github.event.head_commit.message, '[skip ci]')steps:- uses: actions/checkout@v7@@ -40,6 +40,14 @@ jobs:id: package-versionrun: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT+ - name: Report release failure on CI failure+ if: needs.full-ci.result != 'success'+ run: |+ VERSION="${{ steps.package-version.outputs.version }}"+ echo "::error::release v${VERSION} did NOT publish because full-ci status was '${{ needs.full-ci.result }}'"+ echo "release v${VERSION} did NOT publish"+ exit 1+- name: Check if release existsid: release-checkenv:diff --git a/scripts/migrations/281-reconcile-missing-releases-prompt.js b/scripts/migrations/281-reconcile-missing-releases-prompt.jsnew file mode 100644index 0000000000..e16de12042--- /dev/null+++ b/scripts/migrations/281-reconcile-missing-releases-prompt.js@@ -0,0 +1,54 @@+/**+ * Update the scheduled release-check task prompt to v9 (reconciling unpublished releases).+ *+ * This migration checks data/cos/task-schedule.json (and data/task-schedule.json)+ * to ensure stored task prompt versions for release-check upgrade to v9 when uncustomized.+ */++import { readFile, writeFile } from 'fs/promises';+import { join } from 'path';+import { DEFAULT_TASK_PROMPTS, PROMPT_VERSIONS } from '../../server/services/taskPromptDefaults.js';++const SCHEDULE_PATHS = [+ join('data', 'cos', 'task-schedule.json'),+ join('data', 'task-schedule.json'),+];++async function readJson(path) {+ const raw = await readFile(path, 'utf-8').catch((err) => {+ if (err.code === 'ENOENT') return null;+ throw err;+ });+ if (raw == null) return null;+ try {+ return JSON.parse(raw);+ } catch {+ return null;+ }+}++async function writeJson(path, value) {+ await writeFile(path, `${JSON.stringify(value, null, 2)}\n`);+}++export default {+ async up({ rootDir }) {+ let updatedCount = 0;+ for (const relPath of SCHEDULE_PATHS) {+ const fullPath = join(rootDir, relPath);+ const schedule = await readJson(fullPath);+ if (!schedule?.tasks?.['release-check']) continue;++ const task = schedule.tasks['release-check'];+ const currentVersion = task.promptVersion || 1;+ if (!task.promptCustomized && currentVersion < PROMPT_VERSIONS['release-check']) {+ task.prompt = DEFAULT_TASK_PROMPTS['release-check'];+ task.promptVersion = PROMPT_VERSIONS['release-check'];+ await writeJson(fullPath, schedule);+ updatedCount += 1;+ console.log(`📝 ${relPath}: upgraded release-check prompt v${currentVersion} → v${PROMPT_VERSIONS['release-check']}`);+ }+ }+ return { updated: updatedCount };+ },+};diff --git a/scripts/migrations/281-reconcile-missing-releases-prompt.test.js b/scripts/migrations/281-reconcile-missing-releases-prompt.test.jsnew file mode 100644index 0000000000..633f310c75--- /dev/null+++ b/scripts/migrations/281-reconcile-missing-releases-prompt.test.js@@ -0,0 +1,65 @@+import { describe, it, expect, beforeEach, afterEach } from 'vitest';+import { mkdtempSync, rmSync, writeFileSync, readFileSync, mkdirSync, existsSync } from 'fs';+import { tmpdir } from 'os';+import { join } from 'path';++import migration from './281-reconcile-missing-releases-prompt.js';+import { DEFAULT_TASK_PROMPTS, PROMPT_VERSIONS } from '../../server/services/taskPromptDefaults.js';++const writeJson = (path, value) => writeFileSync(path, JSON.stringify(value, null, 2) + '\n');+const readJson = (path) => JSON.parse(readFileSync(path, 'utf-8'));++describe('migration 281 — upgrade release-check task prompt to v9', () => {+ let rootDir;+ let schedulePath;++ beforeEach(() => {+ rootDir = mkdtempSync(join(tmpdir(), 'migration-281-'));+ mkdirSync(join(rootDir, 'data', 'cos'), { recursive: true });+ schedulePath = join(rootDir, 'data', 'cos', 'task-schedule.json');+ });++ afterEach(() => {+ rmSync(rootDir, { recursive: true, force: true });+ });++ it('no-ops cleanly when task-schedule.json is missing', async () => {+ const result = await migration.up({ rootDir });+ expect(result.updated).toBe(0);+ expect(existsSync(schedulePath)).toBe(false);+ });++ it('upgrades an uncustomized release-check prompt to v9', async () => {+ writeJson(schedulePath, {+ tasks: {+ 'release-check': {+ promptVersion: 8,+ promptCustomized: false,+ prompt: 'old prompt v8',+ },+ },+ });+ const result = await migration.up({ rootDir });+ expect(result.updated).toBe(1);+ const updated = readJson(schedulePath);+ expect(updated.tasks['release-check'].promptVersion).toBe(9);+ expect(updated.tasks['release-check'].prompt).toBe(DEFAULT_TASK_PROMPTS['release-check']);+ });++ it('leaves a user-customized release-check prompt untouched', async () => {+ writeJson(schedulePath, {+ tasks: {+ 'release-check': {+ promptVersion: 8,+ promptCustomized: true,+ prompt: 'my custom release check prompt',+ },+ },+ });+ const result = await migration.up({ rootDir });+ expect(result.updated).toBe(0);+ const after = readJson(schedulePath);+ expect(after.tasks['release-check'].promptVersion).toBe(8);+ expect(after.tasks['release-check'].prompt).toBe('my custom release check prompt');+ });+});diff --git a/server/services/taskPromptDefaults.test.js b/server/services/taskPromptDefaults.test.jsindex 47a7870a40..dcdae7350c 100644--- a/server/services/taskPromptDefaults.test.js+++ b/server/services/taskPromptDefaults.test.js@@ -472,8 +472,12 @@ describe('taskPromptDefaults integrity snapshot', () => {// release-check READS the changelog rather than writing it, so its fix is the// mirror image: an unreleased set that lives in uncollected fragments must not// read as "not enough work accumulated for a release".- it('release-check counts uncollected changelog fragments, preserving the outgoing default', () => {+ it('release-check v9 reconciles missing releases before evaluating readiness, preserving the v8 default', () => {const current = DEFAULT_TASK_PROMPTS['release-check'];+ expect(PROMPT_VERSIONS['release-check']).toBe(9);+ expect(current).toContain('Reconcile Missing Releases');+ expect(current).toContain('Unpublished release detected');+ expect(current).toContain('--latest=false');expect(current).toContain('per-branch fragments');expect(current).toContain('assembled');// release-check is a generic {appName} prompt — it runs against managed apps,@@ -486,10 +490,10 @@ describe('taskPromptDefaults integrity snapshot', () => {expect(current).toContain('never substitute a production database');const previous = PREVIOUS_DEFAULT_PROMPTS['release-check'];- const outgoing = previous[previous.length - 1];- expect(outgoing).toContain('per-branch fragments');- expect(outgoing).not.toContain('database-backed test suite');- expect(outgoing).not.toBe(current);+ const v8 = previous[previous.length - 1];+ expect(v8).toContain('database-backed test suite');+ expect(v8).not.toContain('Reconcile Missing Releases');+ expect(v8).not.toBe(current);});// refresh-local-llm-catalog is the one PortOS-ONLY prompt in this set (itdiff --git a/server/services/taskPromptDefaults/integrity.snapshot.json b/server/services/taskPromptDefaults/integrity.snapshot.jsonindex de9a7a525f..c007d13c82 100644--- a/server/services/taskPromptDefaults/integrity.snapshot.json+++ b/server/services/taskPromptDefaults/integrity.snapshot.json@@ -22,7 +22,7 @@"code-reviewer-implement": "ab2c3e16d54e195bdf856574b7702042","error-handling": "9afba2e99b90a8d5771c75e7f0615d96","typing": "1f2758ce0bb62d789a21aec241549531",- "release-check": "08c928e6f79f83535e40b6988ff6eae3",+ "release-check": "afa9039cfbff21d77d601dc74eb5b81f","jira-sprint-manager": "3e63c8a3bdf0d5a05a30faaa2dc07980","do-replan": "35660eb7b43e4259a6a9253ed288a1db","jira-status-report": "9d374a9d8ccb92c5c8fd0aa9899e79a5",@@ -63,7 +63,7 @@"ux": 1,"data-safety": 1,"simplify": 1,- "release-check": 8+ "release-check": 9},"REFERENCE_WATCH_AUDITED_VERSION": 3,"PREVIOUS_DEFAULT_PROMPTS": {@@ -186,7 +186,8 @@"609167c41331e6bbfc6d5f5edc452d4c","9c7508598ee772d1cee8f609f9ed7372","8436a47b5b1c9b2a342795e5634552da",- "746f11daaf721eae9e16845858ef55ee"+ "746f11daaf721eae9e16845858ef55ee",+ "08c928e6f79f83535e40b6988ff6eae3"],"branch-reconcile": ["7ef2b5f7d8f05937d4912b26ad45f42e",diff --git a/server/services/taskPromptDefaults/previousDefaults.js b/server/services/taskPromptDefaults/previousDefaults.jsindex fedfca4e9b..d0fa09eaf0 100644--- a/server/services/taskPromptDefaults/previousDefaults.js+++ b/server/services/taskPromptDefaults/previousDefaults.js@@ -8617,6 +8617,128 @@ If merge fails (e.g., branch protections), try: \`gh pr merge <PR_NUM> --merge -## Step 7: Report+Summarize:+- Version released+- Key changes (from changelog)+- Number of review iterations needed+- Any unresolved issues`,+ // v8 default prompt — pre-reconciliation step (issue #4580)+ `[Improvement: {appName}] Release Check++Repository: {repoPath}++Check if {appName} has accumulated enough work for a release, following the project's own documented release process.++## Step 0: Discover the Release Process++You need to determine these values (use angle-bracket names as placeholders in subsequent steps):+- \`<SOURCE_BRANCH>\` — where development happens+- \`<TARGET_BRANCH>\` — where releases go+- Changelog format and location+- Pre-release checks (tests, builds)+- Push/rebase conventions++First, extract \`<OWNER>\` and \`<REPO>\`:+\`\`\`bash+cd {repoPath} && gh repo view --json owner,name --jq '"OWNER=" + .owner.login + " REPO=" + .name'+\`\`\`++Then search for release documentation. Check your CLAUDE.md context (already provided above) for "Git Workflow", "Release", or "Changelog" sections. If the release process is not clear from CLAUDE.md, check these files in order (use whichever exist):+1. \`cat {repoPath}/README.md\` — look for release/deployment/workflow sections+2. \`cat {repoPath}/.changelog/README.md\` — changelog format and release conventions+3. \`cat {repoPath}/CONTRIBUTING.md\` — contributing/release guidelines+4. \`ls {repoPath}/docs/\` — look for release process docs (e.g., RELEASE.md, DEPLOY.md)+5. \`ls {repoPath}/.github/workflows/\` — infer branch flow from CI workflow triggers+6. \`gh api repos/<OWNER>/<REPO>/branches --jq '.[].name'\` — list branches to identify the flow++If no documentation specifies a release flow, fall back to: source=dev, target=main.++## Step 1: Evaluate Readiness++Using the changelog location discovered in Step 0:+- Read the current changelog (e.g., \`.changelog/NEXT.md\` or \`.changelog/v*.x.md\`)+- **Also read the entries not yet folded into that file.** Repos that collect per-branch fragments (e.g. \`.changelog/next/\`, so parallel agents don't conflict on a shared file) keep unreleased entries there until the release collects them, so the staged file alone under-counts the work. Read the fragment directory directly, and if the repo's changelog README documents a preview/collect command, use that to assemble the unreleased notes in one call. Do NOT guess a command name — only run one this repo actually documents.+- Read the current version: \`node -p "require('{repoPath}/package.json').version"\` or equivalent++Count substantive entries (lines starting with "###" or "- **" under Features, Fixes, Improvements sections) across the **assembled** unreleased notes — the staged file plus any uncollected fragments. If fewer than 2 substantive entries exist, stop and report: "Not enough work accumulated for a release." Do NOT create a PR.++## Step 2: Verify Clean State++Run these checks on \`<SOURCE_BRANCH>\` (stop if any fail):+1. \`git -C {repoPath} fetch origin\` and ensure \`<SOURCE_BRANCH>\` is up to date+2. Run the project's test suite (use the command from release docs). If the+ release docs identify a separate database-backed test suite, first run the+ documented test-database provisioning/setup command, then run that database+ test command as well. Keep the database test target isolated from any real+ user database; never substitute a production database just to make tests+ pass. If setup cannot reach the documented database service, report the+ environmental blocker and stop before creating the release PR.+3. Run the project's build (use the command from release docs)++## Step 3: Create or Find PR++Check for existing PR: \`gh pr list --repo <OWNER>/<REPO> --base <TARGET_BRANCH> --head <SOURCE_BRANCH> --state open --json number,url\`++If a PR exists, use it. If not, create one following the project's documented release PR conventions.++Capture the PR number as \`<PR_NUM>\` and URL.++## Step 4: Wait for Copilot Review++Copilot review is triggered automatically on push. Poll every 15 seconds until the review appears:+\`\`\`bash+gh api repos/<OWNER>/<REPO>/pulls/<PR_NUM>/reviews --jq '.[] | select(.user.login == "copilot-pull-request-reviewer") | .state'+\`\`\`++Wait until you see APPROVED or CHANGES_REQUESTED. Timeout after 5 minutes of polling.++## Step 5: Address Feedback Loop (max 5 iterations)++### 5a. Fetch unresolved review threads++Use gh api graphql (JSON input to avoid shell escaping issues with GraphQL variables):++\`\`\`bash+echo '{"query":"query{repository(owner:\\"<OWNER>\\",name:\\"<REPO>\\"){pullRequest(number:<PR_NUM>){reviewThreads(first:100){nodes{id,isResolved,comments(first:10){nodes{body,path,line,author{login}}}}}}}}"}' | gh api graphql --input -+\`\`\`++### 5b. If no unresolved threads: skip to Step 6 (Merge).++### 5c. If unresolved threads exist, evaluate each one:++For each comment, read the referenced file and critically evaluate the suggestion:+- **If the suggestion is valid and improves the code**: apply the fix+- **If the suggestion is a false positive, overly pedantic, or would make the code worse**: do NOT change the code++Either way, resolve every thread — the goal is zero unresolved threads before merge.++After evaluating all threads:+- If any code changes were made: run the project's test suite to verify, then commit and push using \`/do:push\` (or manually: stage specific files, conventional commit prefix, \`git pull --rebase && git push\`)++### 5d. Resolve ALL threads via GraphQL mutation (both fixed and dismissed):++For each thread, use the thread node id from 5a:+\`\`\`bash+echo '{"query":"mutation{resolveReviewThread(input:{threadId:\\"THREAD_NODE_ID\\"}){thread{isResolved}}}"}' | gh api graphql --input -+\`\`\`++### 5e. Wait for new Copilot review if code was pushed (repeat Step 4)++If you pushed changes in 5c, the push automatically triggers a new Copilot review. Poll for it, then loop back to 5a. If no code changes were made (all threads were false positives), skip straight to Step 6.++If after 5 iterations there are still unresolved threads, stop and report what remains.++## Step 6: Merge++Only merge when Copilot's most recent review has NO unresolved threads:+\`\`\`bash+gh pr merge <PR_NUM> --merge+\`\`\`++If merge fails (e.g., branch protections), try: \`gh pr merge <PR_NUM> --merge --admin\`++## Step 7: Report+Summarize:- Version released- Key changes (from changelog)diff --git a/server/services/taskPromptDefaults/prompts.js b/server/services/taskPromptDefaults/prompts.jsindex 87b8353106..a31daee868 100644--- a/server/services/taskPromptDefaults/prompts.js+++ b/server/services/taskPromptDefaults/prompts.js@@ -1339,7 +1339,24 @@ Then search for release documentation. Check your CLAUDE.md context (already proIf no documentation specifies a release flow, fall back to: source=dev, target=main.-## Step 1: Evaluate Readiness+## Step 1: Reconcile Missing Releases++BEFORE evaluating unreleased work, check for existing release tags that lack a corresponding GitHub Release:+1. \`git -C {repoPath} fetch --tags origin\`+2. List all version tags (e.g., \`v*\`) on \`<TARGET_BRANCH>\` / \`origin\` and list published GitHub Releases:+ \`\`\`bash+ gh release list --repo <OWNER>/<REPO> --limit 100+ \`\`\`+3. Compare every release tag \`vX.Y.Z\` against published GitHub Releases. If a tag \`vX.Y.Z\` exists but has no corresponding GitHub Release:+ - Report the missing release version explicitly: "Unpublished release detected: vX.Y.Z".+ - Locate the changelog body for \`vX.Y.Z\` (e.g., \`.changelog/vX.Y.Z.md\` or \`.changelog/vX.Y.x.md\`).+ - Check if a newer version tag or release exists.+ - Publish the missing release using \`gh release create "vX.Y.Z"\`:+ - Use \`.changelog/vX.Y.Z.md\` (or the assembled changelog for that version) as the release body (\`--notes-file\` or \`--body-file\`).+ - Pass \`--latest=false\` if a newer version tag or release is already published, so backfilling an old version never displaces the current Latest release. Pass \`--latest\` only if \`vX.Y.Z\` is the newest version.+4. Report any missing releases reconciled before proceeding to Step 2.++## Step 2: Evaluate ReadinessUsing the changelog location discovered in Step 0:- Read the current changelog (e.g., \`.changelog/NEXT.md\` or \`.changelog/v*.x.md\`)@@ -1348,7 +1365,7 @@ Using the changelog location discovered in Step 0:Count substantive entries (lines starting with "###" or "- **" under Features, Fixes, Improvements sections) across the **assembled** unreleased notes — the staged file plus any uncollected fragments. If fewer than 2 substantive entries exist, stop and report: "Not enough work accumulated for a release." Do NOT create a PR.-## Step 2: Verify Clean State+## Step 3: Verify Clean StateRun these checks on \`<SOURCE_BRANCH>\` (stop if any fail):1. \`git -C {repoPath} fetch origin\` and ensure \`<SOURCE_BRANCH>\` is up to date@@ -1361,7 +1378,7 @@ Run these checks on \`<SOURCE_BRANCH>\` (stop if any fail):environmental blocker and stop before creating the release PR.3. Run the project's build (use the command from release docs)-## Step 3: Create or Find PR+## Step 4: Create or Find PRCheck for existing PR: \`gh pr list --repo <OWNER>/<REPO> --base <TARGET_BRANCH> --head <SOURCE_BRANCH> --state open --json number,url\`@@ -1369,7 +1386,7 @@ If a PR exists, use it. If not, create one following the project's documented reCapture the PR number as \`<PR_NUM>\` and URL.-## Step 4: Wait for Copilot Review+## Step 5: Wait for Copilot ReviewCopilot review is triggered automatically on push. Poll every 15 seconds until the review appears:\`\`\`bash@@ -1378,9 +1395,9 @@ gh api repos/<OWNER>/<REPO>/pulls/<PR_NUM>/reviews --jq '.[] | select(.user.logiWait until you see APPROVED or CHANGES_REQUESTED. Timeout after 5 minutes of polling.-## Step 5: Address Feedback Loop (max 5 iterations)+## Step 6: Address Feedback Loop (max 5 iterations)-### 5a. Fetch unresolved review threads+### 6a. Fetch unresolved review threadsUse gh api graphql (JSON input to avoid shell escaping issues with GraphQL variables):@@ -1388,9 +1405,9 @@ Use gh api graphql (JSON input to avoid shell escaping issues with GraphQL variaecho '{"query":"query{repository(owner:\\"<OWNER>\\",name:\\"<REPO>\\"){pullRequest(number:<PR_NUM>){reviewThreads(first:100){nodes{id,isResolved,comments(first:10){nodes{body,path,line,author{login}}}}}}}}"}' | gh api graphql --input -\`\`\`-### 5b. If no unresolved threads: skip to Step 6 (Merge).+### 6b. If no unresolved threads: skip to Step 7 (Merge).-### 5c. If unresolved threads exist, evaluate each one:+### 6c. If unresolved threads exist, evaluate each one:For each comment, read the referenced file and critically evaluate the suggestion:- **If the suggestion is valid and improves the code**: apply the fix@@ -1401,20 +1418,20 @@ Either way, resolve every thread — the goal is zero unresolved threads beforeAfter evaluating all threads:- If any code changes were made: run the project's test suite to verify, then commit and push using \`/do:push\` (or manually: stage specific files, conventional commit prefix, \`git pull --rebase && git push\`)-### 5d. Resolve ALL threads via GraphQL mutation (both fixed and dismissed):+### 6d. Resolve ALL threads via GraphQL mutation (both fixed and dismissed):For each thread, use the thread node id from 5a:\`\`\`bashecho '{"query":"mutation{resolveReviewThread(input:{threadId:\\"THREAD_NODE_ID\\"}){thread{isResolved}}}"}' | gh api graphql --input -\`\`\`-### 5e. Wait for new Copilot review if code was pushed (repeat Step 4)+### 6e. Wait for new Copilot review if code was pushed (repeat Step 5)-If you pushed changes in 5c, the push automatically triggers a new Copilot review. Poll for it, then loop back to 5a. If no code changes were made (all threads were false positives), skip straight to Step 6.+If you pushed changes in 6c, the push automatically triggers a new Copilot review. Poll for it, then loop back to 6a. If no code changes were made (all threads were false positives), skip straight to Step 7.If after 5 iterations there are still unresolved threads, stop and report what remains.-## Step 6: Merge+## Step 7: MergeOnly merge when Copilot's most recent review has NO unresolved threads:\`\`\`bash@@ -1423,7 +1440,7 @@ gh pr merge <PR_NUM> --mergeIf merge fails (e.g., branch protections), try: \`gh pr merge <PR_NUM> --merge --admin\`-## Step 7: Report+## Step 8: ReportSummarize:- Version releaseddiff --git a/server/services/taskPromptDefaults/versions.js b/server/services/taskPromptDefaults/versions.jsindex 4c77c386e9..a066aa30f4 100644--- a/server/services/taskPromptDefaults/versions.js+++ b/server/services/taskPromptDefaults/versions.js@@ -41,7 +41,7 @@ export const PROMPT_VERSIONS = {'ux': 1, // v1: walk the running UI with Playwright MCP against a 7-item named UX checklist and file ONE tracker item per finding via {trackerInstructions} — read-only on source, no branches/PRs. Net-new type (no PREVIOUS_DEFAULT_PROMPTS entry needed). Mode (file-issues vs implement) is injected at dispatch via {modeInstructions} / applyAuditModeWrapper — no prompt bump required.'data-safety': 1, // v1: data/upgrade-safety audit (migrations, schema parity, version gates). Mode injected at dispatch.'simplify': 1, // v1: dead-code/duplication audit. Mode injected at dispatch.- 'release-check': 8, // v8: database-backed release tests are provisioned and run using the repo's documented isolated test database before the release PR gate; v7: Step 1 also reads the UNCOLLECTED changelog fragments (the fragment dir, plus whatever preview command that repo documents — release-check is a generic {appName} prompt, so it never names a PortOS script to run) and counts substantive entries across the assembled notes — reading only the staged `.changelog/NEXT.md` under-counts a release whose entries are still per-branch fragments, so a ready release reported as "not enough work". v6: generic {appName} body (older defaults hardcoded "PortOS")+ 'release-check': 9, // v9: Step 1 reconciles missing GitHub Releases against git release tags (publishing any missing tag with .changelog/vX.Y.Z.md as body and --latest=false when a newer version exists) BEFORE evaluating if enough unreleased work has accumulated; v8: database-backed release tests are provisioned and run using the repo's documented isolated test database before the release PR gate; v7: Step 1 also reads the UNCOLLECTED changelog fragments (the fragment dir, plus whatever preview command that repo documents — release-check is a generic {appName} prompt, so it never names a PortOS script to run) and counts substantive entries across the assembled notes — reading only the staged `.changelog/NEXT.md` under-counts a release whose entries are still per-branch fragments, so a ready release reported as "not enough work". v6: generic {appName} body (older defaults hardcoded "PortOS")};// Audit anchor for reference-watch's read/write coupling.