mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6650] [Feature]: Show Decision model scores and outputs in debug mode #3720
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#3720
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 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6650
Originally assigned to: @kolacheee on GitHub.
What problem does this solve?
A user testing the Decision model with the latest Jev in GM mode reports that it is working for the most part and makes conditional behavior much more useful. However, testing decision trees is difficult when they have to infer the model's result from whichever output or branch is triggered.
They want to see the actual score/output so they can distinguish a low-scoring statement from a high-scoring one, understand borderline results, and refine their decision statements.
Proposed solution
Inspect recorded decision results
When debug mode is enabled, make the Decision model's actual result easy to inspect for each evaluated statement:
Use the existing debug experience where practical. The core request is visibility into the values that drove the decision, without requiring authors to infer them from the generated response. Passive debug inspection should use the existing evaluation result and should not make an additional model call or change decision behavior. The explicit test action below is a separate, opt-in way to run fresh decision evaluations.
Test decisions in Peek Prompt
Add a Test decisions button inside Peek Prompt so authors can inspect the Decision model's actual input, run real decision questions, and see how the answers affect the assembled prompt. This is a dry run of prompt assembly with live Decision model calls; it does not generate a chat reply.
Suggested flow:
Score 0.42 · Threshold 0.50 · No.Behavior requirements:
Implementation context: Peek Prompt's current preview path in
packages/server/src/routes/generate/dry-run-route.tsreads cached answers without calling the Decision model. The live evaluator inpackages/server/src/services/decision/prompt-decisions.tswrites shared turn-cache entries and can update timers, so a test path needs explicitly isolated state while sharing the actual decision logic.Alternatives considered
Additional context
Original user feedback:
The exact Engine version, Jev version/provider, and debug settings were not supplied. This is a request for improved diagnostic visibility; the reported experience has not been independently reproduced.
Related: #6569 (Decision model prompt conditionals).
Relevant existing code:
packages/server/src/services/decision/prompt-decisions.ts. This belongs to Engine's shared Decision model/debug integration.Template check
@kolacheee commented on GitHub (Sep 25, 2026):
Implementation is underway in #6666, owned by @kolacheee with Codex. The PR targets staging and covers recorded decision diagnostics plus isolated decision testing in Peek Prompt.