[GH-ISSUE #7995] [Issue]: Add a macro linter for Prof Mari outputs #7510

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

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

Originally assigned to: @ylli-selmani on GitHub.

Summary

Add an automatic linting step when Prof Mari generates macros, including nested macros in lorebook entries. The linter should validate macro syntax and whether the target field supports macros, then report parsing errors back to the model.

Expected behavior

Prof Mari should generate well-formed macros in fields that support them. Detected syntax or parsing errors should be reported to the model or user before or during preview.

Actual behavior

While generating lorebook entries with nested macros using Mistral Large 4, Prof Mari mishandled double curly braces, failed to close macros properly, and did not fully resolve the {{prompt}} preview. No macro linting or actionable parsing feedback was reported.

Steps to reproduce

  1. Ask Prof Mari to write lorebook entries containing nested macros using Mistral Large 4.
  2. Inspect the generated macro fields and the {{prompt}} preview.
  3. Observe malformed or unclosed double-curly-brace macros and incomplete preview resolution.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Not provided in the Discord context.

Additional context

The request includes validating both macro syntax and whether the destination field supports macros. The Agent version and Support Diagnostic were not provided. Mistral Large 4 was used as the token dealer.

Discord thread: add a linter to validate that macro parse properly in prof mari outputs
Discord thread link: https://discord.com/channels/1417099416812392641/1562504477549011005
Requested by: ylliselmanii (ylliselmanii, Discord ID 177503556272783360)

Discord thread transcript (5 messages)
[2026-10-21T16:34:57.377Z] Nyashes: I asked prof mari to write a few lorebook entry with some nested macro using Mistral Large 4 as the token dealer, it tripped on the double curly braces and failed to close everything properly, then went schizo for half an hour as to why {{prompt}} preview didn't fully resolve.
Skill issue on my part aside, having a linter step activate automatically when macros are detected and validate that prof Mari only ever write well formed macros inside fields that can contain macros would be great, or at least report parsing errors to the model that it can chose to ignore like with language linters in regular coding agents would be cool
[Discord message: https://discord.com/channels/1417099416812392641/1562504477549011005/1562504477549011005]

[2026-10-21T16:34:58.685Z] 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/1562504477549011005/1562504483035021353]

[2026-10-21T17:53:38.351Z] ylliselmanii: @Professor Mari
[Discord message: https://discord.com/channels/1417099416812392641/1562504477549011005/1562524278749003808]

[2026-10-21T17:53:42.348Z] ylliselmanii: Oops
[Discord message: https://discord.com/channels/1417099416812392641/1562504477549011005/1562524295513768026]

[2026-10-21T17:54:02.435Z] Professor Mari [bot]: That’s a useful feature request—especially validating both macro syntax and whether the target field supports macros before generating or saving it. The repo docs I can see confirm lorebook entries are added to prompts when triggered, but don’t establish whether there’s already a macro linter or how `{{prompt}}` should resolve in that preview, so I can’t confirm the current behavior.

Could you open a thread in #»🆘-questions-and-help with your Marinara version and a minimal example of the nested macro that failed? I can make mistakes—I’m still an LLM, so don’t trust my judgment too blindly.
[Discord message: https://discord.com/channels/1417099416812392641/1562504477549011005/1562524379764625422]

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 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7995 Originally assigned to: @ylli-selmani on GitHub. ## Summary Add an automatic linting step when Prof Mari generates macros, including nested macros in lorebook entries. The linter should validate macro syntax and whether the target field supports macros, then report parsing errors back to the model. ## Expected behavior Prof Mari should generate well-formed macros in fields that support them. Detected syntax or parsing errors should be reported to the model or user before or during preview. ## Actual behavior While generating lorebook entries with nested macros using Mistral Large 4, Prof Mari mishandled double curly braces, failed to close macros properly, and did not fully resolve the {{prompt}} preview. No macro linting or actionable parsing feedback was reported. ## Steps to reproduce 1. Ask Prof Mari to write lorebook entries containing nested macros using Mistral Large 4. 2. Inspect the generated macro fields and the {{prompt}} preview. 3. Observe malformed or unclosed double-curly-brace macros and incomplete preview resolution. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Not provided in the Discord context. ## Additional context The request includes validating both macro syntax and whether the destination field supports macros. The Agent version and Support Diagnostic were not provided. Mistral Large 4 was used as the token dealer. Discord thread: add a linter to validate that macro parse properly in prof mari outputs Discord thread link: https://discord.com/channels/1417099416812392641/1562504477549011005 Requested by: ylliselmanii (ylliselmanii, Discord ID 177503556272783360) <details> <summary>Discord thread transcript (5 messages)</summary> ```text [2026-10-21T16:34:57.377Z] Nyashes: I asked prof mari to write a few lorebook entry with some nested macro using Mistral Large 4 as the token dealer, it tripped on the double curly braces and failed to close everything properly, then went schizo for half an hour as to why {{prompt}} preview didn't fully resolve. Skill issue on my part aside, having a linter step activate automatically when macros are detected and validate that prof Mari only ever write well formed macros inside fields that can contain macros would be great, or at least report parsing errors to the model that it can chose to ignore like with language linters in regular coding agents would be cool [Discord message: https://discord.com/channels/1417099416812392641/1562504477549011005/1562504477549011005] [2026-10-21T16:34:58.685Z] 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/1562504477549011005/1562504483035021353] [2026-10-21T17:53:38.351Z] ylliselmanii: @Professor Mari [Discord message: https://discord.com/channels/1417099416812392641/1562504477549011005/1562524278749003808] [2026-10-21T17:53:42.348Z] ylliselmanii: Oops [Discord message: https://discord.com/channels/1417099416812392641/1562504477549011005/1562524295513768026] [2026-10-21T17:54:02.435Z] Professor Mari [bot]: That’s a useful feature request—especially validating both macro syntax and whether the target field supports macros before generating or saving it. The repo docs I can see confirm lorebook entries are added to prompts when triggered, but don’t establish whether there’s already a macro linter or how `{{prompt}}` should resolve in that preview, so I can’t confirm the current behavior. Could you open a thread in #»🆘-questions-and-help with your Marinara version and a minimal example of the nested macro that failed? I can make mistakes—I’m still an LLM, so don’t trust my judgment too blindly. [Discord message: https://discord.com/channels/1417099416812392641/1562504477549011005/1562524379764625422] ``` </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-24 04:03:43 +07:00
Author
Owner

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

Pulling this into #7908

<!-- gh-comment-id:6322839260 --> @ylli-selmani commented on GitHub (Oct 21, 2026): Pulling this into #7908
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#7510
No description provided.