Skip to content

Promote the Pre-Commit Wording, Comment Citation Rule, and Codegen Concurrency Exception to Main - #2924

Merged
ptr727 merged 2 commits into
mainfrom
develop
Oct 13, 2026
Merged

ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Closes #2912
Closes #2916
Closes #2917
Closes #2915

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 12, 2026 17:11
Fixes #2912

Two lines described the `pre-commit` framework as one that "stashes"
unstaged changes, which reads as a write to the shared `git stash` list
beside the write-safety rule. Both now say the runner sets unstaged
changes aside.

Source evidence, `pre_commit/staged_files_only.py` in the upstream
pre-commit repository:

- `_unstaged_changes_cleared(patch_dir)` writes the unstaged diff to a
`patch<time>-<pid>` file under `patch_dir` (the framework's own cache
directory) and reapplies it afterwards with `_git_apply`.
- `staged_files_only(patch_dir)` wraps the hook run in that context
manager.
- The module never calls `git stash` and never touches `refs/stash`.
Only its log message uses the word "Stashing".

Gates run locally: build_dist --check, repo_gate, prose_lint (default
whole-tree set and diff-scoped), spec/validate, docker_lint. The opt-in
sentence-length and sentence-split checks flag only sentences that were
already on the two touched lines.

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

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…ency Group (#2923)

A hub-only file may cite a hub docs section by repository path, and a
carried file cites only instruction-set sections a carrier holds. The
publish-release snippet drops its docs citation, and the Comments rule
in comment-and-doc-style states the split.

The validate action's burn-down comment is cut to a bare citation.

Concurrency exception (5) documents the workflow-alone,
cancel-in-progress group of the periodic codegen caller, and the snippet
now cites it by number.

The change edits comment lines on purpose, so it needs the `comments`
label.

Fixes #2916
Fixes #2917
Fixes #2915

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 13, 2026 00:24
@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 10f328c3-e047-4fe5-8525-e86e9f1b2616
  • 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

The changes are limited to guidance and comments, with no unresolved findings.

0 open findings

What changed in this PR

This PR promotes wording and citation-rule updates to the fleet guidance. It also documents the existing codegen concurrency pattern without changing workflow behavior.

Changes:

  • Clarifies that pre-commit sets unstaged changes aside rather than using the shared Git stash.
  • Defines which documentation sections hub-only and carried files may cite, and removes citations that would not travel with carried snippets.
  • Documents the codegen concurrency exception and shortens the validate action’s comment.
File Description
GOVERNANCE.md Clarifies pre-commit wording and adds the concurrency exception.
docs/​reusable-workflows.md Removes a citation from a carried example.
catalog/​snippets/​workflows/​test-pull-request.yml Removes a hub-doc citation.
catalog/​snippets/​workflows/​run-periodic-codegen-pull-request.yml Cites the new concurrency exception.
catalog/​snippets/​workflows/​publish-release.yml Removes a hub-doc citation.
catalog/​snippets/​pre-commit/​README.md Clarifies how unstaged changes are handled.
.github/​skills/​comment-and-doc-style/​SKILL.md Updates generated citation guidance.
.github/​actions/​validate/​action.yml Shortens the burn-down comment.
.claude-plugin/​fleet-skills/​skills/​comment-and-doc-style/​SKILL.md Updates generated citation guidance.
.claude-plugin/​fleet-skills/​.source-digests/​comment-and-doc-style Updates the generated source digest.
.agents/​skills/​comment-and-doc-style/​SKILL.md Defines the citation rule at its source.

🧠 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 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.00%. Comparing base (24d1df3) to head (1607ba4).
⚠️ Report is 372 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2924   +/-   ##
=======================================
  Coverage   60.00%   60.00%           
=======================================
  Files          17       17           
  Lines        8773     8773           
=======================================
  Hits         5264     5264           
  Misses       3509     3509           
Flag Coverage Δ
python-3.13 60.00% <ø> (ø)

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 merged commit 098016c into main Oct 13, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants