mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5754] Professor Mari verifies her own edit a round late and apologizes for it - the verification read should ride the same frame as the write #3180
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#3180
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/5754
Originally assigned to: @kolacheee on GitHub.
In one sentence: after applying an edit, Professor Mari announces "Oops, my bad! Let me just double-check that the changes actually stuck" and burns an extra round on a verification read — the check itself is a deliberate engine guard, but she runs it a round too late and narrates it as if she made a mistake.
What happened (maintainer playtest, fresh Auto chat, no skills/memories)
From the user's seat this reads as her losing confidence in her own write — "if my boss tells me to change something and I do, I don't roll into his office and go 'wait, oops, lemme check'."
Why it happens — this is the verification guard, working as designed but surfaced badly
There is no read-write gap and nothing went wrong. Two long-standing mechanisms force that read:
apply:trueresult ends with "Verify the resulting state with a read command before claiming user-visible success." (compactMutationResult, workspace-agent.service.ts ~:907). Mari reads that after the write lands and complies — in a separate round, narrated apologetically because from her perspective she was just corrected.workspaceActionNeedsVerification(~:1797) intercepts the frame and pushes "A mutating workspace command succeeded, but no successful read verified the resulting state. Run a confirmatory read now." — same visible result: an "oops"-flavored extra round.The guard exists for good reason (writes can silently fail; unverified "done!" claims were a real bug class) and should stay. The problem is when the read happens and how she frames it.
The structural fix is already supported by the engine
resolveWorkspaceMutationVerification(:1765) walks command results in order, and a successful read-only result after the mutation in the same batch counts as verified. So a frame staging:730-746) models write-then-read across separate turns, and the :907 coaching arrives after the batch, when a separate round is the only option left.[character.update(apply:true), character.get]verifies invisibly — no extra round, no "one sec", no oops. Nothing in the prompt teaches this: every mutating few-shot (Possible directions (maintainer's call)
Pre-existing behavior — reproduces on staging; unrelated to #5748's ask latch (verified during that investigation: the verification machinery and the :907 text are untouched there).
@kolacheee commented on GitHub (Sep 2, 2026):
Implementation starting (kolacheee, via Claude session) - combined PR with #5752 and #5753 on branch fix/5752-5754-mari-polish.
@atlasveldine commented on GitHub (Sep 2, 2026):
Perhaps I’m misunderstanding something about Mari’s tool design, but if Mari’s
write-enabled tools strictly require a subsequentreadafter every mutation, is there any actual reason to offload that orchestration step to the LLM…?The way I see it, it seems as if there’s two reasons for verification:
write-enabled tools return the updated state directly in its tool result?Correct me if I’m wrong, but it sounds to me like right now,
write-type tools returnsuccess: true(or something like it), with a note appended that prompts the model to manually call aread-type tool to “verify,” then an intercept that forces the model to continue if it fails to do so. This introduces potentially multiple unnecessary round-trips, increasing API costs for something which we already know Mari needed to have access to back when she originally ran thewrite-type tool call in the first place.If
writetools were to instead simply return the new state directly, along with a note telling the LLM to verify against what it intended the output to be, Mari would get immediate visibility to verify her work and the engine guard would be instantly satisfied, without any need for back-to-back tool calls in the first place. This’d eliminate the unnecessary latency and API costs, as well as the “oops”/“one sec” apology this issue’s discussing.Just my two cents. Apologies if I’m missing some broader architectural constraint here, as I’m not terribly familiar with how Mari is designed.