[GH-ISSUE #8881] [Issue]: legacy Agents migration stops at a catalog entry this Engine can't install #8536

Closed
opened 2026-11-07 16:43:37 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The one-time startup migration that installs downloadable Agents for profiles created before Agents existed stops at the first catalog entry this Engine can't install, such as one needing a newer capability API. It then fails and retries on every startup, so the packages after that entry, and the Noodle extraction migration that follows, never install.

Expected behavior

The migration installs every package this Engine can install, skips the ones it can't (with a log line), and completes.

Actual behavior

installCatalogPackage throws CapabilityPackageCompatibilityError for the incompatible entry. migrateLegacyAvailability rethrows it, and startup logs that it will retry. Every later startup stops at the same entry.

Steps to reproduce

  1. Start an Engine on a data directory from before downloadable Agents (user state, no capability-packages/availability-migration-v1.json).
  2. Point it at a catalog that has an entry above its capability API, before the alphabetically later ones. Reproduced with v2.5.1's code and today's Agents staging catalog: gacha-forge 1.27.5 needs capability API 1.385, and v2.5.1 supports 1.341.
  3. Startup logs that the optional package availability migration didn't complete. Packages after gacha-forge, and Noodle, are never installed.

Environment

  • Marinara Engine version: v2.5.1, and staging cca56b5342 (2.5.2) for any catalog entry above capability API 1.816
  • Install type: any
  • OS + version: any
  • Browser or app shell: n/a (server startup)

Logs, screenshots, or video

CapabilityPackageCompatibilityError: Package requires capability API 1.385; this Engine supports 1.341, thrown from migrateLegacyAvailability.

Additional context

Found while checking the Agents promotion for v2.5.2 (#8877). The fix is in a PR that links this issue.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8881 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The one-time startup migration that installs downloadable Agents for profiles created before Agents existed stops at the first catalog entry this Engine can't install, such as one needing a newer capability API. It then fails and retries on every startup, so the packages after that entry, and the Noodle extraction migration that follows, never install. ## Expected behavior The migration installs every package this Engine can install, skips the ones it can't (with a log line), and completes. ## Actual behavior `installCatalogPackage` throws `CapabilityPackageCompatibilityError` for the incompatible entry. `migrateLegacyAvailability` rethrows it, and startup logs that it will retry. Every later startup stops at the same entry. ## Steps to reproduce 1. Start an Engine on a data directory from before downloadable Agents (user state, no `capability-packages/availability-migration-v1.json`). 2. Point it at a catalog that has an entry above its capability API, before the alphabetically later ones. Reproduced with v2.5.1's code and today's Agents staging catalog: gacha-forge 1.27.5 needs capability API 1.385, and v2.5.1 supports 1.341. 3. Startup logs that the optional package availability migration didn't complete. Packages after gacha-forge, and Noodle, are never installed. ## Environment - Marinara Engine version: v2.5.1, and staging cca56b5342 (2.5.2) for any catalog entry above capability API 1.816 - Install type: any - OS + version: any - Browser or app shell: n/a (server startup) ## Logs, screenshots, or video `CapabilityPackageCompatibilityError: Package requires capability API 1.385; this Engine supports 1.341`, thrown from `migrateLegacyAvailability`. ## Additional context Found while checking the Agents promotion for v2.5.2 (#8877). The fix is in a PR that links this issue. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-11-07 16:43:37 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Nov 5, 2026):

Fixed in #8882 (merged to staging as a6c316a2bc). Closed by hand, because closing keywords only fire on the default branch.

<!-- gh-comment-id:6664495733 --> @SpicyMarinara commented on GitHub (Nov 5, 2026): Fixed in #8882 (merged to staging as a6c316a2bc). Closed by hand, because closing keywords only fire on the default branch.
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#8536
No description provided.