mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6556] [MERGED] feat(agents): install and manage a purpose-built decision model #7228
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#7228
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/6556
Author: @kolacheee
Created: 9/23/2026
Status: ✅ Merged
Merged: 9/23/2026
Merged by: @kolacheee
Base:
staging← Head:feat/decision-managed-installer📝 Commits (10+)
ed5a47bfix(agents): keep the decision model when a selection is refusedf946623feat(agents): give each decision model its own operating point and wire shape5af2b92feat(agents): install and run a managed decision model8ae248cfeat(agents): install a decision model from the Local Model section40b6f54feat(agents): install a decision model by pasting its repository3889edftest(agents): cover the decision installer end to end61b91c2fix(agents): ask the decision sidecar in the language it speaks3823a1efix(agents): address the local review of the decision installer3684347fix(agents): stop a pasted repository writing outside its own directorye9a87b0fix(agents): close a prototype bypass in the pasted-model gate📊 Changes
37 files changed (+4785 additions, -61 deletions)
View changed files
📝
CHANGELOG.md(+10 -0)📝
docs/agents/custom-agents.md(+21 -2)📝
e2e/agent-activation-questions.e2e.ts(+8 -2)➕
e2e/decision-sidecar-installer.e2e.ts(+79 -0)📝
packages/client/src/components/agents/ActivationQuestionFields.tsx(+23 -0)📝
packages/client/src/components/agents/AgentEditor.tsx(+50 -4)📝
packages/client/src/components/layout/ModalRenderer.tsx(+8 -1)📝
packages/client/src/components/modals/CreateConnectionModal.tsx(+5 -3)➕
packages/client/src/components/modals/DecisionModelModal.tsx(+532 -0)📝
packages/client/src/components/panels/ConnectionsPanel.tsx(+14 -0)📝
packages/client/src/hooks/use-decision-model.ts(+17 -1)➕
packages/client/src/hooks/use-decision-sidecar.ts(+137 -0)📝
packages/client/src/lib/support-diagnostics.ts(+13 -0)📝
packages/client/src/localization/locales/en.json(+55 -0)➕
packages/server/src/assets/decision-runtime-requirements.in(+8 -0)➕
packages/server/src/assets/decision-runtime-requirements.lock(+682 -0)📝
packages/server/src/middleware/rate-limit.ts(+19 -0)📝
packages/server/src/routes/decision.routes.ts(+314 -8)📝
packages/server/src/routes/generate.routes.ts(+1 -0)📝
packages/server/src/services/decision/decision-default.ts(+67 -3)...and 17 more files
📄 Description
Linked issue
Closes #6555
Why this change
#6530 scoped three phases for activation questions. #6531 shipped the gate, #6540 let an existing local chat model answer it. This is the third: the managed Open-Jev installation that #6530 said would need its own capability and hardware validation.
A general local chat model answers these questions well, but only for people who already run one. If your chat model is a hosted connection, gating an agent today means loading a multi-gigabyte GGUF for a job that is one yes or no. A purpose-built decision model is a smaller process that answers in a single forward pass.
It is not the more accurate option, and this PR does not pretend otherwise. On eight roleplay cases, same question, same machine, Open-Jev 2B is worse than the Gemma 4 E4B already installed. It is faster and slightly smaller, the UI says exactly that, and it stays off by default.
This PR also carries the
/selectfix from #6540: that PR shipped with the selection written before the slot was checked, so a refused selection silently dropped the user to None. It is the first commit here rather than its own PR because this branch already rewrites that route.What changed
uv, a hash-locked dependency set (--require-hashes), and a third process slot beside the main and utility sidecars, with its own lifecycle, log file, start policy and stop control.ModelDownloadModal, same download and progress language, same place in Connections. Three gates before anything downloads: a warning, a confirmation carrying this machine's verdict, and a separate step naming the 10 GB, the 5 GB of VRAM and the licences (MIT source, Apache-2.0 adapter)./v1/systemone, not/v1/chat/completions. The resolved slot now carries which protocol it speaks, because a System One server rejects a chat request outright.The Python child gets an allowlisted environment rather than the server's own.
uv's cache is pruned after a successful install, which is the difference between the 10 GB the dialog promises and the 16 GB it left before.Validation
pnpm checkpasses locallyCONTRIBUTING.mdpnpm checkgreen.pnpm regression:node355/355, includingdecision-local-models.regression.tsextended to cover the System One wire shape, per-model calibration, the artifact-to-runtime gate including a prototype-key probe, repository and ref validation, the traversal guard, and every preflight verdict row from recordednvidia-smioutput. A newe2e/decision-sidecar-installer.e2e.tswalks the enable, confirm, size-and-licence and install steps.Manual verification notes
Linux, NVIDIA RTX 5090 Laptop (24463 MiB, driver 615.71.09), against a decoupled install on port 7820 with its own
DATA_DIR, so the live install was untouched.decisionProbability: 0.9103503583607067,latencyMs: 1083.../name(refused before any request).One note for CI:
image-dimension-limit.regression.tstimed out once in a full-suite run on this branch, after printing its own pass line, then passed three times alone and on a full re-run. It looks like the 30-second per-file budget under load rather than anything this branch touches.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/custom-agents.mdgains the decision model section. #6532 is already open for that file ondocs-i18n.UI evidence (if applicable)
The installer deliberately has no new visual grammar: it reuses the Local Model section's modal, progress and button language so the two read as one feature. Screenshots on request.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.