mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6981] [Issue]: Choice decision statements get no answer from System One servers that require option descriptions #3908
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#3908
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 @kolacheee on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6981
Originally assigned to: @kolacheee on GitHub.
Summary
A
decision_choice:statement asked through a System One server that requires a text description for every option gets no answer. Marinara sends each option's description asnull, and such a server rejects the whole request with HTTP 422, so every comparison reads as no. Yes/nodecision:statements on the same server work. Found with Strands decider 2B (strands-decider0.1.0), a new open decision model that serves System One.Expected behavior
A Choice statement is answered by any System One server that answers yes/no statements.
Actual behavior
Every Choice request is rejected (
http_422), so everydecision_choice:comparison reads as no and the{{else}}branch is sent. In a run of 18 labelled Choice turns through Marinara's own client (askNoulQuestions), all 18 were rejected.Steps to reproduce
pip install strands-decider, thenstrands-decider serve StrandsAgents/strands-decider-2B-hobson-v19 --port 8000.http://127.0.0.1:8000, and select it under Decision model.{{#if decision_choice:"Kaelen's mood in the latest message" == "angry"}}...{{/if}}and send a turn where Kaelen is clearly angry. The block is never sent, and the server logs422 Unprocessable Entity.Environment
c29513958Logs, screenshots, or video
The server's reply to Marinara's request, trimmed:
Additional context
The request is built in
packages/server/src/services/decision/system-one.client.ts(criteriafor a Choice question), the only place Marinara builds one.TypeSafe's API reference allows
string | object | array | nullfor a Choice option's description, so Marinara follows the spec and Strands decider is stricter than it. The fix is still worth making on our side, because it costs nothing.Proposed fix: send an empty string instead of
null. Measured on the same 18 Choice turns:null(today)""So
""keeps Open-Jev's answers and makes Strands work. Hosted Jev was not tested (no key);""is a string, which its spec allows.Docs:
docs/connections/decision-models.mdshould say how to run Strands decider yourself as a Custom System One endpoint.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: