[GH-ISSUE #3877] [Feature]: Full capability package support in custom agent repos #2095

Closed
opened 2026-10-21 05:45:20 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

#3863 added custom agent repos (feature-flag gated), but they only support
pipeline agents (execution: "pipeline" — prompt + tools). Agents with
execution: "feature" are hard-rejected in parseCustomAgentRepositoryArchive:

if (definition.execution === "feature") {
  throw new Error(`Agent ${definition.id} requires a package runtime and cannot be imported as a custom agent`);
}

So anyone who wants to publish a "big" agent — one with its own server
runtime, not just a prompt/tool definition — can't distribute it via custom
repos. They're stuck going through the official Marinara-Agents catalog
(human-reviewed, PastaDevs-vetted).

Proposed solution

Extend the custom-repo flow to optionally accept a full capability package
(manifest.json + declared files, same shape the official catalog uses),
reusing package-manager.service.ts's existing verify/extract/install path
instead of only packagedAgentDefinitionSchema.

This is a materially bigger trust boundary than the current pipeline-agent
flow, since it means executing arbitrary server code with declared
permissions (network, storage, routes, etc.) from an unvetted GitHub
repo — not just running a prompt with some tool calls. Consent UX needs to
scale accordingly:

  • Show requested permissions explicitly before install/sync (not just a
    generic "unvetted repo" warning)
  • Consider whether some permissions (e.g. network) should be disallowed
    entirely for unofficial/custom repos as a first cut
  • Same preview/diff-before-apply pattern #3861 established, but permission
    changes on sync should probably force re-confirmation even if the trust
    confirmation UX for prompt-only changes doesn't

Alternatives considered

  • Leave as-is, require going through the official catalog for any feature
    agent — safest, but means no distribution path for non-catalog feature
    agents at all
  • Allow it but require ADMIN_SECRET or another elevated confirmation step
    beyond the standard custom-repo trust prompt

Additional context

Related to #3861 / #3863. This is a genuinely bigger feature than a small
extension — the security model needs real discussion before implementation,
not just relaxing the current check.

Originally created by @Gunterlie on GitHub (Jul 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3877 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? #3863 added custom agent repos (feature-flag gated), but they only support pipeline agents (`execution: "pipeline"` — prompt + tools). Agents with `execution: "feature"` are hard-rejected in `parseCustomAgentRepositoryArchive`: ``` if (definition.execution === "feature") { throw new Error(`Agent ${definition.id} requires a package runtime and cannot be imported as a custom agent`); } ``` So anyone who wants to publish a "big" agent — one with its own server runtime, not just a prompt/tool definition — can't distribute it via custom repos. They're stuck going through the official Marinara-Agents catalog (human-reviewed, PastaDevs-vetted). ## Proposed solution Extend the custom-repo flow to optionally accept a full capability package (manifest.json + declared files, same shape the official catalog uses), reusing `package-manager.service.ts`'s existing verify/extract/install path instead of only `packagedAgentDefinitionSchema`. This is a materially bigger trust boundary than the current pipeline-agent flow, since it means executing arbitrary server code with declared permissions (`network`, `storage`, `routes`, etc.) from an unvetted GitHub repo — not just running a prompt with some tool calls. Consent UX needs to scale accordingly: - Show requested permissions explicitly before install/sync (not just a generic "unvetted repo" warning) - Consider whether some permissions (e.g. `network`) should be disallowed entirely for unofficial/custom repos as a first cut - Same preview/diff-before-apply pattern #3861 established, but permission changes on sync should probably force re-confirmation even if the trust confirmation UX for prompt-only changes doesn't ## Alternatives considered - Leave as-is, require going through the official catalog for any feature agent — safest, but means no distribution path for non-catalog feature agents at all - Allow it but require ADMIN_SECRET or another elevated confirmation step beyond the standard custom-repo trust prompt ## Additional context Related to #3861 / #3863. This is a genuinely bigger feature than a small extension — the security model needs real discussion before implementation, not just relaxing the current check.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 21, 2026):

Maintainer decision: custom repositories will remain limited to pipeline agents. Full executable capability packages will continue to be distributed through the vetted official catalog.

The current capability permission list is disclosure metadata, not an enforceable sandbox. Server entrypoints execute inside the Marinara server process, so allowing arbitrary custom-repository packages would effectively allow unrestricted trusted code execution regardless of the permissions declared in the manifest. ADMIN_SECRET protects the installation action but does not constrain the installed runtime.

We can revisit independent capability-package distribution if Marinara gains a real isolated runtime with enforceable network, storage, route, and host-API boundaries. Closing this request as not planned under the current trust model.

<!-- gh-comment-id:5032495872 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): Maintainer decision: custom repositories will remain limited to pipeline agents. Full executable capability packages will continue to be distributed through the vetted official catalog. The current capability permission list is disclosure metadata, not an enforceable sandbox. Server entrypoints execute inside the Marinara server process, so allowing arbitrary custom-repository packages would effectively allow unrestricted trusted code execution regardless of the permissions declared in the manifest. ADMIN_SECRET protects the installation action but does not constrain the installed runtime. We can revisit independent capability-package distribution if Marinara gains a real isolated runtime with enforceable network, storage, route, and host-API boundaries. Closing this request as not planned under the current trust model.
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#2095
No description provided.