[GH-ISSUE #3690] [Issue]: Expose capability API 1.3 host services for downloadable packages #1995

Closed
opened 2026-10-21 05:44:28 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @thetopham on GitHub.

Summary

Marinara Engine staging supports capability API 1.0, while the package-owned Hierarchical Maps 1.1.0 implementation requires capability API 1.3. Engine needs a generic, public host contract so downloadable packages can use Engine-owned storage, history, resources, model routing, logging, and UI contribution lifecycle without importing private Engine modules.

Expected behavior

  • Engine exposes capability API 1.3 as a package-generic host boundary.
  • Downloadable packages can request safe model access, normalized character/lore resources, atomic chat/history persistence, package logging, and client loading/retry behavior, and generic feature-agent detail hosting.
  • Hierarchical Maps source, drafting, routes, movement rules, prompt formatting, map UI, editor UI, manifests, bundles, artifacts, and catalog metadata remain in Pasta-Devs/Marinara-Agents.
  • Capability packages do not import Engine-private modules or duplicate Engine-owned databases, provider credentials, chat history, swipes, or checkpoints.

Actual behavior

  • Current Engine staging advertises capability API 1.0.
  • Maps 1.1.0 declares capability API 1.3 and cannot activate against the published host contract.
  • Without a public host API, package code would need private Engine imports or copied Engine internals, recreating the ABI drift that broke the extracted add-on.
  • The validated API 1.3 implementation baseline 7d5c09975abfd28e7e5e6645ff3b0bdeef86e1d7 and CodeRabbit correctness fixes are consolidated in draft PR #3693 at d1308698c.

Steps to reproduce

  1. Inspect packages/shared/src/schemas/capability-package.schema.ts on Engine staging.
  2. Confirm supportedCapabilityApi is { major: 1, minor: 0 }.
  3. Inspect the Maps 1.1.0 schema-v2 manifest in Pasta-Devs/Marinara-Agents.
  4. Confirm it requires capability API 1.3.
  5. Attempt package compatibility validation and observe: Package requires capability API 1.3; this Engine supports 1.0.

Environment

  • Marinara Engine version: staging 3.2.2; consolidated API 1.3 PR head d1308698c
  • Install type: source
  • OS + version: Linux host; exact distribution version not recorded
  • Browser or app shell: capability-package server/client host boundary

Logs, screenshots, or video

Deterministic compatibility message:

Package requires capability API 1.3; this Engine supports 1.0

No screenshot is required for the manifest contract mismatch.

Additional context

  • Paired package issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/50
  • Paired package PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/52
  • Engine PR must target staging; this is not a direct main release PR.
  • The Engine change must remain package-generic. Any hierarchy model, Maps routes, movement/domain decisions, prompt formatting, or package UI belongs in Marinara Agents.
  • Engine continues to own package loading, public capability contracts, shared host callbacks, storage transactions, chat/message/swipe/checkpoint integrity, provider/model routing, credentials, and compatibility handling.
  • Real-device host-layout follow-up: #3691. Package UI follow-up: Pasta-Devs/Marinara-Agents#51.
  • Ownership: @thetopham is coordinating the paired draft PRs.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3690 Originally assigned to: @thetopham on GitHub. ## Summary Marinara Engine `staging` supports capability API 1.0, while the package-owned Hierarchical Maps 1.1.0 implementation requires capability API 1.3. Engine needs a generic, public host contract so downloadable packages can use Engine-owned storage, history, resources, model routing, logging, and UI contribution lifecycle without importing private Engine modules. ## Expected behavior - Engine exposes capability API 1.3 as a package-generic host boundary. - Downloadable packages can request safe model access, normalized character/lore resources, atomic chat/history persistence, package logging, and client loading/retry behavior, and generic feature-agent detail hosting. - Hierarchical Maps source, drafting, routes, movement rules, prompt formatting, map UI, editor UI, manifests, bundles, artifacts, and catalog metadata remain in `Pasta-Devs/Marinara-Agents`. - Capability packages do not import Engine-private modules or duplicate Engine-owned databases, provider credentials, chat history, swipes, or checkpoints. ## Actual behavior - Current Engine `staging` advertises capability API 1.0. - Maps 1.1.0 declares capability API 1.3 and cannot activate against the published host contract. - Without a public host API, package code would need private Engine imports or copied Engine internals, recreating the ABI drift that broke the extracted add-on. - The validated API 1.3 implementation baseline `7d5c09975abfd28e7e5e6645ff3b0bdeef86e1d7` and CodeRabbit correctness fixes are consolidated in draft PR #3693 at `d1308698c`. ## Steps to reproduce 1. Inspect `packages/shared/src/schemas/capability-package.schema.ts` on Engine `staging`. 2. Confirm `supportedCapabilityApi` is `{ major: 1, minor: 0 }`. 3. Inspect the Maps 1.1.0 schema-v2 manifest in `Pasta-Devs/Marinara-Agents`. 4. Confirm it requires capability API 1.3. 5. Attempt package compatibility validation and observe: `Package requires capability API 1.3; this Engine supports 1.0`. ## Environment - Marinara Engine version: `staging` 3.2.2; consolidated API 1.3 PR head `d1308698c` - Install type: source - OS + version: Linux host; exact distribution version not recorded - Browser or app shell: capability-package server/client host boundary ## Logs, screenshots, or video Deterministic compatibility message: `Package requires capability API 1.3; this Engine supports 1.0` No screenshot is required for the manifest contract mismatch. ## Additional context - Paired package issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/50 - Paired package PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/52 - Engine PR must target `staging`; this is not a direct `main` release PR. - The Engine change must remain package-generic. Any hierarchy model, Maps routes, movement/domain decisions, prompt formatting, or package UI belongs in Marinara Agents. - Engine continues to own package loading, public capability contracts, shared host callbacks, storage transactions, chat/message/swipe/checkpoint integrity, provider/model routing, credentials, and compatibility handling. - Real-device host-layout follow-up: #3691. Package UI follow-up: Pasta-Devs/Marinara-Agents#51. - Ownership: @thetopham is coordinating the paired draft PRs. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:28 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
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#1995
No description provided.