[PR #3707] [MERGED] fix: keep stable catalog compatible with agent metadata #6062

Closed
opened 2026-10-23 04:06:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3707
Author: @SpicyMarinara
Created: 7/16/2026
Status: ✅ Merged
Merged: 7/16/2026
Merged by: @SpicyMarinara

Base: main ← Head: agent/catalog-forward-compatibility


📝 Commits (2)

  • eeb5102 Reproduce catalog metadata compatibility failure
  • c8de9e1 Fix stable Agent catalog compatibility

📊 Changes

4 files changed (+85 additions, -4 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+28 -0)
📝 packages/client/src/components/agents/AgentCatalogView.tsx (+13 -4)
📝 packages/shared/src/schemas/capability-package.schema.ts (+6 -0)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+38 -0)

📄 Description

Linked issue

Closes #3706

Related: Pasta-Devs/Marinara-Agents#60

Why this change

  • Stable Marinara Engine v2.3.1 successfully downloads the official Agent catalog but rejects the entire response when a newer, Engine-gated package declares contributions.agentDetail.
  • The failed whole-catalog parse also aborts automatic package update discovery before existing Engine-version and capability-API compatibility gates can filter Hierarchical Maps out.
  • The Agent Library then misdiagnoses the HTTP 400 validation response as a lost internet connection.

What changed

  • Backported the declarative agentDetail.agentIds contribution contract to the stable v2.3 schema without raising the Engine's supported capability API above 1.0.
  • Added a regression using the live Hierarchical Maps v1.1.1 manifest shape and placed it in the automatic-update candidate catalog.
  • Verified Maps still reports “requires capability API 1.3; this Engine supports 1.0” while compatible installed packages continue receiving update candidates.
  • Replaced the offline-only Agent Library error with the actual HTTP status and server message, preserving the installed-agents-offline reassurance.
  • Added desktop and mobile browser coverage for both the normal catalog and the HTTP 400 error state.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated evidence:

  • pnpm check — passed.
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts — passed.
  • pnpm exec playwright test e2e/core-flows.e2e.ts --grep "downloadable agent catalog is usable|agent catalog reports API failures" — 4 passed across desktop and mobile Chromium.
  • Built v2.3 server capabilityPackageManager.catalog() against the live official catalog — the fetch and strict parse succeeded for 29 packages, including Hierarchical Maps v1.1.1 with agentDetail.
  • git diff --check — passed.

Manual verification notes

  • No human manual browser verification was performed. Automated Playwright covered desktop and mobile normal/error catalog paths.
  • Container execution was not performed; issue #60 reports Docker, but the root failure is the shared Engine schema used by every install type.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs or version files are changed. Docker/installer distribution still requires the maintainer's normal stable release process after merge.

UI evidence (if applicable)

  • Automated browser assertions verify the API error appears as Marinara Engine returned HTTP 400: Validation Error. and that the old internet-connection diagnosis is absent. No screenshot is attached yet.

Summary by CodeRabbit

  • New Features

    • Capability package manifests can now include optional agent detail metadata for more targeted agent information.
  • Bug Fixes

    • Improved agent catalog error messages by distinguishing API failures from connectivity issues.
    • Catalog errors now display clearer unavailable status and relevant HTTP or validation details without incorrectly suggesting an internet outage.
  • Tests

    • Added coverage for catalog API failures and forward-compatible agent metadata parsing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3707 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `agent/catalog-forward-compatibility` --- ### 📝 Commits (2) - [`eeb5102`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eeb51025114de8f28bc19f41a9bb9c349b703ffa) Reproduce catalog metadata compatibility failure - [`c8de9e1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c8de9e1a68d6e5b3b63f55da883adbdd2e19b6a2) Fix stable Agent catalog compatibility ### 📊 Changes **4 files changed** (+85 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+28 -0) 📝 `packages/client/src/components/agents/AgentCatalogView.tsx` (+13 -4) 📝 `packages/shared/src/schemas/capability-package.schema.ts` (+6 -0) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+38 -0) </details> ### 📄 Description ## Linked issue Closes #3706 Related: Pasta-Devs/Marinara-Agents#60 ## Why this change - Stable Marinara Engine v2.3.1 successfully downloads the official Agent catalog but rejects the entire response when a newer, Engine-gated package declares `contributions.agentDetail`. - The failed whole-catalog parse also aborts automatic package update discovery before existing Engine-version and capability-API compatibility gates can filter Hierarchical Maps out. - The Agent Library then misdiagnoses the HTTP 400 validation response as a lost internet connection. ## What changed - Backported the declarative `agentDetail.agentIds` contribution contract to the stable v2.3 schema without raising the Engine's supported capability API above 1.0. - Added a regression using the live Hierarchical Maps v1.1.1 manifest shape and placed it in the automatic-update candidate catalog. - Verified Maps still reports “requires capability API 1.3; this Engine supports 1.0” while compatible installed packages continue receiving update candidates. - Replaced the offline-only Agent Library error with the actual HTTP status and server message, preserving the installed-agents-offline reassurance. - Added desktop and mobile browser coverage for both the normal catalog and the HTTP 400 error state. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated evidence: - `pnpm check` — passed. - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts` — passed. - `pnpm exec playwright test e2e/core-flows.e2e.ts --grep "downloadable agent catalog is usable|agent catalog reports API failures"` — 4 passed across desktop and mobile Chromium. - Built v2.3 server `capabilityPackageManager.catalog()` against the live official catalog — the fetch and strict parse succeeded for 29 packages, including Hierarchical Maps v1.1.1 with `agentDetail`. - `git diff --check` — passed. ### Manual verification notes - No human manual browser verification was performed. Automated Playwright covered desktop and mobile normal/error catalog paths. - Container execution was not performed; issue #60 reports Docker, but the root failure is the shared Engine schema used by every install type. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs or version files are changed. Docker/installer distribution still requires the maintainer's normal stable release process after merge. ## UI evidence (if applicable) - Automated browser assertions verify the API error appears as `Marinara Engine returned HTTP 400: Validation Error.` and that the old internet-connection diagnosis is absent. No screenshot is attached yet. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Capability package manifests can now include optional agent detail metadata for more targeted agent information. * **Bug Fixes** * Improved agent catalog error messages by distinguishing API failures from connectivity issues. * Catalog errors now display clearer unavailable status and relevant HTTP or validation details without incorrectly suggesting an internet outage. * **Tests** * Added coverage for catalog API failures and forward-compatible agent metadata parsing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:06:44 +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#6062
No description provided.