[GH-ISSUE #3651] [Feature]: Version executable capability package host contracts #1974

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

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

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

Executable downloadable packages currently declare only a broad Marinara Engine version range. There is no versioned capability-host contract or build provenance, so a package can install successfully and then depend on unsupported private Engine behavior at runtime. Hierarchical Maps 1.0.0 exposed this gap when its captured storage implementation no longer matched Engine 2.3.

Proposed solution

Introduce an additive capability manifest v2 for executable packages:

  • require capabilityApi: { major, minor };
  • require diagnostic builtAgainst: { engineVersion, engineCommit };
  • keep manifest v1 readable so existing installed/catalog packages remain compatible;
  • publish Engine's supported capability API version;
  • reject an unsupported major or a package minor newer than the host before extraction or runtime import;
  • expose sanitized installed contract/provenance in package diagnostics;
  • add deterministic schema and runtime-blocking regression coverage.

This is the first narrow slice of the Hierarchical Maps recovery plan Phase 2. It establishes only a generic host compatibility boundary. Map validation, storage orchestration, projection, routes, and UI remain owned by the downloadable package in Pasta-Devs/Marinara-Agents.

Alternatives considered

  • Requiring new fields in manifest v1 would invalidate every existing catalog and installed package.
  • Relying only on Engine semver repeats the broad-compatibility failure that caused the Maps incident.
  • Moving Maps implementation back into Engine would bloat core and violate the agreed optional-package boundary.

Additional context

Related recovery work:

Owner: @thetopham

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3651 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? Executable downloadable packages currently declare only a broad Marinara Engine version range. There is no versioned capability-host contract or build provenance, so a package can install successfully and then depend on unsupported private Engine behavior at runtime. Hierarchical Maps 1.0.0 exposed this gap when its captured storage implementation no longer matched Engine 2.3. ## Proposed solution Introduce an additive capability manifest v2 for executable packages: - require `capabilityApi: { major, minor }`; - require diagnostic `builtAgainst: { engineVersion, engineCommit }`; - keep manifest v1 readable so existing installed/catalog packages remain compatible; - publish Engine's supported capability API version; - reject an unsupported major or a package minor newer than the host before extraction or runtime import; - expose sanitized installed contract/provenance in package diagnostics; - add deterministic schema and runtime-blocking regression coverage. This is the first narrow slice of the Hierarchical Maps recovery plan Phase 2. It establishes only a generic host compatibility boundary. Map validation, storage orchestration, projection, routes, and UI remain owned by the downloadable package in Pasta-Devs/Marinara-Agents. ## Alternatives considered - Requiring new fields in manifest v1 would invalidate every existing catalog and installed package. - Relying only on Engine semver repeats the broad-compatibility failure that caused the Maps incident. - Moving Maps implementation back into Engine would bloat core and violate the agreed optional-package boundary. ## Additional context Related recovery work: - Pasta-Devs/Marinara-Engine#3642 - Pasta-Devs/Marinara-Engine#3644 - Pasta-Devs/Marinara-Agents#14 - Pasta-Devs/Marinara-Agents#15 - Follow-up Maps 1.1 package-owned source work will be tracked separately in Marinara-Agents. Owner: @thetopham ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:18 +07:00
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#1974
No description provided.