Skip to content

Read an Uppercase Markdown Suffix as Markdown at Every Prose Gate Branch - #3096

Merged
ptr727 merged 2 commits into
developfrom
feature/auto-2804
Oct 15, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/auto-2804

Conversation

@ptr727

@ptr727 ptr727 commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

check_file and comment_wrap_findings in .github/actions/prose-gate/prose_lint.py compared the suffix to .md case-sensitively at each Markdown-only branch, while syntax_for lowercases it. A file named NOTES.MD therefore had its comments extracted as Markdown and then skipped dead-path, sentence-split, sentence-length, semicolon, dash, and quote-stripping, and drew comment-case on an unpunctuated HTML comment NOTES.md is exempt from.

A new is_markdown(path) reads the suffix in any case, and every Markdown suffix test in the file now calls it, the two broken functions and the three sites that already lowercased (is_instruction_text, comment_added_findings, issue_ref_findings), so no later site can drift back to a case-sensitive comparison. The now-redundant elif path.suffix.lower() != ".md" in the sentence-length branch becomes a plain else.

Tests

  • TestAnUppercaseMarkdownSuffixIsMarkdown runs a constructed case per Markdown-only branch against both notes.md and NOTES.MD, including <!-- group header --> drawing no comment-case and a quoted duplicate inside an HTML comment that quote-stripping exempts.
  • TestDeadPath.test_an_uppercase_markdown_suffix_is_judged_for_dead_paths pins the dead-path branch.
  • With the fix reverted, 9 of the new subtests fail. The full test_prose_lint suite passes with it.

Closes on promotion: #2804

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Markdown lint checks now apply consistently to files with uppercase or mixed-case .md extensions.

ptr727 and others added 2 commits October 15, 2026 14:27
check_file and comment_wrap_findings compared the suffix to ".md"
case-sensitively at each Markdown-only branch, while syntax_for
lowercases it. A file named NOTES.MD therefore had its comments
extracted as Markdown but skipped dead-path, sentence-split,
sentence-length, semicolon, dash, and quote-stripping, and drew
comment-case on an unpunctuated HTML comment that NOTES.md is exempt
from. Both functions now read the lowercased suffix once and use it at
every comparison.

Tests pin a constructed NOTES.MD against each branch, and fail with
the fix reverted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
is_markdown reads the suffix in any case, and the five sites that
spelled the test inline now call it, so the next one cannot drift back
to a case-sensitive comparison.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 15, 2026 21:32
@ptr727

ptr727 commented Oct 15, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 0da1bd2b0d87bc4879c1267e5c9cfba446c1cd43, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8521fa5f-c854-4e96-8b06-120465a60055
📥 Commits

Reviewing files that changed from the base of the PR and between 331063a and 0da1bd2.

📒 Files selected for processing: 2
  • .github/actions/prose-gate/prose_lint.py
  • tests/test_prose_lint.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The prose linter now uses a shared, case-insensitive Markdown suffix check across Markdown-specific lint paths. Tests compare findings for lowercase and uppercase .md filenames and verify dead-path checking for an uppercase filename.

Changes: Markdown linting

Layer / File(s) Summary
Case-insensitive Markdown checks
.github/actions/prose-gate/prose_lint.py, tests/test_prose_lint.py
A shared helper recognizes .md suffixes without regard to case. Markdown-specific checks use it for instruction text, comments, issue references, dead paths, and prose rules. Tests compare lint findings for notes.md and NOTES.MD, and verify dead-path reporting for DOC.MD.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 0da1b

Uppercase and mixed-case .md files now follow the Markdown-specific lint paths, with regression coverage described for findings and dead-path checks. No actionable merge blocker is evidenced in the supplied review context.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 63.64% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: treating uppercase Markdown suffixes as Markdown across all prose-gate branches.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

🟢 Approval recommended

No unresolved review issues were identified, and regression coverage is included.

0 open findings

What changed in this PR

Updates the prose gate to treat uppercase Markdown suffixes as Markdown across all relevant branches.

Changes:

  • Adds centralized, case-insensitive Markdown detection.
  • Applies it across Markdown-specific checks.
  • Adds regression tests, including dead-path coverage.
File Summary
tests/​test_prose_lint.py Adds uppercase .MD regression tests.
.github/​actions/​prose-gate/​prose_lint.py Centralizes Markdown suffix detection across prose checks.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.21%. Comparing base (331063a) to head (0da1bd2).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3096   +/-   ##
========================================
  Coverage    61.21%   61.21%           
========================================
  Files           17       17           
  Lines         9062     9062           
========================================
  Hits          5547     5547           
  Misses        3515     3515           
Flag Coverage Δ
python-3.13 61.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 15, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit 107a481 into develop Oct 15, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/auto-2804 branch October 15, 2026 21:58
ptr727 added a commit that referenced this pull request Oct 16, 2026
… Fixes to Main (#3146)

- #3135 makes `gh-write-guard` read a gh write's subcommand and target
the way gh parses them: the subcommand is found past flags before the
command and before the subcommand, an `R` inside a short-option cluster
is read as a target, `GH_REPO` is read as a target, a run-time
repository owner on a write fails closed, and a run-time word where `pr`
or `merge` goes fails closed beside `--admin` or where word splitting
may split it
- #3139 releases the bootstrap lock when a `bootstrap.ps1` run ends
rather than when its process does, so a second run typed at the same
pwsh prompt is no longer refused the lock
- #3130 matches tool names and the `all` keyword by case in the Windows
agents loaders, as the Linux loaders already do
- #3128 reads CodeRabbit's rate limit on a reply to an explicit review
command in `pr_review.py`
- #3126 reconciles VSCode-Server-DotNetCore in the hub after its resync
- #3124 logs the Docker task's build-base leg in to Docker Hub
- #3122 names the carried skill and the skipped review correctly
- #3120 states the subprocess encoding rule in `CODESTYLE.md`, where
carriers read Python style
- #3118 and #3111 move the release-guard tests' workflow-command checks
onto `runner_commands`, and test the alternatives wiring at the
`audit_repo` and `fidelity_pass` call sites
- #3116 stops the doc gates' printed names forging workflow commands
- #3113 adds a catalog snippet for the release-with-smoke caller
- #3109 moves the `workflow_reuse` fetch onto `audit.contents_text`
- #3105 accepts `.codecov.yml` as an alternative to `codecov.yml`
- #3103 adds a pip ecosystem to the carried Dependabot snippet
- #3100 prefers the venv's ruff and pyright for a declared pip directory
- #3098 tracks composite action pins in Dependabot
- #3096 reads an uppercase Markdown suffix as Markdown at every prose
gate branch

After this merges, the host-safety installer payload changes, so the
maintainer runs the installer after promotion.

Closes #1416
Closes #1425
Closes #1578
Closes #1874
Closes #1892
Closes #1899
Closes #2804
Closes #2850
Closes #2852
Closes #2854
Closes #2996
Closes #3065
Closes #3067
Closes #3069
Closes #3079
Closes #3080
Closes #3089
Closes #3093
Closes #3101
Closes #3106
Closes #3107
Closes #3137

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Added a pull-request smoke build that runs when relevant release files
change and reports the combined validation and build status.
* Repository audits now recognize `.codecov.yml` as an alternative to
`codecov.yml`.

* **Improvements**
* Python linting and type checks use tools from declared project
environments when available, with fallbacks for missing tools.
* Workflow and lint reports safely display unusual filenames and
command-like text.
* GitHub write-target checks now account for additional command forms
and fail closed when targets cannot be verified.
* Rate-limit detection now recognizes another CodeRabbit response
format.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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