[GH-ISSUE #4917] [Issue]: Professor Mari declines to edit an existing saved memory ('no mutation necessary') instead of revising it #2725

Closed
opened 2026-10-21 05:53:55 +07:00 by bsakaguchi · 0 comments
Owner

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

  1. Save a memory and enable it (Keep & Enable), ideally persistent.
  2. Ask workspace Professor Mari to make an aesthetic/formatting adjustment to that memory.
  3. She reports the state already matches and does not call instruction.update.

Environment

  • Marinara Engine version: staging (post-#4852)
  • Install type: source
  • OS + version: Windows 11
  • Browser or app shell: Professor Mari Workspace

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.update fully persists a content change to an existing enabled/persistent memory: the new content is written, the memory stays enabled (buildInstructionPatch never touches enabled; deep-merge preserves it), apply:true applies 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.update with no get→edit→update recipe and no worked example (unlike presets and lorebooks, which get both), instruction.get is 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:

  • I DID NOT read this template and provide the requested details.
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 1. Save a memory and enable it (Keep & Enable), ideally persistent. 2. Ask workspace Professor Mari to make an aesthetic/formatting adjustment to that memory. 3. She reports the state already matches and does not call `instruction.update`. ## Environment - Marinara Engine version: staging (post-#4852) - Install type: source - OS + version: Windows 11 - Browser or app shell: Professor Mari Workspace ## 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.update` fully persists a content change to an existing enabled/persistent memory: the new content is written, the memory stays enabled (`buildInstructionPatch` never touches `enabled`; deep-merge preserves it), `apply:true` applies 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.update` with no get→edit→update recipe and no worked example (unlike presets and lorebooks, which get both), `instruction.get` is 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: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:53:55 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2725
No description provided.