mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#6507
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/4816
Author: @kolacheee
Created: 8/9/2026
Status: ✅ Merged
Merged: 8/9/2026
Merged by: @kolacheee
Base:
staging← Head:fix/4813-mari-readonly-guardrail📝 Commits (1)
d72c67dfix(server): give Professor Mari a read-only-default guardrail📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+5 -1)📄 Description
Linked issue
Refs #4813 (addresses the prompt/behavioral half — "Thread A").
Why this change
Professor Mari (the Home workspace assistant) treats a request to inspect an element or an informational/how-to question ("show me my lorebook", "how do I achieve X?") as authorization to modify it — she makes the change and reports it afterward, even when the user did not ask or explicitly said not to edit.
An investigation traced this to the system prompt: it supplies rich mechanics for how to write (many
apply:truedirectives, "create immediately", a create→create follow-up nudge, and a worked-example set that is 6 writes to 3 reads) but has no rule for the prior question of whether this is a write at all. Every write directive gates on the word "requested", yet nothing ever defines that an inspect/how-to request is not a modification request.What changed
Prompt-only change to
packages/server/src/services/professor-mari/workspace-agent.service.ts:create/update/addEntry/updateEntry/setActive/moveToFolder/delete. Mutate only on an explicit instruction to make that specific change; when unsure, answer and ask; and if the user says not to change something, don't.docs_read+ a plain-language explanation and no mutation (counters the write-heavy example skew and models "offer to do it, don't just do it").Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm check(tsc + eslint + client build) passes.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Prompt-only; no
docs/changes, no version bump.Note: this PR is only Thread A of #4813 (the over-eager-modification behavior). The separate, more serious half — Thread B, where the approval confirmation is a post-hoc undo rather than a gate and every
*.createis unguarded (data loss) — has been scoped separately and involves code changes plus a few maintainer product decisions.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.