mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8882] [MERGED] fix(server): legacy Agents migration skips packages this Engine can't install #8859
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8859
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8882
Author: @SpicyMarinara
Created: 11/5/2026
Status: ✅ Merged
Merged: 11/5/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/legacy-migration-skips-incompatible📝 Commits (1)
6960f41fix(server): skip catalog entries this Engine cannot install in startup migrations📊 Changes
2 files changed (+94 additions, -2 deletions)
View changed files
📝
packages/server/src/services/capability-packages/package-manager.service.ts(+26 -2)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+68 -0)📄 Description
Linked issue
Closes #8881
Found while checking the Agents promotion for v2.5.2 (#8877).
Why this change
installCatalogPackagethrowsCapabilityPackageCompatibilityError. The whole migration then failed, and startup logged "will retry next startup" and retried on every launch. Each attempt stopped at the same entry, so the packages after it never installed. The Noodle extraction migration in the same startup block never ran either.What changed
CapabilityPackageCompatibilityError, whichinstallCatalogPackagethrows only from its checks before downloading: install issue, capability API, Engine range. These are the same capability API and Engine range checks that update discovery (findCompatibleCapabilityPackageUpdates) applies.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks, at commit
6960f41eb5onstagingcca56b5342(these do not replace the boxes above; fullpnpm checkwas not run):node ./scripts/run-regressions.mjs --filter capability-package-lifecycle: fails without the fix withCapabilityPackageCompatibilityError: Package requires capability API 1.817; this Engine supports 1.816thrown frommigrateLegacyAvailability. Passes with it.migrateExtractedNoodleAvailabilitywith the same error. With a catch-all instead of the narrow class check, it fails withMissing expected rejection, which shows that download failures still fail the migration.node ./scripts/run-regressions.mjs --filter capability-package: 5/5 passed (chat-controls, install-refusal, lifecycle, cache, disk-cleanup).cd packages/server && ../../node_modules/.bin/tsc --noEmit -p .: passed.node ./scripts/pnpm-runner.mjs --filter @marinara-engine/server lint(the server lint script, which is tsc): passed.prettier --checkon both changed files: passed.packages/clientonly, and neither changed file is in it.coderabbit review --agent --committed, basecca56b5342): completed, 0 findings on both files.Manual verification notes
capability-packages/availability-migration-v1.json) starts on this build against a catalog with an entry above capability API 1.816. Startup should logStartup migration skipped <id> <version>, which this Engine cannot installonce, install every other compatible package, and write thelegacymarker. It should not log "Optional package availability migration did not complete".noodle-extraction-migration-v1.jsonabsent and does not fail. After switching to a catalog whose Noodle entry is compatible, the next startup should install Noodle.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Not applicable: server-only startup behavior.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.