[GH-ISSUE #8711] [Issue]: Claim audits discard Professor Mari text-only replies #8469

Closed
opened 2026-11-07 16:43:09 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Professor Mari's phrase-based completion-claim and held-change audits can falsely classify text-only responses as unsupported workspace changes. The original response is then discarded and replaced by a hidden-prompt repair response, disclaimer, or canned message.

Expected behavior

Text-only drafts, lists, explanations, quoted examples, and code blocks should remain visible when no workspace mutation was requested or attempted. If an audit detects a possible false claim, it should preserve the original content and present a warning or correction rather than replacing the entire response.

Actual behavior

Intermittently, the requested text disappears or is cut short and is replaced by a meta-response such as "the flag doesn't apply here," a statement that no data changed, or the hard-coded message "I did not make or hold any change. Ask me again if you want it made." Longer replies and replies explaining the review or change-card flow appear more likely to trigger the issue, and retries can fail repeatedly.

Steps to reproduce

  1. Open Professor Mari from the Home screen.
  2. Ask for a text-only response, for example: "Draft a list of 12 short item descriptions I can paste into another screen."
  3. Repeat the request several times because the issue is intermittent, preferably with longer responses or quoted examples containing phrases such as "is created" or "are saved."
  4. Observe that the requested content may be discarded and replaced by a repair disclaimer or meta-response.
  5. To exercise the separate held-change guard, ask Professor Mari whether part of her reply format could be confusing the review or change-card system.
  6. Observe that the explanation may be replaced by: "I did not make or hold any change. Ask me again if you want it made."

Environment

  • Marinara Engine version: 2.5.1 (build 2.5.1+3d168ea6d837, commit 3d168ea6d8)
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Professor Mari on the Marinara Engine Home screen; specific browser or app shell not provided

Logs, screenshots, or video

Diagnostics reported: "Professor Mari last acted on: none recorded this session." Screenshot evidence: https://cdn.discordapp.com/attachments/1566984501978996788/1566986806795173999/image.png?ex=6aea89af&is=6ae9382f&hm=0ae04276975235b335a38248af841e054de6cf5c39d8dfbb743a60cb8d8719df& ; https://cdn.discordapp.com/attachments/1566984501978996788/1566986807634173992/image.png?ex=6aea89b0&is=6ae93830&hm=978e6ce157b9fd7f7a52864c72fc8720fb58debd51db9b79ba3cb9a06c861c71& ; https://cdn.discordapp.com/attachments/1566984501978996788/1566986808296738836/image.png?ex=6aea89b0&is=6ae93830&hm=5f50618fcd20dfca1b1899b1aefacc8c09d178ff9c15712468c575d1a2489213& ; https://cdn.discordapp.com/attachments/1566984501978996788/1566987228557742260/image.png?ex=6aea8a14&is=6ae93894&hm=f42ae2ae2c1c1a918a83e43de7b1641d8df1b31034f5fb91ff84ffc48982d401& ; https://cdn.discordapp.com/attachments/1566984501978996788/1566987228901806241/image.png?ex=6aea8a14&is=6ae93894&hm=0f9577db14640e8e9eed5ba728e860f8b10f5966f9010fa87bd47086f42fc9a4& ; settings screenshot: https://cdn.discordapp.com/attachments/1566984501978996788/1566989113754787911/image.png?ex=6aea8bd5&is=6ae93a55&hm=2baa71f4ff0b968ce030ab96a3f643c09a2ad6155868126ca13d0ef54147e807&

Additional context

Reporter analysis points to reviewRoundClaim() in packages/server/src/services/professor-mari/workspace-round-review.ts and workspaceTextClaimsMutationCompletion()/auditWorkspaceCompletionClaim() in workspace-agent.service.ts. The English-language tripwire scans the entire whitespace-normalized response, including quoted text and code blocks, and one passive phrase can cause the whole response to be replaced. A pure text response with no tool calls lacks the successful state read or earlier passed round that can allow a non-self-attributed claim to escape the "none" branch. A separate workspaceTextClaimsHeldChange() guard in pi-runtime.ts can replace explanations of staged or held changes after two matches. Review against staging reportedly found that suggestion tools are filtered from workspace calls, so suggestion chips are not themselves the trigger, and the later pi-runtime audit applies to the tool-round-limit summary rather than every final reply. Suggested mitigations include checking only self-attributed mutation claims when no mutating calls were attempted, excluding quoted/code text, comparing claims against server state, or preserving the original response in a warning card with the triggering words highlighted. Professor Mari used Claude Opus 5.5 with permissions mode set to accept edits. The reporter has observed the issue for several weeks and sometimes sees it trigger twice in a row.

Discord thread: Professor Mari: false positives in the claim audit throw away text-only answers and show disclaimer
Discord thread link: https://discord.com/channels/1417099416812392641/1566984501978996788
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (11 messages)
[2026-11-03T01:16:58.436Z] thisonecan't: **Summary**
When Professor Mari answers a request that only needs text (a draft, a list, an explanation) and makes no app-data changes, her reply sometimes disappears. The user gets a short meta-reply instead, saying no data changed or that "the flag doesn't apply here". That reply responds to a check the user never saw, and the requested content is gone. Once this happens, explaining the problem tends to trigger it again, because the explanation repeats the same kind of wording.

**Steps to reproduce (intermittent)**
1. Open Professor Mari on the Home screen.
2. Ask for something that only needs text, e.g. "Draft a list of 12 short item descriptions I can paste into another screen."
3. Repeat a few times. 

It shows up more often with longer replies and (maybe related or just coincidence: with replies that include quick-reply suggestion chips/longer chat history that have maid changes/edits in cards since it might reference them.)

**Expected**
The drafted text shows up. The change-verification step should never throw away a read-only or text-only answer.

**Actual**
The user sees a reply that answers the hidden repair prompt, not the original reply. The requested content is missing or cut short.


Notes: I had a hard time getting details on this issue because it kept tripping the exact thing the report is for, Professor Mari had to work around the triggers to find out the cause and I had to keep asking it to retry because it kept wiping the message and sending the disclaimer response.
Additional details below.
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566984501978996788]

