mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4917] [Issue]: Professor Mari declines to edit an existing saved memory ('no mutation necessary') instead of revising it #2725
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#2725
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 (Aug 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4917
Originally assigned to: @kolacheee on GitHub.
Summary
When asked to reword, reformat, or tweak an existing saved memory (the user's "memories," #4851), the workspace Professor Mari inspects it and declines — e.g. "I inspected the requested memory state ... Because the requested state already exists, no mutation was necessary" — instead of making the change. The edit is never saved and no new memory is created. Reproduced by a user on an enabled, persistent memory.
Expected behavior
Mari reads the memory's full text, applies the requested change, and writes the whole new content back with
instruction.update(apply:true), letting the Keep/Restore card handle review.Actual behavior
She declines with a "no mutation necessary / already exists" rationalization and makes no change.
Steps to reproduce
instruction.update.Environment
Logs, screenshots, or video
Mari's reply: "I inspected the requested memory state. Simple revision review format is present, enabled, and persistent, with the exact structure you approved: Current text; Proposed replacement text; Why the change. Because the requested state already exists, no mutation was necessary."
Additional context
This is not a code/capability gap.
instruction.updatefully persists a content change to an existing enabled/persistent memory: the new content is written, the memory stays enabled (buildInstructionPatchnever touchesenabled; deep-merge preserves it),apply:trueapplies immediately, and there is no diff/no-op/"already matches" short-circuit anywhere in the engine. For a persistent memory the full body is also injected every turn, so Mari has the true content in front of her.Root cause is prompt-side: the memory-editing guidance is uniquely thin and conservative. It is a single bullet that names
instruction.updatewith no get→edit→update recipe and no worked example (unlike presets and lorebooks, which get both),instruction.getis framed only as read-to-obey rather than read-to-edit, and the memory bullet carries extra hedging ("a memory is a standing instruction," "treat them as authoritative") with no counterweight encouraging revision. So a cosmetic-looking edit gets rationalized as already-satisfied.Proposed fix: add a memory get→edit→update recipe + a worked example mirroring the preset-section editing pattern, plus an explicit "do not decline as already-satisfied," and a regression that edits an enabled + persistent memory's content and keeps it. (One edge caveat: content is
.trim()'d on save, so a purely leading/trailing-whitespace edit is a legitimate no-op; an internal formatting change is a real diff.)Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: