mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5530] [MERGED] fix(mari): stop false-positive Mutation blocked on character create & update #6800
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#6800
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/5530
Author: @Kranael
Created: 8/25/2026
Status: ✅ Merged
Merged: 8/25/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/mari-mutation-authorization-scope📝 Commits (6)
051c1c2fix(mari): scope mutation authorization to the full active user turn5e50b13fix: add .playwright-mcp to .gitignorea37247bfix(mari): recognize German mutation verbs and ignore quoted card dialogue in denial check5d6c6b4fix(mari): window the denial check on long pasted messagesc5396ccMerge branch 'staging' into fix/mari-mutation-authorization-scopea33673aMerge branch 'staging' into fix/mari-mutation-authorization-scope📊 Changes
4 files changed (+483 additions, -15 deletions)
View changed files
📝
.gitignore(+3 -0)📝
CHANGELOG.md(+6 -5)📝
e2e/core-flows.e2e.ts(+374 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+100 -10)📄 Description
Linked issue
Closes #
Why this change
Professor Mari's mutation-authorization gate (
workspaceMutationAuthorizationIssue) falselyblocked legitimate character/persona create and update requests, forcing repeated manual
"yes, create it" confirmations or failing outright. Reproduced live against a real session:
pasting a full German-language character card ("Erstelle mir aus dem Juli...") got rejected
with "Mutation blocked before execution" on the very first attempt, every time.
What changed
excerpt (e.g. just the character's name) or lets the word "authorized" anywhere in a long
pasted document force a false multi-category mismatch; it now falls back to the full active
user turn.
(erstelle/ändere/aktualisiere/lösche/...), via a Unicode-letter boundary helper, since a plain
\bfails at the edges of umlaut-initial/umlaut-final German words (e.g. "ändern").narrative sentence deep inside a long pasted card ("Juli should never feel like a quest
objective.") as the user denying the change: quoted spans are stripped, and long messages
(>500 chars) are only checked at their leading/trailing 220-char edges.
e2e/core-flows.e2e.tsthat drive the real server plus a mockedlocal LLM connection: false-positive create via a narrow authorization quote, a German
instruction with a card containing quoted/narrative denial-like text, and confirmation that
the multi-category guard still blocks a genuinely conflicting authorization.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
exact same input (German instruction + pasted character card) after the fix: character
creation now succeeds immediately, with no "Mutation blocked" message and no extra
confirmation step required.
pnpm regression:promptand theissue-sweep-5380-5434regression (existingauthorization coverage, unaffected) and the 3 new Playwright e2e tests on both
desktop-chromium and mobile-chromium projects — all green.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUI evidence (if applicable)
N/A — server-side authorization-logic fix, no UI changes.
Summary by CodeRabbit
Bug Fixes
Tests
Chores
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.