mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6539] [Feature]: Answer activation questions with a local model #3665
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#3665
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 (Sep 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6539
Originally assigned to: @kolacheee on GitHub.
What problem does this solve?
Activation questions currently need a Decision connection, which means a hosted API key. Anyone who runs Marinara with a local model and no paid API cannot gate a custom agent at all, even though the model they already run can answer the question perfectly well.
Issue #6530 scoped this out on purpose: "Reusing existing local chat models and managing a dedicated Open-Jev installation are separate subsequent phases requiring their own capability and hardware validation." This is the first of those phases. The managed Open-Jev installer is the second and gets its own issue.
Proposed solution
Let the primary or utility local model slot answer an activation question. One chat completion with a one-token budget, reading the probability from the first token's log-probabilities, so nothing is generated and nothing leaves the machine.
The Decision model setting becomes one list with three groups: None, Local models, and Connections. Entries that cannot serve are shown greyed out with the reason rather than hidden, because hiding the local model entry produces "where did it go" reports from users who were told the feature exists.
Some models always reason first, whatever they are asked. A Thinking setting handles that: Auto tries the fast one-word method and gives a model permission to think once it has failed twice, Off never lets it think, Allowed never asks it to skip. Because reasoning takes seconds and a pre-generation gate sits in front of the user's reply, a thinking model gates post-processing agents only unless the user opts in.
This phase also adds the footprint and diagnostics half of the preflight work, which is useful on its own: support diagnostics currently report the browser's GPU, which says nothing about the machine running the local model when the client is a phone or another PC. One line per slot plus the server's own GPU would help existing "my local model won't load" reports whether or not anyone uses an activation question.
Alternatives considered
Requiring a hosted Decision connection leaves local-only users with keyword activation and nothing else. Going straight to the managed Open-Jev sidecar would ask those users for roughly ten gigabytes of download and five gigabytes of GPU memory to do a job the model they already run does well, measured at 0.0000 for a turn that stays put and 0.9996 for one that moves.
Constraining the request with a grammar or JSON schema was rejected because a constraint can change what top_logprobs reports, and the prompt plus a one-token budget is already enough.
Additional context
Implementation owner: @kolacheee. Verified on the pinned llama.cpp build b10188 on Linux with an NVIDIA GPU: the build does return logprobs and top_logprobs on /v1/chat/completions, which the proposal flagged as the open question this phase depends on.
Template check