[GH-ISSUE #8078] deps: migrate the host module contract before adopting Motion 14 #7550

Closed
opened 2026-10-24 04:04:07 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Problem

The dependency refresh in #8074 reproduces a compatibility gate when framer-motion is raised from major 13 to 14: scripts/regressions/marinara-host-namespace.regression.ts fails with 14 !== 13 and explains that a host library major requires a capability API major migration.

The Engine exposes the complete Motion namespace to downloadable agent packages through globalThis.__MARINARA_HOST__.modules['framer-motion']. packages/client/src/lib/marinara-host-contract.ts explicitly pins major 13, and docs/development/optional-agent-packages.md#host-client-namespace documents the corresponding contract. General React API compatibility does not replace this versioned host contract.

Current disposition

#8074 updates to framer-motion 13.5.1, the highest stable major-13 release verified against primary registry metadata on 2026-10-22. This preserves the existing host contract and React 19 peer compatibility. The regression assertion and host major are unchanged.

Follow-up

Plan and validate the host capability API migration before adopting Motion 14. Coordinate Engine's published module contract with Marinara-Agents package tooling and consumer bundles, including existing installed packages, positive and negative compatibility controls, and the live host namespace browser regression. Do not simply change the pinned major or weaken the regression.

Owner: @SpicyMarinara.

Originally created by @SpicyMarinara on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8078 Originally assigned to: @SpicyMarinara on GitHub. ## Problem The dependency refresh in #8074 reproduces a compatibility gate when framer-motion is raised from major 13 to 14: `scripts/regressions/marinara-host-namespace.regression.ts` fails with `14 !== 13` and explains that a host library major requires a capability API major migration. The Engine exposes the complete Motion namespace to downloadable agent packages through `globalThis.__MARINARA_HOST__.modules['framer-motion']`. `packages/client/src/lib/marinara-host-contract.ts` explicitly pins major 13, and `docs/development/optional-agent-packages.md#host-client-namespace` documents the corresponding contract. General React API compatibility does not replace this versioned host contract. ## Current disposition #8074 updates to framer-motion 13.5.1, the highest stable major-13 release verified against primary registry metadata on 2026-10-22. This preserves the existing host contract and React 19 peer compatibility. The regression assertion and host major are unchanged. ## Follow-up Plan and validate the host capability API migration before adopting Motion 14. Coordinate Engine's published module contract with Marinara-Agents package tooling and consumer bundles, including existing installed packages, positive and negative compatibility controls, and the live host namespace browser regression. Do not simply change the pinned major or weaken the regression. Owner: @SpicyMarinara.
bsakaguchi 2026-10-24 04:04:07 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Rechecked the active contract during the assigned-issue cleanup. marinara-host-namespace.regression.ts passes on the current implementation; it still pins framer-motion major 13. The Engine exports the complete namespace through the single immutable __MARINARA_HOST__.modules object, not a selected subset of public React animation APIs.

The current capability API is 1.375. getCapabilityApiCompatibilityIssue requires an exact major match: simply changing the supported API to 2 would reject existing API-1 packages, while retaining API 1 and replacing the module with Motion 14 would silently change their published contract. Upstream Motion 14 release notes explicitly mention removed internal APIs, which matters because the full namespace is shared.

Keeping the issue open for a coordinated Engine/Marinara-Agents migration: define coexistence or an explicit installed-package upgrade path, rebuild the matching package shims/artifacts, and exercise old/new positive and negative compatibility controls plus the live namespace browser test. No contract assertion was weakened and Motion remains at the compatible major-13 release.

<!-- gh-comment-id:6346681262 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Rechecked the active contract during the assigned-issue cleanup. `marinara-host-namespace.regression.ts` passes on the current implementation; it still pins `framer-motion` major 13. The Engine exports the complete namespace through the single immutable `__MARINARA_HOST__.modules` object, not a selected subset of public React animation APIs. The current capability API is **1.375**. `getCapabilityApiCompatibilityIssue` requires an exact major match: simply changing the supported API to 2 would reject existing API-1 packages, while retaining API 1 and replacing the module with Motion 14 would silently change their published contract. Upstream [Motion 14 release notes](https://motion.dev/changelog?type=major) explicitly mention removed internal APIs, which matters because the full namespace is shared. Keeping the issue open for a coordinated Engine/Marinara-Agents migration: define coexistence or an explicit installed-package upgrade path, rebuild the matching package shims/artifacts, and exercise old/new positive and negative compatibility controls plus the live namespace browser test. No contract assertion was weakened and Motion remains at the compatible major-13 release.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

Owner: @SpicyMarinara (Codex). Active implementation is in draft PR #8134. The additive design retains the complete legacy Motion13 host slot for installed API1 packages and adds an explicit Motion14 slot; Agents tooling is coordinated in Pasta-Devs/Marinara-Agents#1599. No existing major assertion is being weakened.

<!-- gh-comment-id:6354680773 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): Owner: @SpicyMarinara (Codex). Active implementation is in draft PR #8134. The additive design retains the complete legacy Motion13 host slot for installed API1 packages and adds an explicit Motion14 slot; Agents tooling is coordinated in Pasta-Devs/Marinara-Agents#1599. No existing major assertion is being weakened.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

The coordinated migration is merged to staging: Engine #8134 at 1ffb916dfb and Pasta-Devs/Marinara-Agents#1600 at 6f9c9251e8188904db4a5c9340c2afeb2bfe2a04. Both reviewed heads are verified in their staging ancestry; required checks and full Dottore reviews passed with no defects or unresolved threads. An unchanged Linux LTM replay against the new Engine host also passed browser/regression/strict type checks. Legacy package imports retain Motion 13; the explicit motion/react slot requires API 1.377. Translation publication remains tracked separately by #8136 / #8135.

<!-- gh-comment-id:6355849117 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): The coordinated migration is merged to staging: Engine #8134 at 1ffb916dfb32a3400fdca2fb65616d078fa6018e and Pasta-Devs/Marinara-Agents#1600 at 6f9c9251e8188904db4a5c9340c2afeb2bfe2a04. Both reviewed heads are verified in their staging ancestry; required checks and full Dottore reviews passed with no defects or unresolved threads. An unchanged Linux LTM replay against the new Engine host also passed browser/regression/strict type checks. Legacy package imports retain Motion 13; the explicit motion/react slot requires API 1.377. Translation publication remains tracked separately by #8136 / #8135.
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#7550
No description provided.