gitattributes: pin *.md to eol=lf so skill byte-cap is consistent on Windows #101

Closed
opened 2026-05-29 04:35:12 +00:00 by coilysiren · 1 comment
Owner

.gitattributes pins *.sh, *.bash, *.nu, *.py, and Makefile to eol=lf but leaves *.md on the default text=auto. On Windows checkouts that turns markdown CRLF in the working tree while the index stays LF.

This breaks the validate-skills byte-cap check for skills near their cap. The hook measures the CRLF working copy, so a skill that is exactly at the cap on Linux (LF) reads one byte per line over on Windows. A thin-role skill at 1000 bytes LF measures 1020 bytes CRLF and fails the local pre-commit hook, even though CI would pass.

Fix - add *.md text eol=lf to .gitattributes, matching how the repo already pins its other text types. Markdown stays LF on every platform, so the byte cap measures consistently and Windows agents stop hitting a phantom over-cap failure.

`.gitattributes` pins `*.sh`, `*.bash`, `*.nu`, `*.py`, and `Makefile` to `eol=lf` but leaves `*.md` on the default `text=auto`. On Windows checkouts that turns markdown CRLF in the working tree while the index stays LF. This breaks the `validate-skills` byte-cap check for skills near their cap. The hook measures the CRLF working copy, so a skill that is exactly at the cap on Linux (LF) reads one byte per line over on Windows. A thin-role skill at 1000 bytes LF measures 1020 bytes CRLF and fails the local pre-commit hook, even though CI would pass. Fix - add `*.md text eol=lf` to `.gitattributes`, matching how the repo already pins its other text types. Markdown stays LF on every platform, so the byte cap measures consistently and Windows agents stop hitting a phantom over-cap failure.
Author
Owner

Resolved in 7a3c715 (pushed to main). Auto-close did not fire because this repo's git remote is GitHub-only, so the Closes #101 ref never reached Forgejo. Closing manually.

Resolved in 7a3c715 (pushed to main). Auto-close did not fire because this repo's git remote is GitHub-only, so the `Closes #101` ref never reached Forgejo. Closing manually.
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
coilyco-flight-deck/agentic-os#101
No description provided.