[GH-ISSUE #3712] [Feature]: Select the Agent catalog by Engine major #2005

Closed
opened 2026-10-21 05:44:32 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3712

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Marinara Engine currently fetches one unversioned Agent catalog regardless of its own release generation. A package published for a newer Engine can therefore break or confuse older clients, and Agent developers must manually coordinate against the stable Engine version.

Proposed solution

Derive the official Agent catalog URL from APP_VERSION so each Engine major reads its compatible generated lane.

  • Engine 3.x fetches catalog/v3/catalog.json.
  • Preserve MARINARA_AGENT_CATALOG_URL as an exact operator override.
  • Add regression coverage for stable, prerelease, and invalid-version URL selection.
  • Keep startup behavior unchanged: automatically update already-installed compatible packages, activate/self-check server runtimes, and leave fresh installs empty.

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

Merge/release order should publish the Agents lanes before an Engine release begins requesting them.

Alternatives considered

  • Continue using the unversioned catalog and rely only on per-entry compatibility filtering. The whole catalog still has to parse before filtering, so newer schema additions can break older clients.
  • Pin a different URL manually per branch or deployment. This is operationally fragile and easy for developers or release jobs to forget.
  • Silently install every catalog package after an Engine release. Optional Agents should remain user-selected; only installed packages should auto-update.

Additional context

This follows the catalog parsing incident fixed on main by #3707 and on staging by #3709.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3712 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Marinara Engine currently fetches one unversioned Agent catalog regardless of its own release generation. A package published for a newer Engine can therefore break or confuse older clients, and Agent developers must manually coordinate against the stable Engine version. ## Proposed solution Derive the official Agent catalog URL from `APP_VERSION` so each Engine major reads its compatible generated lane. - Engine 3.x fetches `catalog/v3/catalog.json`. - Preserve `MARINARA_AGENT_CATALOG_URL` as an exact operator override. - Add regression coverage for stable, prerelease, and invalid-version URL selection. - Keep startup behavior unchanged: automatically update already-installed compatible packages, activate/self-check server runtimes, and leave fresh installs empty. Paired catalog pipeline: Pasta-Devs/Marinara-Agents#62 Merge/release order should publish the Agents lanes before an Engine release begins requesting them. ## Alternatives considered - Continue using the unversioned catalog and rely only on per-entry compatibility filtering. The whole catalog still has to parse before filtering, so newer schema additions can break older clients. - Pin a different URL manually per branch or deployment. This is operationally fragile and easy for developers or release jobs to forget. - Silently install every catalog package after an Engine release. Optional Agents should remain user-selected; only installed packages should auto-update. ## Additional context This follows the catalog parsing incident fixed on main by #3707 and on staging by #3709. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 17, 2026):

Resolved by #3714 and included in #3732, both merged into staging.

<!-- gh-comment-id:5000939577 --> @SpicyMarinara commented on GitHub (Jul 17, 2026): Resolved by #3714 and included in #3732, both merged into staging.
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#2005
No description provided.