[GH-ISSUE #8318] [Issue]: Macros can execute twice and trigger multiple one-time memories #8246

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

Originally created by @SpicyMarinara on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8318

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Macros may run twice during a single turn, causing multiple memory-flash outcomes to fire even when each memory has a tracker intended to allow it only once.

Expected behavior

Only one memory flash should trigger after a single turn, and each memory tracker should prevent that memory from triggering again.

Actual behavior

After the first turn, two memories were shown as triggered. Debugging with Prof Mari indicated that some macros can be executed twice.

Steps to reproduce

  1. Create a card with a memory-flash mechanic that rolls for several possible memories and tracks each memory so it can trigger only once.
  2. Advance the card by one turn.
  3. Observe that multiple memories may be marked as triggered after only one turn.

Environment

  • Marinara Engine version: 2.5.0
  • Install type: Not provided
  • OS + version: Server: Windows 10.0.26200 (x64); client: Linux x86_64
  • Browser or app shell: Chrome 145.0.0.0 / Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Logs, screenshots, or video

Screenshots: https://cdn.discordapp.com/attachments/1563908422062317598/1563908422351589457/image.png?ex=6adf56b7&is=6ade0537&hm=8ba8e1fff24500a12a89a55b3af6d268a98c335aa52a5db35d55d80085d0a3f0 and https://cdn.discordapp.com/attachments/1563908422062317598/1563908422938923170/image.png?ex=6adf56b8&is=6ade0538&hm=79f0aed7b9ab930ef4925363a27ed22c2aaad9dbf327087d0ad6c3bd389c4e74. Support Diagnostics: build 2.5.0+c56501495a8b, commit c56501495a; no application logs provided.

Additional context

The card is inspired by The Hangover and uses a die roll to select possible memories. Each memory has a tracker so it should occur only once. The issue was observed after the first turn while debugging with Prof Mari.

Discord thread: Post History Instructions is run multiple times
Discord thread link: https://discord.com/channels/1417099416812392641/1563908422062317598
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-10-25T13:33:43.833Z] ValiantNightshade: Issue: I'm working on a card inspired by the movie The Hangover where you wake up with limited memories of last night.  There's a mechanic for memory flashes: there's a die roll for several possible memories.  Each memory has a tracker so each memory only comes up once.  However, I found multiple memories were shown as fired.  For example, the image (after the first turn) shows two memories as having triggered, but only a single turn passed.  I spent a while debugging with Prof Mari, and it looks like some macros can be run twice, which is a problem for the exact kind of situation where they are useful.

