[GH-ISSUE #5961] Narration can contradict the check the engine rolled, because the rewrite is span-scoped #3304

Closed
opened 2026-10-21 06:01:50 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Sep 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5961

Originally assigned to: @SpicyMarinara on GitHub.

The server's skill-check rewrite is span-scoped: it replaces the check tag in place and leaves the prose around it untouched. That's the right call for a rewriter — but it means a GM that narrates past the attempt can end up contradicting the roll it just asked for.

What the player reads:

He does not see you.

[ Stealth check — FAILURE ]

The narration was written before the number existed, so the model wrote through the outcome it assumed; the engine then filled in a result that disagrees. This is currently prompt-mitigated only (the GM is told to stop at the attempt), and the regression pins the span-scoped behavior as intended, so any fix has to move that pin deliberately rather than by accident.

Worth deciding which of these we want:

  • Leave it and lean harder on the prompt — cheapest, and the failure is visible rather than silent, but the prompt already asks for this and models still narrate through.
  • Detect and flag — when a resolved verdict contradicts sentiment in the same paragraph, mark it rather than silently letting the two stand (hard to do well; risks false positives).
  • Cut the turn at the tag — treat the check as an end-of-turn boundary: content after an unresolved check is dropped and re-generated next turn with the result known. Cleanest reading, most invasive, and it makes the two-beat rhythm explicit rather than accidental.

This is the sharpest edge of the text-tag dice channel, so it's worth a decision before #5959 widens that channel to every dice system — the same disagreement would then appear on damage rolls and pool checks too, not just d20 checks.

Originally created by @kolacheee on GitHub (Sep 8, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5961 Originally assigned to: @SpicyMarinara on GitHub. The server's skill-check rewrite is **span-scoped**: it replaces the check tag in place and leaves the prose around it untouched. That's the right call for a rewriter — but it means a GM that narrates *past* the attempt can end up contradicting the roll it just asked for. What the player reads: > He does not see you. > > **[ Stealth check — FAILURE ]** The narration was written before the number existed, so the model wrote through the outcome it assumed; the engine then filled in a result that disagrees. This is currently prompt-mitigated only (the GM is told to stop at the attempt), and the regression pins the span-scoped behavior as intended, so any fix has to move that pin deliberately rather than by accident. Worth deciding which of these we want: - **Leave it and lean harder on the prompt** — cheapest, and the failure is visible rather than silent, but the prompt already asks for this and models still narrate through. - **Detect and flag** — when a resolved verdict contradicts sentiment in the same paragraph, mark it rather than silently letting the two stand (hard to do well; risks false positives). - **Cut the turn at the tag** — treat the check as an end-of-turn boundary: content after an unresolved check is dropped and re-generated next turn with the result known. Cleanest reading, most invasive, and it makes the two-beat rhythm explicit rather than accidental. This is the sharpest edge of the text-tag dice channel, so it's worth a decision before #5959 widens that channel to every dice system — the same disagreement would then appear on damage rolls and pool checks too, not just d20 checks.
bsakaguchi 2026-10-21 06:01:50 +07:00
  • closed this issue
  • added the
    in-pr
    label
Author
Owner

@SpicyMarinara commented on GitHub (Sep 8, 2026):

Implementation is owned by @SpicyMarinara with Codex in draft #5979, as part of the authorized issue sweep. The work reuses the shared dice parser, existing cards, and per-swipe metadata.

<!-- gh-comment-id:5592958951 --> @SpicyMarinara commented on GitHub (Sep 8, 2026): Implementation is owned by @SpicyMarinara with Codex in draft #5979, as part of the authorized issue sweep. The work reuses the shared dice parser, existing cards, and per-swipe metadata.
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#3304
No description provided.