mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8725] [MERGED] fix(mari): keep text-only answers instead of replacing them over claim wording #8769
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#8769
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8725
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/8711-mari-claim-audit-false-positives📝 Commits (5)
f5bffbbfix(mari): stop claim audits discarding text-only answers (#8711)8f92035fix(mari): catch real held and completion claims again (#8711)7fc99d3fix(mari): keep a flagged reply when the run changed nothing (#8711)7abcfb4fix(mari): keep closing answers of no-change runs, with a notice flag (#8711)1000ca9fix(mari): a replaced reply drops its notice; single quotes are never stripped (#8711)📊 Changes
12 files changed (+562 additions, -60 deletions)
View changed files
📝
packages/client/src/components/chat/mari/CompactMariMessage.tsx(+13 -1)📝
packages/client/src/components/chat/mari/MariTranscript.tsx(+2 -1)📝
packages/client/src/localization/locales/en.json(+1 -0)📝
packages/server/src/services/professor-mari/pi-runtime.ts(+36 -9)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+66 -13)📝
packages/server/src/services/professor-mari/workspace-message-store.ts(+3 -0)📝
packages/server/src/services/professor-mari/workspace-round-review.ts(+42 -2)📝
packages/shared/src/types/chat.ts(+5 -0)📝
packages/shared/src/types/professor-mari-workspace.ts(+10 -2)📝
scripts/regressions/professor-mari/mari-send-now.regression.ts(+19 -0)📝
scripts/regressions/professor-mari/pi-runtime.regression.ts(+219 -31)📝
scripts/regressions/professor-mari/round-review.regression.ts(+146 -1)📄 Description
Linked issue
Closes #8711
Why this change
Professor Mari's completion-claim and held-change checks read her reply's wording, and could throw away a text-only answer. A draft list with "a lantern that is created", a quoted example, a code block, or an explanation of how change cards work was enough. The answer was replaced by a hidden repair, or by the canned "I did not make or hold any change." The user lost what they asked for. Explaining the problem tended to trip the check again.
Narrowing the phrase checks always traded false positives for missed real claims; three review rounds confirmed it. So this changes what happens when a check fires, as the issue's Expected behaviour asks: keep the original content and show a warning instead of replacing it.
What changed
mariNothingChangedflag. The client shows it as a localized note,mari.reply.nothingChanged, through the existingMariNote(role="status").staging. A run tried a change if it made one, previewed one, held one, set one aside beside a question, had one rejected by the protocol, or ran any shell command.staging.Validation
pnpm checkpasses locallyCONTRIBUTING.mdWhat the agent ran:
node ./scripts/run-regressions.mjs --filter mari: 86/86 pass.prompt.regression.tsand the other claim-audit lanes (chat-sweep, assigned-chat-sweep, connection-account-resolvers) pass too.pnpm checkpasses (exit 0). The 12 existing client lint warnings are in files this PR doesn't touch.pnpm localization:checkpasses.staging.staging. A mutation check shows that disabling the notice rule fails the pi-runtime regression.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/home/professor-mari.mddoesn't describe the claim checks.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.