[2026-11-03T01:16:59.075Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566984504659152967]

[2026-11-03T01:19:13.784Z] thisonecan't: **Suspected cause (from Prof Mari)**
- `packages/server/src/services/professor-mari/workspace-round-review.ts`, `reviewRoundClaim()` (~L80–135): when `auditWorkspaceCompletionClaim()` returns an issue, the round's visible text gets discarded (`kind: "repair"`, see the comment at ~L71) and the model gets a hidden repair prompt. The user only sees the repaired round.
- For issue `"none"` (no mutation in the run), the repair prompts (~L119–122) tell the model to take back its claim. In a run with no changes, the model then writes a disclaimer in place of the content.
- **Suggestion chips may make this more likely:** `terminalClaim` is `commands.length === 0 && stop` (~L107). A round that also calls `suggestions` has a command, so it counts as mid-run and goes down the mid-run repair path (~L120), which draws on `MAX_MIDRUN_CLAIM_REPAIR_ROUNDS`. (Unconfirmed whether that path is stricter.)
- `pi-runtime.ts` ~L889 runs the same audit on the final text with `commands: []`, `stop: true`.
- **Feedback loop:** the repair prompt's own wording ends up in the model's next reply, which can trip the audit again.

**Detector details**
Function: `workspaceTextClaimsMutationCompletion()` in `packages/server/src/services/professor-mari/workspace-agent.service.ts` (~L2806–2838). `auditWorkspaceCompletionClaim()` calls it (~L2940). Its own comment calls it "an English-language tripwire, not a semantic proof."

It collapses the whole reply into one whitespace-normalized string (~L2810) and flags it on any of these patterns:
- First-person subject (I / I've / we / we've) directly before a listed verb
- "it" / "that" / "it's" / "that's" directly before a listed verb
- Passive auxiliary (is / are / was / were / has been / have been) directly before a listed verb
- A reply opening with "The edit / change / update" plus a listed verb
- A reply consisting only of "Done." or a single listed verb

Filler words in between (successfully, now, just, already) still match.

Verb list: created, updated, changed, deleted, removed, renamed, wrote, written, fixed, implemented, built, installed, imported, exported, saved, enabled, disabled, assigned, linked, unlinked, generated, moved, copied, replaced, added, applied, edited, modified, set, inserted, completed.

Exemptions:
- A reply that is entirely one question starting with have/has/did/is/are/was/were (~L2812)
- A match following if / when / before / after / once / unless / until / whether, or followed by "by default"
- "verified" is intentionally absent from the list

