mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6630] [MERGED] feat: teach Mari Decision-aware authoring and preferences #7261
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#7261
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/6630
Author: @kolacheee
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @kolacheee
Base:
staging← Head:codex/mari-decision-authoring📝 Commits (4)
641386afeat: begin Mari Decision authoring guidance0a82ecbfeat: add Decision-aware Mari authoring and remembered preferences301cdc6test: preserve Decision previews before write consentfa08d5dfix: preserve legacy agent settings during Mari edits📊 Changes
10 files changed (+1219 additions, -61 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/home/professor-mari.md(+16 -0)➕
e2e/mari-decision-authoring.e2e.ts(+145 -0)📝
packages/server/src/routes/decision.routes.ts(+4 -29)➕
packages/server/src/services/decision/decision-status.ts(+71 -0)📝
packages/server/src/services/mari-db/mari-db.service.ts(+73 -8)➕
packages/server/src/services/professor-mari/decision-authoring.ts(+289 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+29 -4)📝
scripts/regressions/mari/db-validation-scope.regression.ts(+100 -20)➕
scripts/regressions/mari/decision-authoring.regression.ts(+490 -0)📄 Description
Linked issue
Closes #6629
Why this change
Mari could store Decision fields without knowing whether a Decision model was selected or whether the user wanted those dependencies. She also had no durable record of a setup warning, so a long or new chat could repeat the same conversation. Invalid agent activation settings could be saved and then ignored by the runtime.
What changed
settings.Natural-language interpretation, sparse authoring and identifying early placement in the final expanded prompt remain model responsibilities. Recorded quotes establish provenance; they are not a semantic consent classifier. No English-only permission or scope keyword rules were added.
Validation
Completed locally:
pnpm install,pnpm check,pnpm version:check, andgit diff --checkpassed. The existing GameNarration hook-dependency warning remains.pnpm regression:promptpassed all three lanes; the Decision regression filter passed 9/9.pnpm smoke:uiruns passed on desktop Chromium, mobile Chromium and mobile WebKit: 12 checks for the workspace conversation/edit/review flows, and 12 for the final conversation flow plus Decision selection and agent activation. The conversation provider is scripted; these prove the real command loop and persistence, not model quality. The complete UI suite was not run locally.0a82ecb1f; the subsequent changes add regression coverage and scope validation to changed agent settings; this container result predates the compatibility fix.An intermediate regression run overlapped the shared-package rebuild and failed to load its temporarily absent output; the serial rerun passed 27/27. The first container smoke lacked build metadata; rebuilding with the standard build arguments passed.
Local CodeRabbit completed two reviews (2 findings initially, 1 in the final review). The timing/threshold restriction was fixed. The suggested minimum quote length, word boundaries and scope phrases were rejected because legitimate short/multilingual replies and indirect preferences cannot be classified that way; the source and pending-turn checks remain, with regression coverage. The suggestion to require authoring consent for dry-run previews was also rejected: Plan mode and review preparation must remain available before permission to persist. A regression proves the preview saves nothing and the same applied write is refused without permission.
Follow-up review and CI investigation
Addressed review https://github.com/Pasta-Devs/Marinara-Engine/pull/6630#pullrequestreview-5308820927: reproduced an unrelated rename failing on legacy activation values, then scoped both pre-write and post-apply validation to changed settings. Undo preserves the original legacy values, and explicit
mari db validatestill checks every field. The regression also covers direct CLI edits, unrelated settings, partial repair/clearing, and rejection of newly invalid activation values without persistence.pnpm checkpassed (the same existing GameNarration warning); the Mari service regression filter passed 16/16, and local CodeRabbit completed with zero findings on the compatibility fix.Network process crashed, then fails loadingCharacterEditor.tsxwith a WebKit internal error and reloads to Home. This points to a browser-process failure, rather than the Mari validation change.Manual verification still needed
Docs and release impact
Updated
docs/home/professor-mari.mdand the Unreleased changelog. The guide is included in the existing batched translation follow-up #6532; translate after this English revision is reviewed and merged. No version bump or UI layout changes.GitHub CI and GitHub CodeRabbit remain merge gates. This task does not authorize a merge.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.