[PR #3714] [MERGED] Select the Agent catalog by Engine major #6066

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3714
Author: @SpicyMarinara
Created: 7/16/2026
Status: ✅ Merged
Merged: 7/17/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/version-aware-agent-catalog


📝 Commits (3)

  • 7ae0f00 feat: select agent catalog by engine major
  • c0bce6e docs: clarify capability package lifecycle
  • b145a41 Merge remote-tracking branch 'origin/staging' into feature/version-aware-agent-catalog

📊 Changes

3 files changed (+45 additions, -4 deletions)

View changed files

📝 docs/CONFIGURATION.md (+8 -1)
📝 packages/server/src/services/capability-packages/package-manager.service.ts (+14 -2)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+23 -1)

📄 Description

Linked issue

Closes #3712

Paired catalog pipeline: Pasta-Devs/Marinara-Agents#62 and Pasta-Devs/Marinara-Agents#63

Why this change

A single unversioned Agent catalog forces every Engine generation to parse package metadata intended for newer hosts before compatibility filtering can run. Selecting a generated Engine-major lane prevents staging-built packages from breaking stable catalog discovery.

What changed

  • Resolve the official catalog URL from APP_VERSION, including prerelease versions.
  • Preserve MARINARA_AGENT_CATALOG_URL as the exact highest-priority operator override.
  • Fall back to the legacy v2-safe URL for non-release development version strings.
  • Add lifecycle regression coverage for v2, v3 prerelease, invalid versions, and overrides.
  • Document that only installed packages auto-update and activate; fresh installs remain empty.

The Agents lane PR must merge before this Engine change is released so the selected URL already exists.

Validation

Automated evidence:

  • pnpm check — passed (Impeccable context, TypeScript, ESLint, server/client production builds, and PWA output).

  • pnpm regression:issues — passed, including capability-package lifecycle and dynamic Conversation game slash regressions.

  • Focused capability lifecycle regression — passed with v2, v3 prerelease, invalid-version fallback, and operator-override URL assertions.

  • Live package-manager fetch against the paired Agents PR branch — parsed v2 with 28 packages/no Maps and v3 with the 7 expected packages.

  • git diff --check — passed.

  • GitHub pnpm-validate and container-build-test — passed while draft.

  • pnpm check passes locally

  • Container (Docker / Podman) built and ran without issue

  • Ran the app, clicked through the changes manually

  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)

  • Above manual verification completed (describe below)

  • Read and followed CONTRIBUTING.md

Manual verification notes

  • No UI changed. Both catalog lanes were fetched through the real Engine package manager and validated with the production schema.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No Engine version bump is included. When staging is released to main at its existing 3.x version, the same APP_VERSION logic continues selecting v3.

UI evidence (if applicable)

No UI changes.

Summary by CodeRabbit

  • New Features

    • Official agent catalogs now automatically match the Engine’s major-version lane.
    • Custom agent catalog URLs can be configured and take priority when provided.
    • Existing installed agents continue working if catalog access or updates fail.
  • Documentation

    • Clarified agent download, startup upgrades, persistence, and first-install behavior.

🔄 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/3714 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/17/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/version-aware-agent-catalog` --- ### 📝 Commits (3) - [`7ae0f00`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7ae0f00908011c58e78f310b43c04c56c911f510) feat: select agent catalog by engine major - [`c0bce6e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c0bce6e7b372146914b7a482e337ebe26632934a) docs: clarify capability package lifecycle - [`b145a41`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b145a41d080083d5e90617aeb30efb963e917ddd) Merge remote-tracking branch 'origin/staging' into feature/version-aware-agent-catalog ### 📊 Changes **3 files changed** (+45 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/CONFIGURATION.md` (+8 -1) 📝 `packages/server/src/services/capability-packages/package-manager.service.ts` (+14 -2) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+23 -1) </details> ### 📄 Description ## Linked issue Closes #3712 Paired catalog pipeline: Pasta-Devs/Marinara-Agents#62 and Pasta-Devs/Marinara-Agents#63 ## Why this change A single unversioned Agent catalog forces every Engine generation to parse package metadata intended for newer hosts before compatibility filtering can run. Selecting a generated Engine-major lane prevents staging-built packages from breaking stable catalog discovery. ## What changed - Resolve the official catalog URL from `APP_VERSION`, including prerelease versions. - Preserve `MARINARA_AGENT_CATALOG_URL` as the exact highest-priority operator override. - Fall back to the legacy v2-safe URL for non-release development version strings. - Add lifecycle regression coverage for v2, v3 prerelease, invalid versions, and overrides. - Document that only installed packages auto-update and activate; fresh installs remain empty. The Agents lane PR must merge before this Engine change is released so the selected URL already exists. ## Validation Automated evidence: - `pnpm check` — passed (Impeccable context, TypeScript, ESLint, server/client production builds, and PWA output). - `pnpm regression:issues` — passed, including capability-package lifecycle and dynamic Conversation game slash regressions. - Focused capability lifecycle regression — passed with v2, v3 prerelease, invalid-version fallback, and operator-override URL assertions. - Live package-manager fetch against the paired Agents PR branch — parsed v2 with 28 packages/no Maps and v3 with the 7 expected packages. - `git diff --check` — passed. - GitHub `pnpm-validate` and `container-build-test` — passed while draft. - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - No UI changed. Both catalog lanes were fetched through the real Engine package manager and validated with the production schema. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No Engine version bump is included. When staging is released to main at its existing 3.x version, the same `APP_VERSION` logic continues selecting v3. ## UI evidence (if applicable) No UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Official agent catalogs now automatically match the Engine’s major-version lane. - Custom agent catalog URLs can be configured and take priority when provided. - Existing installed agents continue working if catalog access or updates fail. - **Documentation** - Clarified agent download, startup upgrades, persistence, and first-install behavior. <!-- 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:06:47 +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#6066
No description provided.