mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7703
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7369
Author: @Gunterlie
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/capability-decisions-7368📝 Commits (5)
c433d39feat(capability): expose Decision model evaluation to packages (#7368)66503cfdocs(capability): document decisions host in the Decision sectiond21a308fix(capability): null on no answer, bound message names, runnable docs example851e03afix(capability): reject unsupported Decision message roles8d92821Merge remote-tracking branch 'origin/staging' into feat/capability-decisions-7368📊 Changes
6 files changed (+267 additions, -2 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/development/optional-agent-packages.md(+26 -2)➕
packages/server/src/services/capability-packages/capability-decision.service.ts(+112 -0)📝
packages/server/src/services/capability-packages/capability-module-runtime.service.ts(+2 -0)📝
packages/shared/src/types/capability-runtime.ts(+40 -0)➕
scripts/regressions/capability-decisions.regression.ts(+86 -0)📄 Description
Closes #7368
Why
Downloadable Agent and capability packages had no supported way to ask the user's Decision model a question about their own context. Activation questions and prompt conditionals only see Engine-managed chat context, so a package author (Discord request from DSBwizzard) would have had to import Engine internals or rebuild the Decision stack, credentials included.
What
CapabilityRuntimeHost.decisions?.evaluate({ messages, questions, signal?, debugMode? })in@marinara-engine/shared.options) return the chosen option or"none of these".threshold, since probabilities are not comparable across Decision models.nullwhen no Decision model is configured or it cannot be reached.capability-decision.service.ts) reusesresolveDecisionBackend+buildDecisionState, so every backend works (managed sidecar, local chat slot, System One / chat-logprobs connections) and no keys reach the package.integrations.speech— no capability API bump, no new permission (same aslanguageModels).debugModeandDEBUG_AGENTSfor prompt logging.docs/development/optional-agent-packages.mdDecision section (replaces the stale "no way to ask the Decision model directly yet" line). CHANGELOG entry.Validation
pnpm checkpasses.scripts/regressions/capability-decisions.regression.ts(request mapping, result shape,nullwith no model, rejection of invalid requests before any model call) passes.66503cf2d.Manual verification
api.runtime.decisions.evaluate(...)from a sideloaded package and check yes/no and Choice answers.null.Translated docs follow-up: #7370
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.