[GH-ISSUE #3919] [Issue]: Prompt regression falsely reports missing agents on CRLF checkouts #2119

Closed
opened 2026-10-21 05:45:32 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The prompt regression suite falsely reports that the public agent reference is missing Prose Guardian on a Windows checkout whose Markdown files use CRLF line endings. The heading exists; the assertion is line-ending-sensitive.

Expected behavior

pnpm regression:prompt should accept the documented agent headings on both LF and CRLF worktrees and continue past the public-agent-reference check.

Actual behavior

The suite fails with:

Public agent reference is missing Prose Guardian

docs/agents/built-in-agents.md contains the exact ### Prose Guardian heading, but it is followed by CRLF (13, 10). The assertion in scripts/regressions/prompt.regression.ts searches for a literal LF-only string:

publicReference.includes(`### ${entry.name}\n`)

Steps to reproduce

  1. Use a Windows source checkout where docs/agents/built-in-agents.md has CRLF working-tree line endings (git ls-files --eol docs/agents/built-in-agents.md reports i/lf w/crlf).
  2. Run pnpm regression:prompt.
  3. Observe the failure Public agent reference is missing Prose Guardian.
  4. Split the document with /\r?\n/u and compare exact heading lines; all 29 official agent headings are present.

Environment

  • Marinara Engine version: 2.3.3, source commit bb19b393e6795c3c25139936906665f32b485963
  • Install type: source
  • OS + version: Windows 11 Pro 10.0.26200 (build 26200)
  • Browser or app shell: Not applicable; regression script failure

Logs, screenshots, or video

Observed assertion:

Public agent reference is missing Prose Guardian

Byte-level check after the heading:

[13, 10, 13, 10]

The first pair is CRLF after ### Prose Guardian.

Additional context

  • The documentation, regression file, and official-agent catalog are unmodified on the reproducing branch.
  • .gitattributes uses * text=auto and does not force an EOL for Markdown files, so the test must tolerate a valid CRLF worktree.
  • The assertion was introduced in commit b03318e2c1eb8bd13a0874de7cf5427522c15b82.
  • A line-ending-independent exact check can build a set from publicReference.split(/\r?\n/u) and assert that it contains ### ${entry.name}.
  • #3243 fixed an analogous CRLF-sensitive Markdown-heading parser, but not this regression assertion.

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 @Xelvanis on GitHub (Jul 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3919 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The prompt regression suite falsely reports that the public agent reference is missing `Prose Guardian` on a Windows checkout whose Markdown files use CRLF line endings. The heading exists; the assertion is line-ending-sensitive. ## Expected behavior `pnpm regression:prompt` should accept the documented agent headings on both LF and CRLF worktrees and continue past the public-agent-reference check. ## Actual behavior The suite fails with: ```text Public agent reference is missing Prose Guardian ``` `docs/agents/built-in-agents.md` contains the exact `### Prose Guardian` heading, but it is followed by CRLF (`13, 10`). The assertion in `scripts/regressions/prompt.regression.ts` searches for a literal LF-only string: ```ts publicReference.includes(`### ${entry.name}\n`) ``` ## Steps to reproduce 1. Use a Windows source checkout where `docs/agents/built-in-agents.md` has CRLF working-tree line endings (`git ls-files --eol docs/agents/built-in-agents.md` reports `i/lf w/crlf`). 2. Run `pnpm regression:prompt`. 3. Observe the failure `Public agent reference is missing Prose Guardian`. 4. Split the document with `/\r?\n/u` and compare exact heading lines; all 29 official agent headings are present. ## Environment - Marinara Engine version: 2.3.3, source commit `bb19b393e6795c3c25139936906665f32b485963` - Install type: source - OS + version: Windows 11 Pro 10.0.26200 (build 26200) - Browser or app shell: Not applicable; regression script failure ## Logs, screenshots, or video Observed assertion: ```text Public agent reference is missing Prose Guardian ``` Byte-level check after the heading: ```text [13, 10, 13, 10] ``` The first pair is CRLF after `### Prose Guardian`. ## Additional context - The documentation, regression file, and official-agent catalog are unmodified on the reproducing branch. - `.gitattributes` uses `* text=auto` and does not force an EOL for Markdown files, so the test must tolerate a valid CRLF worktree. - The assertion was introduced in commit `b03318e2c1eb8bd13a0874de7cf5427522c15b82`. - A line-ending-independent exact check can build a set from `publicReference.split(/\r?\n/u)` and assert that it contains `### ${entry.name}`. - #3243 fixed an analogous CRLF-sensitive Markdown-heading parser, but not this regression assertion. ## 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-21 05:45:32 +07:00
  • closed this issue
  • added the
    in-pr
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 21, 2026):

Claimed by @SpicyMarinara for the current all-open-issues sweep in draft PR #3927.

<!-- gh-comment-id:5038719700 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): Claimed by @SpicyMarinara for the current all-open-issues sweep in draft PR #3927.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 21, 2026):

Addressed in draft PR #3927. The public-agent heading check now accepts both LF and CRLF worktrees, and the prompt regression passes.

<!-- gh-comment-id:5038825639 --> @SpicyMarinara commented on GitHub (Jul 21, 2026): Addressed in draft PR #3927. The public-agent heading check now accepts both LF and CRLF worktrees, and the prompt regression passes.
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#2119
No description provided.