[GH-ISSUE #5830] Mari's completion-claim guard blocks truthful recaps, fires on honest sentences, and never fires outside English #3215

Closed
opened 2026-10-21 06:00:39 +07:00 by bsakaguchi · 0 comments
Owner

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 / workspaceTextClaimsMutationCompletion and are probably best fixed together.

1. A run that performs no mutations can never satisfy the guard (live today)

resolveWorkspaceMutationVerification returns "none" unless it sees an applied mutation in this run, and a read can only clear unverifiedMutationSeen — it can never set mutationSeen:

if (unverifiedMutationSeen && result.success && isReadOnlyWorkspaceCommand(commandCallForResult(result))) {
  unverifiedMutationSeen = false;
}
...
return mutationSeen ? "verified" : "none";

commandResultsForContinuity is 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:

You: did you finish creating them?
Mari: Yes, I created all five characters.
→ guard returns none, so she is told "no mutating command succeeded in this run… use a read command to inspect the requested state; if it is missing, perform the mutation"
→ she reads, confirms they exist, says so again → still none
→ MAX_VERIFICATION_REPAIR_ROUNDS (2) is spent, and her answer is replaced with:
"Professor Mari could not verify the requested workspace change, so I stopped before showing an unsupported completion claim."

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 none message 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 list

created|updated|changed|deleted|removed|renamed|wrote|written|fixed|implemented|built|installed|imported|exported|saved|enabled|disabled|assigned|linked|unlinked|generated|moved|copied|replaced|verified

So "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. Removing verified (and reviewing changed/fixed, which are similarly loose) costs nothing in detection value.

3. The detector is English-only

workspaceTextClaimsMutationCompletion is 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.

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` / `workspaceTextClaimsMutationCompletion` and are probably best fixed together. ## 1. A run that performs no mutations can never satisfy the guard (live today) `resolveWorkspaceMutationVerification` returns `"none"` unless it sees an applied mutation **in this run**, and a read can only clear `unverifiedMutationSeen` — it can never set `mutationSeen`: ```ts if (unverifiedMutationSeen && result.success && isReadOnlyWorkspaceCommand(commandCallForResult(result))) { unverifiedMutationSeen = false; } ... return mutationSeen ? "verified" : "none"; ``` `commandResultsForContinuity` is 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: > **You:** did you finish creating them? > **Mari:** Yes, I created all five characters. > → guard returns `none`, so she is told "no mutating command succeeded in this run… use a read command to inspect the requested state; if it is missing, perform the mutation" > → she reads, confirms they exist, says so again → still `none` > → `MAX_VERIFICATION_REPAIR_ROUNDS` (2) is spent, and her answer is replaced with: > *"Professor Mari could not verify the requested workspace change, so I stopped before showing an unsupported completion claim."* 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 `none` message 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 list ``` created|updated|changed|deleted|removed|renamed|wrote|written|fixed|implemented|built|installed|imported|exported|saved|enabled|disabled|assigned|linked|unlinked|generated|moved|copied|replaced|verified ``` So "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. Removing `verified` (and reviewing `changed`/`fixed`, which are similarly loose) costs nothing in detection value. ## 3. The detector is English-only `workspaceTextClaimsMutationCompletion` is 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.
bsakaguchi 2026-10-21 06:00:39 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3215
No description provided.