Skip to content

Promotion prep: preserve CLAUDE.md endings; recast prose semicolons - #384

Merged
ptr727 merged 2 commits into
developfrom
promotion-prep-hygiene
Jul 22, 2026
Merged

Promotion prep: preserve CLAUDE.md endings; recast prose semicolons#384
ptr727 merged 2 commits into
developfrom
promotion-prep-hygiene

Conversation

@ptr727

@ptr727 ptr727 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Pre-existing hygiene items surfaced by Copilot on the developmain promotion review (#383). Fixing them on develop so the promotion carries clean content (the promotion's head is develop, so this lands here first).

  • host-setup/agent-safety/install.py — the CLAUDE.md append/update normalized line endings (read_text/write_text) instead of preserving them. Now reads bytes, works internally in LF, and writes back with the file's own ending (CRLF if present), per the repo's preserve-endings rule. Verified: appending to a CRLF file stays uniformly CRLF, no mixing. (Copilot's specific "mixed \r\n\r\n\n" mechanism was inaccurate — read_text already universal-newline-translates — but preserving endings is the correct behavior regardless.)
  • docs/repo-config-carry.md — recast seven prose semicolons joining independent clauses (the four Copilot flagged plus three siblings) into commas/sentences, per AGENTS.md prose style. Shell-syntax and code-fence semicolons left as-is.

markdownlint clean; install.py parses; EOL preserved.

🤖 Generated with Claude Code

…emicolons

Pre-existing hygiene surfaced by the develop->main promotion review (#383).

- host-setup/agent-safety/install.py: the CLAUDE.md append/update read via
  read_text and wrote via write_text, normalizing the file's line endings to the
  platform default instead of preserving them. Read bytes, work internally in LF,
  and write back with the file's own ending (CRLF if it has any), per the repo's
  preserve-endings-on-edit rule. (A verified append to a CRLF file now stays
  uniformly CRLF.)
- docs/repo-config-carry.md: recast seven prose semicolons that joined
  independent clauses into commas or separate sentences, per AGENTS.md prose
  style. Shell-syntax and code-fence semicolons are left as-is.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 22, 2026 02:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses promotion-hygiene items so the upcoming develop -> main promotion carries clean content, focusing on preserving CLAUDE.md line endings during scripted edits and aligning documentation prose with the repo's no-prose-semicolons guideline.

Changes:

  • Update host-setup/agent-safety/install.py to edit CLAUDE.md via bytes, normalize internally to \n, and write back using the file's detected newline style (CRLF if present).
  • Recast prose semicolons in docs/repo-config-carry.md into comma/period-separated sentences while leaving shell/code semicolons untouched.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
host-setup/agent-safety/install.py Preserves CLAUDE.md newline style when appending/updating the agent-safety marker block.
docs/repo-config-carry.md Adjusts prose punctuation to match repo documentation style expectations.

Comment thread host-setup/agent-safety/install.py Outdated
Drop the two-line comment and the inline rule citation for the one-line default.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 22, 2026 02:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit be9508f into develop Jul 22, 2026
7 checks passed
@ptr727
ptr727 deleted the promotion-prep-hygiene branch July 22, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants