[GH-ISSUE #6981] [Issue]: Choice decision statements get no answer from System One servers that require option descriptions #3908

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

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 as null, and such a server rejects the whole request with HTTP 422, so every comparison reads as no. Yes/no decision: statements on the same server work. Found with Strands decider 2B (strands-decider 0.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 every decision_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

  1. pip install strands-decider, then strands-decider serve StrandsAgents/strands-decider-2B-hobson-v19 --port 8000.
  2. Create a Decision connection with the source Custom System One endpoint and base URL http://127.0.0.1:8000, and select it under Decision model.
  3. Use a preset or card with {{#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 logs 422 Unprocessable Entity.

Environment

  • Marinara Engine version: staging c29513958
  • Install type: source
  • OS + version: Fedora 44, NVIDIA RTX 5090 Laptop
  • Browser or app shell: not browser-specific (server-side request)

Logs, screenshots, or video

The server's reply to Marinara's request, trimmed:

{"detail":[{"type":"string_type","loc":["body","questions","c","ChoiceQuestion","criteria","angry"],"msg":"Input should be a valid string","input":null}, ...]}

Additional context

  • The request is built in packages/server/src/services/decision/system-one.client.ts (criteria for a Choice question), the only place Marinara builds one.

  • TypeSafe's API reference allows string | object | array | null for 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:

    Description sent Open-Jev 2B Strands decider 2B
    null (today) 18/18 rejected 18/18
    "" 18/18, no answer changed, largest probability shift 0.06 16/18 (identical to no description; it renders an empty description as none)
    the option's own name 17/18, one answer changed, shift 0.14 16/18

    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.md should 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:

  • I DID NOT read this template and provide the requested details.
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 as `null`, and such a server rejects the whole request with HTTP 422, so every comparison reads as no. Yes/no `decision:` statements on the same server work. Found with [Strands decider 2B](https://huggingface.co/StrandsAgents/strands-decider-2B-hobson-v19) (`strands-decider` 0.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 every `decision_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 1. `pip install strands-decider`, then `strands-decider serve StrandsAgents/strands-decider-2B-hobson-v19 --port 8000`. 2. Create a Decision connection with the source **Custom System One endpoint** and base URL `http://127.0.0.1:8000`, and select it under **Decision model**. 3. Use a preset or card with `{{#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 logs `422 Unprocessable Entity`. ## Environment - Marinara Engine version: staging c29513958 - Install type: source - OS + version: Fedora 44, NVIDIA RTX 5090 Laptop - Browser or app shell: not browser-specific (server-side request) ## Logs, screenshots, or video The server's reply to Marinara's request, trimmed: ``` {"detail":[{"type":"string_type","loc":["body","questions","c","ChoiceQuestion","criteria","angry"],"msg":"Input should be a valid string","input":null}, ...]} ``` ## Additional context - The request is built in `packages/server/src/services/decision/system-one.client.ts` (`criteria` for a Choice question), the only place Marinara builds one. - TypeSafe's [API reference](https://docs.typesafe.ai/api) allows `string | object | array | null` for 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: | Description sent | Open-Jev 2B | Strands decider 2B | | --- | --- | --- | | `null` (today) | 18/18 | rejected 18/18 | | `""` | 18/18, no answer changed, largest probability shift 0.06 | 16/18 (identical to no description; it renders an empty description as none) | | the option's own name | 17/18, one answer changed, shift 0.14 | 16/18 | 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.md` should 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: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:08:39 +07:00
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#3908
No description provided.