mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3877] [Feature]: Full capability package support in custom agent repos #2095
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2095
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?
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 withexecution: "feature"are hard-rejected inparseCustomAgentRepositoryArchive: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 pathinstead 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 GitHubrepo — not just running a prompt with some tool calls. Consent UX needs to
scale accordingly:
generic "unvetted repo" warning)
network) should be disallowedentirely for unofficial/custom repos as a first cut
changes on sync should probably force re-confirmation even if the trust
confirmation UX for prompt-only changes doesn't
Alternatives considered
agent — safest, but means no distribution path for non-catalog feature
agents at all
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.
@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.