mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5893] [MERGED] fix(mari): watermark-scoped completion-claim auditing #6983
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#6983
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/5893
Author: @kolacheee
Created: 9/6/2026
Status: ✅ Merged
Merged: 9/6/2026
Merged by: @kolacheee
Base:
staging← Head:fix/5819-5830-claim-watermark📝 Commits (1)
6192051fix(mari): watermark-scoped completion-claim auditing (#5819, #5830)📊 Changes
4 files changed (+386 additions, -33 deletions)
View changed files
📝
CHANGELOG.md(+3 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+180 -23)📝
scripts/regressions/mari-write-readback.regression.ts(+4 -2)📝
scripts/regressions/prompt.regression.ts(+199 -8)📄 Description
Linked issues
Closes #5819. Closes #5830 (parts 1–2; the English-only detector question stays open there as a design discussion, per maintainer scoping).
Why this change
Two halves of the same complaint from opposite directions. #5819: Mari's self-check only audited the run's final frame, so in a batch — "I created the first character, now doing the second" — a claim about a skipped step was never checked; users watched her move on from characters she never created. #5830: the check that did exist could not be satisfied by a truthful recap — a run that only reported on earlier work resolved "none" forever (reads couldn't clear it), so "did you finish?" → "Yes, I created all five" was challenged twice and then replaced with an error.
This is the second attempt at #5819. The first died in adversarial review for three reasons, and the design is built around them: run-aggregate verification let one early success vouch for every later claim; the coaching ordered mutations without read-first wording (duplicate-create risk); and continuation runs recapping real prior work were told to redo it.
The design
lscould otherwise launder a failed create."verified"removed from the claim-verb list (it describes a read — the coaching's own word), plural copulas added (were/have been) so "the changes were saved" stays caught after the removal.Honest residuals (documented at the audit itself)
This is a tripwire, not proof: a state read cannot be semantically matched to the claim it backs, so a read of one thing can pass an unrelated recap-shaped claim; and the claim detector only sees subject-ful English (a bare participle "Created X." was never detected, before or after this change) — both feed #5830's open detector-design question.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
promptlane's guard block now covers: the batch-skip at claim granularity, evidence consumption, read-backed recaps (and their consumption), both terminal-summary polarities, global-mismatch-across-watermark with same-key clearing, tolerated-unverified never advancing, failed/preview attempts denying both escapes, docs-reads never qualifying, the verified-scope downgrade with read-clearing, and the plural-copula detector cases. Loop wiring is pinned — reverting the loop toauditFrom: 0fails the lane, which the review demonstrated would otherwise reintroduce #5819 silently.prompt5/5,mari-write-readback,mari-guard-sibling-paths,mari-ask-latch,mari-understood-request,mari-polish); server lint clean; zero-error build.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Not applicable — server-side guard behavior; the user-visible change is Mari answering "did you finish?" truthfully and being challenged mid-batch when she skips a step.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.