[PR #5772] [MERGED] feat: Agent package release notes in the update prompt and catalog #6928

Closed
opened 2026-10-23 04:14:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: the-update-chronicles


📝 Commits (9)

  • 8667da9 feat: publish Agent package release notes in the update prompt and catalog
  • bffce0f test: update the Agent update prompt e2e for the notes dialog
  • efaaf10 fix: address CodeRabbit review on Agent release notes
  • a3d6d3d test: cover a rejected and a failing release-notes request
  • 0131593 Merge remote-tracking branch 'origin/staging' into the-update-chronicles
  • 44ac69a Merge remote-tracking branch 'origin/staging' into the-update-chronicles
  • 1c3b63c fix: address the second CodeRabbit round on Agent release notes
  • db4c6c2 fix: bound numeric prerelease identifiers in the notes version
  • 82d7416 fix: reject leading zeros in note version components

📊 Changes

15 files changed (+901 additions, -84 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 docs/FAQ.md (+1 -1)
📝 docs/agents/agents-overview.md (+1 -1)
📝 e2e/core-flows.e2e.ts (+29 -7)
📝 packages/client/src/components/agents/AgentCatalogView.tsx (+3 -0)
➕ packages/client/src/components/agents/AgentUpdateDialog.tsx (+120 -0)
📝 packages/client/src/components/agents/AgentUpdatePrompter.tsx (+89 -74)
➕ packages/client/src/components/agents/AgentVersionHistory.tsx (+38 -0)
➕ packages/client/src/components/agents/NotableChangeMarker.tsx (+17 -0)
📝 packages/client/src/hooks/use-capability-packages.ts (+14 -0)
📝 packages/client/src/localization/locales/en.json (+8 -0)
📝 packages/server/src/routes/capability-packages.routes.ts (+4 -0)
📝 packages/server/src/services/capability-packages/package-manager.service.ts (+123 -1)
📝 packages/shared/src/schemas/capability-package.schema.ts (+84 -0)
➕ scripts/regressions/capability-release-notes.regression.ts (+368 -0)

📄 Description

Closes #5773

Why

Marinara ships ~36 downloadable Agent packages, each versioning and updating independently. Today the update prompt is a plain confirm dialog reading • Name (1.2.0 → 1.3.0), and the Download Agents detail panel shows two version numbers. A user has no basis to accept or decline an update, and no way to learn what an Agent they already run has changed.

This adds App-Store-style release notes to the update prompt and to Download Agents, plus a marker for versions the publisher flagged as a change the user will notice — so routine bugfix releases do not train people to dismiss the prompt unread.

Pairs with Marinara-Agents PR (branch feat/package-release-notes), which publishes the notes. This side works with or without it: a catalog that publishes no notes behaves exactly as it does today.

Why a sidecar document, not a catalog field

capabilityCatalogPackageSchema is .strict() and parseCapabilityCatalogWithCompat drops entries carrying unknown keys. Adding releaseNotes to a catalog entry would therefore make every entry vanish on every already-shipped Engine that predates the change — users on an older 2.x would open Download Agents and see an empty catalog. A package manifest field is worse: it rewrites every artifact and every checksum to publish a sentence.

So notes ride a notes.json published beside the catalog.json they describe. Old Engines never request it. This Engine derives the URL by swapping a trailing catalog.json, and a configured catalog URL that does not end that way yields no URL at all rather than a guess.

What changed

Shared — capabilityReleaseNotesSchema (strict, caps: 1000 characters per entry, 20 entries per package); releaseNotes and releaseHighlight added to the Engine-internal CapabilityPackageUpdate. The catalog and manifest schemas are untouched.

Server — resolveCapabilityReleaseNotesUrl, a 404-tolerant fetch reusing the existing fetchCatalogDocument policy (https only, size cap, 15 s timeout), a 5-minute cache shared by both consumers, and GET /capability-packages/:id/release-notes. pendingUpdates() decorates its result through a pure attachCapabilityReleaseNotes. Absent, unreachable, malformed, and over-cap documents all degrade to "no notes" without throwing.

Client — AgentUpdateDialog, a Modal-based replacement for the showConfirmDialog call (that store carries a single message string, which is why the old prompt faked a list with bullet characters). Per row: name, version change, restart tag, notable dot, and collapsed notes. "Update all" stays primary and the decline path is unchanged. AgentVersionHistory adds a Version history section to the catalog detail panel, omitting versions with no notes.

Notes render as plain text, never Markdown or HTML: MARINARA_AGENT_CATALOG_URL is operator-configurable, so this is untrusted remote content in a modal.

Not localized. 36 packages × every version × 12 locales is an obligation nobody meets, and half-done translations orphan under the docs-i18n rule. The chrome is translated; the notes are English.

Decisions worth reviewing

  • The dot means "you will notice this", not "you should install this" — the button still updates everything. It is published by the catalog build (defaulting from the semver bump) and never recomputed here.
  • Decline semantics are untouched. The decisions file already stores one version per package, so a newer version re-prompts on its own.
  • No prompt-override migration, no deprecation metadata, no rollback. Those are separate problems.

Deliberately out of scope

Follow-up needed: [docs-i18n] docs/agents/agents-overview.md docs/FAQ.md for the translated language packs.

Validation

  • pnpm check
  • pnpm regression --filter capability (7 regressions, including the new capability-release-notes)
  • pnpm localization:check

Test plan (manual)

  • Install an Agent at an older version against a catalog that publishes notes; manually verify the update prompt shows the version change, the restart tag, and collapsed notes.
  • Manually verify the dot appears on a minor bump and not on a patch.
  • Manually verify "Not now" declines every listed update, and that a later version prompts again.
  • Open Download Agents, select an Agent with published notes, manually verify the Version history renders and that versions without notes are absent.
  • Point MARINARA_AGENT_CATALOG_URL at a catalog with no notes.json; manually verify the prompt and detail panel look exactly as they do today.
  • Serve a notes document containing Markdown and HTML; manually verify it renders as literal text.
  • Check the dialog with a screen reader for the dot's hidden label, and at narrow mobile width.

Summary by CodeRabbit

  • New Features
    • Added Agent package update dialogs showing version changes, restart requirements, and publisher-provided release notes.
    • Added collapsible “What changed” details and indicators for notable versions.
    • Added version history to Agent catalog details when release notes are available.
    • Catalogs without release notes continue to work as before.
  • Documentation
    • Updated the FAQ and Agent overview to explain release notes and version history.
    • Added an Unreleased changelog entry describing these updates.

🔄 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-Engine/pull/5772 **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:** `the-update-chronicles` --- ### 📝 Commits (9) - [`8667da9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8667da9af73c1d4410152cc356fb703ed03f29e6) feat: publish Agent package release notes in the update prompt and catalog - [`bffce0f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bffce0f7b703b30a5d2572e437eeff4efc22a9a1) test: update the Agent update prompt e2e for the notes dialog - [`efaaf10`](https://github.com/Pasta-Devs/Marinara-Engine/commit/efaaf10acd48682b2665a38c55e0b5f69edb8fdc) fix: address CodeRabbit review on Agent release notes - [`a3d6d3d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3d6d3d0938e66a1383f15a37505ffc1ff8d35c0) test: cover a rejected and a failing release-notes request - [`0131593`](https://github.com/Pasta-Devs/Marinara-Engine/commit/01315933812fc316a84cd71da52e71f2dc8feb82) Merge remote-tracking branch 'origin/staging' into the-update-chronicles - [`44ac69a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/44ac69a4ba161ddd471cfac7e15b1e110bc6952e) Merge remote-tracking branch 'origin/staging' into the-update-chronicles - [`1c3b63c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1c3b63c0e7e50d0b67c700520a76d4abd709ffde) fix: address the second CodeRabbit round on Agent release notes - [`db4c6c2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/db4c6c25b3c027e541f98feb3d6e6a648cf68a61) fix: bound numeric prerelease identifiers in the notes version - [`82d7416`](https://github.com/Pasta-Devs/Marinara-Engine/commit/82d7416816c2accb43f7bb3f4317cebb4b393a55) fix: reject leading zeros in note version components ### 📊 Changes **15 files changed** (+901 additions, -84 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/FAQ.md` (+1 -1) 📝 `docs/agents/agents-overview.md` (+1 -1) 📝 `e2e/core-flows.e2e.ts` (+29 -7) 📝 `packages/client/src/components/agents/AgentCatalogView.tsx` (+3 -0) ➕ `packages/client/src/components/agents/AgentUpdateDialog.tsx` (+120 -0) 📝 `packages/client/src/components/agents/AgentUpdatePrompter.tsx` (+89 -74) ➕ `packages/client/src/components/agents/AgentVersionHistory.tsx` (+38 -0) ➕ `packages/client/src/components/agents/NotableChangeMarker.tsx` (+17 -0) 📝 `packages/client/src/hooks/use-capability-packages.ts` (+14 -0) 📝 `packages/client/src/localization/locales/en.json` (+8 -0) 📝 `packages/server/src/routes/capability-packages.routes.ts` (+4 -0) 📝 `packages/server/src/services/capability-packages/package-manager.service.ts` (+123 -1) 📝 `packages/shared/src/schemas/capability-package.schema.ts` (+84 -0) ➕ `scripts/regressions/capability-release-notes.regression.ts` (+368 -0) </details> ### 📄 Description Closes #5773 ## Why Marinara ships ~36 downloadable Agent packages, each versioning and updating independently. Today the update prompt is a plain confirm dialog reading `• Name (1.2.0 → 1.3.0)`, and the Download Agents detail panel shows two version numbers. A user has no basis to accept or decline an update, and no way to learn what an Agent they already run has changed. This adds App-Store-style release notes to the update prompt and to Download Agents, plus a marker for versions the publisher flagged as a change the user will notice — so routine bugfix releases do not train people to dismiss the prompt unread. Pairs with Marinara-Agents PR (branch `feat/package-release-notes`), which publishes the notes. This side works with or without it: a catalog that publishes no notes behaves exactly as it does today. ## Why a sidecar document, not a catalog field `capabilityCatalogPackageSchema` is `.strict()` and `parseCapabilityCatalogWithCompat` **drops** entries carrying unknown keys. Adding `releaseNotes` to a catalog entry would therefore make every entry vanish on every already-shipped Engine that predates the change — users on an older 2.x would open Download Agents and see an empty catalog. A package manifest field is worse: it rewrites every artifact and every checksum to publish a sentence. So notes ride a `notes.json` published beside the `catalog.json` they describe. Old Engines never request it. This Engine derives the URL by swapping a trailing `catalog.json`, and a configured catalog URL that does not end that way yields no URL at all rather than a guess. ## What changed **Shared** — `capabilityReleaseNotesSchema` (strict, caps: 1000 characters per entry, 20 entries per package); `releaseNotes` and `releaseHighlight` added to the Engine-internal `CapabilityPackageUpdate`. The catalog and manifest schemas are untouched. **Server** — `resolveCapabilityReleaseNotesUrl`, a 404-tolerant fetch reusing the existing `fetchCatalogDocument` policy (https only, size cap, 15 s timeout), a 5-minute cache shared by both consumers, and `GET /capability-packages/:id/release-notes`. `pendingUpdates()` decorates its result through a pure `attachCapabilityReleaseNotes`. Absent, unreachable, malformed, and over-cap documents all degrade to "no notes" without throwing. **Client** — `AgentUpdateDialog`, a `Modal`-based replacement for the `showConfirmDialog` call (that store carries a single `message` string, which is why the old prompt faked a list with bullet characters). Per row: name, version change, restart tag, notable dot, and collapsed notes. "Update all" stays primary and the decline path is unchanged. `AgentVersionHistory` adds a Version history section to the catalog detail panel, omitting versions with no notes. Notes render as **plain text**, never Markdown or HTML: `MARINARA_AGENT_CATALOG_URL` is operator-configurable, so this is untrusted remote content in a modal. **Not localized.** 36 packages × every version × 12 locales is an obligation nobody meets, and half-done translations orphan under the `docs-i18n` rule. The chrome is translated; the notes are English. ## Decisions worth reviewing - The dot means "you will notice this", not "you should install this" — the button still updates everything. It is published by the catalog build (defaulting from the semver bump) and never recomputed here. - Decline semantics are untouched. The decisions file already stores one version per package, so a newer version re-prompts on its own. - No prompt-override migration, no deprecation metadata, no rollback. Those are separate problems. ## Deliberately out of scope Follow-up needed: `[docs-i18n] docs/agents/agents-overview.md docs/FAQ.md` for the translated language packs. ## Validation - [ ] `pnpm check` - [ ] `pnpm regression --filter capability` (7 regressions, including the new `capability-release-notes`) - [ ] `pnpm localization:check` ## Test plan (manual) - [ ] Install an Agent at an older version against a catalog that publishes notes; manually verify the update prompt shows the version change, the restart tag, and collapsed notes. - [ ] Manually verify the dot appears on a minor bump and not on a patch. - [ ] Manually verify "Not now" declines every listed update, and that a later version prompts again. - [ ] Open Download Agents, select an Agent with published notes, manually verify the Version history renders and that versions without notes are absent. - [ ] Point `MARINARA_AGENT_CATALOG_URL` at a catalog with no `notes.json`; manually verify the prompt and detail panel look exactly as they do today. - [ ] Serve a notes document containing Markdown and HTML; manually verify it renders as literal text. - [ ] Check the dialog with a screen reader for the dot's hidden label, and at narrow mobile width. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Agent package update dialogs showing version changes, restart requirements, and publisher-provided release notes. * Added collapsible “What changed” details and indicators for notable versions. * Added version history to Agent catalog details when release notes are available. * Catalogs without release notes continue to work as before. * **Documentation** * Updated the FAQ and Agent overview to explain release notes and version history. * Added an Unreleased changelog entry describing these updates. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:14:58 +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-Engine#6928
No description provided.