[GH-ISSUE #8035] feat(mari): optional checker that asks whether a write fulfilled the request #7532

Closed
opened 2026-10-24 04:03:56 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ylli-selmani on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8035

Originally assigned to: @ylli-selmani on GitHub.

Problem

Professor Mari's completion guards check that a write was saved, not whether it was the write the user asked for. Two live gemma-4-12b runs (#7949, PR #7908 tool-call testing) saved valid data that did not match the request, and no deterministic rule can tell:

  • Lorebook, "only when both 'guild' and 'forms' come up": she saved both words as primary keys with a normal trigger. It is a valid entry, so no notice fires, but it triggers on either word.
  • Character, "change the death year in the description only, don't touch anything else": she also rewrote backstory and aboutMe.

Idea

After a run that applied at least one write, ask a checker model one question: given the user's request and the compact diff of what was saved, was the request fulfilled completely and only that? If not, feed its answer back as one repair round, the same way the claim audit does today.

  • Input: the user's last message plus the applied writes. changedFieldsOnly (#7908) already reduces a card edit to the changed fields, so the diff stays small.
  • Output: a small JSON verdict, for example { "fulfilled": false, "missing": "...", "extra": "..." }.
  • Budget: one check per run that wrote something, plus at most one repair round.

Open questions

  • Which model checks? If the same weak model grades its own work, the check is weak. Options: a configurable checker connection, or the same model with a narrow prompt.
  • Cost: one extra call per run that writes something.
  • Setting: opt-in, beside "Read the handbook before the first write"?
  • Manual mode: check before the Accept card, or only after the user applies the change?

Not in scope

PR #7908. This is a follow-up design issue.

Originally created by @ylli-selmani on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8035 Originally assigned to: @ylli-selmani on GitHub. ## Problem Professor Mari's completion guards check *that* a write was saved, not *whether it was the write the user asked for*. Two live gemma-4-12b runs (#7949, PR #7908 tool-call testing) saved valid data that did not match the request, and no deterministic rule can tell: - **Lorebook, "only when both 'guild' and 'forms' come up":** she saved both words as primary keys with a normal trigger. It is a valid entry, so no notice fires, but it triggers on either word. - **Character, "change the death year in the description only, don't touch anything else":** she also rewrote `backstory` and `aboutMe`. ## Idea After a run that applied at least one write, ask a checker model one question: given the user's request and the compact diff of what was saved, was the request fulfilled completely and only that? If not, feed its answer back as one repair round, the same way the claim audit does today. - **Input:** the user's last message plus the applied writes. `changedFieldsOnly` (#7908) already reduces a card edit to the changed fields, so the diff stays small. - **Output:** a small JSON verdict, for example `{ "fulfilled": false, "missing": "...", "extra": "..." }`. - **Budget:** one check per run that wrote something, plus at most one repair round. ## Open questions - **Which model checks?** If the same weak model grades its own work, the check is weak. Options: a configurable checker connection, or the same model with a narrow prompt. - **Cost:** one extra call per run that writes something. - **Setting:** opt-in, beside "Read the handbook before the first write"? - **Manual mode:** check before the Accept card, or only after the user applies the change? ## Not in scope PR #7908. This is a follow-up design issue.
Author
Owner

@ylli-selmani commented on GitHub (Oct 29, 2026):

i'll close this for now - will pick it back up later

<!-- gh-comment-id:6491811863 --> @ylli-selmani commented on GitHub (Oct 29, 2026): i'll close this for now - will pick it back up later
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#7532
No description provided.