mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5776] Bash mari CLI dry-runs count as applied mutations, so the verification guard can be satisfied for a change that never persisted #3190
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#3190
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?
Originally created by @kolacheee on GitHub (Sep 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5776
Originally assigned to: @kolacheee on GitHub.
In one sentence: a
mariCLI mutation run through thebashcommand without--applyis a dry-run that persists nothing, but the verification guard counts it as an applied mutation, so a follow-up read "verifies" a change that never happened and Mari can claim completion.The gap
This is the #5756 bug class on the bash path.
isAppliedWorkspaceMutation(workspace-agent.service.ts) treats every successful mutating bash command as applied - the"saved": truegate applies only toapp_dataresults. But the mari CLI's documented default is dry-run:mari lorebooks add-entry ...without--applyroutes throughparseDirectMariArgvtocommandMariDirect,executeMutationreturnsok: true, mode: "dry-run"with nothing written, and the result output even contains"saved": false/"status": "dry_run_only"- which the guard never tests for bash results.bashLooksMutatingmatches the subcommand regardless of--apply. Same shape formari db insert|patch|replace|delete|transform,mari themes create|update|set-active, andmari images ....So: Mari forgets
--apply, the round counts as a mutation, she runs any successful read, the round resolves "verified", and "I've added the entry" passes the completion-claim guard while the store is untouched - a silent persistent failure.Fix direction
Don't sniff the output blindly for
dry_run_only- sandboxed bash output is script-controlled, so a script that prints the marker would let a real applied mutation dodge verification debt (the forgery class #5775 hardened against). Instead, distinguish trust domains by input: re-runparseDirectMariArgvon the command at classification time. If it parses as a direct mari invocation, the output is engine-authored (the sandbox never runs it) and can be trusted for a"saved"/dry-run check; if not, keep the current conservative applied classification. Longer term, the structured applied-vs-staged outcome direction from #5756 covers this properly.Found during the adversarial review for #5775; pre-existing, not introduced there.