[GH-ISSUE #5740] [Feature]: Show the phrase Professor Mari understood as permission to act (triage tool for behavior reports) #3170

Closed
opened 2026-10-21 06:00:11 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Sep 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5740

Originally assigned to: @kolacheee on GitHub.

Summary

A troubleshooting surface that shows the phrase Professor Mari understood as the permission or request to do a task or make edits — so when a user reports "Mari edited something I never asked for" (or "Mari refused something I clearly asked for"), a developer reading the report can immediately gauge whether it is user error or a real Mari issue.

The problem

Mari's permission behavior has been the subject of a long arc of conflicting user reports (#4813 → #4838 → #5721 → #5725). Investigating the earlier complaints showed that many reporters did not realize their own wording implied a change request ("there is a problem with this character, present your proposal"). But today nothing records what Mari took as the authorizing instruction, so every report starts as archaeology: reading the transcript, guessing which sentence she keyed on, and arguing about intent after the fact. With Permissions Mode shipping (#5725), tuning complaints will reference modes too, and triage gets harder without this signal.

Proposed feature

When Mari executes (or stages/defers) mutating commands, she also reports the verbatim user phrase she is acting on, and that phrase is persisted and surfaced:

  • Protocol: a new optional field on her JSON frame (e.g. understoodRequest: a verbatim excerpt of the user's words she believes authorize the mutating commands in this frame). Emitted only when the frame carries mutating commands.
  • Persistence: stored in the assistant message's extra alongside the existing workspace timeline, so it survives in the chat history where the report's transcript lives.
  • Display:
    • the workspace trace/timeline entry for the action shows Acting on: "…";
    • the Keep/Restore review card shows the same line, so the user sees Mari's reading at the moment they review the change;
    • Support Diagnostics includes the most recent understood-request entries (say, the last 5 with timestamps and the action they authorized) — this is the load-bearing part for triage, since reporters paste diagnostics into Discord reports.
  • Permissions Mode context: the record includes the effective mode at the time (an "Acting on" under Manual documents the approval she believed she received; under Auto it documents the intent she read).

Hard constraint: diagnostic only, never enforcement

This deliberately resurrects the shape of the removed authorization field from the pre-#5721 gate — a model-quoted excerpt — but must never resurrect its function. The server must not validate, match, or gate anything on this field; a missing or wrong understoodRequest never blocks a command. #5721 established that parsing user intent server-side misfires; this feature exists to let humans judge intent from the record instead. (Feasibility is already proven: the old gate showed models reliably produce such excerpts, and the current parser is already tolerant of legacy fields of this kind.)

Open questions

  • Should the "Acting on" line be visible to users by default, or dev-facing only (Support Diagnostics + a debug toggle)? Showing it to users may itself reduce complaints — they see Mari's reading and can correct it in the moment — but it adds transcript noise.
  • Small local models may paraphrase instead of quoting verbatim; display should mark non-verbatim excerpts (simple substring check against the user message — display annotation only, never a gate).
  • Retention: last-N entries in diagnostics vs. everything in message extras (extras are already per-message, so history is free there).

Filed from maintainer discussion. Related: #4813, #4838, #5721, #5725, #5727, #5730.

Originally created by @kolacheee on GitHub (Sep 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5740 Originally assigned to: @kolacheee on GitHub. ## Summary A troubleshooting surface that shows **the phrase Professor Mari understood as the permission or request to do a task or make edits** — so when a user reports "Mari edited something I never asked for" (or "Mari refused something I clearly asked for"), a developer reading the report can immediately gauge whether it is user error or a real Mari issue. ## The problem Mari's permission behavior has been the subject of a long arc of conflicting user reports (#4813 → #4838 → #5721 → #5725). Investigating the earlier complaints showed that many reporters did not realize their own wording implied a change request ("there is a problem with this character, present your proposal"). But today nothing records *what Mari took as the authorizing instruction*, so every report starts as archaeology: reading the transcript, guessing which sentence she keyed on, and arguing about intent after the fact. With Permissions Mode shipping (#5725), tuning complaints will reference modes too, and triage gets harder without this signal. ## Proposed feature When Mari executes (or stages/defers) mutating commands, she also reports the **verbatim user phrase she is acting on**, and that phrase is persisted and surfaced: - **Protocol**: a new optional field on her JSON frame (e.g. `understoodRequest`: a verbatim excerpt of the user's words she believes authorize the mutating commands in this frame). Emitted only when the frame carries mutating commands. - **Persistence**: stored in the assistant message's extra alongside the existing workspace timeline, so it survives in the chat history where the report's transcript lives. - **Display**: - the workspace trace/timeline entry for the action shows *Acting on: "…"*; - the Keep/Restore review card shows the same line, so the user sees Mari's reading at the moment they review the change; - **Support Diagnostics** includes the most recent understood-request entries (say, the last 5 with timestamps and the action they authorized) — this is the load-bearing part for triage, since reporters paste diagnostics into Discord reports. - **Permissions Mode context**: the record includes the effective mode at the time (an "Acting on" under Manual documents the approval she believed she received; under Auto it documents the intent she read). ## Hard constraint: diagnostic only, never enforcement This deliberately resurrects the *shape* of the removed `authorization` field from the pre-#5721 gate — a model-quoted excerpt — but must never resurrect its function. The server must not validate, match, or gate anything on this field; a missing or wrong `understoodRequest` never blocks a command. #5721 established that parsing user intent server-side misfires; this feature exists to let *humans* judge intent from the record instead. (Feasibility is already proven: the old gate showed models reliably produce such excerpts, and the current parser is already tolerant of legacy fields of this kind.) ## Open questions - Should the "Acting on" line be visible to users by default, or dev-facing only (Support Diagnostics + a debug toggle)? Showing it to users may itself reduce complaints — they see Mari's reading and can correct it in the moment — but it adds transcript noise. - Small local models may paraphrase instead of quoting verbatim; display should mark non-verbatim excerpts (simple substring check against the user message — display annotation only, never a gate). - Retention: last-N entries in diagnostics vs. everything in message extras (extras are already per-message, so history is free there). --- *Filed from maintainer discussion. Related: #4813, #4838, #5721, #5725, #5727, #5730.*
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#3170
No description provided.