mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5830] Mari's completion-claim guard blocks truthful recaps, fires on honest sentences, and never fires outside English #3215
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#3215
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 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5830
Originally assigned to: @kolacheee on GitHub.
In one sentence: the completion-claim guard cannot tell "this run did no work" from "this claim is unsupported", so Mari truthfully answering "yes, I created them" about earlier work is challenged twice and then replaced with an error — plus two smaller weaknesses in the same two functions that make it fire on honest sentences and not fire at all outside English.
Split out of #5819, which stays the tracker for the coverage gap (claims going unchecked). This issue is the opposite failure: the guard firing when it should not, and the detector's blind spots. They live in
workspaceActionNeedsVerification/resolveWorkspaceMutationVerification/workspaceTextClaimsMutationCompletionand are probably best fixed together.1. A run that performs no mutations can never satisfy the guard (live today)
resolveWorkspaceMutationVerificationreturns"none"unless it sees an applied mutation in this run, and a read can only clearunverifiedMutationSeen— it can never setmutationSeen:commandResultsForContinuityis created fresh per run (const commandResultsForContinuity: WorkspaceCommandResult[] = []), and every user message starts a new run. So whenever Mari accurately reports work finished in an earlier run, the guard sees an empty result set and returns"none"— permanently, because no amount of reading can change it.What the user experiences:
So asking Mari whether she finished can make her look broken, and it costs two model round trips to get there. This plausibly accounts for part of what #5819's reporter described as her claiming to act while nothing happens.
It also means the coaching is actively misleading in this case: the terminal
nonemessage tells her to perform the mutation if it is missing, on a run where the work is already done. The read-first wording is what keeps that from causing duplicates today, which is worth preserving in any fix.Direction: the guard needs to distinguish "nothing applied in this run" from "this claim has nothing behind it anywhere". Options worth weighing: treat a successful read that confirms the claimed state as satisfying a recap-only run; carry a lightweight record of the previous run's applied mutations into the continuity snapshot the guard can see; or scope the terminal check to runs that actually attempted work. Whatever is chosen, a run whose honest answer is "that was already done" must be able to say so.
2.
"verified"is in the completion-verb listSo "I've verified the card looks right" — a sentence describing a read, and exactly the sentence the guard's own coaching asks her to produce — parses as a completion claim. On a read-only run that is another guaranteed
"none", feeding directly into problem 1. Removingverified(and reviewingchanged/fixed, which are similarly loose) costs nothing in detection value.3. The detector is English-only
workspaceTextClaimsMutationCompletionis a hand-written English regex (i|i've|we|it's…+ the verb list). A user working in any other language gets no completion-claim protection at all — the guard silently never fires. That is worth knowing explicitly, because #5819's reporter appears to be working in translation, so the protection being debated there may never have applied to them in the first place.Not proposing a specific fix here: proper multilingual claim detection is a real design question (per-language patterns, a model-side signal, or an engine-side structural claim field rather than prose sniffing). Worth deciding whether the guard should be honest about being English-only, or whether the claim should stop being inferred from prose at all.
Why these belong together
All three are the same underlying design point: the guard infers a semantic claim from prose and checks it against this run's mechanical results. #5819 covers what that misses; this covers what it gets wrong. A fix that only addresses one side will keep producing either false alarms or false confidence.