[GH-ISSUE #6799] [Feature]: Let Professor Mari list and run actions that capability packages offer #3808

Closed
opened 2026-10-21 06:07:45 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Gunterlie on GitHub.

What problem does this solve?

Professor Mari cannot act inside a capability package. Her workspace tools are a fixed list (WORKSPACE_TOOLS / MariWorkspaceToolName), her mari CLI only reaches the Engine data service, and the capability activation API offers no way for a package to give her an action.

Packages already have typed, validated action layers. For example, Slurp (Marinara-Agents slurp2) registers a slurp2:actions service with actions such as write or improve a text field, draw a picture, steer a Creator, add a post idea and write a post. A user who asks Mari "give this Creator an idea for a rainy-day post" gets nothing today.

Proposed solution

The smallest Engine seam, following existing patterns:

  • A new package permission mari-actions (Capability API 1.50). A package with it registers mari-actions:<its own id> with { list, run }. Registration fails without the permission or under another package's id (same shape as the agent-runtime:<id> gate), so the key proves ownership.
  • One new Mari workspace tool, package_service: with no action it lists what active packages offer (read-only); with package, action and a JSON input it runs one action. A run counts as a change for Permissions Mode, so Plan refuses it and Manual holds it for Accept. It works through native tool calls and the JSON/XML text fallbacks.
  • Bounds at the boundary: plain JSON object input with a size cap, action must be in the package's own list, capped list and error text, data URLs elided, a deadline and Mari's Stop for runs and lists.

Alternatives considered

  • Letting the mari CLI call package routes: it would need the Engine's internal route token for every call and each route's error mapping, and the shell sandbox denies network.
  • Letting Mari call any registered service by key: no declaration by the package, and services were never designed for model input.
  • A generic tool-registration API for Mari: larger than needed; the existing service registry already does the lookup.

Additional context

The package side is one registration line plus the permission; Slurp's existing slurp2:actions service already has the { list, run } shape. Security-sensitive: this lets a model-driven agent act inside package code, so the permission, ownership check and Permissions Mode floors are the core of the design.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Gunterlie on GitHub (Sep 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6799 Originally assigned to: @Gunterlie on GitHub. ## What problem does this solve? Professor Mari cannot act inside a capability package. Her workspace tools are a fixed list (`WORKSPACE_TOOLS` / `MariWorkspaceToolName`), her `mari` CLI only reaches the Engine data service, and the capability activation API offers no way for a package to give her an action. Packages already have typed, validated action layers. For example, Slurp (Marinara-Agents `slurp2`) registers a `slurp2:actions` service with actions such as write or improve a text field, draw a picture, steer a Creator, add a post idea and write a post. A user who asks Mari "give this Creator an idea for a rainy-day post" gets nothing today. ## Proposed solution The smallest Engine seam, following existing patterns: - A new package permission `mari-actions` (Capability API 1.50). A package with it registers `mari-actions:<its own id>` with `{ list, run }`. Registration fails without the permission or under another package's id (same shape as the `agent-runtime:<id>` gate), so the key proves ownership. - One new Mari workspace tool, `package_service`: with no action it lists what active packages offer (read-only); with `package`, `action` and a JSON `input` it runs one action. A run counts as a change for Permissions Mode, so Plan refuses it and Manual holds it for Accept. It works through native tool calls and the JSON/XML text fallbacks. - Bounds at the boundary: plain JSON object input with a size cap, action must be in the package's own list, capped list and error text, data URLs elided, a deadline and Mari's Stop for runs and lists. ## Alternatives considered - Letting the `mari` CLI call package routes: it would need the Engine's internal route token for every call and each route's error mapping, and the shell sandbox denies network. - Letting Mari call any registered service by key: no declaration by the package, and services were never designed for model input. - A generic tool-registration API for Mari: larger than needed; the existing service registry already does the lookup. ## Additional context The package side is one registration line plus the permission; Slurp's existing `slurp2:actions` service already has the `{ list, run }` shape. Security-sensitive: this lets a model-driven agent act inside package code, so the permission, ownership check and Permissions Mode floors are the core of the design. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
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#3808
No description provided.