mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7882] [MERGED] fix(mari): verify Pi mutation claims and add Classic recovery #7982
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#7982
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/7882
Author: @Gunterlie
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:the-pi-is-always-with-you📝 Commits (7)
438ec6ffix(mari): verify mutation claims and default to Pi with recoverya41d209Merge branch 'staging' into the-pi-is-always-with-you4fca310Merge branch 'staging' into the-pi-is-always-with-youe54fb22fix(mari): require current-scope mutation evidence for self-attributed completion claims726ab51Merge branch 'staging' into the-pi-is-always-with-you93d0f27fix(mari): allow exact terminal recaps of previously verified completion claims43a173cMerge branch 'staging' into the-pi-is-always-with-you📊 Changes
26 files changed (+704 additions, -44 deletions)
View changed files
📝
e2e/chat-diagnose-mari.e2e.ts(+10 -1)📝
e2e/core-flows.e2e.ts(+8 -0)➕
e2e/inline-completion.e2e.ts(+36 -0)📝
e2e/mari-arrival-append.e2e.ts(+4 -0)📝
e2e/mari-decision-authoring.e2e.ts(+7 -0)➕
e2e/mari-runtime-recovery.e2e.ts(+109 -0)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+2 -0)📝
packages/client/src/components/chat/mari/MariComposer.tsx(+7 -0)➕
packages/client/src/components/chat/mari/MariRuntimeRecovery.tsx(+56 -0)📝
packages/client/src/components/chat/mari/use-mari-workspace-run.ts(+2 -1)📝
packages/client/src/lib/inline-completion.ts(+15 -14)📝
packages/client/src/localization/locales/en.json(+6 -1)📝
packages/server/src/db/seed-mari.ts(+9 -0)📝
packages/server/src/routes/professor-mari-workspace.routes.ts(+1 -0)📝
packages/server/src/services/professor-mari/pi-runtime.ts(+1 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+45 -13)📝
packages/server/src/services/professor-mari/workspace-round-review.ts(+4 -0)📝
packages/shared/src/constants/mari-runtime.ts(+3 -3)📝
packages/shared/src/types/professor-mari-workspace.ts(+2 -0)➕
scripts/regressions/inline-completion.regression.ts(+19 -0)...and 6 more files
📄 Description
Linked issue
Closes #7879
Why this change
A read-only Pi run could read Duke Gunterlie, make no deletion call, and still report “I deleted Duke Gunterlie.” The completion audit incorrectly let a successful state read support a claim that Mari performed a mutation. Pi also needs an accessible escape route as it becomes the default.
What changed
DC→dc simulator, in both the omnibar and Mari composer.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated local evidence so far:
pnpm checkpassed before the final audit tightening; the final revision is being revalidated.pnpm smoke:uipassed 7/7.Manually verify with real providers that Mari follows the requested lorebook edits and accurately reports no-op changes. The original Discord attachment URLs return HTTP 403, so the exact reporter transcript could not be replayed. Manually verify the iOS keyboard and recovery control in Safari.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No release metadata or user-facing documentation changes. Runtime help text and new recovery labels are localized in the canonical English catalog.
UI evidence (if applicable)
Browser proofs are in
e2e/mari-runtime-recovery.e2e.tsande2e/inline-completion.e2e.ts; they save screenshots of the third-error fallback, Classic recovery and trailing-space name completion. Local captures were inspected at 390/768/1440 pixels and in the default/SillyTavern light/dark themes.Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.