mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6987] [MERGED] fix(decision): Choice on strict System One servers, keep the decision model on runtime cleanup, say Decision model not Jev #7417
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#7417
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/6987
Author: @kolacheee
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @kolacheee
Base:
staging← Head:fix/decision-choice-and-runtime-prune📝 Commits (3)
3497092fix(decision): Choice on strict System One servers, keep the decision model on runtime cleanup, drop "Jev" from the UI1f4d23ffix(decision): remove only llama.cpp's own downloads, and rename the memory guide's decision heading2c1ac24test(e2e): match the new Decision model labels, and the per-turn limit notice's current text📊 Changes
13 files changed (+126 additions, -27 deletions)
View changed files
📝
CHANGELOG.md(+6 -0)📝
docs/FAQ.md(+1 -1)📝
docs/agents/memory.md(+3 -3)📝
docs/chats/peek-prompt.md(+1 -1)📝
docs/connections/decision-models.md(+23 -4)📝
e2e/advanced-memory.e2e.ts(+2 -2)📝
e2e/agent-activation-questions.e2e.ts(+1 -1)📝
e2e/decision-peek-report.e2e.ts(+2 -2)📝
packages/client/src/localization/locales/en.json(+4 -4)📝
packages/server/src/services/decision/system-one.client.ts(+5 -3)📝
packages/server/src/services/sidecar/sidecar-runtime.service.ts(+16 -6)📝
scripts/regressions/decision-conditionals.regression.ts(+4 -0)➕
scripts/regressions/sidecar-runtime-cleanup.regression.ts(+58 -0)📄 Description
Linked issue
Closes #6981
Closes #6982
Closes #6983
Why this change
Three Decision model problems that should not reach the release:
null. Strands decider 2B, a new open decision model that speaks System One, accepts only strings and refuses the whole request (HTTP 422), so everydecision_choice:comparison reads as no. TypeSafe's spec allowsnull, so Marinara was within it, but an empty string is valid for both and costs nothing.<data>/sidecar-runtime/exceptmlx. The Decision sidecar keeps its whole runtime and weights insidecar-runtime/decision/(about 10 GB for Open-Jev 2B, 25 GB for 9B), so Reinstall runtime, installing the local model's runtime after the decision model, and the next llama.cpp update all delete it silently.What changed
system-one.client.ts: a Choice option is sent with an empty description instead ofnull. The added "none of these" option keeps its description.sidecar-runtime.service.ts: the cleanup removes only llama.cpp runtime folders (always named<release tag>-<variant>, such asb10188-linux-x64-vulkan) and its own download leftovers.mlx,decisionand any future sibling are left alone, which also makes the oldmlx/server.logspecial case unnecessary.en.json: "Use Decision model (Jev)" → "Use Decision model", "Use this key for decisions (Jev)" → "Use this key for decisions", and the Advanced Memory help text and Decision diagnostics empty state no longer mention Jev. No community locale translates these keys yet. Model names such as "Open-Jev 2B" stay.docs/connections/decision-models.mdgains Run Strands decider yourself (install, start, Custom System One connection, threshold, measured accuracy, speed and memory, switching). The labels quoted indocs/FAQ.md,docs/agents/memory.md,docs/chats/peek-prompt.mdand the Decision Models guide match the new UI text.sidecar-runtime-cleanup.regression.tspins that an update and Reinstall runtime remove old runtimes and leftovers but keepdecisionandmlx;decision-conditionals.regression.tsnow asserts every Choice option is sent with a text description.advanced-memory,agent-activation-questionsanddecision-peek-reportmatch the new labels.decision-peek-reportalso expected "past the per-turn limit, read as no", whichbb7c394abreworded to "over the per-turn limit (counted as no)"; it failed the same way on unmodified staging and now passes.CHANGELOG.md: three entries.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Done by the agent (the boxes above are left for a human):
pnpm check,pnpm localization:checkandpnpm regression:node(493/493) on this branch. Local CodeRabbit: the first review raised two findings, both fixed (download leftovers now also need llama.cpp's own names; the memory guide's "Optional Jev decisions" heading renamed with its links), and the second review found none. A Sonnet bug sweep while CodeRabbit was rate-limited found the e2e specs still matching the old labels and two wording points; all fixed.Each fix was put back one piece at a time and the matching regression failed:
nulldescriptions; the old "every folder butmlx" cleanup; leftovers no longer removed; old runtimes no longer removed.Choice, against real servers, 18 labelled roleplay Choice turns through Marinara's own
askNoulQuestions:"")strands-decider0.1.0)Sending the option's own name as its description instead changed one Open-Jev answer, so the empty string was chosen.
Cleanup: before the fix,
resetRuntime()on a throwaway data folder holdingb10188-linux-x64-vulkan,decisionandmlxleft onlymlx.Strands as a Decision connection on a real install: a Custom System One connection to a locally served Strands decider passed Test (probability 0.91, 174 ms), and switching Decision model between it and the Decision sidecar worked both ways.
e2e on desktop Chromium:
OpenRouter decision shortcut…and bothPeek Prompt decision diagnosticsthemes pass.Advanced Memory Decision connection is optional and persists for its chatfails locally at the same line (advanced-memory.e2e.ts:1411, reopening Memory Recall after a reload) on this branch and on unmodified staginga4c32dfbe, so it is not caused by this PR; the renamed toggle at line 1400 is found and clicked.For a human to verify:
decision_choice:statement still gets an answer from hosted Jev; empty descriptions were not tested there (no key was used).Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Translated docs: #6986 (the new batch for Decision model guides) tracks
docs/connections/decision-models.md,docs/FAQ.md,docs/agents/memory.mdanddocs/chats/peek-prompt.md.UI evidence (if applicable)
Text-only change: the four strings listed under What changed. The original report's screenshot shows Use Decision model (Jev) in Advanced Memory.
Summary by CodeRabbit
Bug Fixes
Updates
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.