mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1494] [MERGED] fix(packages): use the Engine's own code instead of bundled copies #1493
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1493
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-Agents/pull/1494
Author: @SpicyMarinara
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/ready-agents-ui-store-bundle📝 Commits (10+)
5a01975feat(packages): Calls, Noodle and Slurp servers use the Engine's runtime services8a96c65fix(packages): keep Slurp's memory lookup on the registry overlay; always unbind Calls3775635fix(packages): admission check never throws; name the singleton baseline relatively4017b35feat(packages): package clients use the Engine's host namespace0d9a397fix(packages): host Modal keeps package i18n, stacking and tests8fc1a1eMerge branch 'feat/packages-host-runtime' into fix/ready-agents-ui-store-bundle687d95bfix(packages): require capability API 1.341 for every rebuilt packagee3aaecdchore(catalog): rebuild 12 packages on the Engine's host559b63ftest(packages): prove every agent at once on the Engine's host1b217fdchore(catalog): rebuild the 12 packages again with the query defaults📊 Changes
161 files changed (+6463 additions, -5512 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+21 -3)📝
CONTRIBUTING.md(+13 -1)📝
README.md(+2 -2)➕
artifacts/chess-1.0.6.zip(+0 -0)➕
artifacts/conversation-calls-1.1.5.zip(+0 -0)➕
artifacts/eightball-1.0.6.zip(+0 -0)➕
artifacts/hierarchical-maps-1.5.2.zip(+0 -0)➕
artifacts/long-term-memory-1.4.56.zip(+0 -0)➕
artifacts/memory-nag-1.2.1.zip(+0 -0)➕
artifacts/noodle-1.5.7.zip(+0 -0)➕
artifacts/poker-1.0.6.zip(+0 -0)➕
artifacts/rock-paper-scissors-1.0.6.zip(+0 -0)➕
artifacts/slurp2-0.3.51.zip(+0 -0)➕
artifacts/tic-tac-toe-1.0.6.zip(+0 -0)➕
artifacts/uno-1.0.6.zip(+0 -0)📝
catalog/catalog.json(+170 -159)📝
catalog/notes.json(+36 -12)📝
catalog/v2/catalog.json(+170 -159)📝
catalog/v2/notes.json(+36 -12)📝
catalog/v3/catalog.json(+170 -159)...and 80 more files
📄 Description
Merge after Engine E-client #7869 ; E-server #7868 ; E-disk #7870 (Pasta-Devs/Marinara-Engine). All three are now merged into Engine
staging(Pasta-Devs/Marinara-Engine#7869, Pasta-Devs/Marinara-Engine#7870, and Pasta-Devs/Marinara-Engine#7868 at25f8df7b0), so D8 holds and Enginestagingreports capability API 1.341.Linked issue
Closes #1478
Closes #1487
Engine side: Pasta-Devs/Marinara-Engine#7858.
Why this change
Twelve agent packages carried their own copies of code that Marinara Engine already runs. Several of those copies kept their own state beside the Engine's, so they broke things:
sidecar-config.json, overwrite chat metadata saved in the meantime, and open two Intiface clients.This PR is the contract's "A-integrate" step: it merges the two infra branches (client:
fix/ready-agents-ui-store-bundle, server:feat/packages-host-runtime), rebuilds all 12 packages once against one Engine, and publishes them.Decisions (binding; made by the lead while the maintainer was asleep)
globalThis.__MARINARA_HOST__ = { version: 1, ... }. There is no__MARINARA_HOST_UI_STORE__alias; it was never published.engine.min, because Engine staging still reports 2.5.0 until the release bump. Engines without the members never install these versions and keep the installed version working. The UI and chat store adapters keep a read-only fallback that never writes. A package never falls back to a bundled copy of a stateful Engine service; it reports the feature unavailable.session.chatId). Noodle and Slurp hide the chat-scoped emoji-selection settings, because they have no chat.versions/.stagingbefore this PR.Contract decisions this PR relies on: C1 (target capability API 1.341), C2 (the 12 esbuild-built packages are rebuilt once with
schemaVersion: 2;engine.minandengine.maxExclusiveare unchanged; the six prebuilt packages are only gated), C3 (versions above every version any branch ever published; Slurp is 0.3.51 becauseorigin/slurpothonpublished 0.3.50), C4 (oneMARINARA_ENGINE_ROOTfor every build; the per-packagebuiltAgainstpins are retired, which replaces plan guardrail 6), C5 (server externals load through the Engine'spackages/serverdependencies), C6 (@marinara-engine/sharedstays bundled, tree-shaken), C7 (Engine storage reads stay bundled under a shrink-only ratchet), C8 (host QueryClient and toasts), C9 (initReactI18nextwithheld), C11 (Calls, Noodle and Slurp stop bundling the Claude (Subscription) provider and its plugin), C12 (one Agents PR), C13 (nosources/enginefile deleted or re-fingerprinted), C14 (new tests in new files).What changed
sources/host-client-overlay,scripts/esbuild-host-plugins.mjs,scripts/client-host-gates.mjs). Every feature build stacks adapters for the Engine's 9 stores, TTS, app dialogs, API client, emoji catalog andModalover the vendored modules, and resolves React, React DOM, React Query, zustand, sonner, zod, i18next, react-i18next, framer-motion, tailwind-merge and clsx to the Engine's own modules. Packages render with the host QueryClient and the host toaster, with no own<Toaster>, dialog renderer or QueryClient. Noodle and Slurp CSS keep only their own utilities over the Engine theme (source(none)+@reference). Calls wraps its composer inPackageChatScope(D5); World Maps uses the host chat slice for pending moves.sources/host-runtime-overlay,scripts/server-host-gates.mjs). Calls, Noodle and Slurp reach the Local Model, provider routing and fallback, connection admission, the command and service registries, image and video generation and the logger throughapi.runtime. Calls writes chats throughapi.runtime.persistence(patchChatMetadata,appendMessages, notes, influences) and uses the Engine's haptics, Spotify, Local Whisper and gallery. A missing host member answers HTTP 501host_feature_unavailable.zod,adm-zip,dotenv,nanoidandjsonrepairload from the Engine for every package. The Claude (Subscription) overlay and its plugin copies are deleted.fix/ready-agents-ui-store-bundleand resolvedscripts/build-feature-packages.mjs(client overlay for every feature, overlay-aware capture paths, server overlay, externals and gates; the Claude overlay is gone from both sides).bundleServer()usesrunEsbuildwithsharedTreeShakingPlugin, like the clients. The esbuild CLI spawner is deleted.schemaVersion: 2, capability API 1.341 and onebuiltAgainst(see "Engine build"). World Maps, Long-Term Memory and Memory Nag record the same values inengine-boundary.json;hierarchical-maps-boundary.mjsandvalidate-catalog.mjsexpect 1.341.SLURP2_VERSIONand a splash entry (the oldest 0.2.20 splash entry goes to stay under the 800-line limit, as onslurpothon).scripts/server-singleton-baseline.jsonis empty: no published package server carries a Local Model, connection-admission, Claude Agent SDK, Pino, Intiface or Spotify fingerprint any more. The Tier B baseline (scripts/server-engine-modules-baseline.json, Engine storage reads with a reason each) matches the rebuilt bundles exactly.MARINARA_PACKAGE_IDS(comma list) installs several packages into one browser fixture (install-package-browser-fixture.mjs,start-package-browser-servers.mjs,run-package-browser-tests.mjs).tests/package-all-agents.e2e.ts: with all 12 rebuilt and the 5 prebuilt packages installed, three page loads keepmarinara-engine-uiat the Engine's version with its browser-only settings, no package writes an Engine-owned key itself (stack-attributed, with a positive control on Noodle's own keys), every React fiber in the page has the host's suffix, there is one toaster, and Escape closes only the topmost dialog.tests/package-host-fixture.ts: the Long-Term Memory browser fixture page now provides the Engine's host libraries and QueryClient before it loads the package client.$, and the NovelAI test now asserts Noodle's server carries no copy of the Engine's image runtime.Engine build
The committed outputs of all 12 packages come from one
node scripts/build-feature-packages.mjs chess eightball poker rock-paper-scissors tic-tac-toe uno conversation-calls noodle slurp2 hierarchical-maps long-term-memory memory-naginvocation againstMARINARA_ENGINE_ROOT= E_TARGET25f8df7b0a388fe36f657d69c6fcaa9f27e066ed, the first Enginestagingcommit with Pasta-Devs/Marinara-Engine#7869, #7870 and #7868 (capability API 1.341). Every manifest andengine-boundary.jsonrecords it asbuiltAgainst(engine 2.5.0). Every client gate, server gate and the shim export check ran inside that build.The testing below ran against a local merge of Engine
stagingdcae41337and the #7868 head (3ae82c539), before #7868 merged. That merge has the same tree as E_TARGET (781097688), and the E_TARGET build left everyclient.jsandserver.mjsbyte-identical; onlybuiltAgainst, the ZIPs and the catalogs changed. The same 12-id invocation ran three times in this branch: the first outputs were replaced after the Slurp splash had to shrink below 800 lines, the second after the Long-Term Memory browser test showed the query-freshness change below, and the third only movedbuiltAgainstto E_TARGET.Size before and after
Long-Term Memory and Memory Nag server bundles are unchanged byte for byte.
Package and security impact
schemaVersion: 2, capability API 1.341.engine.minandengine.maxExclusiveare unchanged. Engines below 1.341 refuse the install with "Package requires capability API 1.341; this Engine supports …" and keep the installed version (proved below with Engine v2.5.0's own schema).claude-code-plugin/*assets are removed from Calls, Noodle and Slurp.Risky work claim boundary
client.js(custom element per package) andserver.mjs(activate/selfCheck; Calls, Noodle and Slurp bindapi.runtimefirst).3ae82c539, the E_TARGET tree) with the new artifacts installed through the browser fixture; servers activateactive/ready.capability-package.schema.tsparses all 41 v2 catalog manifests and refuses all 12 rebuilt ones; the update finder on 1.341 leaves out a copy that needs 1.342.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
What the agent ran on macOS (Node 24.16.0), against Engine
3ae82c539(same tree as E_TARGET):.github/workflows/pull-request-checks.yml(57, afternpm ci), plusnpm run checkandgit diff --check: all pass. That includesvalidate-catalog.mjs(storage-key gate on all 18 clients, prebuilt included), the client and server gate regressions, the server singleton gate (empty baseline), the host module shims,test-catalog-lanes.mjs, the locale checks andcatalog-release-notes.npm run typecheck:packageswith the Engine: passes.npm run test:slurp:regressionswith the Engine: 299 of 299 pass.staging(noodle-public-only,noodler-content-formats,noodler-disclosure-contract,noodler-fictional-prices,noodler-generation-guidance-default; no workflow runs them).ltm-browser.ymllist through the Engine's tsx: all 20 pass, pluslong-term-memory-loadingandlong-term-memory-runtime.long-term-memory-browser.regression.ts(the first step of that workflow) loaded no package UI at first: its fixture page had no host. With the new fixture host it renders, queries and changes memory places, and it found that Long-Term Memory lost its stale-at-once query default in the Engine's cache, which this PR restores (Noodle too). On this Mac it then stops at line 4629 of 6339, where ArrowDown and Enter on a native<select>change nothing in macOS headless Chromium (reproduced on a plain page); CI runs it on Linux.--workers=2, ports 5460/5461:package-all-agents.e2e.tswith 17 packages installed: 2 passed.active/readyeach):[schedule_update]command turn was parsed.concurrentChange: kept,keepMe: before); chat B's connection was unchanged.client.jsin any of them, 13 MB in total;versions/<id>holds one version each.getCapabilityApiCompatibilityIssueaccepts all 12 rebuilt manifests; a copy needing 1.342 is refused with the exact message, andfindCompatibleCapabilityPackageUpdatesleaves it out while offering the real one. Engine v2.5.0's schema refuses all 12 with "Package requires capability API 1.341; this Engine supports 1.66".Not tested here:
Known failures that are not caused by this PR:
node scripts/validate-vendored-engine.mjs(Noodle browser workflow, not required) reports 146 drifted vendored files against current Engine staging. This PR changes nosources/enginefile and must not re-fingerprint them (C13).tests/hierarchical-maps-lifecycle.regression.tsupdates a prior World Maps artifact to 1.5.2 and gets through the Game map reconciliation, then fails where the Engine's message bulk delete now answers 200 with{ trashed }instead of 204.[schedule_update]during a call reaches the chat's cached schedule throughpatchChatMetadata, but the Engine now owns schedules on the character card and re-resolves the cache, so the change does not show. Calls 1.1.4 wrote the same cached copy (by its code); it needs its own follow-up.Manually verify (Mari)
[youtube]plays in the Engine's player, and adding a sticker shows its dialog.capability-runtime-snapshotsholds only the live copies, and thatversions/<id>keeps at most two versions.stagingtomaintogether with the Engine release: a v2.5.0 user who has not installed one of these agents sees it in Download Agents, but installing it is refused until they update Marinara Engine.Not done
@marinara-engine/sharedis not taken from the host (N2): the vendored tree does not typecheck against today's Engine. Both sides tree-shake it instead.Documentation impact
Summary by CodeRabbit
Improvements
Compatibility
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.