From f130cc68136fb7ef786fec4f39b984ee704449ef Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 4 Jul 2026 01:04:44 -0400 Subject: [PATCH] feat(directives): scavenge sweep 1/5 (docs/reports/2026-03-02 through 2026-06-08): 1 directive Lifted from docs/reports/2026-03-02/MCP_BUGFIX_20260306.md: - pathlib_read_write_no_newline_kwarg: pathlib read_text/write_text must omit the newline kwarg (unsupported pre-3.10; corrupts line endings on Windows) --- .../pathlib_read_write_no_newline_kwarg/meta.md | 9 +++++++++ .../directives/pathlib_read_write_no_newline_kwarg/v1.md | 1 + 2 files changed, 10 insertions(+) create mode 100644 conductor/directives/pathlib_read_write_no_newline_kwarg/meta.md create mode 100644 conductor/directives/pathlib_read_write_no_newline_kwarg/v1.md 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