Problems this causes:
1. **The passive pattern catches ordinary descriptive sentences**, including text inside drafts, documentation answers, and how-to explanations.
2. **The scan covers code blocks and quoted examples.** A bug report or explanation that quotes a triggering phrase trips the audit itself, so the bug reproduces while you describe it.
3. **One match anywhere discards the whole reply**, so longer answers carry proportionally higher risk.
4. **Runs with zero mutating calls still go through the audit**, so a pure text answer can get thrown out over wording alone.

**Suggested fixes **
1. Treat `"none"` as harmless when the run made no mutating calls and the request needed none.
2. Don't count read-only/UI calls like `suggestions` as commands when deciding `terminalClaim`.
3. On repair, keep the original content and only add a correction. Don't discard the whole round. Null any changes or toolcalls and show the response as text only.
4. Optionally show the user a small notice whenever a round goes through repair, so they know the visible answer differs from the original.
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566985069669646528]

[2026-11-03T01:21:52.019Z] thisonecan't: **Follow-up: a second guard causes the same disappearing replies**

This one is separate from the completion-claim detector above.

**Symptom:** a text-only answer gets swapped for one canned line: "I did not make or hold any change. Ask me again if you want it made." That sentence is hard-coded in the source. The model didn't write it.

**Where:** `pi-runtime.ts` (~L797–812) calls `workspaceTextClaimsHeldChange()` in `workspace-agent.service.ts` (~L2360) whenever a run has no saved edits and nothing pending approval.

**Flow:**
- First match: a hidden repair prompt tells the model to either make the edit or say none happened.
- Second match: the whole reply gets discarded, the canned line shows instead, and the run ends.

**What it looks for** (lowercased, whitespace squashed, English only):
- "held", "staged" or "queued", then within ~20 chars "for (your) review / approval / accept…"
- "change card(s)", then is/are, then ready / staged / waiting / held
- "change(s)", then ready / staged / waiting / held, with review / accept / approv… in the next 60 chars
- The exact phrase "nothing … applied yet" (without the gap)

**Why it misfires:** like detector #1, it reads words, not state. A reply that just *explains* the approval or change-card flow trips it twice in a row and gets swapped for the canned line. **Repro:** ask Mari whether some part of her reply format could be confusing the review system. The code comment admits the limitation: "English phrasings only. Upgrade path: have the server state what is held and compare, not read words."
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566985733355479122]

[2026-11-03T01:26:08.447Z] thisonecan't: (no text content)

