Skip to content

chore: enforce LF line endings for agent files in .gitattributes #896

@rjmurillo-bot

Description

@rjmurillo-bot

Summary

Investigate and implement .gitattributes rules to enforce LF line endings for agent files (.agent.md, .prompt.md) to prevent cross-platform YAML parsing issues.

Background

During the ADR-040 amendment review (PR #895), the independent-thinker agent identified that CRLF line endings may be a contributing factor to Windows YAML parsing errors, not just inline array syntax.

Evidence

Related

Proposed Changes

Add to .gitattributes:

# Agent files: enforce LF for cross-platform YAML compatibility
*.agent.md text eol=lf
*.prompt.md text eol=lf
*.shared.md text eol=lf

Acceptance Criteria

  • Research best practices for cross-platform line ending management
  • Add .gitattributes rules for agent-related markdown files
  • Verify existing files have correct line endings (run git ls-files --eol)
  • Document rationale in .gitattributes comments
  • Test on Windows to confirm YAML parsing works with LF-normalized files

Priority

P2 - Preventive maintenance. The immediate issue (inline arrays) is fixed in PR #895, but this addresses a potential secondary cause.


Source: ADR-040 multi-agent debate review (independent-thinker dissent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-qaTesting and verification agentarea-infrastructureBuild, CI/CD, configurationarea-installationInstallation scriptsarea-promptsAgent prompts and templatesbugSomething isn't workingenhancementNew feature or requestpriority:P2Normal: Standard enhancement or bug fix, moderate impact

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions