[GH-ISSUE #7368] [Issue]: Expose Decision model evaluation through the downloadable package Capability API #4106

Closed
opened 2026-10-21 06:10:47 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @Gunterlie on GitHub.

Summary

Downloadable capability packages do not appear to have a documented public interface for submitting bounded Decision questions with caller-provided context. Expose a supported Capability API operation for optional yes/no or choice evaluation without requiring internal Engine modules or credentials.

Expected behavior

A downloadable Agent or capability package should be able to optionally submit bounded yes/no or choice questions, along with caller-provided context, to the user's configured Decision model through the public Capability API.

Actual behavior

In Engine v2.5.0 and the current staging source, the public CapabilityRuntimeHost does not expose Decision evaluation. Existing Decision routes appear to support configuration and testing, while Agent activation questions and prompt conditionals use Engine-managed chat context rather than arbitrary package-provided context.

Steps to reproduce

  1. Use Marinara Engine v2.5.0 or the current staging source.
  2. Create or use a downloadable capability package that needs to ask a bounded yes/no or choice question using package-provided context.
  3. Access the public CapabilityRuntimeHost or Capability API from the package.
  4. Attempt to submit the Decision question and caller-provided context through the public API.
  5. Observe that no general-purpose Decision evaluation operation is exposed; accessing this functionality would require internal Engine implementations or recreating Decision functionality.

Environment

  • Marinara Engine version: 2.5.0
  • Install type: termux
  • OS + version: Server: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64); Client: Android 15
  • Browser or app shell: Mozilla/5.0 (Android 15; Mobile; rv:157.0) Gecko/157.0 Firefox/157.0

Logs, screenshots, or video

No logs, screenshots, or video provided. Support diagnostics report build 2.5.0+f17f1c1f650d, commit f17f1c1f65, and no Decision sidecar configured.

Additional context

Relevant source: https://github.com/Pasta-Devs/Marinara-Engine/blob/staging/packages/shared/src/types/capability-runtime.ts. The underlying Decision backend appears capable of evaluating caller-provided context. The request asks whether an existing supported interface is intended for this use case and, if not, whether the Capability API can expose one without requiring internal modules or credentials.

Discord thread: Expose Decision model evaluation through the downloadable package Capability API
Discord thread link: https://discord.com/channels/1417099416812392641/1558212529640177816
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)

Discord thread transcript (5 messages)
[2026-10-09T20:20:17.255Z] DSBwizzard: I have been exploring allowing an optional Decisions integration into my Agent I'm working on, and Codex continues to INSIST that it won't work the way I want and after shouting at it a lot it gave me this report.

If this is irrelevant please let me know and I will chain codex to the radiator and it will be my abuse goblin.

If this is correct, if it could be implemented that would be cool :glop: 

### Description

Marinara Engine supports Decision models for agent activation questions, conditional prompts, and several internal features.

However, downloadable capability packages do not appear to have a documented public interface for submitting their own Decision questions with caller-provided context.

### Expected behavior

A downloadable Agent package should be able to optionally submit bounded yes/no or choice questions to the user's configured Decision model through the public Capability API.

### Current behavior

In Engine v2.5.0 and the current staging source:

* The public `CapabilityRuntimeHost` does not expose Decision evaluation.
* Existing Decision routes provide configuration and testing, but not general question evaluation.
* Agent activation questions and prompt conditionals use Engine-managed chat context rather than arbitrary package-provided context.

The underlying Decision backend appears capable of evaluating caller-provided context, but accessing it from a downloadable package currently requires depending on internal Engine implementations or recreating Decision functionality.

### Request

Is there an existing supported interface intended for this use case?

If not, could the Capability API expose a general-purpose Decision evaluation operation for downloadable packages, without requiring access to internal modules or credentials?

**Relevant source:** https://github.com/Pasta-Devs/Marinara-Engine/blob/staging/packages/shared/src/types/capability-runtime.ts)
[Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558212529640177816]

[2026-10-09T20:20:18.604Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558212535298293802]

[2026-10-09T20:22:21.594Z] ylliselmanii: please don't chain your codes to the radiator..
[Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558213051155488892]

[2026-10-09T20:24:11.037Z] DSBwizzard: ` ` `
Marinara Engine diagnostics
Version: 2.5.0
Build: 2.5.0+f17f1c1f650d
Commit: f17f1c1f650d
Server OS: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64)
Server memory: heap 149.6 / 1120 MiB; RSS 280.6 MiB
Background wake lock: acquired
Last detected freeze: none detected
Previous session: shut down cleanly at 2026-10-09T12:22:36.375Z
Sessions ended without shutdown: 7 recorded
Client OS: Android 15
Browser / app shell: Mozilla/5.0 (Android 15; Mobile; rv:157.0) Gecko/157.0 Firefox/157.0
Client runtime: {"build":"2.5.0+f17f1c1f650d","page":"mv1exz4e-lgu5y1ul","persistence":"local","navigation":"reload","standalone":false,"view":[664,0,664,0],"events":[{"at":1789479293429,"page":"mu2prnqt-om9gd3js","build":"2.4.5+c64efcb63fcc","kind":"page-start","view":[664,0,664,0]},{"at":1789479949245,"page":"mu2q5prx-zjjsaakr","build":"2.4.5+c64efcb63fcc","kind":"page-start","view":[664,0,664,0]},{"at":1791315279454,"page":"mux2v7mm-2xwdet9i","build":"2.5.0+891d402fcd2e","kind":"page-start","view":[664,0,664,0]},{"at":1791577428494,"page":"mv1exz4e-lgu5y1ul","build":"2.5.0+f17f1c1f650d","kind":"page-start","view":[664,0,664,0]}]}
GPU: Adreno (TM) 650, or similar
Server GPU: no NVIDIA GPU detected
Main sidecar: not configured
Utility sidecar: not configured
Decision sidecar: not configured
Sidecar load: not measured
Active connection: LinkAPI - gemini-3.1-flash-lite-image
Connection provider: image_generation
LLM model: gemini-3.1-flash-lite-image
Mari last acted on: none recorded this session
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558213510192824401]

[2026-10-09T20:24:33.697Z] DSBwizzard: The beatings will continue until the vibecoding improves
[Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558213605235884046]

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 @SpicyMarinara on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7368 Originally assigned to: @Gunterlie on GitHub. ## Summary Downloadable capability packages do not appear to have a documented public interface for submitting bounded Decision questions with caller-provided context. Expose a supported Capability API operation for optional yes/no or choice evaluation without requiring internal Engine modules or credentials. ## Expected behavior A downloadable Agent or capability package should be able to optionally submit bounded yes/no or choice questions, along with caller-provided context, to the user's configured Decision model through the public Capability API. ## Actual behavior In Engine v2.5.0 and the current staging source, the public CapabilityRuntimeHost does not expose Decision evaluation. Existing Decision routes appear to support configuration and testing, while Agent activation questions and prompt conditionals use Engine-managed chat context rather than arbitrary package-provided context. ## Steps to reproduce 1. Use Marinara Engine v2.5.0 or the current staging source. 2. Create or use a downloadable capability package that needs to ask a bounded yes/no or choice question using package-provided context. 3. Access the public CapabilityRuntimeHost or Capability API from the package. 4. Attempt to submit the Decision question and caller-provided context through the public API. 5. Observe that no general-purpose Decision evaluation operation is exposed; accessing this functionality would require internal Engine implementations or recreating Decision functionality. ## Environment - Marinara Engine version: 2.5.0 - Install type: termux - OS + version: Server: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64); Client: Android 15 - Browser or app shell: Mozilla/5.0 (Android 15; Mobile; rv:157.0) Gecko/157.0 Firefox/157.0 ## Logs, screenshots, or video No logs, screenshots, or video provided. Support diagnostics report build 2.5.0+f17f1c1f650d, commit f17f1c1f650d, and no Decision sidecar configured. ## Additional context Relevant source: https://github.com/Pasta-Devs/Marinara-Engine/blob/staging/packages/shared/src/types/capability-runtime.ts. The underlying Decision backend appears capable of evaluating caller-provided context. The request asks whether an existing supported interface is intended for this use case and, if not, whether the Capability API can expose one without requiring internal modules or credentials. Discord thread: Expose Decision model evaluation through the downloadable package Capability API Discord thread link: https://discord.com/channels/1417099416812392641/1558212529640177816 Requested by: gunterlie (gunterlie, Discord ID 282074442962829312) <details> <summary>Discord thread transcript (5 messages)</summary> ```text [2026-10-09T20:20:17.255Z] DSBwizzard: I have been exploring allowing an optional Decisions integration into my Agent I'm working on, and Codex continues to INSIST that it won't work the way I want and after shouting at it a lot it gave me this report. If this is irrelevant please let me know and I will chain codex to the radiator and it will be my abuse goblin. If this is correct, if it could be implemented that would be cool :glop: ### Description Marinara Engine supports Decision models for agent activation questions, conditional prompts, and several internal features. However, downloadable capability packages do not appear to have a documented public interface for submitting their own Decision questions with caller-provided context. ### Expected behavior A downloadable Agent package should be able to optionally submit bounded yes/no or choice questions to the user's configured Decision model through the public Capability API. ### Current behavior In Engine v2.5.0 and the current staging source: * The public `CapabilityRuntimeHost` does not expose Decision evaluation. * Existing Decision routes provide configuration and testing, but not general question evaluation. * Agent activation questions and prompt conditionals use Engine-managed chat context rather than arbitrary package-provided context. The underlying Decision backend appears capable of evaluating caller-provided context, but accessing it from a downloadable package currently requires depending on internal Engine implementations or recreating Decision functionality. ### Request Is there an existing supported interface intended for this use case? If not, could the Capability API expose a general-purpose Decision evaluation operation for downloadable packages, without requiring access to internal modules or credentials? **Relevant source:** https://github.com/Pasta-Devs/Marinara-Engine/blob/staging/packages/shared/src/types/capability-runtime.ts) [Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558212529640177816] [2026-10-09T20:20:18.604Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558212535298293802] [2026-10-09T20:22:21.594Z] ylliselmanii: please don't chain your codes to the radiator.. [Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558213051155488892] [2026-10-09T20:24:11.037Z] DSBwizzard: ` ` ` Marinara Engine diagnostics Version: 2.5.0 Build: 2.5.0+f17f1c1f650d Commit: f17f1c1f650d Server OS: Android / Termux 5.10.209-android12-9-o-g63fb7a145195 (arm64) Server memory: heap 149.6 / 1120 MiB; RSS 280.6 MiB Background wake lock: acquired Last detected freeze: none detected Previous session: shut down cleanly at 2026-10-09T12:22:36.375Z Sessions ended without shutdown: 7 recorded Client OS: Android 15 Browser / app shell: Mozilla/5.0 (Android 15; Mobile; rv:157.0) Gecko/157.0 Firefox/157.0 Client runtime: {"build":"2.5.0+f17f1c1f650d","page":"mv1exz4e-lgu5y1ul","persistence":"local","navigation":"reload","standalone":false,"view":[664,0,664,0],"events":[{"at":1789479293429,"page":"mu2prnqt-om9gd3js","build":"2.4.5+c64efcb63fcc","kind":"page-start","view":[664,0,664,0]},{"at":1789479949245,"page":"mu2q5prx-zjjsaakr","build":"2.4.5+c64efcb63fcc","kind":"page-start","view":[664,0,664,0]},{"at":1791315279454,"page":"mux2v7mm-2xwdet9i","build":"2.5.0+891d402fcd2e","kind":"page-start","view":[664,0,664,0]},{"at":1791577428494,"page":"mv1exz4e-lgu5y1ul","build":"2.5.0+f17f1c1f650d","kind":"page-start","view":[664,0,664,0]}]} GPU: Adreno (TM) 650, or similar Server GPU: no NVIDIA GPU detected Main sidecar: not configured Utility sidecar: not configured Decision sidecar: not configured Sidecar load: not measured Active connection: LinkAPI - gemini-3.1-flash-lite-image Connection provider: image_generation LLM model: gemini-3.1-flash-lite-image Mari last acted on: none recorded this session ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558213510192824401] [2026-10-09T20:24:33.697Z] DSBwizzard: The beatings will continue until the vibecoding improves [Discord message: https://discord.com/channels/1417099416812392641/1558212529640177816/1558213605235884046] ``` </details> ## 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.
bsakaguchi 2026-10-21 06:10:47 +07:00
Author
Owner

@Gunterlie commented on GitHub (Oct 9, 2026):

Fixed by #7369 (merged into staging). Packages can now call api.runtime.decisions.evaluate({ messages, questions }); feature-detect it with typeof api.runtime.decisions?.evaluate === "function". See the Decision section of docs/development/optional-agent-packages.md.

<!-- gh-comment-id:6090403189 --> @Gunterlie commented on GitHub (Oct 9, 2026): Fixed by #7369 (merged into `staging`). Packages can now call `api.runtime.decisions.evaluate({ messages, questions })`; feature-detect it with `typeof api.runtime.decisions?.evaluate === "function"`. See the Decision section of `docs/development/optional-agent-packages.md`.
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#4106
No description provided.