[attached image 1: https://cdn.discordapp.com/attachments/1563908422062317598/1563908422351589457/image.png?ex=6adf56b7&is=6ade0537&hm=8ba8e1fff24500a12a89a55b3af6d268a98c335aa52a5db35d55d80085d0a3f0&]
[attached image 2: https://cdn.discordapp.com/attachments/1563908422062317598/1563908422938923170/image.png?ex=6adf56b8&is=6ade0538&hm=79f0aed7b9ab930ef4925363a27ed22c2aaad9dbf327087d0ad6c3bd389c4e74&]
[Discord message: https://discord.com/channels/1417099416812392641/1563908422062317598/1563908422062317598]

[2026-10-25T13:33:44.991Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1563908422062317598/1563908426919190541]

[2026-10-25T13:34:15.223Z] ValiantNightshade: Support Diagnostics as requested:
` ` `
Marinara Engine diagnostics
Version: 2.5.0
Build: 2.5.0+c56501495a8b
Commit: c56501495a8b
Server OS: Windows 10.0.26200 (x64)
Server memory: heap 621.1 / 4288 MiB; RSS 676.6 MiB
Background wake lock: not reported
Last detected freeze: none detected
Previous session: ended without shutting down - last alive 2026-10-14T05:43:50.721Z (up 9h 45m, RSS 1121.7 MiB); device rebooted before next launch: unknown
Sessions ended without shutdown: 2 recorded
Client OS: Linux x86_64
Browser / app shell: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
Client runtime: {"build":"2.5.0+c56501495a8b","page":"mvnv6285-jxvo3hd1","persistence":"local","navigation":"navigate","standalone":false,"view":[818,0,0,0],"events":[{"at":1792934935493,"page":"mvnv6285-jxvo3hd1","build":"2.5.0+c56501495a8b","kind":"page-start","view":[783,0,0,0]}]}
GPU: ANGLE (Intel, Vulkan 1.3.289 (Intel(R) Graphics (ADL GT2) (0x000046A8)), Intel open-source Mesa driver)
Server GPU: no NVIDIA GPU detected
Main sidecar: not configured
Utility sidecar: not configured
Decision sidecar: not configured
Sidecar load: not measured
Active connection: NanoGPT (Gemma 4 31B)
Connection provider: nanogpt
LLM model: google/gemma-4-31b-it:thinking
Mari last acted on: none recorded this session
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1563908422062317598/1563908553721389067]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8318 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Macros may run twice during a single turn, causing multiple memory-flash outcomes to fire even when each memory has a tracker intended to allow it only once. ## Expected behavior Only one memory flash should trigger after a single turn, and each memory tracker should prevent that memory from triggering again. ## Actual behavior After the first turn, two memories were shown as triggered. Debugging with Prof Mari indicated that some macros can be executed twice. ## Steps to reproduce 1. Create a card with a memory-flash mechanic that rolls for several possible memories and tracks each memory so it can trigger only once. 2. Advance the card by one turn. 3. Observe that multiple memories may be marked as triggered after only one turn. ## Environment - Marinara Engine version: 2.5.0 - Install type: Not provided - OS + version: Server: Windows 10.0.26200 (x64); client: Linux x86_64 - Browser or app shell: Chrome 145.0.0.0 / Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 ## Logs, screenshots, or video Screenshots: https://cdn.discordapp.com/attachments/1563908422062317598/1563908422351589457/image.png?ex=6adf56b7&is=6ade0537&hm=8ba8e1fff24500a12a89a55b3af6d268a98c335aa52a5db35d55d80085d0a3f0 and https://cdn.discordapp.com/attachments/1563908422062317598/1563908422938923170/image.png?ex=6adf56b8&is=6ade0538&hm=79f0aed7b9ab930ef4925363a27ed22c2aaad9dbf327087d0ad6c3bd389c4e74. Support Diagnostics: build 2.5.0+c56501495a8b, commit c56501495a8b; no application logs provided. ## Additional context The card is inspired by The Hangover and uses a die roll to select possible memories. Each memory has a tracker so it should occur only once. The issue was observed after the first turn while debugging with Prof Mari. Discord thread: Post History Instructions is run multiple times Discord thread link: https://discord.com/channels/1417099416812392641/1563908422062317598 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-10-25T13:33:43.833Z] ValiantNightshade: Issue: I'm working on a card inspired by the movie The Hangover where you wake up with limited memories of last night. There's a mechanic for memory flashes: there's a die roll for several possible memories. Each memory has a tracker so each memory only comes up once. However, I found multiple memories were shown as fired. For example, the image (after the first turn) shows two memories as having triggered, but only a single turn passed. I spent a while debugging with Prof Mari, and it looks like some macros can be run twice, which is a problem for the exact kind of situation where they are useful. [attached image 1: https://cdn.discordapp.com/attachments/1563908422062317598/1563908422351589457/image.png?ex=6adf56b7&is=6ade0537&hm=8ba8e1fff24500a12a89a55b3af6d268a98c335aa52a5db35d55d80085d0a3f0&] [attached image 2: https://cdn.discordapp.com/attachments/1563908422062317598/1563908422938923170/image.png?ex=6adf56b8&is=6ade0538&hm=79f0aed7b9ab930ef4925363a27ed22c2aaad9dbf327087d0ad6c3bd389c4e74&] [Discord message: https://discord.com/channels/1417099416812392641/1563908422062317598/1563908422062317598] [2026-10-25T13:33:44.991Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1563908422062317598/1563908426919190541] [2026-10-25T13:34:15.223Z] ValiantNightshade: Support Diagnostics as requested: ` ` ` Marinara Engine diagnostics Version: 2.5.0 Build: 2.5.0+c56501495a8b Commit: c56501495a8b Server OS: Windows 10.0.26200 (x64) Server memory: heap 621.1 / 4288 MiB; RSS 676.6 MiB Background wake lock: not reported Last detected freeze: none detected Previous session: ended without shutting down - last alive 2026-10-14T05:43:50.721Z (up 9h 45m, RSS 1121.7 MiB); device rebooted before next launch: unknown Sessions ended without shutdown: 2 recorded Client OS: Linux x86_64 Browser / app shell: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 Client runtime: {"build":"2.5.0+c56501495a8b","page":"mvnv6285-jxvo3hd1","persistence":"local","navigation":"navigate","standalone":false,"view":[818,0,0,0],"events":[{"at":1792934935493,"page":"mvnv6285-jxvo3hd1","build":"2.5.0+c56501495a8b","kind":"page-start","view":[783,0,0,0]}]} GPU: ANGLE (Intel, Vulkan 1.3.289 (Intel(R) Graphics (ADL GT2) (0x000046A8)), Intel open-source Mesa driver) Server GPU: no NVIDIA GPU detected Main sidecar: not configured Utility sidecar: not configured Decision sidecar: not configured Sidecar load: not measured Active connection: NanoGPT (Gemma 4 31B) Connection provider: nanogpt LLM model: google/gemma-4-31b-it:thinking Mari last acted on: none recorded this session ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1563908422062317598/1563908553721389067] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-26 04:03:42 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 25, 2026):

Implementation owner: @SpicyMarinara (Codex). I am tracing the live prompt path and preserving a deterministic failing regression before changing production code. The current reproduced defect is that resolving an unrelated deferred character name also evaluates unused character fields, including Post History Instructions, against the live chat-variable map. I will link the early draft PR here and keep the reported card/device reproduction separate from the controlled regression.

<!-- gh-comment-id:6399434204 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): Implementation owner: @SpicyMarinara (Codex). I am tracing the live prompt path and preserving a deterministic failing regression before changing production code. The current reproduced defect is that resolving an unrelated deferred character name also evaluates unused character fields, including Post History Instructions, against the live chat-variable map. I will link the early draft PR here and keep the reported card/device reproduction separate from the controlled regression.
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#8246
No description provided.