Repository navigation
Bring the Line-Endings Reference and a Test Docstring to the Corrected Wording - #2707
Conversation
…d Wording The line-endings reference still said write_text() writes \n back and offered newline='' on Path.read_text(), which only Python 3.13 and newer accept. It now says write_text() translates each \n to os.linesep and points at bytes or open() with newline='' on both sides, matching GOVERNANCE.md "Verification Discipline". The test_repo_gate.py docstring blamed a shell heredoc for consuming backslash escapes, which a quoted heredoc does not do. It now names the escape-interpreting constructs instead, and the assertion is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Printability The local review pass found two sentences over the length limit in the rewritten line-endings paragraph, and found that the test's pattern loop only compiled each pattern, which a control character survives. The loop now also asserts each pattern is printable ASCII, so the docstring's claim holds for the patterns as well as for the SHA exceptions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The guidance and regex checks are sound; no actionable merge risk was identified. Pre-merge checks |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2707 +/- ##
==========================================
Coverage ? 59.67%
==========================================
Files ? 16
Lines ? 8334
Branches ? 0
==========================================
Hits ? 4973
Misses ? 3361
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
Only a minor formatting nit remains; no approval-blocking issues were identified.
0 open findings
What changed in this PR
Updates line-ending guidance and strengthens repository-gate pattern validation.
Changes:
- Corrects canonical and generated documentation.
- Refreshes the source digest.
- Validates patterns as printable ASCII.
| File | Summary |
|---|---|
tests/test_repo_gate.py |
Updates rationale and pattern validation. |
.github/skills/comment-and-doc-style/references/line-endings.md |
Regenerated guidance copy. |
.claude-plugin/fleet-skills/skills/comment-and-doc-style/references/line-endings.md |
Regenerated guidance copy. |
.claude-plugin/fleet-skills/.source-digests/comment-and-doc-style |
Updated source digest. |
.agents/skills/comment-and-doc-style/references/line-endings.md |
Corrected canonical guidance; minor paragraph reflow nit remains. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Answer to the one remark in the Copilot round on d14a9603, which states
No change needed. The rewritten paragraph (lines 112-120) fills to the same 100-column width as the rest of the file. Its lines run 89 to 99 columns, and the two paragraphs above it run 67 to 98, measured with |
|
@coderabbitai review |
✅ Action performedReview finished.
|
… Corrections to Main (#2740) ## Summary Promotes 20 changes from `develop` to `main`: - #2737: Flag a Lone Semicolon After an Explanatory Colon in the Prose Gate - #2734: Share pr_review.py wait's Liveness Readings and Open the Held Poll on Its Snapshot - #2732: Share One Bounded Backoff Loop Between pr_review.py wait's Two Polls - #2729: Document pr_review.py wait's Immediate 44 and check_nodes's Node Keys - #2727: Narrow pr_review.py wait's Exit 44 to Required Checks - #2722: Poll an Attested Head's Checks in pr_review.py wait - #2720: Name the Command That Enumerates Open Feature Pull Requests in backlog-burndown - #2718: Point the Skills Refresh Cadence at host-setup.md - #2716: Fall Back to os.defpath for PATH in Two Test Harnesses - #2714: State the Pip Form's Root-Config Type-Check Command in python-codestyle - #2712: State the Build Profile's CI Type Check as the Validator Runs It - #2709: Bring the Fleet-Map workflow-ci-contract Entry and G9 Gap Up to the Skill Description - #2707: Bring the Line-Endings Reference and a Test Docstring to the Corrected Wording - #2705: Drop the Stale Utilities driftNote From the Registry - #2703: Remove the Inert SC2016 Directives in configure.sh and Correct the shell-codestyle Claim - #2701: Report Whether the Fleet Skills Plugin Is Installed and Enabled in the Live Channel - #2699: Align the Audit Report Template Dimensions With AUDIT.md Section 4 - #2697: Harden the Source-Pinning Assertions in test_pr_review.py - #2695: Name the Off-Grammar --branch Outcome in AUDIT.md - #2693: Count Every Unresolved Review Thread in pr_review.py Closes #1396 Closes #2731 Closes #2723 Closes #2725 Closes #2724 Closes #2685 Closes #1308 Closes #2191 Closes #1862 Closes #2711 Closes #2025 Closes #1243 Closes #1237 Closes #1115 Closes #1156 Closes #1757 Closes #1593 Closes #1732 Closes #1509 Closes #1404 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Brings the two remaining surfaces #1237 names into line with the wording
GOVERNANCE.md"Verification Discipline" now carries. The third surface,agent-conduct, already matched on develop.comment-and-doc-styleline-endings reference saidwrite_text()writes\nback and offerednewline=''onPath.read_text(). It now sayswrite_text()translates each\ntoos.linesep, and the fix is bytes oropen()withnewline=''on both the read and the write, sincePath.read_text()acceptsnewlineonly on Python 3.13 and newer. The two generated copies are regenerated byscripts/build_dist.py.tests/test_repo_gate.pydocstring blamed a shell heredoc, which a quoted heredoc disproves. It now namesprintf,echo -e, and$'...'. The local review pass also found that the pattern loop only compiled each pattern, which a control character survives, so the loop now also asserts each pattern is printable ASCII. A mutant pattern carrying a backspace fails the test, and the real patterns pass.Verified: ruff format and check, mypy,
prose_lint.pywith and without--check sentence-length,build_dist.py --check,spec/validate.py, andtests.test_repo_gate(144 tests) all pass. Two local strict review passes ran, the first raising three findings that the second commit fixes, the second raising none.Closes on promotion: #1237
🤖 Generated with Claude Code
Summary by CodeRabbit