[GH-ISSUE #5271] [Issue]: Lorebook edits are blocked or returned as non-JSON commands #2924

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

Originally created by @SpicyMarinara on GitHub (Aug 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5271

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Lorebook editing frequently fails because Mari returns plain text instead of the required JSON command object or mutation authorization blocks the requested operation. Explicitly authorizing split and update operations allows some edits, but entry creation is still blocked.

Expected behavior

Mari should return valid JSON command objects for the requested lorebook operations, and authorized split, update, and create operations should pass mutation checks and execute.

Actual behavior

With GLM 5.2, Mari repeatedly returned plain text instead of the required JSON command object, including after starting a fresh chat with curated context. With Sonnet 5, continuing from the saved trace was blocked because the instruction was considered unauthorized. After explicitly authorizing lorebook splitting and modification, updates succeeded, but creating entries was blocked.

Steps to reproduce

  1. Run Marinara Engine with a lorebook editing task and ask Mari to split or modify lorebook entries.
  2. Observe that Mari may return plain text instead of the required JSON command object and stop before executing the edit.
  3. Start a fresh chat with curated context from the previous chat, or switch from GLM 5.2 to Sonnet 5, and ask Mari to continue.
  4. Observe the mutation authorization block: "the quoted user instruction does not authorize an update operation."
  5. Send: "i authorize you to split and modify the lorebook entries".
  6. Observe that some updates execute, but attempts to create entries are subsequently blocked.

Environment

  • Marinara Engine version: 2.4.4 (build 2.4.4+f195f57b1f07, commit f195f57b1f)
  • Install type: termux
  • OS + version: Server: Android / Termux 6.6.118-android15-8-g1831c2a45d9b-ab15739706-4k (arm64); client: Android 17 on Pixel 10 Pro
  • Browser or app shell: MarinaraEngine/Android WebView; Chrome 151.0.7922.137

Logs, screenshots, or video

Reported output: "Professor Mari kept returning plain text instead of the required JSON command object, so I stopped before burning more requests. Ask her to continue and she can pick up from the saved trace." Authorization error: "Mutation blocked before execution: the quoted user instruction does not authorize an update operation." Screenshots: https://cdn.discordapp.com/attachments/1539669841236201503/1539669841969938512/Screenshot_20260819-090455.png and https://cdn.discordapp.com/attachments/1539669841236201503/1539669842657939526/Screenshot_20260819-091603.png

Additional context

Active connection was [or] glm 5.2 through OpenRouter using z-ai/glm-5.2. Switching to Sonnet 5 helped with the JSON output but exposed the authorization block. The user reports that this was less problematic on v3.4.3 when editing larger entries the previous day.

Discord thread: Mari struggling with lorebook updates
Discord thread link: https://discord.com/channels/1417099416812392641/1539669841236201503
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (1 message)
[2026-08-19T16:18:15.833Z] containerd | crow: Marinara Engine diagnostics
Version: 2.4.4
Build: 2.4.4+f195f57b1f07
Commit: f195f57b1f07
Server OS: Android / Termux 6.6.118-android15-8-g1831c2a45d9b-ab15739706-4k (arm64)
Client OS: Android 17
Browser / app shell: Mozilla/5.0 (Linux; Android 17; Pixel 10 Pro Build/CP2A.260805.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.137 Mobile Safari/537.36 MarinaraEngine/Android
GPU: PowerVR D-Series DXT-48-1536
Active connection: [or] glm 5.2
Connection provider: openrouter
LLM model: z-ai/glm-5.2

[img1] Mari is hardcore struggling with lorebook edits and keeps getting blocked:
> Professor Mari kept returning plain text instead of the required JSON command object, so I stopped before burning more requests. Ask her to continue and she can pick up from the saved trace.

I tried starting a fresh chat with curated context from the previous one and ran into the same issues. I don't think Mari had this much trouble on v3.4.3 because I had her do edits on even bigger entries just yesterday. 

I thought maybe GLM5.2 is too dumb, so I switched to Sonnet 5. That helped, but then Mari got blocked for unauthorized mutations because I only said "continue". 
> Mutation blocked before execution: the quoted user instruction does not authorize an update operation.

[img2] After explicitly saying this:
> i authorize you to split and modify the lorebook entries
Mari was able to update entries... and then got blocked from creating entries.

[attached image 1: https://cdn.discordapp.com/attachments/1539669841236201503/1539669841969938512/Screenshot_20260819-090455.png?ex=6a8728c8&is=6a85d748&hm=7ad14376ec6fce1997a1aaa8fc8f56670d5df6c1a3accbcc32032362a78c9ecf&]
[attached image 2: https://cdn.discordapp.com/attachments/1539669841236201503/1539669842657939526/Screenshot_20260819-091603.png?ex=6a8728c8&is=6a85d748&hm=b761fa6c8335abda2ae26fa1648612db8a877c1c4ec60cd19df6ffcdd1b3df75&]
[Discord message: https://discord.com/channels/1417099416812392641/1539669841236201503/1539669841236201503]

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 @SpicyMarinara on GitHub (Aug 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5271 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Lorebook editing frequently fails because Mari returns plain text instead of the required JSON command object or mutation authorization blocks the requested operation. Explicitly authorizing split and update operations allows some edits, but entry creation is still blocked. ## Expected behavior Mari should return valid JSON command objects for the requested lorebook operations, and authorized split, update, and create operations should pass mutation checks and execute. ## Actual behavior With GLM 5.2, Mari repeatedly returned plain text instead of the required JSON command object, including after starting a fresh chat with curated context. With Sonnet 5, continuing from the saved trace was blocked because the instruction was considered unauthorized. After explicitly authorizing lorebook splitting and modification, updates succeeded, but creating entries was blocked. ## Steps to reproduce 1. Run Marinara Engine with a lorebook editing task and ask Mari to split or modify lorebook entries. 2. Observe that Mari may return plain text instead of the required JSON command object and stop before executing the edit. 3. Start a fresh chat with curated context from the previous chat, or switch from GLM 5.2 to Sonnet 5, and ask Mari to continue. 4. Observe the mutation authorization block: "the quoted user instruction does not authorize an update operation." 5. Send: "i authorize you to split and modify the lorebook entries". 6. Observe that some updates execute, but attempts to create entries are subsequently blocked. ## Environment - Marinara Engine version: 2.4.4 (build 2.4.4+f195f57b1f07, commit f195f57b1f07) - Install type: termux - OS + version: Server: Android / Termux 6.6.118-android15-8-g1831c2a45d9b-ab15739706-4k (arm64); client: Android 17 on Pixel 10 Pro - Browser or app shell: MarinaraEngine/Android WebView; Chrome 151.0.7922.137 ## Logs, screenshots, or video Reported output: "Professor Mari kept returning plain text instead of the required JSON command object, so I stopped before burning more requests. Ask her to continue and she can pick up from the saved trace." Authorization error: "Mutation blocked before execution: the quoted user instruction does not authorize an update operation." Screenshots: https://cdn.discordapp.com/attachments/1539669841236201503/1539669841969938512/Screenshot_20260819-090455.png and https://cdn.discordapp.com/attachments/1539669841236201503/1539669842657939526/Screenshot_20260819-091603.png ## Additional context Active connection was [or] glm 5.2 through OpenRouter using z-ai/glm-5.2. Switching to Sonnet 5 helped with the JSON output but exposed the authorization block. The user reports that this was less problematic on v3.4.3 when editing larger entries the previous day. Discord thread: Mari struggling with lorebook updates Discord thread link: https://discord.com/channels/1417099416812392641/1539669841236201503 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-08-19T16:18:15.833Z] containerd | crow: Marinara Engine diagnostics Version: 2.4.4 Build: 2.4.4+f195f57b1f07 Commit: f195f57b1f07 Server OS: Android / Termux 6.6.118-android15-8-g1831c2a45d9b-ab15739706-4k (arm64) Client OS: Android 17 Browser / app shell: Mozilla/5.0 (Linux; Android 17; Pixel 10 Pro Build/CP2A.260805.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.137 Mobile Safari/537.36 MarinaraEngine/Android GPU: PowerVR D-Series DXT-48-1536 Active connection: [or] glm 5.2 Connection provider: openrouter LLM model: z-ai/glm-5.2 [img1] Mari is hardcore struggling with lorebook edits and keeps getting blocked: > Professor Mari kept returning plain text instead of the required JSON command object, so I stopped before burning more requests. Ask her to continue and she can pick up from the saved trace. I tried starting a fresh chat with curated context from the previous one and ran into the same issues. I don't think Mari had this much trouble on v3.4.3 because I had her do edits on even bigger entries just yesterday. I thought maybe GLM5.2 is too dumb, so I switched to Sonnet 5. That helped, but then Mari got blocked for unauthorized mutations because I only said "continue". > Mutation blocked before execution: the quoted user instruction does not authorize an update operation. [img2] After explicitly saying this: > i authorize you to split and modify the lorebook entries Mari was able to update entries... and then got blocked from creating entries. [attached image 1: https://cdn.discordapp.com/attachments/1539669841236201503/1539669841969938512/Screenshot_20260819-090455.png?ex=6a8728c8&is=6a85d748&hm=7ad14376ec6fce1997a1aaa8fc8f56670d5df6c1a3accbcc32032362a78c9ecf&] [attached image 2: https://cdn.discordapp.com/attachments/1539669841236201503/1539669842657939526/Screenshot_20260819-091603.png?ex=6a8728c8&is=6a85d748&hm=b761fa6c8335abda2ae26fa1648612db8a877c1c4ec60cd19df6ffcdd1b3df75&] [Discord message: https://discord.com/channels/1417099416812392641/1539669841236201503/1539669841236201503] ``` </details> ## 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:58:01 +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#2924
No description provided.