[attached image 1: https://cdn.discordapp.com/attachments/1566984501978996788/1566986806795173999/image.png?ex=6aea89af&is=6ae9382f&hm=0ae04276975235b335a38248af841e054de6cf5c39d8dfbb743a60cb8d8719df&]
[attached image 2: https://cdn.discordapp.com/attachments/1566984501978996788/1566986807634173992/image.png?ex=6aea89b0&is=6ae93830&hm=978e6ce157b9fd7f7a52864c72fc8720fb58debd51db9b79ba3cb9a06c861c71&]
[attached image 3: https://cdn.discordapp.com/attachments/1566984501978996788/1566986808296738836/image.png?ex=6aea89b0&is=6ae93830&hm=5f50618fcd20dfca1b1899b1aefacc8c09d178ff9c15712468c575d1a2489213&]
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566986808892461226]

[2026-11-03T01:27:48.687Z] thisonecan't: (no text content)

[attached image 1: https://cdn.discordapp.com/attachments/1566984501978996788/1566987228557742260/image.png?ex=6aea8a14&is=6ae93894&hm=f42ae2ae2c1c1a918a83e43de7b1641d8df1b31034f5fb91ff84ffc48982d401&]
[attached image 2: https://cdn.discordapp.com/attachments/1566984501978996788/1566987228901806241/image.png?ex=6aea8a14&is=6ae93894&hm=0f9577db14640e8e9eed5ba728e860f8b10f5966f9010fa87bd47086f42fc9a4&]
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566987229329490051]

[2026-11-03T01:35:18.046Z] thisonecan't: ` ` `
Marinara Engine diagnostics
Version: 2.5.1
Build: 2.5.1+3d168ea6d837
Commit: 3d168ea6d837
Professor Mari last acted on: none recorded this session
` ` `
Professor Mari settings also in the screenshot incase it's  relevant.
permissions mode: accept edits
Connection for Professor Mari is set to Claude Opus 5.5

[attached image 1: https://cdn.discordapp.com/attachments/1566984501978996788/1566989113754787911/image.png?ex=6aea8bd5&is=6ae93a55&hm=2baa71f4ff0b968ce030ab96a3f643c09a2ad6155868126ca13d0ef54147e807&]
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566989114077610056]

[2026-11-03T01:37:43.218Z] thisonecan't: I've noticed this for a couple weeks, but usually I just say "Hey you did the thing, tell me again" and it works, sometimes it triggers it twice in a row.
But trying to dig into it to make this bug report it kept happening over and over, I almost gave up lol
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566989722973118596]

[2026-11-03T01:47:45.679Z] thisonecan't: This was from claude - outside of the engine on claude code. And makes things make more sense.

` ` `Verified against current staging source. Mostly accurate, two corrections and one sharper finding:

Correction 1: suggestion chips aren't the trigger. In pi-runtime.ts, UI tools (suggestions, ask) are filtered out of workspaceCalls before reviewRoundClaim runs, so chips can't make a round count as mid-run. The correlation is likely just reply length.

Correction 2: the pi-runtime.ts ~L889 audit only runs on the tool-round-limit summary, not every final reply.

Sharper finding: in auditWorkspaceCompletionClaim's "none" branch, a flagged reply with no mutation in scope only escapes if (a) the scope has a successful state read and the claim isn't self-attributed, or (b) an earlier round already passed. A pure text answer with no tool calls gets neither, so a single passive phrase ("is created", "are saved") anywhere in a draft fails it, while the same reply would pass if Mari had run any read first.

Possible targeted fix: when the scope has no mutating attempts at all, check only workspaceTextClaimsMutationCompletion(text, { selfAttributedOnly: true }). That still catches "I updated your character" with no tool call behind it, but stops passive descriptions and quoted text from wiping text-only answers. The held-change guard could likewise skip quoted/code text, or, as its own comment suggests, compare against server state instead of reading words.` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566992249877958690]

[2026-11-03T02:02:53.482Z] thisonecan't: Maybe the easiest solution is to still show the reply but highlighted in a red card with the claim audited response after it as a warning the previous reply may be making a false claim, and highlight the words that triggered it.
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566996057479712800]

[2026-11-03T02:03:29.275Z] thisonecan't: That keeps it working as is, and still shows the wiped response, but with a warning.
[Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566996207606177793]

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 (Nov 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8711 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Professor Mari's phrase-based completion-claim and held-change audits can falsely classify text-only responses as unsupported workspace changes. The original response is then discarded and replaced by a hidden-prompt repair response, disclaimer, or canned message. ## Expected behavior Text-only drafts, lists, explanations, quoted examples, and code blocks should remain visible when no workspace mutation was requested or attempted. If an audit detects a possible false claim, it should preserve the original content and present a warning or correction rather than replacing the entire response. ## Actual behavior Intermittently, the requested text disappears or is cut short and is replaced by a meta-response such as "the flag doesn't apply here," a statement that no data changed, or the hard-coded message "I did not make or hold any change. Ask me again if you want it made." Longer replies and replies explaining the review or change-card flow appear more likely to trigger the issue, and retries can fail repeatedly. ## Steps to reproduce 1. Open Professor Mari from the Home screen. 2. Ask for a text-only response, for example: "Draft a list of 12 short item descriptions I can paste into another screen." 3. Repeat the request several times because the issue is intermittent, preferably with longer responses or quoted examples containing phrases such as "is created" or "are saved." 4. Observe that the requested content may be discarded and replaced by a repair disclaimer or meta-response. 5. To exercise the separate held-change guard, ask Professor Mari whether part of her reply format could be confusing the review or change-card system. 6. Observe that the explanation may be replaced by: "I did not make or hold any change. Ask me again if you want it made." ## Environment - Marinara Engine version: 2.5.1 (build 2.5.1+3d168ea6d837, commit 3d168ea6d837) - Install type: Not provided - OS + version: Not provided - Browser or app shell: Professor Mari on the Marinara Engine Home screen; specific browser or app shell not provided ## Logs, screenshots, or video Diagnostics reported: "Professor Mari last acted on: none recorded this session." Screenshot evidence: https://cdn.discordapp.com/attachments/1566984501978996788/1566986806795173999/image.png?ex=6aea89af&is=6ae9382f&hm=0ae04276975235b335a38248af841e054de6cf5c39d8dfbb743a60cb8d8719df& ; https://cdn.discordapp.com/attachments/1566984501978996788/1566986807634173992/image.png?ex=6aea89b0&is=6ae93830&hm=978e6ce157b9fd7f7a52864c72fc8720fb58debd51db9b79ba3cb9a06c861c71& ; https://cdn.discordapp.com/attachments/1566984501978996788/1566986808296738836/image.png?ex=6aea89b0&is=6ae93830&hm=5f50618fcd20dfca1b1899b1aefacc8c09d178ff9c15712468c575d1a2489213& ; https://cdn.discordapp.com/attachments/1566984501978996788/1566987228557742260/image.png?ex=6aea8a14&is=6ae93894&hm=f42ae2ae2c1c1a918a83e43de7b1641d8df1b31034f5fb91ff84ffc48982d401& ; https://cdn.discordapp.com/attachments/1566984501978996788/1566987228901806241/image.png?ex=6aea8a14&is=6ae93894&hm=0f9577db14640e8e9eed5ba728e860f8b10f5966f9010fa87bd47086f42fc9a4& ; settings screenshot: https://cdn.discordapp.com/attachments/1566984501978996788/1566989113754787911/image.png?ex=6aea8bd5&is=6ae93a55&hm=2baa71f4ff0b968ce030ab96a3f643c09a2ad6155868126ca13d0ef54147e807& ## Additional context Reporter analysis points to reviewRoundClaim() in packages/server/src/services/professor-mari/workspace-round-review.ts and workspaceTextClaimsMutationCompletion()/auditWorkspaceCompletionClaim() in workspace-agent.service.ts. The English-language tripwire scans the entire whitespace-normalized response, including quoted text and code blocks, and one passive phrase can cause the whole response to be replaced. A pure text response with no tool calls lacks the successful state read or earlier passed round that can allow a non-self-attributed claim to escape the "none" branch. A separate workspaceTextClaimsHeldChange() guard in pi-runtime.ts can replace explanations of staged or held changes after two matches. Review against staging reportedly found that suggestion tools are filtered from workspace calls, so suggestion chips are not themselves the trigger, and the later pi-runtime audit applies to the tool-round-limit summary rather than every final reply. Suggested mitigations include checking only self-attributed mutation claims when no mutating calls were attempted, excluding quoted/code text, comparing claims against server state, or preserving the original response in a warning card with the triggering words highlighted. Professor Mari used Claude Opus 5.5 with permissions mode set to accept edits. The reporter has observed the issue for several weeks and sometimes sees it trigger twice in a row. Discord thread: Professor Mari: false positives in the claim audit throw away text-only answers and show disclaimer Discord thread link: https://discord.com/channels/1417099416812392641/1566984501978996788 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (11 messages)</summary> ```text [2026-11-03T01:16:58.436Z] thisonecan't: **Summary** When Professor Mari answers a request that only needs text (a draft, a list, an explanation) and makes no app-data changes, her reply sometimes disappears. The user gets a short meta-reply instead, saying no data changed or that "the flag doesn't apply here". That reply responds to a check the user never saw, and the requested content is gone. Once this happens, explaining the problem tends to trigger it again, because the explanation repeats the same kind of wording. **Steps to reproduce (intermittent)** 1. Open Professor Mari on the Home screen. 2. Ask for something that only needs text, e.g. "Draft a list of 12 short item descriptions I can paste into another screen." 3. Repeat a few times. It shows up more often with longer replies and (maybe related or just coincidence: with replies that include quick-reply suggestion chips/longer chat history that have maid changes/edits in cards since it might reference them.) **Expected** The drafted text shows up. The change-verification step should never throw away a read-only or text-only answer. **Actual** The user sees a reply that answers the hidden repair prompt, not the original reply. The requested content is missing or cut short. Notes: I had a hard time getting details on this issue because it kept tripping the exact thing the report is for, Professor Mari had to work around the triggers to find out the cause and I had to keep asking it to retry because it kept wiping the message and sending the disclaimer response. Additional details below. [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566984501978996788] [2026-11-03T01:16:59.075Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566984504659152967] [2026-11-03T01:19:13.784Z] thisonecan't: **Suspected cause (from Prof Mari)** - `packages/server/src/services/professor-mari/workspace-round-review.ts`, `reviewRoundClaim()` (~L80–135): when `auditWorkspaceCompletionClaim()` returns an issue, the round's visible text gets discarded (`kind: "repair"`, see the comment at ~L71) and the model gets a hidden repair prompt. The user only sees the repaired round. - For issue `"none"` (no mutation in the run), the repair prompts (~L119–122) tell the model to take back its claim. In a run with no changes, the model then writes a disclaimer in place of the content. - **Suggestion chips may make this more likely:** `terminalClaim` is `commands.length === 0 && stop` (~L107). A round that also calls `suggestions` has a command, so it counts as mid-run and goes down the mid-run repair path (~L120), which draws on `MAX_MIDRUN_CLAIM_REPAIR_ROUNDS`. (Unconfirmed whether that path is stricter.) - `pi-runtime.ts` ~L889 runs the same audit on the final text with `commands: []`, `stop: true`. - **Feedback loop:** the repair prompt's own wording ends up in the model's next reply, which can trip the audit again. **Detector details** Function: `workspaceTextClaimsMutationCompletion()` in `packages/server/src/services/professor-mari/workspace-agent.service.ts` (~L2806–2838). `auditWorkspaceCompletionClaim()` calls it (~L2940). Its own comment calls it "an English-language tripwire, not a semantic proof." It collapses the whole reply into one whitespace-normalized string (~L2810) and flags it on any of these patterns: - First-person subject (I / I've / we / we've) directly before a listed verb - "it" / "that" / "it's" / "that's" directly before a listed verb - Passive auxiliary (is / are / was / were / has been / have been) directly before a listed verb - A reply opening with "The edit / change / update" plus a listed verb - A reply consisting only of "Done." or a single listed verb Filler words in between (successfully, now, just, already) still match. Verb list: created, updated, changed, deleted, removed, renamed, wrote, written, fixed, implemented, built, installed, imported, exported, saved, enabled, disabled, assigned, linked, unlinked, generated, moved, copied, replaced, added, applied, edited, modified, set, inserted, completed. Exemptions: - A reply that is entirely one question starting with have/has/did/is/are/was/were (~L2812) - A match following if / when / before / after / once / unless / until / whether, or followed by "by default" - "verified" is intentionally absent from the list Problems this causes: 1. **The passive pattern catches ordinary descriptive sentences**, including text inside drafts, documentation answers, and how-to explanations. 2. **The scan covers code blocks and quoted examples.** A bug report or explanation that quotes a triggering phrase trips the audit itself, so the bug reproduces while you describe it. 3. **One match anywhere discards the whole reply**, so longer answers carry proportionally higher risk. 4. **Runs with zero mutating calls still go through the audit**, so a pure text answer can get thrown out over wording alone. **Suggested fixes ** 1. Treat `"none"` as harmless when the run made no mutating calls and the request needed none. 2. Don't count read-only/UI calls like `suggestions` as commands when deciding `terminalClaim`. 3. On repair, keep the original content and only add a correction. Don't discard the whole round. Null any changes or toolcalls and show the response as text only. 4. Optionally show the user a small notice whenever a round goes through repair, so they know the visible answer differs from the original. [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566985069669646528] [2026-11-03T01:21:52.019Z] thisonecan't: **Follow-up: a second guard causes the same disappearing replies** This one is separate from the completion-claim detector above. **Symptom:** a text-only answer gets swapped for one canned line: "I did not make or hold any change. Ask me again if you want it made." That sentence is hard-coded in the source. The model didn't write it. **Where:** `pi-runtime.ts` (~L797–812) calls `workspaceTextClaimsHeldChange()` in `workspace-agent.service.ts` (~L2360) whenever a run has no saved edits and nothing pending approval. **Flow:** - First match: a hidden repair prompt tells the model to either make the edit or say none happened. - Second match: the whole reply gets discarded, the canned line shows instead, and the run ends. **What it looks for** (lowercased, whitespace squashed, English only): - "held", "staged" or "queued", then within ~20 chars "for (your) review / approval / accept…" - "change card(s)", then is/are, then ready / staged / waiting / held - "change(s)", then ready / staged / waiting / held, with review / accept / approv… in the next 60 chars - The exact phrase "nothing … applied yet" (without the gap) **Why it misfires:** like detector #1, it reads words, not state. A reply that just *explains* the approval or change-card flow trips it twice in a row and gets swapped for the canned line. **Repro:** ask Mari whether some part of her reply format could be confusing the review system. The code comment admits the limitation: "English phrasings only. Upgrade path: have the server state what is held and compare, not read words." [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566985733355479122] [2026-11-03T01:26:08.447Z] thisonecan't: (no text content) [attached image 1: https://cdn.discordapp.com/attachments/1566984501978996788/1566986806795173999/image.png?ex=6aea89af&is=6ae9382f&hm=0ae04276975235b335a38248af841e054de6cf5c39d8dfbb743a60cb8d8719df&] [attached image 2: https://cdn.discordapp.com/attachments/1566984501978996788/1566986807634173992/image.png?ex=6aea89b0&is=6ae93830&hm=978e6ce157b9fd7f7a52864c72fc8720fb58debd51db9b79ba3cb9a06c861c71&] [attached image 3: https://cdn.discordapp.com/attachments/1566984501978996788/1566986808296738836/image.png?ex=6aea89b0&is=6ae93830&hm=5f50618fcd20dfca1b1899b1aefacc8c09d178ff9c15712468c575d1a2489213&] [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566986808892461226] [2026-11-03T01:27:48.687Z] thisonecan't: (no text content) [attached image 1: https://cdn.discordapp.com/attachments/1566984501978996788/1566987228557742260/image.png?ex=6aea8a14&is=6ae93894&hm=f42ae2ae2c1c1a918a83e43de7b1641d8df1b31034f5fb91ff84ffc48982d401&] [attached image 2: https://cdn.discordapp.com/attachments/1566984501978996788/1566987228901806241/image.png?ex=6aea8a14&is=6ae93894&hm=0f9577db14640e8e9eed5ba728e860f8b10f5966f9010fa87bd47086f42fc9a4&] [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566987229329490051] [2026-11-03T01:35:18.046Z] thisonecan't: ` ` ` Marinara Engine diagnostics Version: 2.5.1 Build: 2.5.1+3d168ea6d837 Commit: 3d168ea6d837 Professor Mari last acted on: none recorded this session ` ` ` Professor Mari settings also in the screenshot incase it's relevant. permissions mode: accept edits Connection for Professor Mari is set to Claude Opus 5.5 [attached image 1: https://cdn.discordapp.com/attachments/1566984501978996788/1566989113754787911/image.png?ex=6aea8bd5&is=6ae93a55&hm=2baa71f4ff0b968ce030ab96a3f643c09a2ad6155868126ca13d0ef54147e807&] [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566989114077610056] [2026-11-03T01:37:43.218Z] thisonecan't: I've noticed this for a couple weeks, but usually I just say "Hey you did the thing, tell me again" and it works, sometimes it triggers it twice in a row. But trying to dig into it to make this bug report it kept happening over and over, I almost gave up lol [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566989722973118596] [2026-11-03T01:47:45.679Z] thisonecan't: This was from claude - outside of the engine on claude code. And makes things make more sense. ` ` `Verified against current staging source. Mostly accurate, two corrections and one sharper finding: Correction 1: suggestion chips aren't the trigger. In pi-runtime.ts, UI tools (suggestions, ask) are filtered out of workspaceCalls before reviewRoundClaim runs, so chips can't make a round count as mid-run. The correlation is likely just reply length. Correction 2: the pi-runtime.ts ~L889 audit only runs on the tool-round-limit summary, not every final reply. Sharper finding: in auditWorkspaceCompletionClaim's "none" branch, a flagged reply with no mutation in scope only escapes if (a) the scope has a successful state read and the claim isn't self-attributed, or (b) an earlier round already passed. A pure text answer with no tool calls gets neither, so a single passive phrase ("is created", "are saved") anywhere in a draft fails it, while the same reply would pass if Mari had run any read first. Possible targeted fix: when the scope has no mutating attempts at all, check only workspaceTextClaimsMutationCompletion(text, { selfAttributedOnly: true }). That still catches "I updated your character" with no tool call behind it, but stops passive descriptions and quoted text from wiping text-only answers. The held-change guard could likewise skip quoted/code text, or, as its own comment suggests, compare against server state instead of reading words.` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566992249877958690] [2026-11-03T02:02:53.482Z] thisonecan't: Maybe the easiest solution is to still show the reply but highlighted in a red card with the claim audited response after it as a warning the previous reply may be making a false claim, and highlight the words that triggered it. [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566996057479712800] [2026-11-03T02:03:29.275Z] thisonecan't: That keeps it working as is, and still shows the wiped response, but with a warning. [Discord message: https://discord.com/channels/1417099416812392641/1566984501978996788/1566996207606177793] ``` </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-11-07 16:43:09 +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#8469
No description provided.