Repository navigation
Description
Three surfaces outside GOVERNANCE.md restate two rules that #1149 corrected in GOVERNANCE.md "Verification Discipline". They still carry the wording the fix replaced, so the fleet now states the rule two ways.
The #1149 fix could not touch them: .agents/skills/ was held by another concurrent agent that round, because .claude-plugin/fleet-skills/.source-digest is one hash over every skill's bytes and two concurrent edits there are a guaranteed conflict.
1. The line-endings reference carries the superseded Python advice
.agents/skills/comment-and-doc-style/references/line-endings.md:115-117, and its two generated copies under .github/skills/ and .claude-plugin/:
Path.read_text()decodes through universal newlines andwrite_text()writes\nback, so a read-edit-write round trip flattens the whole file while the edit itself looks correct. Passnewline=''to both, or work in bytes.
Both halves were corrected in GOVERNANCE.md. Path.read_text() gained newline only in Python 3.13 and raises TypeError: Path.read_text() got an unexpected keyword argument 'newline' below it, measured on 3.11.2. And write_text() translates each \n to os.linesep rather than writing \n, so "flattens" names the outcome on one platform class rather than the mechanism.
The corrected GOVERNANCE.md wording is: work in bytes, or open the file explicitly with newline='' on both the read and the write.
2. The agent-conduct skill carries the superseded contents-API recipe
.agents/skills/agent-conduct/SKILL.md:24, and its two generated copies:
capturing the result before decoding it (
content=$(gh api ... --jq '.content') && printf '%s' "$content" | base64 -d)
Measured against a 1.44 MB blob: the contents API returns content empty with encoding: "none", the gh api call exits 0, the && guard passes, and base64 -d successfully decodes nothing. That is exactly the failed-fetch-read-as-an-empty-success the sentence exists to prevent.
GOVERNANCE.md now names the raw media type instead, which returns the bytes and leaves no decode step to fail quietly, and requires an .encoding read wherever the base64 field is taken.
3. A test docstring asserts the disproved heredoc mechanism
scripts/tests/test_repo_gate.py:63:
"""A shell heredoc turns a backslash escape into a control character no diff shows."""
Measured false with od -c: both cat > f <<EOF and cat > f <<"EOF" write \ and b literally. An unquoted heredoc consumes a backslash only before $, a backtick, another backslash, or a newline. The constructs that do consume the escape are printf, echo -e, POSIX sh's builtin echo, and $'...', and GOVERNANCE.md now names those instead.
The assertion the docstring sits above is still worth keeping. Only the stated reason for it is wrong.
Also worth a look while sweeping
AUDIT.md:110 uses dependabot_yaml=$(base64 -d <<<"$dependabot_content") || exit 1. The file it reads is small enough that the 1 MB behavior above cannot reach it today, so this is a consistency question rather than a live defect.
Expected
One change sweeping all three to the corrected wording, scripts/build_dist.py re-run so the two generated skill trees match their source.
Activity
Settle Seven Verification Discipline Defects and the Copilot Mechanic…
Promote Develop to Main: Settle Section 5 and the CRLF Chain (#1263)
Carry the Three Conduct Sections Into agent-conduct as the First Live…
Promote Develop to Main: Seat the One-Home Include Mechanism and Fini…
Give the Include Mechanism a Declared Destination List, and Point Whe…
Promote develop to main: a declared destination list for includes, an…
Bring the Line-Endings Reference and a Test Docstring to the Correcte…