mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5973] [MERGED] fix(mari): preserve edits and repair malformed command frames #7007
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#7007
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/5973
Author: @SpicyMarinara
Created: 9/8/2026
Status: ✅ Merged
Merged: 9/8/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/mari-command-claims-5966-5967📝 Commits (4)
7f90a64chore: start Mari command repair (#5966, #5967)5dd346efix(mari): preserve command frames before auditing completion2f0d3effix(mari): validate each command and narrow completion reports4d60b38Merge remote-tracking branch 'origin/staging' into fix/mari-command-claims-5966-5967📊 Changes
4 files changed (+333 additions, -93 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+151 -93)➕
scripts/regressions/mari-completion-frames.regression.ts(+108 -0)📝
scripts/regressions/prompt.regression.ts(+72 -0)📄 Description
Linked issue
Closes #5966
Closes #5967
Why this change
Mari could claim a requested edit was saved without producing a review card. The unreleased claim audit also discarded real commands when their frame said the edit was complete before those commands had executed.
What changed
parameters. An unrecognized command invalidates the whole frame for bounded protocol repair, preventing partial execution and silent drops.apply:trueand explain the flag in its schema. Explicit previews still save nothing.Validation
Automated evidence:
pnpm checkpassed, including localization, formatting, lint/type checks, E2E types, and production builds.pnpm regression:promptpassed.Original) and passes with the fix. Auto mode persists the edit and returns store-verified evidence; Manual and Plan prevent it.mari-guard-sibling-pathsfails its canonical store-link snapshot assertion on this macOS checkout; the exact failure also reproduces against unchanged staging. Hosted CI remains a merge gate.Human verification tasks:
Risk and scope
The completion detector remains an English-language heuristic, and a state read cannot semantically prove every sentence in a claim. This fixes the demonstrated parser/ordering defects without changing mutation defaults or introducing another authorization gate. No user-facing docs, release metadata, dependencies, or mainline changes.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.