[GH-ISSUE #6539] [Feature]: Answer activation questions with a local model #3665

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

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

  • I DID NOT read this template and provide the requested details.
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 - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:05:42 +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#3665
No description provided.