Skip to content

Operational-repo line-ending rule doesn't cover a single-consumer per-extension CRLF pin #1993

Closed

Description

@ptr727

.agents/skills/comment-and-doc-style/references/line-endings.md "Operational (config) repos"
states that a Windows-native app operational repo "requires [*] end_of_line = crlf and
* text=auto eol=crlf" as its whole-repo default, and allows a narrower path-level CRLF pin
only as a mixed-consumer fallback, "if a subtree genuinely cannot be split out" of a repo
serving two different platform consumers. Its own worked example for the whole-repo-CRLF case is
"a controller config edited by a Windows-native editor lives in its own CRLF repo" -- which is
exactly what Vantage-Config used to be.

#1948's fix (in progress) records Vantage-Config with lineEndings: lf and only its Design
Center .dc exports pinned CRLF, following the already-merged ptr727/Vantage-Config#28. That
change is real regardless of the outcome here: Vantage-Config has one consumer (Design Center),
not two, so it is not the "mixed-consumer" case the fallback describes, yet it now uses a narrow
per-extension pin rather than the whole-repo CRLF default the rule's own text says a
Windows-native app "requires."

This is a decision on rule text, not something a #1948 fix-lane should decide: a local-strict-
review pass on #1948 flagged that a later audit or resync applying the rule as literally written
could push Vantage-Config back to a whole-repo CRLF default and undo ptr727/Vantage-Config#28.

Options:

  1. Widen the rule. Reword "Operational (config) repos" to allow a per-extension CRLF pin
    under an lf default whenever only some file types in a single-consumer operational repo are
    themselves Windows-tool-owned (the "Scripts and extensionless executables" section already
    describes this shape generically as "a Windows-native tool-owned format outside .bat/.cmd"
    -- this option would make "Operational (config) repos" point to that instead of stating its
    own stricter whole-repo-only rule).
  2. Leave the rule as written and treat Vantage-Config's registry entry as the exception, its
    driftNotes entry being the record of the deviation, with no rule change.
  3. Revert Vantage-Config to a whole-repo CRLF default, undoing ptr727/Vantage-Config#28.

Recorded because a lesson that changes rule text is the maintainer's call, per
AGENTS.md/GOVERNANCE.md "Durable Knowledge and Self-Improvement". No pull request is
currently blocked on this; #1948's own fix does not depend on the outcome, since it already
states the deviation in its own driftNotes entry.

🤖 Generated with Claude Code

Activity

  1. added
    decision
    on Sep 28, 2026
  2. ptr727 commented on Sep 28, 2026

    @ptr727
    OwnerAuthor

    Answered by the maintainer in an attended session, with a direction wider than any of the three options:

    Remove the rule that associates Windows with CRLF. Simplify the rules to LF by default unless specific files require different EOL handling, and then add the CRLF mappings to .editorconfig and .gitattributes as needed, for CRLF, binary, or special handling of files such as PDFs.

    So the fix is a rewrite of the line-ending rules rather than an exception. Every repository, operational ones included, defaults to LF. The "Windows-native app requires whole-repo CRLF" rule and its mixed-consumer fallback go away, and per-path or per-extension entries in .editorconfig and .gitattributes carry each file type that genuinely needs CRLF, binary, or other special handling. This issue stays open to track that rule change. It should sweep every surface that states the current rule (the line-endings reference, GOVERNANCE.md, the spec and registry lineEndings model, and the LF rollout doc), so that Vantage-Config's .dc pin becomes the ordinary shape rather than a deviation.

  3. removed
    decision
    on Sep 28, 2026
  4. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions