[PR #686] [MERGED] feat: publish package release notes beside the catalog #1086

Closed
opened 2026-10-21 05:02:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/686
Author: @Gunterlie
Created: 9/2/2026
Status: ✅ Merged
Merged: 9/2/2026
Merged by: @Gunterlie

Base: staging ← Head: feat/package-release-notes


📝 Commits (2)

  • 159a523 feat: publish package release notes beside the catalog
  • 8a16c9b fix: address CodeRabbit review on the release-notes build

📊 Changes

7 files changed (+528 additions, -2 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+3 -0)
📝 AGENTS.md (+2 -1)
📝 CONTRIBUTING.md (+29 -0)
📝 scripts/catalog-lanes.mjs (+43 -1)
➕ scripts/catalog-release-notes.mjs (+211 -0)
➕ scripts/tests/catalog-release-notes.regression.mjs (+187 -0)
📝 scripts/validate-catalog.mjs (+53 -0)

📄 Description

Linked issue

Closes #687

Why this change

  • Packages version and update independently, but this repository stores no release-notes data at all — version history exists only as artifacts/ filenames and git history, neither of which a user ever sees. The Engine can therefore only show two version numbers, so a user has no basis to accept or decline an update and no way to learn what an installed Agent changed.
  • Nothing distinguishes a routine bugfix release from one that changes behaviour, which trains people to dismiss update prompts unread — exactly when a real change slips past.

What changed

  • New scripts/catalog-release-notes.mjs — parses packages/<id>/CHANGELOG.md (## <version> — <YYYY-MM-DD> headings, newest first) into catalog notes entries, derives the notable-change marker from the version bump, and enforces the caps the Engine schema also applies.
  • scripts/catalog-lanes.mjs — writeCatalogFamily, the single chokepoint every builder already writes through, now emits a notes.json beside every catalog.json: the published lanes, the legacy alias, and the preview overlay, each scoped to the packages in that lane. All five builders inherit it, including for entries readCatalogFamily preserves without rebuilding. A lane whose packages publish no notes gets no sidecar rather than an empty file. The same function fails the build on a minor or major bump with no changelog entry, using the catalog committed before the build as the previous version.
  • scripts/validate-catalog.mjs — re-derives every sidecar from the committed changelogs and rejects a mismatch, so a hand-edited notes.json cannot drift. Also reports changelog coverage.
  • scripts/tests/catalog-release-notes.regression.mjs — new, and added to pull-request-checks.yml.
  • CONTRIBUTING.md, AGENTS.md — the authoring format and the rules.

Affected package IDs: none. No package payload, manifest, artifact, or catalog entry changes.

Why a sidecar and not a catalog or manifest field. The Engine's catalog entry schema is strict and its parser drops entries carrying keys it does not know, so a new entry key would empty the Agents browser on every already-shipped Engine that predates it — not merely hide the notes. A manifest key is worse: it rewrites every artifact and every checksum to publish a sentence, and trips the source/catalog/archive manifest equality checks.

Rules the build enforces. A minor or major bump needs an entry and a patch does not, because optional notes rot and a version history full of gaps reads as abandoned software. The newest entry must be the version being published. Caps are 1000 characters per entry and 20 entries per package; older entries fall off the end, an over-long one fails the build rather than being truncated in someone's update prompt. Notes are English only and plain text — the Engine renders them verbatim, never as Markdown or HTML, because an operator can point it at any catalog.

No package ships a CHANGELOG.md in this PR. The mechanism lands first; notes get written by whoever knows what a release actually changed, and inventing them here would put fiction in front of users. Coverage currently reports 0/36 and rises as packages ship their next feature release.

Pairs with Pasta-Devs/Marinara-Engine#5772, which renders the notes. Ordering does not matter: an Engine without that PR never requests the sidecar, and an Engine with it treats a missing sidecar as "no notes".

Package and security impact

  • Affected package IDs: none
  • Engine compatibility impact: none — no catalog entry, manifest, or artifact bytes change. The new sidecar is a separate document that only an Engine with #5772 requests.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Also needed, beyond the standard list:

  • npm run check
  • npm run test:security
  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-package-locales.mjs
  • node scripts/validate-package-locale-keys.mjs
  • node scripts/tests/catalog-generatedat-determinism.regression.mjs
  • node scripts/tests/catalog-release-notes.regression.mjs

Manual verification notes

  • Add a CHANGELOG.md to one package, rebuild, and manually verify the expected notes.json files appear in the published lanes and the legacy alias.
  • Manually verify a rebuild with no changelog changes leaves the tree clean.
  • Bump a package's minor version without a changelog entry and manually verify the build refuses it.
  • Serve the built catalog to a local Engine running Marinara-Engine#5772 and manually verify the notes reach the update prompt and Download Agents.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance — CONTRIBUTING.md § Release notes and AGENTS.md baseline commands. The README catalog tables are unchanged because no package listing changed.
  • Updated linked Marinara Engine documentation — covered by Pasta-Devs/Marinara-Engine#5772.

UI evidence (if applicable)

Not applicable — this repository publishes data, and the UI lives in Pasta-Devs/Marinara-Engine#5772.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/686 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/2/2026 **Status:** ✅ Merged **Merged:** 9/2/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/package-release-notes` --- ### 📝 Commits (2) - [`159a523`](https://github.com/Pasta-Devs/Marinara-Agents/commit/159a52378870a5a6bbff397984c0722ed29a829c) feat: publish package release notes beside the catalog - [`8a16c9b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8a16c9b618c6f156655e03126ef66c922f63a13a) fix: address CodeRabbit review on the release-notes build ### 📊 Changes **7 files changed** (+528 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) 📝 `AGENTS.md` (+2 -1) 📝 `CONTRIBUTING.md` (+29 -0) 📝 `scripts/catalog-lanes.mjs` (+43 -1) ➕ `scripts/catalog-release-notes.mjs` (+211 -0) ➕ `scripts/tests/catalog-release-notes.regression.mjs` (+187 -0) 📝 `scripts/validate-catalog.mjs` (+53 -0) </details> ### 📄 Description ## Linked issue Closes #687 ## Why this change - Packages version and update independently, but this repository stores no release-notes data at all — version history exists only as `artifacts/` filenames and git history, neither of which a user ever sees. The Engine can therefore only show two version numbers, so a user has no basis to accept or decline an update and no way to learn what an installed Agent changed. - Nothing distinguishes a routine bugfix release from one that changes behaviour, which trains people to dismiss update prompts unread — exactly when a real change slips past. ## What changed - **New `scripts/catalog-release-notes.mjs`** — parses `packages/<id>/CHANGELOG.md` (`## <version> — <YYYY-MM-DD>` headings, newest first) into catalog notes entries, derives the notable-change marker from the version bump, and enforces the caps the Engine schema also applies. - **`scripts/catalog-lanes.mjs`** — `writeCatalogFamily`, the single chokepoint every builder already writes through, now emits a `notes.json` beside every `catalog.json`: the published lanes, the legacy alias, and the preview overlay, each scoped to the packages in that lane. All five builders inherit it, including for entries `readCatalogFamily` preserves without rebuilding. A lane whose packages publish no notes gets no sidecar rather than an empty file. The same function fails the build on a minor or major bump with no changelog entry, using the catalog committed before the build as the previous version. - **`scripts/validate-catalog.mjs`** — re-derives every sidecar from the committed changelogs and rejects a mismatch, so a hand-edited `notes.json` cannot drift. Also reports changelog coverage. - **`scripts/tests/catalog-release-notes.regression.mjs`** — new, and added to `pull-request-checks.yml`. - **`CONTRIBUTING.md`, `AGENTS.md`** — the authoring format and the rules. Affected package IDs: none. No package payload, manifest, artifact, or catalog entry changes. **Why a sidecar and not a catalog or manifest field.** The Engine's catalog entry schema is strict and its parser *drops* entries carrying keys it does not know, so a new entry key would empty the Agents browser on every already-shipped Engine that predates it — not merely hide the notes. A manifest key is worse: it rewrites every artifact and every checksum to publish a sentence, and trips the source/catalog/archive manifest equality checks. **Rules the build enforces.** A minor or major bump needs an entry and a patch does not, because optional notes rot and a version history full of gaps reads as abandoned software. The newest entry must be the version being published. Caps are 1000 characters per entry and 20 entries per package; older entries fall off the end, an over-long one fails the build rather than being truncated in someone's update prompt. Notes are English only and plain text — the Engine renders them verbatim, never as Markdown or HTML, because an operator can point it at any catalog. **No package ships a `CHANGELOG.md` in this PR.** The mechanism lands first; notes get written by whoever knows what a release actually changed, and inventing them here would put fiction in front of users. Coverage currently reports 0/36 and rises as packages ship their next feature release. Pairs with Pasta-Devs/Marinara-Engine#5772, which renders the notes. Ordering does not matter: an Engine without that PR never requests the sidecar, and an Engine with it treats a missing sidecar as "no notes". ## Package and security impact - Affected package IDs: none - Engine compatibility impact: none — no catalog entry, manifest, or artifact bytes change. The new sidecar is a separate document that only an Engine with #5772 requests. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` Also needed, beyond the standard list: - [ ] `npm run check` - [ ] `npm run test:security` - [ ] `node scripts/test-catalog-lanes.mjs` - [ ] `node scripts/validate-package-locales.mjs` - [ ] `node scripts/validate-package-locale-keys.mjs` - [ ] `node scripts/tests/catalog-generatedat-determinism.regression.mjs` - [ ] `node scripts/tests/catalog-release-notes.regression.mjs` ### Manual verification notes - [ ] Add a `CHANGELOG.md` to one package, rebuild, and manually verify the expected `notes.json` files appear in the published lanes and the legacy alias. - [ ] Manually verify a rebuild with no changelog changes leaves the tree clean. - [ ] Bump a package's minor version without a changelog entry and manually verify the build refuses it. - [ ] Serve the built catalog to a local Engine running Marinara-Engine#5772 and manually verify the notes reach the update prompt and Download Agents. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance — `CONTRIBUTING.md` § Release notes and `AGENTS.md` baseline commands. The README catalog tables are unchanged because no package listing changed. - [ ] Updated linked Marinara Engine documentation — covered by Pasta-Devs/Marinara-Engine#5772. ## UI evidence (if applicable) Not applicable — this repository publishes data, and the UI lives in Pasta-Devs/Marinara-Engine#5772. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:02:20 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1086
No description provided.