diff --git a/conductor/directives/pathlib_read_write_no_newline_kwarg/meta.md b/conductor/directives/pathlib_read_write_no_newline_kwarg/meta.md new file mode 100644 index 00000000..19d16f27 --- /dev/null +++ b/conductor/directives/pathlib_read_write_no_newline_kwarg/meta.md @@ -0,0 +1,9 @@ +# pathlib_read_write_no_newline_kwarg + +## v1 + +**Why this iteration:** Lifted from `docs/reports/2026-03-02/MCP_BUGFIX_20260306.md` (the "Prevention" section). The pathlib `newline=""` keyword on `read_text` / `write_text` is unsupported before Python 3.10 and the project's minimum interpreter is Python 3.11+ but the call signature is identical to the older unsupported form; passing `newline=""` corrupts the round-trip on Windows (CRLF / LF translation gets disabled silently and downstream tools see mixed line endings). +**Source:** `docs/reports/2026-03-02/MCP_BUGFIX_20260306.md:8-12` + +--- +**Lifted:** 2026-07-03 (scavenge sweep batch 1/5: docs/reports/2026-03-02 through 2026-06-08) \ No newline at end of file diff --git a/conductor/directives/pathlib_read_write_no_newline_kwarg/v1.md b/conductor/directives/pathlib_read_write_no_newline_kwarg/v1.md new file mode 100644 index 00000000..abe91bd8 --- /dev/null +++ b/conductor/directives/pathlib_read_write_no_newline_kwarg/v1.md @@ -0,0 +1 @@ +# Pathlib read_text and write_text must omit the newline keyword argument in this codebase \ No newline at end of file