[GH-ISSUE #4147] Gate external Agent imports behind explicit permissions #2247

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Problem

External Agent files and folders can currently be imported without a user-controlled safety gate. Imported Agent settings can also request side-effectful result types, and Agent-generated frontend CSS is applied without the app CSS sanitizer.

Locally authored custom Agents and official downloaded Agents must remain usable without this gate.

Requested behavior

  • Add Allow custom Agent imports under Settings → Advanced → Danger Zone, above the third-party extension import toggle.
  • Do not require an .env flag for this setting.
  • Keep Agent file/folder import controls greyed out until enabled, with hover/tap guidance.
  • Require a permission review and explicit capability approval before storing an import.
  • Prevent externally imported Agents from running while the gate is disabled, without affecting locally authored or official Agents.
  • Enforce capabilities before side-effectful result handlers run.
  • Sanitize Agent-generated CSS.
  • Apply the same policy to custom Agent repository installation/synchronization.
  • Update localization, regressions, and user documentation.
Originally created by @SpicyMarinara on GitHub (Jul 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4147 Originally assigned to: @SpicyMarinara on GitHub. ## Problem External Agent files and folders can currently be imported without a user-controlled safety gate. Imported Agent settings can also request side-effectful result types, and Agent-generated frontend CSS is applied without the app CSS sanitizer. Locally authored custom Agents and official downloaded Agents must remain usable without this gate. ## Requested behavior - Add **Allow custom Agent imports** under **Settings → Advanced → Danger Zone**, above the third-party extension import toggle. - Do not require an `.env` flag for this setting. - Keep Agent file/folder import controls greyed out until enabled, with hover/tap guidance. - Require a permission review and explicit capability approval before storing an import. - Prevent externally imported Agents from running while the gate is disabled, without affecting locally authored or official Agents. - Enforce capabilities before side-effectful result handlers run. - Sanitize Agent-generated CSS. - Apply the same policy to custom Agent repository installation/synchronization. - Update localization, regressions, and user documentation.
bsakaguchi 2026-10-21 05:46:40 +07:00
Author
Owner

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

Claimed for implementation by @SpicyMarinara on branch agent/custom-agent-import-gate. A draft PR will be opened as soon as the branch is pushed.

<!-- gh-comment-id:5085211909 --> @SpicyMarinara commented on GitHub (Jul 26, 2026): Claimed for implementation by @SpicyMarinara on branch `agent/custom-agent-import-gate`. A draft PR will be opened as soon as the branch is pushed.
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#2247
No description provided.